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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var $J,XYv,yAf,GV,zV,wYY,AA,sh,hA,Zf,zGY,H_s,qw,JAh,B6v,Q0,b_V,gJf,FEY,zB,Yhw,sVY,Shs,qhE,Clf,jY,SY,Oq,uJ,QVv,QR,Ifs,Iq,cS,Eq,cAs,Rq,iJ,rAV,UwV,mw6,tQ,i_V,yB,LE6,af_,RGs,wi,xwJ,XSv,wSs,ZH,zel,H4_,ohV,JqY,Bo_,Sq,tYA,YV,GBV,yqf,ghY,ToA,Aqf,IN,sqs,Dzf,SqG,heV,qqY,CJA,u4V,QqG,cql,rqY,PJG,i4s,vhV,Lth,v4,aPA,X4Y,$RA,Grf,HTY,w46,oVJ,zvJ,l2,Z4l,xV,fT,MR,JQf,Xk,VqG,Bi6,nV6,zY,bTh,krY,ev_,gVv,jN0,FaG,TiJ,AQA,tM,sNY,SR_,b_,ZTs,OTV,dN,IHA,p4A,qR6,rQs,P2_,EVV,aHs,RvY,xRE,MqG,Xts,tB6,GYf,ogJ,b1V,FNl,sjE,C_f,Wt,
O1A,QjY,WNs,Ui,mN,i_,L1,XM,tI,yb,mx0,LNV,vgh,xx0,X$J,jc,$BA,FM,Tc,AI,Yw,GcV,yI6,w$V,zQE,HLh,JIV,Bq6,nw6,Vcf,kcv,qB,Zx,dBv,eQ0,jYf,F3V,gws,TqY,AIG,Y6J,c$,pL,rq,NB,U6,DBw,m3,hQl,OL_,i8,uMY,QYG,IxJ,v$,W3Y,cI0,p$s,aY,P8h,xw,mBV,RQs,fL,L3l,iLl,vwG,ax0,lx0,xBv,$T,fxv,McV,tK,X1w,$VG,G6,yr,wp,z6,tkf,yKV,G6J,oH,zfA,HDv,oT0,B1,dp,ek,jk,gp,F2,JK0,Bp_,nTh,Vkh,bDV,k6h,dVE,efA,jHA,gTV,FbV,TpV,AK,AK6,Yww,Sk,sHv,CD,KD,DVw,ZDG,qw_,CGV,ODl,u2Y,QHv,p1w,rK6,Np0,PGl,ET0,UVV,mVE,vTY,Qr,aAh,lA_,xVA,fA_,MkG,Xpv,tMv,klV,
dlY,eB_,FWY,TT6,P1,A60,Dls,Zov,qFw,Cff,KWs,OoV,uoY,Q0E,IoV,c6Y,ppE,SFf,r6h,NT_,PfJ,EbJ,UlV,mlw,RBV,ioG,LWJ,foA,lo0,$tG,MM6,Xm_,yWG,wm6,zKV,t0E,oHY,Gy_,Bhv,Gl,nHl,ys,Hp,V0s,kys,dtf,gH_,qm0,ThA,F$l,YmV,DtV,AWv,Iyh,Otw,W$0,cW0,pmv,rWE,Nhf,EHv,Pms,mtl,RKh,itl,L$J,ayY,xtG,fys,M0f,$dJ,X0_,bY6,no,khE,e8h,j2Y,gSh,F6v,Tnw,Yas,s2h,DdE,gT,Tl,SaG,OY0,sF,Do,W6_,p0V,vS_,ql,f1E,MgG,GAE,$JA,tHv,I0,ytv,Ycf,DJh,Sc_,hZ6,Zs6,qcs,CFY,KUV,u3l,Qu0,WUY,IuV,rts,mW,vp,PFv,ExA,UJw,mJV,RZv,isY,vxl,luf,aus,zy,o5,JW,JGl,Blf,VA,
VDG,bbY,bm,d1J,kxv,D1_,SrE,hLY,qrh,ulV,INE,WGA,cGG,pzv,Nlv,E7V,U1w,j0,RL_,v7s,aNY,lNl,x1s,MD0,LGf,m1s,fNJ,FO,$jY,wOY,G5v,YH,Hhh,JvY,Bjs,nAl,VPs,hW,bhf,dj6,k5Y,ePw,gAw,Ct,S9V,Zh_,CxG,Oh6,QA,Q7J,cm,rh,pt,pOw,uR6,rvv,m$,Ujh,Lt,a5,ihV,aUG,xj0,fUV,MPh,lm,XqJ,xH,$_G,Gjf,ya0,wql,zMJ,o5h,Mt,JaA,BSf,$S,yX,blY,kjG,d_G,zh,g5v,FXJ,AaJ,bv,qA_,CCG,SAf,OlG,uEh,QOl,FJ,Af,YS,pq_,ras,D1,NSG,PCJ,E5s,U_l,RMV,ilA,LX6,v5w,m_A,asY,Z1,x_V,Miw,qd,fsh,Xsw,ls_,$8l,KY,GpV,yLf,wsA,zXv,oe_,HE0,JLh,Vbv,Bu0,kpw,Tuf,YsG,s4_,SsY,
qss,ZEf,hXh,Cws,OE6,Q46,um_,Wql,ps6,rLh,NuV,Pwl,LqV,iEV,vew,aOf,v0,a2,lOG,fOJ,XPA,GiG,wPf,yEJ,dw,zul,Mbs,bqs,kih,dYG,TA,euJ,gt0,AEw,DY6,saA,qlv,CsV,Kxs,Oql,Qal,rEE,I0s,cE6,pP0,NkE,PsG,UYv,Et0,Ru_,mYh,uF,iq_,vtV,a0h,MQh,Ec,Uc,XKJ,$Ql,mU,wK0,vx,au,lF,Jgh,xx,V7E,$7,bgw,kGv,dQY,e7V,yw,j$l,FCw,T9h,YGJ,DQG,ZgG,CAV,k7,KCf,OgJ,uV6,Q$J,Il0,WCf,cgv,pK6,jD,PAG,E0v,UQw,mQE,R7s,ig_,LCh,v0f,all,ll6,xQh,fl0,M7_,DN,n1Y,Vls,SD,hG,ZN,bpG,k8w,drG,el0,jcA,g1f,FT_,DrY,S8w,hlA,Zp_,q8V,Or,Qw,IS,Wz,rl,N1,Pz,KTw,Ur,u0_,mG,
QcV,IdJ,RS,WTv,cp_,py_,LTV,adf,XW0,ybh,GqG,v1E,wW0,o3V,Y0s,kqG,Zd6,e2l,h2E,q0V,fb,K_J,$A,uDl,QkV,W_V,cbY,pWG,NtG,z5,E3_,USv,mSw,R2h,id_,L_w,v3A,PeG,xSs,fkh,MmV,o7,wjG,zjf,ymw,oFY,Jml,nFE,VxV,BX_,FfV,Am_,sLV,SVf,gj,OzA,KfG,cmV,rmG,NXv,P$V,EFV,Uih,mif,ZU,MxE,$IG,xiG,lvh,Xlh,izE,G7s,k76,zVw,HXJ,oIl,DIf,hVV,si6,uxV,Ydh,Rjs,OXJ,wlG,bX_,Sd6,t_v,vFG,Lfl,avY,fvA,AHE,Lh,LwY,aW6,lW_,xIY,fWG,H5l,b5_,kzA,Gj,eI_,FAh,ssV,YWV,SWv,hIl,qWs,KAw,CXv,O5_,bC,uas,QsE,WAV,IRf,k5,EWY,PXh,N5V,i5v,U7E,LAY,RIG,vWf,ei,aRE,Mes,
x7_,fRJ,$sV,y4J,Tj,Hys,wvv,oyv,Vhs,byY,epY,gyf,Ds,Si,YeA,sDA,ha,Zs,Ds0,Kl,OA,Sef,uC,hpE,QN,ZyE,qew,Wq,C7G,KMh,OyY,u7_,QDE,WMY,I7J,pvw,P7h,N2E,EyJ,UsE,c4s,msY,LMh,iyw,r4J,vyG,a7_,Pq,l76,f7l,xsv,MhV,XaE,twG,$MV,GCJ,UA,waE,zCh,yi_,olh,JiY,BPE,kCl,jAE,Y5Y,hCl,mX,CWA,KhJ,RO,OVl,aO,lC,paG,Ll,M_,riV,NPJ,ElA,UMh,RCs,Lh_,vl6,awE,lwY,Mwv,ywE,t$V,fw0,wHV,z9v,Gp,G2f,H9V,zp,oEA,Jww,B1J,nEh,del,V$0,k2h,FZf,T1Y,Sxw,DeV,qxv,I_h,WZG,pH6,N1V,PzE,Ue0,mes,R9_,LZV,vEv,a_0,f_l,tUv,G1E,M$Y,wIf,HNY,zsf,ylA,ool,Baw,no6,VUE,
bNs,k1A,gu,Fm,Ye,DO,gov,FPY,AlY,DFl,Sb,hL,S1G,ZO,q1s,CMl,KPh,CE,WPV,NaV,Eow,UFv,mF6,Rsl,iNl,aFV,Os,lF0,MUw,uw,X6G,G$0,yyl,w6_,toY,n9h,k$V,VoE,doV,g9A,TYA,YHw,hHE,SHw,K96,pE,OUv,uA_,ru,Q8l,N8,IaJ,W9Y,cyY,ryV,p6G,NYJ,Pif,E9V,Uow,laE,faA,Xe0,MoG,L9l,RHA,t2v,yJE,JJf,BEV,bGV,Fpv,AJA,mq,Yph,DgV,Sp0,ZGY,OGl,IMJ,pes,rJV,NE6,PE_,iG0,EPV,lMs,xgY,M2E,LE,XZl,taV,GuY,y8h,wZV,zm6,HPV,oXv,BAs,nXV,xe,Val,bPE,dTl,M8,kul,jE_,A8s,tE,Yyw,sEY,DTJ,ZP0,qy0,Sy6,Kn_,I4E,Wnh,c8E,JE,pZh,EXv,UTh,bs,iPE,mTV,Rm0,vX0,l40,xT6,f4J,
tth,wBl,yzV,Gvs,zrv,oCJ,JzV,kvG,Bxs,dDV,jZ0,erf,sZl,hrJ,q_J,Kos,IZV,ECl,mDv,RrA,aZl,xDY,Lq,GG,G_6,HBh,zFA,J0V,B_V,VI0,nrV,bBl,k_A,y1,$SV,y0v,or6,w3w,$0,jxE,grV,FQV,T_V,A00,YCh,sx6,DNf,g9,SCs,FV,hF0,ZB0,qC6,CS0,Y0,KQJ,QxG,WQf,c0V,mN6,iBE,LQJ,vrE,lbE,xN_,OG,MIl,XMA,$0V,tfw,GQV,yZv,zUv,o_v,BB_,n_0,jMv,d0V,g_v,AZY,Yt6,r9,sMJ,D06,StG,qtV,K2s,CYA,ueV,I9J,UG,cZE,pMl,W2h,rZv,NBv,E_s,m0G,U0Y,RUA,PYs,iew,L2G,v_f,a96,l9w,x0V,f9A,Mfw,XF_,G4E,tOY,yP0,zOh,wFY,mC,Hc_,BzA,k4J,on6,j9V,gnY,FYV,Tz6,Cg_,KYl,usE,Q9V,
G8,pFA,EnJ,ROf,yl,aBE,vnG,lB6,Hy,xPJ,fBs,MOw,$Wf,tTh,Gm0,y_6,zT0,HuV,jI0,bu0,dWG,F4V,g6s,Tvl,A_6,sIG,S2V,Zu_,CjJ,eof,FVs,ACs,YbJ,s3_,D4A,Sbf,Zvv,qbV,Ov0,uP6,Q3f,I80,WV6,cCE,prs,rCE,EZ0,ivf,Ap,Y1,s8,Dd,LVv,Zd,a8J,yB0,BQh,oQJ,hwh,ZrE,q$J,x40,GK_,XCE,KkA,Orl,uW6,zwG,Ieh,cBw,rB6,EQG,UZV,Nr,U8,mT,leE,aev,XVf,$E_,Bbv,VGv,kZ0,dEJ,gjf,Tbw,FDV,sJv,SIY,uKA,KDf,Z8f,O8G,qIh,QJh,pVG,wt,LDY,mEh,azV,lzV,fzV,MGE,HW,X7E,GPG,w76,zDY,oKw,HZv,BW,kP6,gt,eDV,jl_,Tq,gK_,Fll,TKh,ADV,YK0,slJ,Dhl,SKV,hDf,ZZ6,qKh,CD6,KlA,OZ0,
u9s,Ab,Qlh,InV,Wl_,cDh,p7J,rDY,NKl,PDw,EKV,Uh0,mhh,RD0,s0,LlJ,anw,xhV,X5v,GH_,yeA,w5E,H$v,Jef,Bg6,nMh,O0,ei_,kH6,jyV,gMl,Fi0,YY6,sy6,DLV,hi6,ie,qYE,m_,Ki0,O$w,Ld,uFJ,Qys,IT_,WiY,ak,Ngh,EMG,Lis,i$E,aTJ,lT0,tm,xL_,fT_,X8J,tN0,GM_,w8V,zzA,$KJ,oU0,JXE,kMG,gU6,FKV,GO,TfV,AXl,hz0,YL0,DK0,SL0,u$6,qLh,QTv,WKh,p8h,rXV,NfA,PO_,EUE,UKl,Rzh,ikY,LKs,vUf,am6,xKf,MNw,tFl,zYA,JYV,nqG,kb_,Bj,d66,eYw,jRY,gqY,F0G,AYl,YDY,sRs,D6l,SDE,hYY,Zil,qDE,CNl,K06,Oil,QRG,uUw,cYw,rY6,b$,NRf,U6V,Eqv,iil,L0A,vq_,ajG,fjv,$qs,XQl,
x6h,y36,GL_,J3A,wQ6,TO,HW_,eb6,VSv,bWY,kLV,dq_,jUs,FO_,g40,Am,YF,hb0,A30,SZh,DqV,YZf,sUE,Cd0,OW_,QUY,uhv,pQ0,c3v,PdY,E4V,mqJ,Rbl,UqA,iWE,v4l,LOs,lpJ,MSG,Kz,XcG,$kV,yk6,JkV,dk_,u$,joA,AkG,SSv,DkY,YSV,soV,pz,CQV,hhV,Z0h,Kvl,uTA,O0A,Wv6,ck0,rk0,NZA,PQ6,EBV,Uk6,RhG,i0V,xF,vBJ,Mi,aIY,MR_,XXv,G7,$fA,GoG,V30,oi,HA_,n2h,o20,JFY,eWh,jbJ,dfJ,g20,F8s,sb6,T3v,DfE,SgJ,Bl,ZAv,qgh,CIY,hWV,bp,K8h,nX,IXf,E2s,UfY,mfE,RW6,iAh,L8J,xfE,aXV,lX6,v2V,M3l,t8v,wbE,zgJ,oNw,nNJ,JcV,B$l,V8E,kaA,dU6,egf,jw0,gN6,FIf,AcY,AH,sww,
hgE,Sul,qu0,Zfh,C4h,KIf,Of_,YI,Qww,Rgs,UUV,vN_,a6h,$$J,t4G,GUf,yRf,wAw,z0w,JRf,BW0,nfl,V4w,d$E,e0V,jFG,gfY,Fsv,TWJ,ARG,Yv_,sFG,D$6,h0Y,ZwV,qvV,KsV,uCE,cRV,WsE,Igf,QFh,Pc6,rRA,U$s,R0w,iwE,Lsv,Pl,vf_,agJ,lgV,XiA,x$Y,$cl,fgY,t5w,Ri,GEJ,yhA,wiJ,M4E,zAJ,nOG,bxE,jel,vl,gOV,TeV,FFw,Ah0,Y7w,sef,Dcf,S70,Zx0,q7V,C56,KF6,Qew,uZV,rhG,OxV,lp,NeJ,ILw,piY,UcA,RAE,lLv,vOJ,aLE,LFw,ix6,zz,M5w,$3l,tKG,GdY,yxv,w2J,B8w,HQh,zqh,ocs,Axs,FdY,JxV,gc_,qJJ,C1Y,KdJ,OQV,uwG,Q1h,Itw,WdA,rxJ,P1l,U3_,RqJ,iQJ,Ldl,x3V,ltV,ftY,XTJ,
ZR,G00,y7A,wTl,zxE,C5,K5,J7w,VXJ,g8s,YkE,sps,Da6,Sk_,hxh,Z3A,C36,O3G,K1s,ufG,IVh,W1A,c76,pTv,r7v,NFs,Wk,P3f,v8Y,aVG,Rx0,mas,L1V,i3Y,GgG,XoV,r5,y1v,wo6,zds,HKA,oR_,J1Y,nR_,bKY,dXG,jGY,FgV,sGA,DXJ,Sjs,qjv,ZKY,hdf,CHv,Kgl,u__,QGY,ISJ,WgJ,iX,pow,r16,N4v,ERE,PH0,UXY,RdV,vRh,aSG,lSA,xXV,fSf,$nV,tWh,MZf,XRE,Jul,Bm0,VWl,bnJ,k36,dnE,e36,jWE,Tm6,AuE,sWV,SOJ,DnG,h30,$y,Znw,qOw,Cb_,Kjw,IiV,QWG,pR_,ruw,ELv,mnv,R3V,inh,Ljs,vLE,aiG,liY,xn0,fil,MWh,$bY,XUE,tAV,GDV,y9_,wUG,zNV,HFY,osA,BMY,nsV,J9V,oD,bF0,kDw,dbE,eN_,
gsE,TMV,A9E,YfA,sKA,Db0,Sf0,ZF_,qfE,KrV,utJ,IrV,r9E,c9G,Wrv,pU0,NMs,PBE,EsY,RNV,iFs,Lrf,vs0,arl,lrJ,xb0,MAG,frV,XJA,$A_,trV,GRV,wJl,zRJ,HM_,o$s,Jrh,Bd_,n$G,VrE,kRE,dAv,eRY,jPV,FmE,Td0,ArV,DAf,SoE,YoV,sPJ,qoJ,C6s,Kmf,QPE,I36,se,NdE,P6E,UAv,iMl,RR6,LmG,v$v,D7,h4,l3J,xAA,Cy,Ky,$56,f3h,Mrw,ydV,w90,zEV,HR6,nk6,bRh,kts,d5h,eEw,jtw,FRw,T7V,Ads,YNY,stl,D5s,SNl,Qj,hEE,ZRl,Wv,qNY,C9l,KRV,ORs,u8V,QtV,r2,Ns,I2Y,WRl,Pv,cdl,p9l,rd6,N7E,Ek_,U5Y,REA,l20,a2J,vkh,x56,f20,y$0,$H_,tn6,XGs,GJw,Ue,HjA,ozG,J$s,BJ_,nzV,
bj6,dH0,gzG,Y3V,TJV,mM,FLs,Zjv,CrV,KLY,OjA,uGV,QXE,WL6,c$_,pGf,r$l,PrA,EzA,UHG,RnA,ijV,vzl,a$w,Xu0,t6V,$2A,yn6,JnE,BCf,ni_,V66,d2v,gi_,l7,FJh,TC6,An0,Y4V,D2Y,S4V,h6l,ZOf,CPh,OO_,uns,Qgw,xy,I5J,WJE,rnh,NC_,fy,Ms,U2w,PPf,iOf,m2w,LJG,ti,a56,l5s,M6s,$Gf,GC,GWV,y2V,wwE,zyf,Hal,omG,J2h,Vj_,ey0,jdl,T0s,gmJ,Fz6,A26,SQG,YQ0,DGE,hyA,Za6,qQ0,Oa_,ugG,QdE,WzV,c2s,UGV,Eml,aJh,fJs,V6,MjY,ddE,XLE,$pl,GXs,zJV,HJY,kXY,dp0,eJv,jrJ,gd_,FcV,ATY,YBw,DpV,hJ_,srJ,SBJ,qBA,ZJw,uYl,Kcv,Qrv,IKJ,Wc6,cTJ,pL0,NcG,rT0,mp0,Lc_,RJV,
vdV,aKs,lK6,Ai,xph,fKw,s5,XdJ,MLV,$CA,td0,yNs,wdf,HIE,ops,JNl,BU6,npJ,kkh,jBA,TUs,F5A,ANV,YnG,Sn0,W5f,CTh,pdh,rNl,PTl,EpG,iI_,L5E,aEh,lEV,xCl,Md0,XnV,$mf,tyJ,GeJ,yo_,wnJ,HCJ,BD0,nD0,Vys,bCw,kel,dmv,e5V,FHh,gDl,s_J,DmV,SUV,h50,ZCh,CLw,qUl,OCG,coY,Uml,PL6,mms,R50,iC6,vDf,iW,lQv,lW,fQv,XfE,$90,z__,oYG,Vv_,kN0,d9_,jCv,gYY,Fel,AUJ,sCv,D9h,h_l,Chf,qzv,Z7s,$E,O7f,KeV,ujl,QCw,Iq0,Wef,cUV,pfV,rUl,Ph0,EYf,U9E,m9l,R_G,i7V,Les,vY0,aqJ,x90,fqh,z1_,H6_,oGh,BHv,nGE,VuV,dvw,oQ,AOG,YPG,szE,DvA,SPG,Jw,BH,Hm,n9,bz,
Qzf,cOh,rOv,pD0,d1,NHV,PKJ,EGV;_.Xv=function(X,t){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Xv);else{var G=Error().stack;G&&(this.stack=G)}X&&(this.message=String(X));t!==void 0&&(this.cause=t)};
$J=function(){throw Error("E");};
XYv=function(X,t){t=String.fromCharCode.apply(null,t);return X==null?t:X+t};
yAf=function(X){var t=!1;t=t===void 0?!1:t;if($w0){if(t&&(tsG?!X.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(X)))throw Error("F");X=(GVw||(GVw=new TextEncoder)).encode(X)}else{for(var G=0,y=new Uint8Array(3*X.length),w=0;w<X.length;w++){var z=X.charCodeAt(w);if(z<128)y[G++]=z;else{if(z<2048)y[G++]=z>>6|192;else{if(z>=55296&&z<=57343){if(z<=56319&&w<X.length){var B=X.charCodeAt(++w);if(B>=56320&&B<=57343){z=(z-55296)*1024+B-56320+65536;y[G++]=z>>18|
240;y[G++]=z>>12&63|128;y[G++]=z>>6&63|128;y[G++]=z&63|128;continue}else w--}if(t)throw Error("F");z=65533}y[G++]=z>>12|224;y[G++]=z>>6&63|128}y[G++]=z&63|128}}X=G===y.length?y:y.subarray(0,G)}return X};
GV=function(X){_.tA.setTimeout(function(){throw X;},0)};
_.y0=function(X,t){return X.lastIndexOf(t,0)==0};
zV=function(X,t){var G=X.length-t.length;return G>=0&&X.indexOf(t,G)==G};
_.JA=function(X){return/^[\s\xa0]*$/.test(X)};
_.n_=function(X,t){return X.indexOf(t)!=-1};
_.V0=function(X,t){return _.n_(X.toLowerCase(),t.toLowerCase())};
_.d6=function(X,t){var G=0;X=bl(String(X)).split(".");t=bl(String(t)).split(".");for(var y=Math.max(X.length,t.length),w=0;G==0&&w<y;w++){var z=X[w]||"",B=t[w]||"";do{z=/(\d*)(\D*)(.*)/.exec(z)||["","","",""];B=/(\d*)(\D*)(.*)/.exec(B)||["","","",""];if(z[0].length==0&&B[0].length==0)break;G=wYY(z[1].length==0?0:parseInt(z[1],10),B[1].length==0?0:parseInt(B[1],10))||wYY(z[2].length==0,B[2].length==0)||wYY(z[2],B[2]);z=z[3];B=B[3]}while(G==0)}return G};
wYY=function(X,t){return X<t?-1:X>t?1:0};
_.es=function(){var X=_.tA.navigator;return X&&(X=X.userAgent)?X:""};
AA=function(X){if(!g6||!TV)return!1;for(var t=0;t<TV.brands.length;t++){var G=TV.brands[t].brand;if(G&&_.n_(G,X))return!0}return!1};
sh=function(X){return _.n_(_.es(),X)};
hA=function(){return g6?!!TV&&TV.brands.length>0:!1};
Zf=function(){return hA()?!1:sh("Opera")};
zGY=function(){return hA()?!1:sh("Trident")||sh("MSIE")};
H_s=function(){return hA()?AA("Microsoft Edge"):sh("Edg/")};
qw=function(){return sh("Firefox")||sh("FxiOS")};
_.Oh=function(){return sh("Safari")&&!(_.K_()||(hA()?0:sh("Coast"))||Zf()||(hA()?0:sh("Edge"))||H_s()||(hA()?AA("Opera"):sh("OPR"))||qw()||sh("Silk")||sh("Android"))};
_.K_=function(){return hA()?AA("Chromium"):(sh("Chrome")||sh("CriOS"))&&!(hA()?0:sh("Edge"))||sh("Silk")};
_.oJs=function(){return sh("Android")&&!(_.K_()||qw()||Zf()||sh("Silk"))};
JAh=function(X){var t={};X.forEach(function(G){t[G[0]]=G[1]});
return function(G){return t[G.find(function(y){return y in t})]||""}};
B6v=function(X){var t=_.es();if(X==="Internet Explorer"){if(zGY())if((X=/rv: *([\d\.]*)/.exec(t))&&X[1])t=X[1];else{X="";var G=/MSIE +([\d\.]+)/.exec(t);if(G&&G[1])if(t=/Trident\/(\d.\d)/.exec(t),G[1]=="7.0")if(t&&t[1])switch(t[1]){case "4.0":X="8.0";break;case "5.0":X="9.0";break;case "6.0":X="10.0";break;case "7.0":X="11.0"}else X="7.0";else X=G[1];t=X}else t="";return t}var y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");G=[];for(var w;w=y.exec(t);)G.push([w[1],w[2],w[3]||void 0]);
t=JAh(G);switch(X){case "Opera":if(Zf())return t(["Version","Opera"]);if(hA()?AA("Opera"):sh("OPR"))return t(["OPR"]);break;case "Microsoft Edge":if(hA()?0:sh("Edge"))return t(["Edge"]);if(H_s())return t(["Edg"]);break;case "Chromium":if(_.K_())return t(["Chrome","CriOS","HeadlessChrome"])}return X==="Firefox"&&qw()||X==="Safari"&&_.Oh()||X==="Android Browser"&&_.oJs()||X==="Silk"&&sh("Silk")?(t=G[2])&&t[1]||"":""};
_.nJA=function(X){if(hA()&&X!=="Silk"){var t=TV.brands.find(function(G){return G.brand===X});
if(!t||!t.version)return NaN;t=t.version.split(".")}else{t=B6v(X);if(t==="")return NaN;t=t.split(".")}return t.length===0?NaN:Number(t[0])};
Q0=function(){return g6?!!TV&&!!TV.platform:!1};
_.VsV=function(){return Q0()?TV.platform==="Android":sh("Android")};
b_V=function(){return sh("iPhone")&&!sh("iPod")&&!sh("iPad")};
_.IV=function(){return b_V()||sh("iPad")||sh("iPod")};
_.kVv=function(){return Q0()?TV.platform==="macOS":sh("Macintosh")};
_.dw_=function(){return Q0()?TV.platform==="Windows":sh("Windows")};
_.eGl=function(){return Q0()?TV.platform==="Chrome OS":sh("CrOS")};
_.WY=function(X){return X[X.length-1]};
_.r6=function(X,t,G){t=_.jVf(X,t,G);return t<0?null:typeof X==="string"?X.charAt(t):X[t]};
_.jVf=function(X,t,G){for(var y=X.length,w=typeof X==="string"?X.split(""):X,z=0;z<y;z++)if(z in w&&t.call(G,w[z],z,X))return z;return-1};
gJf=function(X){for(var t=_.Nw,G=typeof X==="string"?X.split(""):X,y=X.length-1;y>=0;y--)if(y in G&&t.call(void 0,G[y],y,X))return y;return-1};
_.Eh=function(X,t){return _.PY(X,t)>=0};
_.RV=function(X,t){_.Eh(X,t)||X.push(t)};
_.vY=function(X,t){t=_.PY(X,t);var G;(G=t>=0)&&_.L_(X,t);return G};
_.L_=function(X,t){Array.prototype.splice.call(X,t,1)};
_.aV=function(X){var t=X.length;if(t>0){for(var G=Array(t),y=0;y<t;y++)G[y]=X[y];return G}return[]};
_.X4=function(X,t){for(var G=1;G<arguments.length;G++){var y=arguments[G];if(_.xJ(y)){var w=X.length||0,z=y.length||0;X.length=w+z;for(var B=0;B<z;B++)X[w+B]=y[B]}else X.push(y)}};
_.T6f=function(X,t,G,y){Array.prototype.splice.apply(X,FEY(arguments,1))};
FEY=function(X,t,G){return arguments.length<=2?Array.prototype.slice.call(X,t):Array.prototype.slice.call(X,t,G)};
zB=function(X,t){t=t||X;for(var G=0,y=0,w={};y<X.length;){var z=X[y++],B=_.$h(z)?"o"+_.GB(z):(typeof z).charAt(0)+z;Object.prototype.hasOwnProperty.call(w,B)||(w[B]=!0,t[G++]=z)}t.length=G};
_.AAE=function(X,t,G){G=G||_.HS;for(var y=0,w=X.length,z;y<w;){var B=y+(w-y>>>1);var V=G(t,X[B]);V>0?y=B+1:(w=B,z=!V)}return z?y:-y-1};
_.Jq=function(X,t,G){if(!_.xJ(X)||!_.xJ(t)||X.length!=t.length)return!1;var y=X.length;G=G||Yhw;for(var w=0;w<y;w++)if(!G(X[w],t[w]))return!1;return!0};
_.HS=function(X,t){return X>t?1:X<t?-1:0};
Yhw=function(X,t){return X===t};
sVY=function(X,t,G){t=Array.prototype.splice.call(X,t,1);Array.prototype.splice.call(X,G,0,t[0])};
Shs=function(X){return Dws[X]||""};
qhE=function(X){if(!hGh)return _.BS(X);X=Z_V.test(X)?X.replace(Z_V,Shs):X;X=atob(X);for(var t=new Uint8Array(X.length),G=0;G<X.length;G++)t[G]=X.charCodeAt(G);return t};
Clf=function(X,t){X.__closure__error__context__984382||(X.__closure__error__context__984382={});X.__closure__error__context__984382.severity=t};
_.bJ=function(X){X=Error(X);Clf(X,"warning");return X};
jY=function(X,t){if(X!=null){var G;var y=(G=KEv)!=null?G:KEv={};G=y[X]||0;G>=t||(y[X]=G+1,X=Error(),Clf(X,"incident"),GV(X))}};
SY=function(X,t,G){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(G===void 0?0:G)&&Symbol.for&&X?Symbol.for(X):X!=null?Symbol(X):Symbol():t};
Oq=function(X,t){qz||_.C4 in X||O_6(X,uvG);X[_.C4]|=t};
uJ=function(X,t){qz||_.C4 in X||O_6(X,uvG);X[_.C4]=t};
QVv=function(X){if(4&X)return 512&X?512:1024&X?1024:0};
QR=function(X){Oq(X,34);return X};
Ifs=function(X){Oq(X,32);return X};
Iq=function(){return typeof BigInt==="function"};
cS=function(X,t){return t===void 0?X.copyOnWrite!==WS&&!!(2&(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.C4]|0)):!!(2&t)&&X.copyOnWrite!==WS};
_.PS=function(X,t){if(X!=null)if(typeof X==="string")X=X?new p4(X,ro):_.Nz();else if(X.constructor!==p4)if(WEw&&X!=null&&X instanceof Uint8Array)X=X.length?new p4(new Uint8Array(X),ro):_.Nz();else{if(!t)throw Error();X=void 0}return X};
Eq=function(X,t){if(typeof t!=="number"||t<0||t>=X.length)throw Error();};
cAs=function(X,t,G){var y=t&128?0:-1,w=X.length,z;if(z=!!w)z=X[w-1],z=z!=null&&typeof z==="object"&&z.constructor===Object;var B=w+(z?-1:0);for(t=t&128?1:0;t<B;t++)G(t-y,X[t]);if(z){X=X[w-1];for(var V in X)!isNaN(V)&&G(+V,X[V])}};
Rq=function(X){return X&128?mt:void 0};
iJ=function(X){X.isGuard_doNotManuallySetPrettyPlease=!0;return X};
rAV=function(){var X=pYY;return iJ(function(t){for(var G in X)if(t===X[G]&&!/^[0-9]+$/.test(G))return!0;return!1})};
_.aq=function(X){var t=X;if(N6h(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t));}else if(PlV(t)&&!Number.isSafeInteger(t))throw Error(String(t));return L4?BigInt(X):X=EJG(X)?X?"1":"0":N6h(X)?X.trim()||"0":String(X)};
UwV=function(X,t){if(X.length>t.length)return!1;if(X.length<t.length||X===t)return!0;for(var G=0;G<X.length;G++){var y=X[G],w=t[G];if(y>w)return!1;if(y<w)return!0}};
mw6=function(X){var t=X>>>0;f4=t;$V=(X-t)/4294967296>>>0};
tQ=function(X){if(X<0){mw6(-X);var t=_.J(RGs(f4,$V));X=t.next().value;t=t.next().value;f4=X>>>0;$V=t>>>0}else mw6(X)};
i_V=function(X,t){var G=t*4294967296+(X>>>0);return Number.isSafeInteger(G)?G:_.Gr(X,t)};
yB=function(X,t){var G=t&2147483648;G&&(X=~X+1>>>0,t=~t>>>0,X==0&&(t=t+1>>>0));X=i_V(X,t);return typeof X==="number"?G?-X:X:G?"-"+X:X};
_.Gr=function(X,t){t>>>=0;X>>>=0;if(t<=2097151)var G=""+(4294967296*t+X);else Iq()?G=""+(BigInt(t)<<BigInt(32)|BigInt(X)):(G=(X>>>24|t<<8)&16777215,t=t>>16&65535,X=(X&16777215)+G*6777216+t*6710656,G+=t*8147497,t*=2,X>=1E7&&(G+=X/1E7>>>0,X%=1E7),G>=1E7&&(t+=G/1E7>>>0,G%=1E7),G=t+LE6(G)+LE6(X));return G};
LE6=function(X){X=String(X);return"0000000".slice(X.length)+X};
_.vJV=function(X,t){t&2147483648?Iq()?X=""+(BigInt(t|0)<<BigInt(32)|BigInt(X>>>0)):(t=_.J(RGs(X,t)),X=t.next().value,t=t.next().value,X="-"+_.Gr(X,t)):X=_.Gr(X,t);return X};
af_=function(X){if(X.length<16)tQ(Number(X));else if(Iq())X=BigInt(X),f4=Number(X&BigInt(4294967295))>>>0,$V=Number(X>>BigInt(32)&BigInt(4294967295));else{var t=+(X[0]==="-");$V=f4=0;for(var G=X.length,y=t,w=(G-t)%6+t;w<=G;y=w,w+=6)y=Number(X.slice(y,w)),$V*=1E6,f4=f4*1E6+y,f4>=4294967296&&($V+=Math.trunc(f4/4294967296),$V>>>=0,f4>>>=0);t&&(t=_.J(RGs(f4,$V)),X=t.next().value,t=t.next().value,f4=X,$V=t)}};
RGs=function(X,t){t=~t;X?X=~X+1:t+=1;return[X,t]};
wi=function(X){return Array.prototype.slice.call(X)};
_.zr=function(X,t){throw Error(t===void 0?"unexpected value "+X+"!":t);};
_.H4=function(X){if(X!=null&&typeof X!=="number")throw Error("L`"+typeof X+"`"+X);return X};
_.lfJ=function(X){if(X==null||typeof X==="number")return X;if(X==="NaN"||X==="Infinity"||X==="-Infinity")return Number(X)};
xwJ=function(X){if(X!=null&&typeof X!=="boolean")throw Error("M`"+_.JQ(X)+"`"+X);return X};
_.ffs=function(X){if(X==null||typeof X==="boolean")return X;if(typeof X==="number")return!!X};
_.b2=function(X){switch(typeof X){case "bigint":return!0;case "number":return VB(X);case "string":return MsV.test(X);default:return!1}};
_.di=function(X){if(!VB(X))throw _.bJ("enum");return X|0};
_.eq=function(X){return X==null?X:VB(X)?X|0:void 0};
XSv=function(X){if(typeof X!=="number")throw _.bJ("int32");if(!VB(X))throw _.bJ("int32");return X|0};
_.jq=function(X){return X==null?X:XSv(X)};
_.FH=function(X){if(X==null)return X;if(typeof X==="string"&&X)X=+X;else if(typeof X!=="number")return;return VB(X)?X|0:void 0};
_.$zJ=function(X){if(X==null)return X;if(typeof X==="string"&&X)X=+X;else if(typeof X!=="number")return;return VB(X)?X>>>0:void 0};
wSs=function(X){var t=0;t=t===void 0?0:t;if(!_.b2(X))throw _.bJ("int64");var G=typeof X;switch(t){case 512:switch(G){case "string":return YV(X);case "bigint":return String(DH(64,X));default:return tYA(X)}case 1024:switch(G){case "string":return GBV(X);case "bigint":return _.aq(DH(64,X));default:return yqf(X)}case 0:switch(G){case "string":return YV(X);case "bigint":return _.aq(DH(64,X));default:return Sq(X)}default:return _.zr(t,"Unknown format requested type for int64")}};
ZH=function(X){return X==null?X:wSs(X)};
zel=function(X){if(X[0]==="-")return!1;var t=X.length;return t<20?!0:t===20&&Number(X.substring(0,6))<184467};
H4_=function(X){var t=X.length;return X[0]==="-"?t<20?!0:t===20&&Number(X.substring(0,7))>-922337:t<19?!0:t===19&&Number(X.substring(0,6))<922337};
ohV=function(X){if(X<0){tQ(X);var t=_.Gr(f4,$V);X=Number(t);return qR(X)?X:t}t=String(X);if(zel(t))return t;tQ(X);return i_V(f4,$V)};
JqY=function(X){if(H4_(X))return X;af_(X);return _.vJV(f4,$V)};
Bo_=function(X){if(zel(X))return X;af_(X);return _.Gr(f4,$V)};
Sq=function(X){X=KT(X);qR(X)||(tQ(X),X=yB(f4,$V));return X};
_.nhs=function(X){X=KT(X);return X>=0&&qR(X)?X:ohV(X)};
tYA=function(X){X=KT(X);if(qR(X))X=String(X);else{var t=String(X);H4_(t)?X=t:(tQ(X),X=_.vJV(f4,$V))}return X};
_.VYl=function(X){X=KT(X);if(X>=0&&qR(X))X=String(X);else{var t=String(X);zel(t)?X=t:(tQ(X),X=_.Gr(f4,$V))}return X};
YV=function(X){var t=KT(Number(X));if(qR(t))return String(t);t=X.indexOf(".");t!==-1&&(X=X.substring(0,t));return JqY(X)};
GBV=function(X){var t=KT(Number(X));if(qR(t))return _.aq(t);t=X.indexOf(".");t!==-1&&(X=X.substring(0,t));return Iq()?_.aq(DH(64,BigInt(X))):_.aq(JqY(X))};
yqf=function(X){return qR(X)?_.aq(Sq(X)):_.aq(tYA(X))};
_.b4_=function(X){return qR(X)?_.aq(_.nhs(X)):_.aq(_.VYl(X))};
_.kBv=function(X){var t=KT(Number(X));if(qR(t)&&t>=0)return String(t);t=X.indexOf(".");t!==-1&&(X=X.substring(0,t));return Bo_(X)};
_.dzA=function(X){var t=KT(Number(X));if(qR(t)&&t>=0)return _.aq(t);t=X.indexOf(".");t!==-1&&(X=X.substring(0,t));return Iq()?_.aq((0,_.u2)(64,BigInt(X))):_.aq(Bo_(X))};
_.jqY=function(X){if(X==null)return X;if(typeof X==="bigint")return eeV(X)?X=Number(X):(X=DH(64,X),X=eeV(X)?Number(X):String(X)),X;if(_.b2(X))return typeof X==="number"?Sq(X):YV(X)};
ghY=function(X,t){t=t===void 0?!1:t;var G=typeof X;if(X==null)return X;if(G==="bigint")return String(DH(64,X));if(_.b2(X))return G==="string"?YV(X):t?tYA(X):Sq(X)};
_.Ftv=function(X){var t=typeof X;if(X==null)return X;if(t==="bigint")return _.aq(DH(64,X));if(_.b2(X))return t==="string"?GBV(X):yqf(X)};
ToA=function(X){if(X==null)return X;var t=typeof X;if(t==="bigint")return String(DH(64,X));if(_.b2(X)){if(t==="string")return YV(X);if(t==="number")return Sq(X)}};
Aqf=function(X){if(X==null)return X;var t=typeof X;if(t==="bigint")return String((0,_.u2)(64,X));if(_.b2(X)){if(t==="string")return _.kBv(X);if(t==="number")return _.nhs(X)}};
_.QB=function(X){if(typeof X!=="string")throw Error();return X};
IN=function(X){if(X!=null&&typeof X!=="string")throw Error();return X};
_.W4=function(X){return X==null||typeof X==="string"?X:void 0};
sqs=function(X,t,G,y){if(X!=null&&X[NR]===P4)return X;if(!Array.isArray(X))return G?y&2?((X=t[Yq0])||(X=new t,QR(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),X=t[Yq0]=X),t=X):t=new t:t=void 0,t;G=X[_.C4]|0;y=G|y&32|y&2;y!==G&&uJ(X,y);return new t(X)};
Dzf=function(X,t,G){X=t?XSv(X):_.FH(X);return X==null?G?0:void 0:X|0};
SqG=function(X){return X};
heV=function(X){return X};
qqY=function(X,t,G,y,w,z){X=sqs(X,y,G,z);w&&(X=Z4l(X));return X};
CJA=function(X){return[X,this.get(X)]};
u4V=function(){return Ktl||(Ktl=new ER(QR([]),void 0,void 0,void 0,O4V))};
QqG=function(X){var t=UR(ma);return t?X[t]:void 0};
cql=function(X,t){var G=G===void 0?!1:G;if(UR(IPJ)&&UR(ma)&&void 0===IPJ){var y=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=y[ma];if(!w)return;if(w=w.reviveUnknownFields)try{w(y,t,Wt6);return}catch(z){GV(z)}}G&&(X=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(G=UR(ma))&&G in X&&(X=X[G])&&delete X[t])};
rqY=function(X,t){var G=UR(ma),y;qz&&G&&((y=X[G])==null?void 0:y[t])!=null&&jY(pSE,3)};
PJG=function(X,t){t<100||jY(NoV,1)};
i4s=function(X,t,G,y){var w=y!==void 0;y=!!y;var z=UR(ma),B;!w&&qz&&z&&(B=X[z])&&EhG(B,PJG);z=[];var V=X.length;B=4294967295;var b=!1,e=!!(t&64),g=e?t&128?0:-1:void 0;if(!(t&1)){var F=V&&X[V-1];F!=null&&typeof F==="object"&&F.constructor===Object?(V--,B=V):F=void 0;if(e&&!(t&128)&&!w){b=!0;var T;B=((T=Uzl)!=null?T:SqG)(B-g,g,X,F,void 0)+g}}t=void 0;for(T=0;T<V;T++){var D=X[T];if(D!=null&&(D=G(D,y))!=null)if(e&&T>=B){var h=T-g,u=void 0;((u=t)!=null?u:t={})[h]=D}else z[T]=D}if(F)for(var W in F)V=F[W],
V!=null&&(V=G(V,y))!=null&&(T=+W,D=void 0,e&&!Number.isNaN(T)&&(D=T+g)<B?z[D]=V:(T=void 0,((T=t)!=null?T:t={})[W]=V));t&&(b?z.push(t):z[B]=t);w&&UR(ma)&&(X=QqG(X))&&X instanceof mzV&&(z[ma]=Rev(X));return z};
vhV=function(X){X[0]=Lth(X[0]);X[1]=Lth(X[1]);return X};
Lth=function(X){switch(typeof X){case "number":return Number.isFinite(X)?X:""+X;case "bigint":return eeV(X)?Number(X):""+X;case "boolean":return X?1:0;case "object":if(Array.isArray(X)){var t=X[_.C4]|0;return X.length===0&&t&1?void 0:i4s(X,t,Lth)}if(X!=null&&X[NR]===P4)return aPA(X);if(X instanceof p4){t=X.JSC$8747_value_;if(t==null)X="";else if(typeof t==="string")X=t;else{if(hGh){for(var G="",y=0,w=t.length-10240;y<w;)G+=String.fromCharCode.apply(null,t.subarray(y,y+=10240));G+=String.fromCharCode.apply(null,
y?t.subarray(y):t);t=btoa(G)}else t=_.i2(t);X=X.JSC$8747_value_=t}return X}if(X instanceof ER)return X=X.size!==0?Array.from(LT.prototype.entries.call(X),vhV):void 0,X;return}return X};
v4=function(X,t){if(t){Uzl=t==null||t===SqG||t[lPV]!==xz6?SqG:t;try{return aPA(X)}finally{Uzl=void 0}}return aPA(X)};
aPA=function(X){X=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return i4s(X,X[_.C4]|0,Lth)};
X4Y=function(X){switch(typeof X){case "boolean":return fPG||(fPG=[0,void 0,!0]);case "number":return X>0?void 0:X===0?MYG||(MYG=[0,void 0]):[-X,void 0];case "string":return[0,X];case "object":return X}};
$RA=function(X,t,G){return X=_.aN(X,t[0],t[1],G?1:2)};
_.aN=function(X,t,G,y){y=y===void 0?0:y;if(X==null){var w=32;G?(X=[G],w|=128):X=[];t&&(w=w&-8380417|(t&1023)<<13)}else{if(!Array.isArray(X))throw Error("O");w=X[_.C4]|0;if(tq_&&1&w)throw Error("P");2048&w&&!(2&w)&&Grf();if(w&256)throw Error("Q");if(w&64)return y!==0||w&2048||uJ(X,w|2048),X;if(G&&(w|=128,G!==X[0]))throw Error("R");a:{G=X;w|=64;var z=G.length;if(z){var B=z-1,V=G[B];if(V!=null&&typeof V==="object"&&V.constructor===Object){t=w&128?0:-1;B-=t;if(B>=1024)throw Error("T");for(var b in V)z=
+b,z<B&&(G[z+t]=V[b],delete V[b]);w=w&-8380417|(B&1023)<<13;break a}}if(t){b=Math.max(t,z-(w&128?0:-1));if(b>1024)throw Error("U");w=w&-8380417|(b&1023)<<13}}}w|=64;y===0&&(w|=2048);uJ(X,w);return X};
Grf=function(){if(tq_)throw Error("S");jY(yQf,5)};
HTY=function(X,t){if(typeof X!=="object")return X;if(Array.isArray(X)){var G=X[_.C4]|0;return X.length===0&&G&1?void 0:w46(X,G,t)}if(X!=null&&X[NR]===P4)return zvJ(X);if(X instanceof ER){t=X.arrayState;if(t&2)return X;if(!X.size)return;G=QR(Array.from(LT.prototype.entries.call(X)));if(X.valueCtor)for(X=0;X<G.length;X++){var y=G[X],w=y[1];w==null||typeof w!=="object"?w=void 0:w!=null&&w[NR]===P4?w=zvJ(w):Array.isArray(w)?w=w46(w,w[_.C4]|0,!!(t&32)):w=void 0;y[1]=w}return G}if(X instanceof p4)return X};
w46=function(X,t,G){if(t&2)return X;!G||4096&t||16&t?X=l2(X,t,!1,G&&!(t&16)):(Oq(X,34),t&4&&Object.freeze(X));return X};
oVJ=function(X,t,G){X=new X.constructor(t);G&&(X.copyOnWrite=WS);X.noLegacyNull=WS;return X};
zvJ=function(X){var t=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=t[_.C4]|0;return cS(X,G)?X:JQf(X,t,G)?oVJ(X,t):l2(t,G)};
l2=function(X,t,G,y){y!=null||(y=!!(34&t));X=i4s(X,t,HTY,y);y=32;G&&(y|=2);t=t&8380609|y;uJ(X,t);return X};
Z4l=function(X){var t=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=t[_.C4]|0;return cS(X,G)?JQf(X,t,G)?oVJ(X,t,!0):new X.constructor(l2(t,G,!1)):X};
xV=function(X){if(X.copyOnWrite!==WS)return!1;var t=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t=l2(t,t[_.C4]|0);Oq(t,2048);X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=t;X.copyOnWrite=void 0;X.noLegacyNull=void 0;return!0};
fT=function(X){if(!xV(X)&&cS(X,X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.C4]|0))throw Error();};
MR=function(X,t){t===void 0&&(t=X[_.C4]|0);t&32&&!(t&4096)&&uJ(X,t|4096)};
JQf=function(X,t,G){return G&2?!0:G&32&&!(G&4096)?(uJ(t,G|2),X.copyOnWrite=WS,!0):!1};
Xk=function(X,t,G,y,w){var z=G+(w?0:-1),B=X.length-1;if(B>=1+(w?0:-1)&&z>=B){var V=X[B];if(V!=null&&typeof V==="object"&&V.constructor===Object)return V[G]=y,t}if(z<=B)return X[z]=y,t;if(y!==void 0){var b;B=((b=t)!=null?b:t=X[_.C4]|0)>>13&1023||536870912;G>=B?y!=null&&(z={},X[B+(w?0:-1)]=(z[G]=y,z)):X[z]=y}return t};
_.wN=function(X,t,G,y,w){var z=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=z[_.C4]|0;y=cS(X,B)?1:y;w=!!w||y===3;y===2&&xV(X)&&(z=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=z[_.C4]|0);X=Bi6(z,t);var V=X===$g?7:X[_.C4]|0,b=nV6(V,B);var e=4&b?!1:!0;if(e){4&b&&(X=wi(X),V=0,b=tM(b,B),B=Xk(z,B,t,X));for(var g=0,F=0;g<X.length;g++){var T=G(X[g]);T!=null&&(X[F++]=T)}F<g&&(X.length=F);G=(b|4)&-513;b=G&=-1025;b&=-4097}b!==V&&(uJ(X,b),2&b&&Object.freeze(X));return X=VqG(X,b,z,
B,t,y,e,w)};
VqG=function(X,t,G,y,w,z,B,V){var b=t;z===1||(z!==4?0:2&t||!(16&t)&&32&y)?zY(t)||(t|=!X.length||B&&!(4096&t)||32&y&&!(4096&t||16&t)?2:256,t!==b&&uJ(X,t),Object.freeze(X)):(z===2&&zY(t)&&(X=wi(X),b=0,t=tM(t,y),y=Xk(G,y,w,X)),zY(t)||(V||(t|=16),t!==b&&uJ(X,t)));2&t||!(4096&t||16&t)||MR(G,y);return X};
Bi6=function(X,t,G){X=Ht(X,t,G);return Array.isArray(X)?X:$g};
nV6=function(X,t){2&t&&(X|=2);return X|1};
zY=function(X){return!!(2&X)&&!!(4&X)||!!(256&X)};
bTh=function(X){return _.PS(X,!0)};
krY=function(X,t){var G=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=G[_.C4]|0;a:{var w=y;y=cS(X,y);!y&&xV(X)&&(G=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=G[_.C4]|0);var z=Ht(G,t);X=!1;if(z==null){if(y){t=u4V();break a}z=[]}else if(z.constructor===ER)if(z.arrayState&2&&!y)z=Array.from(LT.prototype.entries.call(z));else{t=z;break a}else Array.isArray(z)?X=!!((z[_.C4]|0)&2):z=[];if(y){if(!z.length){t=u4V();break a}X||(X=!0,QR(z))}else if(X){X=!1;y=z;y=wi(y);for(z=0;z<
y.length;z++){var B=y[z]=wi(y[z]);Array.isArray(B[1])&&(B[1]=QR(B[1]))}z=y}!X&&w&32&&Ifs(z);y=new ER(z,void 0,Dzf,Dzf);w=Xk(G,w,t,y);X||MR(G,w);t=y}return t};
_.JM=function(X,t,G,y){fT(X);var w=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=w[_.C4]|0;if(G==null)return Xk(w,z,t),X;var B=G===$g?7:G[_.C4]|0,V=B,b=zY(B),e=b||Object.isFrozen(G);b||(B=0);e||(G=wi(G),V=0,B=tM(B,z),e=!1);B|=5;var g;b=(g=QVv(B))!=null?g:0;for(g=0;g<G.length;g++){var F=G[g],T=y(F,b);Object.is(F,T)||(e&&(G=wi(G),V=0,B=tM(B,z),e=!1),G[g]=T)}B!==V&&(e&&(G=wi(G),B=tM(B,z)),uJ(G,B));Xk(w,z,t,G);return X};
_.Bt=function(X,t,G,y,w){fT(X);var z=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Xk(z,z[_.C4]|0,t,(y==="0"?Number(G)===0:G===y)?void 0:G,w);return X};
_.dR0=function(X,t,G){if(t&2)throw Error();var y=Rq(t),w=Bi6(X,G,y),z=w===$g?7:w[_.C4]|0,B=nV6(z,t);if(2&B||zY(B)||16&B)w=wi(w),z=0,B=tM(B,t),Xk(X,t,G,w,y);B&=-13;B!==z&&uJ(w,B);return w};
ev_=function(X){if(qz){var t;return(t=X[n1])!=null?t:X[n1]=new Map}if(n1 in X)return X[n1];t=new Map;Object.defineProperty(X,n1,{value:t});return t};
gVv=function(X,t,G,y,w){var z=ev_(X),B=jN0(z,X,t,G,w);B!==y&&(B&&(t=Xk(X,t,B,void 0,w)),z.set(G,y));return t};
jN0=function(X,t,G,y,w){var z=X.get(y);if(z!=null)return z;for(var B=z=0;B<y.length;B++){var V=y[B];Ht(t,V,w)!=null&&(z!==0&&(G=Xk(t,G,z,void 0,w)),z=V)}X.set(y,z);return z};
FaG=function(X,t,G,y,w){var z=!1;y=Ht(X,y,w,function(B){var V=sqs(B,G,!1,t);z=V!==B&&V!=null;return V});
if(y!=null)return z&&!cS(y)&&MR(X,t),y};
TiJ=function(X,t,G,y,w,z,B,V){var b=cS(X,G);z=b?1:z;B=!!B||z===3;b=V&&!b;(z===2||b)&&xV(X)&&(t=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=t[_.C4]|0);X=Bi6(t,w);var e=X===$g?7:X[_.C4]|0,g=nV6(e,G);if(V=!(4&g)){var F=X,T=G,D=!!(2&g);D&&(T|=2);for(var h=!D,u=!0,W=0,c=0;W<F.length;W++){var P=sqs(F[W],y,!1,T);if(P instanceof y){if(!D){var l=cS(P);h&&(h=!l);u&&(u=l)}F[c++]=P}}c<W&&(F.length=c);g|=4;g=u?g&-4097:g|4096;g=h?g|8:g&-9}g!==e&&(uJ(X,g),2&g&&Object.freeze(X));if(b&&!(8&g||!X.length&&
(z===1||(z!==4?0:2&g||!(16&g)&&32&G)))){zY(g)&&(X=wi(X),g=tM(g,G),G=Xk(t,G,w,X));y=X;b=g;for(e=0;e<y.length;e++)F=y[e],g=Z4l(F),F!==g&&(y[e]=g);b|=8;g=b=y.length?b|4096:b&-4097;uJ(X,g)}return X=VqG(X,g,t,G,w,z,V,B)};
AQA=function(X){X==null&&(X=void 0);return X};
tM=function(X,t){return X=(2&t?X|2:X&-3)&-273};
_.YRh=function(X,t,G,y,w){fT(X);t=_.wN(X,t,w,2,!0);var z;w=(z=QVv(t===$g?7:t[_.C4]|0))!=null?z:0;t.push(G(y,w));return X};
sNY=function(X,t,G,y,w,z,B){fT(X);var V=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;X=TiJ(X,V,V[_.C4]|0,G,t,2,!0);if(z&&B)w!=null||(w=X.length-1),Eq(X,w),X.splice(w,z),X.length||(X[_.C4]&=-4097);else{if(z){if(typeof w!=="number"||w<0||w>X.length)throw Error();}else y=y!=null?y:new G;w!=void 0?X.splice(w,z,y):X.push(y);w=G=X===$g?7:X[_.C4]|0;(y=cS(y))?(G&=-9,X.length===1&&(G&=-4097)):G|=4096;G!==w&&uJ(X,G);y||MR(V)}};
SR_=function(X,t){if(typeof X==="string")return new VW(qhE(X),t);if(Array.isArray(X))return new VW(new Uint8Array(X),t);if(X.constructor===Uint8Array)return new VW(X,!1);if(X.constructor===ArrayBuffer)return X=new Uint8Array(X),new VW(X,!1);if(X.constructor===p4)return t=DRY(X)||new Uint8Array(0),new VW(t,!0,X);if(X instanceof Uint8Array)return X=X.constructor===Uint8Array?X:new Uint8Array(X.buffer,X.byteOffset,X.byteLength),new VW(X,!1);throw Error();};
b_=function(){var X=function(){throw Error();};
Object.setPrototypeOf(X,X.prototype);return X};
ZTs=function(X,t){var G=G===void 0?hv6:G;return new kg(X,t,G)};
OTV=function(X,t,G,y,w){t=qR6(t,y);t!=null&&(G=_.C2f(X,G),w(t,X),_.KaJ(X,G))};
dN=function(X,t,G,y){var w=y[X];if(w)return w;w={};w.binaryFields=y;w.messageMetadata=X4Y(y[0]);var z=y[1],B=1;z&&z.constructor===Object&&(w.extensions=z,z=y[++B],typeof z==="function"&&(w.isMessageSet=!0,uHG!=null||(uHG=z),QNV!=null||(QNV=y[B+1]),z=y[B+=2]));for(var V={};z&&IHA(z);){for(var b=0;b<z.length;b++)V[z[b]]=z;z=y[++B]}for(b=1;z!==void 0;){typeof z==="number"&&(b+=z,z=y[++B]);var e=void 0;if(z instanceof kg)var g=z;else g=Wah,B--;z=void 0;if((z=g)==null?0:z.$$isMsg){z=y[++B];e=y;var F=B;
typeof z==="function"&&(z=z(),e[F]=z);e=z}z=y[++B];F=b+1;typeof z==="number"&&z<0&&(F-=z,z=y[++B]);for(;b<F;b++){var T=V[b];e?G(w,b,g,e,T):t(w,b,g,T)}}return y[X]=w};
IHA=function(X){return Array.isArray(X)&&!!X.length&&typeof X[0]==="number"&&X[0]>0};
p4A=function(X){return Array.isArray(X)?X[0]instanceof kg?X:[cQv,X]:[X,void 0]};
qR6=function(X,t){if(X instanceof _.eB)return X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(X))return $RA(X,t,!1)};
rQs=function(X,t,G,y){var w=G.$$binaryReaderFn;X[t]=y?function(z,B,V){return w(z,B,V,y)}:w};
P2_=function(X,t,G,y,w){var z=G.$$binaryReaderFn,B,V;X[t]=function(b,e,g){return z(b,e,g,V||(V=dN(NiE,rQs,P2_,y).messageMetadata),B||(B=EVV(y)),w)}};
EVV=function(X){var t=X[URY];if(t!=null)return t;var G=dN(NiE,rQs,P2_,X);t=G.isMessageSet?function(y,w){return uHG(y,w,G)}:function(y,w){for(;mR6(w)&&w.nextWireType_!=4;){var z=w.nextField_,B=G[z];
if(B==null){var V=G.extensions;V&&(V=V[z])&&(V=RvY(V),V!=null&&(B=G[z]=V))}if(B==null||!B(w,y,z)){V=w;B=V.fieldCursor_;iTl(V);if(V.discardUnknownFields)var b=void 0;else{var e=V.decoder_.cursor_-B;V.decoder_.cursor_=B;b=Lal(V.decoder_,e)}e=V=B=void 0;var g=y;b&&((B=(V=(e=g[ma])!=null?e:g[ma]=new mzV)[z])!=null?B:V[z]=[]).push(b)}}if(y=QqG(y))y.reviveUnknownFields=G.binaryFields[vVJ];return!0};
X[URY]=t;X[vVJ]=aHs.bind(X);return t};
aHs=function(X,t,G,y){var w=this[NiE],z=this[URY],B=$RA(void 0,w.messageMetadata,!1),V=QqG(X);if(V){var b=!1,e=w.extensions;if(e){w=function(h,u,W){if(W.length!==0)if(e[u])for(h=_.J(W),u=h.next();!u.done;u=h.next()){u=lHv(u.value);try{b=!0,z(B,u)}finally{u.free()}}else y==null||y(X,u,W)};
if(t==null)EhG(V,w);else if(V!=null){var g=V[t];g&&w(V,t,g)}if(b){var F=X[_.C4]|0;if(F&2&&F&2048&&(G==null||!G.reviveIntoImmutable))throw Error();var T=Rq(F),D=function(h,u){if(Ht(X,h,T)!=null)switch(G==null?void 0:G.resolutionBehavior){case 1:return;default:throw Error();}u!=null&&(F=Xk(X,F,h,u,T));delete V[h]};
t==null?cAs(B,B[_.C4]|0,function(h,u){D(h,u)}):D(t,Ht(B,t,T))}}}};
RvY=function(X){X=p4A(X);var t=X[0].$$binaryReaderFn;if(X=X[1]){var G=EVV(X),y=dN(NiE,rQs,P2_,X).messageMetadata;return function(w,z,B){return t(w,z,B,y,G)}}return t};
xRE=function(X,t,G){X[t]=G.$$binaryWriterFn};
MqG=function(X,t,G,y){var w,z,B=G.$$binaryWriterFn;X[t]=function(V,b,e){return B(V,b,e,z||(z=dN(fHV,xRE,MqG,y).messageMetadata),w||(w=Xts(y)))}};
Xts=function(X){var t=X[$xv];if(!t){var G=dN(fHV,xRE,MqG,X);t=function(y,w){return tB6(y,w,G)};
X[$xv]=t}return t};
tB6=function(X,t,G){cAs(X,X[_.C4]|0,function(y,w){if(w!=null){var z=GYf(G,y);z?z(t,w,y):y<500||jY(yME,3)}});
(X=QqG(X))&&EhG(X,function(y,w,z){gN(t,t.encoder_.end());for(y=0;y<z.length;y++)gN(t,DRY(z[y])||new Uint8Array(0))})};
GYf=function(X,t){var G=X[t];if(G)return G;if(G=X.extensions)if(G=G[t]){G=p4A(G);var y=G[0].$$binaryWriterFn;if(G=G[1]){var w=Xts(G),z=dN(fHV,xRE,MqG,G).messageMetadata;G=X.isMessageSet?QNV(z,w):function(B,V,b){return y(B,V,b,z,w)}}else G=y;
return X[t]=G}};
_.wtV=function(X,t,G){if(Array.isArray(t)){var y=t[_.C4]|0;if(y&4)return t;for(var w=0,z=0;w<t.length;w++){var B=X(t[w]);B!=null&&(t[z++]=B)}z<w&&(t.length=z);G&&(uJ(t,(y|5)&-1537),y&2&&Object.freeze(t));return t}};
_.AM=function(X,t,G){return new kg(X,t,G)};
_.ztl=function(X,t,G){return new kg(X,t,G)};
_.si=function(X,t,G){Xk(X,X[_.C4]|0,t,G,Rq(X[_.C4]|0))};
ogJ=function(X,t,G){t=_.lfJ(t);t!=null&&(_.DY(X,G,1),X=X.encoder_,G=H1V||(H1V=new DataView(new ArrayBuffer(8))),G.setFloat64(0,+t,!0),f4=G.getUint32(0,!0),$V=G.getUint32(4,!0),_.SB(X,f4),_.SB(X,$V))};
_.hM=function(X,t,G){t=ToA(t);if(t!=null){switch(typeof t){case "string":JMJ(t)}if(t!=null)switch(_.DY(X,G,0),typeof t){case "number":X=X.encoder_;tQ(t);BNV(X,f4,$V);break;case "bigint":G=BigInt.asUintN(64,t);G=new ngv(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)));BNV(X.encoder_,G.JSC$8791_lo,G.JSC$8791_hi);break;default:G=JMJ(t),BNV(X.encoder_,G.JSC$8791_lo,G.JSC$8791_hi)}}};
b1V=function(X,t,G){t=_.FH(t);t!=null&&t!=null&&(_.DY(X,G,0),_.VB0(X.encoder_,t))};
_.dxw=function(X,t,G){kY0(X,G,Aqf(t))};
_.etJ=function(X,t,G){t=_.ffs(t);t!=null&&(_.DY(X,G,0),X.encoder_.JSC$8793_buffer_.push(t?1:0))};
_.ggf=function(X,t,G){t=_.W4(t);t!=null&&jjl(X,G,yAf(t))};
FNl=function(X,t,G,y,w){t=qR6(t,y);t!=null&&(G=_.C2f(X,G),w(t,X),_.KaJ(X,G))};
_.TNV=function(X,t,G){t=t==null||typeof t=="string"||t instanceof p4?t:void 0;t!=null&&jjl(X,G,SR_(t,!0).buffer)};
_.AMl=function(X,t,G){t=_.FH(t);t!=null&&(t=parseInt(t,10),_.DY(X,G,0),_.VB0(X.encoder_,t))};
_.ZY=function(X,t){return function(G,y){var w={treatNewDataAsImmutable:!0};y&&Object.assign(w,y);G=lHv(G,void 0,void 0,w);try{var z=new X,B=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;EVV(t)(B,G);var V=z}finally{G.free()}return V}};
_.qx=function(X){return function(t){return Yi0(t,X)}};
sjE=function(X){return function(){return Yi0(this,X)}};
_.DxE=function(X){return iJ(function(t){return t instanceof X&&!cS(t)})};
_.C1=function(X){return function(t){return Siv(X,t)}};
C_f=function(X,t){return htA({child:X,origin:t||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Z10,getPayloadCase:function(G){return G.getPayloadCase()},
createInitMessage:function(G){var y=new K1,w=new qil;G=_.Oi(w,1,G);return _.QW(y,5,Ij,G)}})};
Wt=function(X){return{valueOf:X}.valueOf()};
O1A=function(){var X=null;if(!KN_)return X;try{var t=function(G){return G};
X=KN_.createPolicy("goog#html",{createHTML:t,createScript:t,createScriptURL:t})}catch(G){}return X};
QjY=function(){ukv===void 0&&(ukv=O1A());return ukv};
_.rN=function(X){var t=QjY();X=t?t.createScriptURL(X):X;return new ct(X)};
_.Nx=function(X){if(X instanceof ct)return X.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Pt=function(X){return Object.isFrozen(X)&&Object.isFrozen(X.raw)};
WNs=function(X){return X.toString().indexOf("`")===-1};
Ui=function(X){return new _.Ei(cMf,X)};
mN=function(X){return X instanceof _.Ei};
_.Rj=function(X){if(mN(X))return X.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
i_=function(X){return new ptJ(function(t){return t.substr(0,X.length+1).toLowerCase()===X+":"})};
L1=function(X,t){t=t===void 0?rMf:t;if(mN(X))return X;for(var G=0;G<t.length;++G){var y=t[G];if(y instanceof ptJ&&y.isValid(X))return Ui(X)}};
_.l_=function(X,t){t=t===void 0?rMf:t;return L1(X,t)||vt};
_.xg=function(X){var t=window;if(typeof MediaSource!=="undefined"&&X instanceof MediaSource||typeof t.ManagedMediaSource!=="undefined"&&X instanceof t.ManagedMediaSource)return Ui(URL.createObjectURL(X));t=X.type;t.toLowerCase()==="application/octet-stream"?t=!0:(t=t.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),t=(t==null?void 0:t.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(t[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(t[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(t[1])||/^font\/[\w-]+$/i.test(t[1])));if(!t)throw Error("Z");return Ui(URL.createObjectURL(X))};
_.NNh=function(X){for(var t=_.f1.apply(1,arguments),G=[X[0]],y=0;y<t.length;y++)G.push(String(t[y])),G.push(X[y+1]);return Ui(G.join(""))};
_.EgV=function(X){if(!P_A){a:{var t=document.createElement("a");try{t.href=X}catch(G){X=void 0;break a}X=t.protocol;X=X===":"||X===""?"https:":X}return X}try{t=new URL(X)}catch(G){return"https:"}return t.protocol};
_.Mx=function(X){X instanceof _.Ei?X=_.Rj(X):X=Ux0.test(X)?X:void 0;return X};
XM=function(X,t){t=_.Mx(t);t!==void 0&&(X.href=t)};
tI=function(X){var t=QjY();X=t?t.createHTML(X):X;return new $w(X)};
yb=function(X){if(X instanceof $w)return X.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.wq=function(X,t){X.src=_.Nx(t).toString()};
mx0=function(X,t){X.setAttribute("sandbox","");for(var G=0;G<t.length;G++)X.sandbox.supports&&!X.sandbox.supports(t[G])||X.sandbox.add(t[G])};
_.i1A=function(X,t,G){X.removeAttribute("srcdoc");switch(t){case 0:if(G instanceof ct)throw new Rtv("TrustedResourceUrl",0);mx0(X,[]);t=_.Mx(G);t!==void 0&&(X.src=t);break;case 1:if(!(G instanceof ct))throw new Rtv(typeof G,1);mx0(X,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.wq(X,G);break;case 2:if(G instanceof ct)throw new Rtv("TrustedResourceUrl",2);mx0(X,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
t=_.Mx(G);t!==void 0&&(X.src=t);break;default:_.zr(t)}};
_.zc=function(X,t,G,y){t=_.Mx(t);return t!==void 0?X.open(t,G,y):null};
_.H$=function(X){X=X===void 0?document:X;var t,G;X=(G=(t=X).querySelector)==null?void 0:G.call(t,"script[nonce]");return X==null?"":X.nonce||X.getAttribute("nonce")||""};
_.JI=function(X){var t=QjY();X=t?t.createScript(X):X;return new _.oY(X)};
LNV=function(X){if(X instanceof _.oY)return X.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
vgh=function(X){var t=_.H$(X.ownerDocument);t&&X.setAttribute("nonce",t)};
_.B$=function(X,t){X.textContent=LNV(t);vgh(X)};
_.Vb=function(X,t){X.src=_.Nx(t);vgh(X)};
_.b8=function(X,t){if(X.nodeType===1&&/^(script|style)$/i.test(X.tagName))throw Error("Z");X.innerHTML=yb(t)};
_.kw=function(X,t,G,y){if(X.length===0)throw Error("Z");X=X.map(function(z){if(z instanceof aYl)z=z.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return z});
var w=G.toLowerCase();if(X.every(function(z){return w.indexOf(z)!==0}))throw Error("aa`"+G);
t.setAttribute(G,y)};
_.dq=function(X,t,G){if(t instanceof ct)X.href=_.Nx(t).toString(),X.rel=G;else{if(lYv.indexOf(G)===-1)throw Error("ba`"+G);t=_.Mx(t);t!==void 0&&(X.href=t,X.rel=G)}};
xx0=function(X){return"function"==typeof _.ec&&X instanceof _.ec};
_.fYv=function(X){if(xx0(X))return X.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.MBh=function(X,t){t=_.Mx(t);t!==void 0&&(X.href=t)};
X$J=function(X,t){X&&(t=X.indexOf(t),0<=t&&X.splice(t,1))};
jc=function(X){return typeof X==="function"};
$BA=function(X){return X instanceof gq||X&&"closed"in X&&jc(X.remove)&&jc(X.add)&&jc(X.unsubscribe)};
FM=function(){};
Tc=function(X){tcA(function(){throw X;})};
AI=function(X){return X};
Yw=function(){return GcV(_.f1.apply(0,arguments))};
GcV=function(X){return X.length===0?AI:X.length===1?X[0]:function(t){return X.reduce(function(G,y){return y(G)},t)}};
yI6=function(X){var t;return(t=X!=null?X:void 0)!=null?t:Promise};
w$V=function(X,t){return new Sc(function(G){var y=0;return t.schedule(function(){y===X.length?G.complete():(G.next(X[y++]),G.closed||this.schedule())})})};
zQE=function(X,t){if(!X)throw Error("ca");return new Sc(function(G){var y=new gq;y.add(t.schedule(function(){var w=X[Symbol.asyncIterator]();y.add(t.schedule(function(){var z=this;w.next().then(function(B){B.done?G.complete():(G.next(B.value),z.schedule())})}))}));
return y})};
HLh=function(X,t,G){t=t.schedule(function(){try{G.call(this)}catch(y){X.error(y)}},0);
X.add(t)};
JIV=function(X,t){return new Sc(function(G){var y;G.add(t.schedule(function(){y=X[ow0]();HLh(G,t,function(){var w=y.next(),z=w.value;w.done?G.complete():(G.next(z),this.schedule())})}));
return function(){var w;return jc((w=y)==null?void 0:w.return)&&y.return()}})};
Bq6=function(X,t){return new Sc(function(G){var y=new gq;y.add(t.schedule(function(){var w=X[hI]();y.add(w.subscribe({next:function(z){y.add(t.schedule(function(){return G.next(z)}))},
error:function(z){y.add(t.schedule(function(){return G.error(z)}))},
complete:function(){y.add(t.schedule(function(){return G.complete()}))}}))}));
return y})};
nw6=function(X,t){return new Sc(function(G){return t.schedule(function(){return X.then(function(y){G.add(t.schedule(function(){G.next(y);G.add(t.schedule(function(){return G.complete()}))}))},function(y){G.add(t.schedule(function(){return G.error(y)}))})})})};
Vcf=function(X){return new TypeError("da`"+(X!==null&&typeof X==="object"?"an invalid object":"'"+X+"'"))};
kcv=function(X,t){if(X!=null){if(jc(X[hI]))return Bq6(X,t);if(bLE(X))return w$V(X,t);if(jc(X==null?void 0:X.then))return nw6(X,t);if(Symbol.asyncIterator&&jc(X==null?void 0:X[Symbol.asyncIterator]))return zQE(X,t);if(jc(X==null?void 0:X[ow0]))return JIV(X,t)}throw Vcf(X);};
qB=function(X,t){return t?kcv(X,t):Zx(X)};
Zx=function(X){if(X instanceof Sc)return X;if(X!=null){if(jc(X[hI]))return dBv(X);if(bLE(X))return eQ0(X);if(jc(X==null?void 0:X.then))return jYf(X);if(Symbol.asyncIterator&&jc(X==null?void 0:X[Symbol.asyncIterator]))return gws(X);if(jc(X==null?void 0:X[ow0]))return F3V(X)}throw Vcf(X);};
dBv=function(X){return new Sc(function(t){var G=X[hI]();if(jc(G.subscribe))return G.subscribe(t);throw new TypeError("ea");})};
eQ0=function(X){return new Sc(function(t){for(var G=0;G<X.length&&!t.closed;G++)t.next(X[G]);t.complete()})};
jYf=function(X){return new Sc(function(t){X.then(function(G){t.closed||(t.next(G),t.complete())},function(G){return t.error(G)}).then(null,Tc)})};
F3V=function(X){return new Sc(function(t){for(var G=X[ow0]();!t.closed;){var y=G.next(),w=y.value;y.done?t.complete():t.next(w)}return function(){return jc(G==null?void 0:G.return)&&G.return()}})};
gws=function(X){return new Sc(function(t){TqY(X,t).catch(function(G){return t.error(G)})})};
TqY=function(X,t){var G,y,w,z,B,V;return _.n(function(b){switch(b.nextAddress){case 1:_.CL(b,2,3),z=_.KL(X);case 5:return b.yield(z.next(),8);case 8:y=b.yieldResult;if(y.done){b.jumpTo(3);break}B=y.value;t.next(B);b.jumpTo(5);break;case 3:_.O6(b);_.u8(b,9);if(!y||y.done||!(w=z.return)){b.jumpTo(9);break}return b.yield(w.call(z),9);case 9:_.O6(b,0,0,1);if(G)throw G.error;_.Qb(b,10,1);break;case 10:_.Qb(b,4);break;case 2:V=_.IY(b);G={error:V};b.jumpTo(3);break;case 4:t.complete(),_.W$(b)}})};
AIG=function(X,t){return t?w$V(X,t):eQ0(X)};
Y6J=function(X){return jc(X[X.length-1])?X.pop():void 0};
c$=function(X){var t=X[X.length-1];return t&&jc(t.schedule)?X.pop():void 0};
pL=function(){var X=_.f1.apply(0,arguments),t=c$(X);return t?w$V(X,t):AIG(X)};
rq=function(X){var t=jc(X)?X:function(){return X};
return new Sc(function(G){return G.error(t())})};
NB=function(X){return function(t){if(jc(t==null?void 0:t.lift))return t.lift(function(G){try{return X(G,this)}catch(y){this.error(y)}});
throw new TypeError("fa");}};
U6=function(){return NB(function(X,t){var G=null;X._refCount++;var y=new E6(t,void 0,void 0,void 0,function(){if(!X||X._refCount<=0||0<--X._refCount)G=null;else{var w=X._connection,z=G;G=null;!w||z&&w!==z||w.unsubscribe();t.unsubscribe()}});
X.subscribe(y);y.closed||(G=X.connect())})};
DBw=function(){var X=sYs;var t=t===void 0?0:t;return NB(function(G,y){y.add(X.schedule(function(){return G.subscribe(y)},t))})};
m3=function(X){return NB(function(t,G){var y=0;t.subscribe(new E6(G,function(w){G.next(X.call(void 0,w,y++))}))})};
hQl=function(X){return m3(function(t){return S6s(t)?X.apply(null,_.RY(t)):X(t)})};
OL_=function(X){if(X.length===1){var t=X[0];if(ZL6(t))return{args:t,keys:null};if(t&&typeof t==="object"&&q6l(t)===C8V)return X=K3s(t),{args:X.map(function(G){return t[G]}),
keys:X}}return{args:X,keys:null}};
i8=function(){var X=_.f1.apply(0,arguments),t=c$(X),G=Y6J(X);X=OL_(X);var y=X.args,w=X.keys;if(y.length===0)return qB([],t);t=new Sc(uMY(y,t,w?function(z){for(var B={},V=0;V<z.length;V++)B[w[V]]=z[V];return B}:AI));
return G?t.pipe(hQl(G)):t};
uMY=function(X,t,G){G=G===void 0?AI:G;return function(y){QYG(t,function(){for(var w=X.length,z=Array(w),B=w,V=X.map(function(){return!1}),b=!0,e={i$jscomp$216:0};e.i$jscomp$216<w;e={i$jscomp$216:e.i$jscomp$216},e.i$jscomp$216++)QYG(t,function(g){return function(){qB(X[g.i$jscomp$216],t).subscribe(new LL(y,function(F){z[g.i$jscomp$216]=F;
b&&(V[g.i$jscomp$216]=!0,b=!V.every(AI));b||y.next(G(z.slice()))},function(){return--B===0}))}}(e),y)},y)}};
QYG=function(X,t,G){X?G.add(X.schedule(t)):t()};
IxJ=function(X,t,G,y){var w=[],z=0,B=0,V=!1,b=function(e){z++;Zx(G(e,B++)).subscribe(new E6(t,function(g){t.next(g)},void 0,function(){z--;
for(var g={};w.length&&z<y;g={bufferedValue:void 0})g.bufferedValue=w.shift(),b(g.bufferedValue);!V||w.length||z||t.complete()}))};
X.subscribe(new E6(t,function(e){return z<y?b(e):w.push(e)},void 0,function(){V=!0;
!V||w.length||z||t.complete()}));
return function(){w=null}};
v$=function(X,t){var G=G===void 0?Infinity:G;if(jc(t))return v$(function(y,w){return m3(function(z,B){return t(y,z,w,B)})(Zx(X(y,w)))},G);
typeof t==="number"&&(G=t);return NB(function(y,w){return IxJ(y,w,X,G)})};
W3Y=function(X){X=X===void 0?Infinity:X;return v$(AI,X)};
cI0=function(){var X=_.f1.apply(0,arguments);return W3Y(1)(AIG(X,c$(X)))};
p$s=function(X){return new Sc(function(t){Zx(X()).subscribe(t)})};
aY=function(X,t,G){if(jc(G)){var y=G;G=void 0}if(y)return aY(X,t,G).pipe(hQl(y));y=_.J(jc(X.addEventListener)&&jc(X.removeEventListener)?rIf.map(function(B){return function(V){return X[B](t,V,G)}}):jc(X.addListener)&&jc(X.removeListener)?NqV.map(P8h(X,t)):jc(X.on)&&jc(X.off)?EwV.map(P8h(X,t)):[]);
var w=y.next().value,z=y.next().value;return!w&&bLE(X)?v$(function(B){return aY(B,t,G)})(AIG(X)):new Sc(function(B){if(!w)throw new TypeError("ga");
var V=function(){var b=_.f1.apply(0,arguments);return B.next(1<b.length?b:b[0])};
w(V);return function(){return z(V)}})};
P8h=function(X,t){return function(G){return function(y){return X[G](t,y)}}};
xw=function(){var X=_.f1.apply(0,arguments),t=c$(X);var G=typeof X[X.length-1]==="number"?X.pop():Infinity;return X.length?X.length===1?Zx(X[0]):W3Y(G)(AIG(X,t)):l8};
mBV=function(X){return X.length===1&&UBV(X[0])?X[0]:X};
RQs=function(){var X=mBV(_.f1.apply(0,arguments));return NB(function(t,G){var y=[t].concat(_.RY(X)),w=function(){if(!G.closed)if(y.length>0){try{var z=Zx(y.shift())}catch(V){w();return}var B=new E6(G,void 0,FM,FM);G.add(z.subscribe(B));B.add(w)}else G.complete()};
w()})};
fL=function(X){return NB(function(t,G){var y=0;t.subscribe(new E6(G,function(w){return X.call(void 0,w,y++)&&G.next(w)}))})};
L3l=function(){var X=_.f1.apply(0,arguments);X=mBV(X);return X.length===1?Zx(X[0]):new Sc(iLl(X))};
iLl=function(X){return function(t){for(var G=[],y={i$jscomp$219:0};G&&!t.closed&&y.i$jscomp$219<X.length;y={i$jscomp$219:y.i$jscomp$219},y.i$jscomp$219++)G.push(Zx(X[y.i$jscomp$219]).subscribe(new E6(t,function(w){return function(z){if(G){for(var B=0;B<G.length;B++)B!==w.i$jscomp$219&&G[B].unsubscribe();G=null}t.next(z)}}(y))))}};
vwG=function(){var X=_.f1.apply(0,arguments),t=Y6J(X),G=mBV(X);return G.length?new Sc(function(y){var w=G.map(function(){return[]}),z=G.map(function(){return!1});
y.add(function(){w=z=null});
for(var B={sourceIndex$jscomp$1:0};!y.closed&&B.sourceIndex$jscomp$1<G.length;B={sourceIndex$jscomp$1:B.sourceIndex$jscomp$1},B.sourceIndex$jscomp$1++)Zx(G[B.sourceIndex$jscomp$1]).subscribe(new E6(y,function(V){return function(b){w[V.sourceIndex$jscomp$1].push(b);w.every(function(e){return e.length})&&(b=w.map(function(e){return e.shift()}),y.next(t?t.apply(null,_.RY(b)):b),w.some(function(e,g){return!e.length&&z[g]})&&y.complete())}}(B),void 0,function(V){return function(){z[V.sourceIndex$jscomp$1]=
!0;
!w[V.sourceIndex$jscomp$1].length&&y.complete()}}(B)));
return function(){w=z=null}}):l8};
ax0=function(X){var t,G,y;return!!X&&typeof X.active==="boolean"&&typeof((t=X.clock)==null?void 0:t.now)==="function"&&((G=X.clock)==null?void 0:G.timeline)!==void 0&&!((y=X.lastMeasurement)==null||!y.timestamp)&&typeof X.equivalentTo==="function"&&typeof X.extrapolateToNow==="function"&&typeof X.extrapolateToTime==="function"&&typeof X.map==="function"&&typeof X.joinWith==="function"};
lx0=function(X){function t(G){return typeof G==="boolean"||typeof G==="string"||typeof G==="number"||G===void 0||G===null}
return t(X)?!0:Array.isArray(X)?X.every(t):typeof X==="object"?Object.keys(X).every(function(G){return typeof G==="string"})&&Object.values(X).every(function(G){return Array.isArray(G)?G.every(t):t(G)}):!1};
xBv=function(X){if(lx0(X))return X;if(ax0(X))return{lastMeasurement:{value:xBv(X.lastMeasurement.value),timestamp:MB(X.lastMeasurement.timestamp,new X2(0,X.lastMeasurement.timestamp.timeline))},active:X.active};try{return JSON.parse(JSON.stringify(X))}catch(t){}return String(X)};
$T=function(X,t){return function(G){return new Sc(function(y){return G.subscribe(function(w){X.timeExecution(t,function(){y.next(w)})()},function(w){X.timeExecution(t,function(){y.error(w)})()},function(){X.timeExecution(t,function(){y.complete()})()})})}};
fxv=function(X,t){var G=!1;return new Sc(function(y){var w=X.setTimeout(function(){G=!0;y.next(!0);y.complete()},t);
return function(){G||X.clearTimeout(w)}})};
McV=function(X){X=X.global;if(X.fetchLater)return X.fetchLater.bind(X)};
tK=function(X){return NB(function(t,G){var y=null,w=!1,z;y=t.subscribe(new E6(G,void 0,function(B){z=Zx(X(B,tK(X)(t)));y?(y.unsubscribe(),y=null,z.subscribe(G)):w=!0}));
w&&(y.unsubscribe(),y=null,z.subscribe(G))})};
X1w=function(X,t,G){return function(y,w){var z=G,B=t,V=0;y.subscribe(new E6(w,function(b){var e=V++;B=z?X(B,b,e):(z=!0,b);w.next(B)},void 0,void 0))}};
$VG=function(X){X=X===void 0?null:X;return NB(function(t,G){var y=!1;t.subscribe(new E6(G,function(w){y=!0;G.next(w)},void 0,function(){y||G.next(X);
G.complete()}))})};
G6=function(){return NB(function(X,t){X.subscribe(new E6(t,FM))})};
yr=function(X){return NB(function(t,G){t.subscribe(new E6(G,function(){return G.next(X)}))})};
wp=function(X){return X<=0?function(){return l8}:NB(function(t,G){var y=0;
t.subscribe(new E6(G,function(w){++y<=X&&(G.next(w),X<=y&&G.complete())}))})};
z6=function(X){var t=t===void 0?AI:t;var G;X=(G=X)!=null?G:tkf;return NB(function(y,w){var z,B=!0;y.subscribe(new E6(w,function(V){var b=t(V);if(B||!X(z,b))B=!1,z=b,w.next(V)}))})};
tkf=function(X,t){return X===t};
yKV=function(X){X=X===void 0?G6J:X;return NB(function(t,G){var y=!1;t.subscribe(new E6(G,function(w){y=!0;G.next(w)},void 0,function(){return y?G.complete():G.error(X())}))})};
G6J=function(){return new w1E};
oH=function(){var X=_.f1.apply(0,arguments);return function(t){return cI0(t,pL.apply(null,_.RY(X)))}};
zfA=function(X){return NB(function(t,G){var y=0;t.subscribe(new E6(G,function(w){X.call(void 0,w,y++,t)||(G.next(!1),G.complete())},void 0,function(){G.next(!0);
G.complete()}))})};
HDv=function(){return NB(function(X,t){var G=[];X.subscribe(new E6(t,function(y){G.push(y);1<G.length&&G.shift()},void 0,function(){for(var y=_.J(G),w=y.next();!w.done;w=y.next())t.next(w.value);
t.complete()},function(){G=null}))})};
oT0=function(X,t){var G=arguments.length>=2;return function(y){return y.pipe(X?fL(function(w,z){return X(w,z,y)}):AI,HDv(),G?$VG(t):yKV(function(){return new w1E}))}};
B1=function(X){var t=jc(X)?X:function(){return X};
return jc()?NB(function(G,y){var w=t();(void 0)(w).subscribe(y).add(G.subscribe(w))}):function(G){var y=new JK(G,t);
jc(G==null?void 0:G.lift)&&(y.lift=G.lift);y.source=G;y.subjectFactory=t;return y}};
dp=function(X){var t=new nD(X,void 0,void 0);return function(G){return B1(function(){return t})(G)}};
ek=function(X,t){return NB(X1w(X,t,arguments.length>=2))};
jk=function(){var X=_.f1.apply(0,arguments),t=c$(X);return NB(function(G,y){(t?cI0(X,G,t):cI0(X,G)).subscribe(y)})};
gp=function(X){return NB(function(t,G){var y=null,w=0,z=!1;t.subscribe(new E6(G,function(B){var V;(V=y)==null||V.unsubscribe();V=w++;Zx(X(B,V)).subscribe(y=new E6(G,function(b){return G.next(b)},void 0,function(){y=null;
z&&!y&&G.complete()}))},void 0,function(){(z=!0,!y)&&G.complete()}))})};
F2=function(X,t){t=t===void 0?!1:t;return NB(function(G,y){var w=0;G.subscribe(new E6(y,function(z){var B=X(z,w++);(B||t)&&y.next(z);!B&&y.complete()}))})};
JK0=function(X,t,G){var y=jc(X)||t||G?{next:X,error:t,complete:G}:X;return y?NB(function(w,z){w.subscribe(new E6(z,function(B){var V;(V=y.next)==null||V.call(y,B);z.next(B)},function(B){var V;
(V=y.error)==null||V.call(y,B);z.error(B)},function(){var B;
(B=y.complete)==null||B.call(y);z.complete()}))}):AI};
Bp_=function(){var X=_.f1.apply(0,arguments),t=Y6J(X);return NB(function(G,y){for(var w=X.length,z=Array(w),B=X.map(function(){return!1}),V=!1,b={i$jscomp$229:0};b.i$jscomp$229<w;b={i$jscomp$229:b.i$jscomp$229},b.i$jscomp$229++)Zx(X[b.i$jscomp$229]).subscribe(new E6(y,function(e){return function(g){z[e.i$jscomp$229]=g;
V||B[e.i$jscomp$229]||(B[e.i$jscomp$229]=!0,(V=B.every(AI))&&(B=null))}}(b),void 0,FM));
G.subscribe(new E6(y,function(e){V&&(e=[e].concat(_.RY(z)),y.next(t?t.apply(null,_.RY(e)):e))}))})};
nTh=function(X){var t=[],G=0,y;for(y in X)t[G++]=y;return t};
Vkh=function(X,t){for(var G in X)if(X[G]==t)return!0;return!1};
bDV=function(X,t,G){for(var y in X)if(t.call(G,X[y],y,X))return y};
k6h=function(X){if(!X||typeof X!=="object")return X;if(typeof X.clone==="function")return X.clone();if(typeof Map!=="undefined"&&X instanceof Map)return new Map(X);if(typeof Set!=="undefined"&&X instanceof Set)return new Set(X);if(X instanceof Date)return new Date(X.getTime());var t=Array.isArray(X)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(X)||X instanceof DataView?{}:new X.constructor(X.length),G;for(G in X)t[G]=k6h(X[G]);return t};
dVE=function(X){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return dVE.apply(null,arguments[0]);if(t%2)throw Error("ka");for(var G={},y=0;y<t;y+=2)G[arguments[y]]=arguments[y+1];return G};
efA=function(X){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return efA.apply(null,arguments[0]);for(var G={},y=0;y<t;y++)G[arguments[y]]=!0;return G};
_.T6=function(X){return new aYl(X[0].toLowerCase())};
jHA=function(X){try{return new URL(X,window.document.baseURI)}catch(t){return new URL("about:invalid")}};
gTV=function(X,t){var G=t.createRange();G.selectNode(t.body);X=tI(X);return G.createContextualFragment(yb(X))};
FbV=function(X){X=X.nodeName;return typeof X==="string"?X:"FORM"};
TpV=function(X){X=X.nodeType;return X===1||typeof X!=="number"};
AK=function(X,t,G){X.setAttribute(t,G)};
AK6=function(X){return X.parts.map(function(t){var G=t.descriptor;return""+t.url+(G?" "+G:"")}).join(" , ")};
_.sw=function(X){var t=_.f1.apply(1,arguments);if(t.length===0)return _.rN(X[0]);for(var G=X[0],y=0;y<t.length;y++)G+=encodeURIComponent(t[y])+X[y+1];return _.rN(G)};
_.DA=function(X,t){X=_.Nx(X).toString();var G=X.split(/[?#]/),y=/[?]/.test(X)?"?"+G[1]:"";return Yww(G[0],y,/[#]/.test(X)?"#"+(y?G[2]:G[1]):"",t)};
Yww=function(X,t,G,y){function w(B,V){B!=null&&(Array.isArray(B)?B.forEach(function(b){return w(b,V)}):(t+=z+encodeURIComponent(V)+"="+encodeURIComponent(B),z="&"))}
var z=t.length?"&":"?";y.constructor===Object&&(y=Object.entries(y));Array.isArray(y)?y.forEach(function(B){return w(B[1],B[0])}):y.forEach(w);
return _.rN(X+t+G)};
Sk=function(X,t,G,y){this.top=X;this.right=t;this.bottom=G;this.left=y};
sHv=function(X){X=X.global;if(X.PendingGetBeacon)return X.PendingGetBeacon};
CD=function(X){return function(t){return t.pipe(DVw(X,B1(new hK)))}};
KD=function(X){return function(t){return t.pipe(DVw(X,dp(1)))}};
DVw=function(X,t){function G(y){return new Sc(function(w){return y.subscribe(function(z){Ow(X,function(){return void w.next(z)},3)},function(z){Ow(X,function(){return void w.error(z)},3)},function(){Ow(X,function(){return void w.complete()},3)})})}
return Yw(G,DBw(),t,U6(),G)};
ZDG=function(X){var t=Swv(X);return t===null?new uG(null):t.pipe(m3(function(G){G=G.serialize();if(hfV)G=_.tA.btoa(G);else{for(var y=[],w=0,z=0;z<G.length;z++){var B=G.charCodeAt(z);B>255&&(y[w++]=B&255,B>>=8);y[w++]=B}G=_.i2(y)}return G}),wp(1),KD(X.queue))};
qw_=function(X){var t=t===void 0?{}:t;if(typeof Event==="function")return new Event(X,t);if(typeof document!=="undefined"){var G=document.createEvent("CustomEvent");G.initCustomEvent(X,t.bubbles||!1,t.cancelable||!1,t.detail);return G}throw Error();};
CGV=function(X){return typeof X==="string"?document.getElementById(X):X};
ODl=function(X){var t=!1;t=t===void 0?!1:t;if(X.tagName==="IMG"){if(X.complete&&(!X.naturalWidth||!X.naturalHeight))return!0;var G;if(t&&((G=X.style)==null?void 0:G.display)==="none")return!0}var y,w;return Kbh.test((y=X.getAttribute("width"))!=null?y:"")&&Kbh.test((w=X.getAttribute("height"))!=null?w:"")};
u2Y=function(X,t){if(X.tagName==="IMG")return X.naturalWidth&&X.naturalHeight?!0:!1;try{if(X.readyState)var G=X.readyState;else{var y,w;G=(y=X.contentWindow)==null?void 0:(w=y.document)==null?void 0:w.readyState}return G==="complete"}catch(z){return t===void 0?!1:t}};
QHv=function(X){X||(X=function(t,G,y){t.addEventListener(G,y)});
return X};
p1w=function(X,t){var G=IAv();G=G===void 0?new WbG:G;if(X=CGV(X)){var y=QHv(y);for(var w=!1,z=function(W){w||(w=!0,t(W))},B,V=2,b=0;b<cKG.length;++b)if(cKG[b]===X.tagName){V=3;
B=[X];break}B||(B=X.querySelectorAll(cKG.join(",")));var e=0,g=0,F=!0,T=X=!1;b={};for(var D=0;D<B.length;b={isImg:void 0},D++){var h=B[D];if(!ODl(h))if(b.isImg=h.tagName==="IMG",u2Y(h,G.crossDomainLoadedDefault))X=!0,b.isImg&&(F=!0);else{e++;var u=function(W){return function(c){e--;!e&&F&&z(V);W.isImg&&(c=c&&c.type==="error",g--,c||(F=!0),!g&&T&&F&&z(V))}}(b);
y(h,"load",u);b.isImg&&(g++,y(h,"error",u))}}g===0&&(F=!0);B=null;B=_.tA.document.readyState==="complete";if(e===0&&!X&&B)V=5;else if(e||!X){y(_.tA,"load",function(){!G.pendingImagesBlockLoad||!g&&F?z(4):T=!0});
return}z(V)}};
rK6=function(X,t,G){if(X)for(var y=0;X!=null&&y<500&&!G(X);++y)X=t(X)};
Np0=function(X,t){rK6(X,function(G){try{return G===G.parent?null:G.parent}catch(y){}return null},t)};
PGl=function(X,t){if(X.tagName=="IFRAME")t(X);else{X=X.querySelectorAll("IFRAME");for(var G=0;G<X.length&&!t(X[G]);++G);}};
ET0=function(X){return(X=X.ownerDocument)&&(X.parentWindow||X.defaultView)||null};
UVV=function(X,t,G){try{var y=JSON.parse(G.data)}catch(B){}if(typeof y==="object"&&y&&y.type==="creativeLoad"){var w=ET0(X);if(G.source&&w){var z;Np0(G.source,function(B){try{if(B.parent===w)return z=B,!0}catch(V){}});
z&&PGl(X,function(B){if(B.contentWindow===z)return t(y),!0})}}};
mVE=function(X){return typeof X==="string"?document.getElementById(X):X};
vTY=function(){var X={};return X[0]=_.sw(RfV,"current"),X[1]=_.sw(iDE),X[2]=_.sw(Lbh),X};
Qr=function(X,t){return X.left===t.left&&X.top===t.top&&X.width===t.width&&X.height===t.height};
aAh=function(X,t){return{left:Math.max(X.left,t.left),top:Math.max(X.top,t.top),width:Math.max(0,Math.min(X.left+X.width,t.left+t.width)-Math.max(X.left,t.left)),height:Math.max(0,Math.min(X.top+X.height,t.top+t.height)-Math.max(X.top,t.top))}};
lA_=function(X,t){return{left:Math.round(X.left+t.x),top:Math.round(X.top+t.y),width:X.width,height:X.height}};
xVA=function(X,t,G){if(X&&t!==null&&t!=t.top){if(!t.top)return new _.IH(-12245933,-12245933);t=t.top}try{return(G===void 0?0:G)?(new _.IH(t.innerWidth,t.innerHeight)).round():_.W1(t).round()}catch(y){return new _.IH(-12245933,-12245933)}};
fA_=function(X,t,G){try{if(X){if(!t.top)return new Sk(-12245933,-12245933,-12245933,-12245933);t=t.top}var y=xVA(X,t,G),w=y.height,z=y.width;if(z===-12245933)return new Sk(z,z,z,z);var B=c1(pD(t.document)),V=B.x,b=B.y;return new Sk(b,V+z,b+w,V)}catch(e){return new Sk(-12245933,-12245933,-12245933,-12245933)}};
MkG=function(X){var t;return(t=X.google_tag_data)!=null?t:X.google_tag_data={}};
Xpv=function(X){var t,G;return typeof((t=X.navigator)==null?void 0:(G=t.userAgentData)==null?void 0:G.getHighEntropyValues)==="function"};
tMv=function(X){if(!Xpv(X))return null;var t=MkG(X);if(t.uach_promise)return t.uach_promise;X=X.navigator.userAgentData.getHighEntropyValues($l0).then(function(G){t.uach!=null||(t.uach=G);return G});
return t.uach_promise=X};
klV=function(X){var t;return Gl_(y6Y(wpf(zB_(HoE(obl(J66(BT_(nbl(new VMl,X.architecture||""),X.bitness||""),X.mobile||!1),X.model||""),X.platform||""),X.platformVersion||""),X.uaFullVersion||""),((t=X.fullVersionList)==null?void 0:t.map(function(G){var y=new bov;y=_.rp(y,1,G.brand);return _.rp(y,2,G.version)}))||[]),X.wow64||!1)};
dlY=function(X){var t,G;return(G=(t=tMv(X))==null?void 0:t.then(function(y){return klV(y)}))!=null?G:null};
eB_=function(X,t){return new Sc(function(G){var y=!1,w=Array(t.length);w.fill(void 0);var z=new Set,B=new Set,V=function(F,T){X.running?(w[T]=F,z.add(T),y||(y=!0,Ow(X,function(){y=!1;G.next(_.aV(w))},1))):G.error(new NV(T))},b=function(F,T){B.add(T);
z.add(T);Ow(X,function(){G.error(F)},1)},e=function(F){B.add(F);
Ow(X,function(){B.size===t.length&&G.complete()},1)},g=t.map(function(F,T){return F.subscribe(function(D){return void V(D,T)},function(D){return void b(D,T)},function(){return void e(T)})});
return function(){g.forEach(function(F){return void F.unsubscribe()})}})};
FWY=function(X,t,G){function y(){if(t.debugChannel){var W=t.debugChannel,c=W.next;var P={creativeId:t.debugNames.getName(G),requiredSignals:w,signals:Object.assign({},z),hasPrematurelyCompleted:B,errorMessage:V,erroredSignalKey:b};P={specMajor:2,specMinor:0,specPatch:0,timestamp:MB(t.timeProvider.now(),new X2(0,t.timeProvider.timeline)),instanceId:t.debugNames.getName(t.symbol),creativeState:P};c.call(W,P)}}
for(var w=Object.keys(X),z={},B=!1,V=null,b=null,e={},g=new Set,F=[],T=[],D=_.J(w),h=D.next(),u={};!h.done;u={key$jscomp$396:void 0},h=D.next())u.key$jscomp$396=h.value,h=X[u.key$jscomp$396],h instanceof uG?(e[u.key$jscomp$396]=h.value,g.add(u.key$jscomp$396),t.debugChannel&&(z[String(u.key$jscomp$396)]=xBv(h.value))):(h=h.pipe(z6(function(W,c){return ax0(W)||ax0(c)?!1:W===c}),m3(function(W){return function(c){t.debugChannel&&(z[String(W.key$jscomp$396)]=xBv(c),y());
var P={};return P[W.key$jscomp$396]=c,P}}(u)),tK(function(W){return function(c){if(c instanceof NV)throw new j0l(String(W.key$jscomp$396));
throw c;}}(u)),JK0(function(W){return function(){g.add(W.key$jscomp$396)}}(u),function(W){return function(c){b=String(W.key$jscomp$396);
V=String(c);y()}}(u),function(W){return function(){g.has(W.key$jscomp$396)||(B=!0,y())}}(u))),T.push(u.key$jscomp$396),F.push(h));
(X=Object.keys(z).length>0)&&y();D=eB_(t.queue,F).pipe(tK(function(W){if(W instanceof NV)throw new gbs(String(T[W.inputObservableIndex]));throw W;}),m3(function(W){return Object.freeze(Object.assign.apply(Object,[{},
e].concat(_.RY(W))))}));
return(F=F.length>0)&&X?xw(pL(Object.freeze(e)),D):F?D:pL(Object.freeze(e))};
TT6=function(X,t,G,y,w){return X.performanceMonitor.timeExecution.bind(X.performanceMonitor)(733,function(){var z={};try{return t.pipe(tK(function(B){y(Object.assign({},z,{error:B}));return l8}),v$(function(B){try{var V=G(X,B)}catch(e){return y(Object.assign({},z,{error:e instanceof Error?e:String(e)})),l8}var b={};
return FWY(V,X,B.symbol).pipe(JK0(function(e){b=e}),dp(1),U6()).pipe(w,tK(function(e){y(Object.assign({},b,{error:e}));
return l8}),oH(void 0),m3(function(){return!0}))})).pipe(ek(function(B){return B+1},0),tK(function(B){y(Object.assign({},z,{error:B}));
return l8}))}catch(B){return y(Object.assign({},z,{error:B})),l8}})()};
P1=function(X){var t=new Map;if(typeof X!=="object"||X===null)return t;Object.values(X).forEach(function(G){G&&typeof G.extrapolateToNow==="function"&&(t.has(G.clock.timeline)||t.set(G.clock.timeline,G.clock.now()))});
return t};
A60=function(X,t){return typeof X==="string"?encodeURIComponent(X):typeof X==="number"?String(X):Array.isArray(X)?X.map(function(G){return A60(G,t)}).join(","):X instanceof X2?X.toString():X&&typeof X.extrapolateToNow==="function"?A60(X.extrapolateUsingTimestampMap(t).value,t):X===!0?"1":X===!1?"0":X===void 0||X===null?null:X instanceof YFs?s06(X):[X.top,
X.left,X.top+X.height,X.left+X.width].join()};
Dls=function(X,t){X=Object.entries(X).map(function(G){var y=_.J(G);G=y.next().value;y=y.next().value;y=A60(y,t);return y===null?"":G+"="+y}).filter(function(G){return G!==""});
return X.length?X.join("&"):""};
Zov=function(X,t){var G=SFf,y=hBE;t=t===void 0?.01:t;return function(w){t>0&&Math.random()<=t&&(X.global.HTMLFencedFrameElement&&X.global.fence&&typeof X.global.fence.reportEvent==="function"&&X.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),w=Object.assign({},w,{errorMessage:w.error instanceof Error&&w.error.message?w.error.message:String(w.error),errorStack:w.error instanceof Error&&w.error.stack?String(w.error.stack):null,errorName:w.error instanceof
Error&&w.error.name?String(w.error.name):null,errorContext:String(X.performanceMonitor.timedFunctionContext),errorEscapedQueryId:w.escapedQueryId}),G(Object.assign({},w,{payloadMapper:function(){return function(z){try{return y(Object.assign({},z))}catch(B){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),P1(w)).forEach(function(z){X.beaconFactory.makeBeacon(z).sendNow()}))}};
qFw=function(){var X=_.f1.apply(0,arguments);return function(t){var G=t.pipe(dp(1),U6());t=X.map(function(y){return G.pipe(y,oH(!0))});
return i8(t).pipe(wp(1),G6())}};
Cff=function(){var X=_.f1.apply(0,arguments);return function(t){var G=t.pipe(dp(1),U6());t=X.map(function(y){return G.pipe(y,oH(!0))});
return xw.apply(null,_.RY(t)).pipe(wp(1),G6())}};
KWs=function(X,t){return function(G){var y=G.pipe(dp(1),U6());G=y.pipe(X,oH(!0));y=y.pipe(Yw(t,dp(),U6()),oH(!0));G=i8([G,y]);return L3l(G,y).pipe(wp(1),G6())}};
OoV=function(X,t,G){G(!0)};
uoY=function(X,t){return Yw(gp(function(G){var y=X(G),w=t(G),z={};return y&&w&&z?new Sc(function(B){w(y,z,function(V){B.next(Object.assign({},G,{canEmit:V}));B.complete()});
return function(){}}):Ew}),fL(function(G){return G.canEmit}))};
Q0E=function(X){var t={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(G){return G.pipe(gp(function(y){return new Sc(function(w){function z(){V.disconnect();b.unsubscribe()}
var B=X.MutationObserver;if(B&&y.ref!==void 0){var V=new B(function(e){w.next(e)});
V.observe(y.ref,t);var b=y.JSC$9288_released.subscribe(z);return z}})}))}};
IoV=function(X){if(X.measurementDeferralState===3)return null;if(X.timeOnScreenReason!==void 0){var t=X.creativeFound===!1?"n":null;if(t!==null)return t}return X.geometricMeasurementErrors instanceof Uw?"msf":X.contextValidationErrors instanceof mb?"c":X.contextVisibilityKnown===!1?"pv":X.geometricMeasurementErrors||X.contextValidationErrors?"x":null};
c6Y=function(X,t){return X.replace(WW6,function(G,y){try{var w=_.RH.get(t,y);if(w==null||w.toString()==null)return G;w=w.toString();if(w==""||!_.JA(w==null?"":String(w)))return encodeURIComponent(w).replace(/%2C/g,",")}catch(z){}return G})};
ppE=function(X,t){var G=Object.assign({},X),y=X.userAgentClientHints;G=(delete G.userAgentClientHints,G);G=X.payloadMapper(G);var w=Dls(G,t);return _.iG(X.urlPrefixes,function(z){var B="";typeof y==="string"&&(B="&"+Dls({uach:y},t));var V={};return c6Y(z,(V.VIEWABILITY=w,V))+B})};
SFf=function(X,t){var G=X.payloadMapper(X),y=Dls(G,t);return y?_.iG(X.urlPrefixes,function(w){w=w.indexOf("?")>=0?w:w+"?";w="?&".indexOf(w.slice(-1))>=0?w:w+"&";return w+y}):X.urlPrefixes};
r6h=function(){return Yw(fL(function(X){return X!==void 0}),m3(function(X){return X}))};
NT_=function(X){return Yw(m3(function(){return!0}),jk(!1),KD(X))};
PfJ=function(X){return X.length<=0?l8:i8(X.map(function(t){var G=0;return t.pipe(m3(function(y){return{index:G++,value:y}}))})).pipe(fL(function(t){return t.every(function(G){return G.index===t[0].index})}),m3(function(t){return t.map(function(G){return G.value})}))};
EbJ=function(X,t){X.currentState&&(X.previousState=X.currentState);X.currentState=t;X.previousState&&X.previousState.value?(t=Math.max(0,MB(t.timestamp,X.previousState.timestamp)),X.totalTime+=t,X.consecutiveTime+=t):X.consecutiveTime=0;return X};
UlV=function(){return Yw(ek(EbJ,{totalTime:0,consecutiveTime:0}),m3(function(X){return X.totalTime}))};
mlw=function(){return Yw(ek(EbJ,{totalTime:0,consecutiveTime:0}),m3(function(X){return X.consecutiveTime}))};
RBV=function(X,t){return function(G){return PfJ(t.map(function(y){return G.pipe(X(y))}))}};
ioG=function(){var X;return Yw(JK0(function(t){return void(X=t.timestamp)}),mlw(),m3(function(t){return{timestamp:X,
value:Math.round(t)}}))};
LWJ=function(X,t){return Qr(X.topWindowViewportExternalGeometry,t.topWindowViewportExternalGeometry)&&Qr(X.elementGeometry,t.elementGeometry)&&Qr(X.exposedViewportLocalGeometry,t.exposedViewportLocalGeometry)&&Qr(X.intersectionGeometry,t.intersectionGeometry)&&X.elementGeometrySourceName===t.elementGeometrySourceName&&X.measurementRequests===t.measurementRequests&&X.viewportGeometrySourceName===t.viewportGeometrySourceName&&X.viewportLocalAppOffset.x===t.viewportLocalAppOffset.x&&X.viewportLocalAppOffset.y===
t.viewportLocalAppOffset.y};
foA=function(X,t){return function(G){return function(y){var w=y.pipe(B1(new hK),U6());y=G.element.pipe(z6());w=w.pipe(m3(function(z){return z.value}));
return i8([y,w,t]).pipe(m3(function(z){var B=_.J(z);z=B.next().value;var V=B.next().value;B=B.next().value;if(z.ref===void 0)var b={top:0,left:0,width:0,height:0};else{b=z.ref.getBoundingClientRect();var e=z.ref,g=X.global,F=new _.LD(0,0),T=v1(_.aH(e));if(vbA(T,"parent")){do{if(T==g)var D=_.lG(e);else D=aos(e),D=new _.LD(D.left,D.top);F.x+=D.x;F.y+=D.y}while(T&&T!=g&&T!=T.parent&&(e=T.frameElement)&&(T=T.parent))}b={top:F.y,left:F.x,width:b.width,height:b.height}}b=lA_(b,V.viewportLocalAppOffset);
g=aAh(b,V.exposedViewportLocalGeometry);F=X.timeProvider.now();T=Object;e=T.assign;if(B!==2||X.inCrossDomainIframe||g.width<=0||g.height<=0)var h=!1;else try{var u=X.document.elementFromPoint(g.left+g.width/2,g.top+g.height/2);h=u?!lo0(u,z):!1}catch(W){h=!1}return{timestamp:F,value:e.call(T,{},V,{elementGeometrySourceName:"geo",intersectionGeometry:h?xlG.intersectionGeometry:g,elementGeometry:b})}}),CD(X.queue))}}};
lo0=function(X,t,G){G=G===void 0?0:G;return X.ref===void 0||t.ref===void 0?!1:X.ref===t.ref||_.xT(t.ref,function(y){return y===X.ref})?!0:t.ref.ownerDocument&&t.ref.ownerDocument.defaultView&&t.ref.ownerDocument.defaultView===t.ref.ownerDocument.defaultView.top?!1:G<10&&t.ref.ownerDocument&&t.ref.ownerDocument.defaultView&&t.ref.ownerDocument.defaultView.frameElement?lo0(X,new fD(t.ref.ownerDocument.defaultView.frameElement),G+1):!0};
$tG=function(X){return function(t){return t.pipe(X.ResizeObserver?MM6(X):Xm_(X),dp(1),U6())}};
MM6=function(X){return function(t){return t.pipe(gp(function(G){var y=X.ResizeObserver;if(!y||G.ref===void 0)return pL(xlG.elementGeometry);var w=(new Sc(function(z){function B(){G.ref!==void 0&&V.unobserve(G.ref);V.disconnect();b.unsubscribe()}
if(G.ref===void 0)return z.complete(),function(){};
var V=new y(function(e){e.forEach(function(g){z.next(g)})});
V.observe(G.ref);var b=G.JSC$9288_released.subscribe(B);return B})).pipe($T(X.performanceMonitor,736),m3(function(z){return z.contentRect}));
return xw(pL(G.ref.getBoundingClientRect()),w)}),z6(Qr))}};
Xm_=function(X){return function(t){var G=t.pipe(Q0E(X)),y=X.onResize;G=xw(t.pipe(m3(function(){return qw_("resize")})),G,y);
return i8(t,G).pipe($T(X.performanceMonitor,737),m3(function(w){w=_.J(w).next().value;return w.ref===void 0?void 0:w.ref.getBoundingClientRect()}),r6h(),z6(Qr))}};
yWG=function(X,t){var G=t0E(X,t).pipe(dp(1),U6());return function(y){return function(w){w=w.pipe(gp(function(z){return z.element}),z6());
return i8([G,w]).pipe(gp(function(z){var B=_.J(z);z=B.next().value;B=B.next().value;return Gy_(X,z.intersectionObserver,$tG(X),z.observations,y,z.flushRecords,B)}),CD(X.queue))}}};
wm6=function(X){return m3(function(t){return t.value.viewportGeometrySourceName!=="nio"?t:Object.assign({},t,{value:Object.assign({},t.value,{exposedViewportLocalGeometry:MV(X,!0),topWindowViewportExternalGeometry:MV(X,!0)})})})};
zKV=function(X,t){return pL(t).pipe(X,m3(function(){return t}))};
t0E=function(X,t){return X.timeProvider.timeline!==Hts?rq(new Uw(2)):X.MutationObserver?typeof IntersectionObserver==="undefined"?rq(new Uw(0)):(new Sc(function(G){var y=new hK,w=new Xo(y.next.bind(y),{threshold:[].concat(_.RY(t))});G.next({observations:y.pipe($T(X.performanceMonitor,735)),intersectionObserver:w,flushRecords:function(z){z=w.takeRecords(z);z.length>0&&y.next(z)}})})).pipe(wp(1),dp(1),U6()):rq(new Uw(1))};
oHY=function(X){return kcv(X.sort(function(t,G){return t.time-G.time}),sYs)};
Gy_=function(X,t,G,y,w,z,B){return new Sc(function(V){function b(){h||(h=!0,B.ref!==void 0&&t.unobserve(w,B.ref),g.unsubscribe(),D.unsubscribe(),T.unsubscribe(),u.unsubscribe())}
if(B.ref!==void 0){JWw(t,w);t.observe(w,B.ref);var e=new $b({timestamp:X.timeProvider.now(),value:Object.assign({},xlG,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),g=y.pipe(v$(function(W){return oHY(W)}),fL(function(W){return W.target===B.ref}),m3(function(W){return{timestamp:new X2(W.time,Hts),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:W.rootBounds||t6,topWindowViewportExternalGeometry:W.rootBounds||MV(X,!0),measurementRequests:F,elementGeometrySourceName:"nio",intersectionGeometry:W.intersectionRect,elementGeometry:W.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:W.isIntersecting,isV2Visible:W.isVisible}}}),B1(e),U6()).subscribe(V),F=new hK,T=F.subscribe(function(){z(w);
V.next({timestamp:X.timeProvider.now(),value:e.value.value});B.ref!==void 0&&(t.unobserve(w,B.ref),t.observe(w,B.ref))}),D=zKV(G,B).subscribe(function(){F.next()}),h=!1,u=B.JSC$9288_released.subscribe(function(){return b()});
return b}})};
Bhv=function(X,t){var G=X.getOnBackgrounded().pipe(m3(function(){return"b"}));
return L3l(t,G).pipe(wp(1),KD(X.queue))};
Gl=function(X){return function(t){var G;return t.pipe(JK0(function(y){return void(G=y.timestamp)}),m3(function(y){return y.value}),X,m3(function(y){return{timestamp:G,
value:y}}))}};
nHl=function(X){return X.intersectionGeometry.width*X.intersectionGeometry.height/(X.elementGeometry.width*X.elementGeometry.height)};
ys=function(X,t,G){G=G===void 0?function(y,w){return y===w}:G;
return X.timestamp.equals(t.timestamp)&&G(X.value,t.value)};
Hp=function(X,t){return t.pipe(m3(function(G){return new wT(X.timeProvider,{timestamp:X.timeProvider.now(),value:G})}))};
V0s=function(X){return function(t){return t.pipe(Bp_(X),m3(function(G){var y=_.J(G);G=y.next().value;y=y.next().value;var w=G.value;return{timestamp:G.timestamp,value:w>=1?!0:w<=0?!1:w>=y}}))}};
kys=function(){return Yw(fL(function(X,t){return t>0}),btE,jk(-1),z6())};
dtf=function(X,t,G){return X?i8([t,G]).pipe(fL(function(y){var w=_.J(y);y=w.next().value;w=w.next().value;return y.timestamp.equals(w.timestamp)}),m3(function(y){var w=_.J(y);
y=w.next().value;w=w.next().value;return y.value>w.value?y:w})):t};
gH_=function(X){return function(t){var G=t.pipe(eKG),y=t.pipe(j5w);return X instanceof Sc?X.pipe(gp(function(w){return dtf(w,G,y)})):dtf(X.value,G,y)}};
qm0=function(X,t,G,y){var w=y.geometryIsOccluded,z=y.exposureThreshold,B=y.wasLargeAdAtRender,V=y.allowLargeAdThreshold,b=y.largeAdExposureThreshold,e=y.mayUseViewportShareExposure,g=y.hasMeasurementStarted;y=y.useIntersectionObserverV2;t=F$l(X,G,t);G=ThA(X,G);y=AWv(t,y);var F=YmV(X,w,e,t),T=F.pipe(m3(function(L){return L.value}),z6(),KD(X),ek(function(L,x){return Math.max(L,x)},0)),D=F.pipe(m3(function(L){return L.value}),kys(),KD(X)),h=t.pipe(s5s,m3(function(L){return L.value}),wp(2),z6(),KD(X));
B=DtV(X,t,B,V);var u=B.pipe(jk(!1),z6(),m3(function(L){return L?b:z}));
V=F.pipe(V0s(u),z6(),KD(X));var W=i8([V,t]).pipe(fL(function(L){var x=_.J(L);L=x.next().value;x=x.next().value;return L.timestamp.equals(x.timestamp)}),m3(function(L){var x=_.J(L);
L=x.next().value;x=x.next().value;return{visible:L.value,geometry:x.value.elementGeometry}}),ek(function(L,x){return!x.visible&&L.visible?L:x},{visible:!1,
geometry:t6}),m3(function(L){return L.geometry}),jk(t6),KD(X),z6(Qr));
e=e instanceof Sc?e.pipe(z6(),yr()):Ew;u=i8([e,u]).pipe(yr());var c=t.pipe(fL(function(L){return L.value.viewportGeometrySourceName!=="ns"&&L.value.elementGeometrySourceName!=="ns"}),ek(function(L){return L+1},0),jk(0),KD(X)),P=G.pipe(yr(!0),jk(!1),KD(X));
P=i8([g,P]).pipe(m3(function(L){var x=_.J(L);L=x.next().value;x=x.next().value;return L&&!x}),KD(X));
var l=t.pipe(SmG,z6()),R=l.pipe(m3(function(L){return L.value}),ek(function(L,x){return Math.max(L,x)},0),z6(),KD(X));
X=l.pipe(m3(function(L){return L.value}),kys(),KD(X));
return{shouldResetExposureSignals:e,shouldResetViewabilitySignals:u,geometrySignals:{readyGeometryWithDefault:t,measurementStrategy:t.pipe(hK6),creativePosition:W.pipe(z6(Qr)),visible:V.pipe(z6(ys)),timestampedExposure:F.pipe(z6(ys)),maximumExposure:T,minimumExposure:D,browserSize:t.pipe(ZtY,z6(_.Jq)),timestampedScreenShare:l,maxScreenShare:R,minScreenShare:X,geometricMeasurementErrors:G,measurementRequests:t.pipe(m3(function(L){return L.value.measurementRequests})),
isLargeAd:B,geometryIsOccluded:w,hasMeasurementStarted:g,geometryMeasurable:P,validMeasurementCount:c,loadTimeExposure:h,v2VisibilityBitVector:y}}};
ThA=function(X,t){return t.pipe(fL(function(){return!1}),m3(function(G){return G}),tK(function(G){return o0(new uG(G),X)}))};
F$l=function(X,t,G){return t.pipe(RQs(Ew),KD(X)).pipe(z6(function(y,w){return ys(y,w,LWJ)}),jk({timestamp:G.now(),
value:xlG}),KD(X))};
YmV=function(X,t,G,y){G=y.pipe(gH_(G),Gl(m3(function(w){return Math.round(w*100)/100})),KD(X));
return t instanceof uG?G:i8([G,t]).pipe(m3(function(w){var z=_.J(w);w=z.next().value;z=z.next().value;return{timestamp:z.timestamp.maximum(w.timestamp),value:z.value?0:w.value}}),z6(ys),KD(X))};
DtV=function(X,t,G,y){t=[t.pipe(m3(function(w){return w.value.elementGeometry.width*w.value.elementGeometry.height>=242500}))];
G instanceof Sc&&t.push(G.pipe(m3(function(w){return!!w})));
G=i8(t);return y?G.pipe(m3(function(w){return w.some(function(z){return z})}),jk(!1),z6(),KD(X)):o0(new uG(!1),X)};
AWv=function(X,t){X=i8([X,t]).pipe(m3(function(w){var z=_.J(w);w=z.next().value;if(z.next().value&&w.value.isIntersecting)return w.value.isV2Visible}),z6());
var G=X.pipe(m3(function(w){return w===void 0?!0:w}),ek(function(w,z){return w||!z},!1)),y=X.pipe(ek(function(w,z){return z===void 0?w:z?!1:w!=null?w:!0},void 0),m3(function(w){return!!w}));
return i8([t,vwG(X,G,y)]).pipe(m3(function(w){var z=_.J(w);w=z.next().value;var B=_.J(z.next().value);z=B.next().value;var V=B.next().value;B=B.next().value;var b=0;if(!w)return 0;if(z===void 0)return 16;z&&(b|=1);z||(b|=2);V&&(b|=4);B&&(b|=8);return b}))};
Iyh=function(X,t,G,y,w){var z=Cmw.timeThresholdMs;var B=B===void 0?new K$0(t,y):B;return(new Sc(function(V){var b=G.pipe(jk(void 0),gp(function(){return Otw(w)})).pipe(m3(function(e){var g=e.value;
e=e.timestamp;var F=g.visible;g=g.consecutiveViewTime;var T=g>=z;T||!F?uOJ(B):(e=Math.max(0,MB(t.now(),e)),Q56(B,Math.max(0,z-g-e)));return T}),ek(function(e,g){return g||e},!1),z6()).subscribe(V);
return function(){B.dispose();b.unsubscribe()}})).pipe(F2(function(V){return!V},!0),KD(X))};
Otw=function(X){return PfJ([X,X.pipe(ioG())]).pipe(m3(function(t){var G=_.J(t);t=G.next().value;G=G.next().value;return{timestamp:t.timestamp,value:{visible:t.value,consecutiveViewTime:G.value}}}),z6(function(t,G){return ys(t,G,function(y,w){return y.consecutiveViewTime===w.consecutiveViewTime&&y.visible===w.visible})}))};
W$0=function(){return Yw(mlw(),ek(function(X,t){return Math.max(X,t)},0),m3(function(X){return Math.round(X)}))};
cW0=function(X){return Yw(V0s(pL(X)),W$0())};
pmv=function(X,t){return t instanceof Sc?t.pipe(gp(function(G){return(G=G?15:null)?rq(new Uw(G)):X})):(t=t.value?15:null)?rq(new Uw(t)):X};
rWE=function(X){var t=new Uw(13);if(X.length<1)return{chain:l8,capturedErrors:l8};var G=new hK,y=X[0];return{chain:X.slice(1).reduce(function(w,z){return w.pipe(tK(function(B){G.next(B);return z}))},y).pipe(tK(function(w){G.next(w);
return rq(t)}),B1(new hK),U6()),
capturedErrors:G}};
Nhf=function(X,t){var G=X.pipe(B1(new hK),U6());return gp(function(y){return G.pipe(t(y))})};
EHv=function(X,t){if(X.inCrossDomainIframe)return rq(new Uw(6));var G=new hK;return xw(pL({}),t,G).pipe(m3(function(){return{timestamp:X.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Pms(X),topWindowViewportExternalGeometry:MV(X,!0),measurementRequests:G,viewportLocalAppOffset:{x:0,y:0}}}}),CD(X.queue))};
Pms=function(X){var t=MV(X,!1);if(!X.inIframe||!UtG(X.global.parent)||X.global.parent===X.global)return t;var G=new J6(X.global.parent,X.debugChannel);G.beaconFactory=X.beaconFactory;G=Pms(G);X=X.global.frameElement.getBoundingClientRect();return aAh(lA_(aAh(G,X),{x:t.left-X.left,y:t.top-X.top}),t)};
mtl=function(X){if(X.prerendering)return 3;var t;return(t={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[X.visibilityState||X.webkitVisibilityState||X.mozVisibilityState||""])!=null?t:0};
RKh=function(X){return X.document.JSC$9299_onVisibilityChange.pipe(m3(function(t){return t==="visible"}),z6(),KD(X.queue))};
itl=function(X,t,G){var y;return t.pipe(z6(),gp(function(w){return G.pipe(m3(function(){if(!y){y=!0;try{w.next()}finally{y=!1}}return!0}))}),jk(!1),KD(X.queue))};
L$J=function(X){return Yw(Gl(m3(function(t){return t>=1?!0:t<=0?!1:t>=X})),UlV(),m3(function(t){return Math.round(t)}))};
ayY=function(X,t,G,y,w){var z=vHV;if(z.length>1)for(var B=0;B<z.length-1;B++)if(z[B]<z[B+1])throw Error();B=w.pipe(jk(void 0),gp(function(){return G.pipe(ioG())}),z6(),KD(X));
w=w.pipe(jk(void 0),gp(function(){return G.pipe(W$0())}),z6(),KD(X));
return{totalMeasurementTime:y.pipe(jk(void 0),gp(function(){return t.pipe(m3(function(V){return{timestamp:V.timestamp,value:!0}}),UlV())}),z6(),KD(X)),
totalUnviewedTime:y.pipe(jk(void 0),gp(function(){return t.pipe(m3(function(V){return{timestamp:V.timestamp,value:V.value===0}}),UlV())}),z6(),KD(X)),
maxTimeOnScreen:y.pipe(jk(void 0),gp(function(){return t.pipe(RBV(cW0,z))}),z6(_.Jq),KD(X)),
timeOnScreen:y.pipe(jk(void 0),gp(function(){return t.pipe(RBV(L$J,z),m3(function(V){return V.map(function(b,e){return e>0?b-V[e-1]:b})}))}),z6(_.Jq),KD(X)),
maxConsecutiveViewTime:w,consecutiveViewTime:B.pipe(z6(ys),KD(X))}};
xtG=function(X){var t=!0;t=t===void 0?!1:t;return Yw(gp(function(G){return lyJ(X.document,G,t)}),KD(X.queue))};
fys=function(X,t,G){var y=G.pipe(m3(function(w){return{value:w,timestamp:X.timeProvider.now()}}),z6(ys));
return t instanceof Sc?t.pipe(z6(),gp(function(w){return w?o0(new uG({value:!1,timestamp:X.timeProvider.now()}),X.queue):y})):t.value===!1?y:new uG(!1)};
M0f=function(X,t,G,y,w,z,B){var V=Cmw;t=t instanceof Sc?t.pipe(jk(!1),z6()):t;var b=!X.isMobile();G=fys(X,G,y);X=B.measurableCreative.pipe(NT_(X.queue));return Object.assign({},V,{geometryIsOccluded:G,wasLargeAdAtRender:w,allowLargeAdThreshold:b,mayUseViewportShareExposure:t,hasMeasurementStarted:X,useIntersectionObserverV2:z})};
$dJ=function(X,t,G,y,w,z){var B=1;z=z===void 0?!0:z;B=B===void 0?.01:B;var V=V===void 0?X.timeProvider.intervalObservable(100).pipe(KD(X.queue)):V;return X.performanceMonitor.timeExecution(916,function(){return X0_(X,t.pipe(CD(X.queue)),G.pipe(CD(X.queue)),y,w,z,B,V)})()};
X0_=function(X,t,G,y,w,z,B,V){var b=RKh(X).pipe(m3(function(g){return!g})),e=new tgv(X,[new Ghw(X,vHV),
new yf_(X,V)]);V=qFw(w0V,z8J);return TT6(X,t,function(g,F){var T=o0(new uG(F.element),g.queue).pipe(xtG(g),KD(g.queue)),D={loadedElement:T,shouldMeasure:T.pipe(yr(!0)),measurableCreative:T.pipe(m3(function(L){var x=x===void 0?Symbol():x;return Object.freeze({symbol:x,element:o0(new uG(L),g.queue)})})),
creativeSearchResult:o0(new uG("mue"),g.queue)},h=new uG(!1),u=new uG(!1),W=new uG(17),c=new uG(!1),P=new uG(!1),l=o0(Bp,g.queue);h=e.buildGeometrySource(D,{inApp:h,useV2:!1,requestSource:o0(W,g.queue)}).geometrySource;D=M0f(g,c,u,b,P,l,D);u=qm0(g.queue,g.timeProvider,h,D);D=u.geometrySignals;c=u.shouldResetViewabilitySignals;u=ayY(g.queue,D.timestampedExposure,D.visible,u.shouldResetExposureSignals,c);c=Iyh(g.queue,g.timeProvider,c,D.measurementRequests,D.visible);P=G.pipe(fL(function(L){return L===
F.element.ref}),m3(function(){return"ur"}));
l=fxv(g.timeProvider,w).pipe(yr("t"));P=Bhv(g,xw(P,l));l=itl(g,D.measurementRequests,P.pipe(fL(function(L){return L!==null})));
h=P.pipe(fL(function(L){return L!==null}),m3(function(){return mtl(g.global.document)===1}));
var R=HYl(g.document);return Object.assign({},{beaconFactory:new uG(g.beaconFactory),context:new uG(g),inferredPingId:new uG("lidar2"),timeOnScreenPingId:new uG("lidartos"),binaryContext:new uG(17),binaryVersion:new uG(y),requestSource:W,contextValidationErrors:new uG(g.validate()?null:new mb),contextVisibilityKnown:new uG(R),payloadMapper:new uG(hBE),endOfSessionReason:P,timeOnScreenReason:P,requestMeasurementOnEndOfSession:l,hasImpressionFired:oSv,crossDomainIframeState:new uG(g.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Bp,inFetchLaterBeaconExperiment:Bp,isTurtlex:Bp,turtlexReportEventData:new uG(""),reportFencedFrameEvent:Ew,isViewableAttributionEnabled:Bp,inViewableAttributionExperiment:new uG(0),fetchBeaconFactory:Ew,supportsPendingBeacon:Bp,supportsFetchLater:Bp,emit:new uG(OoV),beginToRenderEvent:new uG(Symbol()),activeViewUnmeasurableEvent:new uG(Symbol()),activeViewViewableEvent:new uG(Symbol()),creativeFound:oSv,immediateUrlPrefixes:new uG(F.immediateUrls),timeOnScreenUrlPrefixes:new uG(F.timeOnScreenUrls),
cpmavUrls:Ew,viewableRelayUrls:Ew,measurementDeferralState:new uG(2),urlSerializer:new uG(ppE),viewUrlSerializer:new uG(JfV),isCreativeLoaded:T.pipe(NT_(g.queue)),pageVisible:b.pipe(m3(function(L){return!L})),
eosPageVisible:h,timestampedExposureHistory:D.timestampedExposure.pipe(ek(function(L,x){L.push(x);return L},[]))},D,{viewable:Hp(g,c),
maxTimeOnScreen:Hp(g,u.maxTimeOnScreen),timeOnScreen:Hp(g,u.timeOnScreen),maxConsecutiveViewTime:Hp(g,u.maxConsecutiveViewTime),consecutiveViewTime:u.consecutiveViewTime.pipe(m3(function(L){return new wT(g.timeProvider,L)})),
totalMeasurementTime:Hp(g,u.totalMeasurementTime),totalUnviewedTime:Hp(g,u.totalUnviewedTime),userAgentClientHints:ZDG(g),clientOrderPingCounter:new uG(new YFs)})},Zov(X,B),Cff(z?KWs(V,BnJ):KWs(V,nS6),Vgw))};
bY6=function(X){var t=_.f1.apply(1,arguments).filter(Boolean).join("&");if(!t)return X;var G=X.match(/[?&]adurl=/);return G?X.slice(0,G.index+1)+t+"&"+X.slice(G.index+1):X+(X.indexOf("?")<0?"?":"&")+t};
no=function(X,t){return t?"&"+X+"="+encodeURIComponent(t):""};
khE=function(){try{var X,t;return!!((X=window)==null?0:(t=X.top)==null?0:t.location.href)&&!1}catch(G){return!0}};
_.Vs=function(X){X&&typeof X.dispose=="function"&&X.dispose()};
_.bf=function(X){for(var t=0,G=arguments.length;t<G;++t){var y=arguments[t];_.xJ(y)?_.bf.apply(null,y):_.Vs(y)}};
e8h=function(){var X=ddE();X=X===void 0?"bevasrsg":X;return new Promise(function(t){var G=window===window.top?window:khE()?window:window.top,y=G[X],w;((w=y)==null?0:w.bevasrs)?t(new kb(y.bevasrs)):(y||(y={},y=(y.nqfbel=[],y),G[X]=y),y.nqfbel.push(function(z){t(new kb(z))}))})};
j2Y=function(X){var t={c:X.qe,e:X.gds,mc:X.xo3,me:X.nXi};X.i4&&(t.co={c:X.i4.xlO,a:X.i4.mOT,s:X.i4.lUM});return t};
gSh=function(X){var t,G,y={qe:X.c,gds:X.e,xo3:(t=X.mc)!=null?t:!1,nXi:(G=X.me)!=null?G:!1};X.co&&(y.i4={xlO:X.co.c,mOT:X.co.a,lUM:X.co.s});return y};
F6v=function(X){return function(){var t;return _.n(function(G){if(G.nextAddress==1)return G.yield(X(),2);t=G.yieldResult;return G.return({f:function(){return t.avb()},
c:function(y){return t.j3b(y)},
m:function(y){return t.aP(gSh(y))},
mws:function(y){return t.hOs(gSh(y))}})})}};
Tnw=function(X,t){var G=ddE();G=G===void 0?"bevasrsg":G;t={s:function(z){var B;return X.snapshot(Object.assign({},z.c&&{qe:z.c},z.s&&{alW:z.s},{lGb:(B=z.p)!=null?B:!0}))},
e:function(z){var B;return void((B=X.vmB)==null?void 0:B.call(X,z))},
c:function(z,B){return X.ed6(z,B)},
p:X.cQc,l:function(){return X.ugO()},
wpc:t?F6v(t):void 0};var y=window===window.top?window:khE()?window:window.top,w=y[G];if(w){w.bevasrs=t;if(w.nqfbel!==void 0)for(G=_.J(w.nqfbel),y=G.next();!y.done;y=G.next())y=y.value,y(t);w.nqfbel=void 0}else w={},w=(w.bevasrs=t,w.nqfbel=void 0,w),y[G]=w};
Yas=function(X){var t=t===void 0?50:t;var G=[];_.dT(X,AfE,6,_.eM()).forEach(function(y){_.jM(y,2)<=t&&G.push(_.jM(y,1))});
return G};
s2h=function(X){var t=t===void 0?50:t;var G=[];_.dT(X,AfE,6,_.eM()).forEach(function(y){_.jM(y,2)>t&&G.push(_.jM(y,1))});
return G};
DdE=function(X){X.then(function(){},function(){})};
gT=function(X){return{fieldType:1,fieldName:X}};
Tl=function(X){return{fieldType:2,fieldName:X}};
_.A6=function(X){return{fieldType:3,fieldName:X}};
SaG=function(){function X(){w[0]=1732584193;w[1]=4023233417;w[2]=2562383102;w[3]=271733878;w[4]=3285377520;g=e=0}
function t(F){for(var T=B,D=0;D<64;D+=4)T[D/4]=F[D]<<24|F[D+1]<<16|F[D+2]<<8|F[D+3];for(D=16;D<80;D++)F=T[D-3]^T[D-8]^T[D-14]^T[D-16],T[D]=(F<<1|F>>>31)&4294967295;F=w[0];var h=w[1],u=w[2],W=w[3],c=w[4];for(D=0;D<80;D++){if(D<40)if(D<20){var P=W^h&(u^W);var l=1518500249}else P=h^u^W,l=1859775393;else D<60?(P=h&u|W&(h|u),l=2400959708):(P=h^u^W,l=3395469782);P=((F<<5|F>>>27)&4294967295)+P+c+l+T[D]&4294967295;c=W;W=u;u=(h<<30|h>>>2)&4294967295;h=F;F=P}w[0]=w[0]+F&4294967295;w[1]=w[1]+h&4294967295;w[2]=
w[2]+u&4294967295;w[3]=w[3]+W&4294967295;w[4]=w[4]+c&4294967295}
function G(F,T){if(typeof F==="string"){F=unescape(encodeURIComponent(F));for(var D=[],h=0,u=F.length;h<u;++h)D.push(F.charCodeAt(h));F=D}T||(T=F.length);D=0;if(e==0)for(;D+64<T;)t(F.slice(D,D+64)),D+=64,g+=64;for(;D<T;)if(z[e++]=F[D++],g++,e==64)for(e=0,t(z);D+64<T;)t(F.slice(D,D+64)),D+=64,g+=64}
function y(){var F=[],T=g*8;e<56?G(V,56-e):G(V,64-(e-56));for(var D=63;D>=56;D--)z[D]=T&255,T>>>=8;t(z);for(D=T=0;D<5;D++)for(var h=24;h>=0;h-=8)F[T++]=w[D]>>h&255;return F}
for(var w=[],z=[],B=[],V=[128],b=1;b<64;++b)V[b]=0;var e,g;X();return{reset:X,update:G,digest:y,digestString:function(){for(var F=y(),T="",D=0;D<F.length;D++)T+="0123456789ABCDEF".charAt(Math.floor(F[D]/16))+"0123456789ABCDEF".charAt(F[D]%16);return T}}};
OY0=function(X,t){t=t===void 0?h8G:t;if(!ZYV){var G;X=(G=X.navigator)==null?void 0:G.userAgentData;if(!X||typeof X.getHighEntropyValues!=="function"||X.brands&&typeof X.brands.map!=="function")return Promise.reject(Error("ua"));qas((X.brands||[]).map(function(w){var z=new Cvl;z=_.rp(z,1,w.brand);return _.rp(z,2,w.version)}));
typeof X.mobile==="boolean"&&_.Yb(K6v,2,X.mobile);ZYV=X.getHighEntropyValues(t)}var y=new Set(t);return ZYV.then(function(w){var z=K6v.clone();y.has("platform")&&_.rp(z,3,w.platform);y.has("platformVersion")&&_.rp(z,4,w.platformVersion);y.has("architecture")&&_.rp(z,5,w.architecture);y.has("model")&&_.rp(z,6,w.model);y.has("uaFullVersion")&&_.rp(z,7,w.uaFullVersion);return z.serialize()}).catch(function(){return K6v.serialize()})};
sF=function(X,t,G,y){this.initialValue_=X;this.maxValue_=t;this.currBaseValue_=this.currValue_=X;this.randomFactor_=G||0;this.backoffFactor_=y||2};
Do=function(X){this.src=X;this.listeners={};this.typeCount_=0};
W6_=function(){for(var X;X=uJ6.remove();){try{X.fn.call(X.scope)}catch(t){GV(t)}Q2A.put(X)}I1A=!1};
_.cfV=function(X){switch(X){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}};
p0V=function(X){switch(X){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""}};
_.rfl=function(){};
vS_=function(X,t,G,y,w){X=NnA(PvG(ES0(new _.SM(1828,"0"),X),new UdV));t.length&&mdh(X,R8V(new iYY,t));y!==void 0&&(X.destinationUrl=y);w&&X.disableWithCredentials();var z=new L6G(1828,"","",!1,"",X.build());_.h6(z,X);var B=new Zo({flush:function(V){try{z.flush(V)}catch(b){G(b)}}});
B.addOnDisposeCallback(function(){setTimeout(function(){try{B.snapshotAndFlush()}finally{z.dispose()}})});
B.invocationLimit=1E5;B.flushInterval=3E4;B.JSC$9716_flushTimer.setInterval(3E4);return B};
ql=function(){var X,t,G;return(G=(X=globalThis.performance)==null?void 0:(t=X.now)==null?void 0:t.call(X))!=null?G:Date.now()};
f1E=function(X,t){if(X.disable)return new a1s;var G=t?Yas(t):[],y=X.lD,w=X.xr1,z=X.t6K,B=X.destinationUrl,V=X.bYX;X=X.ljc;t=t==null?void 0:_.Co(t,l1J,11);var b=b===void 0?50:b;t=(t==null?void 0:_.jM(t,1))||0;y={lD:y,tEW:w,i4x:z,destinationUrl:B,bYX:V,ljc:X,disableClearcutCredentialBinding:t>0&&b>=t};G=G===void 0?[]:G;return new xdv(y,G)};
MgG=function(X){if(!X)return null;X=_.Ko(X,2);return X===null||X===void 0?null:tI(X)};
_.Xx_=function(X){if(!X)return null;X=_.Ko(X,4);return X===null||X===void 0?null:_.rN(X)};
GAE=function(X,t){return t?$JA(t):X?tHv(X):Promise.resolve()};
$JA=function(X){return new Promise(function(t,G){var y=_.OF("SCRIPT"),w=_.Xx_(X);_.Vb(y,w);y.onload=function(){_.uf(y);t()};
y.onerror=function(){_.uf(y);G(Error("Fa"))};
(Qs("HEAD")[0]||document.documentElement).appendChild(y)})};
tHv=function(X){return new Promise(function(t){var G=_.OF("SCRIPT");if(X){var y=_.Ko(X,6);y=y===null||y===void 0?null:_.JI(y)}else y=null;_.B$(G,y);(Qs("HEAD")[0]||document.documentElement).appendChild(G);_.uf(G);t()})};
I0=function(X,t,G){var y,w=new Promise(function(z){y=setTimeout(z,t)});
return Promise.race([X.finally(function(){return void clearTimeout(y)}),
w.then(G)])};
ytv=function(X,t){try{return globalThis.sessionStorage.setItem(X,t),!0}catch(G){return!1}};
Ycf=function(X,t,G,y){t=t===void 0?0:t;G=G===void 0?X.length:G;var w=0;for(y&&(w=Ycf(y));t<G;t++)y=typeof X==="string"?X.charCodeAt(t):X[t],w=suV(31,w)+y|0;return w};
DJh=function(X,t){return[Ycf(X,0,X.length>>1,t),Ycf(X,X.length>>1)]};
Sc_=function(X){var t=_.J(DJh(X,Wp));X=t.next().value;t=t.next().value;return X.toString(16)+t.toString(16)};
hZ6=function(X,t){var G=DJh(t);X=new Uint32Array(X.buffer);t=X[0];var y=_.J(G);G=y.next().value;y=y.next().value;for(var w=1;w<X.length;w+=2){for(var z=t,B=w,V=G,b=y,e=0;e<22;e++)B=B>>>8|B<<24,B+=z|0,B^=V+38293,z=z<<3|z>>>29,z^=B,b=b>>>8|b<<24,b+=V|0,b^=e+38293,V=V<<3|V>>>29,V^=b;z=[z,B];X[w]^=z[0];w+1<X.length&&(X[w+1]^=z[1])}};
Zs6=function(X,t,G,y,w){var z=(4-(Wp.length+G.length)%4)%4,B=new Uint8Array(4+z+Wp.length+4+G.length),V=new DataView(B.buffer),b=0;V.setUint32(b,Math.random()*4294967295);b=b+4+z;B.set(Wp,b);b+=Wp.length;V.setUint32(b,w);B.set(G,b+4);hZ6(B,y);return X.insert(t,function(e){return void globalThis.sessionStorage.removeItem(e)})?ytv(t,_.i2(B))?"s":"t":"i"};
qcs=function(X,t){var G=globalThis.sessionStorage.getItem(X);if(!G)return["m"];try{var y=_.BS(G);hZ6(y,t)}catch(w){return globalThis.sessionStorage.removeItem(X),["c"]}for(t=4;t<7&&y[t]===0;)t++;for(G=0;G<Wp.length;G++)if(y[t++]!==Wp[G])return globalThis.sessionStorage.removeItem(X),["d"];G=(new DataView(y.buffer)).getUint32(t);return Math.floor(Date.now()/1E3)>=G?(globalThis.sessionStorage.removeItem(X),["e"]):["a",new Uint8Array(y.buffer,t+4)]};
CFY=function(X){return globalThis.TextEncoder?(new TextEncoder).encode(X):_.cp(X)};
KUV=function(X){var t=X,G;return function(){if(t){var y=t;t=void 0;G=y.apply(this,arguments)}return G}};
u3l=function(X){return iJ(function(t){if(t instanceof X)return!0;var G,y,w=t==null?void 0:(G=t.ownerDocument)==null?void 0:(y=G.defaultView)==null?void 0:y[X.name];return OsA(w)&&t instanceof w})};
_.Nl=function(X,t,G){_.po.call(this);this.JSC$9931_listener_=X;this.JSC$9931_interval_=t||0;this.handler_=G;this.callback_=(0,_.rT)(this.JSC$9933_doAction_,this)};
_.Pp=function(X){X=Qu0(X);return _.rN(X)};
Qu0=function(X){return X===null?"null":X===void 0?"undefined":X};
WUY=function(X){if(X&&X.focus)if(X!==document.activeElement)X.focus();else return IuV(function(){return _.n(function(t){document.activeElement&&document.activeElement.blur();return t.return(IuV(function(){X.focus()}))})})};
_.ctY=function(X){var t=t===void 0?5:t;setTimeout(function(){var G;return _.n(function(y){y.nextAddress==1&&(G=document.activeElement);if(y.nextAddress!=5)return(document.activeElement===G||document.activeElement===document.body)&&t>=0&&X?y.yield(WUY(X),5):y.jumpTo(0);if(document.activeElement===X)return y.return();X=X.parentElement;--t;return y.jumpTo(2)})},15)};
IuV=function(X){return new Promise(function(t){requestAnimationFrame(function(){t(X())})})};
rts=function(X){if(_.EF)X(_.EF);else{var t;((t=pxw)!=null?t:pxw=[]).push(X)}};
mW=function(){!_.EF&&_.UF&&_.Nw0(_.UF());return _.EF};
_.Nw0=function(X){_.EF=X;var t;(t=pxw)==null||t.forEach(rts);pxw=void 0};
_.R0=function(X){_.EF&&_.EF.beforeLoadModuleCode(X)};
_.Lo=function(){_.EF&&_.EF.JSC$10919_setLoaded()};
vp=function(X){return eeV(X)?Number(X):String(X)};
PFv=function(X){this.action=X;this.wfv=!1};
ExA=function(X,t){PFv.call(this,"set-drive-options");this.appId=X;this.appOrigin=t};
UJw=function(X){PFv.call(this,"visibility");this.visible=X};
mJV=function(X,t,G){a0.call(this,X,t,G)};
RZv=function(X){lf.call(this,X)};
isY=function(X){X=X&&X.getWindow()||window;return X.gadgets&&X.gadgets.rpc};
vxl=function(X,t){var G=t&&t.getWindow()||window;if(isY(t))X();else if(LU6)LU6.push(X);else var y=LU6=[X],w=G.setInterval(function(){if(isY(t)){G.clearInterval(w);for(var z=0;z<y.length;z++)y[z]();LU6=null}},100)};
luf=function(X,t){var G=new xb(X);_.h6(t,G);var y={passive:!1};t.listen(G,"mousewheel",function(w){return void aus(X,w)},y).listen(X,"scroll",function(w){return void aus(X,w)},y)};
aus=function(X,t){var G;a:{for(G=t.target;G;){if(G.nodeType==1){var y=_.fo(G,"overflowY");if(y=="auto"||y=="scroll")break a}G=G.parentNode}G=null}if(!G||!_.Ml(X,G)||G.scrollHeight==G.clientHeight||t.deltaY>0&&Math.abs(G.scrollTop-(G.scrollHeight-G.clientHeight))<=1||t.deltaY<0&&G.scrollTop==0)t.preventDefault(),t.stopPropagation()};
zy=function(X,t,G,y,w,z,B,V,b){V=V===void 0?!1:V;b=b===void 0?!1:b;a0.call(this,void 0,void 0,void 0);a0.call(this,z?z+" picker modal-dialog":"picker modal-dialog",!0,G);_.XO(X,"protocol");this.iframeManager_=new xJV;this.targetId_=$H();this.rpcToken_=$H();X=_.tW(X);_.Gy(X,"hostId");G=_.Gy(X,"parent");this.useGapi_=!b&&!0||(G==null?void 0:G.includes("onepick.corp.google.com"));V&&_.yA(X,"fv2","true");this.setUrl(X.toString());this.preferredDialogWidth_=y;this.preferredDialogHeight_=w;y!==void 0||
w!==void 0?y=!0:(y=_.Gy(_.tW(X.toString()),"hostId"),fuJ||(fuJ=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),y=!fuJ.has(y));this.autoSizeDialog_=y;this.JSC$10121_gadgetsDomHelper_=B||this.JSC$10072_dom_;t&&(B=this.JSC$10121_gadgetsDomHelper_,t=_.Gy(_.tW(this.JSC$10123_url_),"grugl")=="true"?MHY:Xzv,isY(B)||(B=B||pD(document),y=B.createElement("SCRIPT"),_.Vb(y,t),y.type="text/javascript",B.JSC$9254_document_.body.appendChild(y)));
X=X.toString();t=null;B=X.indexOf("/picker?");B>-1?t=X.substring(0,B+8-1):zV(X,"/picker")&&(t=X);t&&this.setRelayUrl(t+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(X=this.buttons_,X.JSC$10106_element_=this.buttonEl_,X.render()):_.b8(this.buttonEl_,$1V),_.wh(this.buttonEl_,!!this.buttons_))};
_.wz6=function(X){var t=t===void 0?tDG:t;var G=_.GB(X),y=function(z){z=_.J(z);z.next();z=Hm(z);return t(G,z)},w=function(z){var B=_.J(z);
z=B.next().value;B=Hm(B);return X.apply(z,B)};
return function(){var z=_.f1.apply(0,arguments),B=this||_.tA,V=Gx_.get(B);V||(V={},Gx_.set(B,V));return yGV(V,[this].concat(_.RY(z)),w,y)}};
o5=function(X){var t={};X=X.replace(/\r/g,"").split("\n");for(var G=0;G<X.length;G++){var y=X[G],w=y.indexOf(":");w<0||(t[y.substring(0,w)]=y.substring(w+2,y.length))}return t};
JW=function(X,t,G){G=G===void 0?function(){}:G;
return X?t():G()};
_.HbE=function(X){var t;return((t=zLY.documentOverride)!=null?t:X).__wizdispatcher};
_.nt=function(X){var t=Bm;Bm=X;return t};
JGl=function(X){return X===o7v||(X==null?void 0:X.name)==="\u0275NotFound"};
Blf=function(X,t){var G;if((G=X)==null?0:G.isDisposed)throw Error("jb`"+String(X.debugName));for(;X!==void 0;){G=X;if(G.retrieve)return G.retrieve(t,{optional:!0});X=X.parent}return o7v};
VA=function(X){return{"\u0275prov":{providedIn:"root",token:Symbol(X),factory:void 0,value:void 0}}};
_.n7E=function(X){var t=Bm;if(!t){switch(X===void 0?3:X){case 0:X=Error("ib");break;case 1:X=Error("kb");break;case 2:X=Error("lb");break;default:X=Error("mb")}throw X;}return t};
VDG=function(X){var t=_.nt(X);X={};return X[Symbol.dispose]=function(){_.nt(t)},X};
bbY=function(X,t){X.disposables||(X.disposables=[]);X.disposables.push(t)};
bm=function(X){var t=Bm;t&&!t.isDisposed&&(bbY(t,X),X.parent=t)};
d1J=function(X){if(X.disposables){for(var t=_.J(X.disposables),G=t.next();!G.done;G=t.next())G=G.value,typeof G==="function"?G():kxv(G);X.disposables.length=0}};
kxv=function(X){if(!X.isDisposed){X.isDisposed=!0;var t;(t=X[Symbol.dispose])==null||t.call(X);delete X.parent;d1J(X)}};
D1_=function(X){var t={retrieve:function(G){switch(G.\u0275prov.token){case eLv.\u0275prov.token:var y=X.asyncDeps;break;case jSY.\u0275prov.token:y=X.rootElement;break;case g7l.\u0275prov.token:y=X.modelRootElement;break;case FGl.\u0275prov.token:y=X.appContext;break;case TlA.\u0275prov.token:y=X.rendererData;break;case AGv.\u0275prov.token:y=X.injectingConstructor;break;case Yr6.\u0275prov.token:y=X.dispatcher}if(y)G=y;else a:{for(y=t.parent;y;){var w=y;if(w.retrieve){G=w.retrieve(G);break a}y=
y.parent}y=G.\u0275prov.token;w=sSh[y];w!==void 0?G=w:(w=G.\u0275prov.providedIn,G.\u0275prov.factory?(G=G.\u0275prov.factory(),y&&w==="root"&&(sSh[y]=G)):G=o7v)}return G}};
bm(t);return t};
SrE=function(){var X=_.n7E(1),t=Blf(X,FGl);JGl(t)&&(X=Blf(X,Yr6),JGl(X)||X.getOptionalAppContext())};
hLY=function(X){if(typeof document!=="undefined"&&document&&document.getElementById&&(X=document.getElementById(X))){var t=X.tagName.toUpperCase();if(t=="SCRIPT"||t=="LINK")return X}return null};
qrh=function(X,t){if((X=X===void 0?"":X)&&t)throw Error("sb");var G="";var y=_.tA._F_jsUrl;(X=t||hLY(X))&&(G=X.src?X.src:X.getAttribute("href"));if(y&&G){if(y!=G)throw Error("tb`"+y+"`"+G);G=y}else G=y||G;if(!Zbv(G))throw Error("ub");return G};
ulV=function(){if(!Ct0){Ct0=!0;try{var X=qrh(_.tA._F_jsUrl?"":"base-js")}catch(y){return}var t=KG_(Obf(X)),G=Object.keys(t);G.length!==0&&rts(function(y){for(var w=_.J(G),z=w.next();!z.done;z=w.next()){z=z.value;for(var B=_.J(Object.keys(t[z])),V=B.next();!V.done;V=B.next())y.addExtraEdge(z,V.value)}})}};
INE=function(){var X=Object.assign({},QSl);Object.getOwnPropertyNames(QSl).forEach(function(t){kH[t]!==void 0&&(X[t]=kH[t])});
return X};
WGA=function(X,t){if(kH.enablePerformanceTiming){var G,y;(y=(G=performance).mark)==null||y.call(G,X+"Start__"+t)}};
cGG=function(X,t){if(kH.enablePerformanceTiming){var G,y;(y=(G=performance).measure)==null||y.call(G,X+"__"+t,X+"Start__"+t)}};
pzv=function(X,t,G){var y;return X&&t?X+"__"+t:(y=X!=null?X:t)!=null?y:G};
Nlv=function(X,t){var G=Object.create(rGJ);G.debugName=t;!Bm||bm(G);t=_.nt(G);try{X(G)}finally{_.nt(t)}return function(){return void kxv(G)}};
E7V=function(X){return dh(X)&&PtE in X};
U1w=function(X,t){return Object.is(X,t)};
j0=function(X){var t=e0;e0=X;return t};
RL_=function(X){if(gh)throw Error("Z");if(e0!==null){var t=e0.producersTail;if(t===void 0||t.producer!==X){var G=void 0,y=e0.recomputing;if(y&&(G=t!==void 0?t.nextProducer:e0.producers,G!==void 0&&G.producer===X)){e0.producersTail=G;G.lastReadVersion=X.version;return}var w=X.consumersTail,z;if(!(z=w===void 0||w.consumer!==e0)){if(y){a:{z=e0;y=z.producersTail;if(y!==void 0){z=z.producers;do{if(z===w){y=!0;break a}if(z===y)break;z=z.nextProducer}while(z!==void 0)}y=!1}y=!y}z=y}z&&(y=FO(e0),G={producer:X,
consumer:e0,nextProducer:G,prevConsumer:w,lastReadVersion:X.version,nextConsumer:void 0},e0.producersTail=G,t!==void 0?t.nextProducer=G:e0.producers=G,y&&m1s(X,G))}}};
v7s=function(X){if(!FO(X)||X.dirty)if(X.dirty||X.lastCleanEpoch!==ibs)(X.producerMustRecompute(X)||LGf(X))&&X.producerRecomputeValue(X),X.dirty=!1,X.lastCleanEpoch=ibs};
aNY=function(X){if(X.consumers!==void 0){var t=gh;gh=!0;try{for(var G=X.consumers;G!==void 0;G=G.nextConsumer){var y=G.consumer;y.dirty||(X=void 0,y.dirty=!0,aNY(y),(X=y.consumerMarkedDirty)==null||X.call(y,y))}}finally{gh=t}}};
lNl=function(){var X;return((X=e0)==null?void 0:X.consumerAllowSignalWrites)!==!1};
x1s=function(X){X&&(X.producersTail=void 0,X.recomputing=!0);return j0(X)};
MD0=function(X,t){j0(t);if(X){X.recomputing=!1;t=X.producersTail;var G=t!==void 0?t.nextProducer:X.producers;if(G!==void 0){if(FO(X)){do G=fNJ(G);while(G!==void 0)}t!==void 0?t.nextProducer=void 0:X.producers=void 0}}};
LGf=function(X){for(X=X.producers;X!==void 0;X=X.nextProducer){var t=X.producer,G=X.lastReadVersion;if(G!==t.version)return!0;v7s(t);if(G!==t.version)return!0}return!1};
m1s=function(X,t){var G=X.consumersTail,y=FO(X);G!==void 0?(t.nextConsumer=G.nextConsumer,G.nextConsumer=t):(t.nextConsumer=void 0,X.consumers=t);t.prevConsumer=G;X.consumersTail=t;if(!y)for(X=X.producers;X!==void 0;X=X.nextProducer)m1s(X.producer,X)};
fNJ=function(X){var t=X.producer,G=X.nextProducer,y=X.nextConsumer,w=X.prevConsumer;X.nextConsumer=void 0;X.prevConsumer=void 0;y!==void 0?y.prevConsumer=w:t.consumersTail=w;if(w!==void 0)w.nextConsumer=y;else if(t.consumers=y,!FO(t))for(X=t.producers;X!==void 0;)X=fNJ(X);return G};
FO=function(X){return X.consumerIsAlwaysLive||X.consumers!==void 0};
$jY=function(X){var t=Object.create(XOV);t.computation=X;X=function(){v7s(t);RL_(t);if(t.value===Ty)throw t.error;return t.value};
X[AW]=t;return X};
wOY=function(X,t){var G=Object.create(tPs);G.value=X;t!==void 0&&(G.equal=t);X=function(){RL_(G);return G.value};
X[AW]=G;return[X,function(y){return G5v(G,y)},
function(y){lNl()||yvE(G);G5v(G,y(G.value))}]};
G5v=function(X,t){lNl()||yvE(X);if(!X.equal(X.value,t)){X.value=t;X.version++;ibs++;aNY(X);var G;(G=zPs)==null||G(X)}};
YH=function(X){var t=j0(null);try{return X()}finally{j0(t)}};
_.sm=function(X,t,G){G=G===void 0?"":G;X=wOY(X,t==null?void 0:t.equals);var y=X[0],w=y[AW];w.debugName=pzv(t==null?void 0:t.debugName,G,"[signal]");if(!kH.enablePerformanceTiming)return X;var z=X[1],B=X[2];return[y,function(V){Hhh(function(){return void z(V)},w)},
function(V){Hhh(function(){return void B(V)},w)}]};
Hhh=function(X,t){WGA("signalSet",t.debugName);try{X()}finally{cGG("signalSet",t.debugName)}};
JvY=function(X,t){var G=_.J(_.sm(X,void 0,"cPpJzc"));X=G.next().value;G=G.next().value;X[oA_]=G;X[Dy]=t;return X};
Bjs=function(X){return!!X&&typeof X==="object"&&Object.getPrototypeOf(X)===Object.prototype};
nAl=function(X){return typeof X==="function"&&oA_ in X&&typeof X[oA_]==="function"};
VPs=function(X,t){Object.defineProperty(X,Dy,{get:function(){return t}})};
hW=function(X,t){if(S0(X)){var G=X.map(function(z){return hW(z,t)});
VPs(G,t);return G}if(Bjs(X)){G={};X=_.J(Object.entries(X));for(var y=X.next();!y.done;y=X.next()){var w=_.J(y.value);y=w.next().value;w=w.next().value;G[y]=hW(w,t)}VPs(G,t);return G}return JvY(X,t)};
bhf=function(X){if(S0(X))return X.map(function(w){return bhf(w)});
if(Bjs(X)){var t={};X=_.J(Object.entries(X));for(var G=X.next();!G.done;G=X.next()){var y=_.J(G.value);G=y.next().value;y=y.next().value;t[G]=bhf(y)}return t}return nAl(X)?X():X};
dj6=function(){var X={height:0,width:0};if(!Bjs(X))throw Error("Gb");var t=Symbol("Hb");return[hW(X,t),function(G,y){if(G[Dy]===t)if(typeof y==="function"){var w=[].concat(_.RY(bhf(G)));y=y(w)||w;k5Y(G,[].concat(_.RY(y)))}else k5Y(G,y);else throw Error("Ib");}]};
k5Y=function(X,t){if(nAl(X))X[oA_](t);else if(S0(X)&&S0(t))t=hW(t,X[Dy]),X.length=0,X.push.apply(X,_.RY(t));else if((Bjs(X)||S0(X))&&(S0(t)||typeof t==="object"&&t!==null)){t=_.J(Object.entries(t));for(var G=t.next();!G.done;G=t.next()){var y=_.J(G.value);G=y.next().value;y=y.next().value;var w=X,z=w[G];Object.hasOwn(X,G)?k5Y(z,y):w[G]=hW(y,X[Dy])}}else throw Error("Jb");};
ePw=function(X){return Object.create(Object.assign({},Zy,X))};
gAw=function(){var X;return(X=j70)!=null?X:j70=ePw({consumerAllowSignalWrites:!0})};
_.qt=function(X,t,G){G=G===void 0?"":G;X=$jY(X);var y=X[AW];y.debugName=pzv(t==null?void 0:t.debugName,G,"[computed]");(t==null?void 0:t.equals)!=null&&(y.equal=t.equals);return X};
Ct=function(X){var t=j0(FuG);try{X()}finally{j0(t)}};
S9V=function(X){if(!X.isDisposed)switch(X.effectType){case Kt:TjV.schedule(X);break;case Av0:Y9E.schedule(X);break;case s76:DjJ.schedule(X);break;default:_.zr(X.effectType)}};
Zh_=function(X){hP0.push(X);return function(){var t=hP0.indexOf(X);t!==-1&&hP0.splice(t,1)}};
CxG=function(){if(Om>0)kH.flushRenderEffectsDuringRender&&TjV.flush();else for(var X=_.J(q9f),t=X.next();!t.done;t=X.next())t.value.flush()};
Oh6=function(X){um=!0;try{for(var t=_.J(X),G=t.next();!G.done;G=t.next()){for(var y=G.value,w=[y],z=y;z.parent!==void 0;)z=z.parent,Ku0(z)&&X.has(z)&&w.push(z);for(;w.length>0;){var B=w.pop();X.delete(B);B.run()}}}finally{um=!1}};
QA=function(X){Om--;if(X){X=_.J(q9f);for(var t=X.next();!t.done;t=X.next())t.value.clear()}else Om>0||um&&!kH.flushRenderEffectsDuringRender||CxG()};
Q7J=function(X,t,G){var y=uR6(X);I5={name:G?y+" ("+G+")":y,isReactive:X.componentType!==Wm,parent:I5};X=t();I5=I5.parent;return X};
cm=function(){var X=I5;return X?X.isReactive:!1};
rh=function(X,t,G){var y=I5;t&&(I5=t);try{return G==null?X():X.call(G)}catch(z){X=z;pt(X,I5);if(X!==IUh){WuY=I5;t=[];for(G=Bm;G;){var w=void 0;t.push((w=G.debugName)!=null?w:"[context]");w=void 0;G=(w=G.parent)!=null?w:null}cvv=t.reverse()}IUh=X;throw X;}finally{I5=y}};
pt=function(X,t){try{var G=pOw(t);if(G&&!X.componentStack&&(X.componentStack=G,kH.enableComponentStacksInErrorMessages)){var y=X.message+"\n\nComponent stack: "+G;X.stack&&(X.stack=X.stack.replace(X.message,y));X.message=y}}catch(w){}};
pOw=function(X){if(dh(X)&&X.name!==void 0&&X.isReactive!==void 0&&X.parent!==void 0||X===null){for(var t=0,G="";t<20&&X;)G+=X.name+" > ",X=X.parent,t++;X=G.slice(0,-3)}else if(kH.enableContextBasedComponentStacks){a:{for(X=X===void 0?Bm:X;X;){if(E7V(X))break a;t=void 0;X=(t=X.parent)!=null?t:null}X=null}X=X.getComponentStack().slice(0,20).join(" > ")}else X="";return X};
uR6=function(X){return X.debugName||X.name||"[component]"};
rvv=function(X,t,G){t=Object.create(t);X&&(t.effectFn=X);G&&(t.debugName=G);bm(t);t.componentStack=I5;return t};
_.Em=function(X,t){X=rvv(X,Nj_,t);S9V(X)};
_.Um=function(X){var t=Bm;if(t){var G=I5;bbY(t,function(){var y=j0(gAw());try{rh(function(){return void X()},G)}catch(w){throw kH.enableContextBasedComponentStacks&&pt(w),w;
}finally{j0(y)}})}};
m$=function(X,t){var G={};(t===void 0||t)&&bm(G);t=_.nt(G);try{X(G)}finally{_.nt(t)}return function(){return void kxv(G)}};
_.R5=function(X){return typeof X==="function"?X():(X==null?0:X[PxE])?X.get():X};
_.im=function(X,t){X=rvv(X,EAV,t);S9V(X)};
Ujh=function(X){if(Bm)throw Error("nb");m$(X,!1)};
Lt=function(X,t){X=_.nt(X);try{return YH(t)}finally{_.nt(X)}};
a5=function(X,t){var G=pOw(WuY),y,w;var z=(w=(y=cvv)==null?void 0:y.slice())!=null?w:[];t={componentStack:G,contextTrace:z,errorSeverity:3,featureFlags:INE(),tagName:t};return[X,t]};
ihV=function(X,t,G){if(Object.hasOwnProperty.call(mj_,X)&&(X=mj_[X],Object.hasOwnProperty.call(X,t)&&(X=X[t],X instanceof Array))){for(var y=null,w=!1,z=0,B=X.length;z<B;++z){var V=X[z],b=V.contingentAttribute;if(!b)return V.contract;y===null&&(y={});b=Object.hasOwnProperty.call(y,b)?y[b]:y[b]=G(b);if(b===V.requiredValue)return V.contract;b==null&&(w=!0)}if(w)return null}t=RPA[t];return typeof t==="number"?t:null};
aUG=function(X,t,G){var y=null;(X=Luf[X])&&(y=X[t]);return typeof y!=="number"&&((X=Luf["*"])&&(y=X[t]),typeof y!=="number")?!1:!0===vA0[y][String(G).toLowerCase()]};
xj0=function(X,t){t=ihV(X.toLowerCase(),t,function(){var y;(y=kH.handleError)==null||y.call.apply(y,[kH].concat(_.RY(a5(Error("Ob"),X.toLowerCase()))))});
if(t===null)return null;var G;return(G=lU6[t])!=null?G:null};
fUV=function(X,t,G){if(G===null||G===void 0)return G;t=t.toLowerCase();X=xj0(X,t);return X===null?G:X(t,G)};
MPh=function(){};
lm=function(X,t){for(;X.length>t;)X.pop()};
XqJ=function(X){X=Array(X);lm(X,0);return X};
xH=function(X,t,G){if(G==null)X.removeAttribute(t);else{var y;(y=t.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":t.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?X.setAttributeNS(y,t,G):X.setAttribute(t,G)}};
$_G=function(X,t,G){X[t]=G};
Gjf=function(X,t,G){X=X.style;if(typeof G==="string")X.cssText=G;else{X.cssText="";for(var y in G)if(tiE.call(G,y)){t=X;var w=y,z=G[y];w.indexOf("-")>=0?t.setProperty(w,z):t[w]=z}}};
ya0=function(X,t,G){var y=typeof G;y==="object"||y==="function"?X[t]=G:xH(X,t,G)};
wql=function(){var X=new MPh;X[ft.default]=ya0;X.style=Gjf;return X};
zMJ=function(X,t,G,y){(y[t]||y[ft.default])(X,t,G)};
o5h=function(X,t,G){t=new HlV(t,G);return X.__incrementalDOMData=t};
Mt=function(X,t){if(X.__incrementalDOMData)return X.__incrementalDOMData;var G=X.nodeType===1?X.localName:X.nodeName,y=X.nodeType===1?X.getAttribute("key"):null;t=o5h(X,G,X.nodeType===1?y||t:null);if(X.nodeType===1&&(X=X.attributes,G=X.length)){y=t._attrsArr||(t._attrsArr=XqJ(G*2));for(var w=0,z=0;w<G;w+=1,z+=2){var B=X[w],V=B.value;y[z]=B.name;y[z+1]=V}}return t};
JaA=function(X,t,G,y,w){return t==G&&y==w};
BSf=function(X){for(var t=XJ,G=$S();G!==X;){var y=G.nextSibling;t.removeChild(G);tf.deleted.push(G);G=y}};
$S=function(){return Gh?Gh.nextSibling:XJ.firstChild};
yX=function(){Gh=$S()};
blY=function(X,t,G){yX();var y;a:{if(y=Gh){do{var w=y,z=X,B=t,V=Mt(w,B);if(n50(w,z,V.nameOrCtor,B,V.key))break a}while(t&&(y=y.nextSibling))}y=null}y||(X==="#text"?(G=wn.createTextNode(""),o5h(G,"#text",null),X=G):(y=wn,w=XJ,typeof X==="function"?y=new X:y=(w=X==="svg"?"http://www.w3.org/2000/svg":X==="math"?"http://www.w3.org/1998/Math/MathML":w==null||Mt(w).nameOrCtor==="foreignObject"?null:w.namespaceURI)?y.createElementNS(w,X):y.createElement(X),o5h(y,X,t),X=y,G&&X.setAttribute("nonce",G)),tf.created.push(X),
y=X);G=y;if(G!==Gh){if(ViV.indexOf(G)>=0)for(X=XJ,t=G.nextSibling,y=Gh;y!==null&&y!==G;)w=y.nextSibling,X.insertBefore(y,t),y=w;else XJ.insertBefore(G,Gh);Gh=G}};
kjG=function(X,t,G){blY(X,t,G);XJ=Gh;Gh=null;return XJ};
d_G=function(){BSf(null);Gh=XJ;XJ=XJ.parentNode};
zh=function(){Gh=XJ.lastChild};
g5v=function(X,t){t=t===void 0?{}:t;var G=t.matches===void 0?JaA:t.matches;return function(y,w,z){var B=tf,V=wn,b=ViV,e=H0,g=o2,F=Gh,T=XJ,D=n50;wn=y.ownerDocument;tf=new eM6(y);n50=G;H0=[];o2=[];Gh=null;var h=XJ=y.parentNode,u,W=jOA.call(y);if((u=W.nodeType===11||W.nodeType===9?W.activeElement:null)&&y.contains(u)){for(W=[];u!==h;)W.push(u),u=u.parentNode||(h?u.host:null);h=W}else h=[];ViV=h;try{return X(y,w,z)}finally{y=tf,Jf&&y.deleted.length>0&&Jf(y.deleted),wn=V,tf=B,n50=D,H0=e,o2=g,Gh=F,XJ=T,
ViV=b}}};
FXJ=function(X,t,G,y){B0.push(zMJ);B0.push(X);B0.push(t);B0.push(G);B0.push(y)};
AaJ=function(X,t,G){var y=o2;t=t._attrsArr||(t._attrsArr=XqJ(y.length));for(var w=!t.length||!1,z=0;z<y.length;z+=2){var B=y[z];if(w)t[z]=B;else if(t[z]!==B)break;var V=y[z+1];if(w||t[z+1]!==V)t[z+1]=V,FXJ(X,B,V,G)}if(z<y.length||z<t.length){for(z=w=z;z<t.length;z+=2)VX[t[z]]=t[z+1];for(z=w;z<y.length;z+=2)w=y[z],B=y[z+1],VX[w]!==B&&FXJ(X,w,B,G),t[z]=w,t[z+1]=B,delete VX[w];lm(t,y.length);for(var b in VX)FXJ(X,b,void 0,G),delete VX[b]}X=TSh;TSh=G=B0.length;for(b=X;b<G;b+=5)(0,B0[b])(B0[b+1],B0[b+
2],B0[b+3],B0[b+4]);TSh=X;lm(B0,X);lm(y,0)};
bv=function(X){blY("#text",null);var t=Gh;var G=Mt(t);if(G.text!==X){G=G.text=X;for(var y=1;y<arguments.length;y+=1)G=(0,arguments[y])(G);t.data!==G&&(t.data=G)}};
qA_=function(X,t,G){if(G===!1&&YAf.has(t))xH(X,t,null);else if(t!=="idomKey"&&t!=="skip"&&t!=="skipchildren"&&t!=="children"&&t!=="el")if(t.startsWith("on")){if(t[2]!==":")throw Error("Nb`"+t);if(G===void 0||G===null){var y;(y=kH.handleError)==null||y.call.apply(y,[kH].concat(_.RY(a5(Error("Sb`"+t),X.tagName))));X[t]=void 0}else{var w=t.slice(3);y=cm();if(w==="jsaction"){G=Array.isArray(G)?G:[G];G=_.J(G);for(var z=G.next();!z.done;z=G.next()){z=z.value;if(typeof z!=="object"||z===null||typeof z.selfReg!==
"function")throw Error("Vb`"+t);z.selfReg(0,X,y?_.Um:function(){})}}else{if(typeof G!=="object"||G===null)throw Error("Tb`"+t+"`"+typeof G);
if(typeof G.getFn!=="function")throw Error("Ub`"+t+"`"+Object.keys(G));if(G.selfReg)G.selfReg(0,X,w,y?_.Um:function(){});
else if(y&&X["on"+w]===void 0){var B=G.getFn(0);X.addEventListener(w,B);_.Um(function(){return void X.removeEventListener(w,B)})}else if(y||!sOG.includes(w))X["on"+w]=G.getFn(0)}}}else{if(t.startsWith("data-")&&typeof G==="string")try{G=D_h(G)}catch(V){G="zSoyz"}typeof G!=="function"||X._disposeEffects!=null?((y=t.startsWith("prop:"))&&(t=t.slice(5)),kH.enableAttributeSanitization&&(y&&SAf(X.tagName)||(G=fUV(X.tagName,t,G))),t==="style"?("function"==typeof _.kS&&G instanceof _.kS&&(G=G.toString()),
hMw(X,t,G)):y?X[t]=G:ZlA(X,t,G)):(X._signalProps||(X._signalProps=[]),X._signalValues||(X._signalValues=[]),X._signalProps.push(t))}};
CCG=function(X,t,G){G=(G===void 0?{}:G).isReactive;if(t==null?0:t.el){var y=t.el;if(typeof y==="function")y(X);else{var w;(w=y.onRender)==null||w.call(y,X);X._disposeRef||(X._disposeRef=function(){var z;(z=y.onUnmount)==null||z.call(y);delete X._disposeRef},G&&_.Um(function(){var z;
(z=X._disposeRef)==null||z.call(X)}))}}};
SAf=function(X){return X.length>0&&X.includes("-")&&!KXY.includes(X.toLowerCase())};
OlG=function(X){return dh(X)&&dn in X};
uEh=function(X){return OlG(X)?X[dn].flattened:X};
QOl=function(X,t){var G=_.f1.apply(2,arguments),y;t=(y=t)!=null?y:{};y={};return y.type=X,y.props=t,y.children=G,y[jg]=!0,y};
_.gn=function(X){return X.children};
FJ=function(X){var t=Is6!==QOl;Is6=X?WXv:QOl;return t};
_.Th=function(X){return _.$h(X)?"nodeType"in X:!1};
Af=function(){return document.createTextNode("")};
YS=function(X){X=document.createTextNode(String(X));X._isSignalTextNode=!0;return X};
pq_=function(X){return X!=null&&X.contentKind===sa||X instanceof $w||ca_(X)};
ras=function(X){var t=document.createElement("div");if(ca_(X)&&MgG(X))_.b8(t,MgG(X));else if(X instanceof $w)_.b8(t,X);else if(X!=null&&X.contentKind===sa){if(X.contentKind!==sa)throw Error("Rb");X=tI(X.toString());_.b8(t,X)}X=_.J(t.childNodes);for(var G=X.next();!G.done;G=X.next())G.value._isSafeOrSanitizedHtmlNode=!0;return t};
D1=function(X){X=typeof X;return X==="string"||X==="number"||X==="boolean"};
NSG=function(X){return X instanceof ct||mN(X)||"function"==typeof _.ec&&X instanceof _.ec||"function"==typeof _.kS&&X instanceof _.kS};
PCJ=function(X,t){var G=X.parentElement;if(!G)return t;G.replaceChild(t,X);return t};
E5s=function(X,t){var G=X[0].parentElement;if(G)if(X[0].previousSibling||X[X.length-1].nextSibling){G.insertBefore(t,X[0]);for(var y=X.length-1;y>=0;y--)G.removeChild(X[y])}else G.textContent="",G.appendChild(t);return t};
U_l=function(X,t){if(X[0].parentElement)for(var G=X[0].parentElement,y=t.length,w=X.length,z=y,B=0,V=0,b=X[w-1].nextSibling,e=null;B<w||V<z;)if(X[B]===t[V])B++,V++;else{for(;X[w-1]===t[z-1];)w--,z--;if(w===B)for(var g=z<y?V?t[V-1].nextSibling:t[z-V]:b;V<z;){var F=t[V++];G.insertBefore(F,g)}else if(z===V)for(;B<w;)g=X[B],e&&e.has(g)||G.removeChild(g),B++;else if(X[B]===t[z-1]&&t[V]===X[w-1])g=X[--w].nextSibling,G.insertBefore(t[V++],X[B++].nextSibling),G.insertBefore(t[--z],g),X[w]=t[z];else{if(!e)for(e=
new Map,g=V;g<z;)e.set(t[g],g++);g=e.get(X[B]);if(g==null)G.removeChild(X[B]),B++;else if(V<g&&g<z){F=B;for(var T=1,D=void 0;++F<w&&F<z&&(D=e.get(X[F]))!=null&&D===g+T;)T++;if(T>g-V)for(F=X[B];V<g;)G.insertBefore(t[V++],F);else G.replaceChild(t[V++],X[B++])}else B++}}return t};
RMV=function(X){if(Array.isArray(X)){if(X.length>1)throw Error("dc`"+X.length+"`"+X.map(m_A).join(", "));X=X[0]}if(X==null)return null;if(!(X instanceof _.oY)){var t,G;if((t=window)==null?0:(G=t.trustedTypes)==null?0:G.isScript(X))throw Error("cc");if(String(X).trim().length===0)return null;throw Error("ec`"+m_A(X));}return X};
ilA=function(X,t){t=RMV(t);t!==null&&_.B$(X,t)};
LX6=function(X){if(Array.isArray(X)){if(X.length>1)throw Error("fc`"+X.length+"`"+X.map(m_A).join(", "));X=X[0]}if(X==null)return null;if(!xx0(X)){if(String(X).trim().length===0)return null;throw Error("gc`"+m_A(X));}return X};
v5w=function(X,t){t=LX6(t);t!==null&&(X.textContent=_.fYv(t))};
m_A=function(X){return"("+typeof X+") "+(X!=null&&typeof X==="object"?X.constructor.name:typeof X)+" "+X};
asY=function(){};
Z1=function(X,t){t=t===void 0?{}:t;var G=ls_();kH.legacyTriggerSoyRendererEvents&&SrE();_.im(function(){Sg.setUp();t.isControlFlowComponent&&Om++;var y=G[0],w=G[dn].flattened,z=FJ(!0);try{var B=X(),V=x_V(y,B,G);Array.isArray(V)||(G[dn].flattened=[V]);var b=G[dn].flattened;if(w&&(!Array.isArray(w)||w.length!==0)){var e=Array.isArray(w)?w[0]:w,g=e[hf],F=e._disposeEffects;e._disposeEffects=void 0;e=Array.isArray(b)?b[0]:b;e[hf]=g;e[hf]&&(e[hf].numNodes=e===b?1:b.length);e._disposeEffects=F}G[0]=V;t.isControlFlowComponent&&
QA(!1)}catch(T){throw t.isControlFlowComponent&&QA(!0),T;}finally{FJ(z),Sg.tearDown()}},t.debugName);
return G};
x_V=function(X,t,G){for(;typeof t==="function";)t=t();if(t!=null&&t[jg]){var y,w,z;(z=kH.handleError)==null||z.call.apply(z,[kH].concat(_.RY(a5(Error("hc`"+((y=t.type)==null?void 0:y.TAG_NAME)),(w=t.type)==null?void 0:w.TAG_NAME))))}if(X==null)return t==null?Af():D1(t)?YS(t):NSG(t)?YS(t.toString()):_.Th(t)?t:t.length===0?Af():fsh(t,G);if(_.Th(X)){if(t==null)return PCJ(X,Af());if(D1(t))return Miw(X,t);if(NSG(t))return Miw(X,t.toString());if(_.Th(t))return PCJ(X,t);if(t.length===0)return PCJ(X,Af());
t=fsh(t,G);U_l([X],G[dn].flattened);return t}X=qd(X);if(t==null)return E5s(X,Af());if(D1(t))return E5s(X,YS(t));if(NSG(t))return E5s(X,YS(t.toString()));if(_.Th(t))return U_l(X,[t])[0];if(t.length===0)return E5s(X,Af());t=fsh(t,G);U_l(X,G[dn].flattened);return t};
Miw=function(X,t){X.nodeType===Node.TEXT_NODE?X.textContent!==String(t)&&(X.textContent=String(t)):X=PCJ(X,YS(t));return X};
qd=function(X,t,G){return Xsw(X,t!=null?t:[],G===void 0?!1:G)};
fsh=function(X,t){var G=qd(X,void 0,!0);if(G.length===0)return Af();t[dn].flattened=G;return X};
Xsw=function(X,t,G,y,w){t=t===void 0?[]:t;G=G===void 0?!1:G;w=w===void 0?-1:w;if(X==null)return t;if(X instanceof CY){var z=X.render();return Xsw(z,t,G,y,w)}if(_.Th(t)&&t.nodeType===Node.ELEMENT_NODE)switch(t.tagName){case "SCRIPT":ilA(t,X);return;case "STYLE":v5w(t,X);return}D1(X)&&(X=YS(X),y&&G&&(y[w]=X));if(pq_(X)){G=ras(X);G=Array.from(G.childNodes);G=_.J(G);for(z=G.next();!z.done;z=G.next())$8l(t,z.value);return t}NSG(X)&&(X=YS(X.toString()),y&&G&&(y[w]=X));if(_.Th(X))return $8l(t,X);if(Array.isArray(X)){for(z=
0;z<X.length;z++)Xsw(X[z],t,G,X,z);return t}if(typeof X==="function"){z=Z1(function(){var V=X();return V!=null&&!D1(V)&&pq_(V)?(V=ras(V),Array.from(V.childNodes)):V},{debugName:"qmF2ne",
debugFn:X})[0];if(Array.isArray(z)){G=_.J(z);for(z=G.next();!z.done;z=G.next())$8l(t,z.value);return t}y&&G&&(y[w]=z);return $8l(t,z)}if(X!=null&&X[jg]){y=X;w=FJ(!0);var B=Is6;try{z=B.apply(null,[y.type,y.props].concat(_.RY(y.children)))}finally{FJ(w)}return Xsw(z,t,G)}(B=kH.handleError)==null||B.call.apply(B,[kH].concat(_.RY(a5(Error("ic")))));return t};
ls_=function(X){var t={};t=Object.assign([],(t[dn]={flattened:[]},t));if(!X)return t;t[0]=fsh(X,t);return t};
$8l=function(X,t){Array.isArray(X)?X.push(t):X.appendChild(t);return X};
KY=function(X){if(!kH.enableLazyTsx)return X;if(Array.isArray(X)){for(var t=0;t<X.length;t++)X[t]=KY(X[t]);return X}return X instanceof CY?(X=X.render(),KY(X)):X};
GpV=function(X,t){var G,y,w=uR6(X),z=function(D){y=D;D=FJ(!0);var h=j0(Oa);WGA("render",w);try{G=KY(X(t))}finally{cGG("render",w),j0(h),FJ(D)}};
z=kH.enableContextPerComponent?Nlv(z,w):m$(z,kH.alwaysTrackContexts||!!Bm);E7V(y);if(!t.renderedFromIdom){var B=_.nt(y);try{return tbY(X,t,G),G}finally{_.nt(B)}}!OlG(G)&&Array.isArray(G)&&(G=ls_(G));var V=uEh(G);B=Array.isArray(V)?V[0]:V;var b=!1;if(B){var e,g=(e=t==null?void 0:t.idomKey)!=null?e:X;e=V!==B;B._disposeEffects=z;var F=B[hf]||{},T=OlG(G)?G:F.sourceDynamicRange;Object.assign(F,{key:g,numNodes:e?V.length:1,context:y,higherOrder:!!B[hf],sourceDynamicRange:T});B[hf]=F}else b=!0;(function(){var D=
_.nt(y);try{tbY(X,t,V)}finally{_.nt(D)}})();
b&&z();return G};
yLf=function(X){var t={},G;for(G in X)t={prev$jscomp$23:void 0,next$jscomp$33:void 0},t.prev$jscomp$23=uv[G],t.next$jscomp$33=X[G],uv[G]=function(y){return function(){var w=_.f1.apply(0,arguments);y.prev$jscomp$23.apply(null,_.RY(w));y.next$jscomp$33.apply(null,_.RY(w))}}(t)};
wsA=function(){if(cm())throw Error("jc");return QX};
zXv=function(X,t){if(!X.__unmounted&&t){X.__unmounted=!0;try{X.didUnmount()}catch(w){var G,y;(y=kH.handleError)==null||y.call.apply(y,[kH].concat(_.RY(a5(w,(G=X.JSC$10147___type)==null?void 0:G.TAG_NAME))))}uv.didUnmount(X);X.el=null;t.__instance&&delete t.__instance}};
oe_=function(X,t,G){X._signalProps!=null&&X._disposeEffects==null&&((G===void 0?0:G)?X._disposeEffects=m$(function(){return void HE0(X,t)},kH.alwaysTrackContexts||!!Bm):HE0(X,t))};
HE0=function(X,t){_.im(function(){for(var G=X._signalProps,y=X._signalValues,w=0;w<G.length;w++){var z=G[w],B=t[z]();y[w]!==B&&(y[w]=B,qA_(X,z,B))}},"e3YVbb")};
JLh=function(X,t,G){var y,w=[];X._disposeEffects=m$(function(){_.im(function(){var z=G();if(z===null||z===void 0)z="";if(D1(z)||z===null)y!=null||(y=document.createTextNode("")),y.parentNode!==X&&(y._isSignalTextNode=!0,X.insertBefore(y,t)),y.textContent=String(z);else if(pq_(z)){for(var B=w.length>0?w[w.length-1].nextSibling:t,V=_.J(w),b=V.next();!b.done;b=V.next())X.removeChild(b.value);z=ras(z);w=Array.from(z.childNodes);z=_.J(w);for(V=z.next();!V.done;V=z.next())X.insertBefore(V.value,B)}else throw b=
(V=(B=I5)==null?void 0:B.name)!=null?V:"unknown",Error("Zb`"+b+"`"+typeof z);},"VvDgC")},kH.alwaysTrackContexts||!!Bm)};
Vbv=function(X,t){var G=_.f1.apply(2,arguments);t!=null||(t={});return!kH.enableLazyTsx||I5!=null&&!cm()?Bu0(X,t,G):new neE(X,t,G)};
Bu0=function(X,t,G){if(X===_.gn)return G;if(typeof X==="function")return I5&&!cm()&&(t.renderedFromIdom=!0),Q7J(X,function(){var z=bEf(X,t,G);if(z)return z;G.length>0&&(t.children=G.length===1?G[0]:G);if(X.componentType===Wm){var B;Nlv(function(){var V=t;if(X.componentType!==Wm)B=!1;else{V||(V={});var b=new I2(V,X),e=j0(Oa);try{var g=b.render(V)}finally{j0(e)}g instanceof HTMLElement?(g.__instance=b,b.el=g,b.JSC$10147___type=X,X.TAG_NAME=g.tagName.toLowerCase(),uv.didPatch(b),B=g):B=g}},X.name);
if(B)return B}return GpV(X,t)},t.debugInstance);
var y=kpw(X,t),w;for(w in t)qA_(y,w,t[w]);oe_(y,t);qd(G,y);CCG(y,t,{isReactive:!0});d8A(y,t);return y};
kpw=function(X,t){X=(eXY.has(X.toLowerCase())?0:j4Y.has(X.startsWith("svg:")?X.replace("svg:",""):X))?document.createElementNS("http://www.w3.org/2000/svg",X.startsWith("svg:")?X.replace("svg:",""):X):gev(X,t)||document.createElement(X);X[FqG]=!0;return X};
Tuf=function(X){if(X){var t;(t=X._disposeRef)==null||t.call(X);var G;(G=X._disposeEffects)==null||G.call(X);X.__instance&&X.__instance instanceof c0&&(t=X.__instance,zXv(t,X),t instanceof I2&&t.disposeEffects());for(t=0;t<X.childNodes.length;t++)Tuf(X.childNodes[t])}};
YsG=function(X){ALV.push(X)===1&&requestAnimationFrame(function(){setTimeout(function(){var t=[].concat(_.RY(ALV));ALV=[];t=_.J(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;try{for(var y=0;y<G.length;y++)Tuf(G[y])}catch(w){y=G=void 0,(y=(G=kH).handleError)==null||y.call.apply(y,[G].concat(_.RY(a5(w))))}}})})};
_.k=function(X,t){return Is6.apply(null,[X,t].concat(_.RY(_.f1.apply(2,arguments))))};
s4_=function(X,t){t=t===void 0?new Map:t;X=_.J(X);for(var G=X.next();!G.done;G=X.next())if(G=G.value,!t.has(G)){for(var y=[],w=G.producers;w!==void 0;w=w.nextProducer)y.push(w.producer);t.set(G,y);s4_(y,t)}return t};
_.d=function(X){var t=X.cond;if(t===void 0)return X.else&&X.else();var G=_.qt(function(){return!!t()},void 0,"JHVi8"),y=function(){var w=t();
if(!w){var z;(z=kH.handleError)==null||z.call.apply(z,[kH].concat(_.RY(a5(D8J.nonNullableCondIsNull()))))}return w};
return Z1(function(){var w=G(),z;m$(function(){var B=j0(Oa);try{z=KY(w?X.then(y):X.else&&X.else())}finally{j0(B)}},!0);
return z},{debugName:X.debugInstance,
debugFn:X.then,isControlFlowComponent:!0})};
SsY=function(X){return _.d(X)};
_.pY=function(X){return X.keyBy==="INDEX"?hXh(X):ZEf(X)};
qss=function(X){X=_.J(X);for(var t=X.next();!t.done;t=X.next()){var G=void 0;(G=t.value)==null||G()}};
ZEf=function(X){var t=X.keyBy===void 0||X.keyBy==="REFERENCE",G=t?function(g){return g}:X.keyBy,y=[],w=[],z=[],B=[],V=[],b=[],e=!0;
_.Um(function(){qss(B)});
return Z1(function(){var g=X.each(),F=g.length;if(F===0){if(y.length===0&&!e)return z;qss(B);y=g;w=[];for(g=0;g<y.length;g++)w.push(G(y[g]));z=[];B=[];V=[];b=[];X.fallback&&(B[0]=Cws(function(){z[0]=KY(X.fallback())}));
e=!1;return z}for(var T=new Kq6,D=y.length-1;D>=0;D--)T.push(w[D],D);D=Array(F);for(var h=Array(F),u=Array(F),W=Array(F),c=Array(t?0:F),P={i$jscomp$445:0};P.i$jscomp$445<F;P={i$jscomp$445:P.i$jscomp$445,item$jscomp$103:void 0,key$jscomp$550:void 0},P.i$jscomp$445++){P.item$jscomp$103=g[P.i$jscomp$445];P.key$jscomp$550=G(P.item$jscomp$103);var l=T.pop(P.key$jscomp$550);l!=null?(u[P.i$jscomp$445]=z[l],h[P.i$jscomp$445]=w[l],D[P.i$jscomp$445]=B[l],W[P.i$jscomp$445]=V[l],t||(c[P.i$jscomp$445]=b[l]),Ct(function(R){return function(){W[R.i$jscomp$445](R.i$jscomp$445);
if(!t)c[R.i$jscomp$445](R.item$jscomp$103)}}(P)),delete B[l]):D[P.i$jscomp$445]=Cws(function(R){return function(){var L=_.J(_.sm(R.i$jscomp$445,void 0,"Fqk1zd")),x=L.next().value;
L=L.next().value;W[R.i$jscomp$445]=L;h[R.i$jscomp$445]=R.key$jscomp$550;if(t)u[R.i$jscomp$445]=KY(X.children(R.item$jscomp$103,x));else{var w6=_.J(_.sm(R.item$jscomp$103,void 0,"GBj5de"));L=w6.next().value;w6=w6.next().value;c[R.i$jscomp$445]=w6;u[R.i$jscomp$445]=KY(X.children(L,x))}}}(P))}qss(B);
y=g;w=h;z=u;B=D;V=W;b=c;e=!1;return u},{debugName:X.debugInstance,
debugFn:X.each,isControlFlowComponent:!0})};
hXh=function(X){var t=[],G=[],y=[],w=[],z=!1;_.Um(function(){for(var B=_.J(w),V=B.next();!V.done;V=B.next())V=V.value,V()});
return Z1(function(){var B=X.each();z&&B.length>0&&(w.pop()(),t.pop(),z=!1);for(var V=Array(B.length),b={i$jscomp$446:0};b.i$jscomp$446<B.length;b={i$jscomp$446:b.i$jscomp$446},b.i$jscomp$446++)if(b.i$jscomp$446<t.length)t[b.i$jscomp$446]!==B[b.i$jscomp$446]&&(Ct(function(g){return function(){return void G[g.i$jscomp$446](B[g.i$jscomp$446])}}(b)),t[b.i$jscomp$446]=B[b.i$jscomp$446]),V[b.i$jscomp$446]=y[b.i$jscomp$446];
else{var e=Cws(function(g){return function(){t[g.i$jscomp$446]=B[g.i$jscomp$446];var F=_.J(_.sm(B[g.i$jscomp$446],void 0,"JMMLmd")),T=F.next().value;F=F.next().value;G[g.i$jscomp$446]=F;V[g.i$jscomp$446]=KY(X.children(T,g.i$jscomp$446))}}(b));
w[b.i$jscomp$446]=e}for(;t.length>B.length;)t.pop(),w.pop()(),G.pop();B.length===0&&!z&&X.fallback&&(b=Cws(function(){V[0]=KY(X.fallback())}),w[0]=b,z=!0);
return y=V},{debugName:X.debugInstance,
isControlFlowComponent:!0})};
Cws=function(X){var t=Bm;return m$(function(G){var y=j0(Oa);try{G.parent=t,X(G)}finally{j0(y)}},!1)};
_.rn=function(X){return X};
_.Nd=function(X){return{isDefault:!0,children:X.children}};
_.P0=function(X){var t=OE6(X),G=_.qt(function(){return um_(t)},void 0,"F1PF4");
return Z1(function(){var y=G(),w;m$(function(){var z=j0(Oa);try{w=KY(y())}finally{j0(z)}});
return w},{debugName:X.debugInstance,
isControlFlowComponent:!0})};
OE6=function(X){X=X.children;return Array.isArray(X)?X:[X]};
Q46=function(X){var t=X.props;X=X.getChildren()[0];return t.when?{when:t.when,children:X}:{isDefault:!0,children:X}};
um_=function(X){var t=function(){return null};
X=_.J(X);for(var G=X.next();!G.done;G=X.next())if(G=G.value,G!=null&&G[jg]&&(G=G.type===_.Nd?{isDefault:!0,children:G.children[0]}:{when:G.props.when,children:G.children[0]}),G instanceof CY&&(G=Q46(G)),G.isDefault)t=G.children;else if(G.when())return G.children;return t};
Wql=function(X){var t=null,G,y={get value(){var z,B;(B=(z=w).validateGetValue)==null||B.call(z);return w.__value},set value(z){var B,V;(V=(B=w).validateSetValue)==null||V.call(B,z);w.__value=z;w.__hasBeenSet=!0}},w=(y.__value=null,y.__hasBeenSet=!1,y.__hasErrored=!1,y.onRender=function(z){if(G&&z!==G){G._disposeRef=void 0;var B;(B=t)==null||B()}G=z;t=X(z)||null},y.onUnmount=function(){var z;
(z=t)==null||z();t=w.value=null},y[IOh]=!0,y);
return w};
ps6=function(X){var t=wsA();if(t==null)throw _.cLw.PRIMITIVE_INVALID_HOOK_CALL();var G=t.hookCounter++;t.hooks||(t.hooks=[]);var y=t.hooks;y[G]||(y[G]={key:X,host:t});if(X!==y[G].key){if(t.JSC$10147___type){var w;X=(w=t.JSC$10147___type)==null?void 0:w.name}else X=t instanceof I2?uR6(t.functionComponent):"<"+t.el.tagName.toLowerCase()+">";throw _.cLw.OUT_OF_ORDER_HOOK_CALL(X);}return y[G]};
rLh=function(X,t){return!X||X.length!==(t==null?void 0:t.length)||X.some(function(G,y){return G!==t[y]})};
NuV=function(X,t){var G=ps6("onChange"),y=wsA();rLh(G.deps,t)&&(G.deps=t,G.pendingEffect=X,y.__syncEffects||(y.__syncEffects=[]),y.__syncEffects.push(G))};
_.Ea=function(X,t){var G=G===void 0?{}:G;G=G.appContext;var y=!!kH.legacyTriggerSoyRendererEvents;Sg.setUp();try{var w=Pwl(X,t,G);y&&(t=G,t==null&&(t=_.HbE(document).getAppContext()),t.get(EeA).JSC$28713_getEventTarget().dispatchEvent(new U8Y(m8_,X,sa)));Sg.log(X);return w}finally{Sg.tearDown()}};
Pwl=function(X,t,G){var y=rh(function(){var w=j0(Oa);try{return m$(function(){var z=_.HbE(_.aH(X)),B;var V=D1_({rootElement:{value:X},appContext:G||(z==null?void 0:(B=z.getOptionalAppContext)==null?void 0:B.call(z)),dispatcher:z});z=_.nt(V);V=FJ(!0);Om++;try{qd(t(),X),QA(!1)}catch(b){throw QA(!0),b;}finally{FJ(V),_.nt(z)}},!1)}catch(z){throw kH.enableContextBasedComponentStacks&&pt(z),z;
}finally{j0(w)}});
X[RX6]=!0;return function(){X.textContent="";y();X[RX6]=!1}};
_.R2=function(X){if(Ku0(e0)){var t;(t=kH.handleError)==null||t.call.apply(t,[kH].concat(_.RY(a5(Error("Yb")))))}var G=Bm,y=I5;Promise.resolve().then(function(){if(G&&!G.isDisposed){var w=_.nt(G);try{rh(function(){return void X()},y)}catch(z){throw kH.enableContextBasedComponentStacks&&pt(z),z;
}finally{_.nt(w)}}})};
_.iv=function(X,t){NuV(function(){return YH(X)},t)};
_.LY=function(X){cm()?_.R2(function(){YH(X)}):NuV(function(){return YH(X)},[])};
LqV=function(X){var t=[].concat(_.RY(X));X.length=0;X=_.J(t);for(t=X.next();!t.done;t=X.next()){t=t.value;iEV(t);var G=t.pendingEffect;t.pendingEffect=null;if(G=G==null?void 0:G())t.pendingCleanup=G}};
iEV=function(X){var t=X.pendingCleanup;X.pendingCleanup=null;t==null||t()};
vew=function(X,t){if(cm())return X();var G=ps6("useMemoInternal");rLh(G.deps,t)&&(G.deps=t,G.value=X());return G.value};
aOf=function(X,t){return vew(X,t)};
v0=function(X){return vew(X,[])};
a2=function(X){return v0(function(){return{value:X}})};
_.lv=function(X,t){if(!X)return null;X=Object.keys(X);X=_.J(X);for(var G=X.next();!G.done;G=X.next()){G=G.value;var y=G.toLowerCase();if(y.indexOf(t,y.length-t.length)>-1)return G}return null};
_.fY=function(){var X=arguments,t=_.xS;X.length>1?t[X[0]]=X[1]:X.length===1&&Object.assign(t,X[0])};
_.Md=function(X,t){return X in _.xS?_.xS[X]:t};
_.X3=function(X,t){return!!_.Md(X,t)};
lOG=function(X){var t=_.xS.EXPERIMENT_FLAGS;return t?t[X]:void 0};
fOJ=function(X){x80.forEach(function(t){return t(X)})};
_.tt=function(X){return X&&window.yterr?function(){try{return X.apply(this,arguments)}catch(t){_.$x(t)}}:X};
_.$x=function(X){var t=_.GA("yt.logging.errors.log");t?t(X,"ERROR",void 0,void 0,void 0,void 0,void 0):(t=_.Md("ERRORS",[]),t.push([X,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.fY("ERRORS",t));fOJ(X)};
_.yQ=function(X,t,G,y,w){var z=_.GA("yt.logging.errors.log");z?z(X,"WARNING",t,G,y,void 0,w):(z=_.Md("ERRORS",[]),z.push([X,"WARNING",t,G,y,void 0,w]),_.fY("ERRORS",z))};
XPA=function(X,t){t=X.split(t);for(var G={},y=0,w=t.length;y<w;y++){var z=t[y].split("=");if(z.length===1&&z[0]||z.length===2)try{var B=Mbs(z[0]||""),V=Mbs(z[1]||"");if(B in G){var b=G[B];Array.isArray(b)?_.X4(b,V):G[B]=[b,V]}else G[B]=V}catch(T){var e=T,g=z[0],F=String(XPA);e.args=[{key:g,value:z[1],query:X,method:$Y0===F?"unchanged":F}];tQA.hasOwnProperty(g)||_.yQ(e)}}return G};
GiG=function(X){var t=[];_.RH.forEach(X,function(G,y){var w=_.ww(y);G=Array.isArray(G)?G:[G];_.zA(G,function(z){z==""?t.push(w):t.push(w+"="+_.ww(z))})});
return t.join("&")};
_.Hx=function(X){X.charAt(0)==="?"&&(X=X.substring(1));return XPA(X,"&")};
_.Jt=function(X){return X.indexOf("?")!==-1?(X=(X||"").split("#")[0],X=X.split("?",2),_.Hx(X.length>1?X[1]:X[0])):{}};
_.Bx=function(X,t){return yEJ(X,t||{},!0)};
wPf=function(X,t){return yEJ(X,t||{},!1)};
yEJ=function(X,t,G){var y=X.split("#",2);X=y[0];y=y.length>1?"#"+y[1]:"";var w=X.split("?",2);X=w[0];w=_.Hx(w[1]||"");for(var z in t)if(G||!_.RH.containsKey(w,z))w[z]=t[z];return _.ns(X,w)+y};
dw=function(X){if(!t)var t=window.location.href;var G=_.VQ(X)[1]||null,y=_.bF(X);return G&&y?kx(X,t):y?_.bF(t)===y&&(Number(_.VQ(t)[4]||null)||null)===(Number(_.VQ(X)[4]||null)||null):!0};
_.Hqv=function(X){X=zul(X);return X===null?!1:X[0]==="com"&&X[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
zul=function(X){X=_.bF(X);return X!==null?X.split(".").reverse():null};
Mbs=function(X){return X&&X.match(ot_)?X:eH(X)};
_.jH=function(X){return new JEV(X)};
_.gw=function(){Bkh||(Bkh=new ntJ);return Bkh};
bqs=function(X){var t=_.F3,G,y;_.n(function(w){G=_.gw();return(y=G.resolve(_.jH(t)))?(X(y),w.return(Promise.resolve(y))):w.return(G.resolve(new VQY(t)).then(function(z){X(z);return z}))})};
_.A=function(X){X=TA(X);return typeof X==="string"&&X==="false"?!1:!!X};
_.At=function(X,t){X=TA(X);return X===void 0&&t!==void 0?t:Number(X||0)};
kih=function(X){X=TA(X);return Array.isArray(X)?_.iG(X,function(t){return Number(t||0)}):[Number(X||0)]};
_.Yx=function(X){X=TA(X);return X!==void 0?String(X):""};
_.sc=function(X){X=TA(X);return Array.isArray(X)?_.iG(X,function(t){return String(t||"")}):[String(X||"")]};
dYG=function(){return _.Md("EXPERIMENTS_TOKEN","")};
TA=function(X){return _.Md("EXPERIMENT_FLAGS",{})[X]};
euJ=function(){for(var X=[],t=_.Md("EXPERIMENTS_FORCED_FLAGS",{}),G=_.J(Object.keys(t)),y=G.next();!y.done;y=G.next())y=y.value,X.push({key:y,value:String(t[y])});G=_.Md("EXPERIMENT_FLAGS",{});y=_.J(Object.keys(G));for(var w=y.next();!w.done;w=y.next())w=w.value,w.startsWith("force_")&&t[w]===void 0&&X.push({key:w,value:String(G[w])});return X};
gt0=function(){if(!jaf)return null;var X=jaf();return"open"in X?X:null};
_.Fxf=function(X){switch(_.Du(X)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Du=function(X){return X&&"status"in X?X.status:-1};
_.SH=function(X,t){typeof X==="function"&&(X=_.tt(X));return window.setTimeout(X,t)};
_.ht=function(X,t){typeof X==="function"&&(X=_.tt(X));return window.setInterval(X,t)};
_.Zu=function(X){window.clearTimeout(X)};
AEw=function(X){X=_.Jt(X);for(var t=_.J(Tkh),G=t.next();!G.done;G=t.next())if(X[G.value]!==void 0)return!0;return!1};
DY6=function(X,t,G,y,w,z,B,V,b){G=G===void 0?"GET":G;y=y===void 0?"":y;V=V===void 0?!1:V;var e=gt0();if(!e)return null;var g=function(){(e&&"readyState"in e?e.readyState:0)===4&&t&&_.tt(t)(e)};
"onloadend"in e?e.addEventListener("loadend",g,!1):e.onreadystatechange=g;_.A("debug_forward_web_query_parameters")&&(X=Ylh(X,window.location.search));e.open(G,X,!0);z&&(e.responseType=z);B&&(e.withCredentials=!0);G=G==="POST"&&(window.FormData===void 0||!(y instanceof FormData));if(w=saA(X,w))for(var F in w)e.setRequestHeader(F,w[F]),"content-type"===F.toLowerCase()&&(G=!1);G&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");b&&"onprogress"in e&&(e.onprogress=function(){b(e.responseText)});
if(V&&"setAttributionReporting"in XMLHttpRequest.prototype){X={eventSourceEligible:!0,triggerEligible:!1};try{e.setAttributionReporting(X)}catch(T){_.yQ(T)}}e.send(y);return e};
saA=function(X,t){t=t===void 0?{}:t;var G=dw(X),y=_.Md("INNERTUBE_CLIENT_NAME"),w=_.A("web_ajax_ignore_global_headers_if_set"),z;for(z in SlG){var B=_.Md(SlG[z]),V=z==="X-Goog-AuthUser"||z==="X-Goog-PageId";z!=="X-Goog-Visitor-Id"||B||(B=_.Md("VISITOR_DATA"));var b;if(!(b=!B)){if(!(b=G||(_.bF(X)?!1:!0))){b=X;var e;if(e=_.A("add_auth_headers_to_remarketing_google_dot_com_ping")&&z==="Authorization"&&(y==="TVHTML5"||y==="TVHTML5_UNPLUGGED"||y==="TVHTML5_SIMPLY"))e=zul(b),e=e===null?!1:e[1]==="google"?
!0:e[2]==="google"?e[0]==="au"&&e[1]==="com"?!0:e[0]==="uk"&&e[1]==="co"?!0:!1:!1;e&&(b=_.qJ(b)||"",b=b.split("/"),b="/"+(b.length>1?b[1]:""),e=b==="/pagead");b=e?!0:!1}b=!b}b||w&&t[z]!==void 0||y==="TVHTML5_UNPLUGGED"&&V||(t[z]=B)}"X-Goog-EOM-Visitor-Id"in t&&"X-Goog-Visitor-Id"in t&&delete t["X-Goog-Visitor-Id"];if(G||!_.bF(X))t["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(G||!_.bF(X)){try{var g=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(F){}g&&(t["X-YouTube-Time-Zone"]=
g)}document.location.hostname.endsWith("youtubeeducation.com")||!G&&_.bF(X)||(t["X-YouTube-Ad-Signals"]=GiG(huh()));return t};
_.ZqE=function(X,t){var G=_.bF(X);_.A("debug_handle_relative_url_for_query_forward_killswitch")||!G&&dw(X)&&(G=document.location.hostname);var y=_.qJ(X);y=(G=G&&(G.endsWith("youtube.com")||G.endsWith("youtube-nocookie.com")))&&y&&y.startsWith("/api/");if(!G||y)return X;var w=_.Hx(t),z={};_.zA(Tkh,function(B){w[B]&&(z[B]=w[B])});
return wPf(X,z)};
qlv=function(X,t){t.method="POST";t.postParams||(t.postParams={});return _.Cs(X,t)};
CsV=function(X,t){var G=_.Md("XSRF_FIELD_NAME"),y;t.headers&&(y=t.headers["Content-Type"]);return!t.excludeXsrf&&(!_.bF(X)||t.withCredentials||_.bF(X)===document.location.hostname)&&t.method==="POST"&&(!y||y==="application/x-www-form-urlencoded")&&!(t.postParams&&t.postParams[G])};
_.Cs=function(X,t){var G=t.format||"JSON";X=Kxs(X,t);var y=Oql(X,t),w=!1,z=ui0(X,function(b){if(!w){w=!0;V&&_.Zu(V);var e=_.Fxf(b),g=null,F=400<=b.status&&b.status<500,T=500<=b.status&&b.status<600;if(e||F||T)g=Qal(X,G,b,t.convertToSafeHtml);e&&(e=I0s(G,b,g));g=g||{};F=t.context||_.tA;e?t.onSuccess&&t.onSuccess.call(F,b,g):t.onError&&t.onError.call(F,b,g);t.onFinish&&t.onFinish.call(F,b,g)}},t.method,y,t.headers,t.responseType,t.withCredentials,!1,t.onProgress);
y=t.timeout||0;if(t.onTimeout&&y>0){var B=t.onTimeout;var V=_.SH(function(){w||(w=!0,z.abort(),_.Zu(V),B.call(t.context||_.tA,z))},y)}return z};
Kxs=function(X,t){t.includeDomain&&(X=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+X);var G=_.Md("XSRF_FIELD_NAME");if(t=t.urlParams)t[G]&&delete t[G],X=_.Bx(X,t);return X};
Oql=function(X,t){var G=_.Md("XSRF_FIELD_NAME"),y=_.Md("XSRF_TOKEN"),w=t.postBody||"",z=t.postParams;CsV(X,t)&&(z||(z={}),z[G]=y);(_.A("ajax_parse_query_data_only_when_filled")&&z&&Object.keys(z).length>0||z)&&typeof w==="string"&&(w=_.Hx(w),_.RH.extend(w,z),w=t.postBodyFormat&&t.postBodyFormat==="JSON"?JSON.stringify(w):_.Ks(w));z=w||z&&!_.RH.isEmpty(z);!Wxv&&z&&t.method!=="POST"&&(Wxv=!0,_.$x(Error("Gc")));return w};
Qal=function(X,t,G,y){var w=null;switch(t){case "JSON":try{var z=G.responseText}catch(B){throw y=Error("Hc"),y.params=X,_.yQ(y),B;}X=G.getResponseHeader("Content-Type")||"";z&&X.indexOf("json")>=0&&(z.substring(0,5)===")]}'\n"&&(z=z.substring(5)),w=JSON.parse(z));break;case "XML":if(X=(X=G.responseXML)?cE6(X):null)w={},_.zA(X.getElementsByTagName("*"),function(B){w[B.tagName]=pP0(B)})}y&&rEE(w);
return w};
rEE=function(X){if(_.$h(X))for(var t in X)t==="html_content"||zV(t,"_html")?X[t]=tI(X[t]):rEE(X[t])};
I0s=function(X,t,G){if(t&&t.status===204)return!0;switch(X){case "JSON":return!!G;case "XML":return Number(G&&G.return_code)===0;case "RAW":return!0;default:return!!G}};
cE6=function(X){return X?(X=("responseXML"in X?X.responseXML:X).getElementsByTagName("root"))&&X.length>0?X[0]:null:null};
pP0=function(X){var t="";_.zA(X.childNodes,function(G){t+=G.nodeValue});
return t};
NkE=function(X){if(X.name==="JavaException")return!0;X=X.stack;return X.includes("chrome://")||X.includes("-extension://")||X.includes("webkit-masked-url://")};
PsG=function(X){if(!X.stack)return!0;var t=!X.stack.includes("\n");return t&&X.stack.includes("ErrorType: ")||t&&X.stack.includes("Anonymous function (Unknown script")||X.stack.toLowerCase()==="not available"||X.fileName==="user-script"||X.fileName.startsWith("user-script:")?!0:!1};
_.Oc=function(X){_.po.call(this);this.JSC$10412_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!X};
UYv=function(X,t){var G=X.length,y=0,w=function(){return X.charCodeAt(y++)};
do{var z=Et0(w);if(z===Infinity)break;var B=z>>3;switch(z&7){case 0:z=Et0(w);if(B===t)return z;break;case 1:if(B===t)return;y+=8;break;case 2:z=Et0(w);if(B===t)return X.substr(y,z);y+=z;break;case 5:if(B===t)return;y+=4;break;default:return}}while(y<G)};
Et0=function(X){var t=X(),G=t&127;if(t<128)return G;t=X();G|=(t&127)<<7;if(t<128)return G;t=X();G|=(t&127)<<14;if(t<128)return G;t=X();return t<128?G|(t&127)<<21:Infinity};
Ru_=function(X,t,G,y){if(X)if(Array.isArray(X)){var w=y;for(y=0;y<X.length&&!(X[y]&&(w+=mYh(y,X[y],t,G),w>500));y++);y=w}else if(typeof X==="object")for(w in X){if(X[w]){var z=w;var B=X[w],V=t,b=G;z=typeof B!=="string"||z!=="clickTrackingParams"&&z!=="trackingParams"?0:(B=UYv(atob(B.replace(/-/g,"+").replace(/_/g,"/")),2))?mYh(z+".ve",B,V,b):0;y+=z;y+=mYh(w,X[w],t,G);if(y>500)break}}else G[t]=uF(X),y+=G[t].length;else G[t]=uF(X),y+=G[t].length;return y};
mYh=function(X,t,G,y){G+="."+X;X=uF(t);y[G]=X;return G.length+X.length};
uF=function(X){try{return(typeof X==="string"?X:String(JSON.stringify(X))).substr(0,500)}catch(t){return"unable to serialize "+typeof X+" ("+t.message+")"}};
iq_=function(X){switch(X){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}};
_.Iu=function(X,t,G,y,w){_.QQ.set(X,t,{maxAge:G,path:"/",domain:y===void 0?"youtube.com":y,secure:w===void 0?!1:w})};
_.Lxw=function(X,t,G){_.QQ.remove(X,t===void 0?"/":t,G===void 0?"youtube.com":G)};
_.cx=function(){if(_.A("embeds_web_enable_cookie_detection_fix")){if(!_.tA.navigator.cookieEnabled)return!1}else if(!_.QQ.isEnabled())return!1;if(!_.QQ.isEmpty())return!0;_.A("embeds_web_enable_cookie_detection_fix")?_.QQ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.QQ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.QQ.get("TESTCOOKIESENABLED")!=="1")return!1;_.QQ.remove("TESTCOOKIESENABLED");return!0};
vtV=function(){var X=_.tA.navigator;return X?X.connection:void 0};
a0h=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(X){}};
_.xYV=function(){var X=vtV();if(X){var t=l0v[X.type||"unknown"]||"CONN_UNKNOWN";X=l0v[X.effectiveType||"unknown"]||"CONN_UNKNOWN";t==="CONN_CELLULAR_UNKNOWN"&&X!=="CONN_UNKNOWN"&&(t=X);if(t!=="CONN_UNKNOWN")return t;if(X!=="CONN_UNKNOWN")return X}};
MQh=function(){var X=vtV();if(X!=null&&X.effectiveType)return f0G.hasOwnProperty(X.effectiveType)?f0G[X.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.rw=function(){try{return _.ps(),!0}catch(X){return!1}};
_.ps=function(X){if(_.Md("DATASYNC_ID")!==void 0)return _.Md("DATASYNC_ID");throw new _.NJ("Datasync ID not set",X===void 0?"unknown":X);};
_.Px=function(X){this.mechanism=X};
Ec=function(X){this.mechanism=X};
Uc=function(X){this.storage_=X;this.cachedIsStorageAvailable_=null};
XKJ=function(){var X=null;try{X=_.tA.localStorage||null}catch(t){}Uc.call(this,X)};
$Ql=function(){var X=null;try{X=_.tA.sessionStorage||null}catch(t){}Uc.call(this,X)};
mU=function(X,t){this.mechanism_=X;this.JSC$10514_prefix_=t+"::"};
_.t7E=function(X){var t=new XKJ;return t.isAvailable()?X?new mU(t,X):t:null};
_.GGl=function(X){var t=new $Ql;return t.isAvailable()?X?new mU(t,X):t:null};
wK0=function(){var X;return(X=ygh())==null?void 0:X.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Ls=function(X){z7s||(_.Ru?_.Ru.logError(X):(_.iF.push({type:"ERROR",payload:X}),_.iF.length>10&&_.iF.shift()))};
vx=function(X,t){z7s||(_.Ru?_.Ru.logEvent(X,t):(_.iF.push({type:"EVENT",eventType:X,payload:t}),_.iF.length>10&&_.iF.shift()))};
au=function(X){if(X.indexOf(":")>=0)throw Error("Oc");};
lF=function(X){return X.substr(0,X.indexOf(":"))||X};
Jgh=function(){return(HgY||o0A)&&xx("applewebkit")&&!xx("version")&&(!xx("safari")||xx("gsa/"))};
xx=function(X){var t=_.es();return t?t.toLowerCase().indexOf(X)>=0:!1};
V7E=function(X,t,G,y){t=lF(t);var w=X instanceof Error?X:Error("Pc`"+X);if(w instanceof MJ)return w;X={objectStoreNames:G,dbName:t,dbVersion:y};if(w.name==="QuotaExceededError")return new MJ("QUOTA_EXCEEDED",X);if(_.Xl&&w.name==="UnknownError")return new MJ("QUOTA_MAYBE_EXCEEDED",X);if(w instanceof B9V)return new MJ("MISSING_INDEX",Object.assign({},X,{objectStore:w.objectStore,index:w.index}));if(w.name==="InvalidStateError"&&n0l.some(function(z){return w.message.includes(z)}))return new MJ("EXECUTE_TRANSACTION_ON_CLOSED_DB",
X);
if(w.name==="AbortError")return new MJ("UNKNOWN_ABORT",X,w.message);w.args=[Object.assign({},X,{name:"IdbError",originalName:w.name})];w.level="WARNING";return w};
$7=function(X,t,G){var y=wK0();return new MJ("IDB_NOT_SUPPORTED",{context:{caller:X,publicName:t,version:G,hasSucceededOnce:y==null?void 0:y.hasSucceededOnce}})};
bgw=function(X){if(!X)throw Error();throw X;};
kGv=function(X){return X};
dQY=function(X,t,G){var y=function(){try{X.removeEventListener("success",w),X.removeEventListener("error",z)}catch(B){}},w=function(){t(X.result);
y()},z=function(){G(X.error);
y()};
X.addEventListener("success",w);X.addEventListener("error",z)};
e7V=function(X){return new Promise(function(t,G){dQY(X,t,G)})};
yw=function(X){return new tG(new Gx(function(t,G){dQY(X,t,G)}))};
j$l=function(X,t){return new tG(new Gx(function(G,y){var w=function(){var z=X?t(X):null;z?z.then(function(B){X=B;w()},y):G()};
w()}))};
FCw=function(X,t,G){return new Promise(function(y,w){var z=t!==void 0?self.indexedDB.open(X,t):self.indexedDB.open(X);var B=G.blocked,V=G.blocking,b=G.terminated,e=G.upgrade,g=G.closed,F,T=function(){F||(F=new wl(z.result,{closed:g}));return F};
z.addEventListener("upgradeneeded",function(D){try{if(D.newVersion===null)throw Error("Uc");if(z.transaction===null)throw Error("Vc");D.dataLoss&&D.dataLoss!=="none"&&vx("IDB_DATA_CORRUPTED",{reason:D.dataLossMessage||"unknown reason",dbName:lF(X)});var h=T(),u=new g0v(z.transaction);e&&e(h,function(W){return D.oldVersion<W&&D.newVersion>=W},u);
u.done.catch(function(W){w(W)})}catch(W){w(W)}});
z.addEventListener("success",function(){var D=z.result;V&&D.addEventListener("versionchange",function(){V(T())});
D.addEventListener("close",function(){vx("IDB_UNEXPECTEDLY_CLOSED",{dbName:lF(X),dbVersion:D.version});b&&b()});
y(T())});
z.addEventListener("error",function(){w(z.error)});
B&&z.addEventListener("blocked",function(){B()})})};
T9h=function(X,t,G){G=G===void 0?{}:G;return FCw(X,t,G)};
_.Hz=function(X,t){t=t===void 0?{}:t;var G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return _.CL(B,2),G=self.indexedDB.deleteDatabase(X),y=t,(w=y.blocked)&&G.addEventListener("blocked",function(){w()}),B.yield(e7V(G),4);
if(B.nextAddress!=2)return _.zx(B,0);z=_.IY(B);throw V7E(z,X,"",-1);})};
YGJ=function(X,t){var G;return _.n(function(y){if(y.nextAddress==1)return y.yield(_.JG(AgV,t),2);G=y.yieldResult;return y.return(_.Bz(G,["databases"],{enableRetries:!0,mode:"readwrite"},function(w){var z=w.objectStore("databases");return z.get(X.actualName).then(function(B){if(B?X.actualName!==B.actualName||X.publicName!==B.publicName||X.userIdentifier!==B.userIdentifier:1)return z.put(X).then(function(){})})}))})};
_.nb=function(X,t){var G;return _.n(function(y){if(y.nextAddress==1)return X?y.yield(_.JG(AgV,t),2):y.return();G=y.yieldResult;return y.return(G.delete("databases",X))})};
_.s$J=function(X,t){var G,y;return _.n(function(w){return w.nextAddress==1?(G=[],w.yield(_.JG(AgV,t),2)):w.nextAddress!=3?(y=w.yieldResult,w.yield(_.Bz(y,["databases"],{enableRetries:!0,mode:"readonly"},function(z){G.length=0;return Vw(z.objectStore("databases"),{},function(B){X(B.getValue())&&G.push(B.getValue());return B.continue()})}),3)):w.return(G)})};
DQG=function(X,t){return _.s$J(function(G){return G.publicName===X&&G.userIdentifier!==void 0},t)};
ZgG=function(){var X,t,G,y;return _.n(function(w){switch(w.nextAddress){case 1:X=wK0();if((t=X)==null?0:t.hasSucceededOnce)return w.return(!0);var z;if(z=SGf)z=/WebKit\/([0-9]+)/.exec(_.es()),z=!!(z&&parseInt(z[1],10)>=600);z&&(z=/WebKit\/([0-9]+)/.exec(_.es()),z=!(z&&parseInt(z[1],10)>=602));if(z||bt)return w.return(!1);try{if(G=self,!(G.indexedDB&&G.IDBIndex&&G.IDBKeyRange&&G.IDBObjectStore))return w.return(!1)}catch(B){return w.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return w.return(!1);
_.CL(w,2);y={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return w.yield(YGJ(y,h7J),4);case 4:return w.yield(_.nb("yt-idb-test-do-not-use",h7J),5);case 5:return w.return(!0);case 2:return _.IY(w),w.return(!1)}})};
CAV=function(){if(qGs!==void 0)return qGs;z7s=!0;return qGs=ZgG().then(function(X){z7s=!1;var t;if((t=ygh())!=null&&t.expiringStorage_){var G;t={hasSucceededOnce:((G=wK0())==null?void 0:G.hasSucceededOnce)||X};var y;(y=ygh())==null||y.set("LAST_RESULT_ENTRY_KEY",t,2592E3,!0)}return X})};
k7=function(){return _.GA("ytglobal.idbToken_")||void 0};
_.eD=function(){var X=k7();return X?Promise.resolve(X):CAV().then(function(t){(t=t?h7J:void 0)&&_.dl("ytglobal.idbToken_",t);return t})};
KCf=function(X){if(!_.rw())throw X=new MJ("AUTH_INVALID",{dbName:X}),_.Ls(X),X;var t=_.ps();return{actualName:X+":"+t,publicName:X,userIdentifier:t}};
OgJ=function(X,t,G,y){var w,z,B,V,b,e;return _.n(function(g){switch(g.nextAddress){case 1:return z=(w=Error().stack)!=null?w:"",g.yield(_.eD(),2);case 2:B=g.yieldResult;if(!B)throw V=$7("openDbImpl",X,t),_.A("ytidb_async_stack_killswitch")||(V.stack=V.stack+"\n"+z.substring(z.indexOf("\n")+1)),_.Ls(V),V;au(X);b=G?{actualName:X,publicName:X,userIdentifier:void 0}:KCf(X);_.CL(g,3);return g.yield(YGJ(b,B),5);case 5:return g.yield(T9h(b.actualName,t,y),6);case 6:return g.return(g.yieldResult);case 3:return e=
_.IY(g),_.CL(g,7),g.yield(_.nb(b.actualName,B),9);case 9:_.zx(g,8);break;case 7:_.IY(g);case 8:throw e;}})};
uV6=function(X,t,G){G=G===void 0?{}:G;return OgJ(X,t,!1,G)};
Q$J=function(X,t,G){G=G===void 0?{}:G;return OgJ(X,t,!0,G)};
Il0=function(X,t){t=t===void 0?{}:t;var G,y;return _.n(function(w){if(w.nextAddress==1)return w.yield(_.eD(),2);if(w.nextAddress!=3){G=w.yieldResult;if(!G)return w.return();au(X);y=KCf(X);return w.yield(_.Hz(y.actualName,t),3)}return w.yield(_.nb(y.actualName,G),0)})};
WCf=function(X,t,G){X=X.map(function(y){return _.n(function(w){return w.nextAddress==1?w.yield(_.Hz(y.actualName,t),2):w.yield(_.nb(y.actualName,G),0)})});
return Promise.all(X).then(function(){})};
cgv=function(X){var t=t===void 0?{}:t;var G,y;return _.n(function(w){if(w.nextAddress==1)return w.yield(_.eD(),2);if(w.nextAddress!=3){G=w.yieldResult;if(!G)return w.return();au(X);return w.yield(DQG(X,G),3)}y=w.yieldResult;return w.yield(WCf(y,t,G),0)})};
pK6=function(X,t){t=t===void 0?{}:t;var G;return _.n(function(y){if(y.nextAddress==1)return y.yield(_.eD(),2);if(y.nextAddress!=3){G=y.yieldResult;if(!G)return y.return();au(X);return y.yield(_.Hz(X,t),3)}return y.yield(_.nb(X,G),0)})};
jD=function(X,t){return rgs(X,t)};
PAG=function(X){return _.JG(N9V(),X)};
E0v=function(X,t,G,y){var w,z,B;return _.n(function(V){switch(V.nextAddress){case 1:return w={config:X,hashData:t,timestamp:y!==void 0?y:(0,_.gl)()},V.yield(PAG(G),2);case 2:return z=V.yieldResult,V.yield(z.clear("hotConfigStore"),3);case 3:return V.yield(z.put("hotConfigStore",w),4);case 4:return B=V.yieldResult,V.return(B)}})};
UQw=function(X,t,G,y,w){var z,B,V;return _.n(function(b){switch(b.nextAddress){case 1:return z={config:X,hashData:t,configData:G,timestamp:w!==void 0?w:(0,_.gl)()},b.yield(PAG(y),2);case 2:return B=b.yieldResult,b.yield(B.clear("coldConfigStore"),3);case 3:return b.yield(B.put("coldConfigStore",z),4);case 4:return V=b.yieldResult,b.return(V)}})};
mQE=function(X){var t,G;return _.n(function(y){return y.nextAddress==1?y.yield(PAG(X),2):y.nextAddress!=3?(t=y.yieldResult,G=void 0,y.yield(_.Bz(t,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(w){return _.Fl(w.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(z){G=z.getValue()})}),3)):y.return(G)})};
R7s=function(X){var t,G;return _.n(function(y){return y.nextAddress==1?y.yield(PAG(X),2):y.nextAddress!=3?(t=y.yieldResult,G=void 0,y.yield(_.Bz(t,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(w){return _.Fl(w.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(z){G=z.getValue()})}),3)):y.return(G)})};
ig_=function(){return _.n(function(X){return X.yield(cgv("ytGcfConfig"),0)})};
LCh=function(){return"INNERTUBE_API_KEY"in _.xS&&"INNERTUBE_API_VERSION"in _.xS};
_.Tx=function(){return{innertubeApiKey:_.Md("INNERTUBE_API_KEY"),innertubeApiVersion:_.Md("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Md("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Md("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Md("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Md("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Md("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Md("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Md("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.X3("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.X3("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Md("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Xys=function(X){var t={client:{hl:X.innertubeContextHostLanguage,gl:X.innertubeContextGeoLocation,clientName:X.innertubeContextClientName,clientVersion:X.innertubeContextClientVersion,configInfo:X.innertubeContextClientConfigInfo}};navigator.userAgent&&(t.client.userAgent=String(navigator.userAgent));var G=_.tA.devicePixelRatio;G&&G!=1&&(t.client.screenDensityFloat=String(G));G=dYG();G!==""&&(t.client.experimentsToken=G);G=euJ();G.length>0&&(t.request={internalExperimentFlags:G});v0f(X,void 0,t);
all(void 0,t);ll6(void 0,t);xQh(X,void 0,t);fl0(void 0,t);_.A("start_client_gcf")&&M7_(void 0,t);_.Md("DELEGATED_SESSION_ID")&&!_.A("pageid_as_header_web")&&(t.user={onBehalfOfUser:_.Md("DELEGATED_SESSION_ID")});!_.A("fill_delegate_context_in_gel_killswitch")&&(X=_.Md("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t.user=Object.assign({},t.user,{serializedDelegationContext:X}));X=_.Md("INNERTUBE_CONTEXT");var y;if(_.A("enable_persistent_device_token")&&(X==null?0:(y=X.client)==null?0:y.rolloutToken)){var w;
t.client.rolloutToken=X==null?void 0:(w=X.client)==null?void 0:w.rolloutToken}y=Object;w=y.assign;X=t.client;G={};for(var z=_.J(Object.entries(_.Hx(_.Md("DEVICE","")))),B=z.next();!B.done;B=z.next()){var V=_.J(B.value);B=V.next().value;V=V.next().value;B==="cbrand"?G.deviceMake=V:B==="cmodel"?G.deviceModel=V:B==="cbr"?G.browserName=V:B==="cbrver"?G.browserVersion=V:B==="cos"?G.osName=V:B==="cosver"?G.osVersion=V:B==="cplatform"&&(G.platform=V)}t.client=w.call(y,X,G);return t};
v0f=function(X,t,G){X=X.innertubeContextClientName;if(X==="WEB"||X==="MWEB"||X===1||X===2)if(t){G=_.Co(t,$rG,96)||new $rG;var y=tlf();y=Object.keys(G8v).indexOf(y);y=y===-1?null:y;y!==null&&_.AG(G,3,y);_.Oi(t,96,G)}else G&&(G.client.mainAppWebInfo=(y=G.client.mainAppWebInfo)!=null?y:{},G.client.mainAppWebInfo.webDisplayMode=tlf())};
all=function(X,t){var G=_.GA("yt.embedded_player.embed_url");G&&(X?(t=_.Co(X,ypV,7)||new ypV,_.rp(t,4,G),_.Oi(X,7,t)):t&&(t.thirdParty={embedUrl:G}))};
ll6=function(X,t){var G;if(_.A("web_log_memory_total_kbytes")&&((G=_.tA.navigator)==null?0:G.deviceMemory)){var y;G=(y=_.tA.navigator)==null?void 0:y.deviceMemory;X?_.Y7(X,95,ZH(G*1E6)):t&&(t.client.memoryTotalKbytes=""+G*1E6)}};
xQh=function(X,t,G){if(X.appInstallData)if(t){var y;G=(y=_.Co(t,sr,62))!=null?y:new sr;_.rp(G,6,X.appInstallData);_.Oi(t,62,G)}else G&&(G.client.configInfo=G.client.configInfo||{},G.client.configInfo.appInstallData=X.appInstallData)};
fl0=function(X,t){var G=_.xYV();G&&(X?_.AG(X,61,wyv[G]):t&&(t.client.connectionType=G));_.A("web_log_effective_connection_type")&&(G=MQh())&&(X?_.AG(X,94,zl6[G]):t&&(t.client.effectiveConnectionType=G))};
_.Jps=function(X,t,G){G=G===void 0?{}:G;var y={};_.Md("EOM_VISITOR_DATA")?y={"X-Goog-EOM-Visitor-Id":_.Md("EOM_VISITOR_DATA")}:y={"X-Goog-Visitor-Id":G.visitorData||_.Md("VISITOR_DATA","")};if(t&&t.includes("www.youtube-nocookie.com"))return y;t=G.authorization||_.Md("AUTHORIZATION");t||(X?t="Bearer "+_.GA("gapi.auth.getToken")().access_token:(HpA.instance||(HpA.instance=new HpA),X=o10(),_.A("pageid_as_header_web")||delete X["X-Goog-PageId"],y=Object.assign({},y,X)));t&&(y.Authorization=t);return y};
M7_=function(X,t){var G=BVs();if(G){var y=G.coldConfigData,w=G.coldHashData;G=G.hotHashData;if(X){var z;t=(z=_.Co(X,sr,62))!=null?z:new sr;y=_.rp(t,1,y);_.rp(y,3,w).setHotHashData(G);_.Oi(X,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},y&&(t.client.configInfo.coldConfigData=y),w&&(t.client.configInfo.coldHashData=w),G&&(t.client.configInfo.hotHashData=G))}};
DN=function(X){for(var t=X.length;--t>=0;)X[t]=0};
n1Y=function(X,t,G,y,w){this.static_tree=X;this.extra_bits=t;this.extra_base=G;this.elems=y;this.max_length=w;this.has_stree=X&&X.length};
Vls=function(X,t){this.dyn_tree=X;this.max_code=0;this.stat_desc=t};
SD=function(X,t){X.pending_buf[X.pending++]=t&255;X.pending_buf[X.pending++]=t>>>8&255};
hG=function(X,t,G){X.bi_valid>16-G?(X.bi_buf|=t<<X.bi_valid&65535,SD(X,X.bi_buf),X.bi_buf=t>>16-X.bi_valid,X.bi_valid+=G-16):(X.bi_buf|=t<<X.bi_valid&65535,X.bi_valid+=G)};
ZN=function(X,t,G){hG(X,G[t*2],G[t*2+1])};
bpG=function(X,t){var G=0;do G|=X&1,X>>>=1,G<<=1;while(--t>0);return G>>>1};
k8w=function(X,t,G){var y=Array(16),w=0,z;for(z=1;z<=15;z++)y[z]=w=w+G[z-1]<<1;for(G=0;G<=t;G++)w=X[G*2+1],w!==0&&(X[G*2]=bpG(y[w]++,w))};
drG=function(X){var t;for(t=0;t<286;t++)X.dyn_ltree[t*2]=0;for(t=0;t<30;t++)X.dyn_dtree[t*2]=0;for(t=0;t<19;t++)X.bl_tree[t*2]=0;X.dyn_ltree[512]=1;X.opt_len=X.static_len=0;X.last_lit=X.matches=0};
el0=function(X){X.bi_valid>8?SD(X,X.bi_buf):X.bi_valid>0&&(X.pending_buf[X.pending++]=X.bi_buf);X.bi_buf=0;X.bi_valid=0};
jcA=function(X,t,G){el0(X);SD(X,G);SD(X,~G);q1.arraySet(X.pending_buf,X.window,t,G,X.pending);X.pending+=G};
g1f=function(X,t,G,y){var w=t*2,z=G*2;return X[w]<X[z]||X[w]===X[z]&&y[t]<=y[G]};
FT_=function(X,t,G){for(var y=X.heap[G],w=G<<1;w<=X.heap_len;){w<X.heap_len&&g1f(t,X.heap[w+1],X.heap[w],X.depth)&&w++;if(g1f(t,y,X.heap[w],X.depth))break;X.heap[G]=X.heap[w];G=w;w<<=1}X.heap[G]=y};
DrY=function(X,t,G){var y=0;if(X.last_lit!==0){do{var w=X.pending_buf[X.d_buf+y*2]<<8|X.pending_buf[X.d_buf+y*2+1];var z=X.pending_buf[X.l_buf+y];y++;if(w===0)ZN(X,z,t);else{var B=Cb[z];ZN(X,B+256+1,t);var V=TVv[B];V!==0&&(z-=Ap0[B],hG(X,z,V));w--;B=w<256?Kb[w]:Kb[256+(w>>>7)];ZN(X,B,G);V=Y8J[B];V!==0&&(w-=sc0[B],hG(X,w,V))}}while(y<X.last_lit)}ZN(X,256,t)};
S8w=function(X,t){var G=t.dyn_tree,y=t.stat_desc.static_tree,w=t.stat_desc.has_stree,z=t.stat_desc.elems,B,V=-1;X.heap_len=0;X.heap_max=573;for(B=0;B<z;B++)G[B*2]!==0?(X.heap[++X.heap_len]=V=B,X.depth[B]=0):G[B*2+1]=0;for(;X.heap_len<2;){var b=X.heap[++X.heap_len]=V<2?++V:0;G[b*2]=1;X.depth[b]=0;X.opt_len--;w&&(X.static_len-=y[b*2+1])}t.max_code=V;for(B=X.heap_len>>1;B>=1;B--)FT_(X,G,B);b=z;do B=X.heap[1],X.heap[1]=X.heap[X.heap_len--],FT_(X,G,1),y=X.heap[1],X.heap[--X.heap_max]=B,X.heap[--X.heap_max]=
y,G[b*2]=G[B*2]+G[y*2],X.depth[b]=(X.depth[B]>=X.depth[y]?X.depth[B]:X.depth[y])+1,G[B*2+1]=G[y*2+1]=b,X.heap[1]=b++,FT_(X,G,1);while(X.heap_len>=2);X.heap[--X.heap_max]=X.heap[1];B=t.dyn_tree;b=t.max_code;y=t.stat_desc.static_tree;w=t.stat_desc.has_stree;z=t.stat_desc.extra_bits;var e=t.stat_desc.extra_base,g=t.stat_desc.max_length,F,T=0;for(F=0;F<=15;F++)X.bl_count[F]=0;B[X.heap[X.heap_max]*2+1]=0;for(t=X.heap_max+1;t<573;t++){var D=X.heap[t];F=B[B[D*2+1]*2+1]+1;F>g&&(F=g,T++);B[D*2+1]=F;if(!(D>
b)){X.bl_count[F]++;var h=0;D>=e&&(h=z[D-e]);var u=B[D*2];X.opt_len+=u*(F+h);w&&(X.static_len+=u*(y[D*2+1]+h))}}if(T!==0){do{for(F=g-1;X.bl_count[F]===0;)F--;X.bl_count[F]--;X.bl_count[F+1]+=2;X.bl_count[g]--;T-=2}while(T>0);for(F=g;F!==0;F--)for(D=X.bl_count[F];D!==0;)y=X.heap[--t],y>b||(B[y*2+1]!==F&&(X.opt_len+=(F-B[y*2+1])*B[y*2],B[y*2+1]=F),D--)}k8w(G,V,X.bl_count)};
hlA=function(X,t,G){var y,w=-1,z=t[1],B=0,V=7,b=4;z===0&&(V=138,b=3);t[(G+1)*2+1]=65535;for(y=0;y<=G;y++){var e=z;z=t[(y+1)*2+1];++B<V&&e===z||(B<b?X.bl_tree[e*2]+=B:e!==0?(e!==w&&X.bl_tree[e*2]++,X.bl_tree[32]++):B<=10?X.bl_tree[34]++:X.bl_tree[36]++,B=0,w=e,z===0?(V=138,b=3):e===z?(V=6,b=3):(V=7,b=4))}};
Zp_=function(X,t,G){var y,w=-1,z=t[1],B=0,V=7,b=4;z===0&&(V=138,b=3);for(y=0;y<=G;y++){var e=z;z=t[(y+1)*2+1];if(!(++B<V&&e===z)){if(B<b){do ZN(X,e,X.bl_tree);while(--B!==0)}else e!==0?(e!==w&&(ZN(X,e,X.bl_tree),B--),ZN(X,16,X.bl_tree),hG(X,B-3,2)):B<=10?(ZN(X,17,X.bl_tree),hG(X,B-3,3)):(ZN(X,18,X.bl_tree),hG(X,B-11,7));B=0;w=e;z===0?(V=138,b=3):e===z?(V=6,b=3):(V=7,b=4)}}};
q8V=function(X){var t=4093624447,G;for(G=0;G<=31;G++,t>>>=1)if(t&1&&X.dyn_ltree[G*2]!==0)return 0;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return 1;for(G=32;G<256;G++)if(X.dyn_ltree[G*2]!==0)return 1;return 0};
Or=function(X,t,G){X.pending_buf[X.d_buf+X.last_lit*2]=t>>>8&255;X.pending_buf[X.d_buf+X.last_lit*2+1]=t&255;X.pending_buf[X.l_buf+X.last_lit]=G&255;X.last_lit++;t===0?X.dyn_ltree[G*2]++:(X.matches++,t--,X.dyn_ltree[(Cb[G]+256+1)*2]++,X.dyn_dtree[(t<256?Kb[t]:Kb[256+(t>>>7)])*2]++);return X.last_lit===X.lit_bufsize-1};
Qw=function(X,t){X.msg=ut[t];return t};
IS=function(X){for(var t=X.length;--t>=0;)X[t]=0};
Wz=function(X){var t=X.state,G=t.pending;G>X.avail_out&&(G=X.avail_out);G!==0&&(q1.arraySet(X.output,t.pending_buf,t.pending_out,G,X.next_out),X.next_out+=G,t.pending_out+=G,X.total_out+=G,X.avail_out-=G,t.pending-=G,t.pending===0&&(t.pending_out=0))};
rl=function(X,t){var G=X.block_start>=0?X.block_start:-1,y=X.strstart-X.block_start,w=0;if(X.level>0){X.strm.data_type===2&&(X.strm.data_type=q8V(X));S8w(X,X.l_desc);S8w(X,X.d_desc);hlA(X,X.dyn_ltree,X.l_desc.max_code);hlA(X,X.dyn_dtree,X.d_desc.max_code);S8w(X,X.bl_desc);for(w=18;w>=3&&X.bl_tree[Cuh[w]*2+1]===0;w--);X.opt_len+=3*(w+1)+5+5+4;var z=X.opt_len+3+7>>>3;var B=X.static_len+3+7>>>3;B<=z&&(z=B)}else z=B=y+5;if(y+4<=z&&G!==-1)hG(X,t?1:0,3),jcA(X,G,y);else if(X.strategy===4||B===z)hG(X,2+(t?
1:0),3),DrY(X,cz,pb);else{hG(X,4+(t?1:0),3);G=X.l_desc.max_code+1;y=X.d_desc.max_code+1;w+=1;hG(X,G-257,5);hG(X,y-1,5);hG(X,w-4,4);for(z=0;z<w;z++)hG(X,X.bl_tree[Cuh[z]*2+1],3);Zp_(X,X.dyn_ltree,G-1);Zp_(X,X.dyn_dtree,y-1);DrY(X,X.dyn_ltree,X.dyn_dtree)}drG(X);t&&el0(X);X.block_start=X.strstart;Wz(X.strm)};
N1=function(X,t){X.pending_buf[X.pending++]=t};
Pz=function(X,t){X.pending_buf[X.pending++]=t>>>8&255;X.pending_buf[X.pending++]=t&255};
KTw=function(X,t){var G=X.max_chain_length,y=X.strstart,w=X.prev_length,z=X.nice_match,B=X.strstart>X.w_size-262?X.strstart-(X.w_size-262):0,V=X.window,b=X.w_mask,e=X.prev,g=X.strstart+258,F=V[y+w-1],T=V[y+w];X.prev_length>=X.good_match&&(G>>=2);z>X.lookahead&&(z=X.lookahead);do{var D=t;if(V[D+w]===T&&V[D+w-1]===F&&V[D]===V[y]&&V[++D]===V[y+1]){y+=2;for(D++;V[++y]===V[++D]&&V[++y]===V[++D]&&V[++y]===V[++D]&&V[++y]===V[++D]&&V[++y]===V[++D]&&V[++y]===V[++D]&&V[++y]===V[++D]&&V[++y]===V[++D]&&y<g;);
D=258-(g-y);y=g-258;if(D>w){X.match_start=t;w=D;if(D>=z)break;F=V[y+w-1];T=V[y+w]}}}while((t=e[t&b])>B&&--G!==0);return w<=X.lookahead?w:X.lookahead};
Ur=function(X){var t=X.w_size,G;do{var y=X.window_size-X.lookahead-X.strstart;if(X.strstart>=t+(t-262)){q1.arraySet(X.window,X.window,t,t,0);X.match_start-=t;X.strstart-=t;X.block_start-=t;var w=G=X.hash_size;do{var z=X.head[--w];X.head[w]=z>=t?z-t:0}while(--G);w=G=t;do z=X.prev[--w],X.prev[w]=z>=t?z-t:0;while(--G);y+=t}if(X.strm.avail_in===0)break;w=X.strm;G=X.window;z=X.strstart+X.lookahead;var B=w.avail_in;B>y&&(B=y);B===0?G=0:(w.avail_in-=B,q1.arraySet(G,w.input,w.next_in,B,z),w.state.wrap===
1?w.adler=Opw(w.adler,G,B,z):w.state.wrap===2&&(w.adler=Er(w.adler,G,B,z)),w.next_in+=B,w.total_in+=B,G=B);X.lookahead+=G;if(X.lookahead+X.insert>=3)for(y=X.strstart-X.insert,X.ins_h=X.window[y],X.ins_h=(X.ins_h<<X.hash_shift^X.window[y+1])&X.hash_mask;X.insert&&!(X.ins_h=(X.ins_h<<X.hash_shift^X.window[y+3-1])&X.hash_mask,X.prev[y&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=y,y++,X.insert--,X.lookahead+X.insert<3););}while(X.lookahead<262&&X.strm.avail_in!==0)};
u0_=function(X,t){for(var G;;){if(X.lookahead<262){Ur(X);if(X.lookahead<262&&t===0)return 1;if(X.lookahead===0)break}G=0;X.lookahead>=3&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+3-1])&X.hash_mask,G=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart);G!==0&&X.strstart-G<=X.w_size-262&&(X.match_length=KTw(X,G));if(X.match_length>=3)if(G=Or(X,X.strstart-X.match_start,X.match_length-3),X.lookahead-=X.match_length,X.match_length<=X.max_lazy_match&&X.lookahead>=3){X.match_length--;
do X.strstart++,X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+3-1])&X.hash_mask,X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart;while(--X.match_length!==0);X.strstart++}else X.strstart+=X.match_length,X.match_length=0,X.ins_h=X.window[X.strstart],X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+1])&X.hash_mask;else G=Or(X,0,X.window[X.strstart]),X.lookahead--,X.strstart++;if(G&&(rl(X,!1),X.strm.avail_out===0))return 1}X.insert=X.strstart<2?X.strstart:2;return t===4?(rl(X,
!0),X.strm.avail_out===0?3:4):X.last_lit&&(rl(X,!1),X.strm.avail_out===0)?1:2};
mG=function(X,t){for(var G,y;;){if(X.lookahead<262){Ur(X);if(X.lookahead<262&&t===0)return 1;if(X.lookahead===0)break}G=0;X.lookahead>=3&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+3-1])&X.hash_mask,G=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart);X.prev_length=X.match_length;X.prev_match=X.match_start;X.match_length=2;G!==0&&X.prev_length<X.max_lazy_match&&X.strstart-G<=X.w_size-262&&(X.match_length=KTw(X,G),X.match_length<=5&&(X.strategy===1||X.match_length===3&&
X.strstart-X.match_start>4096)&&(X.match_length=2));if(X.prev_length>=3&&X.match_length<=X.prev_length){y=X.strstart+X.lookahead-3;G=Or(X,X.strstart-1-X.prev_match,X.prev_length-3);X.lookahead-=X.prev_length-1;X.prev_length-=2;do++X.strstart<=y&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+3-1])&X.hash_mask,X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart);while(--X.prev_length!==0);X.match_available=0;X.match_length=2;X.strstart++;if(G&&(rl(X,!1),X.strm.avail_out===0))return 1}else if(X.match_available){if((G=
Or(X,0,X.window[X.strstart-1]))&&rl(X,!1),X.strstart++,X.lookahead--,X.strm.avail_out===0)return 1}else X.match_available=1,X.strstart++,X.lookahead--}X.match_available&&(Or(X,0,X.window[X.strstart-1]),X.match_available=0);X.insert=X.strstart<2?X.strstart:2;return t===4?(rl(X,!0),X.strm.avail_out===0?3:4):X.last_lit&&(rl(X,!1),X.strm.avail_out===0)?1:2};
QcV=function(X,t){for(var G,y,w,z=X.window;;){if(X.lookahead<=258){Ur(X);if(X.lookahead<=258&&t===0)return 1;if(X.lookahead===0)break}X.match_length=0;if(X.lookahead>=3&&X.strstart>0&&(y=X.strstart-1,G=z[y],G===z[++y]&&G===z[++y]&&G===z[++y])){for(w=X.strstart+258;G===z[++y]&&G===z[++y]&&G===z[++y]&&G===z[++y]&&G===z[++y]&&G===z[++y]&&G===z[++y]&&G===z[++y]&&y<w;);X.match_length=258-(w-y);X.match_length>X.lookahead&&(X.match_length=X.lookahead)}X.match_length>=3?(G=Or(X,1,X.match_length-3),X.lookahead-=
X.match_length,X.strstart+=X.match_length,X.match_length=0):(G=Or(X,0,X.window[X.strstart]),X.lookahead--,X.strstart++);if(G&&(rl(X,!1),X.strm.avail_out===0))return 1}X.insert=0;return t===4?(rl(X,!0),X.strm.avail_out===0?3:4):X.last_lit&&(rl(X,!1),X.strm.avail_out===0)?1:2};
IdJ=function(X,t){for(var G;;){if(X.lookahead===0&&(Ur(X),X.lookahead===0)){if(t===0)return 1;break}X.match_length=0;G=Or(X,0,X.window[X.strstart]);X.lookahead--;X.strstart++;if(G&&(rl(X,!1),X.strm.avail_out===0))return 1}X.insert=0;return t===4?(rl(X,!0),X.strm.avail_out===0?3:4):X.last_lit&&(rl(X,!1),X.strm.avail_out===0)?1:2};
RS=function(X,t,G,y,w){this.good_length=X;this.max_lazy=t;this.nice_length=G;this.max_chain=y;this.func=w};
WTv=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 q1.Buf16(1146);this.dyn_dtree=new q1.Buf16(122);this.bl_tree=new q1.Buf16(78);IS(this.dyn_ltree);IS(this.dyn_dtree);IS(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new q1.Buf16(16);this.heap=new q1.Buf16(573);IS(this.heap);this.heap_max=this.heap_len=0;this.depth=new q1.Buf16(573);IS(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};
cp_=function(X,t){if(!X||!X.state||t>5||t<0)return X?Qw(X,-2):-2;var G=X.state;if(!X.output||!X.input&&X.avail_in!==0||G.status===666&&t!==4)return Qw(X,X.avail_out===0?-5:-2);G.strm=X;var y=G.last_flush;G.last_flush=t;if(G.status===42)if(G.wrap===2)X.adler=0,N1(G,31),N1(G,139),N1(G,8),G.gzhead?(N1(G,(G.gzhead.text?1:0)+(G.gzhead.hcrc?2:0)+(G.gzhead.extra?4:0)+(G.gzhead.name?8:0)+(G.gzhead.comment?16:0)),N1(G,G.gzhead.time&255),N1(G,G.gzhead.time>>8&255),N1(G,G.gzhead.time>>16&255),N1(G,G.gzhead.time>>
24&255),N1(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),N1(G,G.gzhead.os&255),G.gzhead.extra&&G.gzhead.extra.length&&(N1(G,G.gzhead.extra.length&255),N1(G,G.gzhead.extra.length>>8&255)),G.gzhead.hcrc&&(X.adler=Er(X.adler,G.pending_buf,G.pending,0)),G.gzindex=0,G.status=69):(N1(G,0),N1(G,0),N1(G,0),N1(G,0),N1(G,0),N1(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),N1(G,3),G.status=113);else{var w=8+(G.w_bits-8<<4)<<8;w|=(G.strategy>=2||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6;G.strstart!==0&&(w|=
32);G.status=113;Pz(G,w+(31-w%31));G.strstart!==0&&(Pz(G,X.adler>>>16),Pz(G,X.adler&65535));X.adler=1}if(G.status===69)if(G.gzhead.extra){for(w=G.pending;G.gzindex<(G.gzhead.extra.length&65535)&&(G.pending!==G.pending_buf_size||(G.gzhead.hcrc&&G.pending>w&&(X.adler=Er(X.adler,G.pending_buf,G.pending-w,w)),Wz(X),w=G.pending,G.pending!==G.pending_buf_size));)N1(G,G.gzhead.extra[G.gzindex]&255),G.gzindex++;G.gzhead.hcrc&&G.pending>w&&(X.adler=Er(X.adler,G.pending_buf,G.pending-w,w));G.gzindex===G.gzhead.extra.length&&
(G.gzindex=0,G.status=73)}else G.status=73;if(G.status===73)if(G.gzhead.name){w=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>w&&(X.adler=Er(X.adler,G.pending_buf,G.pending-w,w)),Wz(X),w=G.pending,G.pending===G.pending_buf_size)){var z=1;break}z=G.gzindex<G.gzhead.name.length?G.gzhead.name.charCodeAt(G.gzindex++)&255:0;N1(G,z)}while(z!==0);G.gzhead.hcrc&&G.pending>w&&(X.adler=Er(X.adler,G.pending_buf,G.pending-w,w));z===0&&(G.gzindex=0,G.status=91)}else G.status=91;if(G.status===
91)if(G.gzhead.comment){w=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>w&&(X.adler=Er(X.adler,G.pending_buf,G.pending-w,w)),Wz(X),w=G.pending,G.pending===G.pending_buf_size)){z=1;break}z=G.gzindex<G.gzhead.comment.length?G.gzhead.comment.charCodeAt(G.gzindex++)&255:0;N1(G,z)}while(z!==0);G.gzhead.hcrc&&G.pending>w&&(X.adler=Er(X.adler,G.pending_buf,G.pending-w,w));z===0&&(G.status=103)}else G.status=103;G.status===103&&(G.gzhead.hcrc?(G.pending+2>G.pending_buf_size&&Wz(X),
G.pending+2<=G.pending_buf_size&&(N1(G,X.adler&255),N1(G,X.adler>>8&255),X.adler=0,G.status=113)):G.status=113);if(G.pending!==0){if(Wz(X),X.avail_out===0)return G.last_flush=-1,0}else if(X.avail_in===0&&(t<<1)-(t>4?9:0)<=(y<<1)-(y>4?9:0)&&t!==4)return Qw(X,-5);if(G.status===666&&X.avail_in!==0)return Qw(X,-5);if(X.avail_in!==0||G.lookahead!==0||t!==0&&G.status!==666){y=G.strategy===2?IdJ(G,t):G.strategy===3?QcV(G,t):Lb[G.level].func(G,t);if(y===3||y===4)G.status=666;if(y===1||y===3)return X.avail_out===
0&&(G.last_flush=-1),0;if(y===2&&(t===1?(hG(G,2,3),ZN(G,256,cz),G.bi_valid===16?(SD(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):G.bi_valid>=8&&(G.pending_buf[G.pending++]=G.bi_buf&255,G.bi_buf>>=8,G.bi_valid-=8)):t!==5&&(hG(G,0,3),jcA(G,0,0),t===3&&(IS(G.head),G.lookahead===0&&(G.strstart=0,G.block_start=0,G.insert=0))),Wz(X),X.avail_out===0))return G.last_flush=-1,0}if(t!==4)return 0;if(G.wrap<=0)return 1;G.wrap===2?(N1(G,X.adler&255),N1(G,X.adler>>8&255),N1(G,X.adler>>16&255),N1(G,X.adler>>24&255),N1(G,
X.total_in&255),N1(G,X.total_in>>8&255),N1(G,X.total_in>>16&255),N1(G,X.total_in>>24&255)):(Pz(G,X.adler>>>16),Pz(G,X.adler&65535));Wz(X);G.wrap>0&&(G.wrap=-G.wrap);return G.pending!==0?0:1};
py_=function(X){if(!(this instanceof py_))return new py_(X);X=this.options=q1.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},X||{});X.raw&&X.windowBits>0?X.windowBits=-X.windowBits:X.gzip&&X.windowBits>0&&X.windowBits<16&&(X.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new rp_;this.strm.avail_out=0;var t=this.strm;var G=X.level,y=X.method,w=X.windowBits,z=X.memLevel,B=X.strategy;if(t){var V=1;G===-1&&(G=6);w<0?(V=0,w=-w):w>15&&
(V=2,w-=16);if(z<1||z>9||y!==8||w<8||w>15||G<0||G>9||B<0||B>4)t=Qw(t,-2);else{w===8&&(w=9);var b=new WTv;t.state=b;b.strm=t;b.wrap=V;b.gzhead=null;b.w_bits=w;b.w_size=1<<b.w_bits;b.w_mask=b.w_size-1;b.hash_bits=z+7;b.hash_size=1<<b.hash_bits;b.hash_mask=b.hash_size-1;b.hash_shift=~~((b.hash_bits+3-1)/3);b.window=new q1.Buf8(b.w_size*2);b.head=new q1.Buf16(b.hash_size);b.prev=new q1.Buf16(b.w_size);b.lit_bufsize=1<<z+6;b.pending_buf_size=b.lit_bufsize*4;b.pending_buf=new q1.Buf8(b.pending_buf_size);
b.d_buf=b.lit_bufsize;b.l_buf=3*b.lit_bufsize;b.level=G;b.strategy=B;b.method=y;if(t&&t.state){t.total_in=t.total_out=0;t.data_type=2;G=t.state;G.pending=0;G.pending_out=0;G.wrap<0&&(G.wrap=-G.wrap);G.status=G.wrap?42:113;t.adler=G.wrap===2?0:1;G.last_flush=0;if(!NVf){y=Array(16);for(z=B=0;z<28;z++)for(Ap0[z]=B,w=0;w<1<<TVv[z];w++)Cb[B++]=z;Cb[B-1]=z;for(z=B=0;z<16;z++)for(sc0[z]=B,w=0;w<1<<Y8J[z];w++)Kb[B++]=z;for(B>>=7;z<30;z++)for(sc0[z]=B<<7,w=0;w<1<<Y8J[z]-7;w++)Kb[256+B++]=z;for(w=0;w<=15;w++)y[w]=
0;for(w=0;w<=143;)cz[w*2+1]=8,w++,y[8]++;for(;w<=255;)cz[w*2+1]=9,w++,y[9]++;for(;w<=279;)cz[w*2+1]=7,w++,y[7]++;for(;w<=287;)cz[w*2+1]=8,w++,y[8]++;k8w(cz,287,y);for(w=0;w<30;w++)pb[w*2+1]=5,pb[w*2]=bpG(w,5);PuV=new n1Y(cz,TVv,257,286,15);E10=new n1Y(pb,Y8J,0,30,15);Urh=new n1Y([],mr0,0,19,7);NVf=!0}G.l_desc=new Vls(G.dyn_ltree,PuV);G.d_desc=new Vls(G.dyn_dtree,E10);G.bl_desc=new Vls(G.bl_tree,Urh);G.bi_buf=0;G.bi_valid=0;drG(G);G=0}else G=Qw(t,-2);G===0&&(t=t.state,t.window_size=2*t.w_size,IS(t.head),
t.max_lazy_match=Lb[t.level].max_lazy,t.good_match=Lb[t.level].good_length,t.nice_match=Lb[t.level].nice_length,t.max_chain_length=Lb[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0);t=G}}else t=-2;if(t!==0)throw Error(ut[t]);X.header&&(t=this.strm)&&t.state&&t.state.wrap===2&&(t.state.gzhead=X.header);if(X.dictionary){var e;typeof X.dictionary==="string"?e=RlA(X.dictionary):ip6.call(X.dictionary)==="[object ArrayBuffer]"?
e=new Uint8Array(X.dictionary):e=X.dictionary;X=this.strm;z=e;B=z.length;if(X&&X.state)if(e=X.state,t=e.wrap,t===2||t===1&&e.status!==42||e.lookahead)t=-2;else{t===1&&(X.adler=Opw(X.adler,z,B,0));e.wrap=0;B>=e.w_size&&(t===0&&(IS(e.head),e.strstart=0,e.block_start=0,e.insert=0),G=new q1.Buf8(e.w_size),q1.arraySet(G,z,B-e.w_size,e.w_size,0),z=G,B=e.w_size);G=X.avail_in;y=X.next_in;w=X.input;X.avail_in=B;X.next_in=0;X.input=z;for(Ur(e);e.lookahead>=3;){z=e.strstart;B=e.lookahead-2;do e.ins_h=(e.ins_h<<
e.hash_shift^e.window[z+3-1])&e.hash_mask,e.prev[z&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=z,z++;while(--B);e.strstart=z;e.lookahead=2;Ur(e)}e.strstart+=e.lookahead;e.block_start=e.strstart;e.insert=e.lookahead;e.lookahead=0;e.match_length=e.prev_length=2;e.match_available=0;X.next_in=y;X.input=w;X.avail_in=G;e.wrap=t;t=0}else t=-2;if(t!==0)throw Error(ut[t]);this._dict_set=!0}};
LTV=function(X,t){t=t||{};t.gzip=!0;t=new py_(t);t.push(X,!0);if(t.err)throw t.msg||ut[t.err];return t.result};
adf=function(X,t){var G=v1E();G&&G.publish.call(G,X.toString(),X,t)};
XW0=function(X,t,G){var y=v1E();if(!y)return 0;var w=y.subscribe(X.toString(),function(z,B){var V=_.GA("ytPubsub2Pubsub2SkipSubKey");V&&V==w||(V=function(){if(ldV[w])try{if(B&&X instanceof xr_&&X!=z)try{var b=X.dataClass,e=B;if(!e.args||!e.version)throw Error("Xc");try{if(!b.version_){var g=new b;b.version_=g.version}var F=b.version_}catch(T){}if(!F||e.version!=F)throw Error("Yc");try{B=Reflect.construct(b,_.aV(e.args))}catch(T){throw T.message="yt.pubsub2.Data.deserialize(): "+T.message,T;}}catch(T){throw T.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+X.toString()+": "+T.message,T;}t.call(G||window,B)}catch(T){_.$x(T)}},fdV[X.toString()]?_.GA("yt.scheduler.instance")?_.vz.addLowPriorityJob(V):_.SH(V,0):V())});
ldV[w]=!0;Mlv[X.toString()]||(Mlv[X.toString()]=[]);Mlv[X.toString()].push(w);return w};
ybh=function(){var X=$SV,t=XW0(tmG,function(G){X.apply(void 0,arguments);GqG(t)});
return t};
GqG=function(X){var t=v1E();t&&(typeof X==="number"&&(X=[X]),_.zA(X,function(G){t.unsubscribeByKey(G);delete ldV[G]}))};
v1E=function(){return _.GA("ytPubsub2Pubsub2Instance")};
wW0=function(X,t,G){G=G===void 0?{sampleRate:.1}:G;Math.random()<Math.min(.02,G.sampleRate/100)&&adf("meta_logging_csi_event",{timerName:X,timelineData:t})};
_.z2G=function(X){return X?(X=X.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.JI(X):null:null};
_.aS=function(X){return X?(X=X.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.rN(X):null:null};
o3V=function(){Hdl||(Hdl=_.aS(_.Md("WORKER_SERIALIZATION_URL")));return Hdl||void 0};
_.Btw=function(){var X=o3V();Jbl||X===void 0||(Jbl=new Worker(_.Nx(X),void 0));return Jbl};
_.n3J=function(){return typeof Worker==="function"&&o3V()?!0:!1};
_.dS_=function(){if(_.n3J()&&!Vm_){var X=function(G){G=G.data;if(G.op==="gzippedGelBatch"){var y=bd0.get(G.key);y&&(kqG(G.gzippedBatch,y.latencyPayload,y.url,y.options,y.sendFn),bd0.delete(G.key))}},t=_.Btw();
t&&(t.addEventListener("message",X),t.onerror=function(){bd0.clear()},Vm_=!0)}};
Y0s=function(X,t,G,y,w){w=w===void 0?!1:w;var z={startTime:(0,_.gl)(),ticks:{},infos:{}};if(lt)try{var B=e2l(t);if(B!=null&&(B>jkv||B<g3s))y(X,G);else{if(_.A("gzip_gel_with_worker")&&(_.A("initial_gzip_use_main_thread")&&!F_s||!_.A("initial_gzip_use_main_thread"))){Vm_||_.dS_();var V=_.Btw();if(V&&!w){bd0.set(TtA,{latencyPayload:z,url:X,options:G,sendFn:y});V.postMessage({op:"gelBatchToGzip",serializedBatch:t,key:TtA});TtA++;return}}var b=LTV(AbE(t));kqG(b,z,X,G,y)}}catch(e){_.yQ(e),y(X,G)}else y(X,
G)};
kqG=function(X,t,G,y,w){F_s=!1;var z=(0,_.gl)();t.ticks.gelc=z;x7++;_.A("disable_compression_due_to_performance_degredation")&&z-t.startTime>=skh&&(DSw++,_.A("abandon_compression_after_N_slow_zips")?x7===_.At("compression_disable_point")&&DSw>S0h&&(lt=!1):lt=!1);h2E(t);y.headers||(y.headers={});y.headers["Content-Encoding"]="gzip";y.postBody=X;y.postParams=void 0;w(G,y)};
Zd6=function(X){var t=t===void 0?!1:t;var G=G===void 0?!1:G;var y=(0,_.gl)(),w={startTime:y,ticks:{},infos:{}},z=t?_.GA("yt.logging.gzipForFetch",!1):!0;if(lt&&z){if(!X.body)return X;try{var B=G?X.body:typeof X.body==="string"?X.body:JSON.stringify(X.body);z=B;if(!G&&typeof B==="string"){var V=e2l(B);if(V!=null&&(V>jkv||V<g3s))return X;G=t?{level:1}:void 0;z=LTV(AbE(B),G);var b=(0,_.gl)();w.ticks.gelc=b;if(t){x7++;if((_.A("disable_compression_due_to_performance_degredation")||_.A("disable_compression_due_to_performance_degradation_lr"))&&
b-y>=skh)if(DSw++,_.A("abandon_compression_after_N_slow_zips")||_.A("abandon_compression_after_N_slow_zips_lr")){t=DSw/x7;var e=S0h/_.At("compression_disable_point");x7>0&&x7%_.At("compression_disable_point")===0&&t>=e&&(lt=!1)}else lt=!1;h2E(w)}}X.headers=Object.assign({},{"Content-Encoding":"gzip"},X.headers||{});X.body=z;return X}catch(g){return _.yQ(g),X}}else return X};
e2l=function(X){try{return(new Blob(X.split(""))).size}catch(t){return _.yQ(t),null}};
h2E=function(X){_.A("gel_compression_csi_killswitch")||!_.A("log_gel_compression_latency")&&!_.A("log_gel_compression_latency_lr")||wW0("gel_compression",X,{sampleRate:.1})};
q0V=function(){this.blockSize=-1};
fb=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var X=1;X<this.blockSize;++X)this.pad_[X]=0;this.total_=this.inbuf_=0;this.reset()};
K_J=function(X){X=Object.assign({},X);delete X.Authorization;var t=_.Ces();if(t){var G=new fb;G.update(_.Md("INNERTUBE_API_KEY"));G.update(t);X.hash=_.i2(G.digest(),3)}return X};
$A=function(){Odf||(Odf=new _.M1("yt.innertube"));return Odf};
uDl=function(X,t,G,y){if(y)return null;y=$A().get("nextId",!0)||1;var w=$A().get("requests",!0)||{};w[y]={method:X,request:t,authState:K_J(G),requestTime:Math.round((0,_.gl)())};$A().set("nextId",y+1,86400,!0);$A().set("requests",w,86400,!0);return y};
QkV=function(X){var t=$A().get("requests",!0)||{};delete t[X];$A().set("requests",t,86400,!0)};
W_V=function(X){var t=$A().get("requests",!0);if(t){for(var G in t){var y=t[G];if(!(Math.round((0,_.gl)())-y.requestTime<6E4)){var w=y.authState,z=K_J(_.Jps(!1));_.RH.equals(w,z)&&(w=y.request,"requestTimeMs"in w&&(w.requestTimeMs=Math.round((0,_.gl)())),IkJ(X,y.method,w,{}));delete t[G]}}$A().set("requests",t,86400,!0)}};
cbY=function(X){var t;return(X=X==null?void 0:(t=X.error)==null?void 0:t.code)&&X>=400&&X<=599?!1:!0};
pWG=function(X){var t;X=X==null?void 0:(t=X.error)==null?void 0:t.code;return!(X!==400&&X!==415)};
NtG=function(){if(rbw)return rbw();var X={};rbw=jD("LogsDatabaseV2",{objectStores:(X.LogsRequestsStore={addedAtVersion:2},X),shared:!1,upgrade:function(t,G,y){G(2)&&tv(t,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});G(3);G(5)&&(y=y.objectStore("LogsRequestsStore"),y.JSC$10572_wrapped.indexNames.contains("newRequest")&&y.JSC$10572_wrapped.deleteIndex("newRequest"),yG(y,"newRequestV2",["status","interface","timestamp"]));G(7)&&t.JSC$10558_wrapped.objectStoreNames.contains("sapisid")&&t.JSC$10558_wrapped.deleteObjectStore("sapisid");
G(9)&&t.JSC$10558_wrapped.objectStoreNames.contains("SWHealthLog")&&t.JSC$10558_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return rbw()};
z5=function(X){return _.JG(NtG(),X)};
E3_=function(X,t){var G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return G={startTime:(0,_.gl)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},B.yield(z5(t),2);if(B.nextAddress!=3)return y=B.yieldResult,w=Object.assign({},X,{options:JSON.parse(JSON.stringify(X.options)),interface:_.Md("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),B.yield(y.put("LogsRequestsStore",w),3);z=B.yieldResult;G.ticks.tc=(0,_.gl)();PeG(G);return B.return(z)})};
USv=function(X,t){var G,y,w,z,B,V,b,e,g;return _.n(function(F){if(F.nextAddress==1)return G={startTime:(0,_.gl)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},F.yield(z5(t),2);if(F.nextAddress!=3)return y=F.yieldResult,w=_.Md("INNERTUBE_CONTEXT_CLIENT_NAME",0),z=[X,w,0],B=[X,w,(0,_.gl)()],V=IDBKeyRange.bound(z,B),b="prev",_.A("use_fifo_for_networkless")&&(b="next"),e=void 0,g=X==="NEW"?"readwrite":"readonly",_.A("use_readonly_for_get_most_recent_by_status_killswitch")&&(g="readwrite"),
F.yield(_.Bz(y,["LogsRequestsStore"],{mode:g,enableRetries:!0},function(T){return _.Fl(T.objectStore("LogsRequestsStore").index("newRequestV2"),{query:V,direction:b},function(D){D.getValue()&&(e=D.getValue(),X==="NEW"&&(e.status="QUEUED",D.update(e)))})}),3);
G.ticks.tc=(0,_.gl)();PeG(G);return F.return(e)})};
mSw=function(X,t){var G;return _.n(function(y){if(y.nextAddress==1)return y.yield(z5(t),2);G=y.yieldResult;return y.return(_.Bz(G,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(w){var z=w.objectStore("LogsRequestsStore");return z.get(X).then(function(B){if(B)return B.status="QUEUED",z.put(B).then(function(){return B})})}))})};
R2h=function(X,t,G,y){G=G===void 0?!0:G;var w;return _.n(function(z){if(z.nextAddress==1)return z.yield(z5(t),2);w=z.yieldResult;return z.return(_.Bz(w,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(B){var V=B.objectStore("LogsRequestsStore");return V.get(X).then(function(b){return b?(b.status="NEW",G&&(b.sendCount+=1),y!==void 0&&(b.options.compress=y),V.put(b).then(function(){return b})):tG.resolve(void 0)})}))})};
id_=function(X,t){var G;return _.n(function(y){if(y.nextAddress==1)return y.yield(z5(t),2);G=y.yieldResult;return y.return(G.delete("LogsRequestsStore",X))})};
L_w=function(X){var t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(z5(X),2);t=y.yieldResult;G=(0,_.gl)()-2592E6;return y.yield(_.Bz(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(w){return Vw(w.objectStore("LogsRequestsStore"),{},function(z){if(z.getValue().timestamp<=G)return z.delete().then(function(){return z.continue()})})}),0)})};
v3A=function(){_.n(function(X){return X.yield(cgv("LogsDatabaseV2"),0)})};
PeG=function(X){_.A("nwl_csi_killswitch")||wW0("networkless_performance",X,{sampleRate:1})};
_.lkJ=function(X){return _.JG(ak6(),X)};
xSs=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(_.lkJ(X),2);t=y.yieldResult;G=(0,_.gl)()-2592E6;return y.yield(_.Bz(t,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(w){return Vw(w.objectStore("SWHealthLog"),{},function(z){if(z.getValue().timestamp<=G)return z.delete().then(function(){return z.continue()})})}),0)})};
fkh=function(X){var t;return _.n(function(G){if(G.nextAddress==1)return G.yield(_.lkJ(X),2);t=G.yieldResult;return G.yield(t.clear("SWHealthLog"),0)})};
_.HO=function(X,t,G,y,w,z,B){w=w===void 0?"":w;z=z===void 0?!1:z;B=B===void 0?!1:B;if(X)if(G&&!xx("cobalt"))_.yQ(new _.NJ("Legacy referrer-scrubbed ping detected")),X&&MmV(X,void 0,{scrubReferrer:!0});else if(w)DY6(X,t,"POST",w,y);else if(_.Md("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||y||B)DY6(X,t,"GET","",y,void 0,z,B);else{b:{try{c:{var V=new Xjl({url:X});if(V.urlParamValues_.dsh==="1")var b=null;else{var e=V.urlParamValues_.ae;if(e==="1"){var g=V.urlParamValues_.adurl;if(g)try{b={version:3,directUrl:decodeURIComponent(g),
asyncUrl:bY6(V.JSC$9404_url_,"act=1","ri=1",$il(V))};break c}catch(h){}}b=e==="2"?{version:4,directUrl:bY6(V.JSC$9404_url_,"dct=1","suid="+V.suid_,""),asyncUrl:bY6(V.JSC$9404_url_,"act=1","ri=1","suid="+V.suid_)}:null}}if(b){var F=_.qJ(X);var T=!(!F||!F.endsWith("/aclk")||_.XO(X,"ri")!=="1");break b}}catch(h){}T=!1}if(T){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(X,"")){var D=!0;break b}}catch(h){}D=!1}D?(t&&t(),G=!0):G=!1}else G=!1;G||MmV(X,t)}};
MmV=function(X,t,G){G=G===void 0?{}:G;var y=new Image,w=""+tx0++;GOV[w]=y;y.onload=y.onerror=function(){t&&GOV[w]&&t();delete GOV[w]};
G.scrubReferrer&&(y.referrerPolicy="no-referrer");y.src=X};
o7=function(X,t){ymw(X,t==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
wjG=function(X){var t;return((t=document.featurePolicy)==null?0:t.allowedFeatures().includes("attribution-reporting"))?X+"&nis=6":X+"&nis=5"};
zjf=function(X){if(!X)return!1;try{var t;if(((t=_.Hx(X))==null?void 0:t.asm)==="4")return!0}catch(G){_.$x(G)}return!1};
ymw=function(X,t){t?(X=wjG(X),_.HO(X,void 0,void 0,void 0,"",!0,!0)):_.HO(X)};
oFY=function(){HzA||(HzA=new _.M1("yt.offline"));return HzA};
Jml=function(X){if(_.A("offline_error_handling")){var t=oFY().get("errors",!0)||{};t[X.message]={name:X.name,stack:X.stack};X.level&&(t[X.message].level=X.level);oFY().set("errors",t,2592E3,!0)}};
nFE=function(X,t,G,y){y=y===void 0?!1:y;t=_.A("web_fp_via_jspb")?Object.assign({},t):t;_.A("use_cfr_monitor")&&BX_(X,t);if(_.A("use_request_time_ms_header"))t.headers&&dw(X)&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.gl)())));else{var w;if((w=t.postParams)==null?0:w.requestTimeMs)t.postParams.requestTimeMs=Math.round((0,_.gl)())}G&&Object.keys(t).length===0?_.HO(X):t.compress?t.postBody?(typeof t.postBody!=="string"&&(t.postBody=JSON.stringify(t.postBody)),Y0s(X,t.postBody,
t,_.Cs,y)):Y0s(X,JSON.stringify(t.postParams),t,qlv,y):_.Cs(X,t)};
VxV=function(X,t){_.A("use_event_time_ms_header")&&dw(X)&&(t.headers||(t.headers={}),t.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.gl)())));return t};
_.kOw=function(){bz_||(bz_=new _.Jv({logOfflineErrors:!0,enablePolling:!0}));return bz_};
BX_=function(X,t){var G=t.onError?t.onError:function(){};
t.onError=function(w,z){BO().requestComplete(X,!1);G(w,z)};
var y=t.onSuccess?t.onSuccess:function(){};
t.onSuccess=function(w,z){BO().requestComplete(X,!0);y(w,z)}};
_.dis=function(){return _.bF(document.location.toString())!=="www.youtube-nocookie.com"};
_.gFf=function(){return _.GA("ytNetworklessLoggingInitializationOptions")?_.ejh.isNwlInitialized:_.jL0};
FfV=function(X,t){if(_.A("polymer_on_demand_shady_dom")){var G;var y=(G=X.__shady_native_firstElementChild)!=null?G:X.firstElementChild}else y=X.firstElementChild;for(;y;){if(X=t(y)?y:FfV(y,t))return X;y=y.nextElementSibling}return null};
Am_=function(){var X=document;if("visibilityState"in X)return X.visibilityState;var t=TXG+"VisibilityState";if(t in X)return X[t]};
_.YVE=function(X,t){var G;nh(X,function(y){G=t[y];return!!G});
return G};
_.bx=function(X){var t=sLV(X);t?t.focus(void 0):_.VG(X)};
sLV=function(X){return(X=FfV(X,function(t){return _.kA(t)?Dil(t)&&!!t.offsetParent:!1}))?X:null};
_.VG=function(X,t){X.hasAttribute("tabindex")||X.setAttribute("tabindex","-1");X.focus(t)};
SVf=function(X,t,G,y){y=y===void 0?{}:y;X.addEventListener&&(t!="mouseenter"||"onmouseenter"in document?t!="mouseleave"||"onmouseenter"in document?t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"):t="mouseout":t="mouseover");return _.RH.findKey(dj,function(w){var z=typeof w[4]==="boolean"&&w[4]==!!y,B=_.$h(w[4])&&_.$h(y)&&_.RH.equals(w[4],y);return!!w.length&&w[0]==X&&w[1]==t&&w[2]==G&&(z||B)})};
_.jP=function(X,t,G,y){y=y===void 0?{}:y;if(!X||!X.addEventListener&&!X.attachEvent)return"";var w=SVf(X,t,G,y);if(w)return w;w=++hj_.count+"";var z=!(t!="mouseenter"&&t!="mouseleave"||!X.addEventListener||"onmouseenter"in document);var B=z?function(V){V=new eP(V);if(!_.xT(V.relatedTarget,function(b){return b==X},!0))return V.currentTarget=X,V.type=t,G.call(X,V)}:function(V){V=new eP(V);
V.currentTarget=X;return G.call(X,V)};
B=_.tt(B);X.addEventListener?(t=="mouseenter"&&z?t="mouseover":t=="mouseleave"&&z?t="mouseout":t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"),Zzw()||typeof y==="boolean"?X.addEventListener(t,B,y):X.addEventListener(t,B,!!y.capture)):X.attachEvent("on"+t,B);dj[w]=[X,t,G,B,y];return w};
_.C$h=function(X,t,G){var y=y===void 0?{}:y;var w=_.jP(X,t,function(){_.qVY(w);G.apply(X,arguments)},y)};
_.qVY=function(X){X&&(typeof X=="string"&&(X=[X]),_.zA(X,function(t){if(t in dj){var G=dj[t],y=G[0],w=G[1],z=G[3];G=G[4];y.removeEventListener?Zzw()||typeof G==="boolean"?y.removeEventListener(w,z,G):y.removeEventListener(w,z,!!G.capture):y.detachEvent&&y.detachEvent("on"+w,z);delete dj[t]}}))};
gj=function(X){this.callback_=X;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(X=0;X<4;X++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.jP(window,"mousemove",(0,_.rT)(this.onMouseMove_,this));this.timerId_=_.ht((0,_.rT)(this.checkPosition_,this),25)};
OzA=function(){var X={};var t=X.preferMobileEvents===void 0?!1:X.preferMobileEvents;X=X.enableScrollEventListener===void 0?!0:X.enableScrollEventListener;if(_.GA("_lact",window)==null){var G=parseInt(_.Md("LACT"),10);G=isFinite(G)?Date.now()-Math.max(G,0):-1;_.dl("_lact",G,window);_.dl("_fact",G,window);G==-1&&_.FR();_.jP(document,"keydown",_.FR);_.jP(document,"keyup",_.FR);_.jP(document,"mousedown",_.FR);_.jP(document,"mouseup",_.FR);t?_.jP(window,"touchmove",function(){KfG("touchmove",200)},{passive:!0}):
(_.jP(window,"resize",function(){KfG("resize",200)}),X&&_.jP(window,"scroll",function(){KfG("scroll",200)}));
new gj(function(){KfG("mouse",100)});
_.jP(document,"touchstart",_.FR,{passive:!0});_.jP(document,"touchend",_.FR,{passive:!0})}};
KfG=function(X,t){upJ[X]||(upJ[X]=!0,_.vz.addLowPriorityJob(function(){_.FR();upJ[X]=!1},t))};
_.FR=function(){_.GA("_lact",window)==null&&OzA();var X=Date.now();_.dl("_lact",X,window);_.GA("_fact",window)==-1&&_.dl("_fact",X,window);(X=_.GA("ytglobal.ytUtilActivityCallback_"))&&X()};
_.T5=function(){var X=_.GA("_lact",window);return X==null?-1:Math.max(Date.now()-X,0)};
_.DU=function(X,t,G){var y=_.Av();if(y&&t){var w=y.subscribe(X,function(){var z=arguments,B=function(){YA[w]&&t.apply&&typeof t.apply=="function"&&t.apply(G||window,z)};
try{_.QLA[X]?B():_.SH(B,0)}catch(V){_.$x(V)}},G);
YA[w]=!0;s9[X]||(s9[X]=[]);s9[X].push(w);return w}return 0};
_.Ivv=function(X){var t=_.Av();t&&(typeof X==="number"?X=[X]:typeof X==="string"&&(X=[parseInt(X,10)]),_.zA(X,function(G){t.unsubscribeByKey(G);delete YA[G]}))};
_.WfE=function(X,t){var G=_.Av();G&&G.publish.apply(G,arguments)};
_.pjY=function(X){var t=_.Av();if(t)if(t.clear(X),X)cmV(X);else for(var G in s9)cmV(G)};
_.Av=function(){return _.tA.ytPubsubPubsubInstance};
cmV=function(X){s9[X]&&(X=s9[X],_.zA(X,function(t){YA[t]&&delete YA[t]}),X.length=0)};
rmG=function(){var X,t;return"h5vcc"in SP&&((X=SP.h5vcc.traceEvent)==null?0:X.traceBegin)&&((t=SP.h5vcc.traceEvent)==null?0:t.traceEnd)?1:"performance"in SP&&SP.performance.mark&&SP.performance.measure?2:0};
NXv=function(X){var t=rmG();switch(t){case 1:SP.h5vcc.traceEvent.traceBegin("YTLR",X);break;case 2:SP.performance.mark(X+"-start");break;case 0:break;default:_.zr(t,"unknown trace type")}};
P$V=function(X){var t=rmG();switch(t){case 1:SP.h5vcc.traceEvent.traceEnd("YTLR",X);break;case 2:t=X+"-start";var G=X+"-end";SP.performance.mark(G);SP.performance.measure(X,t,G);break;case 0:break;default:_.zr(t,"unknown trace type")}};
EFV=function(X){var t,G;(G=(t=window).onerror)==null||G.call(t,X.message,"",0,0,X)};
Uih=function(X){if(_.A("web_lifecycle_error_handling_killswitch"))return X();try{return X()}catch(t){EFV(t)}};
mif=function(X){return[X.auth===void 0?"undefined":X.auth,X.isJspb===void 0?"undefined":X.isJspb,X.cttAuthInfo===void 0?"undefined":X.cttAuthInfo,X.tier===void 0?"undefined":X.tier].join("/")};
_.Y=function(X,t){if(X)return X[t.name]};
ZU=function(){var X=_.GA("yt.logging.ims");X||(X=new hv,_.dl("yt.logging.ims",X));return X};
MxE=function(X,t){if(X.endpoint==="log_event"){Rjs(X);var G=izE(X),y=Lfl(X.payload)||"",w=vFG(y),z=200;if(w){if(w.enabled===!1&&!_.A("web_payload_policy_disabled_killswitch"))return;z=avY(w.tier);if(z===400){lvh(X,t);return}}qj[G]=!0;G={cttAuthInfo:G,isJspb:!1,tier:z};ZU().storePayload(G,X.payload);xiG(t,!1,G,fvA(y))}};
$IG=function(X,t,G){if(t.endpoint==="log_event"){Rjs(void 0,t);var y=izE(t,!0),w=vFG(X),z=200;if(w){if(w.enabled===!1&&!_.A("web_payload_policy_disabled_killswitch"))return;z=avY(w.tier);if(z===400){Xlh(X,t,G);return}}qj[y]=!0;y={cttAuthInfo:y,isJspb:!0,tier:z};ZU().storePayload(y,v4(t.payload));xiG(G,!0,y,fvA(X))}};
xiG=function(X,t,G,y){t=t===void 0?!1:t;y=y===void 0?!1:y;X&&(Ch=new X);X=_.At("tvhtml5_logging_max_batch_ads_fork")||_.At("tvhtml5_logging_max_batch")||_.At("web_logging_max_batch")||100;var w=(0,_.gl)(),z=t_v(t,G.tier),B=z.lastDebounceQueueFromLogTimeMs;y&&(z.useVideoStatsEndPoint=!0);y=0;G&&(y=ZU().getSequenceCount(G));var V=function(){G7s({writeThenSend:!0},t,G.tier)};
y>=1E3?V():y>=X?yH6||(yH6=wlG(function(){V();yH6=void 0},0)):w-B>=10&&(zVw(t,G.tier),z.lastDebounceQueueFromLogTimeMs=w)};
lvh=function(X,t){if(X.endpoint==="log_event"){_.A("more_accurate_gel_parser")&&ZU().storePayload({isJspb:!1},X.payload);Rjs(X);var G=izE(X),y=new Map;y.set(G,[X.payload]);var w=Lfl(X.payload)||"";t&&(Ch=new t);return new _.Kh(function(z,B){Ch&&Ch.isReady()?HXJ(y,Ch,z,B,{bypassNetworkless:!0},!0,fvA(w)):z()})}};
Xlh=function(X,t,G){if(t.endpoint==="log_event"){Rjs(void 0,t);var y=izE(t,!0),w=new Map;w.set(y,[v4(t.payload)]);G&&(Ch=new G);return new _.Kh(function(z){Ch&&Ch.isReady()?oIl(w,Ch,z,{bypassNetworkless:!0},!0,fvA(X)):z()})}};
izE=function(X,t){var G="";if(X.dangerousLogToVisitorSession)G="visitorOnlyApprovedKey";else if(X.cttAuthInfo){if(t===void 0?0:t){t=X.cttAuthInfo.token;G=X.cttAuthInfo;var y=new JH6;G.videoId?y.setVideoId(G.videoId):G.playlistId&&O9(y,2,Brv,IN(G.playlistId));nIs[t]=y}else t=X.cttAuthInfo,G={},t.videoId?G.videoId=t.videoId:t.playlistId&&(G.playlistId=t.playlistId),V_J[X.cttAuthInfo.token]=G;G=X.cttAuthInfo.token}return G};
G7s=function(X,t,G){X=X===void 0?{}:X;t=t===void 0?!1:t;new _.Kh(function(y,w){var z=t_v(t,G),B=z.useVideoStatsEndPoint;z.useVideoStatsEndPoint=!1;bX_(z.queueTimer);bX_(z.queueMaxTimer);z.queueMaxTimer=0;Ch&&Ch.isReady()?G===void 0&&_.A("enable_web_tiered_gel")?k76(y,w,X,t,300,B):k76(y,w,X,t,G,B):(zVw(t,G),y())})};
k76=function(X,t,G,y,w,z){var B=Ch;G=G===void 0?{}:G;y=y===void 0?!1:y;w=w===void 0?200:w;z=z===void 0?!1:z;var V=new Map,b=new Map,e={isJspb:y,cttAuthInfo:void 0,tier:w},g={isJspb:y,cttAuthInfo:void 0};if(y){t=_.J(Object.keys(qj));for(w=t.next();!w.done;w=t.next())w=w.value,b=_.A("enable_web_tiered_gel")?ZU().smartExtractMatchingEntries({keys:[e,g],sizeLimit:1E3}):ZU().extractMatchingEntries({isJspb:!0,cttAuthInfo:w}),b.length>0&&V.set(w,b),(_.A("web_fp_via_jspb_and_json")&&G.writeThenSend||!_.A("web_fp_via_jspb_and_json"))&&
delete qj[w];oIl(V,B,X,G,!1,z)}else{V=_.J(Object.keys(qj));for(e=V.next();!e.done;e=V.next())e=e.value,g=_.A("enable_web_tiered_gel")?ZU().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:e,tier:w},{isJspb:!1,cttAuthInfo:e}],sizeLimit:1E3}):ZU().extractMatchingEntries({isJspb:!1,cttAuthInfo:e}),g.length>0&&b.set(e,g),(_.A("web_fp_via_jspb_and_json")&&G.writeThenSend||!_.A("web_fp_via_jspb_and_json"))&&delete qj[e];HXJ(b,B,X,t,G,!1,z)}};
zVw=function(X,t){X=X===void 0?!1:X;t=t===void 0?200:t;var G=function(){G7s({writeThenSend:!0},X,t)},y=t_v(X,t),w=y===dIl||y===eVs?5E3:jis;
_.A("web_gel_timeout_cap")&&!y.queueMaxTimer&&(w=wlG(function(){G()},w),y.queueMaxTimer=w);
bX_(y.queueTimer);w=_.Md("LOGGING_BATCH_TIMEOUT",_.At("web_gel_debounce_ms",1E4));_.A("shorten_initial_gel_batch_timeout")&&gIJ&&(w=Fws);w=wlG(function(){_.At("gel_min_batch_size")>0?ZU().getSequenceCount({cttAuthInfo:void 0,isJspb:X,tier:t})>=Trh&&G():G()},w);
y.queueTimer=w};
HXJ=function(X,t,G,y,w,z,B){w=w===void 0?{}:w;var V=Math.round((0,_.gl)()),b=X.size,e=AHE(B);X=_.J(X);var g=X.next();for(B={};!g.done;B={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},g=X.next()){var F=_.J(g.value);g=F.next().value;F=F.next().value;B.batchRequest=_.RH.unsafeClone({context:_.Xys(t.config_||_.Tx())});if(!_.xJ(F)&&!_.A("throw_err_when_logevent_malformed_killswitch")){y();break}B.batchRequest.events=F;
(F=V_J[g])&&Ydh(B.batchRequest,g,F);delete V_J[g];B.dangerousLogToVisitorSession=g==="visitorOnlyApprovedKey";si6(B.batchRequest,V,B.dangerousLogToVisitorSession);DIf(w);B.onSuccess$jscomp$3=function(T){_.A("start_client_gcf")&&_.vz.addLowPriorityJob(function(){return _.n(function(D){return D.yield(Sd6(T),0)})});
b--;b||G()};
B.networkFailures=0;B.onError$jscomp$5=function(T){return function(){T.networkFailures++;if(w.bypassNetworkless&&T.networkFailures===1)try{IkJ(t,e,T.batchRequest,hVV({writeThenSend:!0},T.dangerousLogToVisitorSession,T.onSuccess$jscomp$3,T.onError$jscomp$5,z)),gIJ=!1}catch(D){_.$x(D),y()}b--;b||G()}}(B);
try{IkJ(t,e,B.batchRequest,hVV(w,B.dangerousLogToVisitorSession,B.onSuccess$jscomp$3,B.onError$jscomp$5,z)),gIJ=!1}catch(T){_.$x(T),y()}}};
oIl=function(X,t,G,y,w,z){y=y===void 0?{}:y;var B=Math.round((0,_.gl)()),V={value:X.size},b=new Map([].concat(_.RY(X)));b=_.J(b);for(var e=b.next();!e.done;e=b.next()){var g=_.J(e.value).next().value,F=X.get(g);e=new ZXv;var T=t.config_||_.Tx(),D=new ux,h=new qdV;_.rp(h,1,T.innertubeContextHostLanguage);_.rp(h,2,T.innertubeContextGeoLocation);_.AG(h,16,T.innertubeContextClientNameFieldNumber);_.rp(h,17,T.innertubeContextClientVersion);if(T.innertubeContextClientConfigInfo){var u=T.innertubeContextClientConfigInfo,
W=new sr;u.coldConfigData&&_.rp(W,1,u.coldConfigData);u.appInstallData&&_.rp(W,6,u.appInstallData);u.coldHashData&&_.rp(W,3,u.coldHashData);u.hotHashData&&W.setHotHashData(u.hotHashData);_.Oi(h,62,W)}(u=_.tA.devicePixelRatio)&&u!=1&&_.Y7(h,65,_.H4(u));u=dYG();u!==""&&_.rp(h,54,u);u=euJ();if(u.length>0){W=new CpG;for(var c=0;c<u.length;c++){var P=new QG;P.setKey(u[c].key);O9(P,2,Kwh,IN(u[c].value));I7(W,15,QG,P)}_.Oi(D,5,W)}v0f(T,h);all(D);ll6(h);xQh(T,h);fl0(h);_.A("start_client_gcf")&&M7_(h);_.Md("DELEGATED_SESSION_ID")&&
!_.A("pageid_as_header_web")&&(T=new WO,_.rp(T,3,_.Md("DELEGATED_SESSION_ID")));!_.A("fill_delegate_context_in_gel_killswitch")&&(u=_.Md("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W=_.Co(D,WO,3)||new WO,T=D,u=_.rp(W,18,u),_.Oi(T,3,u));T=h;u=_.J(Object.entries(_.Hx(_.Md("DEVICE",""))));for(W=u.next();!W.done;W=u.next())c=_.J(W.value),W=c.next().value,c=c.next().value,W==="cbrand"?_.rp(T,12,c):W==="cmodel"?_.rp(T,13,c):W==="cbr"?_.rp(T,87,c):W==="cbrver"?_.rp(T,88,c):W==="cos"?_.rp(T,18,
c):W==="cosver"?_.rp(T,19,c):W==="cplatform"&&_.AG(T,42,iq_(c));D.setClient(h);_.Oi(e,1,D);if(h=nIs[g])a:{if(_.Ko(h,cO(h,Brv,1)))D=1;else if(h.getPlaylistId())D=2;else break a;_.Oi(e,4,h);h=e.getContext()||new ux;T=_.Co(h,WO,3)||new WO;u=new ph;u.setToken(g);_.AG(u,1,D);I7(T,12,ph,u);_.Oi(h,3,T)}delete nIs[g];g=g==="visitorOnlyApprovedKey";OXJ()||_.rj(e,2,B);!g&&(D=_.Md("EVENT_ID"))&&(h=uxV(),T=new QiJ,_.rp(T,1,D),_.rj(T,2,h),_.Oi(e,5,T));DIf(y);if(_.A("jspb_serialize_with_worker")&&(D=_.Btw())&&
y.writeThenSend){_.IWf.set(Wwf,{client:t,resolve:G,networklessOptions:y,isIsolated:w,useVSSEndpoint:z,dangerousLogToVisitorSession:g,requestsOutstanding:V});D.postMessage({op:"gelBatchToSerialize",batchRequest:v4(e),clientEvents:F,key:Wwf});Wwf++;break}if(F){D=[];for(h=0;h<F.length;h++)try{D.push(new Nj(F[h]))}catch(l){_.$x(new _.NJ("Transport failed to deserialize "+String(F[h])))}F=D}else F=[];F=_.J(F);for(D=F.next();!D.done;D=F.next())I7(e,3,Nj,D.value);F={startTime:(0,_.gl)(),ticks:{},infos:{}};
e=e.serialize();F.ticks.geljspc=(0,_.gl)();_.A("log_jspb_serialize_latency")&&wW0("gel_jspb_serialize",F,{sampleRate:.1});_.cH0(e,t,G,y,w,z,g,V)}};
_.cH0=function(X,t,G,y,w,z,B,V){y=y===void 0?{}:y;V=V===void 0?{value:0}:V;z=AHE(z);y=hVV(y,B,function(b){_.A("start_client_gcf")&&_.vz.addLowPriorityJob(function(){return _.n(function(e){return e.yield(Sd6(b),0)})});
V.value--;V.value||G()},function(){V.value--;
V.value||G()},w);
y.headers["Content-Type"]="application/json+protobuf";y.postBodyFormat="JSPB";y.postBody=X;IkJ(t,z,"",y);gIJ=!1};
DIf=function(X){_.A("always_send_and_write")&&(X.writeThenSend=!1)};
hVV=function(X,t,G,y,w){X={retry:!0,onSuccess:G,onError:y,networklessOptions:X,dangerousLogToVisitorSession:t,bypassMonitoring:!!w,headers:{},postBodyFormat:"",postBody:"",compress:_.A("compress_gel")||_.A("compress_gel_lr")};OXJ()&&(X.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.gl)())));return X};
si6=function(X,t,G){OXJ()||(X.requestTimeMs=String(t));_.A("unsplit_gel_payloads_in_logs")&&(X.unsplitGelPayloadsInLogs=!0);!G&&(t=_.Md("EVENT_ID"))&&(G=uxV(),X.serializedClientEventId={serializedEventId:t,clientCounter:String(G)})};
uxV=function(){var X=_.Md("BATCH_CLIENT_COUNTER")||0;X||(X=Math.floor(Math.random()*65535/2));X++;X>65535&&(X=1);_.fY("BATCH_CLIENT_COUNTER",X);return X};
Ydh=function(X,t,G){if(G.videoId)var y="VIDEO";else if(G.playlistId)y="PLAYLIST";else return;X.credentialTransferTokenTargetId=G;X.context=X.context||{};X.context.user=X.context.user||{};X.context.user.credentialTransferTokens=[{token:t,scope:y}]};
Rjs=function(X,t){var G=_.Yx("il_payload_scraping")==="enable_il_payload_scraping";if(!_.GA("yt.logging.transport.enableScrapingForTest"))if(G)plw=[],_.dl("yt.logging.transport.enableScrapingForTest",!0),_.dl("yt.logging.transport.scrapedPayloadsForTesting",plw),_.dl("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.dl("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.dl("yt.logging.transport.scrapeClientEvent",!0);else return;G=_.GA("yt.logging.transport.scrapedPayloadsForTesting");var y=_.GA("yt.logging.transport.payloadToScrape");t&&(t=_.GA("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(t.payload)())&&G.push(t);t=_.GA("yt.logging.transport.scrapeClientEvent");if(y&&y.length>=1)for(var w=0;w<y.length;w++)if(X&&X.payload[y[w]])if(t)G.push(X.payload);else{var z=void 0;G.push(((z=X)==null?void 0:z.payload)[y[w]])}_.dl("yt.logging.transport.scrapedPayloadsForTesting",
G)};
OXJ=function(){return _.A("use_request_time_ms_header")||_.A("lr_use_request_time_ms_header")};
wlG=function(X,t){return _.A("transport_use_scheduler")===!1?_.SH(X,t):_.A("logging_avoid_blocking_during_navigation")||_.A("lr_logging_avoid_blocking_during_navigation")?_.PO(_.vz,function(){if(_.rHA().currentState==="none")X();else{var G={};_.rHA().install((G.none={callback:X},G))}},t):_.PO(_.vz,X,t)};
bX_=function(X){_.A("transport_use_scheduler")?_.vz.cancelJob(X):_.Zu(X)};
Sd6=function(X){var t,G,y,w,z,B,V,b,e,g;return _.n(function(F){return F.nextAddress==1?(y=(t=X)==null?void 0:(G=t.responseContext)==null?void 0:G.globalConfigGroup,w=_.Y(y,Nrv),B=(z=y)==null?void 0:z.hotHashData,V=_.Y(y,Ppf),e=(b=y)==null?void 0:b.coldHashData,(g=_.gw().resolve(_.jH(mu)))?B?w?F.yield(EIh(g,B,w),2):F.yield(EIh(g,B),2):F.jumpTo(2):F.return()):e?V?F.yield(UIY(g,e,V),0):F.yield(UIY(g,e),0):F.jumpTo(0)})};
t_v=function(X,t){t=t===void 0?200:t;return X?t===300?dIl:mIV:t===300?eVs:RVE};
vFG=function(X){if(_.A("enable_web_tiered_gel")){X=iXE[X||""];var t,G,y,w=_.gw().resolve(_.jH(mu))==null?void 0:(t=R7())==null?void 0:(G=t.loggingHotConfig)==null?void 0:(y=G.eventLoggingConfig)==null?void 0:y.payloadPolicies;if(w)for(t=0;t<w.length;t++)if(w[t].payloadNumber===X)return w[t]}};
Lfl=function(X){X=Object.keys(X);X=_.J(X);for(var t=X.next();!t.done;t=X.next())if(t=t.value,iXE[t])return t};
avY=function(X){switch(X){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}};
fvA=function(X){return X==="gelDebuggingEvent"};
AHE=function(X){return(X===void 0?0:X)&&_.A("vss_through_gel_video_stats")?"video_stats":"log_event"};
Lh=function(X,t,G,y){y=y===void 0?{}:y;var w={},z=Math.round(y.timestamp||(0,_.gl)());w.eventTimeMs=z<Number.MAX_SAFE_INTEGER?z:0;w[X]=t;X=_.T5();w.context={lastActivityMs:String(y.timestamp||!isFinite(X)?-1:X)};y.sequenceGroup&&!_.A("web_gel_sequence_info_killswitch")&&(X=w.context,t=y.sequenceGroup,t={index:LwY(t),groupKey:t},X.sequence=t,y.endOfSequence&&delete ix[y.sequenceGroup]);_.A("web_tag_automated_log_events")&&(w.context.automatedLogEventSource=y.automatedLogEventSource);(y.sendIsolatedPayload?
lvh:MxE)({endpoint:"log_event",payload:w,cttAuthInfo:y.cttAuthInfo,dangerousLogToVisitorSession:y.dangerousLogToVisitorSession},G)};
LwY=function(X){ix[X]=X in ix?ix[X]+1:0;return ix[X]};
_.a7=function(X,t,G){G=G===void 0?{}:G;var y=vO;_.X3("ytLoggingEventsDefaultDisabled",!1)&&vO===vO&&(y=null);Lh(X,t,y,G)};
_.lx=function(){if(_.A("web_fp_via_jspb")){var X=!0;X=X===void 0?!1:X;var t=vIV;vIV=[];if(t){t=_.J(t);for(var G=t.next();!G.done;G=t.next())G=G.value,X?Lh(G.payloadName,G.payload,vO,G.options):_.a7(G.payloadName,G.payload,G.options)}G7s(void 0,!0);if(!_.A("web_fp_via_jspb_and_json"))return}G7s(void 0,!1)};
aW6=function(X,t){var G;if((G=t)==null?0:G.componentStack)return t;if(X=X.componentStack)t||(t={}),t.componentStack=X;return t};
lW_=function(){_.zA(_.Md("ERRORS")||[],function(X){_.xA.apply(null,X)});
_.fY("ERRORS",[])};
_.fh=function(X){_.xA(X)};
_.Mj=function(X){_.xA(X,"WARNING")};
xIY=function(X){X instanceof Error?_.xA(X):(X=_.$h(X)?JSON.stringify(X):String(X),X=new _.NJ(X),X.name="RejectedPromiseError",_.Mj(X))};
fWG=function(X,t,G,y,w,z){t=t===void 0?"Unknown file":t;G=G===void 0?0:G;var B=!1,V=lOG("log_window_onerror_fraction");if(V&&Math.random()<V)B=!0;else{V=document.getElementsByTagName("script");for(var b=0,e=V.length;b<e;b++)if(V[b].src.indexOf("/debug-")>0){B=!0;break}}B&&(B=!1,w?B=!0:(typeof X==="string"?V=X:ErrorEvent&&X instanceof ErrorEvent?(B=!0,V=X.message,t=X.filename,G=X.lineno,y=X.colno):(V="Unknown error",t="Unknown file",G=0),w=new _.NJ(V),w.name="UnhandledWindowError",w.message=V,w.fileName=
t,w.lineNumber=G,isNaN(y)?delete w.columnNumber:w.columnNumber=y),_.A("wiz_enable_component_stack_propagation_killswitch")||(z=aW6(w,z)),z&&_.XE(w,z),B?_.xA(w):_.Mj(w))};
_.xA=function(X,t,G,y,w,z,B,V){z=z===void 0?{}:z;z.name=G||_.Md("INNERTUBE_CONTEXT_CLIENT_NAME",1);z.version=y||_.Md("INNERTUBE_CONTEXT_CLIENT_VERSION");G=z;t=t===void 0?"ERROR":t;B=B===void 0?!1:B;t=t===void 0?"ERROR":t;B=B===void 0?!1:B;if(X&&(X.hasOwnProperty("level")&&X.level&&(t=X.level),_.A("console_log_js_exceptions")&&(y=[],y.push("Name: "+X.name),y.push("Message: "+X.message),X.hasOwnProperty("params")&&y.push("Error Params: "+JSON.stringify(X.params)),X.hasOwnProperty("args")&&y.push("Error args: "+
JSON.stringify(X.args)),y.push("File name: "+X.fileName),y.push("Stacktrace: "+X.stack),y=y.join("\n"),window.console.log(y,X)),!(M_h>=5))){y=[];w=_.J(XkV);for(z=w.next();!z.done;z=w.next()){z=z.value;try{z()&&y.push(z())}catch(W){}}y=[].concat(_.RY($7w),_.RY(y));var b=teY(X);w=b.message||"Unknown Error";z=b.name||"UnknownError";var e=b.stack||X.stacktrace||"Not available";if(e.startsWith(z+": "+w)){var g=e.split("\n");g.shift();e=g.join("\n")}g=b.lineNumber||"Not available";b=b.fileName||"Not available";
var F=0;if(X.hasOwnProperty("args")&&X.args&&X.args.length)for(var T=0;T<X.args.length&&!(F=Ru_(X.args[T],"params."+T,G,F),F>=500);T++);else if(X.hasOwnProperty("params")&&X.params){var D=X.params;if(typeof X.params==="object")for(T in D){if(D[T]){var h="params."+T,u=uF(D[T]);G[h]=u;F+=h.length+u.length;if(F>500)break}}else G.params=uF(D)}if(y.length)for(T=0;T<y.length&&!(F=Ru_(y[T],"params.context."+T,G,F),F>=500);T++);navigator.vendor&&!G.hasOwnProperty("vendor")&&(G["device.vendor"]=navigator.vendor);
T={message:w,name:z,lineNumber:g,fileName:b,stack:e,params:G,sampleWeight:1};G=Number(X.columnNumber);isNaN(G)||(T.lineNumber=T.lineNumber+":"+G);if(X.level==="IGNORED")X=0;else a:{X=Gzv();G=_.J(X.messageWeights);for(y=G.next();!y.done;y=G.next())if(y=y.value,T.message&&T.message.match(y.messageRegExp)){X=y.weight;break a}X=_.J(X.callbackWeights);for(G=X.next();!G.done;G=X.next())if(G=G.value,G.callback(T)){X=G.weight;break a}X=1}T.sampleWeight=X;X=_.J(ySv);for(G=X.next();!G.done;G=X.next())if(G=
G.value,G.patternsForType[T.name])for(w=_.J(G.patternsForType[T.name]),y=w.next();!y.done;y=w.next())if(z=y.value,y=T.message.match(z.regexp)){T.params["params.error.original"]=y[0];w=z.groups;z={};for(g=0;g<w.length;g++)z[w[g]]=y[g+1],T.params["params.error."+w[g]]=y[g+1];T.message=G.messageFn(z);break}T.params||(T.params={});X=Gzv();T.params["params.errorServiceSignature"]="msg="+X.messageWeights.length+"&cb="+X.callbackWeights.length;T.params["params.serviceWorker"]="false";_.tA.document&&_.tA.document.querySelectorAll&&
(T.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new $5(wk_,"sample")).constructor!==$5&&(T.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(T);if(T.sampleWeight!==0&&!zIw.has(T.message)){if(B&&_.A("web_enable_error_204"))H5l(t===void 0?"ERROR":t,T);else{t=t===void 0?"ERROR":t;t==="ERROR"?(oWJ.publish("handleError",T),_.A("record_app_crashed_web")&&JS6===0&&T.sampleWeight===1&&(JS6++,B={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.A("report_client_error_with_app_crash_ks")||(B.systemHealth={crashData:{clientError:{logMessage:{message:T.message}}}}),_.a7("appCrashed",B)),B5E++):t==="WARNING"&&oWJ.publish("handleWarning",T);if(_.A("kevlar_gel_error_routing")){B=t;V=V===void 0?{}:V;b:{X=_.J(nWJ);for(G=X.next();!G.done;G=X.next())if(xx(G.value.toLowerCase())){X=!0;break b}X=!1}if(X)V=void 0;else{G={stackTrace:T.stack};T.fileName&&(G.filename=T.fileName);X=T.lineNumber&&T.lineNumber.split?T.lineNumber.split(":"):[];X.length!==
0&&(X.length!==1||isNaN(Number(X[0]))?X.length!==2||isNaN(Number(X[0]))||isNaN(Number(X[1]))||(G.lineNumber=Number(X[0]),G.columnNumber=Number(X[1])):G.lineNumber=Number(X[0]));X={level:"ERROR_LEVEL_UNKNOWN",message:T.message,errorClassName:T.name,sampleWeight:T.sampleWeight};B==="ERROR"?X.level="ERROR_LEVEL_ERROR":B==="WARNING"&&(X.level="ERROR_LEVEL_WARNNING");G={isObfuscated:!0,browserStackInfo:G};V.pageUrl=window.location.href;V.kvPairs=[];_.Md("FEXP_EXPERIMENTS")&&(V.experimentIds=_.Md("FEXP_EXPERIMENTS"));
y=_.Md("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!lOG("web_disable_gel_stp_ecatcher_killswitch")&&y)for(w=_.J(Object.keys(y)),z=w.next();!z.done;z=w.next())z=z.value,V.kvPairs.push({key:z,value:String(y[z])});if(y=T.params)for(w=_.J(Object.keys(y)),z=w.next();!z.done;z=w.next())z=z.value,V.kvPairs.push({key:"client."+z,value:String(y[z])});y=_.Md("SERVER_NAME");w=_.Md("SERVER_VERSION");y&&w&&(V.kvPairs.push({key:"server.name",value:y}),V.kvPairs.push({key:"server.version",value:w}));V={errorMetadata:V,
stackTrace:G,logMessage:X}}V&&(_.a7("clientError",V),(B==="ERROR"||_.A("errors_flush_gel_always_killswitch"))&&_.lx())}_.A("suppress_error_204_logging")||H5l(t,T)}try{zIw.add(T.message)}catch(W){}M_h++}}};
H5l=function(X,t){var G=t.params||{};X={urlParams:{a:"logerror",t:"jserror",type:t.name,msg:t.message.substr(0,250),line:t.lineNumber,level:X,"client.name":G.name},postParams:{url:_.Md("PAGE_NAME",window.location.href),file:t.fileName},method:"POST"};G.version&&(X["client.version"]=G.version);if(X.postParams){t.stack&&(X.postParams.stack=t.stack);t=_.J(Object.keys(G));for(var y=t.next();!y.done;y=t.next())y=y.value,X.postParams["client."+y]=G[y];if(G=_.Md("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(t=
_.J(Object.keys(G)),y=t.next();!y.done;y=t.next())y=y.value,X.postParams[y]=G[y];(G=_.Md("LAVA_VERSION"))&&(X.postParams["lava.version"]=G);G=_.Md("SERVER_NAME");t=_.Md("SERVER_VERSION");G&&t&&(X.postParams["server.name"]=G,X.postParams["server.version"]=t)}_.Cs(_.Md("ECATCHER_REPORT_HOST","")+"/error_204",X)};
_.Veh=function(X,t){t=t===void 0?"ERROR":t;var G=G===void 0?{}:G;var y=_.GA("ytbin.polymer.shared.lib.tampering.info");y&&(y=y())&&(G["params.tamperingInfo"]=y.sort().join(","));_.xA(X,t,void 0,void 0,!0,G)};
_.XE=function(X){var t=_.f1.apply(1,arguments);X.args||(X.args=[]);Array.isArray(X.args)&&X.args.push.apply(X.args,_.RY(t))};
b5_=function(X){X.level="IGNORED"};
kzA=function(X,t){$7w.push(X);t();$7w.pop()};
Gj=function(X,t){for(var G in t)t.hasOwnProperty(G)&&(X=_.ta(X,G,t[G]));return X};
_.d7l=function(X,t,G){G=G===void 0?!1:G;if(!X)return null;if(X.adInfoDialogEndpoint||X.backstageImageUploadEndpoint||X.confirmDialogEndpoint||X.clientActionEndpoint||X.createBackstagePostDialogEndpoint||X.createCommentReplyDialogEndpoint||X.flowEndpoint||X.guideBuilderEndpoint||X.liveChatDialogEndpoint||X.modalEndpoint||X.openPopupAction||X.shareEndpoint||X.shareEntityEndpoint||X.showLiveChatItemEndpoint||X.subscriptionManagerEndpoint||X.unlimitedCreateFamilyEndpoint||X.unlimitedFamilyFlowEndpoint||
X.updateCommentDialogEndpoint||X.updateCommentReplyDialogEndpoint||X.userFeedbackEndpoint||X.videoEditorEndpoint||X.ypcCancelSurveyEndpoint)return t=_.At("polymer_report_client_url_requested_rate"),!G&&Math.random()<t&&_.Mj(new _.NJ("urlForEndpoint used on client endpoint",X)),null;var y=_.At("polymer_report_missing_web_navigation_endpoint_rate");if(X.liveChatEndpoint||X.liveChatReplayEndpoint)y=0;if(!X.commandMetadata&&!X.clickTrackingParams&&Math.random()<y){var w={},z;for(z in X)w[z]="1";_.Mj(new _.NJ("Missing navigation data",
w))}w="";if(X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.url)w=X.commandMetadata.webCommandMetadata.url;else if(X.searchEndpoint)Math.random()<y&&_.Mj(new _.NJ("Should not manually handle search",X)),w="/results?search_query="+encodeURIComponent(X.searchEndpoint.query).replace(/%20/g,"+"),X.searchEndpoint.params&&(w+="&sp="+X.searchEndpoint.params);else if(X.watchEndpoint)Math.random()<y&&_.Mj(new _.NJ("Should not manually handle watch",X)),w="/watch?v="+
X.watchEndpoint.videoId,X.watchEndpoint.playlistId&&(w+="&list="+X.watchEndpoint.playlistId),X.watchEndpoint.index&&(w+="&index="+X.watchEndpoint.index),X.watchEndpoint.startTimeSeconds&&(w+="&t="+X.watchEndpoint.startTimeSeconds);else if(X.browseEndpoint)y=X.browseEndpoint.browseId,(z=X.browseEndpoint.canonicalBaseUrl)?w=z:y&&(w=y.substr(0,2),w=w==="FE"?y==="FEwhat_to_watch"?"/":y==="FEmy_videos"?"/my_videos":"/feed/"+y.substr(2):w==="VL"?"/playlist?list="+y.substr(2):"/channel/"+y),w&&X.browseEndpoint.query&&
(w=Gj(w+"/search",{query:X.browseEndpoint.query})),w&&X.browseEndpoint.params&&(w=Gj(w,{params:X.browseEndpoint.params}));else{if(X.urlEndpoint)return X.urlEndpoint.url;X.signInEndpoint?(w="https://accounts.google.com/ServiceLogin",y={},_.RH.extend(y,t||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),t=y):X.uploadEndpoint?w="//www.youtube.com/upload":X.liveChatEndpoint?(w=X.liveChatEndpoint,y=_.RH.clone(w),_.$h(w.continuation)&&(z=Object.keys(w.continuation)[0],
y.continuation=w.continuation[z].continuation),w=Gj("/youtubei/v1/live_chat/get_live_chat",y)):X.liveChatReplayEndpoint?(w=_.RH.clone(X.liveChatReplayEndpoint),w.currentPlayerState&&(_.RH.extend(w,w.currentPlayerState),delete w.currentPlayerState),w=Gj("/youtubei/v1/live_chat/get_live_chat_replay",w)):X.liveChatItemContextMenuEndpoint?w=Gj("/youtubei/v1/live_chat/get_item_context_menu",X.liveChatItemContextMenuEndpoint):X.liveChatPurchaseMessageEndpoint?w=Gj("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
X.liveChatPurchaseMessageEndpoint):X.openSuperStickerBuyFlowCommand?w=Gj("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",X.openSuperStickerBuyFlowCommand):X.videoEditEndpoint?w=Gj("/edit",{video_id:X.videoEditEndpoint.videoId}):X.liveDashboardEndpoint?w=X.liveDashboardEndpoint.videoId?Gj("/live_dashboard",{v:X.liveDashboardEndpoint.videoId}):"/live_dashboard":X.signalNavigationEndpoint&&X.signalNavigationEndpoint.signal&&X.signalNavigationEndpoint.signal==="WEBCAM"?w="/webcam":X.getPdgBuyFlowCommand&&
(w=Gj(X.getPdgBuyFlowCommand.buyflowApiPath,{params:X.getPdgBuyFlowCommand.params}))}return w||G?Gj(w,t||{}):(_.Mj(new _.NJ("Error: Can't construct url for endpoint","keys:"+Object.keys(X).sort().join(","),X)),null)};
eI_=function(X){if(X){if(X.browseEndpoint)return!!X.browseEndpoint.nofollow;if(X.watchEndpoint)return!!X.watchEndpoint.nofollow;if(X.urlEndpoint)return!!X.urlEndpoint.nofollow}return!1};
_.gW_=function(X,t){var G=t+X,y=jsY.get(G);if(y)return y;X=t+"-"+X.replace(/([A-Z])/g,"-$1").toLowerCase();jsY.set(G,X);return X};
FAh=function(X){var t=_.lv(X,"action")||_.lv(X,"command")||_.lv(X,"endpoint");if(!t)return null;t=_.gW_(t,"yt");_.Y(X,_.yN)&&(t+="-"+_.Y(X,_.yN).signal.toLowerCase().replace(/_/g,"-"));return t};
ssV=function(X){try{var t=Object.keys(X)}catch(w){return[]}for(var G=0;G<t.length;G++){var y=t[G];if(T50.test(y)||ASl.test(y))return YWV(X[y])}return[]};
YWV=function(X){return X.command?[X.command]:X.onExecutionAction?[X.onExecutionAction]:X.onResponseReceivedCommand?[X.onResponseReceivedCommand]:X.updateFlowCommand?[X.updateFlowCommand]:X.clientActions?X.clientActions:X.action?[X.action]:X.actions||X.commands||X.onResponseReceivedActions||X.onResponseReceivedCommands||X.onResponseReceivedEndpoints||[]};
SWv=function(X,t){t=t===void 0?!1:t;var G=_.gw().resolve(_.jH(wS));G||(G=new D7w,_.gw().addProvider({provide:wS,useValue:G}));return G&&X&&!_.RH.isEmpty(X)?G.getUrl(X,t):""};
hIl=function(X,t,G){G=G===void 0?"":G;if(t){X.data=t;var y=SWv(t);y?(XM(X,y),eI_(t)||!dw(y)?X.rel="nofollow":X.removeAttribute("rel"),_.Y(t,_.zj)&&_.Y(t,_.zj).target==="TARGET_NEW_WINDOW"?X.target="_blank":G?X.target=G:X.removeAttribute("target")):(X.removeAttribute("href"),X.removeAttribute("rel"),X.removeAttribute("target"))}};
_.Bq=function(X,t){var G=Bm;if(cm())Z5V(X,function(){var z=_.f1.apply(0,arguments);Lt(G,function(){t.apply(null,_.RY(z))})});
else{var y=_.Hq.getInstance(),w=a2(t);NuV(function(){w.value=t});
_.LY(function(){var z={},B=_.oO(y,(z[X]=function(){var V=_.f1.apply(0,arguments);Lt(G,function(){w.value.apply(w,_.RY(V))})},z));
return function(){var V={};_.Ja(y,(V[X]="",V),B)}})}};
_.nl=function(X,t){return qWs(X,!1,t)};
_.VN=function(X,t){return qWs(X,!0,t)};
qWs=function(X,t,G){return cm()?CXv(X,t,G):KAw(X,t,G)};
KAw=function(X,t,G){return v0(function(){return CXv(X,t,G)})};
CXv=function(X,t,G){var y=Wql(function(w){y.value=w;var z=function(){var B=j0(null);try{return G==null?void 0:G(w)}finally{j0(B)}}();
return function(){z==null||z()}});
y.__expectedTagName=X;y.__optional=t;y.isIdom=!cm();return y};
O5_=function(X){var t=Bm,G=I5;return{getFn:function(){return function(y){t.isDisposed||rh(function(){return YH(function(){return X(y)})},G)!==!0&&y.stopPropagation()}}}};
bC=function(X){if(typeof X.children==="function")return X.children(),null;X=_.J(X.children);for(var t=X.next();!t.done;t=X.next())t=t.value,t();return null};
uas=function(X){var t;return((t=X.prototype)==null?void 0:t.render)===void 0};
QsE=function(X){return X.items.map(X.children)};
WAV=function(X,t,G){G=G===void 0?!1:G;rh(function(){return IRf(X,t,G)})};
IRf=function(X,t,G){var y=null;Om++;G=(G===void 0?0:G)?cSJ:pkv;try{y=G(X,function(){k5(t)}),QA(!1)}catch(w){throw QA(!0),w;
}return y===null?X:y};
k5=function(X){if(X!==void 0&&X!==null)if(X instanceof CY)for(var t=XJ;$S()!=null&&FqG in $S()&&t.contains($S());)yX();else if(Array.isArray(X))for(t=_.J(X),X=t.next();!X.done;X=t.next())k5(X.value);else if(X instanceof ct||"function"==typeof _.ec&&X instanceof _.ec||"function"==typeof _.kS&&X instanceof _.kS)bv(X.toString());else if(_.Th(X)){if($S()!==X){var G,y;t=(y=(G=I5)==null?void 0:G.name)!=null?y:"unknown";throw Error("bc`"+X.tagName+"`"+t);}yX()}else if(X!=null&&X.contentKind===sa||X instanceof
$w||ca_(X))for(t=ras(X),t=Array.from(t.childNodes),t=_.J(t),X=t.next();!X.done;X=t.next())XJ.appendChild(X.value),yX();else if(mN(X)&&(X=X.toString()),G=typeof X,G==="boolean"||G==="number"||G==="string")bv(X);else if(typeof X==="function"){t=XJ;var w=$S();w&&(w._isSignalTextNode||w._isSafeOrSanitizedHtmlNode)||JLh(t,w,X);yX()}else if(X.type===QsE)k5(X.type(Object.assign({},X.props,{children:X.children[0]})));else{uv.beforeVisit(X);if(typeof X.type==="string"){a:{X.__open||kjG(X.type,X.props.idomKey);
w=XJ;for(t in X.props)if(X.props[t]!==rSv){var z=X.props[t];G=o2;G.push(t);G.push(z)}t=kH.attributes;t=t===void 0?dS:t;z=XJ;G=Mt(z);AaJ(z,G,t);oe_(w,X.props,!0);if((X.props.skip||X.props.skipchildren)&&XJ.hasChildNodes())zh();else{if(X.type==="style"&&LX6(X.children)===null){zh();t=void 0;break a}k5(X.children)}d_G();X.__open&&(X.__open=!1);CCG(w,X.props);t=w}return t}if(X.type===_.gn)k5(X.children);else if(!N5V(X)){t=X;try{PXh(t)}catch(B){X=B,(z=kH.handleError)==null||z.call.apply(z,[kH].concat(_.RY(a5(X,
(w=t.type)==null?void 0:w.TAG_NAME))))}t.__open&&(d_G(),t.__open=!1)}}};
EWY=function(X,t){var G;uas(X)?G=new I2(t,X):G=new X(t);G.JSC$10147___type=X;G.__updateContext={nextState:G.state,isForced:!1};return G};
PXh=function(X){var t=X.type,G=t.TAG_NAME;if(t===bC)X.props.children=X.children,t(X.props);else{X.children.length>0&&(X.props.children=X.children);var y;(y=X.props).idomKey||(y.idomKey=t);if(G){var w=kjG(G,X.props.idomKey);X.__open=!0;var z=w.__instance}z||(z=EWY(t,X.props),z.props=null,w&&(w.__instance=z,z.el=w));var B;G=((B=z.__updateContext)!=null?B:{nextState:z.state,isForced:!1}).nextState;z.__updateContext=void 0;t.getDerivedStateFromProps&&(G=t.getDerivedStateFromProps(X.props,G));z.props=
X.props;z.state=G;B=function(){var V=z;uv.beforeRender(V);var b=V.render(V.props);uv.afterRender(V,b);b?(V.props.idomKey&&(b.props.idomKey=V.props.idomKey),V=b):V=void 0;if(b=V)if(b.__open=X.__open,V=k5(b),X.__open=b.__open,!t.TAG_NAME)if(V)t.TAG_NAME=V.tagName.toLowerCase(),V.__instance=z,z.el=V;else{var e;if((e=z.hooks)==null?0:e.length){var g;(g=kH.handleError)==null||g.call.apply(g,[kH].concat(_.RY(a5(Error("kd")))))}}z.didPatch();uv.didPatch(z)};
(G=z.functionComponent)?Q7J(G,B,z.props.debugInstance):B()}};
N5V=function(X){var t=X.type;if(!uas(t)||t===bC||t.componentType===Wm)return!1;X.props.children=X.children.length>1?X.children:X.children[0];var G,y=(G=X.props.idomKey)!=null?G:X.type,w;if($S()&&((w=$S()[hf])==null?void 0:w.key)===y){var z=$S(),B=z[hf];if(!B)throw Error("ac`"+z.tagName);var V;(V=B.updateSignalsFromIdomProps)==null||V.call(B,X.props);U7E(B);return!0}if(m7V.has(t.name))throw V=t.name,t=(B=(z=I5)==null?void 0:z.name)!=null?B:"unknown",Error("$b`"+V+"`"+t);bEf(X.type,X.props,X.children);
X.props.renderedFromIdom=!0;(V=Q7J(X.type,function(){return GpV(X.type,X.props)},X.props.debugInstance))&&RIG(V);
return!0};
i5v=function(X){for(var t=0;t<qd(X).length;t++)yX()};
U7E=function(X){var t=LAY();if(t)i5v(t);else for(var G=0;G<X.numNodes;G++)(t=LAY())?i5v(t):yX()};
LAY=function(){var X;return(X=$S()[hf])==null?void 0:X.sourceDynamicRange};
RIG=function(X){X=uEh(X);X=Array.isArray(X)?X:[X];X=_.J(X);for(var t=X.next();!t.done;t=X.next())XJ.insertBefore(t.value,$S()),yX()};
vWf=function(X){var t=wsA(),G=v0(function(){return{value:typeof X==="function"?X():X}});
return[G.value,function(y){if(QX!==null){var w;(w=kH.handleError)==null||w.call.apply(w,[kH].concat(_.RY(a5(Error("ld")))))}G.value=typeof y==="function"?y(G.value):y;t.__updateContext={nextState:t.state,isForced:!0};y=_.nt(t.effectContext);w=FJ(!1);try{if(t.el){var z,B={},V=(B.props=t.props,B.type=t.JSC$10147___type,B.children=(z=t.props.children)!=null?z:[],B[jg]=!0,B);try{WAV(t.el,V,!0)}catch(g){var b,e;(e=kH.handleError)==null||e.call.apply(e,[kH].concat(_.RY(a5(g,(b=t.JSC$10147___type)==null?
void 0:b.TAG_NAME))))}}}finally{FJ(w),_.nt(y)}}]};
ei=function(X,t){var G=Bm,y=function(w){Lt(G,function(){t(w)})};
window.addEventListener(X,y,void 0);_.Um(function(){window.removeEventListener(X,y,void 0)})};
_.gS=function(X){var t=Bm;return function(G){var y,w=(y=X.observer)!=null?y:_.gw().resolve(ji);y=aRE(G);var z=[];X.showOption&&z.push(w.observe(G,function(){Lt(t,function(){X.visibilityCallback(!0,G)})},X.showOption));
X.hideOption&&z.push(w.observe(G,function(){Lt(t,function(){X.visibilityCallback(!1,G)})},X.hideOption));
X.prescanOption&&X.prescanCallback&&z.push(w.observe(G,function(){Lt(t,function(){X.prescanCallback()})},X.prescanOption));
var B;y.visibilityMonitorKeys=((B=y.visibilityMonitorKeys)!=null?B:[]).concat(z)}};
aRE=function(X){var t;return(t=X.polymerController)!=null?t:X};
_.FE=function(X){X.componentType=Wm};
Mes=function(X,t){var G=lRV;return _.k(_.gn,null,JW(kH.enableLazyTsx,function(){return _.k(x7_,{id:G,value:X,children:t})},function(){var y=fRJ(G,X);
bm(y);y=_.nt(y);try{return t()}finally{_.nt(y)}}))};
x7_=function(X){var t=X.children;X=fRJ(X.id,X.value);bm(X);X=_.nt(X);try{return _.k(_.gn,null,KY(t()))}finally{_.nt(X)}};
fRJ=function(X,t){return Object.assign(Object.create(XvG),{id:X,contextValue:t})};
$sV=function(X){var t,G=Bm;_.im(function(){var y=_.nt(G),w=FJ(!t);try{if(t)WAV(t,X.children(),!0);else if(t=KY(X.children()),!(t instanceof Element))throw Error("md");}finally{FJ(w),_.nt(y)}});
return t};
_.thG=function(X,t){var G;t=m$(function(){var y=FJ(!0);try{G=qd(X())}finally{FJ(y)}},t===void 0?!1:t);
return[G,t]};
y4J=function(X){X=X.buf.charCodeAt(X.pos++);return GFV[X]};
Tj=function(X){var t=0,G=0;do{var y=y4J(X);t|=(y&31)<<G;G+=5}while(y&32);return t<0?t+4294967296:t};
Hys=function(X,t,G){wvv(X,t);X[t][zpA].unshift(G)};
wvv=function(X,t){if(!X[t]||!X[t][zpA]){var G=X[t],y=G?[G]:[];X[t]=function(){for(var w=_.J(y),z=w.next();!z.done;z=w.next())z.value.apply(this,arguments)};
X[t][zpA]=y}};
oyv=function(X){if(!X)return[];var t=[];X=_.J(X);for(var G=X.next();!G.done;G=X.next())G=G.value,Array.isArray(G)?t.push.apply(t,_.RY(oyv(G))):t.push(G);return t};
_.Y5=function(X,t){if(X&&J46.test(X)||X==="//")return X;if(B20===void 0){B20=!1;try{var G=new URL("b","http://a");G.pathname="c%20d";B20=G.href==="http://a/c%20d"}catch(y){}}t||(t=document.baseURI||window.location.href);if(B20)try{return(new URL(X,t)).href}catch(y){return X}Aa||(Aa=document.implementation.createHTMLDocument("temp"),Aa.base=Aa.createElement("base"),Aa.head.appendChild(Aa.base),Aa.anchor=Aa.createElement("a"),Aa.body.appendChild(Aa.anchor));Aa.base.href=t;Aa.anchor.href=X;return Aa.anchor.href||
X};
Vhs=function(X,t){return X.replace(nyh,function(G,y,w,z){return y+"'"+_.Y5(w.replace(/["']/g,""),t)+"'"+z})};
byY=function(X){return X.substring(0,X.lastIndexOf("/")+1)};
epY=function(){kFh=!1;for(var X=sA.length,t=0;t<X;t++){var G=sA[t];if(G)try{G()}catch(y){setTimeout(function(){throw y;})}}sA.splice(0,X);
ds0+=X};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(X){console.log("["+X.is+"]: registered")};
gyf=function(X){jDJ.push(X)};
Ds=function(X){return FMh[X]||(FMh[X]=X.indexOf("-")<0?X:X.replace(T26,function(t){return t[1].toUpperCase()}))};
Si=function(X){return FMh[X]||(FMh[X]=X.replace(A4l,"-$1").toLowerCase())};
YeA=function(X,t){var G=t.parentInfo&&YeA(X,t.parentInfo);if(G)for(X=G.firstChild,G=0;X;X=X.nextSibling){if(t.parentIndex===G++)return X}else return X};
sDA=function(X,t){X=X._methodHost||X;return function(G){if(X[t])X[t](G,G.detail);else console.warn("listener method `"+t+"` not defined")}};
ha=function(X){return X.indexOf(".")>=0};
Zs=function(X){var t=X.indexOf(".");return t===-1?X:X.slice(0,t)};
Ds0=function(X,t){return X.indexOf(t+".")===0};
Kl=function(X,t){return t.indexOf(X+".")===0};
OA=function(X,t,G){return t+G.slice(X.length)};
Sef=function(X,t){return X===t||Ds0(X,t)||Kl(X,t)};
uC=function(X){if(Array.isArray(X)){for(var t=[],G=0;G<X.length;G++)for(var y=X[G].toString().split("."),w=0;w<y.length;w++)t.push(y[w]);return t.join(".")}return X};
hpE=function(X){return Array.isArray(X)?uC(X).split("."):X.toString().split(".")};
QN=function(X,t,G){t=hpE(t);for(var y=0;y<t.length;y++){if(!X)return;X=X[t[y]]}G&&(G.path=t.join("."));return X};
ZyE=function(X,t,G){var y=hpE(t),w=y[y.length-1];if(y.length>1){for(t=0;t<y.length-1;t++)if(X=X[y[t]],!X)return;X[w]=G}else X[t]=G;return y.join(".")};
qew=function(X,t,G){var y=X[t];if(!y)y=X[t]={};else if(!X.hasOwnProperty(t)&&(y=X[t]=Object.create(X[t]),G))for(var w in y)for(X=y[w],t=y[w]=Array(X.length),G=0;G<X.length;G++)t[G]=X[G];return y};
Wq=function(X,t,G,y,w,z){if(t){var B=!1,V=IO++,b;for(b in G){var e=w?Zs(b):b;if(e=t[e])for(var g=0,F=e.length,T=void 0;g<F&&(T=e[g]);g++)T.info&&T.info.lastRun===V||w&&!C7G(b,T.trigger)||(T.info&&(T.info.lastRun=V),T.fn(X,b,G,y,T.info,w,z),B=!0)}return B}return!1};
C7G=function(X,t){if(t){var G=t.name;return G==X||!(!t.structured||!Ds0(G,X))||!(!t.wildcard||!Kl(G,X))}return!0};
KMh=function(X,t,G,y,w){t=typeof w.method==="string"?X[w.method]:w.method;G=w.property;t?t.call(X,X.__data[G],y[G]):w.dynamicFn||console.warn("observer method `"+w.method+"` not defined")};
OyY=function(X,t,G,y){G={value:G,queueProperty:!0};y&&(G.path=y);(0,_.cq)(X).dispatchEvent(new CustomEvent(t,{detail:G}))};
u7_=function(X,t,G,y,w,z){z=(y=(z?Zs(t):t)!=t?t:null)?QN(X,y):X.__data[t];y&&z===void 0&&(z=G[t]);OyY(X,w.eventName,z,y)};
QDE=function(X,t,G,y,w){G=X.__data[t];pl&&(G=pl(G,w.attrName,"attribute",X));X._propertyToAttribute(t,w.attrName,G)};
WMY=function(X){var t=X.constructor.__orderedComputedDeps;if(!t){t=new Map;for(var G=X.__computeEffects,y=I7J(X),w=y.counts,z=y.ready,B=y.total;y=z.shift();)t.set(y,t.size),(y=G[y])&&y.forEach(function(V){V=V.info.methodInfo;--B;--w[V]===0&&z.push(V)});
B!==0&&console.warn("Computed graph for "+X.localName+" incomplete; circular?");X.constructor.__orderedComputedDeps=t}return t};
I7J=function(X){var t=X.__computeInfo,G={};X=X.__computeEffects;var y=[],w=0,z;for(z in t){var B=t[z];w+=G[z]=B.args.filter(function(b){return!b.literal}).length+(B.dynamicFn?1:0)}for(var V in X)t[V]||y.push(V);
return{counts:G,ready:y,total:w}};
pvw=function(X,t,G,y,w){t=c4s(X,t,G,y,w);if(t===rS)return!1;w=w.methodInfo;if(X.__dataHasAccessor&&X.__dataHasAccessor[w])return X._setPendingProperty(w,t,!0);X[w]=t;return!1};
P7h=function(X,t,G,y,w,z,B){G.bindings=G.bindings||[];y={kind:y,target:w,parts:z,literal:B,isCompound:z.length!==1};G.bindings.push(y);y.target&&y.kind!="attribute"&&y.kind!="text"&&!y.isCompound&&y.parts[0].mode==="{"&&(G=y.parts[0],z=G.negate,y.listenerEvent=G.event||Si(w)+"-changed",y.listenerNegate=z);w=t.nodeInfoList.length;for(G=0;G<y.parts.length;G++){var V=y.parts[G];V.compoundIndex=G;z=X;B=t;var b=y,e=V,g=w;if(!e.literal)if(b.kind==="attribute"&&b.target[0]==="-")console.warn("Cannot set attribute "+
b.target+' because "-" is not a valid attribute starting character');else for(V=e.dependencies,b={index:g,binding:b,part:e,evaluator:z},e=0;e<V.length;e++)g=V[e],typeof g=="string"&&(g=r4J(g),g.wildcard=!0),z._addTemplatePropertyEffect(B,g.rootProperty,{fn:N2E,info:b,trigger:g})}};
N2E=function(X,t,G,y,w,z,B){B=B[w.index];var V=w.binding,b=w.part;z&&b.source&&t.length>b.source.length&&V.kind=="property"&&!V.isCompound&&B.__isPropertyEffectsClient&&B.__dataHasAccessor&&B.__dataHasAccessor[V.target]?(G=G[t],t=OA(b.source,V.target,t),B._setPendingPropertyOrPath(t,G,!1,!0)&&X._enqueueClient(B)):(t=w.evaluator._evaluateBinding(X,b,t,G,y,z),t!==rS&&(V.isCompound&&(G=B.__dataCompoundStorage[V.target],G[b.compoundIndex]=t,t=G.join("")),V.kind==="attribute"||V.target!=="textContent"&&
(V.target!=="value"||B.localName!=="input"&&B.localName!=="textarea")||(t=t==void 0?"":t),b=t,pl&&(b=pl(b,V.target,V.kind,B)),V.kind=="attribute"?X._valueToNodeAttribute(B,b,V.target):(V=V.target,B.__isPropertyEffectsClient&&B.__dataHasAccessor&&B.__dataHasAccessor[V]?B.__readOnly&&B.__readOnly[V]||B._setPendingProperty(V,b)&&X._enqueueClient(B):X._setUnmanagedPropertyToNode(B,V,b))))};
EyJ=function(X,t,G){if(G.listenerEvent){var y=G.parts[0];X.addEventListener(G.listenerEvent,function(w){var z=G.target,B=y.source,V=y.negate,b=w.detail,e=b&&b.path;e?(B=OA(z,B,e),w=b&&b.value):w=w.currentTarget[z];t.__readOnly&&t.__readOnly[B]||!t._setPendingPropertyOrPath(B,V?!w:w,!0,!!e)||b&&b.queueProperty||t._invalidateProperties()})}};
UsE=function(X,t,G,y,w,z){z=t.static||z&&(typeof z!=="object"||z[t.methodName]);w={methodName:t.methodName,args:t.args,methodInfo:w,dynamicFn:z};for(var B=0,V=void 0;B<t.args.length&&(V=t.args[B]);B++)V.literal||X._addPropertyEffect(V.rootProperty,G,{fn:y,info:w,trigger:V});z&&X._addPropertyEffect(t.methodName,G,{fn:y,info:w});return w};
c4s=function(X,t,G,y,w){y=X._methodHost||X;var z=y[w.methodName];if(z)return X=X._marshalArgs(w.args,t,G),X===rS?rS:z.apply(y,X);w.dynamicFn||console.warn("method `"+w.methodName+"` not defined")};
msY=function(X){for(var t="",G=0;G<X.length;G++)t+=X[G].literal||"";return t};
LMh=function(X){if(X=X.match(/([^\s]+?)\(([\s\S]*)\)/)){var t={methodName:X[1],static:!0,args:Rps};return X[2].trim()?iyw(X[2].replace(/\\,/g,"&comma;").split(","),t):t}return null};
iyw=function(X,t){t.args=X.map(function(G){G=r4J(G);G.literal||(t.static=!1);return G},this);
return t};
r4J=function(X){X=X.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var t={name:X,value:"",literal:!1},G=X[0];G==="-"&&(G=X[1]);G>="0"&&G<="9"&&(G="#");switch(G){case "'":case '"':t.value=X.slice(1,-1);t.literal=!0;break;case "#":t.value=Number(X),t.literal=!0}t.literal||(t.rootProperty=Zs(X),t.structured=ha(X),t.structured&&(t.wildcard=X.slice(-2)==".*",t.wildcard&&(t.name=X.slice(0,-2))));return t};
vyG=function(X,t,G){X=QN(X,G);X===void 0&&(X=t[G]);return X};
a7_=function(X,t,G,y){y={indexSplices:y};N_&&!X._overrideLegacyUndefined&&(t.splices=y);X.notifyPath(G+".splices",y);X.notifyPath(G+".length",t.length);N_&&!X._overrideLegacyUndefined&&(y.indexSplices=[])};
Pq=function(X,t,G,y,w,z){a7_(X,t,G,[{index:y,addedCount:w,removed:z,object:t,type:"splice"}])};
l76=function(X){X=Vhs((X.body?X.body:X).textContent,X.baseURI);var t=document.createElement("style");t.textContent=X;return t};
f7l=function(X){X=X.trim().split(/\s+/);for(var t=[],G=0;G<X.length;G++)t.push.apply(t,_.RY(xsv(X[G])));return t};
xsv=function(X){var t=EA.import(X);if(!t)return console.warn("Could not find style data in module named",X),[];if(t._styles===void 0){X=[];X.push.apply(X,_.RY(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t)));var G=t.querySelector("template");G&&X.push.apply(X,_.RY(MhV(G,t.assetpath)));t._styles=X}return t._styles};
MhV=function(X,t){if(!X._styles){for(var G=[],y=X.content.querySelectorAll("style"),w=0;w<y.length;w++){var z=y[w],B=z.getAttribute("include");B&&G.push.apply(G,_.RY(f7l(B).filter(function(V,b,e){return e.indexOf(V)===b})));
t&&(z.textContent=Vhs(z.textContent,t));G.push(z)}X._styles=G}return X._styles};
XaE=function(X){return(X=EA.import(X))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(X):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(X){var t=[];X=X.querySelectorAll("link[rel=import][type~=css]");for(var G=0;G<X.length;G++){var y=X[G];if(y.import){var w=y.import;if((y=y.hasAttribute("shady-unscoped"))&&!w._unscopedStyle){var z=l76(w);z.setAttribute("shady-unscoped","");w._unscopedStyle=z}else w._style||(w._style=l76(w));t.push(y?w._unscopedStyle:w._style)}}return t};
twG=function(X){X=X.trim().split(/\s+/);for(var t="",G=0;G<X.length;G++)t+=$MV(X[G]);return t};
$MV=function(X){var t=EA.import(X);if(t&&t._cssText===void 0){var G=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t),y=t.querySelector("template");y&&(G+=GCJ(y,t.assetpath));t._cssText=G||null}t||console.warn("Could not find style data in module named",X);return t&&t._cssText||""};
GCJ=function(X,t){var G="";X=MhV(X,t);for(t=0;t<X.length;t++){var y=X[t];y.parentNode&&y.parentNode.removeChild(y);G+=y.textContent}return G};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(X){var t="";X=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(X);for(var G=0;G<X.length;G++)t+=X[G].textContent;return t};
UA=function(X,t){return{index:X,removed:[],addedCount:t}};
waE=function(X,t,G,y){var w=0,z=0,B=0,V=0,b=Math.min(t-w,y-z);if(w==0&&z==0)a:{for(B=0;B<b;B++)if(X[B]!==G[B])break a;B=b}if(t==X.length&&y==G.length){V=X.length;for(var e=G.length,g=0;g<b-B&&yi_(X[--V],G[--e]);)g++;V=g}w+=B;z+=B;t-=V;y-=V;if(t-w==0&&y-z==0)return[];if(w==t){for(t=UA(w,0);z<y;)t.removed.push(G[z++]);return[t]}if(z==y)return[UA(w,t-w)];b=w;B=z;y=y-B+1;V=t-b+1;t=Array(y);for(e=0;e<y;e++)t[e]=Array(V),t[e][0]=e;for(e=0;e<V;e++)t[0][e]=e;for(e=1;e<y;e++)for(g=1;g<V;g++)if(X[b+g-1]===
G[B+e-1])t[e][g]=t[e-1][g-1];else{var F=t[e-1][g]+1,T=t[e][g-1]+1;t[e][g]=F<T?F:T}b=t.length-1;B=t[0].length-1;y=t[b][B];for(X=[];b>0||B>0;)b==0?(X.push(2),B--):B==0?(X.push(3),b--):(V=t[b-1][B-1],e=t[b-1][B],g=t[b][B-1],F=e<g?e<V?e:V:g<V?g:V,F==V?(V==y?X.push(0):(X.push(1),y=V),b--,B--):F==e?(X.push(3),b--,y=e):(X.push(2),B--,y=g));X.reverse();t=void 0;b=[];for(B=0;B<X.length;B++)switch(X[B]){case 0:t&&(b.push(t),t=void 0);w++;z++;break;case 1:t||(t=UA(w,0));t.addedCount++;w++;t.removed.push(G[z]);
z++;break;case 2:t||(t=UA(w,0));t.addedCount++;w++;break;case 3:t||(t=UA(w,0)),t.removed.push(G[z]),z++}t&&b.push(t);return b};
zCh=function(X,t){return waE(X,X.length,t,t.length)};
yi_=function(X,t){return X===t};
olh=function(X){if(X instanceof HVl)return X.value;throw Error("Dd`"+X);};
JiY=function(X,t){for(var G in t)G===null?X.style.removeProperty(G):X.style.setProperty(G,t[G])};
BPE=function(X,t){return(X=window.getComputedStyle(X).getPropertyValue(t))?X.trim():""};
kCl=function(X){requestAnimationFrame(function(){nlf?nlf(X):(VwG||(VwG=new Promise(function(t){bVw=t}),document.readyState==="complete"?bVw():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&bVw()})),VwG.then(function(){X&&X()}))})};
jAE=function(X){dM_=X&&X.shimcssproperties?!1:eCs||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
Y5Y=function(X){if(!(glv.indexOf(X)>-1)&&X!=="touchend"&&Fhw&&TPs&&Ai6)return{passive:!0}};
hCl=function(X){for(var t=sAf?["click"]:glv,G=0,y;G<t.length;G++)y=t[G],X?(DM6.length=0,document.addEventListener(y,S5J,!0)):document.removeEventListener(y,S5J,!0)};
mX=function(X){var t=X.type;return glv.indexOf(t)>-1?t==="mousemove"?(t=X.buttons===void 0?1:X.buttons,X instanceof window.MouseEvent&&!ZVA&&(t=q5f[X.which]||0),!!(t&1)):(X.button===void 0?0:X.button)===0:!1};
CWA=function(X){if(X.type==="click"){if(X.detail===0)return!0;var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;t=t.getBoundingClientRect();var G=X.pageX;X=X.pageY;return!(G>=t.left&&G<=t.right&&X>=t.top&&X<=t.bottom)}return!1};
KhJ=function(X,t,G){X.movefn=t;X.upfn=G;document.addEventListener("mousemove",t);document.addEventListener("mouseup",G)};
RO=function(X){document.removeEventListener("mousemove",X.movefn);document.removeEventListener("mouseup",X.upfn);X.movefn=null;X.upfn=null};
OVl=function(X,t){for(var G=document.elementFromPoint(X,t),y=G;y&&y.shadowRoot&&!window.ShadyDOM;){var w=y;y=y.shadowRoot.elementFromPoint(X,t);if(w===y)break;y&&(G=y)}return G};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X){var t=ucV(X);return t.length>0?t[0]:X.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X){var t=X.type,G=X.currentTarget.__polymerGestures;if(G&&(G=G[t])){if(!X.__polymerGesturesHandled&&(X.__polymerGesturesHandled={},t.slice(0,5)==="touch")){var y=X.changedTouches[0];t==="touchstart"&&X.touches.length===1&&(QAs=y.identifier);if(QAs!==y.identifier)return;Fhw||(t==="touchstart"||t==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X)}y=
X.__polymerGesturesHandled;if(!y.skip){for(var w=0,z;w<iC.length;w++)z=iC[w],G[z.name]&&!y[z.name]&&z.flow&&z.flow.start.indexOf(X.type)>-1&&z.reset&&z.reset();for(w=0;w<iC.length;w++)z=iC[w],G[z.name]&&!y[z.name]&&(y[z.name]=!0,z[t](X))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X){var t=X.changedTouches[0],G=X.type;if(G==="touchstart")Iwl=t.clientX,WhY=t.clientY,cis=!1;else if(G==="touchmove"&&!cis){cis=!0;G="auto";for(var y=ucV(X),w=0,z;w<y.length;w++)if(z=y[w],z.__polymerGesturesTouchAction){G=z.__polymerGesturesTouchAction;break}y=!1;w=Math.abs(Iwl-t.clientX);t=Math.abs(WhY-t.clientY);X.cancelable&&(G==="none"?y=!0:G==="pan-x"?y=t>w:G==="pan-y"&&(y=w>t));y?X.preventDefault():
Ll("track")}};
aO=function(X,t,G){return vq[t]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X,t,G),!0):!1};
lC=function(X,t,G){return vq[t]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X,t,G),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X,t,G){var y=vq[t],w=y.deps,z=y.name,B=X.__polymerGestures;B||(X.__polymerGestures=B={});for(var V=0,b,e;V<w.length;V++)b=w[V],sAf&&glv.indexOf(b)>-1&&b!=="click"||((e=B[b])||(B[b]=e={_count:0}),e._count===0&&X.addEventListener(b,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Y5Y(b)),e[z]=(e[z]||0)+1,e._count=(e._count||0)+1);X.addEventListener(t,G);y.touchAction&&_.x5(X,y.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X,t,G){var y=vq[t],w=y.deps;y=y.name;var z=X.__polymerGestures;if(z)for(var B=0,V,b;B<w.length;B++)V=w[B],(b=z[V])&&b[y]&&(b[y]=(b[y]||1)-1,b._count=(b._count||1)-1,b._count===0&&X.removeEventListener(V,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Y5Y(V)));X.removeEventListener(t,G)};
paG=function(X){iC.push(X);for(var t=0;t<X.emits.length;t++)vq[X.emits[t]]=X};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X){for(var t=0,G;t<iC.length;t++){G=iC[t];for(var y=0,w;y<G.emits.length;y++)if(w=G.emits[y],w===X)return G}return null};
_.x5=function(X,t){Fhw&&X instanceof HTMLElement&&fl.run(function(){X.style.touchAction=t});
X.__polymerGesturesTouchAction=t};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X,t,G){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=G;(0,_.cq)(X).dispatchEvent(t);t.defaultPrevented&&(X=G.preventer||G.sourceEvent)&&X.preventDefault&&X.preventDefault()};
Ll=function(X){X=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X);X.info&&(X.info.prevent=!0)};
M_=function(X,t,G,y){t&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,X,{x:G.clientX,y:G.clientY,sourceEvent:G,preventer:y,prevent:function(w){return Ll(w)}})};
riV=function(X,t,G){if(X.prevent)return!1;if(X.started)return!0;G=Math.abs(X.y-G);return Math.abs(X.x-t)>=5||G>=5};
NPJ=function(X,t,G){if(t){var y=X.moves[X.moves.length-2],w=X.moves[X.moves.length-1],z=w.x-X.x,B=w.y-X.y,V=0;if(y){var b=w.x-y.x;V=w.y-y.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,"track",{state:X.state,x:G.clientX,y:G.clientY,dx:z,dy:B,ddx:b,ddy:V,sourceEvent:G,hover:function(){return OVl(G.clientX,G.clientY)}})}};
ElA=function(X,t,G){var y=Math.abs(t.clientX-X.x),w=Math.abs(t.clientY-X.y),z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G||t);!z||PWf[z.localName]&&z.hasAttribute("disabled")||!(isNaN(y)||isNaN(w)||y<=25&&w<=25||CWA(t))||X.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:G})};
UMh=function(X,t,G,y,w){var z;w&&(z=typeof G==="object"&&G!==null)&&(y=X.__dataTemp[t]);y=y!==G&&(y===y||G===G);z&&y&&(X.__dataTemp[t]=G);return y};
RCs=function(){if(Xm&&!$e){if(!mMA){mMA=!0;var X=document.createElement("style");X.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(X)}return!0}return!1};
Lh_=function(){return iVJ};
vl6=function(X,t){iVJ=X;Object.setPrototypeOf(X,t.prototype);new t;iVJ=null};
awE=function(X,t){for(var G=0;G<t.length;G++){var y=t[G];if(!!X!=!!y.__hideTemplateChildren__)if(y.nodeType===Node.TEXT_NODE)X?(y.__polymerTextContent__=y.textContent,y.textContent=""):y.textContent=y.__polymerTextContent__;else if(y.localName==="slot")if(X)y.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.cq)((0,_.cq)(y).parentNode).replaceChild(y.__polymerReplaced__,y);else{var w=y.__polymerReplaced__;w&&(0,_.cq)((0,_.cq)(w).parentNode).replaceChild(y,w)}else y.style&&(X?(y.__polymerDisplay__=
y.style.display,y.style.display="none"):y.style.display=y.__polymerDisplay__);y.__hideTemplateChildren__=X;y._showHideChildren&&y._showHideChildren(X)}};
lwY=function(X){return(X=X.__dataHost)&&X._methodHost||X};
Mwv=function(X,t,G){var y=G.mutableData?xMs:tL;Gp.mixin&&(y=Gp.mixin(y));var w=function(){return y.apply(this,arguments)||this};
_.S(w,y);w.prototype.__templatizeOptions=G;w.prototype._bindTemplate(X);fw0(w,X,t,G);return w};
ywE=function(X,t,G,y){var w=G.forwardHostProp;if(w&&t.hasHostProps){var z=X.localName=="template",B=t.templatizeTemplateClass;if(!B){if(z){var V=G.mutableData?XHh:$es;B=function(){return V.apply(this,arguments)||this};
_.S(B,V);B=t.templatizeTemplateClass=B}else{var b=X.constructor;B=function(){return b.apply(this,arguments)||this};
_.S(B,b);B=t.templatizeTemplateClass=B}var e=t.hostProps,g;for(g in e)B.prototype._addPropertyEffect("_host_"+g,B.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:t$V(w)}),B.prototype._createNotifyingProperty("_host_"+g);y8&&y&&G2f(t,G,y)}X.__dataProto&&Object.assign(X.__data,X.__dataProto);if(z)vl6(X,B),X.__dataTemp={},X.__dataPending=null,X.__dataOld=null,X._enableProperties();else{Object.setPrototypeOf(X,B.prototype);t=t.hostProps;for(var F in t)F="_host_"+F,F in X&&(t=X[F],delete X[F],X.__data[F]=
t)}}};
t$V=function(X){return function(t,G,y){X.call(t.__templatizeOwner,G.substring(6),y[G])}};
fw0=function(X,t,G,y){var w=G.hostProps||{},z;for(z in y.instanceProps){delete w[z];var B=y.notifyInstanceProp;B&&X.prototype._addPropertyEffect(z,X.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:wHV(B)})}if(y.forwardHostProp&&t.__dataHost)for(var V in w)G.hasHostProps||(G.hasHostProps=!0),X.prototype._addPropertyEffect(V,X.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:z9v()})};
wHV=function(X){return function(t,G,y){X.call(t.__templatizeOwner,t,G,y[G])}};
z9v=function(){return function(X,t,G){X.__dataHost._setPendingPropertyOrPath("_host_"+t,G[t],!0,!0)}};
Gp=function(X,t,G){if(wu&&!lwY(X))throw Error("Jd");G=G||{};if(X.__templatizeOwner)throw Error("Kd");X.__templatizeOwner=t;var y=(t?t.constructor:tL)._parseTemplate(X),w=y.templatizeInstanceClass;w||(w=Mwv(X,y,G),y.templatizeInstanceClass=w);var z=lwY(X);ywE(X,y,G,z);G=function(){return w.apply(this,arguments)||this};
_.S(G,w);G.prototype._methodHost=z;G.prototype.__dataHost=X;G.prototype.__templatizeOwner=t;G.prototype.__hostProps=y.hostProps;return G};
G2f=function(X,t,G){G=G.constructor._properties;X=X.propertyEffects;t=t.instanceProps;for(var y in X)if(!(G[y]||t&&t[y]))for(var w=X[y],z=0;z<w.length;z++){var B=w[z].info.part;if(!B.signature||!B.signature.static){console.warn("Property '"+y+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
H9V=function(X,t){for(var G;t;)if(G=t.__dataHost?t:t.__templatizeInstance)if(G.__dataHost!=X)t=G.__dataHost;else return G;else t=(0,_.cq)(t).parentNode;return null};
zp=function(X){return X.localName==="slot"};
oEA=function(){for(var X=Hs.prototype,t="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),G={},y=0;y<t.length;G={method$jscomp$33:void 0},y++)G.method$jscomp$33=t[y],X[G.method$jscomp$33]=function(w){return function(){return this.node[w.method$jscomp$33].apply(this.node,arguments)}}(G)};
Jww=function(X,t){for(var G={},y=0;y<t.length;G={name$jscomp$421:void 0},y++)G.name$jscomp$421=t[y],Object.defineProperty(X,G.name$jscomp$421,{get:function(w){return function(){return this.node[w.name$jscomp$421]}}(G),
configurable:!0})};
B1J=function(){for(var X=Hs.prototype,t=["textContent","innerHTML","className"],G={},y=0;y<t.length;G={name$jscomp$422:void 0},y++)G.name$jscomp$422=t[y],Object.defineProperty(X,G.name$jscomp$422,{get:function(w){return function(){return this.node[w.name$jscomp$422]}}(G),
set:function(w){return function(z){this.node[w.name$jscomp$422]=z}}(G),
configurable:!0})};
nEh=function(){o4=document.documentElement.getAttribute("dir");o4=document.documentElement.getAttribute("dir");for(var X=0;X<JL.length;X++){var t=JL[X];t.__autoDirOptOut||t.setAttribute("dir",o4)}};
del=function(){Bs=!0;requestAnimationFrame(function(){Bs=!1;V$0(b9J);setTimeout(function(){for(var X=0,t=nE.length;X<t;X++)k2h(nE.shift())})})};
V$0=function(X){for(;X.length;)k2h(X.shift())};
k2h=function(X){var t=X[0],G=X[1];X=X[2];try{G.apply(t,X)}catch(y){setTimeout(function(){throw y;})}};
_.e9_=function(X,t,G){Bs||del();b9J.push([X,t,G])};
_.V8=function(X,t,G){Bs||del();nE.push([X,t,G])};
FZf=function(X,t){t=t===void 0?!1:t;if(!jQV||!gEh||!jQV.handlesDynamicScoping)return null;var G=gEh.ScopingShim;if(!G)return null;var y=G.scopeForNode(X),w=(0,_.cq)(X).getRootNode(),z=function(B){if((0,_.cq)(B).getRootNode()===w){var V=Array.from(jQV.nativeMethods.querySelectorAll.call(B,"*"));V.push(B);for(B=0;B<V.length;B++){var b=V[B];if((0,_.cq)(b).getRootNode()===w){var e=G.currentScopeForNode(b);e!==y&&(e!==""&&G.unscopeNode(b,e),G.scopeNode(b,y))}}}};
z(X);return t?(t=new MutationObserver(function(B){for(var V=0;V<B.length;V++)for(var b=B[V],e=0;e<b.addedNodes.length;e++){var g=b.addedNodes[e];g.nodeType===Node.ELEMENT_NODE&&z(g)}}),t.observe(X,{childList:!0,
subtree:!0}),t):null};
T1Y=function(){document.body.removeAttribute("unresolved")};
Sxw=function(X){var t=X=X.replace(Aws,"").replace(Yx6,""),G=new sQG;G.start=0;G.end=t.length;for(var y=G,w=0,z=t.length;w<z;w++)if(t[w]==="{"){y.rules||(y.rules=[]);var B=y,V=B.rules[B.rules.length-1]||null;y=new sQG;y.start=w+1;y.parent=B;y.previous=V;B.rules.push(y)}else t[w]==="}"&&(y.end=w+1,y=y.parent||G);return DeV(G,X)};
DeV=function(X,t){var G=t.substring(X.start,X.end-1);X.parsedCssText=X.cssText=G.trim();X.parent&&(G=t.substring(X.previous?X.previous.end:X.parent.start,X.start-1),G=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(G),G=G.replace(h9J," "),G=G.substring(G.lastIndexOf(";")+1),G=X.parsedSelector=X.selector=G.trim(),X.atRule=G.indexOf("@")===0,X.atRule?G.indexOf("@media")===0?X.type=4:G.match(Z9E)&&(X.type=7,X.keyframesName=X.selector.split(h9J).pop()):G.indexOf("--")===
0?X.type=1E3:X.type=1);if(G=X.rules)for(var y=0,w=G.length,z=void 0;y<w&&(z=G[y]);y++)DeV(z,t);return X};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(X){return X.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var t=arguments[1],G=6-t.length;G--;)t="0"+t;return"\\"+t})};
qxv=function(X,t,G){G=G===void 0?"":G;var y="";if(X.cssText||X.rules){var w=X.rules;if(w&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(w))for(var z=0,B=w.length,V=void 0;z<B&&(V=w[z]);z++)y=qxv(V,t,y);else t?t=X.cssText:(t=X.cssText,t=t.replace(CzY,"").replace(KZh,""),t=t.replace(O90,"").replace(ubA,"")),(y=t.trim())&&(y="  "+y+"\n")}y&&(X.selector&&(G+=X.selector+" {\n"),G+=y,X.selector&&(G+="}\n\n"));return G};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(X){X=X[0];return!!X&&!!X.selector&&X.selector.indexOf("--")===0};
I_h=function(X){if(X=QQA[X])X._applyShimCurrentVersion=X._applyShimCurrentVersion||0,X._applyShimValidatingVersion=X._applyShimValidatingVersion||0,X._applyShimNextVersion=(X._applyShimNextVersion||0)+1};
WZG=function(X){return X._applyShimCurrentVersion===X._applyShimNextVersion};
pH6=function(X){X._applyShimValidatingVersion=X._applyShimNextVersion;X._validating||(X._validating=!0,cwY.then(function(){X._applyShimCurrentVersion=X._applyShimNextVersion;X._validating=!1}))};
N1V=function(X){if(!X)return"";typeof X==="string"&&(X=Sxw(X));return qxv(X,rwV)};
PzE=function(X){!X.__cssRules&&X.textContent&&(X.__cssRules=Sxw(X.textContent));return X.__cssRules||null};
Ue0=function(X,t,G,y){if(X){var w=!1,z=X.type;if(y&&z===4){var B=X.selector.match(EEY);B&&(window.matchMedia(B[1]).matches||(w=!0))}z===1?t(X):G&&z===7?G(X):z===1E3&&(w=!0);if((X=X.rules)&&!w)for(w=0,z=X.length,B=void 0;w<z&&(B=X[w]);w++)Ue0(B,t,G,y)}};
mes=function(X,t){var G=X.indexOf("var(");if(G===-1)return t(X,"","","");a:{var y=0;var w=G+3;for(var z=X.length;w<z;w++)if(X[w]==="(")y++;else if(X[w]===")"&&--y===0)break a;w=-1}y=X.substring(G+4,w);G=X.substring(0,G);X=mes(X.substring(w+1),t);z=y.indexOf(",");if(z===-1)return t(G,y.trim(),"",X);w=y.substring(0,z).trim();y=y.substring(z+1).trim();return t(G,w,y,X)};
R9_=function(X){if(bw!==void 0)return bw;if(X.__cssBuild===void 0){var t=X.getAttribute("css-build");if(t)X.__cssBuild=t;else{a:{t=X.localName==="template"?X.content.firstChild:X.firstChild;if(t instanceof Comment&&(t=t.textContent.trim().split(":"),t[0]==="css-build")){t=t[1];break a}t=""}if(t!==""){var G=X.localName==="template"?X.content.firstChild:X.firstChild;G.parentNode.removeChild(G)}X.__cssBuild=t}}return X.__cssBuild||""};
LZV=function(X,t,G,y){for(var w=t._noAccessors,z=Object.getOwnPropertyNames(t),B=0;B<z.length;B++){var V=z[B];if(!(V in y))if(w)X[V]=t[V];else{var b=Object.getOwnPropertyDescriptor(t,V);b&&(b.configurable=!0,Object.defineProperty(X,V,b))}}for(var e in i9l)t[e]&&(G[e]=G[e]||[],G[e].push(t[e]))};
vEv=function(X,t,G){t=t||[];for(var y=X.length-1;y>=0;y--){var w=X[y];w?Array.isArray(w)?vEv(w,t):t.indexOf(w)<0&&(!G||G.indexOf(w)<0)&&t.unshift(w):console.warn("behavior is null, check for missing or 404 import")}return t};
a_0=function(X,t){for(var G in t){var y=X[G],w=t[G];X[G]=!("value"in w)&&y&&"value"in y?Object.assign({value:y.value},w):w}};
f_l=function(X,t,G){var y={},w=function(){return t.apply(this,arguments)||this};
_.S(w,t);w._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(B)for(var b=0,e;b<B.length;b++)e=B[b],e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);X.properties&&this.createProperties(X.properties);X.observers&&this.createObservers(X.observers,X.properties);this._prepareTemplate()}else t._finalizeClass.call(this)};
w.prototype.created=function(){t.prototype.created.call(this);var b=y.created;if(b)for(var e=0;e<b.length;e++)b[e].call(this)};
w.prototype._registered=function(){var b=w.prototype;if(!b.hasOwnProperty("__hasRegisterFinished")){b.__hasRegisterFinished=!0;t.prototype._registered.call(this);Xm&&V(b);b=Object.getPrototypeOf(this);var e=y.beforeRegister;if(e)for(var g=0;g<e.length;g++)e[g].call(b);if(e=y.registered)for(g=0;g<e.length;g++)e[g].call(b)}};
w.prototype._applyListeners=function(){t.prototype._applyListeners.call(this);var b=y.listeners;if(b)for(var e=0;e<b.length;e++){var g=b[e];if(g)for(var F in g)this._addMethodEventListenerToNode(this,F,g[F])}};
w.prototype._ensureAttributes=function(){var b=y.hostAttributes;if(b)for(var e=b.length-1;e>=0;e--){var g=b[e],F;for(F in g)this._ensureAttribute(F,g[F])}t.prototype._ensureAttributes.call(this)};
w.prototype.ready=function(){t.prototype.ready.call(this);var b=y.ready;if(b)for(var e=0;e<b.length;e++)b[e].call(this)};
w.prototype.attached=function(){t.prototype.attached.call(this);var b=y.attached;if(b)for(var e=0;e<b.length;e++)b[e].call(this)};
w.prototype.detached=function(){t.prototype.detached.call(this);var b=y.detached;if(b)for(var e=0;e<b.length;e++)b[e].call(this)};
w.prototype.attributeChanged=function(b,e,g){t.prototype.attributeChanged.call(this);var F=y.attributeChanged;if(F)for(var T=0;T<F.length;T++)F[T].call(this,b,e,g)};
_.ke.Object.defineProperties(w,{properties:{configurable:!0,enumerable:!0,get:function(){var b={};if(B)for(var e=0;e<B.length;e++)a_0(b,B[e].properties);a_0(b,X.properties);return b}},
observers:{configurable:!0,enumerable:!0,get:function(){var b=[];if(B)for(var e=0,g;e<B.length;e++)g=B[e],g.observers&&(b=b.concat(g.observers));X.observers&&(b=b.concat(X.observers));return b}}});
if(G){Array.isArray(G)||(G=[G]);var z=t.prototype.behaviors;var B=vEv(G,null,z);w.prototype.behaviors=z?z.concat(G):B}var V=function(b){if(B)for(var e=B,g=0;g<e.length;g++)LZV(b,e[g],y,l_Y);LZV(b,X,y,xe6)};
Xm||V(w.prototype);w.generatedFrom=X;return w};
tUv=function(X){var t=typeof X!=="string"?X:{is:X,notifyObserversOnUndefined:!0};t.fastInit===void 0&&(t.fastInit=!0);return function(G){if(!t.disableInheritanceCheck&&Object.getPrototypeOf(G.prototype).constructor!==_.du)throw Error("Od");var y=G.prototype;y.is=t.is;Hys(y,"created",function(){this.hostElement=this;this.polymerController=this});
M$Y(y,G,t.fastInit);t.notifyObserversOnUndefined&&(y._overrideLegacyUndefined=!0);if(XIY)for(var w=_.J(Object.getOwnPropertyNames(y)),z=w.next();!z.done;z=w.next()){z=z.value;var B=Object.getOwnPropertyDescriptor(y,z);B.enumerable===!1&&(B.enumerable=!0,Object.defineProperty(y,z,B))}if("template"in G)var V=function(){return G.template};
else t.template!==void 0&&(V=t.template);if(V!==void 0){var b;Object.defineProperty(y,"_template",{get:function(){b===void 0&&(b=V());return b},
set:function(e){b=e},
configurable:!0,enumerable:!0})}Polymer(y);G[$FJ]=y}};
G1E=function(X){X=X===void 0?{}:X;X.fastInit===void 0&&(X.fastInit=!0);return function(t){if(!X.disableInheritanceCheck&&Object.getPrototypeOf(t.prototype).constructor!==eb)throw Error("Pd");M$Y(t.prototype,t,X.fastInit)}};
M$Y=function(X,t,G){G=G===void 0?!1:G;ylA(t);G?Hys(X,"created",function(){this.disableEnforceFastDefaultValuesCheck||wIf(t,this)}):Hys(X,"ready",function(){for(var y={},w=_.J(oyv(this.behaviors)),z=w.next();!z.done;z=w.next())z=z.value,z.properties&&Object.assign(y,zsf(this,z.properties));
Object.assign(y,zsf(this,this.properties));wIf(t,this);w=_.J(Object.keys(y));for(z=w.next();!z.done;z=w.next())z=z.value,this[z]=y[z]})};
wIf=function(X,t){if(XIY){X=new X;for(var G=_.J(Object.getOwnPropertyNames(X)),y=G.next();!y.done;y=G.next())y=y.value,t[y]=X[y];for(G=t;G&&G!==Object.prototype;G=Object.getPrototypeOf(G)){y=_.J(Object.getOwnPropertyNames(G));for(var w=y.next();!w.done;w=y.next())w=w.value,X.hasOwnProperty(w)||Object.defineProperty(X,w,HNY(t,w))}}else X.apply(t)};
HNY=function(X,t){return{get:function(){var G=X[t];return G instanceof Function?G.bind(X):G},
set:function(G){X[t]=G}}};
zsf=function(X,t){if(!t)return{};for(var G={},y=_.J(Object.keys(t)),w=y.next();!w.done;w=y.next())if(w=w.value,!t[w].readOnly){var z=X[w];z!==void 0&&(G[w]=z)}return G};
ylA=function(X){var t=new X;X=X.prototype.properties||{};for(var G=_.J(Object.keys(X)),y=G.next();!y.done;y=G.next())if(y=y.value,t.hasOwnProperty(y)){var w=X[y];typeof w==="function"&&(X[y]=w={type:w});t[y]!=null&&w.type===Object&&(w.type=ool(t[y].constructor))}};
ool=function(X){for(var t=_.J(JlV),G=t.next();!G.done;G=t.next())if(G=G.value,X===G)return G;return Object};
Baw=function(X){return function(t,G){t.behaviors=t.behaviors||[];t.behaviors.push(X||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",t,G).prototype:void 0));Object.defineProperty(t,G,{get:function(){return this},
enumerable:!0,configurable:!0})}};
no6=function(X){X=X===void 0?{}:X;return function(t,G){t.properties=t.properties||{};X.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?X.type=ool(Reflect.getMetadata("design:type",t,G)):X.type=String);var y=X,w=t.properties[G];t.properties[G]=w?Object.assign({},w,y):y}};
VUE=function(X){return function(t,G){t.listeners=t.listeners||{};t.listeners[X]=G}};
bNs=function(){var X=_.f1.apply(0,arguments);if(X.length===0)throw Error("Qd");return function(t,G){t.observers=t.observers||[];t.observers.push(G+"("+X.join(",")+")")}};
k1A=function(){var X=_.f1.apply(0,arguments);return function(t,G,y){var w=Object.getOwnPropertyDescriptor(t,G).get,z="__compute__"+G;Object.defineProperty(t,z,{value:w,enumerable:!0});t.properties=t.properties||{};w=t.properties[G];w||(w={},t.properties[G]=w);w.computed=z+"("+X.join(",")+")";y.get=void 0}};
_.jb=function(X,t,G){_.po.call(this);this.JSC$11190_id_=null;this.usingListeners_=!1;this.JSC$11190_listener_=X;this.handler_=G;this.JSC$11190_win_=t||window;this.callback_=(0,_.rT)(this.JSC$11192_doAction_,this)};
gu=function(X){this.range_=X};
Fm=function(X){this.range_=X};
Ye=function(X,t,G){_.po.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=X;this.scrollTimer_=new _.Tp(50);this.JSC$11269_eventHandler_=new _.AL(this);this.scrollDelta_=new _.LD;this.containerIsActuallyContent_=X.tagName==="BODY"||X.tagName==="HTML";this.containerBounds_=dF0(X);this.containerIsActuallyContent_&&(X=_.W1(),this.containerBounds_.height=X.height,this.containerBounds_.width=X.width);this.margin_=t||0;if(t){if(t=this.containerBounds_.clone(),X=this.margin_){var y=
Math.min(X,t.height*.25);t.top+=y;t.height-=2*y;X=Math.min(X,t.width*.25);t.left+=X;t.width-=2*X}}else t=this.containerBounds_;this.scrollBounds_=t;G||this.JSC$11269_eventHandler_.listen(_.aH(this.containerNode_),"mousemove",this.JSC$11271_onMouseMove);this.JSC$11269_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11271_onTick_)};
_.ss=function(X){this.mechanism=X};
DO=function(X,t){this.JSC$11367_key_=X;this.JSC$11367_value_=t};
gov=function(X){if(X>=55296&&X<=57343||X>1114111)return"\ufffd";X in jmv&&(X=jmv[X]);var t="";X>65535&&(X-=65536,t+=String.fromCharCode(X>>>10&1023|55296),X=56320|X&1023);return t+=String.fromCharCode(X)};
FPY=function(X,t){return X<t?1:-1};
AlY=function(){return function(X){return X.charAt(1)==="#"?X.charAt(2)==="X"||X.charAt(2)==="x"?gov(parseInt(X.substr(3),16)):gov(parseInt(X.substr(2),10)):Tal[X.slice(1,-1)]}};
DFl=function(X){return X.slice(1,X.length-1).trim().replace(Y1s,function(t){return sml[t]||" "})};
Sb=function(X){return X===32||X===9};
hL=function(X,t){return t<X.length?X.charCodeAt(t):-1};
S1G=function(X){for(;X;){if(X._lastLineBlank)return!0;var t=X.type;if(t==="list"||t==="item")X=X._lastChild;else break}return!1};
ZO=function(X){if(hsh.test(X)){var t=1,G=0,y=0;for(X[G]=="|"&&G++;G<X.length;){switch(X[G]){case "|":y=1;break;case " ":break;case "\t":break;default:y&&(y=0,t++)}G++}return ZNs.test(X)?-t:t}return 0};
q1s=function(X){return X=="table"||X=="row"||X=="cell"};
CMl=function(){return new q8("document",[[1,1],[0,0]])};
KPh=function(){};
CE=function(){var X={safe:!1};X=X||{};X.softbreak=X.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=X};
WPV=function(X,t){var G="";if(X)if(X=X.toLowerCase(),X===" "||ONs.test(X))G="space";else if(uyw.test(X))G="esc";else if(X.length==1){if(!t||QmG.test(X))G=X}else G=IFh.test(X)?X.replace("arrow",""):X=="multiply"?"*":X;return G};
NaV=function(X,t){var G=X.hasModifiers;if(t.key)G=WPV(t.key,G);else if(t.detail&&t.detail.key)G=WPV(t.detail.key,G);else{G=t.keyIdentifier;var y="";G&&(G in cl0?y=cl0[G]:pIJ.test(G)?(G=parseInt(G.replace("U+","0x"),16),y=String.fromCharCode(G).toLowerCase()):y=G.toLowerCase());(G=y)||(G=t.keyCode,y="",Number(G)&&(G>=65&&G<=90?y=String.fromCharCode(32+G):G>=112&&G<=123?y="f"+(G-112+1):G>=48&&G<=57?y=String(G-48):G>=96&&G<=105?y=String(G-96):y=rlJ[G]),G=y);G=G||""}return G===X.key&&(!X.hasModifiers||
!!t.shiftKey===!!X.shiftKey&&!!t.ctrlKey===!!X.ctrlKey&&!!t.altKey===!!X.altKey&&!!t.metaKey===!!X.metaKey)};
Eow=function(X){return X.length===1?{combo:X,key:X,event:"keydown"}:X.split("+").reduce(function(t,G){var y=G.split(":");G=y[0];y=y[1];G in PM0?(t[PM0[G]]=!0,t.hasModifiers=!0):(t.key=G,t.event=y||"keydown");return t},{combo:X.split(":").shift()})};
UFv=function(X){return X.trim().split(" ").map(function(t){return Eow(t)})};
mF6=function(X,t){if(X&&X.fn){var G=X.fn;X.fn=function(){try{G.apply(this,arguments)}catch(y){if(y instanceof KE)console.warn("Argument '"+y.arg+"'"+(t?" for method '"+t+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw y;}}}return X};
Rsl=function(){var X=_.f1.apply(0,arguments);return X.length===0?function(t){return t}:X.length===1?X[0]:X.reduce(function(t,G){return function(){return t(G.apply(null,_.RY(_.f1.apply(0,arguments))))}})};
iNl=function(){var X=_.f1.apply(0,arguments);return function(t){return function(G,y){G=t(G,y);var w=function(){throw Error("Ae");},z={getState:G.getState,
dispatch:function(B){return w.apply(null,[B].concat(_.RY(_.f1.apply(1,arguments))))}};
y=X.map(function(B){return B(z)});
w=Rsl.apply(null,_.RY(y))(G.dispatch);return Object.assign({},G,{dispatch:w})}}};
aFV=function(X){Object.keys(X).forEach(function(t){var G=X[t];if(typeof G(void 0,{type:LPY})==="undefined")throw Error("Be`"+t);if(typeof G(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+vo0()})==="undefined")throw Error("Ce`"+t+"`"+LPY);})};
Os=function(X){for(var t=Object.keys(X),G={},y=0;y<t.length;y++){var w=t[y];typeof X[w]==="function"&&(G[w]=X[w])}var z=Object.keys(G);try{aFV(G)}catch(V){var B=V}return function(V,b){V=V===void 0?{}:V;if(B)throw B;for(var e=!1,g={},F=0;F<z.length;F++){var T=z[F],D=V[T],h=(0,G[T])(D,b);if(typeof h==="undefined")throw V=b&&b.type,Error("De`"+(V?'"'+String(V)+'"':"(unknown type)")+"`"+T);g[T]=h;e=e||h!==D}return(e=e||z.length!==Object.keys(V).length)?g:V}};
lF0=function(X,t,G){function y(){if(g)throw Error("Ee");return V}
function w(D){if(typeof D!=="function")throw Error("Fe`"+typeof D);if(g)throw Error("Ge");var h=!0;e===b&&(e=b.slice());e.push(D);return function(){if(h){if(g)throw Error("He");h=!1;e===b&&(e=b.slice());var u=e.indexOf(D);e.splice(u,1);b=null}}}
function z(D){if(typeof D!=="object"||D===null)var h=!1;else{for(h=D;Object.getPrototypeOf(h)!==null;)h=Object.getPrototypeOf(h);h=Object.getPrototypeOf(D)===h}if(!h)throw Error("Ie`"+typeof D);if(typeof D.type==="undefined")throw Error("Je");if(g)throw Error("Ke");try{g=!0,V=B(V,D)}finally{g=!1}h=b=e;for(var u=0;u<h.length;u++)(0,h[u])();return D}
if(typeof t==="function"&&typeof G==="function"||typeof G==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof t==="function"&&typeof G==="undefined"&&(G=t,t=void 0);if(typeof G!=="undefined"){if(typeof G!=="function")throw Error("Me`"+typeof G);return G(lF0)(X,t)}if(typeof X!=="function")throw Error("Ne`"+typeof X);var B=X,V=t,b=[],e=b,g=!1;z({type:LPY});var F={},T=(F.dispatch=z,F.subscribe=w,F.getState=y,F.replaceReducer=function(D){if(typeof D!=="function")throw Error("Oe`"+
typeof D);B=D;z({type:xFl});return T},F[fFw]=function(){var D={};
return D.subscribe=function(h){function u(){h.next&&h.next(y())}
if(typeof h!=="object"||h===null)throw new TypeError("Pe`"+typeof h);u();return{unsubscribe:w(u)}},D[fFw]=function(){return this},D},F);
return T};
MUw=function(X){function t(){w&&(w=!1,X());z&&y()}
function G(){requestAnimationFrame(t)}
function y(){var V=Date.now();if(w){if(V-B<2)return;z=!0}else w=!0,z=!1,setTimeout(G,20);B=V}
var w=!1,z=!1,B=0;return y};
uw=function(X){return typeof X==="number"?X:parseFloat(X)||0};
X6G=function(X){return _.f1.apply(1,arguments).reduce(function(t,G){return t+uw(X["border-"+G+"-width"])},0)};
_.Z=function(X,t){t=yb(tI(t));X.innerHTML=t};
G$0=function(X){var t=$o_;t||(t=toY(),t=$o_=_.RH.transpose(t));t=t[X];return typeof t==="string"?t:_.Q8(X)};
yyl=function(X){X=String(X).toLowerCase();var t=toY()[X];return typeof t==="string"?t:_.I4(X)};
w6_=function(X){X=X.toLowerCase();X=toY()[X];return typeof X==="string"?X:null};
toY=function(){if(!zHA){for(var X=Object.assign({},HUA),t=_.J(o90),G=t.next();!G.done;G=t.next())G=G.value,X[G.toLowerCase()]=G;zHA=X}return zHA};
n9h=function(X,t){var G=window.customElements;return G&&G.get(X)||Jyw[X]===!0?2:t.name==="HTMLUnknownElement"?1:t.name==="HTMLElement"&&BYw.test(X)?3:0};
k$V=function(X,t){switch(t){case "innerHTML":return VoE(X)===1?2:null;case "textContent":return X=VoE(X),X===1||X===6?1:null;default:var G,y;return(y=(G=bUs[X.localName])==null?void 0:G[t])!=null?y:null}};
VoE=function(X){var t=X.localName,G=n9h(t,X.constructor);switch(G){case 0:case 1:return doV(t,X);case 3:case 2:return 1;default:_.zr(G,"got an unknown element classification")}};
doV=function(X,t){var G=Object.hasOwnProperty.call(eHv,X)?eHv[X]:null;return G!==null?G:Object.hasOwnProperty.call(j8J,X)&&t instanceof SVGElement?j8J[X]:null};
g9A=function(X,t){return t};
TYA=function(X){return(X=X.split(F9s,2))?{url:X[0],metadata:X[1]}:null};
YHw=function(X){var t=String(X.url).replace(AyY,encodeURIComponent);if(X=X.metadata){AyY.lastIndex=0;if(AyY.test(X))return null;t+=" "+X}return t};
hHE=function(X){function t(e){var g=e.localName;if(!e.getAttribute("is")&&n9h(g,e.constructor)===2){var F;return(F=b)!=null?F:b=document.createElement("polyresinuncustomized")}(e=V[g])||(e=V[g]=document.createElement(g));return e}
var G=X.reportHandler||void 0,y=X.safeTypesBridge||s86,w=/^$/;if(X=X.allowedIdentifierPrefixes){X=_.J(X);for(var z=X.next();!z.done;z=X.next())w=new RegExp(w.source+"|^"+_.DoJ(z.value))}G&&G(!1,"initResin",null);var B=SHw(w,y,G),V={},b=null;return function(e,g,F){var T=e.nodeType;if(T!==Node.ELEMENT_NODE){if(T===Node.TEXT_NODE){g=e.parentElement;F=!g;if(g&&g.nodeType===Node.ELEMENT_NODE){T=g.localName;var D=n9h(T,g.constructor);switch(D){case 0:case 1:g=doV(T,g);F=g===1||g===6;break;case 3:case 2:F=
!0;break;default:_.zr(D,"got an unknown element classification")}}if(F)return function(c){return""+y(c,"STRING",c)}}return function(c){if(!c&&c!==document.all)return c;
G&&G(!0,"Failed to sanitize "+(e.parentElement&&e.parentElement.nodeName)+" #text node to value "+c,e.parentElement);return Ws}}var h=e.localName;
T=t(e);var u=null;switch(F){case "attribute":if(yyl(g)in T)break;return function(c){return c};
case "property":if(g in T){u=k$V(T,g);break}if((D=w6_(g))&&D in T)break;return function(c){return c};
default:_.zr(F,"got an unknown resin type, expected either 'property' or 'attribute'")}var W=F==="attribute"?g.toLowerCase():G$0(g);u||(u=ihV(h,W,function(c){var P=e.getAttribute(c);return!P||/[\[\{]/.test(c)?null:P}));
return function(c){var P=cs,l=null;if(!c&&c!==document.all)return c;if(u!=null){var R=B[u],L=R.safeType;l=R.safeReplacement;L&&(P=y(c,L,cs));P===cs&&(R.filterString?(P=String(y(c,"STRING",c)),P=R.filterString(h,W,P)):R.filterRaw&&(P=R.filterRaw(h,W,c,e)),P===l&&(P=cs))}P===cs&&(P=l||Ws,G&&G(!0,"Failed to sanitize attribute of <"+h+">: <"+h+" "+W+'="'+c+'">',e));return P}}};
SHw=function(X,t,G){return[,{filterRaw:function(y,w,z){return z},
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:ZU6,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:ZU6,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Ws,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:qHf,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(y,w,z){z=
String(z).toLowerCase();return aUG(y,w,z)?z:Ws},
safeReplacement:Ws,safeType:void 0},,{filterRaw:void 0,filterString:function(y,w,z){return X.test(z)?z:Ws},
safeReplacement:Ws,safeType:"CONSTANT"},{filterRaw:function(y,w,z,B){if(typeof z==="string")var V=(V=z.match(CiV))?V.map(TYA).filter(Boolean):[];else if(Array.isArray(z))V=z;else return ZU6;var b=V;V=[];var e=[],g={};if(Array.isArray(b))for(var F=0,T=b.length;F<T;++F){var D=b[F],h=D&&D.url;if(h){var u=t(h,"URL",g);if(u){var W=u!==g;(W?V:e).push({url:W?u:h,metadata:D.metadata})}}}else e.push(b);b=e.length?JSON.stringify(e):null;e=cs;if(V.length){if(!Array.isArray(V))throw Error();e=V.map(YHw).filter(Boolean).join(" , ")||
cs}b&&G&&G(!0,"Failed to sanitize attribute value of <"+y+">: <"+y+" "+w+'="'+z+'">: '+b,B);return e===cs?ZU6:e},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
K96=function(X){var t=hHE(X);return function(G,y,w,z){return z||z===document.all?t(G,y,w)(z):z}};
pE=function(X,t){function G(){function w(V,b,e){for(b=Reflect.getMetadata("parameters",V)||[];b.length<=e;)b.push(null);b[e]=b[e]||[];b[e].push(B);Reflect.defineMetadata(b,V);return V}
var z=_.f1.apply(0,arguments);if(this instanceof G)return y.apply(this,z),this;var B=new (Function.prototype.bind.apply(G,[null].concat(_.RY(z))));w.annotation=B;return w}
var y=OUv(t);G.prototype.toString=function(){return"@"+X};
return G.annotationCls=G};
OUv=function(X){return function(){var t=_.f1.apply(0,arguments),G=this;X.forEach(function(y,w){w=t[w];if(Array.isArray(y))G[y[0]]=w&&w!==void 0?w:y[1];else for(var z in y)G[z]=w&&w[z]!==void 0?w[z]:y[z]})}};
uA_=function(X){return X!==void 0&&X!==null};
ru=function(X){if(typeof X==="string")return X;if(X===void 0||X===null)return""+X;if(X.overriddenName)return X.overriddenName;if(X.name)return X.name;X=X.toString();var t=X.indexOf("\n");return t===-1?X:X.substring(0,t)};
Q8l=function(X){X.__forward_ref__=Q8l;X.toString=function(){return ru(this())};
return X};
N8=function(X){return typeof X==="function"&&X.hasOwnProperty("__forward_ref__")&&X.__forward_ref__===Q8l?X():X};
IaJ=function(X){return X?X.map(function(t){return new (Function.prototype.bind.apply(t.type.annotationCls,[null].concat(_.RY(t.args?t.args:[]))))}):[]};
W9Y=function(X){for(var t=[],G=0;G<X.length;++G){if(t.indexOf(X[G])>-1){t.push(X[G]);break}t.push(X[G])}return t};
cyY=function(X){return X.length>1?" ("+W9Y(X.slice().reverse()).map(function(t){return ru(t.token)}).join(" -> ")+")":""};
ryV=function(X,t,G,y){if(y){var w=Error("We``"+(y instanceof Error?y.message:y));w.ngOriginalError=y}else w=Error();w.addKey=p6G;w.keys=[t];w.injectors=[X];w.constructResolvingMessage=G;w.message=w.constructResolvingMessage();w.ngOriginalError=y;return w};
p6G=function(X,t){this.injectors.push(X);this.keys.push(t);this.message=this.constructResolvingMessage()};
NYJ=function(X,t){return ryV(X,t,function(){return"No provider for "+ru(this.keys[0].token)+"!"+cyY(this.keys)})};
Pif=function(X,t){return ryV(X,t,function(){return"Cannot instantiate cyclic dependency!"+cyY(this.keys)})};
E9V=function(X,t,G){return ryV(X,G,function(){var y=ru(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+y+"!"+cyY(this.keys)+"."},t)};
Uow=function(X,t){for(var G=[],y=0,w=t.length;y<w;y++){var z=t[y];z&&z.length!=0?G.push(z.map(ru).join(" ")):G.push("?")}return Error("$e`"+ru(X)+"`"+G.join(", ")+"`"+ru(X))};
laE=function(X){var t=void 0,G=void 0;if(X&&X.useClass!==void 0){t=X.useClass;var y=N8(X.useClass);var w=moV.factory(y);y=RHA(y)}else X&&X.useExisting!==void 0?(w=function(z){return z},y=[iU_(Ps.get(N8(X.useExisting)))]):X&&X.useFactory!==void 0?(w=X.useFactory,y=L9l(X.useFactory,X.deps)):(G=X.useValue,w=function(){return X.useValue},y=v9J);
return new aal(w,y,t,G)};
faA=function(X){return new xoE(Ps.get(N8(X.provide)),[laE(X)],X.multi)};
Xe0=function(X){X=MoG(X,[]).map(faA);for(var t=new Map,G=0;G<X.length;G++){var y=X[G],w=t.get(y.key.id);if(w){if(y.multiProvider!==w.multiProvider)throw Error("bf`"+w+"`"+y);if(y.multiProvider)for(var z=0;z<y.resolvedFactories.length;z++)w.resolvedFactories.push(y.resolvedFactories[z]);else t.set(y.key.id,y)}else w=void 0,y.multiProvider?w=new xoE(y.key,y.resolvedFactories.slice(),y.multiProvider):w=y,t.set(y.key.id,w)}return Array.from(t.values())};
MoG=function(X,t){X.forEach(function(G){if(G instanceof $gV)t.push({provide:G,useClass:G});else if(G&&typeof G=="object"&&G.provide!==void 0)t.push(G);else if(G instanceof Array)MoG(G,t);else throw Error("Ze`"+G);});
return t};
L9l=function(X,t){if(t){var G=t.map(function(y){return[y]});
return t.map(function(y){return t2v(X,y,G)})}return RHA(X)};
RHA=function(X){var t=moV.parameters(X);if(!t)return[];if(t.some(function(G){return G==null}))throw Uow(X,t);
return t.map(function(G){return t2v(X,G,t)})};
t2v=function(X,t,G){var y=null,w=!1;if(!Array.isArray(t))return t instanceof GTE?yJE(t.token,w,null):yJE(t,w,null);for(var z=null,B=0;B<t.length;++B){var V=t[B];if(V instanceof $gV)y=V;else if(V instanceof GTE)y=V.token;else if(V instanceof wes)w=!0;else if(V instanceof z4h||V instanceof HG_)z=V}y=N8(y);if(y!=null)return yJE(y,w,z);throw Uow(X,G);};
yJE=function(X,t,G){return new oP0(Ps.get(N8(X)),t,G)};
JJf=function(X,t){for(var G=Array(X.providers.length),y=0;y<X.providers.length;++y){var w=y;if(y<0||y>=X.providers.length)throw Error("af`"+y);G[w]=t(X.providers[y])}return G};
BEV=function(X){return typeof X==="function"&&moV.parameters(X).every(function(t){return!!t})};
bGV=function(X){var t=nPs;V2l.get(X)||V2l.set(X,new t);return V2l.get(X)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(X)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(X)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X,t){var G,y;if(X.contains(t))return!0;X=_.Es(X).querySelectorAll("content,slot");for(G=0;G<X.length;++G){var w=_.Es(X[G]).getDistributedNodes();for(y=0;y<w.length;++y)if(w[y].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(w[y],t))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){X.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(X)&&X.preventDefault();X.targetTouches&&(X=X.targetTouches[0],kTV=X.pageX,dgh=X.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 X=0,t=Us.length;X<t;X++)document.addEventListener(Us[X],_._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 X=0,t=Us.length;X<t;X++)document.removeEventListener(Us[X],_._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(X){var t=_.Es(X).rootTarget;X.type!=="touchmove"&&e4h!==t&&(e4h=t,j6l=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Es(X).path));if(!j6l.length)return!0;if(X.type==="touchstart")return!1;X=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(X);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(j6l,X.deltaX,X.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){for(var t=[],G=X.indexOf(gPl),y=0;y<=G;y++)if(X[y].nodeType===Node.ELEMENT_NODE){var w=X[y],z=w.style;z.overflow!=="scroll"&&z.overflow!=="auto"&&(z=window.getComputedStyle(w));z.overflow!=="scroll"&&z.overflow!=="auto"||t.push(w)}return t};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X,t,G){if(t||G)for(var y=Math.abs(G)>=Math.abs(t),w=0;w<X.length;w++){var z=X[w];if(y?G<0?z.scrollTop>0:z.scrollTop<z.scrollHeight-z.clientHeight:t<0?z.scrollLeft>0:z.scrollLeft<z.scrollWidth-z.clientWidth)return z}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){var t={deltaX:X.deltaX,deltaY:X.deltaY};"deltaX"in X||("wheelDeltaX"in X&&"wheelDeltaY"in X?(t.deltaX=-X.wheelDeltaX,t.deltaY=-X.wheelDeltaY):"wheelDelta"in X?(t.deltaX=0,t.deltaY=-X.wheelDelta):"axis"in X?(t.deltaX=X.axis===1?X.detail:0,t.deltaY=X.axis===2?X.detail:0):X.targetTouches&&(X=X.targetTouches[0],t.deltaX=kTV-X.pageX,t.deltaY=dgh-X.pageY));return t};
Fpv=function(X){this.element=X;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
AJA=function(X){this.element=X;this.color=window.getComputedStyle(X).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");_.Es(this.waveContainer).appendChild(this.wave);TEJ(this)};
mq=function(X,t){for(var G in X)if(G.toLowerCase()===t.toLowerCase())return X[G]};
Yph=function(X,t){for(var G in X)if(G.toLowerCase()===t.toLowerCase()){delete X[G];break}};
DgV=function(X){X=_.RH.clone(X);for(var t=0;t<s6J.length;++t){var G=s6J[t],y=mq(X,G);y&&(X["X-Goog-Upload-Header-"+G]=y,Yph(X,G))}return X};
Sp0=function(X){X=_.RH.clone(X);Yph(X,"X-Goog-Upload-Status")};
ZGY=function(X){return h40.some(function(t){return t.test(X)})};
OGl=function(X,t){var G;var y=(G=X.formContent)==null?void 0:G.locale;G=y==null?void 0:y.split("-")[0];y=y&&qpV.includes(y)?y:G&&qpV.includes(G)?G:void 0;y=(y!=null?y:"en").replaceAll("-","_").toLowerCase();var w;X=((w=X.initializationData)==null?0:w.useNightlyRelease)?"nightly":"live";var z;return(t==null?0:(z=t.getEnableAlohaBinarySplit)==null?0:z.call(t))?_.sw(CEG,X):_.sw(KpA,X,y)};
IMJ=function(X,t,G,y){if(uS_&&Q6E===t)return uS_;Q6E=t;var w=OGl(X,y);return uS_=t.feedbackV2GlobalObject?Promise.resolve(t.feedbackV2GlobalObject):new Promise(function(z,B){var V=_.OF("SCRIPT");_.Vb(V,w);V.onload=function(){t.feedbackV2GlobalObject?z(t.feedbackV2GlobalObject):B(Error("ef"))};
V.onerror=function(){B(Error("ff`"+w.toString()))};
G.body.appendChild(V)})};
pes=function(X,t,G,y){if(Wpl&&cJY===t)return Wpl;cJY=t;var w=OGl(X,y);return Wpl=t.feedbackV2GlobalObject?Promise.resolve(t.feedbackV2GlobalObject):new Promise(function(z,B){var V=_.OF("SCRIPT");_.Vb(V,w);V.onload=function(){t.feedbackV2GlobalObject?z(t.feedbackV2GlobalObject):B(Error("ef"))};
V.onerror=function(){B(Error("ff`"+w.toString()))};
G.body.appendChild(V)})};
rJV=function(X,t,G,y,w){w=w===void 0?!0:w;var z,B,V,b,e;return _.n(function(g){switch(g.nextAddress){case 1:return z=Date.now(),g.yield(IMJ(X,G,y,t),2);case 2:B=g.yieldResult;if(!(w||((b=X.initializationData)==null?0:b.useNightlyRelease)||((e=X.initializationData)==null?0:e.isLocalServer))){V=B.initializeFeedbackClient(X,z,t);g.jumpTo(3);break}return g.yield(B.initializeFeedbackClientAsync(X,z,t),4);case 4:V=g.yieldResult;case 3:return V.initiateAloha(),g.return(V)}})};
NE6=function(X,t,G,y){var w,z,B;return _.n(function(V){if(V.nextAddress==1)return w=Date.now(),V.yield(pes(X,G,y.document,t),2);if(V.nextAddress!=3)return z=V.yieldResult,V.yield(z.initializeFeedbackClientAsync(X,w,t,y),3);B=V.yieldResult;B.initiateAloha();return V.return(B)})};
PE_=function(X,t,G){var y=!0;y=y===void 0?!0:y;var w,z,B,V,b,e,g,F,T,D;return _.n(function(h){w=G||_.tA;if((z=t)==null?0:(V=(B=z).getEnableAlohaBinarySplit)==null?0:V.call(B)){b=w;if(b.isFormOpened)throw e=Error("gf"),e.name="DuplicateFormError",e;b.isFormOpened=!0;X.callbacks=X.callbacks||{};g=X.callbacks.onClose||function(){};
X.callbacks.onClose=function(u){b.isFormOpened=!1;g(u)};
try{return h.return(NE6(X,t,b,w))}catch(u){throw b.isFormOpened=!1,u;}}else{F=w;if(F.isFormOpened)throw T=Error("gf"),T.name="DuplicateFormError",T;F.isFormOpened=!0;X.callbacks=X.callbacks||{};D=X.callbacks.onClose||function(){};
X.callbacks.onClose=function(u){F.isFormOpened=!1;D(u)};
try{return h.return(rJV(X,t,F,w.document,y))}catch(u){throw F.isFormOpened=!1,u;}}_.W$(h)})};
iG0=function(X,t){return _.n(function(G){return G.return(new Promise(function(y){var w=EPV(t!=null?t:"")+"/aloha_form_properties?productId="+X;UgJ(w,function(z){z=z.target;var B=null;try{var V=JSON,b=V.stringify;if(z.JSC$9725_xhr_){var e=z.JSC$9725_xhr_.responseText;e.indexOf(")]}'\n")==0&&(e=e.substring(5));var g=(0,_.R4)(e)}else g=void 0;B=Siv(mgv,b.call(V,g))}catch(F){b=new mgv,g=R4w(),g=_.iw(g,13,!1),g=_.iw(g,14,!0),g=_.iw(g,15,!0),g=_.iw(g,20,!1),B=_.Oi(b,1,g)}y(B)},"GET","",{},2E3,!0)}))})};
EPV=function(X){return ZGY(X)?X:"https://www.google.com/tools/feedback"};
lMs=function(X){X=X.match(new RegExp(Lp0,"gi"))||[];X=_.J(X);for(var t=X.next();!t.done;t=X.next()){t=t.value;a:{var G=_.J(vP0);for(var y=G.next();!y.done;y=G.next())if(y.value.test(t)){G=!1;break a}G=!0}if(!G)a:{G=_.J(aMs);for(y=G.next();!y.done;y=G.next())if(y.value.test(t)){G=!0;break a}G=!1}if(G)return!0}return!1};
xgY=function(X){switch(X){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"}};
M2E=function(X){if(window.crypto&&window.crypto.getRandomValues)try{var t=Array(X),G=new Uint8Array(X);window.crypto.getRandomValues(G);for(var y=0;y<t.length;y++)t[y]=G[y];return t}catch(z){}t=Array(X);for(G=0;G<X;G++){y=Date.now();for(var w=0;w<y%23;w++)t[G]=Math.random();t[G]=Math.floor(Math.random()*256)}if(fMf)for(G=1,y=0;y<fMf.length;y++)t[G%X]^=t[(G-1)%X]/4^fMf.charCodeAt(y),G++;return t};
LE=function(X){X=M2E(X);for(var t=[],G=0;G<X.length;G++)t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(X[G]&63));return t.join("")};
XZl=function(){var X=_.tA.ytLoggingDocDocumentNonce_;X||(X=LE(16),_.dl("ytLoggingDocDocumentNonce_",X));return X};
taV=function(X){X&&_.a7("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:$TV,clientScreenNonce:X})};
GuY=function(X){return _.Md("client-screen-nonce-store",{})[X===void 0?0:X]};
y8h=function(X,t){t=t===void 0?0:t;var G=_.Md("client-screen-nonce-store");G||(G={},_.fY("client-screen-nonce-store",G));G[t]=X};
wZV=function(X){X=X===void 0?0:X;return X===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+X};
zm6=function(X){return _.Md(wZV(X===void 0?0:X))};
_.a4=function(X){return(X=zm6(X===void 0?0:X))?new _.vs({veType:X,youtubeData:void 0,jspbYoutubeData:void 0}):null};
HPV=function(){var X=_.Md("csn-to-ctt-auth-info");X||(X={},_.fY("csn-to-ctt-auth-info",X));return X};
oXv=function(){return Object.values(_.Md("client-screen-nonce-store",{})).filter(function(X){return X!==void 0})};
_.lw=function(X){X=GuY(X===void 0?0:X);if(!X&&!_.X3("USE_CSN_FALLBACK",!0))return null;X||(X="UNDEFINED_CSN");return X?X:null};
BAs=function(X){for(var t=_.J(Object.values(J80)),G=t.next();!G.done;G=t.next())if(_.lw(G.value)===X)return!0;return!1};
nXV=function(X,t,G){var y=HPV();(G=_.lw(G))&&delete y[G];t&&(y[X]=t)};
xe=function(X){return HPV()[X]};
_.fE=function(X,t,G,y){G=G===void 0?0:G;if(X!==GuY(G)||t!==_.Md(wZV(G)))if(nXV(X,y,G),y8h(X,G),_.fY(wZV(G),t),t=function(){setTimeout(function(){taV(X)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(t)}catch(w){t()}else t()};
Val=function(X,t){t=t===void 0?"":t;var G=[],y;for(y in X)if(X.hasOwnProperty(y)){var w=t!==""?t+"."+y:y;typeof X[y]==="object"?G.push.apply(G,_.RY(Val(X[y],w))):G.push([w,X[y]])}G.sort();return G};
_.Xi=function(X){var t=_.f1.apply(1,arguments);if(!M8(X)||t.some(function(y){return!M8(y)}))throw Error("hf");
t=_.J(t);for(var G=t.next();!G.done;G=t.next())bPE(X,G.value)};
bPE=function(X,t){for(var G in t)if(M8(t[G])){if(G in X&&!M8(X[G]))throw Error("jf");G in X||(X[G]={});bPE(X[G],t[G])}else if(kul(t[G])){if(G in X&&!kul(X[G]))throw Error("kf");G in X||(X[G]=[]);dTl(X[G],t[G])}else X[G]=t[G];return X};
dTl=function(X,t){t=_.J(t);for(var G=t.next();!G.done;G=t.next())G=G.value,M8(G)?X.push(bPE({},G)):kul(G)?X.push(dTl([],G)):X.push(G);return X};
M8=function(X){return typeof X==="object"&&!Array.isArray(X)};
kul=function(X){return typeof X==="object"&&Array.isArray(X)};
jE_=function(X){for(var t=_.J(Object.entries(emE)),G=t.next();!G.done;G=t.next())if(G=_.J(G.value),G.next(),G=G.next().value,G==="SLI_STATUS_"+X)return G;return"SLI_STATUS_UNKNOWN"};
_.$t=function(X,t,G,y){return gXs(X,t,function(){return new _.FnY(X,t,G,y)})};
_.TAf=function(){return _.$t("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
A8s=function(){return _.$t("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
tE=function(){return _.$t("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
Yyw=function(){return _.$t("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
sEY=function(){return _.$t("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
DTJ=function(){return _.$t("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
ZP0=function(X){X&&(X.dataset?X.dataset[Sy6()]="true":_.kw([_.T6(hmE)],X,"data-loaded","true".toString()))};
qy0=function(X){return X?X.dataset?X.dataset[Sy6()]:X.getAttribute("data-loaded"):null};
Sy6=function(){return Ckl.loaded||(Ckl.loaded="loaded".replace(/\-([a-z])/g,function(X,t){return t.toUpperCase()}))};
_.Gi=function(X,t,G){Kn_(X,t,G===void 0?null:G)};
_.uBA=function(X,t){X&&t&&(X=""+_.GB(t),(X=OPJ[X])&&_.Ivv(X))};
Kn_=function(X,t,G){G=G===void 0?null:G;var y=_.QEh(typeof X==="string"?X:X.toString()),w=document.getElementById(y),z=w&&qy0(w),B=w&&!z;z?t&&t():(t&&(z=_.DU(y,t),t=""+_.GB(t),OPJ[t]=z),B||(w=I4E(X,y,function(){qy0(w)||(ZP0(w),_.WfE(y),_.SH(function(){_.pjY(y)},0))},G)))};
I4E=function(X,t,G,y){y=y===void 0?null:y;var w=_.OF("SCRIPT");w.id=t;w.onload=function(){G&&setTimeout(G,0)};
w.onreadystatechange=function(){switch(w.readyState){case "loaded":case "complete":w.onload()}};
y&&w.setAttribute("nonce",y);_.Vb(w,typeof X==="string"?_.Pp(X):X);X=document.getElementsByTagName("head")[0]||document.body;X.insertBefore(w,X.firstChild);return w};
_.QEh=function(X){var t=document.createElement("a");XM(t,X);return"js-"+yf(t.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Wnh=function(X){var t=_.Md("INNERTUBE_HOST_OVERRIDE");t&&(X=String(t)+String(_.wk(X)));return X};
c8E=function(X){var t={};_.A("json_condensed_response")&&(t.prettyPrint="false");return X=wPf(X,t)};
_.HP=function(X){return dw(X)?"same-origin":"include"};
_.oa=function(X){return dw(X)?"same-origin":"cors"};
JE=function(X,t,G){G=G===void 0?{}:G;X={method:t===void 0?"POST":t,mode:_.oa(X),credentials:_.HP(X)};t={};for(var y=_.J(Object.keys(G)),w=y.next();!w.done;w=y.next())w=w.value,G[w]&&(t[w]=G[w]);Object.keys(t).length>0&&(X.headers=t);return X};
_.BP=function(X,t){t=t===void 0?{}:t;return"service:"+X+"/"+Object.keys(t).sort().map(function(G){return G+":"+t[G]}).join("/")};
pZh=function(X){var t,G,y,w;X=(t=_.Y(X,_.nq))==null?void 0:(G=t.watchEndpointSupportedOnesieConfig)==null?void 0:(y=G.html5PlaybackOnesieConfig)==null?void 0:(w=y.commonConfig)==null?void 0:w.url;if(!X)return[];t=new _.Vf(X);return t.JSC$9962_domain_?["https://"+t.JSC$9962_domain_+"/generate_204"]:[]};
_.PkV=function(){return r8_()||Jgh()||NAJ&&xx("version/")?!0:_.Md("EOM_VISITOR_DATA")?!1:!0};
EXv=function(X){var t=X.docid||X.video_id||X.videoId||X.id;if(t)return t;t=X.raw_player_response;t||(X=X.player_response)&&(t=JSON.parse(X));return t&&t.videoDetails&&t.videoDetails.videoId||null};
UTh=function(X){return X.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
bs=function(X){return!isNaN(Number(X))&&!_.JA(X)};
_.dk=function(X,t,G,y){y=y===void 0?!0:y;var w=_.Md("VALID_SESSION_TEMPDATA_DOMAINS",[]),z=_.bF(window.location.href);z&&w.push(z);z=_.bF(X);if(_.Eh(w,z)||!z&&_.y0(X,"/"))if(w=document.createElement("a"),XM(w,X),X=w.href)if(X=_.wk(X),X=_.kt(X))y&&!t.csn&&(t.itct||t.ved)&&(t=Object.assign({csn:_.lw()},t)),G?(G=parseInt(G,10),isFinite(G)&&G>0&&mTV(X,t,G)):mTV(X,t)};
iPE=function(X){var t=_.Md("VALID_SESSION_TEMPDATA_DOMAINS",[]),G=_.bF(window.location.href);G&&t.push(G);G=_.bF(X);if(!(_.Eh(t,G)||!G&&_.y0(X,"/")))return null;X=_.wk(X);(X=_.kt(X))?(X=Rm0(X),X=(X=_.QQ.get(X,void 0)||null)?_.Hx(X):{}):X=null;return X};
mTV=function(X,t,G){X=Rm0(X);t=t?_.Ks(t):"";G=G||5;_.PkV()&&_.Iu(X,t,G)};
Rm0=function(X){for(var t=_.J(Lnw),G=t.next();!G.done;G=t.next())X=_.eQ(X,G.value);return"ST-"+yf(X).toString(36)};
vX0=function(X,t){X.commandMetadata&&_.Y(X.commandMetadata,_.jQ)&&_.Y(X.commandMetadata,_.jQ).url&&(X=_.Jt(_.Y(X.commandMetadata,_.jQ).url).adurl)&&_.Hqv(X)&&_.dk(_.wk(X),{encoded_ad_playback_context:t})};
_.a40=function(X){if(X.requestFullscreen)X=X.requestFullscreen(void 0);else if(X.webkitRequestFullscreen)X=X.webkitRequestFullscreen();else if(X.mozRequestFullScreen)X=X.mozRequestFullScreen();else if(X.msRequestFullscreen)X=X.msRequestFullscreen();else if(X.webkitEnterFullscreen)X=X.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return X instanceof Promise?X:Promise.resolve()};
_.Fi=function(X){var t;_.YVE(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.gk()==X&&(t=document):t=X;if(t&&(X=_.YVE(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],t))){X.call(t)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.gk=function(){var X=X===void 0?!1:X;var t=_.YVE(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(X)for(;t&&t.shadowRoot;)t=t.shadowRoot.fullscreenElement;return t?t:null};
_.Ti=function(X,t){t=t===void 0?!0:t;X.addEventListener("wheel",l40);X.overscrollConfig={cooldown:t}};
_.AE=function(X){X.overscrollConfig=void 0;X.removeEventListener("wheel",l40)};
l40=function(X){var t=X.deltaY,G=X.target,y=null;if(window.Polymer&&window.Polymer.Element){if(G=X.path||X.composedPath&&X.composedPath()){G=_.J(G);for(var w=G.next();!w.done&&(w=w.value,!xT6(w,t));w=G.next())if(w.overscrollConfig){y=w;break}}}else for(;G&&!xT6(G,t);){if(G.overscrollConfig){y=G;break}G=G.parentElement}y&&(t=y.overscrollConfig,t.cooldown?(y=X.deltaY,G=t.lastDeltaY||0,t.lastDeltaY=y,w=t.lastStopped||0,G&&w&&G>0==y>0?Math.abs(G)>=Math.abs(y)?(y=w+1200,G=!1):(y=w+600,G=!0):(y=Date.now()+
600,G=!0),y>Date.now()&&(X.preventDefault(),G&&(t.lastStopped=Date.now()))):X.preventDefault())};
xT6=function(X,t){return t<0&&X.scrollTop>0||t>0&&X.scrollTop<X.scrollHeight-X.clientHeight-1?(X=getComputedStyle(X).overflowY,X=="auto"||X=="scroll"):!1};
_.Yt=function(X,t,G,y){y||(y={bubbles:!0,cancelable:!1,composed:!0});G!==null&&G!==void 0&&(y.detail=G);var w=new CustomEvent(t,y);_.A("untrack_fire_custom_event_killswitch")?X.dispatchEvent(w):YH(function(){return void X.dispatchEvent(w)});
return w};
f4J=function(X){var t=window,G=function(y){t.removeEventListener("yt-navigate-start",G);return X.call(t,y)};
t.addEventListener("yt-navigate-start",G,void 0)};
_.sl=function(X,t,G,y){t=new Mah(t,!(y===void 0||!y),G);_.Yt(X,"yt-action",t);return t.returnValue};
_.D0=function(X,t,G){return _.sl(X,t,G,!0)};
_.SQ=function(X,t,G){return _.sl(X,t,G)[0]};
_.Z0=function(X,t,G,y){t&&t.length&&t.forEach(function(w){var z=FAh(w);z&&(_.A("handle_service_request_actions")&&w.commandMetadata&&w.commandMetadata.webCommandMetadata&&w.commandMetadata.webCommandMetadata.sendPost?_.hE(G?G:X,[w]):_.D0(X,z,[w,G,y]))})};
_.hE=function(X,t){var G=[X];t&&G.push.apply(G,t);t=_.sl(X,"yt-service-request",G);return t.length>0&&(t=t[0],_.Yt(X,"yt-service-request-sent",t),t&&t.ajaxPromise)?(t.ajaxPromise.then(function(y){_.Yt(X,"yt-service-request-completed",y)},function(y){_.Yt(X,"yt-service-request-error",{error:y,
params:G})},X),t.ajaxPromise):_.qY()};
_.Kq=function(X,t){if(_.A("handle_service_request_actions"))_.Z0(t,X,t);else{X=_.J(X);for(var G=X.next();!G.done;G=X.next()){G=G.value;var y=void 0;((y=_.Y(G,_.Cq))==null?0:y.commands)?_.Kq(_.Y(G,_.Cq).commands,t):(y=void 0,((y=_.Y(G,_.Ol))==null?0:y.actions)?_.Kq(_.Y(G,_.Ol).actions,t):(y=void 0,((y=_.Y(G.commandMetadata,_.jQ))==null?0:y.sendPost)?_.hE(t,[G]):_.Z0(t,[G],t)))}}};
_.$Df=function(X,t,G){t=t===void 0?{}:t;typeof t==="function"&&(t={callback:t});G||t._c&&t._c.jsl&&t._c.jsl.h||_.RH.extend(t,{_c:{jsl:{h:_.Md("GAPI_HINT_PARAMS")}}});(t.gapiHintOverride||_.Md("GAPI_HINT_OVERRIDE"))&&(G=_.Jt(document.location.href).gapi_jsh)&&_.RH.extend(t,{_c:{jsl:{h:G}}});XBh(X,t)};
_.Qf=function(X,t,G){t=t===void 0?{}:t;X=(X=X in us?us[X]:G)||"";G={};for(var y in t){G={key$jscomp$815:G.key$jscomp$815};G.key$jscomp$815=y;var w=function(z){return function(){return String(t[z.key$jscomp$815])}}(G);
X=X.replace(new RegExp("\\$\\{"+G.key$jscomp$815+"\\}","gi"),w);X=X.replace(new RegExp("\\$"+G.key$jscomp$815,"gi"),w)}return X};
_.Ia=function(X,t){return tth(X in us?us[X]:{},t)};
tth=function(X,t){var G=_.Md("I18N_PLURAL_RULES");G||(G=function(y){return y==1?"one":"other"});
return(X=X["case"+t]||X[G(t)])?X.replace("#",t.toString()):t+""};
wBl=function(X){var t=Gvs(X),G=document.getElementById(t),y=G&&qy0(G);y||G&&!y||(G=yzV(X,t,function(){if(!qy0(G)){ZP0(G);_.WfE(t);var w=_.WP(_.pjY,t);_.SH(w,0)}}))};
yzV=function(X,t,G){var y=document.createElement("link");y.id=t;y.onload=function(){G&&setTimeout(G,0)};
X=_.Pp(X);_.dq(y,X,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(y);return y};
Gvs=function(X){var t=_.OF("A");XM(t,Ui(X));return"css-"+yf(t.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.HmE=function(X){var t=zrv();X!==t&&(t=_.cP(),!_.A("web_autonav_allow_off_by_default")&&X||_.pq(0,141,!0),_.pq(0,140,!X),t.save())};
zrv=function(){var X=_.cP();return _.A("web_autonav_allow_off_by_default")&&!X.getFlag(141)&&_.Md("AUTONAV_OFF_BY_DEFAULT")?!1:!X.getFlag(140)};
oCJ=function(X,t){var G,y;X=((G=X.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(y=G.videoAuthorizationToken)==null?void 0:y.credentialTransferTokens)||[];for(G=0;G<X.length;++G)if(X[G].scope===t)return X[G].token||void 0};
JzV=function(X){for(var t=0,G=0;G<X.length;G++)t=t*31+X.charCodeAt(G),G<X.length-1&&(t%=0x800000000000);return t%1E5};
_.rk=function(X){return _.GA("ytcsi."+(X||"")+"data_")||Bxs(X)};
_.nCh=function(X){X=_.rk(X);X.metadata||(X.metadata={});return X.metadata};
_.Vtw=function(X){X=_.rk(X);X.tick||(X.tick={});return X.tick};
_.NY=function(X){X=_.rk(X);if(X.gel){var t=X.gel;t.gelInfos||(t.gelInfos={});t.gelTicks||(t.gelTicks={})}else X.gel={gelTicks:{},gelInfos:{}};return X.gel};
_.bmv=function(X){X=_.NY(X);X.gelInfos||(X.gelInfos={});return X.gelInfos};
kvG=function(X){var t=_.rk(X).nonce;t||(t=LE(16),_.rk(X).nonce=t);return t};
Bxs=function(X){var t={tick:{},info:{}};_.dl("ytcsi."+(X||"")+"data_",t);return t};
dDV=function(){var X=_.GA("ytcsi.debug");X||(X=[],_.dl("ytcsi.debug",X),_.dl("ytcsi.reference",{}));return X};
_.PP=function(X){X=X||"";var t=erf();if(t[X])return t[X];var G=dDV(),y={timerName:X,info:{},tick:{},span:{},jspbInfo:[]};G.push(y);return t[X]=y};
jZ0=function(X){X=X||"";var t=erf();t[X]&&delete t[X];var G=dDV(),y={timerName:X,info:{},tick:{},span:{},jspbInfo:[]};G.push(y);t[X]=y};
erf=function(){var X=_.GA("ytcsi.reference");if(X)return X;dDV();return _.GA("ytcsi.reference")};
_.Fol=function(X){return gCA[X]||"LATENCY_ACTION_UNKNOWN"};
sZl=function(X,t,G){G=G===void 0?{}:G;var y=!1;_.X3("ytLoggingEventsDefaultDisabled",!1)&&(y=!0);y=y?null:vO;G=G===void 0?{}:G;var w=Math.round(G.timestamp||(0,_.gl)());_.rj(t,1,w<Number.MAX_SAFE_INTEGER?w:0);w=new Tx_;if(G.lact)_.rj(w,1,isFinite(G.lact)?G.lact:-1);else if(G.timestamp)_.rj(w,1,-1);else{var z=_.T5();_.rj(w,1,isFinite(z)?z:-1)}if(G.sequenceGroup&&!_.A("web_gel_sequence_info_killswitch")){z=G.sequenceGroup;var B=LwY(z),V=new AzE;_.rj(V,2,B);_.rp(V,1,z);_.Oi(w,3,V);G.endOfSequence&&delete Y_6[G.sequenceGroup]}_.Oi(t,
33,w);(G.sendIsolatedPayload?Xlh:$IG)(X,{endpoint:"log_event",payload:t,cttAuthInfo:G.cttAuthInfo,dangerousLogToVisitorSession:G.dangerousLogToVisitorSession},y)};
_.Ul=function(){return(_.A("csi_use_time_origin")||_.A("csi_use_time_origin_tvhtml5"))&&_.El.timeOrigin?Math.floor(_.El.timeOrigin):_.El.timing.navigationStart};
_.DDY=function(X,t){_.mx("_start",X,t)};
_.Ra=function(X,t){if(!_.A("web_csi_action_sampling_enabled")||!_.rk(t).actionDisabled){var G=_.PP(t||"");_.Xi(G.info,X);X.loadType&&(G=X.loadType,_.nCh(t).loadType=G);_.Xi(_.bmv(t),X);G=kvG(t);t=_.rk(t).cttAuthInfo;S_Y().info(X,G,t)}};
hrJ=function(){var X,t,G,y;return((y=_.gw().resolve(_.jH(mu))==null?void 0:(X=R7())==null?void 0:(t=X.loggingHotConfig)==null?void 0:(G=t.csiConfig)==null?void 0:G.debugTicks)!=null?y:[]).map(function(w){return Object.values(w)[0]})};
_.mx=function(X,t,G){if(!_.A("web_csi_action_sampling_enabled")||!_.rk(G).actionDisabled){var y=kvG(G),w;if(w=_.A("web_csi_debug_sample_enabled")&&y){(_.gw().resolve(_.jH(mu))==null?0:R7())&&!Zmv&&(Zmv=!0,_.mx("gcfl",(0,_.gl)(),G));var z,B,V;w=(_.gw().resolve(_.jH(mu))==null?void 0:(z=R7())==null?void 0:(B=z.loggingHotConfig)==null?void 0:(V=B.csiConfig)==null?void 0:V.debugSampleWeight)||0;if(z=w!==0)b:{z=hrJ();if(z.length>0)for(B=0;B<z.length;B++)if(X===z[B]){z=!0;break b}z=!1}z?(w=JzV(y)%w!==0,
_.rk(G).debugTicksExcludedLogged||(z={},z.debugTicksExcluded=w,_.Ra(z,G)),_.rk(G).debugTicksExcludedLogged=!0):w=!1}if(!w){X[0]!=="_"&&q_J(X,G,t);w=_.PP(G||"");w.tick[X]=t||(0,_.gl)();if(w.callback&&w.callback[X])for(w=_.J(w.callback[X]),z=w.next();!z.done;z=w.next())z=z.value,z();w=_.NY(G);w.gelTicks&&(w.gelTicks[X]=!0);z=_.Vtw(G);w=t||(0,_.gl)();_.A("log_repeated_ytcsi_ticks")?X in z||(z[X]=w):z[X]=w;z=_.rk(G).cttAuthInfo;X==="_start"?S_Y().baseline(y,t,z):S_Y().tick(X,y,t,z);_.CyY(G);return w}}};
q_J=function(X,t,G){if(_.El.mark)if(X.startsWith("mark_")||(X="mark_"+X),t&&(X+=" ("+t+")"),G===void 0||_.A("web_csi_disable_alt_time_performance_mark"))_.El.mark(X);else{G=_.A("csi_use_performance_navigation_timing")?G-_.El.timeOrigin:G-(_.El.timeOrigin||_.El.timing.navigationStart);try{_.El.mark(X,{startTime:G})}catch(y){}}};
Kos=function(){var X,t=(X=_.El.getEntriesByType)==null?void 0:X.call(_.El,"mark");t&&t.forEach(function(G){if(G.name.startsWith("mark_")){var y;(y=_.El.clearMarks)==null||y.call(_.El,G.name)}})};
_.OmJ=function(){switch(Am_()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.uLJ=function(X){var t={},G=function(z,B,V){B=B.match("_rid")?B.split("_rid")[0]:B;typeof V==="number"&&(V=JSON.stringify(V));z.requestIds?z.requestIds.push({endpoint:B,id:V}):z.requestIds=[{endpoint:B,id:V}]};
X=_.J(Object.entries(X));for(var y=X.next();!y.done;y=X.next()){var w=_.J(y.value);y=w.next().value;w=w.next().value;switch(y){case "GetBrowse_rid":G(t,y,w);break;case "GetGuide_rid":G(t,y,w);break;case "GetHome_rid":G(t,y,w);break;case "GetPlayer_rid":G(t,y,w);break;case "GetSearch_rid":G(t,y,w);break;case "GetSettings_rid":G(t,y,w);break;case "GetTrending_rid":G(t,y,w);break;case "GetWatchNext_rid":G(t,y,w);break;case "yt_red":t.isRedSubscriber=!!w;break;case "yt_ad":t.isMonetized=!!w}}return t};
IZV=function(X,t,G,y,w,z){if(!_.A("web_csi_action_sampling_enabled")||!_.rk(z).actionDisabled){var B=_.NY(z);if(B.gelSpans)B.gelSpans[X]=!0;else{var V={};B.gelSpans=(V[X]=!0,V)}QZv++;X={spanName:X,spanLengthUsec:String(Math.round(t*1E3)),spanNonce:QZv};y&&(X.spanInfo=y);w&&(X.parentSpanNonce=w);G&&(X.spanStartTimeUsec=String(Math.round(G*1E3)));_.PP(z||"").span[String(X.spanName)]=X;G=_.NY(z);G.gelSpans||(G.gelSpans={});_.Xi(G.gelSpans,X);G=kvG(z);z=_.rk(z).cttAuthInfo;S_Y().span(X,G,z);return X.spanNonce}};
_.Wov=function(X){var t=_.is("aft",X);if(t)return t;t=_.Md((X||"")+"TIMING_AFT_KEYS",["ol"]);for(var G=t.length,y=0;y<G;y++){var w=_.is(t[y],X);if(w)return w}return NaN};
_.czl=function(X,t){_.dl("ytglobal.timing"+(t||"")+"ready_",X)};
_.is=function(X,t){if(X=_.Vtw(t)[X])return typeof X==="number"?X:X[X.length-1]};
_.CyY=function(X){var t=_.is("_start",X),G=_.Wov(X),y=!pBl;t&&G&&y&&(adf(rzh,new Nxl(Math.round(G-t),X)),pBl=!0)};
ECl=function(X){Bxs(X);PyV();Kos();X||(_.Md("TIMING_ACTION")&&_.fY("PREVIOUS_ACTION",_.Md("TIMING_ACTION")),_.fY("TIMING_ACTION",""))};
_.UDJ=function(X){X=X===void 0?{}:X;_.tt(function(){Lq();jZ0();ECl();_.czl(!1);X.cttAuthInfo&&(_.rk().cttAuthInfo=X.cttAuthInfo);_.fY("TIMING_AFT_KEYS",[]);X.isHot?_.vP({loadType:"hot"}):_.vP({loadType:"warm"});_.fY("TIMING_ACTION","");delete _.Md("TIMING_INFO",{}).yt_lt;_.tt(_.DDY)(X.startTime,void 0)})()};
_.aa=function(X,t,G,y){t=t===void 0?{}:t;_.tt(function(){var w=G?G:X;mDv(w);var z=t.sampleRate;if(!_.A("web_csi_action_sampling_enabled")||z===void 0||z<=1)z=!1;else{var B=kvG(w);z=JzV(B)%z!==0}z&&(_.rk(w).actionDisabled=!0);_.PP(w||"").info.actionType=X;t.cttAuthInfo&&(_.rk(w).cttAuthInfo=t.cttAuthInfo);_.fY(w+"TIMING_ACTION",X);_.tt(_.DDY)(t.startTime,w);z={actionType:y||_.Fol(X)};t.logPreviousAction&&(z.previousAction=_.Fol(_.Md("TIMING_ACTION")));(B=_.lw())&&B!=="UNDEFINED_CSN"&&(z.clientScreenNonce=
B);_.vP(z,w);_.czl(!0,w)})()};
mDv=function(X){_.tt(function(){Lq(X);jZ0(X);ECl(X)})()};
RrA=function(){_.tt(function(){var X=[],t;for(t in _.GA("ytcsi.".slice(0,-1)))t.endsWith("data_")&&X.push(t.slice(0,-5));X=_.J(X);for(t=X.next();!t.done;t=X.next())mDv(t.value);Lq()})()};
_.LoE=function(X){return _.tt(function(){return _.im6("_start",X)})()};
_.vP=function(X,t,G){_.tt(_.Ra)(X,t,G===void 0?!1:G)};
_.ls=function(X,t,G){return _.tt(_.mx)(X,t,G)};
_.im6=function(X,t){return _.tt(function(){var G=_.Vtw(t);return X in G})()};
aZl=function(X){if(!_.A("universal_csi_network_ticks"))return"";X=_.qJ(X)||"";for(var t=Object.keys(vCE),G=0;G<t.length;G++){var y=t[G];if(X.includes(y))return y}return""};
xDY=function(X){if(!_.A("universal_csi_network_ticks"))return function(){};
var t=vCE[X];return t?(_.xt(t),function(){var G=_.A("universal_csi_network_ticks")?(G=lZA[X])?_.xt(G):!1:!1;return G}):function(){}};
_.xt=function(X,t,G){return _.tt(function(){if(_.im6(X,G))return!1;_.ls(X,t,G);return!0})()};
_.fq=function(X,t,G){_.tt(function(){if(!_.LoE(G)||_.im6(X,G))return!1;_.ls(X,t,G);return!0})()};
_.XV=function(X){return _.tt(_.is)(X,void 0)};
Lq=function(X){_.LoE(X)&&_.ls("aa",void 0,X)};
_.tI_=function(X,t,G,y,w,z,B,V,b){var e=fZV();V=new _.vs({veType:t,youtubeData:z,jspbYoutubeData:V});z=$0({},e);w&&(z.cttAuthInfo=w);w={csn:e,pageVe:V.getAsJson()};_.A("expectation_logging")&&b&&b.screenCreatedLoggingExpectations&&(w.screenCreatedLoggingExpectations=b.screenCreatedLoggingExpectations);G&&G.visualElement?(w.implicitGesture={parentCsn:G.clientScreenNonce,gesturedVe:G.visualElement.getAsJson()},B&&(w.implicitGesture.gestureType=B)):G&&_.Mj(new _.NJ("newScreen() parent element does not have a VE - rootVe",
t));y&&(w.cloneCsn=y);X?Lh("screenCreated",w,X,z):_.a7("screenCreated",w,z);adf(tmG,new Mtf(e));tg.clear();X3E.clear();$N0.clear();return e};
GG=function(X,t,G,y,w,z){z=z===void 0?{}:z;G_6(X,t,G,[y],w===void 0?!1:w,z)};
G_6=function(X,t,G,y,w,z){w=w===void 0?!1:w;z=z===void 0?{}:z;Object.assign(z,$0({cttAuthInfo:xe(t)||void 0},t));for(var B=_.J(y),V=B.next();!V.done;V=B.next()){V=V.value;var b=V.getAsJson();(_.RH.isEmpty(b)||!b.trackingParams&&!b.veType)&&_.Mj(Error("uf"));if(_.A("no_client_ve_attach_unless_shown")){var e=y0v(V,t);if(b.veType&&!X3E.has(e)&&!$N0.has(e)&&!w){if(!_.A("il_attach_cache_limit")||tg.size<1E3){tg.set(e,[X,t,G,V]);return}_.A("il_attach_cache_limit")&&tg.size>1E3&&_.Mj(new _.NJ("IL Attach cache exceeded limit"))}V=
y0v(G,t);tg.has(V)?w3w(G,t):$N0.set(V,!0)}}y=y.filter(function(g){g.csn!==t?(g.csn=t,g=!0):g=!1;return g});
G={csn:t,parentVe:G.getAsJson(),childVes:_.iG(y,function(g){return g.getAsJson()})};
t==="UNDEFINED_CSN"?y1("visualElementAttached",z,G):X?Lh("visualElementAttached",G,X,z):_.a7("visualElementAttached",G,z)};
HBh=function(X,t,G,y,w){zFA(X,t,G,w)};
zFA=function(X,t,G,y){or6(G,t);var w=$0({cttAuthInfo:xe(t)||void 0},t);G={csn:t,ve:G.getAsJson(),eventType:1};y&&(G.clientData=y);t==="UNDEFINED_CSN"?y1("visualElementShown",w,G):X?Lh("visualElementShown",G,X,w):_.a7("visualElementShown",G,w)};
J0V=function(X,t,G,y){or6(G,t);var w=$0({cttAuthInfo:xe(t)||void 0},t);G={csn:t,ve:G.getAsJson(),eventType:4};y&&(G.clientData=y);t==="UNDEFINED_CSN"?y1("visualElementShown",w,G):X?Lh("visualElementShown",G,X,w):_.a7("visualElementShown",G,w)};
B_V=function(X,t,G,y,w){var z=(y=y===void 0?!1:y)?16:8;y=$0({cttAuthInfo:xe(t)||void 0,endOfSequence:y},t);G={csn:t,ve:G.getAsJson(),eventType:z};w&&(G.clientData=w);t==="UNDEFINED_CSN"?y1("visualElementHidden",y,G):X?Lh("visualElementHidden",G,X,y):_.a7("visualElementHidden",G,y)};
VI0=function(X,t,G,y,w){nrV(X,t,G,void 0,y,w)};
nrV=function(X,t,G,y,w){or6(G,t);y=y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var z=$0({cttAuthInfo:xe(t)||void 0},t);G={csn:t,ve:G.getAsJson(),gestureType:y};w&&(G.clientData=w);t==="UNDEFINED_CSN"?y1("visualElementGestured",z,G):X?Lh("visualElementGestured",G,X,z):_.a7("visualElementGestured",G,z)};
bBl=function(X,t,G,y){var w=$0({cttAuthInfo:xe(t)||void 0},t);G={csn:t,ve:G.getAsJson(),clientData:y};t==="UNDEFINED_CSN"?y1("visualElementStateChanged",w,G):X?Lh("visualElementStateChanged",G,X,w):_.a7("visualElementStateChanged",G,w)};
k_A=function(){var X=M2E(16);for(var t=[],G=0;G<X.length;G++)t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(X[G]&63));return t.join("")};
y1=function(X,t,G){dNv.push({payloadName:X,payload:G,jspbPayload:void 0,options:t});eFs||(eFs=ybh())};
$SV=function(X){if(dNv){for(var t=_.J(dNv),G=t.next();!G.done;G=t.next())G=G.value,G.payload&&(G.payload.csn=X.csn,_.a7(G.payloadName,G.payload,G.options));dNv.length=0}eFs=0};
y0v=function(X,t){return""+X.getAsJson().veType+X.getAsJson().veCounter+t};
or6=function(X,t){if(_.A("no_client_ve_attach_unless_shown")){var G=y0v(X,t);X3E.set(G,!0);w3w(X,t)}};
w3w=function(X,t){X=y0v(X,t);tg.has(X)&&(t=tg.get(X)||[],GG(t[0],t[1],t[2],t[3],!0),tg.delete(X))};
$0=function(X,t){_.A("log_sequence_info_on_gel_web")&&(X.sequenceGroup=t);return X};
_.w9=function(X,t,G){_.tt(GG)(void 0,X,t,G)};
_.zG=function(X,t,G){_.tt(G_6)(void 0,X,t,G)};
_.HK=function(X,t){_.tt(HBh)(void 0,X,t,void 0,void 0,void 0)};
_.o$=function(X,t,G){_.tt(function(){_.zA(t,function(y){J0V(void 0,X,y,G)})})()};
_.Jg=function(X,t,G,y){_.tt(function(){_.zA(t,function(w){B_V(void 0,X,w,G,y)})})()};
_.BK=function(X,t,G){_.tt(VI0)(void 0,X,t,G,void 0)};
_.V1=function(X,t,G,y){_.tt(nrV)(void 0,X,t,G,y,void 0)};
_.d9=function(X,t,G){_.tt(bBl)(void 0,X,t,G,void 0)};
jxE=function(X,t){e7.set(X,t)};
grV=function(X){return j7?j7.enabledSpans?!!j7.enabledSpans[X]:!0:!1};
FQV=function(X){if(!j7)throw Error("xf");j7.processors.push(X)};
T_V=function(X,t){if(X){t=t===void 0?1:t;if(X&&(X.endTime=performance.now(),t&&(X.status=t),t=j7)){t=_.J(t.processors);for(var G=t.next();!G.done;G=t.next()){var y=void 0,w=void 0;(w=(y=G.value).onSpanEnd)==null||w.call(y,X)}}if(t=j7){if(X!==t.activeSpan)throw Error("yf");var z;t.activeSpan=(z=t.activeSpan)==null?void 0:z.parent}}};
A00=function(X,t,G){var y;if((y=j7)&&grV(X)){var w=y.nextSpanId++,z=y.activeSpan;X={id:w,parent:z,name:X,attributes:t,traceId:z?z.traceId:w,sessionId:y.sessionId,startTime:performance.now(),status:0};if(y.activeSpan){var B;(B=y.activeSpan).children||(B.children=[]);y.activeSpan.children.push(X)}y=_.J(y.processors);for(B=y.next();!B.done;B=y.next())w=t=void 0,(w=(t=B.value).onSpanStart)==null||w.call(t,X);y=X}else y=void 0;X=j7;y=y&&X?X.activeSpan=y:void 0;if(!y)return G();try{var V=G(y);T_V(y);return V}catch(b){throw T_V(y,
2),b;}};
YCh=function(X,t){var G=Object.keys(X);X=new _.NJ("[Command Handler] "+t,{filteredCommandNames:G,originalCommand:X});_.xA(X)};
sx6=function(X,t){YCh(X,t+" was called but not set")};
DNf=function(X){return function(){return new X}};
g9=function(X){return function(){return _.gw().resolve(X)}};
SCs=function(X,t){var G=_.Y(X,_.yN);if(G&&(G=t[G.signal]))return G();X=_.J(Object.keys(X));for(G=X.next();!G.done;G=X.next())if(G=G.value,t[G]&&(G=t[G]))return G()};
FV=function(X,t,G,y){return{browseEndpoint:{browseId:X},commandMetadata:{webCommandMetadata:{url:t,rootVe:G,webPageType:y===void 0?"WEB_PAGE_TYPE_BROWSE":y}}}};
hF0=function(X,t,G){var y=t=t===void 0?0:t;G=G===void 0?0:G;var w=G-y;return _.TG(X,"PPSV",void 0,void 0,(w>600?0:w<60||G<=0||y/G>.9)?0:t)};
_.TG=function(X,t,G,y,w){var z="/watch?v="+X;X={videoId:X};t&&(X.playlistId=t,z+="&list="+t);y&&(z+="&pp="+y);w&&(X.startTimeSeconds=w,z+="&t="+w+"s");t={watchEndpoint:X,commandMetadata:{webCommandMetadata:{url:z,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};G&&(t.clickTrackingParams=G);y&&(_.Y(t,_.nq).playerParams=y);return t};
ZB0=function(X){return{browseEndpoint:{browseId:"VL"+X},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+X,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
qC6=function(X){if(X){var t;if(X){var G=(t=_.Y(X.commandMetadata,_.jQ))==null?void 0:t.url;t=!(!G||G==="/service_ajax")}else t=!1;if(t)return X;var y;if(X=(y=_.Y(X,_.Cq))==null?void 0:y.commands)for(y=_.J(X),X=y.next();!X.done;X=y.next())if(X=qC6(X.value))return X}};
_.Ag=function(X){return{runs:[{text:X}]}};
CS0=function(X,t){return X&&t?{runs:[{text:X,navigationEndpoint:t}]}:void 0};
Y0=function(X){return X?_.Ag(X):void 0};
_.sG=function(X){return X?{simpleText:X}:void 0};
_.Dl=function(X){var t=X.type;X=X.payload;t={type:t};X!==void 0&&(t.payload=X);return t};
KQJ=function(X,t,G){for(var y=Object.assign({},X),w=_.J(Object.keys(t)),z=w.next();!z.done;z=w.next()){z=z.value;var B=X[z],V=t[z];if(V===void 0)delete y[z];else if(B===void 0)y[z]=V;else if(Array.isArray(V)&&Array.isArray(B))y[z]=G?[].concat(_.RY(B),_.RY(V)):V;else if(!Array.isArray(V)&&_.$h(V)&&!Array.isArray(B)&&_.$h(B))y[z]=KQJ(B,V,G);else if(typeof V===typeof B)y[z]=V;else return t=new _.NJ("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:z,originalValue:B,updateValue:V}),
_.xA(t),X}return y};
QxG=function(X){if(!X.length)return"";try{if(OBG)return OBG.decode(X);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(X)}catch(B){}for(var t=0,G=[],y=X.length;t<y;){for(var w=0;w<1024&&t<y;){var z=X[t++];if(z<128)uXV[w++]=z;else{if(z<224)z=(z&31)<<6|X[t++]&63;else if(z<240)z=(z&15)<<12|(X[t++]&63)<<6|X[t++]&63;else{if(w+1===1024){--t;break}z=(z&7)<<18|(X[t++]&63)<<12|(X[t++]&63)<<6|X[t++]&63;z-=65536;uXV[w++]=55296|z>>10;z=56320|z&1023}uXV[w++]=z}}z=String.fromCharCode.apply(String,
uXV);w<1024&&(z=z.substring(0,w));G.push(z)}return G.join("")};
WQf=function(X,t){var G;if((G=Ib_)==null?0:G.encodeInto)return t=Ib_.encodeInto(X,t),t.read<X.length?X.length*4:t.written;for(var y=G=0;y<X.length;y++){var w=X.charCodeAt(y);w<128?t[G++]=w:(w<2048?t[G++]=w>>6|192:((w&64512)===55296&&y+1<X.length&&(X.charCodeAt(y+1)&64512)===56320?(w=65536+((w&1023)<<10)+(X.charCodeAt(++y)&1023),t[G++]=w>>18|240,t[G++]=w>>12&63|128):t[G++]=w>>12|224,t[G++]=w>>6&63|128),t[G++]=w&63|128)}return G};
c0V=function(X,t,G){if(t&&G&&G.buffer===t.exports.memory.buffer){var y=t.realloc(G.byteOffset,X);if(y)return new Uint8Array(t.exports.memory.buffer,y,X)}X=t?new Uint8Array(t.exports.memory.buffer,t.malloc(X),X):new Uint8Array(X);G&&X.set(G);return X};
_.hg=function(X){X=new p3G(new r0J([_.BS(decodeURIComponent(X))]));if(N_v(X,2)){var t=S7(X);var G=X.pos;var y=X.arrayView;G=G===void 0?0:G;var w=t===void 0?-1:t;G=G===void 0?0:G;w=w===void 0?-1:w;if(y.totalLength&&w){w<0&&(w=y.totalLength-G);y.focus(G);if(!(G-y.arrayPos+w<=y.arrays[y.arrayIdx].length)){var z=y.arrayIdx,B=y.arrayPos;y.focus(G+w-1);B=new Uint8Array(y.arrayPos+y.arrays[y.arrayIdx].length-B);for(var V=0,b=z;b<=y.arrayIdx;b++)B.set(y.arrays[b],V),V+=y.arrays[b].length;y.arrays.splice(z,
y.arrayIdx-z+1,B);y.arrayIdx=0;y.arrayPos=0;y.focus(G)}z=y.arrays[y.arrayIdx];y=new DataView(z.buffer,z.byteOffset+G-y.arrayPos,w)}else y=new DataView(new ArrayBuffer(0));y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength);X.pos+=t;t=y}else t=void 0;t=t?QxG(t):void 0;X=N_v(X,4)?S7(X):void 0;y=PSJ[X];if(typeof y==="undefined")throw X=new _.NJ("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:X}),_.xA(X),X;return{entityTypeFieldNumber:X,entityType:y,entityId:t}};
_.Cg=function(X,t,G){G=G===void 0?0:G;var y=new ErA;if(Ib_)X=Ib_.encode(X);else{var w=new Uint8Array(Math.ceil(X.length*1.2)),z=WQf(X,w);w.length<z&&(w=new Uint8Array(z),z=WQf(X,w));w.length>z&&(w=w.subarray(0,z));X=w}X!==void 0&&(Zl(y,18),w=X.length,Zl(y,w),qQ(y,w),y.buf.set(X,y.pos),y.pos+=w);X=UNv[t];if(typeof X==="undefined")throw G=new _.NJ("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:t}),_.xA(G),G;X!==void 0&&(Zl(y,32),Zl(y,X));Zl(y,40);Zl(y,1);t=new Uint8Array(y.buf.buffer,
y.buf.byteOffset,y.pos);return encodeURIComponent(_.i2(t,G))};
mN6=function(X){X=X.key||X.id;if(!X)throw Error("zf");return X};
iBE=function(X,t){X=X===void 0?{}:X;return RFG(X,t)};
LQJ=function(X,t,G,y){if(y===void 0)return y=Object.assign({},X[t]||{}),G=(delete y[G],y),y={},Object.assign({},X,(y[t]=G,y));var w={},z={};return Object.assign({},X,(z[t]=Object.assign({},X[t],(w[G]=y,w)),z))};
vrE=function(X,t,G,y,w){var z=X[t];if(z==null||!z[G])return X;y=KQJ(z[G],y,w==="REPEATED_FIELDS_MERGE_OPTION_APPEND");w={};z={};return Object.assign({},X,(z[t]=Object.assign({},X[t],(w[G]=y,w)),z))};
_.Kg=function(X,t,G){return X[t]?X[t][G]||null:null};
lbE=function(){if(abE)return abE();var X={};abE=jD("PersistentEntityStoreDb",{objectStores:(X.EntityStore={addedAtVersion:1},X.EntityAssociationStore={addedAtVersion:2},X),shared:!1,upgrade:function(t,G){G(1)&&yG(tv(t,"EntityStore",{keyPath:"key"}),"entityType","entityType");G(2)&&(t=tv(t,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),yG(t,"byParentEntityKey","parentEntityKey"),yG(t,"byChildEntityKey","childEntityKey"))},
version:3});return abE()};
xN_=function(X){return _.JG(lbE(),X)};
OG=function(X){return window.Int32Array?new Int32Array(X):Array(X)};
MIl=function(X){return _.JG(fbh(),X)};
XMA=function(X){return new uA("WRONG_DATA_TYPE",{encoderVersion:X})};
$0V=function(X){return X instanceof Error?new uA("UNKNOWN_ENCODE_ERROR",{originalMessage:X.message}):new uA("UNKNOWN_ENCODE_ERROR")};
tfw=function(X){return X instanceof Error?new uA("UNKNOWN_DECODE_ERROR",{originalMessage:X.message}):new uA("UNKNOWN_DECODE_ERROR")};
GQV=function(X,t){X=X instanceof uA?X:t(X);_.xA(X);throw X;};
yZv=function(X){X=(new TextEncoder).encode(X).subarray(0,16);var t=new Uint8Array(16);t.set(X);return t};
zUv=function(X){var t=wME[X];if(t)return t;_.Mj(new _.NJ("Entity model not found.",{entityType:X}))};
_.Q1=function(){Hes||(Hes=o_v());return Hes};
o_v=function(){var X,t,G;return _.n(function(y){if(y.nextAddress==1)return _.CL(y,2),y.yield(_.eD(),4);if(y.nextAddress!=2){X=y.yieldResult;if(!X||!_.rw()||typeof _.tA.BroadcastChannel==="undefined")return y.return();t=new JZ6;return y.return(new I$(X,t))}G=_.IY(y);G instanceof Error&&_.xA(G);return y.return()})};
_.WK=function(X,t){var G;return _.n(function(y){if(y.nextAddress==1){G=X.mutations;if(!G||G.length<=0)return y.return();t&&t.dispatch(_.Dl({type:"ENTITY_LOADED",payload:G}));return y.yield(BB_(G),2)}G.length=0;_.W$(y)})};
BB_=function(X){var t;return _.n(function(G){return G.nextAddress==1?G.yield(_.Q1(),2):(t=G.yieldResult)?G.yield(_.cK(t,"readwrite",function(y){for(var w={},z=_.J(X),B=z.next(),V={};!B.done;V={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},B=z.next())V.mutation$jscomp$4=B.value,V.mutation$jscomp$4.entityKey&&n_0(V.mutation$jscomp$4)&&(V.mutationEntityType$jscomp$3=(0,_.RH.getAnyKey)(V.mutation$jscomp$4.payload),B=void 0,V.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(B=function(b){return function(){return _.VfA(y,
b.mutation$jscomp$4.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(V)),V.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(B=function(b){return function(){return be6(y,b.mutation$jscomp$4.entityKey)}}(V)),V.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(B=function(b){return function(){return kQh(y,b.mutation$jscomp$4.entityKey,b.mutation$jscomp$4.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(V)),B&&(w[V.mutation$jscomp$4.entityKey]=
w[V.mutation$jscomp$4.entityKey]?w[V.mutation$jscomp$4.entityKey].then(B):B()));
return tG.all(Object.values(w))}),0):G.return()})};
n_0=function(X){var t;X=(t=X.options)==null?void 0:t.persistenceOption;return X==="ENTITY_PERSISTENCE_OPTION_PERSIST"||X==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
jMv=function(X,t){var G,y;_.n(function(w){if(w.nextAddress==1)return w.yield(_.Q1(),2);if(w.nextAddress!=3)return(G=w.yieldResult)?w.yield(_.cK(G,"readonly",function(z){var B={},V=Object.keys(t).map(function(b){var e=t[b]?[].concat(_.RY(t[b])):[];return d0V(z,b,e,B)});
return tG.all(V).then(function(){return B})}),3):w.return();
y=w.yieldResult;Object.keys(y).length>0&&X.dispatch(eUs(y));_.W$(w)})};
d0V=function(X,t,G,y){return pg(X,t,G).then(function(w){y[t]=g_v(G,w)})};
g_v=function(X,t){if(t.length!==X.length)throw Error("Cf");return t.reduce(function(G,y,w){G[X[w]]=y;return G},{})};
AZY=function(X){var t=X.filter(function(w){var z;return(w==null?void 0:(z=w.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_COMPLETE"}).length,G=X.filter(function(w){var z;
return(w==null?void 0:(z=w.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_FAILED"}).length,y=X.filter(function(w){var z;
return(w==null?void 0:(z=w.transferEntity)==null?void 0:z.transferState)&&F2Y.includes(w.transferEntity.transferState)});
if(!(t||y!=null&&y.length))return 0;t=_.TBl(y)+t;X=X.length-G;return X===0?0:Math.round(t*100/X)/100};
_.TBl=function(X){var t=[];t=t.concat.apply(t,_.RY(X.filter(function(z){return z.streamEntity}).map(function(z){var B=Object.assign({},z.streamEntity),V,b=(V=z.transferEntity)==null?void 0:V.transferState;
B.streamsProgress=B.streamsProgress||[];B.streamsProgress=B.streamsProgress.map(function(e){var g=Object.assign({},e);g.numBytesDownloaded=b==="TRANSFER_STATE_COMPLETE"?e.numTotalBytes:e.numBytesDownloaded;return g});
return B}).map(function(z){return z.streamsProgress})));
var G=X=0;t=_.J(t);for(var y=t.next();!y.done;y=t.next()){var w=y.value;y=Number(w.numBytesDownloaded);w=Number(w.numTotalBytes);G+=isNaN(y)?0:y;X+=isNaN(w)?0:w}return X===0?0:Math.round(G*100/X)/100};
Yt6=function(X){if(!X||!X.expirationTimestamp||!X.action)return!1;var t=(0,_.gl)()/1E3;return Number(X.expirationTimestamp)>=t};
r9=function(X){return X&&X.expirationTimestamp&&X.action?Yt6(X)&&X.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.NQ=function(X){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(X||"TRANSFER_STATE_UNKNOWN")};
sMJ=function(X){var t=new ErA;if(X!==void 0){var G=Math.ceil(Math.log2(X.length*4+2)/7);G=G===void 0?2:G;Zl(t,10);t.submessagePosStack.push(t.pos);t.submessagePosStack.push(G);t.pos+=G;qQ(t,X.length*1.2);G=WQf(X,t.buf.subarray(t.pos));t.pos+G>t.buf.length&&(qQ(t,G),G=WQf(X,t.buf.subarray(t.pos)));t.pos+=G;X=t.submessagePosStack.pop();G=t.submessagePosStack.pop();for(var y=t.pos-G-X;X--;){var w=X?128:0;t.view.setUint8(G++,y&127|w);y>>=7}}t=new Uint8Array(t.buf.buffer,t.buf.byteOffset,t.pos);return(new TextDecoder("utf-8")).decode(t)};
_.PK=function(X){var t=0;X=_.J(X);for(var G=X.next(),y={};!G.done;y={transferState$jscomp$3:void 0},G=X.next()){var w=G.value,z=void 0;G=(z=w.streamEntity)!=null?z:{};z=void 0;y.transferState$jscomp$3=(z=w.transferEntity)==null?void 0:z.transferState;z=w=void 0;((w=G)==null?0:(z=w.streamsProgress)==null?0:z.length)&&G.streamsProgress.forEach(function(B){return function(V){V=Number(B.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?V.numTotalBytes:V.numBytesDownloaded);isFinite(V)&&(t+=V)}}(y))}return t};
D06=function(X){return X.some(function(t){var G;if(!(t==null?0:(G=t.transferEntity)==null?0:G.transferState)){var y;return!(t==null?0:(y=t.policyEntity)==null?0:y.action)||t.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return F2Y.includes(t.transferEntity.transferState)})};
StG=function(X,t){if(!t)return!1;if(_.A("of_pb_en_po_ks"))return!0;var G;X=(G=_.Kg(X,"offlineVideoPolicy",_.Cg(t,"offlineVideoPolicy")))!=null?G:void 0;return!!X&&r9(X)};
_.Zeh=function(X){var t=["TRANSFER_STATE_COMPLETE"];t=t===void 0?hUw:t;return X.filter(function(G){var y,w;return t.includes((w=(y=G.transferEntity)==null?void 0:y.transferState)!=null?w:"TRANSFER_STATE_UNKNOWN")})};
qtV=function(X,t){if(t){var G,y=(G=_.Kg(X,"playbackData",_.Cg(t,"playbackData")))!=null?G:null,w;G=(w=_.Kg(X,"transfer",_.Cg(t,"transfer")))!=null?w:null;var z;w=(z=_.Kg(X,"offlineVideoStreams",_.Cg(t,"offlineVideoStreams")))!=null?z:null;var B;X=(B=_.Kg(X,"offlineVideoPolicy",_.Cg(t,"offlineVideoPolicy")))!=null?B:null;if(y||G||w||X)return{playbackDataEntity:y,transferEntity:G,streamEntity:w,policyEntity:X}}};
_.EG=function(X){var t=X.playbackData;if(!t)return[];var G=[];t=_.J(Object.keys(t));for(var y=t.next();!y.done;y=t.next()){var w=y.value;if(!CYA(X,_.hg(w).entityId)&&(y=qtV(X,_.hg(w).entityId))){var z=void 0,B=void 0;w=(B=Number((z=_.Kg(X,"playbackData",w))==null?void 0:z.streamDownloadTimestampSeconds))!=null?B:(0,_.gl)();G.push({entity:y,streamDownloadTimestamp:w})}}return G.sort(function(V,b){var e=V.streamDownloadTimestamp,g=b.streamDownloadTimestamp;return g===e?V.entity.streamEntity&&!b.entity.streamEntity?
1:-1:g-e}).map(function(V){return V.entity})};
K2s=function(X){return _.Zeh(_.EG(X))};
_.Oew=function(X){return _.EG(X).filter(function(t){var G;if(((G=t.policyEntity)==null?0:G.action)&&t.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var y;if((y=t.transferEntity)==null?0:y.transferState){var w;return F2Y.includes((w=t.transferEntity)==null?void 0:w.transferState)}return!0})};
CYA=function(X,t){var G;return((G=_.Kg(X,"downloadStatusEntity",_.Cg(t,"downloadStatusEntity")))==null?void 0:G.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
ueV=function(X){var t;if(X==null?0:(t=X.playbackDataEntity)==null?0:t.key)return _.hg(X.playbackDataEntity.key).entityId;var G;if(X==null?0:(G=X.transferEntity)==null?0:G.key)return _.hg(X.transferEntity.key).entityId;var y;if(X==null?0:(y=X.streamEntity)==null?0:y.key)return _.hg(X.streamEntity.key).entityId;var w;if(X==null?0:(w=X.policyEntity)==null?0:w.key)return _.hg(X.policyEntity.key).entityId};
I9J=function(X){var t=new Set,G;X=(G=X.mainDownloadsListEntity)==null?void 0:G[QMs];var y;if(!(X==null?0:(y=X.downloads)==null?0:y.length))return t;var w;X==null||(w=X.downloads)==null||w.forEach(function(z){(z==null?0:z.videoItem)&&t.add(z.videoItem)});
return t};
UG=function(X,t){if(t){var G=_.Kg(X,"mainVideoEntity",_.Cg(t,"mainVideoEntity")),y=_.Kg(X,"downloadStatusEntity",_.Cg(t,"downloadStatusEntity")),w=_.Kg(X,"ytMainChannelEntity",_.Cg(t,"ytMainChannelEntity")),z={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};X=qtV(X,t);y=(y==null?void 0:y.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.A("woffle_render_failed_download_state_ks")&&(y==null?void 0:y.downloadState)==="DOWNLOAD_STATE_FAILED";!X&&y&&(X=z);if(X&&G&&
w)return Object.assign({},{videoEntity:G,channelEntity:w},X)}};
cZE=function(X,t){return W2h(X,t)==="TRANSFER_STATE_COMPLETE"&&StG(X,t)};
pMl=function(X,t){if(!t)return!1;var G;X=(G=_.Kg(X,"playbackData",_.Cg(t,"playbackData")))!=null?G:void 0;return!!X&&!!X.playerResponseJson};
W2h=function(X,t){if(!t)return"TRANSFER_STATE_UNKNOWN";var G=_.Kg(X,"transfer",_.Cg(t,"transfer"));if(G){var y;return(y=G.transferState)!=null?y:"TRANSFER_STATE_UNKNOWN"}G=_.Kg(X,"offlineOrchestrationActionWrapperEntity",_.Cg(t,"offlineOrchestrationActionWrapperEntity"));X=_.Kg(X,"mainVideoEntity",_.Cg(t,"mainVideoEntity"));return G||X?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
rZv=function(X,t){if(!t)return"TRANSFER_STATE_UNKNOWN";if(X=_.Kg(X,"transfer",_.Cg(t,"transfer"))){var G;return(G=X.transferState)!=null?G:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
NBv=function(X,t){return t&&(X=_.Kg(X,"videoPlaybackPositionEntity",_.Cg(t,"videoPlaybackPositionEntity")),X==null?0:X.lastPlaybackPositionSeconds)?Number(X.lastPlaybackPositionSeconds):0};
E_s=function(X,t){return PYs(X).some(function(G){var y;return(G==null?void 0:(y=G.mainPlaylistEntity)==null?void 0:y.playlistId)===t})};
m0G=function(X,t,G){var y=U0Y(X,t);if(!y.length)return[];t=[];y=_.J(y);for(var w=y.next();!w.done;w=y.next()){w=w.value;var z=UG(X,w);G&&W2h(X,w)!=="TRANSFER_STATE_COMPLETE"||z&&t.push(z)}return t};
U0Y=function(X,t){if(!t)return[];var G=_.Cg(t,"mainPlaylistEntity"),y;t=(y=X.mainPlaylistEntity)==null?void 0:y[G];y=[];if(t==null||!t.videos)return y;t=_.J(t.videos);for(G=t.next();!G.done;G=t.next()){G=G.value;var w=void 0,z=void 0,B=void 0,V=(w=X)==null?void 0:(z=w.mainPlaylistVideoEntity)==null?void 0:(B=z[G])==null?void 0:B.video;V&&(G=_.hg(V).entityId)&&y.push(G)}return y};
RUA=function(X,t){if(t){var G=_.Kg(X,"mainPlaylistEntity",_.Cg(t,"mainPlaylistEntity")),y=_.Kg(X,"mainPlaylistDownloadStateEntity",_.Cg(t,"mainPlaylistDownloadStateEntity"));X=_.Kg(X,"ytMainChannelEntity",_.Cg(t,"ytMainChannelEntity"));if(y&&G)return Object.assign({},{mainPlaylistEntity:G,mainPlaylistDownloadStateEntity:y},!!X&&{channelEntity:X})}};
PYs=function(X){return iew(X).sort(function(t,G){return G.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return t.downloadedPlaylistEntities})};
iew=function(X){var t=X.mainPlaylistDownloadStateEntity,G=[];if(!t)return G;for(var y=_.J(Object.keys(t)),w=y.next();!w.done;w=y.next()){var z=w.value;w=RUA(X,_.hg(z).entityId);var B=void 0;z=Number((B=t[z])==null?void 0:B.addedTimestampMillis);B=isNaN(z)?(0,_.gl)():z;w!==void 0&&G.push({downloadedPlaylistEntities:w,addedTimestampMillis:B})}return G};
L2G=function(X){var t,G=(t=X.mainPlaylistVideoEntity)!=null?t:{};return new Set(PYs(X).reduce(function(y,w){y=y===void 0?[]:y;var z,B;w==null||(z=w.mainPlaylistEntity)==null||(B=z.videos)==null||B.forEach(function(V){var b;(V=(b=G[V])==null?void 0:b.video)&&y.push(V)});
return y},[]))};
v_f=function(X){return"downloadedMusicPlaylistEntities"in X};
a96=function(X){return"mainPlaylistEntity"in X&&"mainPlaylistDownloadStateEntity"in X};
l9w=function(X){return"videoEntity"in X&&"channelEntity"in X};
x0V=function(X){var t=X.musicPlaylistDownloadMetadataEntity,G=[];if(!t)return G;for(var y=_.J(Object.keys(t)),w=y.next();!w.done;w=y.next()){w=w.value;a:{var z=X,B=_.hg(w).entityId;if(B){var V=_.Kg(z,"musicPlaylist",_.Cg(B,"musicPlaylist"));z=_.Kg(z,"musicPlaylistDownloadMetadataEntity",_.Cg(B,"musicPlaylistDownloadMetadataEntity"));if(V&&z){V={musicPlaylistEntity:V,musicPlaylistDownloadStateEntity:z};break a}}V=void 0}z=void 0;w=Number((z=t[w])==null?void 0:z.addedTimestampMillis);w=isNaN(w)?(0,_.gl)():
w;V!==void 0&&G.push({downloadedMusicPlaylistEntities:V,addedTimestampMillis:w})}return G};
f9A=function(X){var t=new Set;X=_.J(X);for(var G=X.next();!G.done;G=X.next())if(G=G.value,"musicPlaylistEntity"in G&&"musicPlaylistDownloadStateEntity"in G){G=_.J(G.musicPlaylistEntity.tracks);for(var y=G.next();!y.done;y=G.next())t.add(y.value)}return t};
Mfw=function(X,t){if(t){var G=_.Kg(X,"musicTrack",_.Cg(t,"musicTrack")),y=_.Kg(X,"musicArtist",_.Cg(t,"musicArtist"))||{};if((X=qtV(X,t))&&G&&y)return Object.assign({},{musicTrackEntity:G,musicArtistEntity:y},X)}};
XF_=function(X){var t=X.musicTrackDownloadMetadataEntity,G=[];if(!t)return[];t=_.J(Object.keys(t));for(var y=t.next();!y.done;y=t.next()){var w=y.value;y=Mfw(X,_.hg(w).entityId);var z=void 0;w=Number((z=_.Kg(X,"musicTrackDownloadMetadataEntity",w))==null?void 0:z.addedTimestampMillis);z=isNaN(w)?(0,_.gl)():w;y!==void 0&&G.push({downloadedMusicEntities:y,addedTimestampMillis:z})}return G};
G4E=function(X,t){if(!t)return[];if(Object.values($P6).includes(t))return tOY(X,t);t=_.Cg(t,"musicPlaylist");var G;X=(G=X.musicPlaylist)==null?void 0:G[t];G=[];if(X==null||!X.tracks)return G;X=_.J(X.tracks);for(t=X.next();!t.done;t=X.next())(t=_.hg(t.value).entityId)&&G.push(t);return G};
tOY=function(X,t){var G=new Set,y=x0V(X).map(function(z){return z.downloadedMusicPlaylistEntities});
y=f9A(y);y=_.J(y);for(var w=y.next();!w.done;w=y.next())(w=_.hg(w.value).entityId)&&G.add(w);return yP0(X).downloadedMusicEntities.filter(function(z){var B;if((B=z.musicTrackEntity)!=null&&B.videoId){z=z.musicTrackEntity;if(B=t==="PPOM"?!0:!G.has(z.videoId))b:switch(z=z.musicVideoType,t){case "PPSE":B=z==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:B=z!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}z=B}else z=!1;return z}).map(function(z){var B;
return(B=z.musicTrackEntity)==null?void 0:B.videoId})};
yP0=function(X){var t=XF_(X).sort(function(G,y){return y.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return"downloadedMusicEntities"in G?G.downloadedMusicEntities:v_f(G)?G.downloadedMusicPlaylistEntities:{}});
X=x0V(X).sort(function(G,y){return y.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return"downloadedMusicEntities"in G?G.downloadedMusicEntities:v_f(G)?G.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:t,downloadedMusicPlaylistEntities:X}};
zOh=function(X,t){t=_.Md("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?G4E(X,t):U0Y(X,t);if(!t.length)return"TRANSFER_STATE_UNKNOWN";t=t.map(function(G){return rZv(X,G)});
return wFY(t)};
wFY=function(X){var t=new Set(X);if(t.has("TRANSFER_STATE_FAILED")&&t.size===1)return"TRANSFER_STATE_FAILED";t.delete("TRANSFER_STATE_FAILED");if(t.has("TRANSFER_STATE_UNKNOWN")&&t.size===1)return"TRANSFER_STATE_PRE_TRANSFER";t.delete("TRANSFER_STATE_UNKNOWN");if(t.has("TRANSFER_STATE_PRE_TRANSFER")&&t.size===1||t.size===0)return"TRANSFER_STATE_PRE_TRANSFER";X=t.has("TRANSFER_STATE_TRANSFERRING");t=t.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return X||t?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
mC=function(X){var t=X.mainVideoDownloadStateEntity,G=[];if(!t)return[];t=_.J(Object.keys(t));for(var y=t.next();!y.done;y=t.next()){var w=y.value;if(!CYA(X,_.hg(w).entityId)){y=UG(X,_.hg(w).entityId);var z=void 0,B=void 0;w=(B=Number((z=_.Kg(X,"mainVideoDownloadStateEntity",w))==null?void 0:z.addedTimestampMillis))!=null?B:(0,_.gl)();y!==void 0&&G.push({downloadedVideoEntities:y,addedTimestampMillis:w})}}return G};
Hc_=function(X){return mC(X).sort(function(t,G){return G.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return t.downloadedVideoEntities})};
_.JPG=function(X){var t=L2G(X),G=_.R$(X),y=I9J(X),w=mC(X).filter(function(B){var V,b;if((B==null?void 0:(V=B.downloadedVideoEntities)==null?void 0:(b=V.transferEntity)==null?void 0:b.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var e,g;B=B==null?void 0:(e=B.downloadedVideoEntities)==null?void 0:(g=e.videoEntity)==null?void 0:g.key;return _.A("kevlar_use_library_entity")?B&&(y.has(B)||G[B]):B&&!t.has(B)}),z=iew(X).filter(function(B){return zOh(X,B.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.RY(w),_.RY(z)).sort(function(B,V){return V.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return on6(B)})};
BzA=function(X,t){if(t&&StG(X,t)){var G,y,w=(y=(G=_.Kg(X,"playbackData",_.Cg(t,"playbackData")))!=null?G:void 0)==null?void 0:y.playerResponseJson;if(w){try{var z=JSON.parse(w);var B=_.Kg(X,"transfer",_.Cg(t,"transfer")),V=NBv(X,t);V&&(z=Object.assign({},z,{playerConfig:Object.assign({},z.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+V*1E3}}})}));z.cotn=B==null?void 0:B.cotn}catch(b){}return z}}};
_.VO6=function(X){var t,G,y;X=(y=(G=((t=X.downloadsPageViewConfigurationEntity)!=null?t:{})[_.iA])==null?void 0:G.smartDownloadsOptInBannerVisibility)!=null?y:{};var w;return(w=_.Y(X,nnf))!=null?w:{}};
_.R$=function(X){var t,G,y;X=(y=(G=((t=X.mainDownloadsListEntity)!=null?t:{})[_.bcE])==null?void 0:G.downloads)!=null?y:[];t={};G=_.J(X);for(y=G.next();!y.done;y=G.next())X=void 0,t[(X=y.value.videoItem)!=null?X:""]=!0;return t};
k4J=function(X){var t=_.R$(X);if(Object.keys(t).length===0)return!1;var G=X.mainVideoEntity;if(!G)return!0;G=_.J(Object.keys(G));for(var y=G.next();!y.done;y=G.next()){y=y.value;var w=_.hg(y).entityId;if(t[y]&&!CYA(X,w))return!1}return!0};
_.Lg=function(X){var t=_.R$(X);return mC(X).sort(function(G,y){return G.addedTimestampMillis-y.addedTimestampMillis}).map(function(G){return G.downloadedVideoEntities}).filter(function(G){var y;
return(G=G==null?void 0:(y=G.videoEntity)==null?void 0:y.key)&&!!t[G]})};
_.eO6=function(X){var t,G,y;X=(y=(G=((t=X.downloadsPageViewConfigurationEntity)!=null?t:{})[_.iA])==null?void 0:G.downloadsUpsellBannerVisibility)!=null?y:{};var w;return(w=_.Y(X,dPl))!=null?w:{}};
on6=function(X){return"downloadedVideoEntities"in X?X.downloadedVideoEntities:"downloadedPlaylistEntities"in X?X.downloadedPlaylistEntities:{}};
j9V=function(X){var t=_.R$(X),G=L2G(X),y=mC(X).filter(function(w){var z,B;return(w=w==null?void 0:(z=w.downloadedVideoEntities)==null?void 0:(B=z.videoEntity)==null?void 0:B.key)&&!t[w]&&!G.has(w)});
X=iew(X);return[].concat(_.RY(y),_.RY(X)).sort(function(w,z){return z.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return on6(w)})};
_.vK=function(X){if(!_.A("kevlar_use_library_entity"))return j9V(X);var t=mC(X).filter(function(y){var w,z;if(w=y=y==null?void 0:(w=y.downloadedVideoEntities)==null?void 0:(z=w.videoEntity)==null?void 0:z.key){var B,V,b;w=((V=(B=X.mainDownloadsListEntity)==null?void 0:B[QMs])==null?0:(b=V.downloads)==null?0:b.length)?I9J(X).has(y):!1}return w}),G=iew(X);
return[].concat(_.RY(t),_.RY(G)).sort(function(y,w){return w.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return on6(y)})};
gnY=function(X){var t=_.R$(X),G=L2G(X);return Hc_(X).filter(function(y){var w;return(y=y==null?void 0:(w=y.videoEntity)==null?void 0:w.key)&&!t[y]&&!G.has(y)})};
FYV=function(X){if(!_.A("kevlar_use_library_entity"))return gnY(X);var t=_.R$(X),G=I9J(X);return Hc_(X).filter(function(y){var w;return(y=y==null?void 0:(w=y.videoEntity)==null?void 0:w.key)&&!t[y]&&G.has(y)})};
Tz6=function(X,t){t=_.Cg(t,"settingEntity");var G,y,w;return!!((w=(y=((G=X.settingEntity)!=null?G:{})[t])==null?void 0:y.settingOptionValue)!=null?w:{}).boolValue};
_.a$=function(X){var t=_.Lg(X);if(D06(t))return 0;var G=[];t=_.J(t);for(var y=t.next();!y.done;y=t.next()){y=y.value;var w=void 0,z=void 0;if((w=y)==null?0:(z=w.videoEntity)==null?0:z.key)w=_.hg(y.videoEntity.key).entityId,y=X,w=_.Cg(w,"mainVideoDownloadStateEntity"),y=_.Kg(y,"mainVideoDownloadStateEntity",w),(y=Number(y==null?void 0:y.addedTimestampMillis))&&G.push(y)}return Math.max.apply(Math,_.RY(G))};
_.lA=function(X){return X.ui.richGridMiniMode};
_.x0=function(X){return X.ui.richGridItemsPerRow};
_.APJ=function(X){return X.ui.richGridSlimItemsPerRow};
_.YE0=function(X){return X.ui.guideIsExpanded};
_.fg=function(X){return X.ui.miniplayerIsActive};
_.s9V=function(X){return X.ui.singleOptionSurveyIsActive};
_.MQ=function(X){return X.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.DPf=function(X){return X.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.SEh=function(X){return X.ui.inlinePreviewIsActive};
_.hO_=function(X){return X.ui.inlinePreviewIsEnabled};
_.Zc6=function(X){return X.ui.miniplayerPlaybackState};
_.X0=function(X){return X.ui.isOnline};
_.qEl=function(X){return X.ui.frostedGlassMode};
_.$1=function(X,t){return W2h(X.entities,t)};
_.tp=function(X,t){return zOh(X.entities,t)};
Cg_=function(X,t){var G;if(t){var y;X=(y=_.Kg(X.entities,"offlineVideoPolicy",_.Cg(t,"offlineVideoPolicy")))==null?void 0:y.action}else X=void 0;return(G=X)!=null?G:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
KYl=function(X,t){var G;t?(X=_.Kg(X.entities,"offlineVideoPolicy",_.Cg(t,"offlineVideoPolicy")),X=Number(X==null?void 0:X.expirationTimestamp)):X=void 0;return(G=X)!=null?G:0};
_.OcV=function(X){return _.EG(X.entities).length};
usE=function(X,t){return UG(X.entities,t)};
Q9V=function(X,t){return RUA(X.entities,t)};
G8=function(X,t){return(X=UG(X.entities,t))?_.TBl([X]):0};
_.IBw=function(X,t){var G=_.Md("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(G){var y=X.entities;var w=G4E(y,t);if(w.length){var z=[];w=_.J(w);for(var B=w.next();!B.done;B=w.next())(B=Mfw(y,B.value))&&z.push(B);y=z}else y=[]}else y=m0G(X.entities,t);var V;if(G){var b=X.entities;t?(t=_.Cg(t,"musicPlaylist"),b=(V=b.musicPlaylist)==null?void 0:V[t],V=b!=null&&b.tracks?b.tracks.length:0):V=0}else V=X.entities,t?(t=_.Cg(t,"mainPlaylistEntity"),V=(b=V.mainPlaylistEntity)==null?void 0:b[t],V=V!=null&&V.videos?
V.videos.length:0):V=0;return y.length!==V?0:y?AZY(y):0};
_.WYv=function(X){return X.download.isLeaderTab};
_.cPV=function(X,t,G){if(!t&&G){var y=X.entities;if(G){var w=sMJ(G),z,B;t=(B=(z=_.Kg(y,"offlineabilityEntity",_.Cg(w,"offlineabilityEntity")))==null?void 0:z.addToOfflineButtonState)!=null?B:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else t="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else z=X.entities,t?(B=sMJ(t),t=(w=(y=_.Kg(z,"offlineabilityEntity",_.Cg(B,"offlineabilityEntity")))==null?void 0:y.addToOfflineButtonState)!=null?w:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):t="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return t};
pFA=function(X,t){X=X.entities;if(t){t=sMJ(t);var G,y;t=(y=(G=_.Kg(X,"offlineabilityEntity",_.Cg(t,"offlineabilityEntity")))==null?void 0:G.addToOfflineButtonState)!=null?y:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else t="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return t};
_.rPv=function(X){var t=X.entities;X=_.X0(X);var G=Tz6(t,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.A("kevlar_modern_downloads_page")&&G)var y=!1;else{var w,z;t=(z=(w=((y=t.downloadsPageViewConfigurationEntity)!=null?y:{})[_.iA])==null?void 0:w.smartDownloadsOptInBannerVisibility)!=null?z:{};y=X?!!t.visibleWithConnection:!!t.visibleWithoutConnection}return y};
_.Nz6=function(X){return Tz6(X.entities,"SMART_DOWNLOADS_ENABLED")};
_.Pgl=function(X){return k4J(X.entities)};
EnJ=function(X){return _.Lg(X.entities).every(function(t){var G;return(t==null?void 0:(G=t.transferEntity)==null?void 0:G.transferState)&&!F2Y.includes(t.transferEntity.transferState)})};
_.UPY=function(X){var t,G,y,w=(y=(G=((t=X.entities.downloadsPageViewConfigurationEntity)!=null?t:{})[_.iA])==null?void 0:G.downloadsUpsellBannerVisibility)!=null?y:{};return _.X0(X)?!!w.visibleWithConnection:!!w.visibleWithoutConnection};
_.mPJ=function(X,t){return CYA(X.entities,t)};
ROf=function(X,t){if(t){var G,y;X=(y=(G=_.Kg(X.entities,"downloadStatusEntity",_.Cg(t,"downloadStatusEntity")))==null?void 0:G.downloadState)!=null?y:"DOWNLOAD_STATE_UNKNOWN"}else X="DOWNLOAD_STATE_UNKNOWN";return X};
yl=function(X,t){return NBv(X.entities,t)};
aBE=function(X){X=_.ic6(X);var t=X.hours===void 0?0:X.hours,G=X.minutes===void 0?0:X.minutes,y=X.seconds===void 0?0:X.seconds,w=t>0;X=[];w&&(t=_.LYJ(t),X.push(t));t=w;t=t===void 0?!1:t;G=(["af","be","lt"].includes(_.wV)||t)&&G<10?vnG().format(G):(new Intl.NumberFormat("en-u-nu-latn")).format(G);X.push(G);G=vnG().format(y);X.push(G);G=":";"da fi id si sr sr-Latn".split(" ").includes(_.wV)&&(G=".");return X.join(G)};
_.ic6=function(X){var t=X.hours||0,G=X.minutes||0,y=X.seconds||0;t=y+G*60+t*3600+(X.days||0)*86400+(X.weeks||0)*604800+(X.months||0)*2629800+(X.years||0)*31557600;if(t<=0)return{hours:0,minutes:0,seconds:0};X=t;t=Math.floor(X/3600);X%=3600;G=Math.floor(X/60);y=Math.floor(X%60);return{hours:t,minutes:G,seconds:y}};
_.LYJ=function(X){X=(new Intl.NumberFormat("en-u-nu-latn")).format(X);var t=["fr"],G="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(_.wV)?X.replace(",","\u00a0"):t.includes(_.wV)?X.replace(",","\u202f"):G.includes(_.wV)?X.replace(",","."):X};
vnG=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
lB6=function(X){try{return(new _.z8(5)).format(X)}catch(t){}};
Hy=function(X){return{thumbnailOverlayDownloadingRenderer:{state:X}}};
xPJ=function(X){if(X=lB6(X))return{thumbnailOverlaySidePanelRenderer:{text:_.Ag(X),icon:{iconType:"PLAYLISTS"}}}};
fBs=function(){var X=_.Qf("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Ag(X),icon:{iconType:"PLAY_ALL"}}}};
MOw=function(X){X=_.oc(X,2);return _.wV!=="ru"&&_.wV!=="es_419"&&_.wV!=="es-419"&&_.wV!=="es"&&_.wV!=="es_US"&&_.wV!=="es-US"&&_.wV!=="fr"&&_.wV!=="pl"&&_.wV!=="it"&&_.wV!=="nl"&&_.wV!=="uk"&&_.wV!=="fr_CA"&&_.wV!=="fr-CA"||X===""?X:X[0].toLocaleUpperCase()+X.substring(1)};
$Wf=function(X){return function(t){var G=X(),y=_.oc(t,G.dateFormat);t=_.oc(t,G.timeFormat);var w=XNA.DATETIMEFORMATS[G.joinerStyle];w=w.replace(/'(?!')/g,"");w=w.replace("{0}",t);w=w.replace("{1}",y);return G.capitalize(w)}};
tTh=function(X){return X?typeof X.seconds==="string"&&(X.nanos===void 0||typeof X.nanos==="number"):!1};
Gm0=function(X){return new Date(Number(X.seconds)*1E3+(X.nanos||0)*1E-6)};
_.oc=function(X,t){if(typeof X.getTime==="function")X={date:X};else if(tTh(X))X={date:Gm0(X)};else if(typeof tTh(X.timestamp)&&typeof X.i18nInternalSecondsEastOfUtc==="number")X={date:Gm0(X.timestamp),timeZone:Jp(-X.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(X));var G=X;X=G.date;G=G.timeZone;t=y_6(t).format(X,G);_.wV==="zh-TW"&&(X=G?Number(y_6("H").format(X,G)):X.getHours(),t=X<5?t.replace("\u4e0a\u5348","\u51cc\u6668"):X<8?t.replace("\u4e0a\u5348","\u65e9\u4e0a"):X<12?
t.replace("\u4e0a\u5348","\u4e0a\u5348"):X<13?t.replace("\u4e0b\u5348","\u4e2d\u5348"):X<19?t.replace("\u4e0b\u5348","\u4e0b\u5348"):t.replace("\u4e0b\u5348","\u665a\u4e0a"));return t};
y_6=function(X){if(wNJ.has(X))return wNJ.get(X);var t=zT0(X);t=HuV(t);o6h!==!0&&(o6h=!0);J_J=!0;J_J=!1;t=new By(t,XNA);wNJ.set(X,t);return t};
zT0=function(X){return(new By(X,XNA)).patternParts_.map(function(t){return t.type===0?"'"+t.text+"'":t.text}).join("")};
HuV=function(X){return _.wV==="en"||_.wV==="es_US"||_.wV==="es-US"?X:X.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(t,G,y){return"H".repeat(G.length)+y})};
jI0=function(X,t){Bv_||(_.np=_.n6v,Bv_=new VTV);var G=Bv_;a:if(X=bu0(X),t=bu0(t||new Date),X>t)G=X.getTime()-t.getTime()>6048E5?_.oc(X,1):km0(X);else{for(var y=0;dWG(X,12*(y+1))<t;)++y;if(y>0)G=G.format(-y,0);else{for(y=0;dWG(X,y+1)<t;)++y;if(y>0)G=G.format(-y,2);else{X=t.getTime()-X.getTime();t=_.J(eTv);for(y=t.next();!y.done;y=t.next()){y=y.value;var w=y.unit,z=Math.floor(X/y.unitDuration);if(z>=(y.threshold===void 0?1:y.threshold)){G=G.format(-z,w);break a}}G=G.format(-0,7)}}}return G};
bu0=function(X){if(typeof X.getTime==="function")return X;if(tTh(X))return Gm0(X);throw Error("Ef`"+JSON.stringify(X));};
dWG=function(X,t){for(var G=0,y;;++G)if(y=new Date(X.getFullYear(),X.getMonth()+t,X.getDate()-G,X.getHours(),X.getMinutes(),X.getSeconds()),y.getMonth()===(X.getMonth()+t)%12)return y};
_.Vl=function(X){return{runs:[{text:X}]}};
_.bu=function(X){if(X&&X.simpleText)return X.simpleText;var t="";if(X&&X.runs)for(var G=0;G<X.runs.length;G++)X.runs[G].text&&(t+=X.runs[G].text);return t};
F4V=function(X,t,G,y){return X.videoEntity&&!X.policyEntity&&G!=="DOWNLOAD_STATE_FAILED"?[Hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:r9(X.policyEntity)&&t!=="TRANSFER_STATE_FAILED"&&t!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?t==="TRANSFER_STATE_PAUSED_BY_USER"?[Hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.NQ(t)?[Hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:X.videoEntity.lengthSeconds?g6s(X.videoEntity.lengthSeconds,y):[]:
[Hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
g6s=function(X,t){var G=[{thumbnailOverlayTimeStatusRenderer:{text:_.Ag(aBE({seconds:X})),style:"DEFAULT"}}];t&&(X=t<=0||X<=0?0:t>=X?100:Math.ceil(t*100/X),X>0&&G.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:X}}));return G};
Tvl=function(X,t,G,y,w){if(t==="TRANSFER_STATE_UNKNOWN"||!X)return{};if(_.NQ(t)||t==="TRANSFER_STATE_PRE_TRANSFER")var z=[Hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var B,V;if(t==="TRANSFER_STATE_COMPLETE"&&((B=X.mainPlaylistEntity)==null?0:(V=B.videos)==null?0:V.length)){if(_.A("web_modern_collections_v2")){var b;var e=(z=X.mainPlaylistEntity)==null?void 0:(b=z.videos)==null?void 0:b.length;z=(z=lB6(e))?{thumbnailOverlayBottomPanelRenderer:{text:_.Ag(z),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var g;z=xPJ((e=X.mainPlaylistEntity)==null?void 0:(g=e.videos)==null?void 0:g.length)}var F;z=[fBs(),Object.assign({},(F=z)!=null?F:{})]}else z=[]}F=z;a:if(t==="TRANSFER_STATE_PRE_TRANSFER")G=Y0(_.Qf("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(t==="TRANSFER_STATE_TRANSFER_IN_QUEUE")G=Y0(_.Qf("WAITING_TO_DOWNLOAD"));else if(_.NQ(t))G=Math.floor(G*100).toString(),G=Y0(_.Qf("DOWNLOADING_PERCENT",{percent:G},"Downloading... "+G+"%"));else{if(y&&(_.A("playlist_is_offline_selector_killswitch")&&
(w=_.gw().resolve(_.Jv).isNetworkAvailable()),w)){G=CS0(_.Qf("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ZB0(y));break a}G=void 0}t=t==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Qf("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},F.length?{thumbnailOverlays:F}:{},G?{viewPlaylistText:G}:{viewPlaylistText:_.Vl("")},t.length?{badges:t}:{})};
A_6=function(X,t,G,y,w,z){if(t==="TRANSFER_STATE_UNKNOWN"||!X)return{};if(y==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var B=F4V(X,t,y);if(X.videoEntity&&!X.policyEntity&&y!=="DOWNLOAD_STATE_FAILED"){var V=_.Qf("WAITING_TO_DOWNLOAD");if(V)return{shortViewCountText:_.Vl(V),publishedTimeText:void 0,thumbnailOverlays:B}}if(!r9(X.policyEntity)){z=X.policyEntity&&!Yt6(X.policyEntity)?_.Qf("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Qf("TRANSFER_FAILED",{},"Download failed");var b;if((b=X.policyEntity)==null?0:b.shortMessageForDisabledAction)z=X.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Y0(z),publishedTimeText:void 0,thumbnailOverlays:B}}if(t==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Vl(_.Qf("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:B};if(t==="TRANSFER_STATE_FAILED"||t==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Vl(_.Qf("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:B};if(t==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(b=_.Qf("WAITING_TO_DOWNLOAD"),y==="DOWNLOAD_STATE_PAUSED"&&(b=_.Qf("DOWNLOAD_PAUSED",{},"Download paused")),b))return{shortViewCountText:_.Vl(b),publishedTimeText:void 0,thumbnailOverlays:B};if(_.NQ(t))return X=Math.floor(G*100).toString(),{shortViewCountText:_.Vl(_.Qf("DOWNLOADING_PERCENT",{percent:X},"Downloading... "+X+"%")),publishedTimeText:void 0,thumbnailOverlays:B};t=void 0;X.videoEntity.publishedTimestampMillis&&
(t=new Date,w&&(t=new Date(w)),t=Y0(jI0(new Date(Number(X.videoEntity.publishedTimestampMillis)),t)));w=[];_.A("kevlar_woffle_badge_killswitch")||(w=[{metadataBadgeRenderer:{label:_.Qf("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var e;X=Y0((e=X.videoEntity.localizedStrings)==null?void 0:e.viewCount);return Object.assign({},z?{shortViewCountText:void 0}:{shortViewCountText:X},z?{}:{publishedTimeText:t},{badges:w,thumbnailOverlays:B})};
sIG=function(X,t){X=X===void 0?Y2E:X;switch(t.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:t.payload.playlistId,inviteLinkURL:t.payload.inviteLinkUrl};default:return X}};
S2V=function(X,t){X=X===void 0?DWV:X;switch(t.type){case "SET_CURRENT_FORM_ID":return t=t.payload.formId,X.currentFormId===t?X:{currentFormId:t,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var G=t.payload;t=G.groupId;G=G.command;if(X.currentFormId){var y=Object.assign({},X.commandsMap);y[t]=G;X=Object.assign({},X,{commandsMap:y})}return X;case "RESET_COMMAND_MAP":return Object.assign({},X,{commandsMap:{}});default:return X}};
Zu_=function(X,t){X=X===void 0?hTE:X;switch(t.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},X,{guideIsExpanded:t.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},X,{scrollAtTop:t.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},X,{guideIsVisibleButNotPersistent:t.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},X,{miniplayerIsActive:t.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},X,{singleOptionSurveyIsActive:t.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},X,{slimlineSurveyRatingSelectedIndex:t.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},X,{richGridMiniMode:t.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},X,{richGridItemsPerRow:t.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},X,{richGridSlimItemsPerRow:t.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},X,{richGridContainerWidth:t.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},X,{richGridStyle:t.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},X,{currentPageType:t.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},X,{inlinePreviewIsActive:t.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},X,{inlinePreviewIsEnabled:t.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},X,{darkModeIsEnabled:t.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
X,{miniplayerPlaybackState:t.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},X,{tabGesturesIsActive:t.payload});case "SET_ONLINE_STATUS":return Object.assign({},X,{isOnline:t.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},X,{chipBarIsSticky:t.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},X,{frostedGlassMode:t.payload});default:return X}};
CjJ=function(X,t){X=X===void 0?q2V:X;switch(t.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},X,{transcription:t.payload});case "SET_OVERLAY_STATE":return Object.assign({},X,{overlay:t.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return X}};
eof=function(){return Os(Object.assign({},{continuation:K4A,entities:iBE,download:Ou6,reportChannelAbuse:uNV,share:QIE,talkToRecs:IGh,ui:Zu_,voiceSearch:CjJ,watch:W4s,ypc:c_Y,shorts:pN_,radioButtonGroup:S2V,collabInviteLink:sIG},d4v))};
FVs=function(){return _.A("web_player_entities_middleware")?new k1(eof(),[j36,gZ6]):new k1(eof(),[j36])};
_.dV=function(){TGv||(TGv=FVs());return TGv};
ACs=function(X,t,G){if(X.length)return{titleText:_.Ag(t!=null?t:_.Qf("DOWNLOADS",void 0,"Downloads")),contents:X.map(function(y){var w=y.videoEntity;y={videoId:w.videoId,title:Y0(w.title),shortBylineText:Y0(y.channelEntity.title),thumbnail:w.thumbnail};var z=w.videoId?yl(_.dV().getState(),w.videoId):0;w.videoId&&G?y.navigationEndpoint=_.TG(w.videoId,G,void 0,void 0,z):w.videoId&&(y.navigationEndpoint=hF0(w.videoId,z,w.lengthSeconds));w.lengthSeconds&&(y.thumbnailOverlays=g6s(w.lengthSeconds,z));return{playlistPanelVideoRenderer:y}}),
totalVideos:X.length}};
YbJ=function(X){return(X=(0,_.RH.getValueByKeys)(X,"playlistId"))?{playlistId:X}:null};
s3_=function(){return{}};
D4A=function(X,t){return new _.Kh(function(G,y){X.then(function(w){if(w){if(w=t(w))return G(w);y()}},y)})};
Sbf=function(X){var t,G,y,w=(t=X.contents)==null?void 0:(G=t.twoColumnWatchNextResults)==null?void 0:(y=G.autoplay)==null?void 0:y.autoplay,z,B,V;t=(z=X.contents)==null?void 0:(B=z.twoColumnWatchNextResults)==null?void 0:(V=B.playlist)==null?void 0:V.playlist;return w&&t&&t.playlistId?{rawResponse:X,autoplayRenderer:w,playlistPanelRenderer:t,playlistId:t.playlistId}:null};
Zvv=function(X){var t=t===void 0?"UNKNOWN_INTERFACE":t;if(X.length===1)return X[0];var G=hoV[t];if(G){G=new RegExp(G);for(var y=_.J(X),w=y.next();!w.done;w=y.next())if(w=w.value,G.exec(w))return w}var z=[];Object.entries(hoV).forEach(function(B){var V=_.J(B);B=V.next().value;V=V.next().value;t!==B&&z.push(V)});
G=new RegExp(z.join("|"));X.sort(function(B,V){return B.length-V.length});
y=_.J(X);for(w=y.next();!w.done;w=y.next())if(w=w.value,!G.exec(w))return w;return X[0]};
_.el=function(X){return"/youtubei/v1/"+Zvv(X)};
_.jl=function(X){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:X}}}}};
_.F0=function(X){return _.jl(_.Vl(X))};
qbV=function(X,t){var G={mode:"NORMAL"};X&&(G.autoplayVideo=X.navigationEndpoint,G.nextButtonVideo=X.navigationEndpoint);t&&(G.previousButtonVideo=t.navigationEndpoint);return G};
Ov0=function(X,t,G){if(!G||!G.sets)return{sets:[qbV(X,t)]};var y=G.sets.find(function(B){return B.mode==="NORMAL"}),w=(0,_.RH.unsafeClone)(G);
if(!y)return w.sets.push(qbV(X,t)),w;if(!X)return G;y=_.RH.getValueByKeys.apply(null,[y].concat(_.RY(CRA)));var z=_.RH.getValueByKeys.apply(null,[X].concat(_.RY(KV0)));if(y===z)return G;w.sets=w.sets.filter(function(B){return B.mode!=="NORMAL"});
w.sets.push(qbV(X,t));return w};
uP6=function(X){return!!X.playlistPanelVideoRenderer&&!X.playlistPanelVideoRenderer.unplayableText};
Q3f=function(X){return!!X.playlistPanelVideoRenderer&&!!X.playlistPanelVideoRenderer.title};
I80=function(X,t){if(t.contents&&!(X>=t.contents.length)&&(X=t.contents.slice(X).find(uP6)))return X.playlistPanelVideoRenderer};
WV6=function(X,t){if(t.contents)return(t=t.contents.find(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId===X}))?t.playlistPanelVideoRenderer:void 0};
cCE=function(X,t){return t.contents?t.contents.findIndex(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId===X}):-1};
prs=function(X,t){return t.contents?t.contents.findIndex(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.playlistSetVideoId===X}):-1};
rCE=function(X,t){X.contents&&t!==-1&&X.contents.splice(t,1).length===1&&X.totalVideos!==void 0&&(--X.totalVideos,delete X.videoCountText)};
_.NGh=function(X){var t=[];if(!X||!X.contents)return t;X=_.J(X.contents);for(var G=X.next();!G.done;G=X.next())G=G.value,G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId&&t.push(G.playlistPanelVideoRenderer.videoId);return t};
_.PRV=function(X){if(X&&X.contents)return(X=X.contents.find(function(t){return!!t.playlistPanelVideoRenderer&&!!t.playlistPanelVideoRenderer.selected})||X.contents[X.currentIndex])?X.playlistPanelVideoRenderer:void 0};
EZ0=function(X,t,G,y,w,z,B){w=w===void 0?!1:w;z=z===void 0?!1:z;B=B===void 0?!1:B;if(X.contents&&X.contents.length!==0){y&&(X.contents=X.contents.filter(y));y=X.contents.length;for(var V=0;V<y;V++){var b=X.contents[V].playlistPanelVideoRenderer;b&&(V===t?(z&&delete b.menu,b.indexText=_.Vl("\u25b6")):w||X.isInfinite||b.indexText===void 0?delete b.indexText:b.indexText=_.Vl((V+1+G).toString()))}X.currentIndex=t+G;B&&(delete X.videoCountText,X.totalVideos=y)}};
_.T8=function(X){X=U4l(X);if(X){var t=X.length;var G=-56%t;G<0&&(G=t+G);X=X.slice(t-G)+X.slice(0,t-G)}else X="";G="";for(t=0;t<X.length&&X[t]!==m4Y;t++)G+=X[t];return G};
_.RoE=function(X,t){var G=document.body;t=t===void 0?function(V){return V}:t;
var y,w=null;X=_.J(X);for(y=X.next();!y.done;y=X.next()){var z=y.value;y="div";z[2]&&(y=t(z[2]));y=document.createElement(y);w||(w=y);var B=z[0];z=z[1];B&&(y.id=t(B));if(z)for(z=_.J(z),B=z.next();!B.done;B=z.next())y.classList.add(t(B.value));G.appendChild(y);G=y}return[w,G]};
ivf=function(X,t){for(var G="",y=0;y<t;y++)G+=X.charAt(Math.floor(Math.random()*X.length));return G};
Ap=function(X){return ivf("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",X)};
Y1=function(X){return ivf("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",X)};
s8=function(X){return ivf("0123456789",X)};
Dd=function(){var X=performance.now(),t=new Date;var G="2."+t.getFullYear()+String(t.getMonth()+1).padStart(2,"0")+String(t.getDate()).padStart(2,"0");for(var y,w=Math.floor(Math.random()*11)+15,z=[],B=0;B<w;B++)z.push(Math.floor(Math.random()*26476865)+24547720);y=z.join(",");var V=Ap(10),b=Ap(100),e=Ap(102),g=Ap(106),F=Ap(108),T=Ap(11),D=Ap(1140),h=Ap(123),u=Ap(14),W=Ap(16),c=Ap(1900),P=Ap(23),l=Ap(26),R=Ap(34),L=Ap(397),x=Ap(44),w6=Ap(5),BY=Ap(72),kJ=Ap(74),Ss=Ap(75),C_=Ap(88),Fv=Ap(91),Uh="rr1---sn-q4fl6n6r rr5---sn-q4flrnee rr5---sn-q4flrney rr2---sn-q4fzenee rr1---sn-5hnekn7k rr3---sn-5hne6n6e rr1---sn-t0a7lnee rr5---sn-hgn7rn7k rr3---sn-hgn7rn7r rr4---sn-5hnednss rr2---sn-q4fl6nsk rr1---sn-hgn7ynek rr1---sn-ntqe6n76 rr1---sn-5hne6n6e rr5---sn-q4flrn7r rr1---sn-q4fl6nsy rr3---sn-5hneknek rr5---sn-q4fl6n66 rr5---sn-q4fl6nsd rr4---sn-ntq7yney".split(" ");
var cY=Uh[Math.floor(Math.random()*Uh.length)];var f_=(new Date("2010-01-01")).getTime();var sq=(new Date(f_+Math.random()*((new Date).getTime()-f_))).toISOString().split("T")[0];for(var oq,ll=[],go=0;go<4;go++)ll.push(Math.floor(Math.random()*100));oq=ll.join(".");var kh=Number(s8(5)),Aq=Number(s8(6)),OR=Number(s8(7)),Mz=Number(s8(9)),HY=s8(1),yR=s8(10),hq=s8(16),gi=s8(19),TB=s8(2),Uq=s8(20),Gc=s8(21),XH=s8(3),n4=s8(4),lJ=s8(5),kV=s8(6),ZP=s8(7),K4=s8(8),Tr=s8(9);var nL=ivf("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var nT=[Y1(5),Y1(5),Y1(5)].join("%2C"),ZA=[s8(3),s8(5),s8(5)].join("%2C"),MY=Y1(0),vS=Y1(1),c4=Y1(10),GY=Y1(108),yW=Y1(11),nY=Y1(12),zl=Y1(13),Wx=Y1(14),W0=Y1(15),Vr=Y1(16),em=Y1(17),Df=Y1(18),p_=Y1(19),mE=Y1(2),Yh=Y1(20),B4=Y1(22),u_=Y1(23),AQ=Y1(24),DP=Y1(266),F4=Y1(3),CT=Y1(30),Fk=Y1(34),VR=Y1(35),s6=Y1(36),oS=Y1(4),p1=Y1(40),qV=Y1(43),G5=Y1(47),kl=Y1(5),il=Y1(6),oN=Y1(7),RN=Y1(75),pT=Y1(8),bG=Y1(80),H1=Y1(9),TY="https://www."+Y1(12)+".com",jm={},xE={},GH={},IYA={},yV={},$i={},tn={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:y}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:G},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Y1(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:G},{key:"client.name",value:"WEB"},{key:"client.fexp",value:y}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Gc+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Y1(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:p1,ypcGetOfflineUpsellEndpoint:{params:bG}},trackingParams:VR+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&cnr="+TB+"&ratebypass=yes&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&c=WEB&txp="+ZP+"&n="+W+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Aq,width:640,height:360,lastModified:hq,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ZP,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+ZA+"&mn="+
nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&cnr="+TB+"&ratebypass=yes&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&c=WEB&txp="+ZP+"&n="+W+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+GY+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Aq,width:1280,
height:720,lastModified:hq,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ZP,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+ZA+"&mn="+nT+"&ms="+
nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+Tr+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:OR,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:Tr,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:OR,approxDurationMs:ZP},{itag:248,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+ZA+"&mn="+nT+"&ms="+nT+"&mv="+
vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fwebm&ns="+AQ+"&gir="+F4+"&clen="+Tr+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:OR,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:Tr,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:OR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:399,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+Tr+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:OR,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:Tr,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:OR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:136,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+Tr+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:OR,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:Tr,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Aq,approxDurationMs:ZP},{itag:247,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+ZA+"&mn="+
nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fwebm&ns="+AQ+"&gir="+F4+"&clen="+Tr+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:OR,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:Tr,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Aq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:398,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+Tr+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:OR,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:Tr,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Aq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:135,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Aq,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Aq,approxDurationMs:ZP},{itag:244,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+ZA+"&mn="+
nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fwebm&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+GY+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:Aq,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Aq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:397,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Aq,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Aq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:134,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Aq,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Aq,highReplication:!0,approxDurationMs:ZP},{itag:243,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fwebm&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:Aq,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Aq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:396,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Aq,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Aq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:133,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Aq,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Aq,approxDurationMs:ZP},{itag:242,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+ZA+"&mn="+
nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fwebm&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:Aq,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Aq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:395,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Aq,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Aq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:160,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Aq,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kh,approxDurationMs:ZP},{itag:278,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+ZA+"&mn="+
nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fwebm&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:Aq,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kh,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:394,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&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="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=video%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:kh,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kh,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZP},{itag:140,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=audio%2Fmp4&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Aq,
initRange:{start:"0",end:"631"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Aq,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ZP,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+
TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=audio%2Fwebm&ns="+AQ+"&gir="+F4+"&clen="+ZP+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'audio/webm; codecs="opus"',bitrate:kh,initRange:{start:"0",end:"265"},indexRange:{start:XH,
end:n4},lastModified:hq,contentLength:ZP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:kh,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ZP,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=audio%2Fwebm&ns="+
AQ+"&gir="+F4+"&clen="+ZP+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'audio/webm; codecs="opus"',bitrate:kh,initRange:{start:"0",end:"265"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:ZP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:kh,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ZP,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+yR+"&ei="+P+"&ip="+oq+"&id=o-AF"+qV+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+ZA+"&mn="+nT+"&ms="+nT+"&mv="+vS+"&mvi="+HY+"&pl="+TB+"&initcwndbps="+ZP+"&siu="+HY+"&spc="+x+"&vprv="+HY+"&svpuc="+HY+"&mime=audio%2Fwebm&ns="+AQ+"&gir="+F4+"&clen="+K4+"&dur="+K4+"&lmt="+hq+"&mt="+yR+"&fvip=3&keepalive="+F4+"&c=WEB&txp="+
ZP+"&n="+Vr+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'audio/webm; codecs="opus"',bitrate:Aq,initRange:{start:"0",end:"265"},indexRange:{start:XH,end:n4},lastModified:hq,contentLength:K4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Aq,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ZP,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="+Tr+"&docid="+T+"&ei="+P+"&feature="+V+"&fexp="+MY+"&ns="+mE+"&plid="+W+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+vS+"&el="+c4+"&len="+n4+"&of="+B4+
"&uga="+TB+"&vm="+DP},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Tr+"&docid="+T+"&ei="+P+"&feature="+V+"&fexp="+MY+"&ns="+mE+"&plid="+W+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+vS+"&el="+c4+"&len="+n4+"&of="+B4+"&uga="+TB+"&vm="+DP},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Tr+"&docid="+T+"&ei="+P+"&feature="+V+"&fexp="+MY+"&ns="+mE+"&plid="+W+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
vS+"&el="+c4+"&len="+n4+"&of="+B4+"&uga="+TB+"&vm="+DP},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+P+"&m="+C_+"&oid="+B4+"&plid="+W+"&pltype="+oN+"&ptchn="+B4+"&ptk="+u+"&video_id="+T},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Tr+"&docid="+T+"&ei="+P+"&event="+Wx+"&feature="+V+"&fexp="+MY+"&ns="+mE+"&plid="+W+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+vS},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+T+"&ei="+P+"&feature="+
V+"&len="+n4+"&ns="+mE+"&plid="+W+"&ver="+HY,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+T+"&caps="+F4+"&opi="+Tr+"&xoaf="+HY+"&hl="+mE+"&ip="+oq+"&ipbits="+HY+"&expire="+yR+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+oq+"&key="+F4+"&lang="+w6,name:{simpleText:em},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+T+"&caps="+F4+"&opi="+Tr+"&xoaf="+HY+"&hl="+mE+"&ip="+oq+"&ipbits="+HY+"&expire="+yR+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+oq+"&key="+F4+"&kind="+F4+"&lang="+mE,name:{simpleText:yW},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:yW,title:H1,lengthSeconds:"1155",keywords:[Df,c4,yW,zl],
channelId:AQ,isOwnerViewing:!1,shortDescription:em,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+s6+"G&rs="+Fk,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+s6+"G&rs="+Fk,width:196,height:110},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+s6+"G&rs="+R,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+s6+"G&rs="+R,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
T+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:ZP,author:zl,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:ZP,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+B4+"/featured_channel.jpg?v="+pT,width:40,height:40}]},trackingParams:VR+"=",navigationEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"/channel/"+AQ,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:AQ}},channelName:zl,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Df}]},subscribed:!1,enabled:!0,type:"FREE",channelId:AQ,showPreferences:!1,subscribedButtonText:{runs:[{text:em}]},unsubscribedButtonText:{runs:[{text:Wx}]},trackingParams:VR+"=",unsubscribeButtonText:{runs:[{text:il}]},serviceEndpoints:[{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[AQ],params:pT}},{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:p1,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:VR+"=",dialogMessages:[{runs:[{text:p_},{text:Wx},{text:Yh}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:c4}]},serviceEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[AQ],params:pT}},accessibility:{label:kl},trackingParams:VR+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:kl}]},accessibility:{label:yW},trackingParams:VR+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:il}},unsubscribeAccessibility:{accessibilityData:{label:p_}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:K4},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[AQ],params:pT}},unsubscribeCommand:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[AQ],params:pT}},addToWatchLaterCommand:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:yW,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:yW}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+T+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+s6+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
T+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+yW,width:1280,height:720},title:{simpleText:pT},description:{simpleText:zl},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+yW,externalChannelId:AQ,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:ZP,category:"Travel & Events",publishDate:sq,ownerChannelName:zl,uploadDate:sq}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:nY},trackingParams:VR+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:p1,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:VR+"="}}],headerText:{simpleText:p_},icon:{infoCardIconRenderer:{trackingParams:VR+"="}},closeButton:{infoCardIconRenderer:{trackingParams:VR+"="}},trackingParams:VR+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:VR+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+yW+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:nL,interpreterSafeUrl:(jm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+CT+".js",jm),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Vr},{text:oN,bold:!0}]},endpoint:{clickTrackingParams:p1,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:VR+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:pT}]},actionButton:{buttonRenderer:{text:{runs:[{text:pT}]},navigationEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+T,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
T,target:"TARGET_NEW_WINDOW"}},trackingParams:VR+"="}},trackingParams:VR+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+BY+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+BY+"=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:ZP,endMs:ZP,title:{accessibility:{accessibilityData:{label:zl}},simpleText:kl},metadata:{simpleText:il},callToAction:{simpleText:Wx},dismiss:{simpleText:W0},endpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"/channel/"+AQ,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:AQ}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:W0}]},subscribed:!1,enabled:!0,type:"FREE",channelId:AQ,showPreferences:!1,
subscribedButtonText:{runs:[{text:p_}]},unsubscribedButtonText:{runs:[{text:Vr}]},trackingParams:VR+"=",unsubscribeButtonText:{runs:[{text:c4}]},serviceEndpoints:[{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[AQ],params:pT}},{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:p1,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:VR+
"=",dialogMessages:[{runs:[{text:W0},{text:oS},{text:em}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:oN}]},serviceEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[AQ],params:pT}},accessibility:{label:oS},trackingParams:VR+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:oS}]},
accessibility:{label:nY},trackingParams:VR+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Df}},unsubscribeAccessibility:{accessibilityData:{label:il}}}},trackingParams:VR+"=",isSubscribe:!0,id:Uq}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+s6+"G&rs="+R,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+s6+"G&rs="+Fk,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+s6+"G&rs="+R,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+s6+"G&rs="+R,width:336,height:188},{url:"https://i.ytimg.com/vi/"+T+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:ZP,endMs:ZP,title:{accessibility:{accessibilityData:{label:Yh}},simpleText:nY},metadata:{simpleText:p_},endpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
yW,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:yW,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+cY+".googlevideo.com/videoplayback?source=youtube&oeis="+HY+"&c=WEB&oad="+n4+"&ovd="+n4+"&oaad="+lJ+"&oavd="+lJ+"&ocs="+XH+"&oewis="+HY+"&oputc="+HY+"&ofpcc="+HY+"&siu="+HY+"&msp="+HY+"&odepv="+HY+
"&id=o-AF"+qV+"&ip="+oq+"&initcwndbps="+ZP+"&mt="+yR+"&oweuc="+MY}}}}},trackingParams:VR+"=",id:Uq,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:yW}},simpleText:kl},style:"DEFAULT"}}]}}],startMs:ZP,trackingParams:VR+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:HY,offsetEndMilliseconds:lJ},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Tr+";dc_trk_cid="+Tr+";dc_dbm_token="+F+";ord="+yR+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";dc_rui="+HY+";dc_exteid="+Uq+";dc_av="+XH+";dc_sk="+HY+";dc_ctype="+TB+";dc_ref=http://www.youtube.com/video/"+yW+";dc_pubid="+HY+";dc_btype=23?gclid="+Fv+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+HY+"&ns="+HY+"&event="+HY+"&device="+HY+"&content_v="+T+"&el="+c4+"&ei="+P+"&devicever="+G+"&bti="+ZP+"&format="+kV+"&break_type="+HY+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+HY+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+oq+"&slot_pos="+HY+"&slot_len="+HY+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+ZA+"&ad_len="+lJ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
yW+"&aqi="+P+"&ad_rmp="+HY+"&sli="+HY}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+
";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+kV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+ZP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&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"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&ctype="+XH+"&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"+
D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_engaged_view&ctype="+XH+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+kV+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Tr+";dc_trk_cid="+Tr+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";ord="+Tr+";dc_rui="+HY+";dc_exteid="+gi+";dc_av="+HY+";dc_sk="+HY+";dc_ctype="+TB+";dc_pubid="+HY+";dc_btype=3?gclid="+Fv+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+e+"&sig="+u_+"&ad_cpn=[AD_CPN]&id="+il+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+il+"&dc_pubid="+HY+"&dc_exteid="+Uq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+e+"&sig="+u_+"&ad_cpn=[AD_CPN]&id="+il+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+HY},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+il+"&avm="+HY+"&dc_pubid="+HY+"&dc_exteid="+
Uq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&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="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
e+"&sig="+u_+"&ad_cpn=[AD_CPN]&id="+il+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+HY},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+il+"&dc_pubid="+HY+"&dc_exteid="+Uq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+kV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+kV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:p1,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+
XH+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:VR+"="},trackingParams:VR+
"=",templatedCountdown:{templatedAdText:{text:nY,isTemplated:!0,trackingParams:VR+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:pT,isTemplated:!1,trackingParams:VR+"="},trackingParams:VR+"="}},trackingParams:VR+"=",skipOffsetMilliseconds:5E3}},trackingParams:VR+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:W0},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VR+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Wx,isTemplated:!1,trackingParams:VR+"="},trackingParams:VR+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Df,isTemplated:!0,trackingParams:VR+"="}},trackingParams:VR+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:p1,openPopupAction:{popup:{aboutThisAdRenderer:{url:(xE.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+mE+"&origin=www.youtube.com&ata_theme="+oS,xE),trackingParams:VR+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:VR+"="}},hoverText:{runs:[{text:Yh}]},trackingParams:VR+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+G5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:VR+"="},headline:{text:H1,isTemplated:!1,trackingParams:VR+"="},description:{text:pT,
trackingParams:VR+"="},actionButton:{buttonRenderer:{text:{simpleText:oN},navigationEndpoint:{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Tr+";dc_trk_cid="+Tr+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";ord="+Tr+";dc_rui="+HY+";dc_exteid="+Uq+";dc_av="+HY+";dc_sk="+HY+";dc_ctype="+TB+";dc_pubid="+HY+";dc_btype=3?gclid="+Fv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VR+"="}},startMs:HY,trackingParams:VR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:il},elementId:pT}},elementId:H1,trackingParams:VR+"=",legacyInfoCardVastExtension:W0,sodarExtensionData:{siub:Df,bgub:oN,scs:Df,bgp:pT},externalVideoId:yW,adLayoutLoggingData:{serializedAdServingDataEntry:Vr},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+G5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:VR+"="},
headline:{text:Df,isTemplated:!1,trackingParams:VR+"="},description:{text:oN,isTemplated:!1,trackingParams:VR+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:H1},navigationEndpoint:{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Tr+";dc_trk_cid="+Tr+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";ord="+Tr+";dc_rui="+HY+";dc_exteid="+
Uq+";dc_av="+HY+";dc_sk="+HY+";dc_ctype="+TB+";dc_pubid="+HY+";dc_btype=3?gclid="+Fv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+
HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VR+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:VR+"="}},navigationEndpoint:{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Tr+";dc_trk_cid="+
Tr+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";ord="+Tr+";dc_rui="+HY+";dc_exteid="+Uq+";dc_av="+HY+";dc_sk="+HY+";dc_ctype="+TB+";dc_pubid="+HY+";dc_btype=3?gclid="+Fv+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+
h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VR+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:VR+"="},abandonCommands:{commands:[{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&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="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+
HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:p1,commandExecutorCommand:{commands:[{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:yW,isTemplated:!1,trackingParams:VR+
"="},trackingParams:VR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:p_},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+ZP+";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="+Tr+";dc_trk_cid="+Tr+";ord="+yR+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";dc_rui="+HY+";dc_exteid="+Uq+";dc_av="+XH+";dc_sk="+HY+";dc_ctype="+TB+";dc_ref=http://www.youtube.com/video/"+yW+";dc_pubid="+HY+";dc_btype=23?gclid="+Fv+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+HY+"&ns="+HY+"&event="+HY+"&device="+HY+"&content_v="+T+"&el="+c4+"&ei="+P+"&devicever="+G+"&bti="+ZP+"&format="+kV+"&break_type="+HY+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+HY+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+oq+"&slot_pos="+HY+"&slot_len="+HY+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
ZA+"&ad_len="+lJ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+yW+"&aqi="+P+"&ad_rmp="+HY+"&sli="+HY}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+kV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+
l+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+ZP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&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"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&ctype="+XH+"&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"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_engaged_view&ctype="+XH+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+kV+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+e+"&sig="+u_+"&ad_cpn=[AD_CPN]&id="+
il+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+il+"&dc_pubid="+HY+"&dc_exteid="+Uq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+e+
"&sig="+u_+"&ad_cpn=[AD_CPN]&id="+il+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+HY},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+il+"&avm="+HY+"&dc_pubid="+HY+"&dc_exteid="+Uq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&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="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+e+"&sig="+u_+"&ad_cpn=[AD_CPN]&id="+il+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+HY},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+il+"&dc_pubid="+HY+"&dc_exteid="+Uq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+kV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+kV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+
XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:VR+"="},trackingParams:VR+"=",templatedCountdown:{templatedAdText:{text:Df,isTemplated:!0,trackingParams:VR+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:oN,isTemplated:!1,trackingParams:VR+"="},trackingParams:VR+"="}},
trackingParams:VR+"=",skipOffsetMilliseconds:5E3}},trackingParams:VR+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Wx},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VR+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Df,isTemplated:!1,trackingParams:VR+"="},trackingParams:VR+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:W0,
isTemplated:!0,trackingParams:VR+"="}},trackingParams:VR+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:p1,openPopupAction:{popup:{aboutThisAdRenderer:{url:(GH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+mE+"&origin=www.youtube.com&ata_theme="+oS,GH),trackingParams:VR+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:VR+"="}},hoverText:{runs:[{text:Wx}]},trackingParams:VR+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kJ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:VR+"="},headline:{text:Df,isTemplated:!1,trackingParams:VR+"="},description:{text:Vr,trackingParams:VR+"="},actionButton:{buttonRenderer:{text:{simpleText:nY},navigationEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VR+"="}},startMs:HY,trackingParams:VR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:oN},elementId:yW}},elementId:Wx,trackingParams:VR+"=",legacyInfoCardVastExtension:oN,sodarExtensionData:{siub:Df,bgub:p_,scs:p_,bgp:pT},externalVideoId:yW,adLayoutLoggingData:{serializedAdServingDataEntry:yW},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kJ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:VR+"="},headline:{text:Df,
isTemplated:!1,trackingParams:VR+"="},description:{text:W0,isTemplated:!1,trackingParams:VR+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:pT},navigationEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VR+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:VR+"="}},navigationEndpoint:{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+
HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VR+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:VR+"="},abandonCommands:{commands:[{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&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="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+TB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:p1,commandExecutorCommand:{commands:[{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:pT,isTemplated:!1,trackingParams:VR+"="},trackingParams:VR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Yh},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+HY+";dc_exteid="+Uq+";met="+HY+";ecn"+HY+"="+HY+";etm1="+HY+";eid1="+
ZP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Vr}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:H1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lJ,offsetEndMilliseconds:kV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+TB+"&token=ALHj"+L+"&index="+HY+"&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="+G+"&m_pos_ms="+lJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pT}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:kV,offsetEndMilliseconds:kV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+XH+"&token=ALHj"+L+"&index="+HY+"&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="+
G+"&m_pos_ms="+kV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:kV,offsetEndMilliseconds:kV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+XH+"&token=ALHj"+L+"&index="+HY+"&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="+
G+"&m_pos_ms="+kV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:W0}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:kV,offsetEndMilliseconds:kV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+XH+"&token=ALHj"+L+"&index="+HY+"&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="+
G+"&m_pos_ms="+kV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:c4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:kV,offsetEndMilliseconds:TB},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+XH+"&token=ALHj"+L+"&index="+HY+"&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="+
G+"&m_pos_ms="+kV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:yW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:TB,offsetEndMilliseconds:TB},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+TB+"&token=ALHj"+L+"&index="+HY+"&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="+
G+"&m_pos_ms="+TB}},adSlotLoggingData:{serializedSlotAdServingDataEntry:H1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:zl,isTemplated:!1,trackingParams:VR+"="},description:{text:c4,isTemplated:!1,trackingParams:VR+"="},actionButton:{buttonRenderer:{text:{simpleText:pT},navigationEndpoint:{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Tr+";dc_trk_cid="+Tr+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";ord="+Tr+";dc_rui="+HY+";dc_exteid="+Uq+";dc_av="+HY+";dc_sk="+HY+";dc_ctype="+TB+";dc_pubid="+HY+";dc_btype=3?gclid="+Fv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VR+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+G5+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:VR+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ss+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:VR+"="},navigationEndpoint:{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Tr+";dc_trk_cid="+Tr+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";ord="+Tr+
";dc_rui="+HY+";dc_exteid="+Uq+";dc_av="+HY+";dc_sk="+HY+";dc_ctype="+TB+";dc_pubid="+HY+";dc_btype=3?gclid="+Fv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VR+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:p1,openPopupAction:{popup:{aboutThisAdRenderer:{url:(IYA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+mE+"&origin=www.youtube.com&ata_theme="+oS,IYA),trackingParams:VR+"="}},popupType:"DIALOG"}},trackingParams:VR+"="}},hoverText:{runs:[{text:zl}]},trackingParams:VR+"="}},adVideoId:yW,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nY},associatedCompositePlayerBytesLayoutId:Vr}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Wx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:il,isTemplated:!1,trackingParams:VR+"="},description:{text:Yh,isTemplated:!1,trackingParams:VR+"="},actionButton:{buttonRenderer:{text:{simpleText:H1},navigationEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+
h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VR+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kJ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:VR+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+RN+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:VR+"="},navigationEndpoint:{clickTrackingParams:p1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+
HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VR+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:p1,openPopupAction:{popup:{aboutThisAdRenderer:{url:(yV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+mE+"&origin=www.youtube.com&ata_theme="+oS,yV),trackingParams:VR+"="}},popupType:"DIALOG"}},trackingParams:VR+"="}},
hoverText:{runs:[{text:W0}]},trackingParams:VR+"="}},adVideoId:yW,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+yW+"&cid="+l+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nY},associatedCompositePlayerBytesLayoutId:Vr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:kl,
isTemplated:!1,trackingParams:VR+"="},description:{text:c4,isTemplated:!1,trackingParams:VR+"="},actionButton:{buttonRenderer:{text:{simpleText:p_},navigationEndpoint:{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Tr+";dc_trk_cid="+Tr+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";ord="+Tr+";dc_rui="+HY+";dc_exteid="+Uq+";dc_av="+HY+";dc_sk="+HY+";dc_ctype="+
TB+";dc_pubid="+HY+";dc_btype=3?gclid="+Fv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+
R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VR+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+G5+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:VR+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ss+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:VR+
"="},navigationEndpoint:{clickTrackingParams:p1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Tr+";dc_trk_cid="+Tr+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+HY+";ord="+Tr+";dc_rui="+HY+";dc_exteid="+Uq+";dc_av="+HY+";dc_sk="+HY+";dc_ctype="+TB+";dc_pubid="+HY+";dc_btype=3?gclid="+Fv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+D+"____________"+h+"AxAA&ase=2&num="+HY+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+TY+"&label=video_click_to_advertiser_site&ctype="+XH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VR+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:p1,openPopupAction:{popup:{aboutThisAdRenderer:{url:($i.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+mE+"&origin=www.youtube.com&ata_theme="+oS,$i),trackingParams:VR+"="}},popupType:"DIALOG"}},trackingParams:VR+
"="}},hoverText:{runs:[{text:kl}]},trackingParams:VR+"="}},adVideoId:yW,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+D+"____________"+h+"AxAA&sigh="+T+"&cid="+l+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:H1},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Vr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:p_}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:CT,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:CT,command:{innertubeCommand:{clickTrackingParams:p1,ypcGetOfflineUpsellEndpoint:{params:bG}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:VR+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:yR,nanos:Mz}}}},es0=JSON.stringify(tn),Gn=performance.now()-X;return{objectRepresentation:tn,jsonRepresentation:es0,generationTime:Gn}};
LVv=function(X,t){if(X===t)return!0;if(!X||!t||typeof X!==typeof t)return!1;if(X instanceof Array&&t instanceof Array){if(X.length!==t.length)return!1;for(var G=0;G<X.length;G++)if(!LVv(X[G],t[G]))return!1;return!0}if(typeof X==="object"&&typeof t==="object"&&X&&t){for(G in X)if(!(G in t&&LVv(X[G],t[G])))return!1;for(var y in t)if(!(y in X))return!1;return!0}return!1};
_.hp=function(){if(!Sl){Sl=new Zo(new vZG);var X=_.At("client_streamz_web_flush_count",-1);X!==-1&&(Sl.invocationLimit=X)}return Sl};
Zd=function(X,t,G,y){if(X===t)return!0;if(Array.isArray(X)&&Array.isArray(t)){if(X.length!==t.length)return!1;for(var w=0;w<X.length;w++)if(!Zd(X[w],t[w],G,y))return!1;return!0}if(X instanceof Set||t instanceof Set){if(X instanceof Set&&t instanceof Set){if(X.size!==t.size)return!1;y=_.J(X.values());for(w=y.next();!w.done;w=y.next())if(!t.has(w.value))return!1;return!0}return!1}if(X instanceof Function){if(y)return!0;X.name===""&&_.xA(Error("If"),"ERROR");return!1}if(X instanceof Date&&t instanceof
Date)return X.getTime()===t.getTime();if(X instanceof Object&&t instanceof Object){if(a8J(X)&&a8J(t))try{return X.equals(t)}catch(B){_.xA(Error("Jf`"+B),"ERROR")}w=Object.getOwnPropertyNames(X).filter(function(B){return G?X[B]!==void 0:!0});
var z=Object.getOwnPropertyNames(t).filter(function(B){return G?t[B]!==void 0:!0});
if(w.length!==z.length)return!1;w=_.J(w);for(z=w.next();!z.done;z=w.next())if(z=z.value,!Zd(X[z],t[z],G,y))return!1;return!0}return!1};
a8J=function(X){X=Object.getPrototypeOf(X).equals;return X instanceof Function&&X.length===1};
_.f8V=function(){return _.n(function(X){if(X.nextAddress==1)return l8_!==2?X.jumpTo(2):X.yield(x40(),3);X.nextAddress!=2&&(l8_=X.yieldResult);return X.return(l8_)})};
_.$ZG=function(){return _.n(function(X){if(X.nextAddress==1)return _.A("ab_pl_man")?MVv!==2?X.jumpTo(2):X.yield(XCE(),3):X.return(1);X.nextAddress!=2&&(MVv=X.yieldResult);return X.return(MVv)})};
yB0=function(){return _.n(function(X){if(X.nextAddress==1)return _.A("ab_fk_sk_cl")?tCv!==2?X.jumpTo(2):X.yield(GK_(),3):X.return(1);X.nextAddress!=2&&(tCv=X.yieldResult);return X.return(tCv)})};
_.Hr0=function(){return _.n(function(X){if(X.nextAddress==1)return _.A("ab_det_apb_b")?wCA!==2?X.jumpTo(2):X.yield(zwG(),3):X.return(1);X.nextAddress!=2&&(wCA=X.yieldResult);return X.return(wCA)})};
BQh=function(){var X;return _.n(function(t){if(t.nextAddress==1)return t.yield(Promise.all([_.f8V(),_.Hr0(),_.$ZG(),yB0()]),2);if(t.nextAddress!=3)return oQJ()?t.return(!0):t.yield(_.JB_(),3);X=t.yieldResult;return t.return(X===0)})};
oQJ=function(){var X=!1,t=function(G,y){nQh.increment(y,G);G===0&&(X=!0)};
t(_.VCJ(),"j.s_");t(l8_,"f.i_");t(wCA,"a.b_");t(MVv,"p.m_");t(tCv,"i.f_");brG===2&&(brG=_.kKl(dZf));t(brG,"e.h_");_.A("ks_det_gpbl")||t(_.ew_(),"p.i_");_.A("ks_get_o_pp")||t(_.jhG(),"g.o_");_.A("ab_deg_unex_thr")||t(_.gQh(),"a.o_");t(Fk0,"s.t_");_.A("ab_det_sc_inj_enf")&&t(_.TQG(),"s.i_");t(ABV,"d.p_");t(_.Y$V(_.qr),"o.p_");t(_.shY()===0?0:_.DZV(),"o.a_");return _.A("debug_sk_em_precheck")?!0:X};
hwh=function(){var X=[].concat(_.RY(S$v));try{var t=Dd();X.push({jsonRepresentation:t.jsonRepresentation,objectRepresentation:t.objectRepresentation})}catch(G){X=[].concat(_.RY(S$v))}return X};
ZrE=function(){var X=["adPlacements","adSlots"];try{return X.filter(function(){return!0}).length!==X.length?0:1}catch(t){return 0}};
_.jhG=function(){if(ZrE()===0)return 0;var X=Dd(),t=X.objectRepresentation,G=(0,_.RH.unsafeClone)(t),y=[];if(t&&typeof t==="object")for(var w in t)y.push(w);else return 4;X=X.objectRepresentation.adPlacements;if(!(X&&X.length>0))return 4;try{if(!LVv(y,Object.getOwnPropertyNames(t)))return 0}catch(z){return 0}return LVv(G,t)?1:0};
_.Y$V=function(X){if(!X||!X.length||typeof X==="string")return 0;for(var t=Object.getOwnPropertyNames(Object.prototype),G=0;G<X.length;G++)for(var y=_.T8(X[G]),w=_.J(t),z=w.next();!z.done;z=w.next())if(y===z.value)return 0;return 1};
q$J=function(X){var t=_.T8(X[1]);if(X[0]===null)return t;X=X[0];for(var G={},y=0;y<X.length;y++){var w=_.T8(X[y]);if(y===0)G[w]=t;else{var z={};z[w]=G;G=z}}return G};
_.shY=function(){for(var X=_.Cp,t=0;t<X.length;t++){var G=q$J(X[t]),y=[];y.push(G);if(y.length===0)return 0}return 1};
_.DZV=function(){for(var X=_.Cp,t={},G=0;G<X.length;t={z4q:void 0},G++){var y=[q$J(X[G])];t.z4q=[];y.forEach(function(w){return function(z){w.z4q[w.z4q.length]=z}}(t));
if(t.z4q.length===0)return 0}return 1};
_.VCJ=function(){for(var X=_.J(hwh()),t=X.next();!t.done;t=X.next()){var G=t.value;t=G.jsonRepresentation;G=G.objectRepresentation;try{var y=JSON.parse(t);if(!Zd(y,G,!1,!1))return 0}catch(w){return 0}}return 1};
_.TQG=function(){try{var X=_.sc("ab_det_sc_inj_val");X.length===1&&X[0]===""&&(X=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var t=document.querySelectorAll("script"),G=_.J(t),y=G.next();!y.done;y=G.next())for(var w=y.value,z=_.J(X),B=z.next();!B.done;B=z.next()){var V=B.value;t=void 0;if((t=w.textContent)==null?0:t.includes(V))return 0}}catch(b){return 4}return 1};
_.JB_=function(){var X,t,G,y,w,z,B;return _.n(function(V){switch(V.nextAddress){case 1:_.CL(V,2),X=_.J(S$v),t=X.next();case 4:if(t.done)return V.return(1);y=G=t.value;w=y.jsonRepresentation;z=y.objectRepresentation;return V.yield((new Response(w,{status:200})).json(),7);case 7:B=V.yieldResult;if(!Zd(B,z,!1,!1))return V.return(0);t=X.next();V.jumpTo(4);break;case 2:return _.IY(V),V.return(4)}})};
_.gQh=function(){try{btoa("abc")}catch(X){return 0}return 1};
x40=function(){var X,t,G,y,w,z,B,V,b,e,g;return _.n(function(F){switch(F.nextAddress){case 1:_.CL(F,2),X=_.J(hwh()),t=X.next();case 4:if(t.done)return F.return(1);y=G=t.value;w=y.jsonRepresentation;z=y.objectRepresentation;B=btoa(w);V="data:application/json;base64,"+B;b=new Request(V);Object.defineProperty(b,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(b,"method",{get:function(){return"POST"}});
Object.defineProperty(b,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(b,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(b,"body",{get:function(){return new ReadableStream}});
return F.yield(fetch(b),7);case 7:return e=F.yieldResult,F.yield(e.json(),8);case 8:g=F.yieldResult;if(!Zd(g,z,!1,!1))return F.return(0);t=X.next();F.jumpTo(4);break;case 2:return _.IY(F),F.return(4)}})};
_.kKl=function(X){if(!X||!X.length||typeof X==="string")return 0;for(var t=function(w){return _.T8(w)},G=2,y=0;y<X.length&&(G=_.CVY(_.RoE(X[y],t)),G!==0);y++);
return G};
_.CVY=function(X){var t=_.J(X);X=t.next().value;t=t.next().value;try{var G=document.createElement("div");document.body.appendChild(G);var y=getComputedStyle(G).display;document.body.removeChild(G);if(y==="none")return 4;var w=getComputedStyle(t).display==="none"?0:1;document.body.removeChild(X);return w}catch(z){return 4}};
GK_=function(){var X,t,G;return _.n(function(y){X=new _.Kp;t=document.createElement("button");t.classList.add("ytp-ad-skip-button");t.style.opacity="0";t.style.height="0px";t.style.width="0px";t.style.padding="0px";t.style.border="none";G=function(){t.parentElement&&t.parentElement.removeChild(t)};
t.onclick=function(){X.resolve(0);G()};
document.body.appendChild(t);setTimeout(function(){G();X.resolve(1)},50);
return y.return(X.promise)})};
XCE=function(){var X,t,G,y,w,z,B;return _.n(function(V){X=new _.Kp;t=document.createElement("ytd-player");try{document.body.prepend(t)}catch(b){return V.return(4)}G=function(){t.parentElement&&t.parentElement.removeChild(t)};
t.getElementsByTagName("div").length>0?y=t.getElementsByTagName("div")[0]:(y=document.createElement("div"),t.appendChild(y));w=document.createElement("div");y.appendChild(w);z=document.createElement("video");B=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"});z.src=_.Rj(_.xg(B));z.ontimeupdate=function(){G();X.resolve(0)};
w.appendChild(z);z.classList.add("html5-main-video");setTimeout(function(){w.classList.add("ad-interrupting")},200);
setTimeout(function(){G();X.resolve(1)},5E3);
return V.return(X.promise)})};
KkA=function(X,t){var G,y;return _.n(function(w){switch(w.nextAddress){case 1:G=[],y=0;case 2:if(!(y<3)){w.jumpTo(4);break}return w.yield(fetch(X,{cache:"no-store",method:t}).then(function(z){G.push(z.status)}).catch(function(){G.push(-1)}),3);
case 3:y++;w.jumpTo(2);break;case 4:return w.return(G)}})};
Orl=function(X){return X.domainLookupStart===0&&X.domainLookupEnd===0&&X.connectStart===0&&X.connectEnd===0};
uW6=function(X,t,G){G=G===void 0?"GET":G;var y,w,z,B,V,b,e,g,F,T;return _.n(function(D){if(D.nextAddress==1)return D.yield(Promise.all([KkA(X,G),KkA(t,G)]),2);y=D.yieldResult;w=_.J(y);z=w.next().value;B=w.next().value;V=z;b=B;if(Math.min.apply(Math,_.RY(b))!==Math.max.apply(Math,_.RY(b))||Math.min.apply(Math,_.RY(V))!==Math.max.apply(Math,_.RY(V)))return D.return(2);if(Math.min.apply(Math,_.RY(b))===Math.min.apply(Math,_.RY(V)))return D.return(1);g=(e=performance.getEntriesByName(X))==null?void 0:
e[0];T=(F=performance.getEntriesByName(t))==null?void 0:F[0];return g&&T?Orl(T)?D.return(1):Orl(g)?D.return(0):D.return(1):D.return(2)})};
zwG=function(){var X;return _.n(function(t){var G=[];var y;var w,z,B;(w=y=(w=Dd().objectRepresentation.streamingData)==null?void 0:(z=w.formats)==null?void 0:(B=z[0])==null?void 0:B.url)&&w&&!y.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(w=w.replace("initcwndbps","ctier=L&initcwndbps"),w=w.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),y={testUrl:w,baseUrl:y,method:"GET"}):y=void 0;y&&G.push(y);_.A("ab_net_tp_e")&&G.push({testUrl:_.tA.location.origin+"/ad_companion",baseUrl:_.tA.location.origin+
"/generate_204",method:"OPTIONS"});if(_.A("ad_net_pb_ab")){var V;b:{y=/api\/stats\/ads/;var b,e,g,F;w=(V=Dd().objectRepresentation.adPlacements)==null?void 0:(b=V[0])==null?void 0:(e=b.adPlacementRenderer)==null?void 0:(g=e.renderer)==null?void 0:(F=g.linearAdSequenceRenderer)==null?void 0:F.linearAds;if(w!=null&&w.length&&(V=_.Y(w[0],Qhh))&&(V=V.pings,V!=null&&V.impressionPings))for(b=[].concat(_.RY(V.impressionPings)),V.progressPings&&(b=[].concat(_.RY(b),_.RY(V.progressPings))),V=_.J(b),b=V.next();!b.done;b=
V.next())if(b=b.value,b.baseUrl&&y.test(b.baseUrl)){V=b.baseUrl.replace("https://www.youtube.com","");break b}V=void 0}V&&G.push({testUrl:_.tA.location.origin+V,baseUrl:_.tA.location.origin+"/feed/download",method:"GET"})}if(_.A("ad_net_pb_pbp")){var T;b:{V=/api\/stats\/qoe/;if(b=Dd().objectRepresentation.playbackTracking){e=[];e.push(b==null?void 0:(T=b.videostatsPlaybackUrl)==null?void 0:T.baseUrl);var D;e.push(b==null?void 0:(D=b.videostatsDelayplayUrl)==null?void 0:D.baseUrl);var h;e.push(b==
null?void 0:(h=b.videostatsWatchtimeUrl)==null?void 0:h.baseUrl);var u;e.push(b==null?void 0:(u=b.ptrackingUrl)==null?void 0:u.baseUrl);var W;e.push(b==null?void 0:(W=b.qoeUrl)==null?void 0:W.baseUrl);var c;e.push(b==null?void 0:(c=b.atrUrl)==null?void 0:c.baseUrl);T=_.J(e);for(D=T.next();!D.done;D=T.next())if((D=D.value)&&V.test(D)){T=D.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}T=void 0}T&&G.push({testUrl:_.tA.location.origin+T,baseUrl:_.tA.location.origin+
"/feed/download",method:"GET"})}G=G.length!==0?G[Math.floor(Math.random()*G.length)]:void 0;return(X=G)?t.return(uW6(X.testUrl,X.baseUrl,X.method)):t.return(4)})};
_.ew_=function(){if(_.tA.t9b===void 0||_.tA.t9b===null||typeof _.tA.t9b!=="function")return 2;try{return _.tA.t9b()===!0?0:1}catch(X){return 0}};
Ieh=function(X){switch(X){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.zr(X,"unknown result type")}};
_.Wk_=function(X,t){var G=Number(_.Md("CATSTAT",0));if(t.oas===void 0)return G;t=t.oas;X=Ieh(X);return G&~(3<<t)|X<<t};
cBw=function(X){var t,G;if((X=(t=X.auxiliaryUi)==null?void 0:(G=t.messageRenderers)==null?void 0:G.bkaEnforcementMessageViewModel)&&X.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return X};
rB6=function(){for(var X=_.J(Object.values(_.pCV)),t=X.next();!t.done;t=X.next())t=t.value,t.isAsync&&t.oas&&_.fY("CATSTAT",_.Wk_(2,t))};
_.Ic=function(X,t){X=_.O8("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",X);(t===void 0?0:t)?_.NQA(X,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.uu(_.Ql(),X,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
EQG=function(){if(!PVh){if(Polymer.Base){var X=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{X.apply(this,arguments)}catch(F){_.$x(F)}};
var t=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{t.apply(this,arguments)}catch(F){_.$x(F)}};
var G=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{G.apply(this,arguments)}catch(F){_.$x(F)}};
var y=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{y.apply(this,arguments)}catch(F){_.$x(F)}};
var w=Polymer.Base._listen,z=new WeakMap;Polymer.Base._listen=function(F,T,D){var h=function(){try{D.apply(this,arguments)}catch(u){_.$x(u)}};
z.set(D,h);w.call(this,F,T,h)};
var B=Polymer.Base._unlisten;Polymer.Base._unlisten=function(F,T,D){B.call(this,F,T,z.get(D))}}if(Polymer.Async){var V=Polymer.Async,b=V._atEndOfMicrotask;
V._atEndOfMicrotask=function(){try{b.apply(V,arguments)}catch(F){_.$x(F)}}}if(Polymer.RenderStatus){var e=Polymer.RenderStatus,g=e.afterNextRender;
e.afterNextRender=function(F,T,D){g.call(e,F,function(){try{T.apply(this,arguments)}catch(h){_.$x(h)}},D)}}PVh=!0}};
_.Wy=function(X){var t=X?_.qJ(X):"";if(t){if(t.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(t.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(t.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(t.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(t.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.A("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(t.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";t=t.toLowerCase();if(t==="/")return"home";if(t==="/channel_memberships")return"channel-memberships-shopfront";if(t.indexOf("/feed/trending")===0)return"trending";if(t.indexOf("/feed/explore")===0)return"explore";if(t.indexOf("/live")===0)return"live";if(t.indexOf("/results")===0)return"search";if(t.indexOf("/sports")===0)return"sports";if(t.indexOf("/fashion")===0||t.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(t))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(t))return _.A("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(t.indexOf("/channel/")===0||t.indexOf("/user/")===0||t.indexOf("/gaming")===0||t.indexOf("/post/")===0)return"channel";if(UZV(X))return"show";if(t==="/playlist"||t.indexOf("/playlist/")===0||t==="/view_play_list"||t.indexOf("/view_play_list/")===0||t.indexOf("/show/")===0)return"playlist";if(t==="/feed/history"||t.indexOf("/feed/history/")===0)return"history";if(t===
"/new")return"labs";if(t==="/feed/subscriptions")return"subscriptions";if(t.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(t==="/history_controls")return"standalone";if(t.indexOf("/account")===0||t==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(t.indexOf("/paid_memberships")===0||t.indexOf("/refund")===0||t.indexOf("/purchases")===0||t.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(t.indexOf("/product")===0)return"yts-products";if(t.indexOf("/premium")===
0||t.indexOf("/musicpremium")===0)return t.indexOf("/premium/offers")===0||t.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(t==="/cart/checkout"||t==="/cart")return"ypc-checkout";if(t.indexOf("/feed/downloads")===0||t.indexOf("/redeem")===0||t.indexOf("/reporthistory")===0)return"browse";if(t.indexOf("/hashtag")===0)return"hashtag-landing-page";if(t.indexOf("/handle")===0)return"handle";if(t.indexOf("/source")===0)return"audio-pivot";if(t.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(t.indexOf("/playables")===0)return"playables";if(t.indexOf("/create/live/join")===0)return"open-in-app";if(t.indexOf("/shorts")===0)return"shorts";if(t.indexOf("/feed/channels")===0)return"subscriptions-channels";(t=X?_.qJ(X):"")&&t.indexOf("/watch")===0&&_.A("web_watch_enable_learning_journey")?(X=_.Jt(X),X=!!X.list&&X.list.indexOf("LJPP")===0):X=!1;if(X)return"learning_journey_watch"}};
_.cy=function(X){var t,G;(X=(G=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null?void 0:G.url)&&(t=_.Wy(X));return t};
UZV=function(X){var t=X?_.qJ(X):"";if(!t)return!1;t=t.toLowerCase();return t.indexOf("/show/")===0||t.indexOf("/playlist")===0&&(X=_.Jt(X),X.list&&X.list.indexOf("EL")===0)?!0:!1};
Nr=function(X){var t="unknown",G;var y=((G=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null?void 0:G.webPageType)||"";y?(G=y.toLowerCase(),G.startsWith("web_page_type_")&&(G=G.slice(14))):G=y;G&&mZV[G.toUpperCase()]?t=mZV[G.toUpperCase()]:_.Y(X,_.pp)||_.Y(X,Rww)?t="browse":_.Y(X,_.rV)?t="search":_.Y(X,_.nq)&&(t="watch");t==="watch"&&_.cy(X||null)==="learning_journey_watch"&&(t="learning_journey_watch");t==="unknown"&&_.Mj(Error("Lf`"+JSON.stringify({clickTrackingParams:X==null?void 0:X.clickTrackingParams,
commandMetadata:X==null?void 0:X.commandMetadata,allEndpointKeys:Object.keys(X||[])})));return t};
_.Py=function(X){if(!_.irs||X)_.irs=_.W1();return _.irs};
_.LkV=function(X){return!!_.Y(X,_.nq)||!!_.Y(X,_.E8)&&_.A("kevlar_enable_shorts_prefetch")};
_.vQV=function(X,t){X=_.Y(X,_.nq)||_.Y(X,_.E8);return"v"+X.videoId+(X.playlistId?"-pl"+X.playlistId:"")+(t?"-an1":"")+(X.params?"-pr"+X.params:"")};
U8=function(X){return function(){return new X}};
mT=function(X){var t=_.gw();return function(){return t.resolve(X)}};
leE=function(X){var t=_.At("web_pbj_log_warning_rate",0);t=t>0&&Math.random()<t;if(!_.Y(X,_.E8))return t&&_.Mj(Error("Of")),!1;var G;return _.A("shorts_controller_retrieve_seedless_sequence_v2")&&((G=_.Y(X,_.E8))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:aev(X)?!0:(t&&_.Mj(Error("Pf")),!1)};
aev=function(X){var t=(_.Y(X,_.nq)||_.Y(X,_.E8)).videoId;if(!t||!xZ0.test(t))return!1;var G;return(X=(G=_.Y(X.commandMetadata,_.jQ))==null?void 0:G.url)&&(X.includes(t)||X.startsWith("/clip"))?!0:!1};
_.MCV=function(){var X=_.cP();return X.getFlag(192)?X.getFlag(190):!(_.A("web_watch_cinematics_disabled_by_default")||_.A("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&feV())};
_.Rc=function(X,t,G){var y={};y.currentUrl=t;y.vis=X.vis!==void 0?X.vis:0;y.splay=!1;t=_.cP();y.autoCaptionsDefaultOn=t.getFlag(66);t.getFlag(141)?t.getFlag(140)?y.autonavState="STATE_OFF":y.autonavState="STATE_ON":y.autonavState="STATE_NONE";y.html5Preference="HTML5_PREF_WANTS";isNaN(_.Md("STS"))||(y.signatureTimestamp=_.Md("STS"));X.autonav&&(y.autoplay=!0,y.autonav=!0);X.mutedAutoplay&&(y.autoplay=!0,y.mutedAutoplay=!0);X.inlinePlayback&&(y.autoplay=!0,y.autonav=!1,y.isInlineUnmutedPlayback=!!X.inlineUnmuted);
y.referer=G;y.lactMilliseconds=X.lact!==void 0?X.lact.toString():"-1";_.A("enable_unknown_lact_fix_on_html5")&&y.lactMilliseconds==="-1"&&_.Mj(new _.NJ("Unknown LACT is set in playbackContext.",{"lact in tempData":X.lact||"undefined",autonav:X.autonav||"undefined"}));X={};t.getFlag(194)&&(X.hasShownAmbientMode=!0);t.getFlag(192)&&(X.hasToggledOffAmbientMode=!0);_.MCV()&&(X.watchAmbientModeEnabled=!0);y.watchAmbientModeContext=X;return y};
XVf=function(X){var t={},G=X.pbis||0;G&&(t.playbackBeginsInSeconds=G);X.prefetch_reason&&X.prefetch_reason==="hc_pbis"&&(t.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return t};
_.Lp=function(X){X=X===void 0?!1:X;var t=_.cP(),G="USER_INTERFACE_THEME_LIGHT";t.getFlag(165)?G="USER_INTERFACE_THEME_DARK":t.getFlag(174)?G="USER_INTERFACE_THEME_LIGHT":_.iu()&&(G="USER_INTERFACE_THEME_DARK");return X?G:$E_()||G};
_.tG_=function(){return!_.A("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.iu=function(){return _.tG_()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.vy=function(){var X=_.cP();return _.tG_()&&!X.getFlag(165)&&!X.getFlag(174)};
$E_=function(){var X=X===void 0?window.location.href:X;if(_.A("kevlar_disable_theme_param"))return null;var t=_.qJ(X);if(_.GZl(t))return"USER_INTERFACE_THEME_DARK";try{var G=_.Jt(X).theme;return yV_.get(G)||null}catch(y){}return null};
_.GZl=function(X){return _.A("enable_dark_theme_only_on_shorts")?!(X==null||!X.startsWith("/shorts/")):!1};
_.H86=function(X,t,G,y,w){t=t===void 0?!1:t;G=G===void 0?!1:G;var z=_.Md("INNERTUBE_CONTEXT");if(!z)return _.xA(Error("Sf")),{};z=(0,_.RH.unsafeClone)(z);_.A("web_no_tracking_params_in_shell_killswitch")||delete z.clickTracking;z.client||(z.client={});var B=z.client;B.clientName==="MWEB"&&B.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(B.clientFormFactor=_.Md("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");B.screenWidthPoints=window.innerWidth;B.screenHeightPoints=window.innerHeight;B.screenPixelDensity=
Math.round(window.devicePixelRatio||1);B.screenDensityFloat=window.devicePixelRatio||1;B.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());B.userInterfaceTheme=_.Lp();if(!t){var V=_.xYV();V&&(B.connectionType=V);_.A("web_log_effective_connection_type")&&(V=MQh())&&(z.client.effectiveConnectionType=V)}var b;if(_.A("web_log_memory_total_kbytes")&&((b=_.tA.navigator)==null?0:b.deviceMemory)){var e;b=(e=_.tA.navigator)==null?void 0:e.deviceMemory;z.client.memoryTotalKbytes=""+b*1E6}t&&y&&!_.A("web_it_context_set_original_url_ks")&&
(B.originalUrl=wVY(_.tA.location.href,y).toString());_.A("web_gcf_hashes_innertube")&&(V=BVs())&&(e=V.coldConfigData,b=V.coldHashData,V=V.hotHashData,z.client.configInfo=z.client.configInfo||{},e&&(z.client.configInfo.coldConfigData=e),b&&(z.client.configInfo.coldHashData=b),V&&(z.client.configInfo.hotHashData=V));e=_.Jt(_.tA.location.href);!_.A("web_populate_internal_geo_killswitch")&&e.internalcountrycode&&(B.internalGeo=e.internalcountrycode);!_.A("web_populate_client_screen_killswitch")&&w&&(B.clientScreen=
w);B.clientName==="MWEB"||B.clientName==="WEB"?(B.mainAppWebInfo||(B.mainAppWebInfo={}),B.mainAppWebInfo.graftUrl=y||_.tA.location.href,_.A("kevlar_woffle")&&_.ac.instance&&(y=_.ac.instance,B.mainAppWebInfo.pwaInstallabilityStatus=!y.appInstalledEventFired&&y.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),B.mainAppWebInfo.webDisplayMode=tlf(),B.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):B.clientName==="TVHTML5"&&
(!_.A("web_lr_app_quality_killswitch")&&(y=_.Md("LIVING_ROOM_APP_QUALITY"))&&(B.tvAppInfo=Object.assign(B.tvAppInfo||{},{appQuality:y})),y=_.Md("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(B.tvAppInfo=Object.assign(B.tvAppInfo||{},{certificationScope:y}));!_.A("web_populate_time_zone_itc_killswitch")&&(y=a0h())&&(B.timeZone=y);(y=dYG())?B.experimentsToken=y:delete B.experimentsToken;B=euJ();y=_.zks();y=(0,_.RH.getValues)(y.tokenJars);z.request=Object.assign({},z.request,{internalExperimentFlags:B,consistencyTokenJars:y});
!_.A("web_prequest_context_killswitch")&&(B=_.Md("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(z.request.externalPrequestContext=B);y=_.cP();B=y.getFlag(58);y=y.get("gsml","");z.user=Object.assign({},z.user);B&&(z.user.enableSafetyMode=B);y&&(z.user.lockedSafetyMode=!0);_.A("warm_op_csn_cleanup")?G&&(t=_.lw())&&(z.clientScreenNonce=t):!t&&(t=_.lw())&&(z.clientScreenNonce=t);X&&(z.clickTracking={clickTrackingParams:X});if(X=_.GA("yt.mdx.remote.remoteClient_"))z.remoteClient=X;_.lu.getInstance().setLocationOnInnerTubeContext(z);
try{var g=huh(),F=g.bid;delete g.bid;z.adSignalsInfo={params:[],bid:F};for(var T=_.J(Object.entries(g)),D=T.next();!D.done;D=T.next()){var h=_.J(D.value),u=h.next().value,W=h.next().value;g=u;F=W;X=void 0;(X=z.adSignalsInfo.params)==null||X.push({key:g,value:""+F})}var c,P;if(((c=z.client)==null?void 0:c.clientName)==="TVHTML5"||((P=z.client)==null?void 0:P.clientName)==="TVHTML5_UNPLUGGED"){var l=_.Md("INNERTUBE_CONTEXT");l.adSignalsInfo&&(z.adSignalsInfo.advertisingId=l.adSignalsInfo.advertisingId,
z.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",z.adSignalsInfo.limitAdTracking=l.adSignalsInfo.limitAdTracking)}}catch(R){_.xA(R)}return z};
_.ojh=function(X){var t=new x1(_.Md("ONE_PICK_URL",""));t.urlParamMap_.set("hostId",X);(X=_.Md("GAPI_LOCALE"))&&t.urlParamMap_.set("hl",X);(X=_.Md("SESSION_INDEX"))&&t.urlParamMap_.set("authuser",X);(X=_.Md("DELEGATED_SESSION_ID"))&&t.urlParamMap_.set("groupId",X);return t};
Bbv=function(){var X=_.gw(),t=X.resolve(_.fp);X=X.resolve(_.Mr);return new JVh(t,X)};
VGv=function(X){if(window.IntersectionObserver)return new njf(X,400);throw new TypeError("Zf");};
kZ0=function(){var X=Hammer.TouchAction,t=X.prototype.preventDefaults;X.prototype.preventDefaults=function(G){var y=this.actions.indexOf("pan-down")>-1;if(!y)return t.call(this,G);if(!b8V){var w=G.srcEvent;G=G.direction;var z;if((z=this.manager)==null?0:z.session.prevented)w.preventDefault();else if(y&&G&Hammer.DIRECTION_DOWN)return this.preventSrc(w)}}};
dEJ=function(X){if(!X||X.size===0)return Hammer.DIRECTION_ALL;if(X.size===2){if(X.has("up")&&X.has("down"))return Hammer.DIRECTION_VERTICAL;if(X.has("right")&&X.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(X.size===1){if(X.has("up"))return Hammer.DIRECTION_UP;if(X.has("down"))return Hammer.DIRECTION_DOWN;if(X.has("right"))return Hammer.DIRECTION_RIGHT;if(X.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.jJY=function(){return ek_?Promise.resolve(ek_):new Promise(function(X,t){var G=self.indexedDB.open("swpushnotificationsdb");G.onerror=t;G.onsuccess=function(){var y=G.result;if(y.objectStoreNames.contains("swpushnotificationsstore"))ek_=y,X(ek_);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.jJY()};
G.onupgradeneeded=gjf})};
gjf=function(X){X=X.target.result;X.objectStoreNames.contains("swpushnotificationsstore")&&X.deleteObjectStore("swpushnotificationsstore");X.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
Tbw=function(X){var t=FDV(),G;return _.n(function(y){switch(y.nextAddress){case 1:return _.CL(y,2),y.yield(X.match(t,{cacheName:"yt-appshell-assets"}),4);case 4:G=y.yieldResult;_.zx(y,3);break;case 2:_.IY(y);case 3:return y.return(G)}})};
FDV=function(){var X=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?AVV.registration.scope:YIf;X.endsWith("/")&&(X=X.slice(0,-1));return X+"/app_shell_home"};
sJv=function(X){X.map(function(t){return t.source}).join("|")};
_.DEl=function(X){return _.n(function(t){return t.return(Tbw(X))})};
SIY=function(){var X=window.caches,t;return _.n(function(G){if(G.nextAddress==1)return G.yield(_.DEl(X),2);t=G.yieldResult;return G.return(!!t)})};
uKA=function(){_.n(function(X){if(X.nextAddress==1){if(hkJ)return X.jumpTo(0);hkJ=!0;if(_.A("enable_system_health_primes_monitoring"))return _.ht(Z8f,3E4),qIh(),X.return();if(!(Math.random()<_.At("web_system_health_fraction")))return X.jumpTo(0);Cas={heightPixels:screen.height,widthPixels:screen.width};XD&&!isNaN(XD.jsHeapSizeLimit)&&(Cas.memoryTotalKbytes=String(Math.round(XD.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Cas.devicePixelRatio=window.devicePixelRatio);return X.yield(KDf(),4)}_.ht(Z8f,
3E4);return X.yield(O8G(),0)})};
KDf=function(){return _.n(function(X){if(X.nextAddress==1)return $3.intersectionObserverPresent="IntersectionObserver"in window,$3.serviceWorkerPresent="serviceWorker"in navigator,$3.webSharePresent="share"in navigator,$3.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,$3.cacheStoragePresent="caches"in window,$3.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,$3.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
$3.webkitTemporaryStoragePresent="webkitTemporaryStorage"in tb&&tb.webkitTemporaryStorage&&"queryUsageAndQuota"in tb.webkitTemporaryStorage,$3.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",X.yield(CAV(),2);$3.indexedDbPresent=X.yieldResult;$3.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;$3.broadcastChannelPresent="BroadcastChannel"in window;$3.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
($3.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,$3.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.W$(X)})};
Z8f=function(){var X=9E4+Math.random()*2E3;_.T5()>X||(_.A("enable_system_health_primes_monitoring")?qIh():O8G())};
O8G=function(){var X;return _.n(function(t){if(t.nextAddress==1)return t.yield(QJh(),2);X=t.yieldResult;_.a7("systemHealthCaptured",X);_.W$(t)})};
qIh=function(){var X={metric:{}},t=IzV();t.networkEvents.length&&(X.metric.networkEvents=WDV(t));_.a7("systemHealthCaptured",X)};
QJh=function(){var X,t,G,y,w,z,B,V,b,e;return _.n(function(g){switch(g.nextAddress){case 1:X={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)};t=window.screen;_.A("enable_is_extended_monitoring")&&t&&"isExtended"in t&&(X.isExtended=!!t.isExtended);G={metric:{staticContext:Cas,dynamicContext:X,webMetric:cV6,webApiSupport:$3}};
if(y=_.lw())G.csn=y;XD&&(G.metric.webMetric.currentHeapKbytes=Math.round(XD.usedJSHeapSize/1E3));window.matchMedia&&(G.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,G.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,G.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in tb&&typeof tb.getBattery==="function")){g.jumpTo(2);break}return g.yield(tb.getBattery(),3);case 3:if(w=
g.yieldResult)G.metric.dynamicContext.chargingStatus=w.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(G.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if($3.storageEstimatePresent)return g.yield(navigator.storage.estimate(),8);if(!$3.webkitTemporaryStoragePresent){g.jumpTo(5);break}return g.yield(pVG(),7);case 7:z=g.yieldResult;g.jumpTo(5);break;case 8:z=g.yieldResult;case 5:return G.metric.dynamicContext.deviceStorageQuotaMbytes=((B=z)==null?0:B.quota)?String(Math.round(z.quota/
1048576/10)*10):"-1",G.metric.dynamicContext.deviceStorageUsageMbytes=((V=z)==null?0:V.usage)?String(Math.round(z.usage/1048576/10)*10):"-1",b=G.metric.dynamicContext,g.yield(SIY(),9);case 9:return b.hasAppShell=g.yieldResult,e=IzV(),e.networkEvents.length&&(G.metric.networkEvents=WDV(e)),g.return(G)}})};
pVG=function(){return new Promise(function(X){var t;$3.webkitTemporaryStoragePresent&&(t=tb.webkitTemporaryStorage)!=null&&t.queryUsageAndQuota?tb.webkitTemporaryStorage.queryUsageAndQuota(function(G,y){X({usage:G,quota:y})}):X(void 0)})};
_.Gq=function(X){X&=16777215;X=[(X&16711680)>>16,(X&65280)>>8,X&255];return rVh(X[0],X[1],X[2])};
_.yY=function(X){X=[(X&16711680)>>>16,(X&65280)>>>8,X&255,(X&4278190080)>>>24];var t=_.NbV(X,function(G){return G==(G&255)});
X[3]=(X[3]/255).toFixed(3);if(!t)throw Error("$f`"+X.join(","));return"rgba("+X.join(",")+")"};
_.Pal=function(X){return[(X&16711680)>>>16,(X&65280)>>>8,X&255]};
_.EjY=function(X){X=X.map(function(t){t/=255;return t<=.03928?t/12.92:Math.pow((t+.05)/1.05,2.4)});
return X[0]*.2126+X[1]*.7152+X[2]*.0722};
wt=function(X,t){X=_.Pal(X);return"rgba("+X[0]+", "+X[1]+", "+X[2]+", "+t+")"};
_.UEh=function(){try{return!!self.localStorage}catch(X){return!1}};
LDY=function(){if(mEh())_.Mj(Error("ag"));else{var X=document.createElement("iframe");X.style.display="none";var t=t===void 0?window.location.href:t;var G=_.aS(_.Md("PERSIST_IDENTITY_IFRAME_URL"));t=G?G:(new URL(t)).host.indexOf("studio")===0?_.sw(RkY,"persist_identity"):_.sw(i8s,"persist_identity");_.i1A(X,1,t);X.id="persist_identity";var y;(y=document.body)==null||y.appendChild(X)}};
mEh=function(){var X=vjh;X||(X=document.querySelector("#persist_identity"));return X};
azV=function(){var X=!1;try{X=!!window.sessionStorage.getItem("session_logininfo")}catch(t){X=!0}return(_.Md("INNERTUBE_CLIENT_NAME")==="WEB"||_.Md("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&X};
lzV=function(X,t){if(!azV())return!1;t||(t=_.Md("LOGIN_INFO"));return t?(X.session_logininfo=t,!0):!1};
fzV=function(X,t){X=X===void 0?!1:X;if((t===void 0||!t)&&xEh!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.X3("LOG_STICKINESS",!1)){t=_.lw();var G=_.a4(),y={identityStickinessData:{initialState:xEh}};t&&G&&_.d9(t,G,y)}if(t=mEh())if(G=t.src?(new URL(t.src)).origin:"*",X){var w;(w=t.contentWindow)==null||w.postMessage({action:"clear"},G)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(X=window.sessionStorage.getItem("session_logininfo"))){var z;(z=t.contentWindow)==null||z.postMessage({loginInfo:X},G)}};
_.zq=function(X){X=X===void 0?!0:X;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.fY("LOGIN_INFO",""),X&&window.sessionStorage.setItem("from_switch_account","1"),fzV(!0,X)}catch(t){}};
MGE=function(X){X&&(X.startsWith("https://accounts.google.com/AddSession")?_.zq():X.startsWith("https://accounts.google.com/ServiceLogin")?_.zq():X.startsWith("https://myaccount.google.com")&&_.tW(X).getPath().endsWith("/youtubeoptions")&&_.zq())};
HW=function(X,t){MGE(X);if(_.X3("LOGGED_IN",!0)&&azV()){var G=iPE(X);G==null&&(G={});lzV(G,t)&&_.dk(X,G)}};
X7E=function(){function X(t){for(t=t.target;t&&t.nodeName!=="A";)if(t=t.parentNode,!(t&&t instanceof HTMLElement))return;if(t&&!t.hasAttribute("download")&&t.getAttribute("rel")!=="external"&&t.href)return t.href}
document.addEventListener("mousedown",function(t){t.button!==0&&(t=X(t))&&HW(t)});
document.addEventListener("click",function(t){(t=X(t))&&HW(t)})};
GPG=function(){var X=new $hv;try{if(_.X3("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(V){X.increment(5,!1);return}if(_.Md("LOGIN_INFO")){var t=t9v?t9v:window.location;_.Md("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&LDY();var G=iPE(t.href);G==null&&(G={});var y=G.session_logininfo,w=Number(window.sessionStorage.getItem("stickiness_reload")),z=y===_.Md("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
w>=2||z)w>=2?X.increment(2,z):z?X.increment(7,z):window.sessionStorage.getItem("session_logininfo")||(X.increment(3,z),xEh="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Md("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Md("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))X.increment(4,z),window.sessionStorage.removeItem("stickiness_reload");
else if(w<2){window.sessionStorage.setItem("stickiness_reload",String(w+1));var B=t.href;B=_.eQ(B,"sttick");HW(B,window.sessionStorage.getItem("session_logininfo"));B=_.Bx(B,{sttick:w});X.increment(w,z);_.MBh(t,B)}}else X.increment(6,!1)}else _.zq(!1)}catch(V){}};
_.ok=function(X,t,G,y,w){t=t===void 0?{}:t;G=G===void 0?"":G;y=y===void 0?window:y;X=_.ns(X,t);HW(X);G=_.l_(X+G,w);_.MBh(y.location,G)};
_.yD_=function(X,t,G,y,w){w=w===void 0?!1:w;G&&_.dk(X,G);G=_.l_(X);var z=_.Rj(G);X!=z&&_.yQ(Error("bg`"+X));X=z;t=t||yf(X).toString(36);try{if(w)return w=X,w=wjG(w),HW(w),_.zc(window,w,t,"attributionsrc")}catch(B){_.$x(B)}HW(X);return _.zc(window,G,t,y)};
w76=function(X){if(X.urlEndpoint){if(X=_.Jt(X.urlEndpoint.url),X.adurl)return eH(X.adurl)}else if(X.watchEndpoint)return"//www.youtube.com/watch?v="+X.watchEndpoint.videoId;return null};
zDY=function(X){if(!X||!X.reportingPings)return null;var t={};X.reportingPings.forEach(function(G){G.pingType in t?t[G.pingType].push(G.url):t[G.pingType]=[G.url]});
return{adpings:GiG(t)}};
_.Jb=function(){return{isShellLoad:_.X3("IS_SHELL_LOAD",!1)}};
oKw=function(){navigator.serviceWorker.getRegistrations().then(function(X){X.forEach(HZv)})};
HZv=function(X){X&&_.JDs(BKV,X.scope)};
_.JDs=function(X,t){t={scope:t||_.Yx("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Nx(X),t)};
BW=function(X,t,G,y){if(t&&t.serializedYpcCujLoggingParams){if(G){var w={};w.transactionErrorType=G;y&&(w.errorMessage=y);t.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:w}}}G={};G.ypcCujContext=t;X=_.O8("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",X,G);_.uu(_.Ql(),X,"FLOW_TYPE_YPC_ACQUISITION")}};
_.nKw=function(X,t,G,y){var w={};w.serializedTransactionFlowLoggingParams=t;G&&(w.errorType=G);y&&(w.errorMessage=y);_.a7(X,w);_.lx()};
_.V9A=function(X){X&&_.nKw("transactionFlowStarted",X)};
_.bZh=function(X){X&&_.nKw("transactionFlowCancelled",X)};
_.nd=function(X,t,G){t&&_.nKw("transactionFlowFailed",t,X,G)};
kP6=function(X){var t=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");t&&(t.inert=X)};
_.VY=function(){this.megabloxUrl_=null};
_.be=function(X){try{var t=dhY==null?void 0:dhY.composedPath(X)}catch(G){t=X.composedPath?X.composedPath():[]}return t&&t.length>0?t:X.composedPath?X.composedPath():[]};
_.k3=function(X){return _.be(X)[0]};
_.dt=function(X){if(!(X instanceof Element))return null;X=X.classList?Array.from(X.classList):void 0;if(!X)return null;var t=X.indexOf("style-scope");return t>-1&&t+1<X.length?X[t+1]:null};
gt=function(X){if(!(X instanceof HTMLElement))return null;var t=X&&(X.$$||X.polymerController)?X.tagName.toLowerCase():null;return t?t:_.dt(X)};
eDV=function(X,t){return X.replace(/[^a-z]*[^\s]+/g,function(G){return G+".style-scope."+t})};
jl_=function(X,t){return t?X.split(",").map(function(G){return eDV(G.trim(),t)}).join(", "):X};
_.FD=function(X){var t,G,y,w;return(w=(y=(G=(t=X.root)!=null?t:X.shadowRoot)!=null?G:X.__shady_native_shadowRoot)!=null?y:X.__shady_shadowRoot)!=null?w:X};
Tq=function(X){return X instanceof ShadowRoot?ShadowRoot:X instanceof DocumentFragment?DocumentFragment:X instanceof Document?Document:HTMLElement};
gK_=function(X){var t,G,y;return(y=(G=(t=X.parentElement)!=null?t:X.__shady_native_parentElement)!=null?G:X.__shady_parentElement)!=null?y:null};
Fll=function(X){var t,G,y;return(y=(G=(t=X.parentNode)!=null?t:X.__shady_native_parentNode)!=null?G:X.__shady_parentNode)!=null?y:null};
TKh=function(X){var t,G,y;return(y=(G=(t=X.__shady_parentNode)!=null?t:X.__shady_native_parentNode)!=null?G:X.parentNode)!=null?y:null};
ADV=function(X){var t,G;return(G=(t=Fll(X))!=null?t:X.host)!=null?G:null};
YK0=function(X){var t,G,y;return(y=(G=(t=X.nextSibling)!=null?t:X.__shady_native_nextSibling)!=null?G:X.__shady_nextSibling)!=null?y:null};
slJ=function(X){var t,G,y;return(y=(G=(t=X.previousSibling)!=null?t:X.__shady_native_previousSibling)!=null?G:X.__shady_previousSibling)!=null?y:null};
Dhl=function(X){var t,G,y;return(y=(G=(t=X.nextElementSibling)!=null?t:X.__shady_native_nextElementSibling)!=null?G:X.__shady_nextElementSibling)!=null?y:null};
SKV=function(X){var t,G,y;return(y=(G=(t=X.previousElementSibling)!=null?t:X.__shady_native_previousElementSibling)!=null?G:X.__shady_previousElementSibling)!=null?y:null};
hDf=function(X){var t,G,y;return new Set([].concat(_.RY((t=X.children)!=null?t:[]),_.RY((G=X.__shady_native_children)!=null?G:[]),_.RY((y=X.__shady_children)!=null?y:[])))};
ZZ6=function(X){var t,G,y;return new Set([].concat(_.RY((t=X.childNodes)!=null?t:[]),_.RY((G=X.__shady_native_childNodes)!=null?G:[]),_.RY((y=X.__shady_childNodes)!=null?y:[])))};
qKh=function(X){if(!X)return null;var t=_.dt(X);if(!t){var G;return(G=Node.prototype.getRootNode)==null?void 0:G.call(X)}t=t.toUpperCase();for(X=gK_(X);X&&X.tagName!==t;)X=gK_(X);return X?_.FD(X):null};
CD6=function(X){for(;X&&!(X instanceof HTMLElement);)X=ADV(X);return X};
KlA=function(X){var t=CD6(X);return X===t?_.dt(X):t?gt(t):null};
OZ0=function(X){return(X=CD6(X))?gt(X):null};
u9s=function(X){if(X instanceof Comment)return!1;if(X instanceof Text){var t,G;if(((G=(t=X.textContent)==null?void 0:t.trim())!=null?G:"")==="")return!1}return!0};
Ab=function(X,t,G){var y=t(X);for(G=G===void 0?OZ0(X):G;y&&(KlA(y)!==G||!u9s(y));)X=y,y=t(X);return y};
Qlh=function(X,t,G){if(!t)return null;X=OZ0(X);return KlA(t)===X&&u9s(t)?t:Ab(t,G,X)};
InV=function(X){return Ab(X,TKh,_.dt(X))};
Wl_=function(X){return Ab(X,Dhl)};
cDh=function(X){return Ab(X,YK0)};
p7J=function(X){return Ab(X,SKV)};
rDY=function(X){return Ab(X,slJ)};
NKl=function(X){return Qlh(X,X.firstChild||X.__shady_native_firstChild||X.__shady_firstChild||null,YK0)};
PDw=function(X){var t,G,y;var w=(y=(G=(t=X.firstElementChild)!=null?t:X.__shady_native_firstElementChild)!=null?G:X.__shady_firstElementChild)!=null?y:null;return Qlh(X,w,Dhl)};
EKV=function(X){var t,G,y;var w=(y=(G=(t=X.lastChild)!=null?t:X.__shady_native_lastChild)!=null?G:X.__shady_lastChild)!=null?y:null;return Qlh(X,w,slJ)};
Uh0=function(X){var t,G,y;var w=(y=(G=(t=X.lastElementChild)!=null?t:X.__shady_native_lastElementChild)!=null?G:X.__shady_lastElementChild)!=null?y:null;return Qlh(X,w,SKV)};
mhh=function(X){var t=OZ0(X);return Array.from(ZZ6(X)).filter(function(G){return KlA(G)===t})};
RD0=function(X){var t=gt(X);return Array.from(hDf(X)).filter(function(G){return _.dt(G)===t})};
_.Y3=function(X,t,G){if(X instanceof HTMLElement&&_.dt(X)===G){var y=Array.from(X.classList).indexOf("style-scope");if(y===-1)X.classList.add("style-scope"),X.classList.add(t);else if(!(y+1>=X.classList.length)){y=X.classList[y+1];var w,z;X==null||(w=X.classList)==null||(z=w.replace)==null||z.call(w,y,t)}}if(X instanceof HTMLElement||X instanceof DocumentFragment)for(w=_.J(hDf(X)),z=w.next();!z.done;z=w.next())_.Y3(z.value,t,G);return X};
s0=function(X,t){if(X instanceof HTMLElement&&_.dt(X)===t){var G=Array.from(X.classList).indexOf("style-scope");G===-1||G+1>=X.classList.length||X.classList.remove("style-scope",X.classList[G+1])}if(X instanceof HTMLElement||X instanceof DocumentFragment){G=_.J(X.children);for(var y=G.next();!y.done;y=G.next())s0(y.value,t)}return X};
_.iZl=function(X,t){return Tq(X).prototype.appendChild.call(X,t)};
LlJ=function(X,t){if(X===t)return!0;X=ZZ6(X);return Array.from(X).some(function(G){return LlJ(G,t)})};
_.Sm=function(X,t){if(X instanceof Dk)return X;(t==null?0:t.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(X,"ownerDocument")&&Object.defineProperty(X,"ownerDocument",{get:function(){return window.document}});
return new Dk(X)};
anw=function(){var X=Dk.prototype,t=[].concat(_.RY(vKV?[]:["getRootNode"]),["setAttribute","removeAttribute"]);t=_.J(t);for(var G=t.next(),y={};!G.done;y={method$jscomp$51:void 0},G=t.next())y.method$jscomp$51=G.value,X[y.method$jscomp$51]=function(w){return function(){return this.host[w.method$jscomp$51].apply(this.host,arguments)}}(y)};
xhV=function(){var X=Dk.prototype,t=[].concat(_.RY(vKV?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.RY(ln_?[]:["querySelector","querySelectorAll"]));t=_.J(t);for(var G=t.next(),y={};!G.done;y={method$jscomp$52:void 0},G=t.next())y.method$jscomp$52=G.value,X[y.method$jscomp$52]=function(w){return function(){return this.root[w.method$jscomp$52].apply(this.root,arguments)}}(y)};
X5v=function(){var X=Dk.prototype,t=[].concat(_.RY(fn0?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.RY(M9V?[]:["parentNode"]));t=_.J(t);for(var G=t.next(),y={};!G.done;y={prop$jscomp$62:void 0},G=t.next())y.prop$jscomp$62=G.value,Object.defineProperty(X,y.prop$jscomp$62,{get:function(w){return function(){return this.host[w.prop$jscomp$62]}}(y),
configurable:!0})};
GH_=function(){var X=Dk.prototype,t=["activeElement"].concat(_.RY(fn0?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.RY($LV?[]:["children"]),_.RY(t1s?[]:["lastChild"]));t=_.J(t);for(var G=t.next(),y={};!G.done;y={prop$jscomp$63:void 0},G=t.next())y.prop$jscomp$63=G.value,Object.defineProperty(X,y.prop$jscomp$63,{get:function(w){return function(){return this.root[w.prop$jscomp$63]}}(y),
configurable:!0})};
yeA=function(){for(var X=Dk.prototype,t=_.J(["innerHTML","textContent"]),G=t.next(),y={};!G.done;y={prop$jscomp$64:void 0},G=t.next())y.prop$jscomp$64=G.value,Object.defineProperty(X,y.prop$jscomp$64,{get:function(w){return function(){return this.root[w.prop$jscomp$64]}}(y),
set:function(w){return function(z){this.root[w.prop$jscomp$64]=z}}(y),
configurable:!0})};
w5E=function(X){var t=Dk.prototype;X=_.J(Object.entries(X));for(var G=X.next(),y={};!G.done;y={fn$jscomp$387:void 0},G=X.next()){var w=_.J(G.value);G=w.next().value;w=w.next().value;y.fn$jscomp$387=w;t[G]=function(z){return function(){return z.fn$jscomp$387.apply(null,[this.host.node||this.host].concat(_.RY(arguments)))}}(y)}};
H$v=function(){for(var X=Dk.prototype,t=_.J(Object.entries(ziV)),G=t.next(),y={};!G.done;y={fn$jscomp$388:void 0},G=t.next()){var w=_.J(G.value);G=w.next().value;w=w.next().value;y.fn$jscomp$388=w;Object.defineProperty(X,G,{get:function(z){return function(){return z.fn$jscomp$388.apply(null,[this.host.node||this.host].concat(_.RY(arguments)))}}(y),
configurable:!0})}};
_.hb=function(X){return X instanceof oMv||X instanceof Document?X:new oMv(X)};
Jef=function(){for(var X=oMv.prototype,t=_.J("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),G=t.next(),y={};!G.done;y={method$jscomp$53:void 0},G=t.next())y.method$jscomp$53=G.value,X[y.method$jscomp$53]=function(w){return function(){return HTMLElement.prototype[w.method$jscomp$53].call.apply(HTMLElement.prototype[w.method$jscomp$53],[this.node].concat(_.RY(arguments)))}}(y)};
Bg6=function(){for(var X=oMv.prototype,t=_.J("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),G=t.next(),y={};!G.done;y={prop$jscomp$65:void 0},G=t.next())y.prop$jscomp$65=G.value,Object.defineProperty(X,y.prop$jscomp$65,{get:function(w){return function(){var z;return(z=this.node["__shady_native_"+w.prop$jscomp$65])!=null?z:this.node[w.prop$jscomp$65]}}(y),
configurable:!0})};
_.Zk=function(X,t,G){G===void 0&&(G=!X.classList.contains(t));G?X.classList.add(t):X.classList.remove(t)};
_.qS=function(X,t,G){G===void 0&&(G=!X.hasAttribute(t));if(t==="class")throw Error("fg");G?_.hb(X).setAttribute(t,""):_.hb(X).removeAttribute(t)};
nMh=function(X){return(X.localName!=="slot"?[]:(0,_.Cd)(X).assignedNodes({flatten:!0})).filter(function(t){return t.nodeType===Node.ELEMENT_NODE})};
_.V1s=function(X){return(X=_.Sm(X).querySelector("slot"))&&X.localName==="slot"?nMh(X):[]};
_.Kd=function(X,t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(X,t)};
O0=function(X,t){var G=t.bind(X);return function(y){G(y,y.detail)}};
_.Ik=function(X,t){var G=b$V.get(X);G||(G=new WeakMap,b$V.set(X,G));if(G.has(t))return G.get(t);if(_.A("web_fi_listen_disable_bound_fn_helper")){var y=t.bind(X);X=function(w){y(w,w==null?void 0:w.detail)}}else X=O0(X,t);
G.set(t,X);return X};
ei_=function(X,t){kH6(X);X.created[dLA].push(t)};
kH6=function(X){if(!X.created||!X.created[dLA]){var t=X.created,G=t?[t]:[];X.created=function(){for(var y=_.J(G),w=y.next();!w.done;w=y.next())w.value.apply(this)};
X.created[dLA]=G}};
jyV=function(X){return function(){var t=_.f1.apply(0,arguments);return function(G,y,w){X.apply(null,_.RY(t))(G,y,w)}}};
gMl=function(){return function(){var X=_.f1.apply(0,arguments);return function(t,G,y){Baw.apply(null,_.RY(X))(t,G,y)}}};
_.q=function(X){return gMl()(X)};
_.C=function(){return jyV(k1A).apply(null,_.RY(_.f1.apply(0,arguments)))};
_.WW=function(X){return _.A("pbcm_fi_listen_decorators")?Fi0(X):jyV(VUE)(X)};
Fi0=function(X){return function(t,G){ei_(t,function(){var y=this[G],w=_.A("web_fi_listen_disable_bound_fn_helper")?function(z){y(z,z.detail)}.bind(this):O0(this,y);
TgA.has(X)?aO(this.hostElement,X,w):this.hostElement.addEventListener(X,w)})}};
_.cW=function(){return jyV(bNs).apply(null,_.RY(_.f1.apply(0,arguments)))};
_.K=function(X){X=X===void 0?{}:X;return jyV(no6)(X)};
_.pd=function(X){if(X.hostElement&&X!==X.hostElement){var t=_.Es(X.hostElement);t=X.renderIdom?t:t.shadowRoot}t||(X=X.root,t=X instanceof Node?_.Es(X):null);return t};
_.rt=function(X){return Ae_?YY6(X):function(t,G){Object.defineProperty(t,G,{get:function(){var y;return(y=_.pd(this))==null?void 0:y.querySelector(X)},
enumerable:!0,configurable:!0})}};
YY6=function(X){return function(t,G){Object.defineProperty(t,G,{get:function(){var y,w=(y=_.Sm(this.hostElement))==null?void 0:y.querySelector(X);if(w)return w;var z;return(z=_.pd(this))==null?void 0:z.querySelector(X)},
enumerable:!0,configurable:!0})}};
_.NS=function(X){return Ae_?sy6(X):function(t,G){Object.defineProperty(t,G,{get:function(){var y;return(y=_.pd(this))==null?void 0:y.querySelectorAll(X)},
enumerable:!0,configurable:!0})}};
sy6=function(X){return function(t,G){Object.defineProperty(t,G,{get:function(){var y,w=(y=_.Sm(this.hostElement))==null?void 0:y.querySelectorAll(X);if(w==null?0:w.length)return w;var z;return(z=_.pd(this))==null?void 0:z.querySelectorAll(X)},
enumerable:!0,configurable:!0})}};
DLV=function(X){return function(t){if(![_.du,_.O].includes(Object.getPrototypeOf(t.prototype).constructor))throw Error("gg");tUv(Object.assign({},typeof X!=="string"?X:{is:X,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(t)}};
_.E0=function(){var X=X===void 0?{}:X;return function(t){if(![eb,_.PW].includes(Object.getPrototypeOf(t.prototype).constructor))throw Error("hg");G1E(Object.assign({},X,{disableInheritanceCheck:!0}))(t)}};
hi6=function(X,t){SYh[X]!=null||(SYh[X]=new Set);SYh[X].add(t)};
_.U0=function(){var X=_.cW.apply(null,_.RY(_.f1.apply(0,arguments)));return function(t,G){hi6(t.is,G);X(t,G)}};
ie=function(X,t,G){if(m_(X)&&!Z$A.has(t)){t=t.replace(/^JSC\$[\d]+_/,"");t=t.replace(/\.\d+(\.|$)/g,function(z,B){return".#"+B});
Rk[X]!=null||(Rk[X]={});var y,w;(y=Rk[X])[w=t]!=null||(y[w]=new Set);Rk[X][t].has(G)||(Rk[X][t].add(G),_.a7("polymerPropertyAccessEvent",{componentName:X,propertyName:t,accessType:G}))}};
qYE=function(){return _.A("polymer_property_access_logging_debug")||_.A("polymer_enable_property_access_logging")};
m_=function(X){if(_.A("polymer_property_access_logging_debug"))return!0;if(!_.A("polymer_enable_property_access_logging"))return!1;CZv||(CZv=Date.now());return(yf(X)+CZv)%100<_.At("polymer_property_access_logging_percent")};
Ki0=function(X,t){return m_(t)&&X.hostElement.loggingStatus?new Proxy(X,{get:function(G,y,w){if(G.hostElement.loggingStatus.bypassProxyController)return G[y];G.hostElement.loggingStatus.isExternalGet=!0;var z=G[y];G.hostElement.loggingStatus.isExternalGet=!1;if(z instanceof Function)return function(){var B=_.f1.apply(0,arguments);try{return G.hostElement.loggingStatus.currentExternalCall=y,ie(t,y,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),z.apply(this===w?G:this,B)}finally{G.hostElement.loggingStatus.currentExternalCall=
void 0}};
ie(t,y,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return z},
set:function(G,y,w){if(G.hostElement.loggingStatus.bypassProxyController)return G[y]=w,!0;G.hostElement.loggingStatus.isRendererStamper?ie(t,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):G.hostElement.loggingStatus.isDeclarativeExternal||ie(t,y,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{G.hostElement.loggingStatus.currentExternalSet=y,G[y]=w}finally{G.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):X};
O$w=function(X,t){X&&X.loggingStatus&&!X.loggingStatus.isDeclarativeExternal&&!X.loggingStatus.isExternalGet&&X.loggingStatus.currentExternalSet!==t&&ie(X.tagName.toLowerCase(),t,"PROPERTY_ACCESS_GET_INTERNAL")};
Ld=function(X,t,G){X&&(G||X.loggingStatus&&!X.loggingStatus.isInitializing&&!X.loggingStatus.isDefiningPropertyAccessor&&X.loggingStatus.currentExternalSet!==t)&&ie(X.tagName.toLowerCase(),t,"PROPERTY_ACCESS_SET_INTERNAL")};
uFJ=function(){return{_definePropertyAccessor:function(X,t){var G=this,y=G.hostElement.loggingStatus;y&&(y.isDefiningPropertyAccessor=!0);var w=G[X];w!==void 0&&(G.__data?G._setPendingProperty(X,w):(G.__dataProto!=null||(G.__dataProto={}),G.__dataProto[X]=w));y&&(y.isDefiningPropertyAccessor=!1);Object.defineProperty(this,X,{get:function(){O$w(G.hostElement,X);return this.__data[X]},
set:function(z){t||this._setPendingProperty(X,z,!0)&&this._invalidateProperties()}})},
created:function(){var X=this._setPendingProperty.bind(this);this._setPendingProperty=function(t,G,y){Ld(this.hostElement,t);return X.apply(this,[t,G,y])}}}};
Qys=function(X){qYE()&&_.q(vW.prototype)(X.prototype,"__templateBindingLoggingBehavior")};
IT_=function(X,t){if(t.resolvedFactories.length!==X.resolvedFactories.length)return!0;t=_.J(t.resolvedFactories.entries());for(var G=t.next();!G.done;G=t.next()){var y=_.J(G.value);G=y.next().value;y=y.next().value;if(y.providerClass){if(y.providerClass!==X.resolvedFactories[G].providerClass)return!0}else if(y.providerValue){if(y.providerValue!==X.resolvedFactories[G].providerValue)return!0}else if(y.factory!==X.resolvedFactories[G].factory)return!0}return!1};
WiY=function(X,t){X=_.J(X);for(var G=X.next();!G.done;G=X.next())if(G=G.value,G.constructor===Array)WiY(G,t);else{var y=t;y.has(G)||(G.inject&&y.add(G),G.behaviors&&WiY(G.behaviors,y))}};
ak=function(X,t){var G=X[t];X[t]=function(){var y=_.f1.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(G)return G.apply(this,y)}};
Ngh=function(){_.le.Class=function(G,y){G=ceV(G,y);ak(G.prototype,"created");return G};
ak(x3.prototype,"_initializeProperties");ak(_.fd.prototype,"_initializeProperties");if(p5h)ak(reE,"created");else{var X=function(){ak(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))X();else{var t=customElements.define;customElements.define=function(G,y,w){t.call(customElements,G,y,w);G==="tp-yt-iron-list"&&(X(),customElements.define=t)}}}};
EMG=function(X,t){X.prototype.behaviors=X.prototype.behaviors||[];X.prototype.behaviors.unshift(PZv.InjectBehavior);X.prototype.provide=t};
_.$F=function(X){return function(t){if(!X.disableElementRegistration){X.noInjection||EMG(t,X.providers);var G=t.prototype;G.__templateHelpers||Baw(MS.prototype)(G,"__templateHelpers");G=X.is;ULJ||(ULJ=Date.now());(yf(G)+ULJ)%100<_.At("polymer_log_prop_change_observer_percent")&&Baw(Xp.prototype)(t.prototype,"__propertyObserverObserver");t.prototype.behaviors=t.prototype.behaviors||[];t.prototype.behaviors.unshift(_.mLJ.YtHostElementBehavior);Qys(t);DLV({is:X.is,notifyObserversOnUndefined:X.notifyObserversOnUndefined!==
!1,fastInit:X.fastInit,template:X.template,disableEnforceFastDefaultValuesCheck:!0})(t)}}};
_.p=function(X){return _.$F({is:X.is,template:X.template,disableElementRegistration:X.disableElementRegistration,cssBuildOptOut:X.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Lis=function(X,t){if(Ris){X=new X;for(var G=_.J(Object.getOwnPropertyNames(X)),y=G.next();!y.done;y=G.next())y=y.value,t[y]=X[y];for(G=t;G&&G!==Object.prototype;G=Object.getPrototypeOf(G)){y=_.J(Object.getOwnPropertyNames(G));for(var w=y.next();!w.done;w=y.next())w=w.value,X.hasOwnProperty(w)||Object.defineProperty(X,w,i$E(t,w))}}else X.apply(t)};
i$E=function(X,t){return{get:function(){var G=X[t];return G instanceof Function?G.bind(X):G},
set:function(G){X[t]=G}}};
aTJ=function(X,t){for(var G=X._noAccessors,y=_.J(Object.getOwnPropertyNames(X)),w=y.next();!w.done;w=y.next())if(w=w.value,!vME.has(w))if(G)t[w]=X[w];else{var z=Object.getOwnPropertyDescriptor(X,w);z&&(z.configurable=!0,Object.defineProperty(t,w,z))}};
lT0=function(X,t,G){return function(y){if(G){var w=G();y.model=w}if(X[t])X[t](y,y.detail)}};
tm=function(X){var t=[];if(typeof X==="string")X.length>0&&t.push.apply(t,_.RY(X.split(".")));else{X=_.J(X);for(var G=X.next();!G.done;G=X.next())G=G.value,typeof G==="string"?t.push.apply(t,_.RY(G.split("."))):t.push(G)}return t};
xL_=function(X,t){if(t[t.length-1]!=="*"&&t[t.length-1]!=="splices"){for(var G=0;G<t.length;G++){if(!X)return;X=X[t[G]]}return X}};
fT_=function(X,t){if(X.length>t.length)return!1;for(var G=0;G<X.length;G++)if(X[G]!==t[G])return!1;return!0};
X8J=function(X,t,G){if(t.type==="compute"){var y=t.getter.bind(G);var w=t.args}else y=function(){return G[t.method.methodName].apply(G,_.RY(_.f1.apply(0,arguments)))},w=t.method.args;
M1V(X,t.propertyKey,y,w,t.value)};
tN0=function(X,t){if(t.readOnly){var G=Object.getOwnPropertyDescriptor(X.model,t.propertyKey);Object.defineProperty(X.model,t.propertyKey,{get:G.get,set:function(){}});
X.model[$KJ(t.propertyKey)]=G.set}};
GM_=function(X,t,G){if(G){var y=t.propertyKey,w=t.selector;t=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.RY(t.selectorArgs.map(function(z){return{type:"path",path:z}})));
M1V(X,y,function(z){var B=_.f1.apply(1,arguments);return w.apply(null,[G.getState()].concat(_.RY(B)))},t)}};
w8V=function(X,t,G){var y=_.Q8(t.propertyKey)+"-changed";yXG(X,function(w){var z={value:w.value,queueProperty:!0};w.path.split(".").length>1&&(z.path=w.path);G.dispatchEvent(new CustomEvent(y,{detail:z}))},[{type:"wildcard",
path:t.propertyKey}])};
zzA=function(X,t,G){yXG(X,function(){G[t.method.methodName].apply(G,_.RY(_.f1.apply(0,arguments)))},t.method.args)};
$KJ=function(X){return"_set"+(X.charAt(0).toUpperCase()+X.slice(1))};
oU0=function(){return _.A("enable_track_defined_via_mutable_signal")||HkV};
JXE=function(){var X,t=m$(function(G){X=G},!1);
return[X,t]};
kMG=function(X){X=X.trim().replace(BfJ,",").replace(nUh,"$1");var t=X[0];t==="-"&&(t=X[1]);if(t>="0"&&t<="9")return{type:"literal",value:Number(X)};if(t==="'"||t==='"')return{type:"literal",value:X.slice(1,-1)};if(t=X.match(VNY)){t=t[1];var G=bkA[t];if(G)return{type:G,path:X.slice(0,-(t.length+1))}}return{type:"path",path:X}};
gU6=function(X){var t=X.match(dKV);if(t)return X={methodName:t[1],args:ezh},t[2].trim()&&(t=t[2].replace(jTE,"&comma;").split(","),X.args=t.map(kMG)),X};
FKV=function(X,t,G,y){y=y===void 0?!1:y;t=_.Q8(t);var w=pl;w&&(G=w(G,t,"attribute",X));GO(X,G,t,y)};
GO=function(X,t,G,y){t=TfV(t,y===void 0?!1:y);t===void 0?X.removeAttribute(G):X.setAttribute(G,t)};
TfV=function(X,t){switch(typeof X){case "object":case "function":if(X instanceof Date)return X.toString();if(X){if((t===void 0?0:t)&&!_.A("polymer_reflect_objects_as_boolean_killswitch"))return X?"":void 0;t=window.trustedTypes?window.trustedTypes.isHTML(X)||window.trustedTypes.isScript(X)||window.trustedTypes.isScriptURL(X):void 0;if(t)return X;try{return JSON.stringify(X)}catch(G){_.Mj(Error("Dg`"+X))}}break;case "boolean":return X?"":void 0;default:return X!==null&&X!==void 0?X.toString():void 0}};
AXl=function(X){if(X===void 0)throw Error("Eg");return X};
hz0=function(X,t,G,y){var w=YL0(y);if(w.length){y=G;var z="property";sTV.test(G)?z="attribute":G[G.length-1]==="$"&&(G=G.slice(0,-1),z="attribute");var B=DK0(w);B&&z==="attribute"&&(G==="class"&&X.hasAttribute("class")&&(B+=" "+X.getAttribute(G)),GO(X,B,G));z==="attribute"&&y==="disable-upgrade$"&&X.setAttribute("disable-upgrade","");X.localName==="input"&&y==="value"&&X.setAttribute("value","");X.removeAttribute(y);z==="property"&&(G=_.I4(G));t=AXl(t);SL0(t,z,G,w);return!0}return G.slice(0,3)===
"on-"?(X.removeAttribute(G),(z=t).events!=null||(z.events=[]),t.events.push({name:G.slice(3),value:y}),!0):G==="id"?(t.id=y,!0):!1};
YL0=function(X){for(var t=[],G=0,y;(y=ZkV.exec(X))!==null;){y.index>G&&t.push({type:"literal",value:X.slice(G,y.index)});var w=y[1][0];G=!!y[2];y=y[3].trim();if(w==="{")throw Error("Fg");(w=gU6(y))?t.push({type:"method",negate:G,signature:w}):t.push({type:"path",negate:G,path:y});G=ZkV.lastIndex}G&&G<X.length&&(X=X.substring(G))&&t.push({type:"literal",value:X});return t};
DK0=function(X){for(var t="",G=0;G<X.length;G++){var y=X[G];y.type==="literal"&&(t+=y.value)}return t};
SL0=function(X,t,G,y){X.bindings!=null||(X.bindings=[]);X.bindings.push({kind:t,target:G,parts:y})};
u$6=function(X,t,G){var y=!1;if(X.localName==="template"){y=G;var w=t.stripWhitespace;w=qLh(X,w===void 0?!1:w);var z=X.content.ownerDocument.createDocumentFragment();w.content=z;z.appendChild(X.content);y&&(y.templateInfo=w);y=!0}else X.localName==="slot"&&(t.hasInsertionPoint=!0);if(X.firstChild&&(w=G,X.localName!=="script"&&X.localName!=="style")){z=0;for(var B=X.firstChild;B;){var V=B;if(V.localName==="template"){var b=V.getAttribute("is");if((B=b==="dom-if")||b==="dom-repeat"){V.removeAttribute("is");
b=V.ownerDocument.createElement("ps-"+b);V.parentNode.replaceChild(b,V);b.appendChild(V);var e=Array.from(V.attributes);e=_.J(e);for(var g=e.next();!g.done;g=e.next())g=g.value,B?CO0.has(g.name)&&GO(b,g.value,g.name):KK_.has(g.name)?GO(b,g.value,g.name):Oks.has(g.name),V.removeAttribute(g.name);B=b}else B=V}if(B.nodeType===Node.TEXT_NODE){V=void 0;b=X;for(e=B;((V=e.nextSibling)==null?void 0:V.nodeType)===Node.TEXT_NODE;)g=void 0,(g=e).textContent!=null||(g.textContent=""),e.nextSibling.textContent&&
(e.textContent+=e.nextSibling.textContent),b.removeChild(e.nextSibling);if(t.stripWhitespace&&B.textContent&&!B.textContent.trim()){X.removeChild(B);B=B.nextSibling;continue}}u$6(B,t,{parentIndex:z,parentInfo:w});B.parentNode&&z++;B=B.nextSibling}}var F;if((F=X.hasAttributes)==null?0:F.call(X)){F=G=AXl(G);w=!1;z=Array.from(X.attributes);z=_.J(z);for(V=z.next();!V.done;V=z.next())V=V.value,w=hz0(X,F,V.name,V.value)||w;y=w||y}X.nodeType===Node.TEXT_NODE&&(F=YL0(X.textContent),F.length&&(X.textContent=
DK0(F)||" ",G=AXl(G),SL0(G,"text","textContent",F),y=!0));G&&y&&(G.infoIndex=t.nodeInfoList.push(G)-1)};
qLh=function(X,t){t={nodeInfoList:[],stripWhitespace:(t===void 0?!1:t)||X.hasAttribute("strip-whitespace")};u$6(X.content,t);return t};
QTv=function(X){Object.assign(X,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
WKh=function(X,t,G){t.signalCache!=null||(t.signalCache={});var y=t.signalCache[G];if(!y){var w=G.split(".");y=!Imw(X,w[0]);if(w.length>1&&y){var z=X.getPathMutationSignal(w);y=function(){var B=Lt(X.owner,function(){return X.getWithPath([w[0]])}),V,b=(V=z())==null?void 0:V.value;
return{rootWasDefined:B!==void 0,value:b}}}else y=function(){var B=X.getWithPath(w);
return{rootWasDefined:B!==void 0,value:B}};
t.signalCache[G]=y}return y()};
p8h=function(X,t,G,y,w){t=t.parts.map(function(B,V){if(B.type==="literal"){G.partWasDefined!=null||(G.partWasDefined=[]);var b;(b=G.partWasDefined)[V]||(b[V]=B.value!==void 0);return B.value}var e;if(B.type==="method"){var g,F=(g=(e=G.partWasDefined)==null?void 0:e[V])!=null?g:!1;F||(F=B.signature.args.every(function(h){return h.type==="literal"}));
var T=!1,D=!0;e=B.signature.args.map(function(h){if(h.type==="literal")return h.value;if(h.type!=="path")throw Error("Gg`"+h.type);var u=WKh(X,G,h.path);h=u.value;u=u.rootWasDefined;T||(T=u);D&&(D=u);return h});
F||(F=w===1?D:T);G.partWasDefined!=null||(G.partWasDefined={});G.partWasDefined[V]=F;if(!F)return;e=(V=WKh(X,G,B.signature.methodName).value)&&typeof V==="function"?V.apply(y,e):void 0}else g=WKh(X,G,B.path),e=g.value,G.partWasDefined!=null||(G.partWasDefined={}),(F=G.partWasDefined)[V]||(F[V]=e!==void 0||g.rootWasDefined);B.negate&&(e=!e);return e});
if(t.length===1){var z;return((z=G.partWasDefined)==null?0:z[0])?t[0]:cXV}return t.join("")};
rXV=function(X){return typeof X==="object"&&!!X&&"notifyPath"in X&&"canNotifyPath"in X};
NfA=function(X){return typeof X==="object"&&!!X&&"notifyPath"in X};
PO_=function(X){return"polymerController"in X};
EUE=function(X,t){t=""+tm(t)[0];if(rXV(X))return X.canNotifyPath(t);if(PO_(X)&&rXV(X.polymerController))return X.polymerController.canNotifyPath(t);if(NfA(X)){var G;return!((G=X.properties)==null||!G[t])}if(PO_(X)&&NfA(X.polymerController)){var y;return!((y=X.polymerController.properties)==null||!y[t])}return!1};
UKl=function(X,t,G){rXV(X)||NfA(X)?X.notifyPath(t,G):PO_(X)&&(rXV(X.polymerController)||NfA(X.polymerController))&&X.polymerController.notifyPath(t,G)};
Rzh=function(X,t,G){if(G!==cXV){X.kind==="attribute"||X.target!=="textContent"&&(X.target!=="value"||t.localName!=="input"&&t.localName!=="textarea")||(G=G===void 0?"":G);var y,w=(y=mKG.Polymer)==null?void 0:y.sanitizeDOMValue;w&&(G=w(G,X.target,X.kind,t));if(X.kind==="attribute"){X=X.target;if(X==="class"||X==="name"||X==="slot")t=(0,_.Cd)(t);GO(t,G,X)}else if(X=X.target,G!==t[X]||typeof G==="object")t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!0,ie(t.localName,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
t[X]=G,t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!1)}};
ikY=function(X,t,G,y){var w=t.parts[0];if(t.parts.length!==1||w.type!=="path"||!EUE(G,t.target))return!1;var z=_.J(w.path.split(".")),B=z.next().value,V=Hm(z);if(Imw(X,B))return!1;y.signalCache!=null||(y.signalCache={});z=y.signalCache[w.path];var b;z=(b=z)==null?void 0:b().value;if((z==null?void 0:z.path)!==void 0){y=tm(z.path);var e=tm(w.path);y=[t.target].concat(_.RY(y.slice(e.length-1)));UKl(G,y,w.negate?!z.value:z.value);return!0}var g=y2(X,B);var F=g.getChangeRecordSignal(V),T=!1;z=function(){if(!T){var h=
Lt(X.owner,function(){return g.getWithPath([])});
T||(T=h!==void 0)}return{value:F(),rootWasDefined:T}};
y.signalCache[w.path]=z;y.partWasDefined!=null||(y.partWasDefined={});z=z();(e=y.partWasDefined)[0]||(e[0]=z.rootWasDefined);var D=Lt(X.owner,function(){return g.getWithPath(V)});
y.partWasDefined[0]&&Lt(X.owner,function(){return void Rzh(t,G,w.negate?!D:D)});
return!0};
LKs=function(X,t,G,y,w,z){if(!ikY(X,t,G,y)){var B=p8h(X,t,y,w,z);Lt(X.owner,function(){return void Rzh(t,G,B)})}};
vUf=function(X,t,G,y,w,z){G=_.J(G);for(var B=G.next(),V={};!B.done;V={infoIndex:void 0},B=G.next()){B=B.value;var b=B.bindings;V.infoIndex=B.infoIndex;B=B.parentInfo;if(b){b=_.J(b);for(var e=b.next(),g={};!e.done;g={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},e=b.next()){g.b$jscomp$253=e.value;if(V.infoIndex===void 0)throw Error("Hg");g.bindingCtx$jscomp$4={};X.effect(function(F,T){return function(){w&&!w()||LKs(X,F.b$jscomp$253,t[T.infoIndex],F.bindingCtx$jscomp$4,y,z)}}(g,V))}}B&&vUf(X,t,[B],
y,w,z)}};
am6=function(X,t){X=(t.parentInfo?am6(X,t.parentInfo):X).firstChild;for(var G=0;X;X=X.nextSibling)if(t.parentIndex===G++)return X;throw Error("Ig");};
xKf=function(X,t,G,y){X=document.importNode(X.content,!0);X.__noInsertionPoint=!(y==null?0:y.hasInsertionPoint);for(var w=Array(t.length),z={},B=0;B<t.length;B++){var V=t[B],b=am6(X,V);w[B]=b;V.id&&(z[V.id]=b);if(V.templateInfo){var e=b.parentElement;e&&(e.templateInfo=V.templateInfo,e.parentSignalProxy=G,e.eventListenerHost=y.eventListenerHost,e.stampingEnabled=y.enabledSignal)}e=void 0;if((e=V.events)==null?0:e.length)for(e=0;e<V.events.length;e++){var g=V.events[e];lms(y.eventListenerHost,b,g.name,
g.value,y.getModel)}}vUf(G,w,t,y.thisCtx,y.enabledSignal,y.methodInvocationRequirement);return{root:X,nodes:w,nodesById:z}};
MNw=function(X,t){X=X();var G;(G=fml.ShadyCSS)==null||G.prepareTemplate(X,t);t=qLh(X);return{template:X,nodeInfoList:t.nodeInfoList,hasInsertionPoint:t.hasInsertionPoint}};
tFl=function(){X_E=!1;for(var X=wX.length,t=0;t<X;t++){var G=wX[t];if(G)try{G()}catch(y){Promise.resolve().then(function(){throw y;})}}wX.splice(0,X);
$6v+=X};
zYA=function(X){X_E||(X_E=!0,GbA.textContent=(yYf++).toString());wX.push(X);return w_G++};
_.oL=function(X,t,G){zO++;X=t?new Hih(zO,X,t,G):new oqf(zO,X);Hj.set(zO,X);return zO};
JYV=function(X){(X=Hj.get(X))&&X.cancel()};
nqG=function(X,t){X=BRw.get(X);return X?(t=X.get(t))?t:null:null};
_.Jm=function(X,t,G,y){var w=nqG(X,t);if(!w){w=new VFE;var z=BRw.get(X);z||(z=new Map,BRw.set(X,z));z.set(t,w)}X=G.bind(X);w.run(X,y,void 0)};
_.bis=function(X,t){var G;(G=nqG(X,t))==null||G.cancel()};
kb_=function(X){var t;(t=nqG(X,"doRender"))==null||t.flush()};
Bj=function(X){var t;return(t=X.hostElement)!=null?t:X};
d66=function(X){var t=X.indexOf(".");return t===-1?X:X.slice(0,t)};
eYw=function(X,t,G,y,w,z){z=(w=(y=z?d66(t):t)?t:null)?X.get(w):X.__data[t];w&&z===void 0&&(z=G[t]);_.Yt(X.hostElement,UTh(y)+"-changed",{value:z,queueProperty:!0,path:w!=null?w:void 0},{bubbles:!1,composed:!1})};
jRY=function(X,t){X.__isReflecting=!0;FKV(X.hostElement,t,X.__data[t]);X.__isReflecting=!1};
gqY=function(X){if(X._onIronRequestResizeNotifications){var t=X._onIronRequestResizeNotifications.bind(X);X._onIronRequestResizeNotifications=function(G){_.k3(G)!==X.hostElement&&t(G)}}X._ariaActiveAttributeChanged&&(X._ariaActiveAttributeChanged=X._ariaActiveAttributeChanged.bind(X.hostElement));
X._activeChanged&&(X._activeChanged=function(G){X.toggles?GO(X.hostElement,G?"true":"false",X.ariaActiveAttribute):X.hostElement.removeAttribute(X.ariaActiveAttribute);X._changedButtonState()});
X._asyncClick&&(X._asyncClick=function(){_.oL(function(){X.hostElement.click()},1)});
!X.keyEventTarget||X.keyEventTarget instanceof EventTarget||(X.keyEventTarget=Bj(X.keyEventTarget));X._disabledChanged&&(X._disabledChanged=X._disabledChanged.bind(X.hostElement));X._observeItems&&(X._observeItems=function(G){var y=Bj(G);return _.Es(y).observeNodes(function(w){X._updateItems();X._updateSelected();_.Yt(y,"iron-items-changed",w,{bubbles:!1,cancelable:!1})})});
X._updateItems&&X._updateItems===_.nz._updateItems&&(X._updateItems=function(){var G=_.Es(X.hostElement).queryDistributedElements(X.selectable||"*");G=Array.prototype.filter.call(G,X._bindFilterItem);X._setItems(G)});
X._computeKeyboardClass&&(X._computeKeyboardClass=function(G){_.Zk(X.hostElement,"keyboard-focus",G)});
X.ensureRipple&&(X.ensureRipple=function(G){if(X.hasRipple&&!X.hasRipple()){if(!X._createRipple)return;X._ripple=X._createRipple();X._ripple.noink=X.noink;var y=X._rippleContainer||X.hostElement;y&&_.Sm(y).appendChild(X._ripple)}var w;if(G&&((w=X._ripple)==null?0:w.uiDownAction)){y=_.Sm(X._rippleContainer||X.hostElement);var z;w=(z=G.composedPath())==null?void 0:z[0];y.contains(w)&&X._ripple.uiDownAction(G)}});
X._updateMultiselectable&&(X._updateMultiselectable=function(G){G?X.hostElement.setAttribute("aria-multiselectable","true"):X.hostElement.removeAttribute("aria-multiselectable")})};
F0G=function(X,t,G){G=_.J(G);for(var y=G.next();!y.done;y=G.next())Lis(y.value.constructor,X);Lis(t.constructor,X)};
AYl=function(X,t){X=_.J(X);for(var G=X.next();!G.done;G=X.next())if(G=G.value,G.type==="signal"){var y=G.propertyKey;if(t.hasOwnProperty(y)&&t[y]!=null&&G.attributeType===Object){a:{y=t[y].constructor;for(var w=_.J(TR_),z=w.next();!z.done;z=w.next())if(z=z.value,y===z){y=z;break a}y=Object}G.attributeType=y}}};
YDY=function(){};
sRs=function(X){var t;return(t=X.hostElement)!=null?t:X};
D6l=function(){throw Error("Mg");};
SDE=function(X,t){X.constructor.prototype.useSignals=!0;var G=new X.constructor;F0G(G,X,t.behaviors);AYl(t.reactiveSchemas,G);G={};for(var y=_.J(t.reactiveSchemas),w=y.next();!w.done;w=y.next())w=w.value,w.type==="signal"&&(G[w.propertyKey]=w.attributeType);var z={copyPropertiesToProto:D6l,didRegister:!1,typesForSignals:G},B=["disable-upgrade"].concat(_.RY(t.observedAttributes)),V=function(b){V2.call(this,X,t,z,b)};
_.S(V,V2);_.ke.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return B}}});
z.copyPropertiesToProto=function(){for(var b=0;b<t.behaviors.length;b++)aTJ(t.behaviors[b],V.prototype);aTJ(X,V.prototype)};
t.legacyOptimizations||z.copyPropertiesToProto();V.prototype.is=X.is;return V};
hYY=function(X,t){if(Object.getPrototypeOf(t.prototype).constructor!==_.O)throw Error("Ng");t.prototype.is=X.is;return SDE(t.prototype,X)};
Zil=function(X){return X.type==="compute"||X.type==="computeWithMethod"};
qDE=function(X){for(var t=X.reactiveSchemas.filter(Zil),G=new Map,y=new Map,w=new Map,z=_.J(t),B=z.next();!B.done;B=z.next())B=B.value,G.set(B.propertyKey,B),y.set(B.propertyKey,[]),w.set(B.propertyKey,0);z=0;t=_.J(t);for(B=t.next();!B.done;B=t.next()){B=B.value;for(var V=_.J(B.type==="computeWithMethod"?B.method.args:B.args),b=V.next();!b.done;b=V.next())b=b.value,b.type!=="literal"&&(b=b.path.split(".")[0],y.has(b)&&(y.get(b).push(B.propertyKey),w.set(B.propertyKey,w.get(B.propertyKey)+1),z++))}B=
[].concat(_.RY(y.keys())).filter(function(e){return w.get(e)===0});
for(t=[];B.length;)for(V=B.shift(),t.push(G.get(V)),V=_.J(y.get(V)),b=V.next();!b.done;b=V.next())b=b.value,w.set(b,w.get(b)-1),z--,w.get(b)===0&&B.push(b);G=X.reactiveSchemas.filter(function(e){return!Zil(e)});
X.reactiveSchemas=[].concat(_.RY(G),_.RY(t))};
CNl=function(X,t){if(t.properties)for(var G=_.J(Object.entries(t.properties)),y=G.next();!y.done;y=G.next()){var w=_.J(y.value);y=w.next().value;w=w.next().value;X.properties[y]=typeof w==="function"?{type:w}:w}t.observers&&X.observers.push.apply(X.observers,_.RY(t.observers));t.disabledPolySiReactions&&X.disabledPolySiReactions.push.apply(X.disabledPolySiReactions,_.RY(t.disabledPolySiReactions))};
K06=function(X,t){for(var G=t.length-1;G>=0;G--){var y=t[G];Array.isArray(y)?K06(X,y):X.indexOf(y)<0&&X.unshift(y)}};
Oil=function(X,t){X.reactiveSchemas=X.reactiveSchemas.filter(function(G){return G.type==="observe"&&t.includes(G.method.methodName)||Zil(G)&&t.includes(G.propertyKey)?!1:!0})};
QRG=function(X,t){var G=t.prototype,y,w,z={is:X.is,reactiveSchemas:[],observedAttributes:[],behaviors:[PZv.InjectBehavior,MS.prototype],disableElementRegistration:X.disableElementRegistration,provide:(y=X.providers)!=null?y:[],reactivityMode:X.reactivityMode,signalProperties:(w=G.signalProperties)!=null?w:[]};"template"in t?z.templateGetter=function(){return t.template}:X.getTemplate&&(z.templateGetter=X.getTemplate);
G.behaviors&&K06(z.behaviors,G.behaviors);uUw(z,t);return z};
uUw=function(X,t){for(var G=t.prototype,y={properties:{},observers:[],disabledPolySiReactions:[]},w=_.J(X.behaviors),z=w.next();!z.done;z=w.next())CNl(y,z.value);CNl(y,G);if(X.signalProperties)for(G=_.J(X.signalProperties),w=G.next();!w.done;w=G.next())delete y.properties[w.value];G=_.J(Object.entries(y.properties));for(w=G.next();!w.done;w=G.next()){z=_.J(w.value);w=z.next().value;z=z.next().value;var B=void 0;if((B=X.signalProperties)==null||!B.includes(w)){B=void 0;var V=X,b=z.type;if(!b)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{b=Reflect.getMetadata("design:type",t,w);for(var e=_.J(IjA),g=e.next();!g.done;g=e.next())if(g=g.value,b===g){b=g;break a}b=Object}else b=String;z.computed||z.selector||(V.reactiveSchemas.push({type:"signal",propertyKey:w,value:z.value,attributeType:b,readOnly:z.readOnly}),V.observedAttributes.push(_.Q8(w)));z.reflectToAttribute&&V.reactiveSchemas.push({type:"reflect",propertyKey:w});if(z.computed){b=gU6(z.computed);if(!b)throw Error("Og");V.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:w,method:b,value:z.value})}z.observer&&V.reactiveSchemas.push({type:"observe",method:{methodName:z.observer,args:[{type:"path",path:w}]}});z.notify&&V.reactiveSchemas.push({type:"notify",propertyKey:w});z.selector&&V.reactiveSchemas.push({type:"redux",propertyKey:w,selector:z.selector,selectorArgs:(B=z.selectorArgs)!=null?B:[]})}}W0f&&qDE(X);t=_.J(y.observers);for(w=t.next();!w.done;w=t.next())G=X,w=w.value,(z=gU6(w))?G.reactiveSchemas.push({type:"observe",method:z}):console.log('Warning: unable to parse observe declaration: "'+
w+'"');Oil(X,y.disabledPolySiReactions)};
cYw=function(X,t){for(var G=0;G<t.length;G++){var y=t[G],w=void 0;(w=y).showHideApi!=null||(w.showHideApi={});w=void 0;!!X!==!((w=y.showHideApi)==null||!w.hideTemplateChildren)&&(y.nodeType===Node.TEXT_NODE?X?(y.showHideApi.polymerTextContent=y.textContent,y.textContent=""):(w=void 0,y.textContent=(w=y.showHideApi.polymerTextContent)!=null?w:null):y instanceof Element&&y.localName==="slot"?X?(y.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Cd)((0,_.Cd)(y).parentNode).replaceChild(y.showHideApi.polymerReplaced,
y)):(w=y.showHideApi.polymerReplaced)&&(0,_.Cd)((0,_.Cd)(w).parentNode).replaceChild(y,w):y instanceof HTMLElement&&y.style&&(X?(y.showHideApi.polymerDisplay=y.style.display,y.style.display="none"):y.style.display=y.showHideApi.polymerDisplay));y.showHideApi.hideTemplateChildren=X;y.showHideChildren&&y.showHideChildren(X)}};
rY6=function(){if(!p_6){var X=document.createElement("style");X.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(X);p_6=!0}};
b$=function(){return _.A("disable_hidden_dom_if_using_stamper")};
NRf=function(X,t){var G=_.kF().getState();return t?X.apply(null,[G].concat(_.RY(t))):X(G)};
U6V=function(){if(PNs)return PNs;var X=_.J(_.sm(0,void 0,"Nl6eIe")),t=X.next().value;X.next();var G=X.next().value;_.kF().subscribe(function(){Eqv(G)});
return PNs=t};
Eqv=function(X){_.A("delay_redux_signal_update_killswitch")?X(function(t){return t+1}):m6h||(m6h=!0,Promise.resolve().then(function(){X(function(t){return t+1});
m6h=!1}))};
_.kF=function(){return RYh.getAppStore()};
iil=function(X,t){return RYh.getSelectFn()(X,t)};
_.dX=function(X){RYh.getDispatchFn()(X)};
L0A=function(X,t){var G={},y;for(y in X)G[y]=t(X[y],y);return G};
_.ex=function(X,t){return function(){var G;return(G=_.R5(X))!=null?G:t}};
_.jx=function(X,t){var G=Object.assign({},X),y;for(y in t)t.hasOwnProperty(y)&&(G[y]=_.ex(X[y],t[y]));return G};
vq_=function(X,t,G){X instanceof Element&&(G.debugName||(G.debugName="<"+X.tagName.toLowerCase()+(X.tagName.includes("-")?">":"."+X.className+">")),_.A("ytwiz_enable_debug_component_props")&&(X.debugProps||(X.debugProps=L0A(t,function(y){return function(){return y()}}))))};
ajG=function(X){var t;if(!(t=gX.traceAllComponents)){var G;t=(G=j7)==null?void 0:G.activeSpan;t=(t==null?void 0:t.name)!=="ytComponent"}return t?A00("ytComponent",{},X):X()};
_.Fp=function(X,t){var G=function(y){return ajG(function(w){var z=ljv={};var B;if(((B=G)==null?0:B.idomCompat)&&y.renderedFromIdom){var V;B=typeof G.idomCompat==="object"?(V=G)==null?void 0:V.idomCompat.callbacks:{};B=_.J(x6h(y,B,G.debugName));V=B.next().value;B.next();B=B.next().value;var b=fjv(X,V);z.privateValue=b;ljv=void 0;vq_(b,V,G);z={debugName:G.debugName};w&&z&&Object.assign(w.attributes,z);w=uEh(b);w=Array.isArray(w)?w[0]:w;w[hf]||(w[hf]={});w[hf].updateSignalsFromIdomProps=B;MFl(V,b);return b}B=
L0A(y,XQl);V=fjv(X,B);z.privateValue=V;ljv=void 0;vq_(V,B,G);z={debugName:G.debugName};w&&z&&Object.assign(w.attributes,z);MFl(B,V);return V})};
G.debugName=t===void 0?"":t;return G};
fjv=function(X,t){X=X(t);return KY(X)};
$qs=function(X,t){X[t]||(X=new _.NJ("IDOM interop setter undefined. Key:",t),_.xA(X))};
XQl=function(X,t){return t==="children"||t==="ref"||typeof X==="function"||X===void 0?X:function(){return _.R5(X)}};
x6h=function(X,t,G){var y={},w={},z={},B={},V;for(V in X){B={key$jscomp$920:B.key$jscomp$920};B.key$jscomp$920=V;var b=X[B.key$jscomp$920];if(B.key$jscomp$920==="children"||B.key$jscomp$920==="ref")y[B.key$jscomp$920]=b;else if(typeof b==="function")B.key$jscomp$920 in t||b.length>0?(z[B.key$jscomp$920]=b,y[B.key$jscomp$920]=function(g){return function(){return z[g.key$jscomp$920].apply(z,_.RY(_.f1.apply(0,arguments)))}}(B)):y[B.key$jscomp$920]=b;
else if(!(X[B.key$jscomp$920]===void 0&&B.key$jscomp$920 in t)){var e=_.J(_.sm(X[B.key$jscomp$920],{debugName:B.key$jscomp$920+":cwis:"+G},"rvrjQe"));b=e.next().value;e=e.next().value;y[B.key$jscomp$920]=b;w[B.key$jscomp$920]=e}}return[y,w,function(g){var F={},T;for(T in g)F={key$jscomp$921:F.key$jscomp$921,val$jscomp$117:void 0},F.key$jscomp$921=T,F.val$jscomp$117=g[F.key$jscomp$921],F.key$jscomp$921!=="children"&&F.key$jscomp$921!=="ref"&&(typeof F.val$jscomp$117==="function"?F.key$jscomp$921 in
t?z[F.key$jscomp$921]=F.val$jscomp$117:F.val$jscomp$117.length>0&&(z[F.key$jscomp$921]=F.val$jscomp$117,_.Mj(new _.NJ("Callback detected that was not set in the idomCompat callbacks map. Key:",F.key$jscomp$921))):F.key$jscomp$921 in t&&F.val$jscomp$117===void 0||($qs(w,F.key$jscomp$921),Ct(function(D){return function(){w[D.key$jscomp$921](D.val$jscomp$117)}}(F))))}]};
y36=function(X,t,G){var y=f_l(X.prototype,tSJ,X.prototype.behaviors);y.prototype.is=t;y.prototype.localName=t;G&&GL_(y,G);return function(w){w&&(y.prototype.hostElement=w);var z=new y;z.root=z;z.hostElement=w;return z}};
GL_=function(X,t){var G;Object.defineProperty(X.prototype,"_template",{get:function(){G===void 0&&(G=t());return G},
set:function(y){G=y},
configurable:!0,enumerable:!0})};
J3A=function(X,t,G,y){function w(){if(!D){for(var h=new Set,u=_.J(g),W=u.next();!W.done;W=u.next()){W=W.value;for(var c=_.J(Object.getOwnPropertyNames(W)),P=c.next();!P.done;P=c.next()){P=P.value;var l=void 0,R=(l=Object.getOwnPropertyDescriptor(W,P))==null?void 0:l.value;R&&R instanceof Function&&!TO(P)&&(!V[P]||_.A("polymer_forward_method_killswitch"))&&h.add(P)}}u=_.J(Object.entries(Object.getOwnPropertyDescriptors(X.prototype)));for(W=u.next();!W.done;W=u.next())c=_.J(W.value),W=c.next().value,
c=c.next().value,c.value instanceof Function&&!TO(W)&&h.add(W);D=h}return D}
wQ6(X,t,y==null?void 0:y.providers);M$Y(X.prototype,X,!0);var z=y36(X,t,G),B,V=(B=X.prototype.properties)!=null?B:{},b,e,g=(e=(b=X.prototype.behaviors)==null?void 0:b.flat(Infinity))!=null?e:[];G=_.J(g);for(B=G.next();!B.done;B=G.next())V=Object.assign({},B.value.properties,V);var F=[].concat(_.RY(zb6),_.RY(Object.keys(V).map(function(h){return _.Q8(h)}))),T=!1,D;
return{ctor:function(h,u){var W=z(h),c,P;h=[].concat(_.RY((c=y==null?void 0:y.allowedProps)!=null?c:[]),_.RY((P=y==null?void 0:y.allowedPropsFromBehaviors)!=null?P:[]));W.allowedProps=h.length>0?h:void 0;c={};P=_.J(F);for(h=P.next();!h.done;h=P.next())h=h.value,c[h]=_.I4(h);W.__dataAttributes=c;var l=W.ready.bind(W);W.ready=function(){u.beforeReady();l();if(m_(t)&&!T){var R=W.__templateInfo;if(R==null?0:R.hostProps){R=_.J(Object.keys(R.hostProps));for(var L=R.next();!L.done;L=R.next())ie(t,L.value,
"PROPERTY_ACCESS_GET_INTERNAL")}T=!0}};
W._overrideLegacyUndefined=!0;return W},
props:V,observedAttributes:F,getInitialMethods:w,getPropsToForwardBeforeRegister:function(){for(var h=[],u=new Set,W=_.J(Object.keys(V)),c=W.next();!c.done;c=W.next())c=c.value,h.push([c,V[c].readOnly]),u.add(c);W=w();c=_.J(Object.keys(Object.getOwnPropertyDescriptors(X.prototype)));for(var P=c.next();!P.done;P=c.next())P=P.value,!HW_(P)||W.has(P)||u.has(P)||(h.push([P,!1]),u.add(P));u=_.J(o4E);for(W=u.next();!W.done;W=u.next())h.push([W.value,!0]);return h},
getPropsToForwardBeforeReady:function(h){for(var u=[],W=_.J(Object.entries(h)),c=W.next();!c.done;c=W.next()){var P=_.J(c.value);c=P.next().value;P=P.next().value;if(HW_(c)&&!(P instanceof Function)&&(u.push([c,!1]),m_(t))){var l=P=void 0;(l=(P=h)._createPropertyAccessor)==null||l.call(P,c)}}return u},
shouldForwardProp:HW_,shouldLog:m_}};
wQ6=function(X,t,G){EMG(X,G);X.prototype.behaviors.unshift(BI0);if(qYE()){if(m_(t)){var y;(y=X.prototype).behaviors!=null||(y.behaviors=[]);X.prototype.behaviors.unshift(uFJ())}Qys(X)}_.q(MS.prototype)(X.prototype,"__templateHelpers")};
TO=function(X){return n4_.has(X)||X.startsWith("__compute__")};
HW_=function(X){return!TO(X)&&!X.startsWith("_")&&!X.endsWith("_")};
eb6=function(X,t){function G(){var T=b();T=_.J(T);for(var D=T.next();!D.done;D=T.next()){var h=_.J(D.value);D=h.next().value;h=h.next().value;VSv(F.prototype,D,h)}y=!0}
var y=!1,w=X.ctor,z=X.getInitialMethods,B=X.observedAttributes,V=X.getPropsToForwardBeforeReady,b=X.getPropsToForwardBeforeRegister,e=X.shouldForwardProp,g=X.shouldLog,F=function(){var T=HTMLElement.call(this)||this;T.didForwardDynamicProps=!1;T.loggingStatus={};y||G();T.inst=w(T,{beforeReady:function(){T.didForwardDynamicProps||(T.forwardDynamicProps(),T.didForwardDynamicProps=!0)}});
T.controllerProxy=Ki0(T.inst,t);T.forwardMethods();return T};
_.S(F,HTMLElement);F.prototype.forwardMethods=function(){for(var T=this,D=_.J(this.inst.getExtraMethodsToForward()),h=D.next(),u={};!h.done;u={method$jscomp$63:void 0},h=D.next()){var W=_.J(h.value);h=W.next().value;W=W.next().value;u.method$jscomp$63=W;this[h]=function(c){return function(){return c.method$jscomp$63.call.apply(c.method$jscomp$63,[T.inst].concat(_.RY(_.f1.apply(0,arguments))))}}(u)}D=_.J(z());
for(u=D.next();!u.done;u=D.next())u=u.value,e(u)&&bWY(this,u),g(t)&&!TO(u)&&kLV(this.inst,u)};
F.prototype.forwardDynamicProps=function(){var T=V(this.inst);T=_.J(T);for(var D=T.next();!D.done;D=T.next()){var h=_.J(D.value);D=h.next().value;h=h.next().value;VSv(this,D,h);g(t)&&!TO(D)&&dq_(this.inst,D)}};
F.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
F.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
F.prototype.attributeChangedCallback=function(T,D,h){this.inst.attributeChangedCallbackWrapper(T,D,h)};
_.ke.Object.defineProperties(F.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return t}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.ke.Object.defineProperties(F,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return B}}});
customElements.define(t,F)};
VSv=function(X,t,G){X.hasOwnProperty(t)||Object.defineProperty(X,t,{get:function(){var y,w=((y=X.is)!=null?y:X.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||ie(w,t,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,y=this.polymerController[t],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,y},
set:function(y){if(!G){var w,z=((w=X.is)!=null?w:X.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||ie(z,t,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=t,this.loggingStatus.bypassProxyController=!0,this.polymerController[t]!==y&&(w={},this.polymerController.setProperties((w[t]=y,w)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
bWY=function(X,t,G){var y=X.polymerController;X[t]=function(){var w=_.f1.apply(0,arguments);X.loggingStatus.currentExternalCall=t;X.loggingStatus.bypassProxyController=!0;var z,B=((z=X.is)!=null?z:X.tagName).toLowerCase();ie(B,t,"PROPERTY_ACCESS_CALL_EXTERNAL");var V;z=(V=G!=null?G:y[t])==null?void 0:V.call.apply(V,[y].concat(_.RY(w)));X.loggingStatus.currentExternalCall=void 0;X.loggingStatus.bypassProxyController=!1;return z}};
kLV=function(X,t){var G=X.hostElement,y=X[t];X[t]=function(){var w=_.f1.apply(0,arguments);if(G.loggingStatus.currentExternalCall!==t){var z,B=((z=G.is)!=null?z:G.tagName).toLowerCase();ie(B,t,"PROPERTY_ACCESS_CALL_INTERNAL")}return y==null?void 0:y.apply(X,w)}};
dq_=function(X,t){var G=Object.getOwnPropertyDescriptor(X,t);G&&!G.get&&Object.defineProperty(X,t,{get:function(){O$w(X.hostElement,t);return G.value},
set:function(y){Ld(X.hostElement,t);G.value=y}})};
jUs=function(X){return _.A("poly_si_dom_repeat_detached_fix_killswitch")||X.tagName!=="PS-DOM-REPEAT"?X.tagName==="DOM-REPEAT":!0};
FO_=function(X,t){var G=g40(X);X instanceof Element&&G.unshift(X);X=_.J(G.filter(jUs));for(var y=X.next();!y.done;y=X.next()){var w=void 0;y=_.J((w=y.value.__instances)!=null?w:[]);for(w=y.next();!w.done;w=y.next())if(w=w.value,w.root){w=Array.from(w.root.children);w=_.J(w);for(var z=w.next();!z.done;z=w.next())G.push.apply(G,_.RY(FO_(z.value,t)))}}return G.filter(function(B){return B.usePatchedLifecycles&&B.lifecycleIsConnected===t})};
g40=function(X){var t=null;X instanceof Element?t=Element.prototype.querySelectorAll:X instanceof DocumentFragment&&(t=DocumentFragment.prototype.querySelectorAll);return t?Array.from(t.call(X,"*")):[]};
Am=function(X){YH(function(){for(var t=_.J(FO_(X,!1)),G=t.next();!G.done;G=t.next()){G=G.value;G.lifecycleIsConnected=!0;try{var y=void 0,w=void 0,z=void 0,B=void 0;(y=(B=G.polymerController)!=null?B:G)==null||(z=(w=y).connectedCallback)==null||z.call(w)}catch(V){_.xA(V)}}})};
YF=function(X){YH(function(){for(var t=_.J(FO_(X,!0)),G=t.next();!G.done;G=t.next()){G=G.value;G.lifecycleIsConnected=!1;try{var y=void 0,w=void 0,z=void 0,B=void 0;(y=(B=G.polymerController)!=null?B:G)==null||(z=(w=y).disconnectedCallback)==null||z.call(w)}catch(V){_.xA(V)}}})};
hb0=function(){if(!TIv){TIv=!0;var X=[Node];sV&&X.push(sV.Wrapper);var t=Node.prototype.insertBefore,G=Node.prototype.removeChild;X=_.J(X);for(var y=X.next(),w={};!y.done;w={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},y=X.next())y=y.value,w.nativeInsertBefore=y.prototype.insertBefore,y.prototype.insertBefore=function(B){return function(V,b){if(V instanceof DocumentFragment){var e=Array.from(V.children);V=B.nativeInsertBefore.call(this,V,b);
if(this.isConnected&&B.nativeInsertBefore===t)for(b=_.J(e),e=b.next();!e.done;e=b.next())Am(e.value);return V}e=V instanceof Element&&V.isConnected;b=B.nativeInsertBefore.call(this,V,b);e&&YF(V);this.isConnected&&Am(V);return b}}(w),w.nativeAppendChild=y.prototype.appendChild,y.prototype.appendChild=function(B){return function(V){if(V instanceof DocumentFragment){var b=Array.from(V.children);
V=B.nativeAppendChild.call(this,V);if(this.isConnected){b=_.J(b);for(var e=b.next();!e.done;e=b.next())Am(e.value)}return V}b=V instanceof Element&&V.isConnected;e=B.nativeAppendChild.call(this,V);b&&YF(V);this.isConnected&&Am(V);return e}}(w),w.nativeRemoveChild=y.prototype.removeChild,y.prototype.removeChild=function(B){return function(V){var b=V instanceof Element&&V.isConnected,e=B.nativeRemoveChild.call(this,V);
b&&G===B.nativeRemoveChild&&YF(V);return e}}(w),w.nativeReplaceChild=y.prototype.replaceChild,y.prototype.replaceChild=function(B){return function(V,b){if(V instanceof DocumentFragment){var e=Array.from(V.children);
V=B.nativeReplaceChild.call(this,V,b);if(this.isConnected)for(YF(b),b=_.J(e),e=b.next();!e.done;e=b.next())Am(e.value);return V}e=V instanceof Element&&V.isConnected;var g=this.isConnected,F=B.nativeReplaceChild.call(this,V,b);g&&YF(b);e&&YF(V);g&&Am(V);return F}}(w);
X=[Element];sV&&X.push(sV.Wrapper);X=_.J(X);y=X.next();for(w={};!y.done;w={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},y=X.next())y=y.value,y.prototype.before=A30(y.prototype.before),y.prototype.after=A30(y.prototype.after),w.nativeReplaceWith=y.prototype.replaceWith,y.prototype.replaceWith=function(B){return function(){var V=_.f1.apply(0,arguments),b=_.J(YZf(V)),e=b.next().value,
g=b.next().value;b=this.isConnected;B.nativeReplaceWith.apply(this,V);V=_.J(g);for(g=V.next();!g.done;g=V.next())YF(g.value);if(b)for(YF(this),e=_.J(e),b=e.next();!b.done;b=e.next())b=b.value,b instanceof Element&&Am(b)}}(w),w.nativeRemove=y.prototype.remove,y.prototype.remove=function(B){return function(){var V=this.isConnected;
B.nativeRemove.call(this);V&&YF(this)}}(w),w.nativeInsertAdjacentElement=y.prototype.insertAdjacentElement,y.prototype.insertAdjacentElement=function(B){return function(V,b){var e=b.isConnected;
V=B.nativeInsertAdjacentElement.call(this,V,b);e&&YF(b);V.isConnected&&Am(V);return V}}(w),w.nativeSetAttribute=y.prototype.setAttribute,y.prototype.setAttribute=function(B){return function(V,b){var e=sUE(this);
if(!e.usePatchedLifecycles)return B.nativeSetAttribute.call(this,V,b);var g=this.getAttribute(V);B.nativeSetAttribute.call(this,V,b);b=this.getAttribute(V);DqV(e,V,g,b)}}(w),w.nativeRemoveAttribute=y.prototype.removeAttribute,y.prototype.removeAttribute=function(B){return function(V){var b=sUE(this);
if(!b.usePatchedLifecycles)return B.nativeRemoveAttribute.call(this,V);var e=this.getAttribute(V);B.nativeRemoveAttribute.call(this,V);e!==null&&DqV(b,V,e,null)}}(w),w.nativeToggleAttribute=y.prototype.toggleAttribute,y.prototype.toggleAttribute=function(B){return function(V,b){var e=sUE(this);
if(!this.usePatchedLifecycles)return B.nativeToggleAttribute.call(this,V,b);var g=this.getAttribute(V),F=g!==null;b=B.nativeToggleAttribute.call(this,V,b);b!==F&&DqV(e,V,g,b?"":null);return b}}(w);
X=[Document,DocumentFragment,Element,ShadowRoot];sV&&X.push(sV.Wrapper);X=_.J(X);for(w=X.next();!w.done;w=X.next())w=w.value,w.prototype.prepend=A30(w.prototype.prepend),w.prototype.append=A30(w.prototype.append);(sV==null?void 0:sV.noPatch)===!0&&SZh();document.readyState==="complete"?Am(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Am(document.body)});
var z=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");z&&z.get&&z.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:z.enumerable,configurable:!0,get:z.get,set:function(B){B||YF(this);z.set.call(this,B);return B}})}};
A30=function(X){return function(){var t=_.f1.apply(0,arguments),G=_.J(YZf(t)),y=G.next().value;G=G.next().value;X.apply(this,t);t=_.J(G);for(G=t.next();!G.done;G=t.next())YF(G.value);if(this.isConnected)for(y=_.J(y),t=y.next();!t.done;t=y.next())t=t.value,t instanceof Element&&Am(t)}};
SZh=function(){for(var X=_.J(ZWE),t=X.next();!t.done;t=X.next()){t=t.value.prototype;for(var G=_.J(qZ_),y=G.next();!y.done;y=G.next()){y=y.value;var w=Object.getOwnPropertyDescriptor(t,y);w&&Object.defineProperty(t,"__shady_native_"+y,w)}}};
DqV=function(X,t,G,y){var w,z;if((w=X.polymerController)==null?0:(z=w.observedAttributes)==null?0:z.includes(t))if(X=X.polymerController,X.attributeChangedCallbackWrapper)X.attributeChangedCallbackWrapper.call(X,t,G,y);else{var B;(B=X.attributeChangedCallback)==null||B.call(X,t,G,y)}};
YZf=function(X){var t=[],G=[];X=_.J(X);for(var y=X.next();!y.done;y=X.next())y=y.value,y instanceof Element&&y.isConnected&&G.push(y),y instanceof DocumentFragment?t.push.apply(t,_.RY(Array.from(y.children))):t.push(y);return[t,G]};
sUE=function(X){return!(X instanceof Element)&&X.node instanceof Element?X.node:X};
Cd0=function(X,t){var G=t?["children"].concat(_.RY(t)):["children"];t=[];G=_.J(G);for(var y=G.next();!y.done;y=G.next()){var w=y.value;if(X.hasOwnProperty(w)){y=X[w];y=typeof y==="function"?y():y;y=Array.isArray(y)?y:[y];y=KY(y).flat();if(w!=="children"){w=UTh(w);for(var z=_.J(y),B=z.next();!B.done;B=z.next())B=B.value,B instanceof Element&&B.setAttribute("slot",w)}t.push(y)}}t.length===0?X=[]:(X=KY(_.k("div",null,t)),X=Array.from(X.childNodes));return X};
OW_=function(X,t,G){var y={};_.im(function(){var w={},z;for(z in t)if(t.hasOwnProperty(z)){var B=void 0,V=void 0;if(!(((B=G.slotProps)==null?0:B.includes(z))||z==="children"||((V=G.callbackProps)==null?0:V.includes(z))||z==="ref")&&(B=_.R5(t[z]),y[z]!==B)){y[z]=B;V=void 0;var b=(V=X.hostElement)!=null?V:X;KOY.has(z)&&(b[z]=B);w[z]=B}}Ct(function(){if(X.setProperties)X.setProperties(w);else for(var e=_.J(Object.entries(w)),g=e.next();!g.done;g=e.next()){var F=_.J(g.value);g=F.next().value;F=F.next().value;
X[g]=F}})})};
QUY=function(X,t,G,y){var w=Cd0(G,y.slotProps),z=(0,_.Cd)(X);w=_.J(w);for(var B=w.next();!B.done;B=w.next())z.appendChild(B.value);OW_(t,G,y);y=_.J(y.callbackProps||[]);w=y.next();for(z={};!w.done;z={kebabEventName:void 0,eventListener:void 0},w=y.next())B=w=w.value,String(w).substring(0,2)==="on"&&G[B]?(z.kebabEventName=UTh(String(w).substring(2)),z.eventListener=G[B],X.addEventListener(z.kebabEventName,z.eventListener),_.Um(function(g){return function(){X.removeEventListener(g.kebabEventName,g.eventListener)}}(z))):
t[B]=G[B];
if(G.ref){G=_.J(uhv(G.ref));var V=G.next().value,b=G.next().value,e=t.attached.bind(t);t.attached=function(){V(X);e()};
_.Um(function(){b()})}};
uhv=function(X){if(typeof X==="function"){var t;return[function(G){t=X(G)},
function(){var G;(G=t)==null||G()}]}if(!X.onRender||!X.onUnmount)throw Error("Sg");
return[X.onRender,X.onUnmount]};
pQ0=function(X,t,G,y,w){y=y===void 0?{}:y;var z=IpV,B=!1;z?(B=!0,IpV=void 0):(WOG=t,z=document.createElement(t),WOG=void 0);var V=z;V.usePatchedLifecycles=!0;V.lifecycleIsConnected=!1;z.loggingStatus={};var b=c3v(X,t,z,y,w);_.Um(function(){V.lifecycleIsConnected&&(V.lifecycleIsConnected=!1,b.disconnectedCallback())});
B||(_.A("sink_wrapper_disable_runtime_shadycss")&&(z.__noInsertionPoint=!0),QUY(z,b,G,y));return z};
c3v=function(X,t,G,y,w){w=w===void 0?J3A:w;r3Y[t]!=null||(r3Y[t]=w(X,t,y==null?void 0:y.getTemplate,y));var z=r3Y[t],B=z.ctor;w=z.getInitialMethods;var V=z.getPropsToForwardBeforeReady;X=z.getPropsToForwardBeforeRegister;y=z.shouldForwardProp;var b=z.observedAttributes,e=z.shouldLog,g=B(G,{beforeReady:function(){var F=g;F._takeAttributes?F._takeAttributes():F.setPropertiesFromInitialAttributeValues&&F.setPropertiesFromInitialAttributeValues();F=_.J(V(G.polymerController));for(var T=F.next();!T.done;T=
F.next()){var D=_.J(T.value);T=D.next().value;D=D.next().value;VSv(G,T,D);e(t)&&!TO(T)&&dq_(G.polymerController,T)}G.polymerController=Ki0(g,t)}});
G.polymerController=g;G.polymerController.observedAttributes=b;z=_.J(g.getExtraMethodsToForward());for(B=z.next();!B.done;B=z.next())b=_.J(B.value),B=b.next().value,b=b.next().value,bWY(G,B,b);w=_.J(w());for(z=w.next();!z.done;z=w.next())z=z.value,y(z)&&bWY(G,z),e(t)&&!TO(z)&&kLV(g,z);X=_.J(X());for(y=X.next();!y.done;y=X.next())w=_.J(y.value),y=w.next().value,w=w.next().value,VSv(G,y,w);return g};
PdY=function(X,t){return Dv===t?(X.isInert=!0,Dv="",!0):NI0===t?(X.isInert=!0,NI0="",!0):!1};
E4V=function(X){var t=Sx;Sx=X;return t};
mqJ=function(X){if(hm.has(X))NI0=X;else if(Zv.has(X)&&Sx&&UqA(Sx)===X){var t;(t=Sx)._numRenders!=null||(t._numRenders=0);Sx._numRenders++;if(Sx._numRenders>1)throw Error("Tg");return Sx}};
Rbl=function(X){hm.has(UqA(X))?NI0=UqA(X):Zv.has(UqA(X))&&Sx!==X&&(X._isInert=!0)};
UqA=function(X){var t;return(t=X==null?void 0:X.tagName.toLowerCase())!=null?t:""};
iWE=function(X,t){if(X.componentType===Wm)throw Error("Ug");Zv.add(t);var G=function(){var y=HTMLElement.call(this)||this;y.is=t;if(WOG===t)return y.isInert=!0,y;y.createElement();return y};
_.S(G,HTMLElement);G.prototype.createElement=function(){if(!this.isInert){IpV=this;var y=_.J(_.thG(function(){return _.k(X,null)})).next().value;
IpV=void 0;QTv(this);return y}};
customElements.define(t,G)};
v4l=function(X,t,G,y,w){X.prototype.is=t;(y==null?0:y.useSink)?LOs(X,t,G,y,w):(G=J3A(X,t,G,y),eb6(G,t));return X};
LOs=function(X,t,G,y,w){hb0();var z=_.Fp(function(B){return pQ0(X,t,B,Object.assign({},y,{getTemplate:G}),w)},"a");
z.debugName=t+" (CoW wrapped)";iWE(z,t);return z};
lpJ=function(X){return!apl.has(X)};
MSG=function(X,t,G,y){function w(){if(!F){for(var T=new Set(xqA),D=_.J(z.behaviors),h=D.next();!h.done;h=D.next()){h=h.value;for(var u=_.J(Object.getOwnPropertyNames(h)),W=u.next();!W.done;W=u.next()){W=W.value;var c=void 0,P=(c=Object.getOwnPropertyDescriptor(h,W))==null?void 0:c.value;P&&P instanceof Function&&(!e[W]||_.A("polymer_forward_method_killswitch"))&&T.add(W)}}D=_.J(Object.entries(Object.getOwnPropertyDescriptors(X.prototype)));for(h=D.next();!h.done;h=D.next())u=_.J(h.value),h=u.next().value,
u=u.next().value,u.value instanceof Function&&T.add(h);F=T}return F}
var z=QRG({is:t,disableElementRegistration:!1,getTemplate:G,providers:y==null?void 0:y.providers,reactivityMode:y==null?void 0:y.reactivityMode},X);if((y==null?0:y.allowedProps)||(y==null?0:y.allowedPropsFromBehaviors)){var B,V;z.allowedProps=[].concat(_.RY((B=y.allowedProps)!=null?B:[]),_.RY((V=y.allowedPropsFromBehaviors)!=null?V:[]))}var b=hYY(z,X);t=b.observedAttributes;var e={};G=_.J(z.reactiveSchemas);for(y=G.next();!y.done;y=G.next())if(y=y.value,y.type==="signal")e[y.propertyKey]={readOnly:y.readOnly},
y.readOnly&&(e[$KJ(y.propertyKey)]={readOnly:!0});else if(y.type==="compute"||y.type==="computeWithMethod"||y.type==="redux")e[y.propertyKey]={readOnly:!0};var g=z.reactiveSchemas.length,F;return{ctor:function(T,D){T=new b(T);T.beforeReady=D.beforeReady;return T},
props:e,observedAttributes:t,getInitialMethods:w,getPropsToForwardBeforeRegister:function(){for(var T=[],D=new Set,h=_.J(fpA),u=h.next();!u.done;u=h.next())u=u.value,T.push([u,u!=="observers"&&u!=="properties"]),D.add(u);h=_.J(Object.keys(e));for(u=h.next();!u.done;u=h.next())u=u.value,T.push([u,e[u].readOnly]),D.add(u);h=w();u=_.J(Object.keys(Object.getOwnPropertyDescriptors(X.prototype)));for(var W=u.next();!W.done;W=u.next())W=W.value,!lpJ(W)||h.has(W)||D.has(W)||(T.push([W,!1]),D.add(W));T.push(["allowedProps",
!0]);return T},
getPropsToForwardBeforeReady:function(T){var D=[];T=_.J(Object.keys(T));for(var h=T.next();!h.done;h=T.next()){h=h.value;var u=w();lpJ(h)&&!u.has(h)&&D.push([h,!1])}T=_.J(z.reactiveSchemas.slice(g));for(h=T.next();!h.done;h=T.next())h=h.value,h.type!=="compute"&&h.type!=="computeWithMethod"&&h.type!=="redux"&&h.type!=="signal"||D.push([h.propertyKey,h.type==="signal"?h.readOnly:!0]);return D},
shouldForwardProp:lpJ,shouldLog:m_}};
_.N=function(X,t,G,y){var w,z,B=(z=(w=y)==null?void 0:w.mode)!=null?z:0;y!=null||(y={});var V;(V=y).reactivityMode!=null||(V.reactivityMode=0);B===1&&_.sc("creator_poly_si_disable_list").includes(t)&&(B=2);return B===1?v4l(X,t,G,Object.assign({},y,{useSink:!0}),MSG):v4l(X,t,G,Object.assign({},y,{useSink:B===2}))};
_.qi=function(){return function(X,t,G,y){var w,z,B=(z=(w=y)==null?void 0:w.mode)!=null?z:2;y!=null||(y={});var V;(V=y).reactivityMode!=null||(V.reactivityMode=0);if(B===0)throw Error("Vg`"+B);return LOs(X,t,G,y,B===1?MSG:void 0)}};
_.Cz=function(X){return _.A("creator_poly_si_killswitch")?!1:_.A("force_all_poly_si_batches")&&(X==="poly_si_all_on_test_check"||X==="creator_poly_si_batch_050"?0:X)||document.documentElement.hasAttribute("use-signals")?!0:!X||_.A(X+"_holdback_enabled")&&_.A("kevlar_polysi_holdback")?!1:_.A(X)};
Kz=function(X){return X?X.icon?X.icon.iconType.toLowerCase():X.customThumbnail?"member":"":""};
XcG=function(X){if(!X)return"";X=_.J(X);for(var t=X.next();!t.done;t=X.next())if((t=t.value)&&t.liveChatAuthorBadgeRenderer&&(t=Kz(t.liveChatAuthorBadgeRenderer))&&t!=="verified")return t;return""};
$kV=function(X,t){if(!X)return null;var G;return((G=X.find(function(y){return y&&y.liveChatAuthorBadgeRenderer?Kz(y.liveChatAuthorBadgeRenderer)===t:!1}))==null?void 0:G.liveChatAuthorBadgeRenderer)||null};
_.H0A=function(X){var t=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;X=tRV(X);t=tRV(t);var G=GSh(X.hex);t=GSh(t.hex);var y=t[0]/255;var w=t[1]/255,z=t[2]/255,B=Math.max(y,w,z),V=Math.min(y,w,z),b=0,e=0,g=.5*(B+V);B!=V&&(B==y?b=60*(w-z)/(B-V):B==w?b=60*(z-y)/(B-V)+120:B==z&&(b=60*(y-w)/(B-V)+240),e=0<g&&g<=.5?(B-V)/(2*g):(B-V)/(2-2*g));y=[Math.round(b+360)%360,e,g];G=yk6(G,t);for(X=wcV(X.hex);G<4.5;){X=y[2]>=.5?X.darker((4.5-G)/2):X.brighter((4.5-G)/2);G=X.toString();
w=zhA(G);if(!w.length)throw Error("Sd`"+G);G=w;G=yk6(G,t)}return X.hex()};
yk6=function(X,t){X=_.EjY(X);t=_.EjY(t);return(Math.max(X,t)+.05)/(Math.min(X,t)+.05)};
_.OV=function(X){return"#"+("000000"+(X&16777215).toString(16)).slice(-6)};
_.oB6=function(X){for(var t=0,G=0;G<X.length;G++)t=X.charCodeAt(G)+((t<<5)-t);X="#";for(G=0;G<3;G++)X+=("00"+(t>>G*8&255).toString(16)).slice(-2);return X};
JkV=function(X){X=(X||"").split(":");X.length===1&&X.unshift("yt-icons");X[1]=X[1].toLowerCase();return X};
dk_=function(X,t){var G=(t=t===void 0?!1:t)?BZv:nBV,y=t?VR0:b0l;X.getIconNames().forEach(function(w){w=t?w:w.substring(w.indexOf(":")+1);X.name==="yt-icons"?kS0.add(w):w.includes("-filled")?G.add(w):y.add(w)})};
u$=function(X,t,G,y){G=G===void 0?!1:G;y=y===void 0?!1:y;var w,z,B;return _.n(function(V){if(V.nextAddress==1)return V.yield(ehw,2);if(y)return V.return(kS0.has(X));w=G?BZv:nBV;z=G?VR0:b0l;return t?(B=X.includes("-filled")?X:X.concat("-filled"),V.return(w.has(B))):V.return(z.has(X))})};
_.Fvl=function(X){if(joA(X))return X;var t=X=X.toLowerCase();(X=gB6.get(X))&&(t=X);return t};
_.Q2=function(X){if(joA(X))return X.toString();var t=TZ0.get(X);if(t)return t;t=X.toLowerCase();var G="yt-icons",y=t.replace(/_/g,"-");switch(X){case "MY_CHANNEL":t="account_circle";break;case "ADD_TO_LIBRARY":t="add";break;case "ALERT_WARN_RED":t="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":t="person_music";break;case "BLOCK_USER":t="block";break;case "CAPTIONS":t="closed_caption";break;case "CLOSED_CAPTION":G="av";t="closed-caption";break;case "COLLECTION":G="maps";t="layers";break;case "CONTACT":G=
"icons";t="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":G="ytcp-icons";t=y.split("creator-studio-")[1];break;case "DISMISSAL":t="close";break;case "DO_NOT_DISTURB":t="block";break;case "DOGFOOD":G="icons";t="pets";break;case "DRAFT":t="paper_corner_folded";break;
case "EMPTY_LIKE":t="like_outline";break;case "EXIT_APP":t="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":t=y;break;case "GAMES":G="ytg";t="my-games";break;case "GO_TO_PAGE":t="arrow-forward";break;case "GROUP":G="social";break;case "HIDE":t="not_interested";break;case "INPUT_COMPONENT":G="icons";t="settings-input-component";break;case "KIDS_BLOCK":t="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":G="ytg";t="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":G=
"ytg";t="membership-post-purchase";break;case "MULTIVIEW":t="screen_multi_view";break;case "MY_LOCATION":G="maps";t=y;break;case "NOTIFICATIONS_INBOX":t="NOTIFICATIONS";break;case "NEXT":t="chevron_right";break;case "OFFLINE":t="power-settings-new";break;case "PAUSE":G="miniplayer";break;case "PAYMENT":G="icons";break;case "PHONE_DOWNLOAD":t="phone_download";break;case "PREMIUM_STANDALONE":G="yt-logos";t="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":G="yt-logos";t="premium_standalone_cairo";
break;case "QUESTION_ANSWER":t="question_answer";break;case "REDEEM":G="icons";t="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":t="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":t="library_add";break;case "SCHOOL":G="yt-sys-icons";t="creator_academy";break;case "SETTINGS_LIGHT":t="settings_applications";break;case "SETTINGS_MATERIAL":t="settings";break;case "SEARCH_HISTORY":t="watch_history";break;case "SHOPPING_BAG":t="bag";break;case "SOCIAL":case "PEOPLE":G=
"yt-icons";t="people";break;case "STAFF_PICK":G="ytg";t="spotlight";break;case "START_DVR":t="add";break;case "STOP_DVR":G="av";t="stop";break;case "TAB_LIKED":t="like";break;case "TAB_INBOX":t="mail";break;case "TERMS_OF_SERVICE":G="icons";t="description";break;case "TRENDING":t="fire";break;case "UNBLOCK_USER":t="remove";break;case "UNPLUGGED_DARK_THEME":G="image";t="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":t="live";break;case "UNPLUGGED_SPORTS":G="ytu";t="visibility-off";break;
case "VIDEOS":G="av";t="play-circle-filled";break;case "YOUTUBE":G="yt-logos";t="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":G="yt-logos-ext";t="yt-logo-red-updated";break;case "YOUTUBE_LOGO":G="yt-logos-ext";t="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":G="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":G="shorts";t=y;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":G="yt-sys-icons";t="youtube_improve_tv";break;case "OUTLINE_BAG":G=
"yt-sys-icons";t="bag";break;case "QUEUE_PLAY_LAST":G="yt-sys-icons";t="list_queue_last";break;case "SLASH_CIRCLE_LEFT":t="slash_circle_left";break;case "SPEED_1_POINT_2X":t="1_point_2x";break;case "SPEED_1_POINT_5X":t="1_point_5x";break;case "SPEED_1_POINT_8X":t="1_point_8x";break;case "SPEED_POINT_2X":t="point_2x";break;case "SPEED_POINT_5X":t="point_5x";break;case "SPEED_POINT_8X":t="point_8x";break;case "SPEED_1X":t="1x";break;case "SPEED_2X":t="2x";break;case "TAB_BOOKMARK":t="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":G="yt-sys-icons";t="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":G="yt-sys-icons";t="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":G="yt-sys-icons",t="tic_tac_toe"}t=G+":"+t;TZ0.set(X,t);return t};
joA=function(X){var t;_.A("kevlar_use_wil_icons")?t=!!_.gw().resolve(_.IL).resolveIcon({iconName:X.toString()}):t=!1;return t};
_.cj=function(X,t,G,y){G=G===void 0?{}:G;y=y===void 0?!1:y;G===null&&(G={});var w=_.sc("kevlar_command_handler_command_banlist");w=_.J(w);for(var z=w.next();!z.done;z=w.next())if(z=X?X.hasOwnProperty(z.value):void 0,z)return!1;w=_.Y(X.commandMetadata,_.jQ);return y&&w!=null&&w.url?!1:!t.disableCommandHandlerOverride&&_.Wj.instance?(y=_.Wj.instance,G.form||(G.form={element:t}),G.form.element||(G.form.element=t),!G.clickedVisualElement&&t.visualElement&&(G.clickedVisualElement=t.visualElement),y.resolveCommand(X,
G),!0):!1};
AkG=function(X,t){X=pz(X);for(var G=_.J(X.visibilityMonitorKeys||[]),y=G.next();!y.done;y=G.next())t.unobserveByKey(y.value);X.visibilityMonitorKeys=void 0};
SSv=function(X,t){if(_.lw()){if(_.A("kevlar_vimio_use_shared_monitor"))YSV(X,t.data);else if(!YSV(X,t.data))return;var G=t.data,y=soV(G);if(_.A("enable_client_ve_spec_logging"))AkG(X,t.observer);else{var w=pz(X);w.trackedParams&&w.trackedParams!==y&&AkG(X,t.observer)}w=pz(X);!G||w.data&&w.data===G||(w.data=G);DkY(X,t);w.trackedParams=y}};
DkY=function(X,t){var G=t.observer;if(!G&&_.A("web_skip_missing_vimio_observer")){var y,w;_.Mj(new _.NJ("VisibilityObserver is not defined.",X.tagName,X.trackedParams,(y=t.data)==null?void 0:y.trackingParams,(w=t.data)==null?void 0:w.loggingDirectives))}else{var z=t.layer,B=t.visibilityCallback||function(){},V=t.prescanCallback,b=pz(X);
y=[];t.showOption&&y.push(G.observe(X,function(){t.skipLogging&&t.skipLogging()||_.rX().reportShown(b,void 0,z);B(!0)},t.showOption));
t.hideOption&&y.push(G.observe(X,function(){_.rX().reportHidden(b,void 0,z);B(!1)},t.hideOption));
t.prescanOption&&V&&y.push(G.observe(X,function(){V()},t.prescanOption));
b.visibilityMonitorKeys=y}};
YSV=function(X,t){X=pz(X);if(X.visualElement&&!t)return!0;if(!t)return!1;var G=!1;if(_.A("enable_client_ve_spec_logging")){var y,w;G=!!((y=t.loggingDirectives)==null?0:(w=y.clientVeSpec)==null?0:w.uiType)}y=soV(t);if(!y&&!G)return!1;_.A("mweb_component_visibility_logging")&&(X.veContainer||(X.veContainer={}),X.veContainer.trackingParams=y);if(X.trackedParams&&X.trackedParams===y)return!1;var z;if(_.A("enable_client_ve_spec_logging")&&((z=X.visualElement)==null?0:z.isClientVe())){var B;z=(B=X.visualElement)==
null?void 0:B.getAsJspb();var V,b,e,g;if(_.jM(z,2)===((V=t.loggingDirectives)==null?void 0:(b=V.clientVeSpec)==null?void 0:b.uiType)&&_.jM(z,3,-1)===((e=t.loggingDirectives)==null?void 0:(g=e.clientVeSpec)==null?void 0:g.elementIndex))return!1}if(_.A("enable_client_ve_spec_logging")){var F,T;!X.visualElement&&((F=t.loggingDirectives)==null?0:(T=F.clientVeSpec)==null?0:T.uiType)&&(V=t.loggingDirectives.clientVeSpec,t=V.uiType,B=V.elementIndex,V=V.clientYoutubeData,X.visualElement=_.Ni(_.Pj(),{veType:t,
elementIndex:B,clientYouTubeData:V}))}return!0};
soV=function(X){if(X==null?0:X.rendererContext){var t=_.Y(X.rendererContext,_.EV);if(t==null?0:t.loggingDirectives)return t.loggingDirectives.trackingParams}return(X==null?0:X.loggingDirectives)?X.loggingDirectives.trackingParams:X==null?void 0:X.trackingParams};
pz=function(X){var t;return(t=X.polymerController)!=null?t:X};
CQV=function(X){_.rX();if(_.tt(UV().JSC$12442_elementShouldLogGesture).bind(UV())(X,4)){hhV(X);var t=Z0h(X);qSh.set(X,t)}};
hhV=function(X){qSh.has(X)&&(qSh.get(X).cancel("untrack hover element"),qSh.delete(X))};
Z0h=function(X){var t,G=[],y=!1,w=new _.Kh(function(z,B){mf(X,"mouseenter",_.tt(function(){var V,b,e;return _.n(function(g){if(g.nextAddress==1)return t=(0,_.gl)(),V=Kvl(X),G.push(V),b=O0A(X,function(){y=!0;B(Error("Wg"))}),g.yield(V,2);
if(g.nextAddress!=3)return b&&RL(b),e=uTA(X),G.push(e),g.yield(e,3);z();_.W$(g)})}))});
w.then(function(){var z=(0,_.gl)()-t;z=Math.round(z);if(!(500>z||6E5<=z)){var B=X.getScreenLayer?X.getScreenLayer():void 0;B=_.lw(B)||"";var V=QoG(_.rX(),X);_.V1(B,X.visualElement?X.visualElement:_.i$(V),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:z}})}CQV(X)},function(){Lz&&(Lz(),Lz=null);
y&&(hhV(X),CQV(X))});
return w};
Kvl=function(X){var t;return(new _.Kh(function(G,y){Lz=function(){y(Error("Xg"))};
t=_.vz.debounce(_.tt(function(){RL(w);G()}),1,100);
var w=_.vj(X,"mousemove",t)})).thenCatch(function(){var G=_.vz.cancelDebouncedJobMap.get(t);
G&&_.vz.cancelJob(G)})};
uTA=function(X){var t;return(new _.Kh(function(G,y){Lz=function(){y(Error("Yg"))};
t=mf(X,"mouseleave",_.tt(function(){G()}))})).thenCatch(function(){RL(t)})};
O0A=function(X,t){return mf(X,"mouseleave",_.tt(t))};
Wv6=function(X){IIV&&_.aL.cancel(IIV);IIV=_.aL.run(function(){_.Yt(X,"yt-visibility-refresh");IIV=0})};
ck0=function(X){X=Number(X);return"rgba("+[X>>16&255,X>>8&255,X&255,(X>>24&255)/255].join()+")"};
rk0=function(X){if(!X)return!1;if(_.Y(X,_.pc6))return!0;var t;if(X=(t=_.Y(X,_.Cq))==null?void 0:t.commands)for(t=_.J(X),X=t.next();!X.done;X=t.next())if(_.Y(X.value,_.pc6))return!0;return!1};
NZA=function(X){var t=!0;t=t===void 0?!0:t;if(!X.useSignals&&!X.experimentalPropertiesChanged||_.A("experimental_templating_behavior_nopatch_killswitch")){var G=X._propertiesChanged;X._propertiesChanged=function(y,w,z){t?X.debounceRender():X.doRender();G&&G.call(X,y,w,z)}}};
PQ6=function(X,t){if(X.useSignals||X.experimentalPropertiesChanged)if(_.A("experimental_templating_behavior_nopatch_killswitch"))X.experimentalPropertiesChanged=function(){};
else return;var G=new Set,y=[X].concat(_.RY(X.behaviors));y=_.J(y);for(var w=y.next();!w.done;w=y.next()){w=w.value;for(var z in w.properties)G.has(z)||(X._addPropertyEffect(z,"function",t),G.add(z))}};
EBV=function(){var X=Polymer.Element,t=X._prepareTemplate;X._prepareTemplate=function(){t.call(this);var G=this.prototype;if(G.experimentalTemplatingInUse&&G.experimentalTemplatingInUse()&&G.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.xA(Error("Zg"));else{G=this.template.content.childNodes;for(var y=G.length-1;y>=0;y--){var w=G[y];w.nodeName!=="STYLE"&&w.nodeName!=="LINK"&&w.nodeName!=="SCRIPT"&&w.nodeName!=="#comment"&&w.remove()}}}};
Uk6=function(X){var t=!0;t=t===void 0?!0:t;EBV();var G=X.ready;X.ready=function(){this._template=null;G.call(this)};
PQ6(X,t?X.debounceRender:X.doRender)};
RhG=function(X,t,G){if(G===null||G===void 0)return G;var y=ihV(X.tagName.toLowerCase(),t,function(){throw Error("Ob");});
if(y===null)return G;y=mkv[y];var w;if((w=y.isUnwrappable)==null?0:w.call(y,G)){if(y.unwrap)return y.unwrap(G);throw Error("bh");}return y.filterString?y.filterString(X.tagName,t,String(G)):G};
i0V=function(X,t,G){var y=t[t.length-1]!=="$",w=RhG(X,t,G);if(y)if(typeof w==="function"&&t.startsWith("reactiveon")&&t===t.toLowerCase()){var z=Bm;$_G(X,t.slice(8),function(B){Lt(z,function(){w(B)})})}else X[t]=w;
else G=w==null?null:String(w),xH(X,t.slice(0,-1),G)};
xF=function(X){LvG.length===0&&requestAnimationFrame(function(){setTimeout(function(){var t=LvG.slice();LvG.length=0;t=_.J(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;try{G()}catch(y){_.l$(y)}}})});
LvG.push(X)};
vBJ=function(X){if(X){var t=X.component;if(t){var G;t==null||(G=t.events)==null||G.publish("DISCONNECTED");var y;t==null||(y=t.onDisconnected)==null||y.call(t)}var w,z;(w=X.__spec)==null||(z=w.didUnmount)==null||z.call(w);for(t=0;t<X.childNodes.length;t++)vBJ(X.childNodes[t])}};
Mi=function(X,t,G){var y=t&&t.key,w=H0;w[0]=X;w[1]=y;w[2]=void 0;for(var z in t)t.hasOwnProperty(z)&&(X=t[z],y=o2,y.push(z),y.push(X));t=H0;a:{if(z=H0[2])for(X=0;X<z.length;X+=2)if(z[X]==="nonce"){z=z[X+1];break a}z=""}z=kjG(t[0],t[1],z);X=Mt(z);y=t[2];if(!X.staticsApplied&&(X.staticsApplied=!0,y&&y.length))if((w=X._attrsArr)&&w.length){for(w=0;w<y.length;w+=2)fz[y[w]]=w+1;w=X._attrsArr||(X._attrsArr=XqJ(0));for(var B=0,V=0;V<w.length;V+=2){var b=w[V],e=w[V+1],g=fz[b];g?y[g]===e&&delete fz[b]:(w[B]=
b,w[B+1]=e,B+=2)}lm(w,B);for(var F in fz)zMJ(z,F,y[fz[F]],dS),delete fz[F]}else for(F=0;F<y.length;F+=2)zMJ(z,y[F],y[F+1],dS);AaJ(z,X,dS);lm(t,0);G&&G(XJ);d_G()};
aIY=function(X){var t=X.toString().toLowerCase();return function(G,y){Mi(t,G,y)}};
_.Xx=function(X,t,G){G===void 0?delete X[t.name]:X[t.name]=G};
_.$I=function(X){var t={androidIncludeFontPadding:!1},G=0,y=[],w=[],z=[];if(X.simpleText)return t.content=X.simpleText,t;if(X.runs===void 0)return t.content="",t;X=_.J(X.runs);for(var B=X.next();!B.done;B=X.next()){B=B.value;var V=B.text,b=void 0,e=(b=V)==null?void 0:b.length;if(V&&e){y.push(V);if(B.bold||B.italics||B.strikethrough||B.underline||B.textColor!=null&&B.textColor!==0||B.deemphasize){V=w;b=V.push;var g={startIndex:G,length:e};B.bold&&(g.weightLabel="FONT_WEIGHT_MEDIUM");B.italics&&(g.italic=
!0);B.strikethrough&&(g.strikethrough="LINE_STYLE_SINGLE");B.underline&&(g.underline="LINE_STYLE_SINGLE");B.textColor!=null&&B.textColor!==0?document.documentElement.hasAttribute("dark")?g.fontColor=B.darkModeTextColor||B.textColor:g.fontColor=B.textColor:B.deemphasize&&(document.documentElement.hasAttribute("dark")?g.fontColor=parseInt("ff"+lIV("#aaa").substring(1),16):g.fontColor=parseInt("ff"+lIV("#606060").substring(1),16));b.call(V,g)}B.navigationEndpoint&&(V=z,b=V.push,g={startIndex:G,length:e,
onTap:{innertubeCommand:B.navigationEndpoint}},B.loggingDirectives&&_.Xx(g,xk_,B.loggingDirectives),b.call(V,g));G+=e}}t.content=y.join("");t.styleRuns=w.length?w:void 0;t.commandRuns=z.length?z:void 0;return t};
MR_=function(X){if(X==null||!X.runs)return!0;X=_.J(X.runs);for(var t=X.next();!t.done;t=X.next())if(t=t.value,t.bracket||t.errorUnderline||t.deemphasize||_.Y(t,tH)||_.Y(t,fI_))return!1;return!0};
XXv=function(X,t){return function(G){var y=t.unit;if(y!==G)throw Error("eh`"+X+"`"+y+"`"+G);return t}};
G7=function(X){if(!((X==null?0:X.value)&&(X==null?0:X.unit)))return"";switch(X.unit){case "DIMENSION_UNIT_FRACTION":var t="%";break;default:t="px"}X=X.value;t==="%"&&(X*=100);return""+X+t};
$fA=function(X){try{return X()}catch(t){_.Mj(t)}};
_.wr=function(X){var t=_.Y(X,_.yL);if(t)return t;if((t=_.Y(X,t3V))&&t.commands)return GoG(t.commands);if((t=_.Y(X,yFY))&&t.commands)return GoG(t.commands);if((X=_.Y(X,wXG))&&X.identifier&&X.command&&(zWf||(zWf=[]),!zWf.includes(X.identifier)))return zWf.push(X.identifier),_.Y(X.command,_.yL)};
GoG=function(X){if(X.length!==0){var t=[];X=_.J(X);for(var G=X.next();!G.done;G=X.next())(G=_.wr(G.value))&&t.push(G);return{commandExecutorCommand:{commands:t}}}};
_.Hl=function(X){var t=X.defaultTarget,G=X.elementConfig,y=X.elementsCommand,w=X.skipOnClick,z=X.forceNewState,B=X.additionalCommandArgs,V=X.innertubeCommand||_.wr(y);if(V){X={};var b=HA_(V);y=b.navigatingCommand;b=b.href;y&&b?(X.href$=b,o20(X,y,b,t),_.A("web_atagconfig_pointerdown")&&JFY(X,y),z&&(X["force-new-state$"]=!0)):(X.role$="button",X.href$="javascript:void(0);");_.Y(V,B3l)&&(X["aria-haspopup$"]=!0);w||(X.onclick=function(e){var g={};if(n2h(e)){if(B==null?0:B.clickedVisualElement)g={clickedVisualElement:B.clickedVisualElement};
g=Object.assign({},{form:{element:e.target,event:e,createScreenConfig:g}},B);e.preventDefault();_.z7(V,g)}});
return Object.assign({},G,X)}};
V30=function(X){if(X.length){if(X.length===1)return X[0];var t={};_.Xx(t,_.Cq,{commands:X});return t}};
oi=function(X){return X&&X.href$!=="javascript:void(0);"};
HA_=function(X){var t,G=((t=_.Y(X,_.Cq))==null?void 0:t.commands)||[X];X=_.J(G);for(t=X.next();!t.done;t=X.next()){t=t.value;var y=void 0,w=void 0;G=(w=_.Y((y=t)==null?void 0:y.commandMetadata,_.jQ))==null?void 0:w.url;_.A("web_remove_web_navigation_endpoint_data")||(y=void 0,G=G||((y=_.Y(t,bAV))==null?void 0:y.url));if(G&&G!=="/service_ajax"){if(y=L1(G,ko6))return X=_.Rj(y),{navigatingCommand:t,href:X};_.Mj(new _.NJ("AttributedString URL could not be sanitized",G))}}return{}};
n2h=function(X){return X.button!==void 0?X.button===0&&!(X.shiftKey||X.altKey||X.metaKey||X.ctrlKey):!(X.shiftKey||X.altKey||X.metaKey||X.ctrlKey)};
o20=function(X,t,G,y){G=!dw(G);var w,z,B;if((w=_.Y(t,_.pp))!=null&&w.nofollow||(z=_.Y(t,_.nq))!=null&&z.nofollow||(B=_.Y(t,_.zj))!=null&&B.nofollow||G)X.rel$="nofollow";var V;t=((V=_.Y(t,_.zj))==null?void 0:V.target)==="TARGET_NEW_WINDOW"?"_blank":y===void 0?"":y;X.target$=t};
JFY=function(X,t){t.clickTrackingParams&&(X.params={itct:t.clickTrackingParams});X.onpointerdown=function(G){dfJ(G)};
X._data=t};
eWh=function(X){(X.loggingUrls||[]).forEach(function(t){o7(t.baseUrl,t.attributionSrcMode)})};
jbJ=function(X){X.currentTarget._data&&eWh(X.currentTarget._data)};
dfJ=function(X){var t=X.currentTarget;X=$fA(function(){return t.href});
var G=t.params;X&&_.dk(X,G||{},8,!0)};
g20=function(X,t){if(t=_.Y(t,_.zj))(t==null?void 0:t.target)==="TARGET_NEW_WINDOW"&&(X.target="_blank"),t.nofollow&&(X.rel="nofollow")};
F8s=function(X){X=_.Y(X==null?void 0:X.commandMetadata,_.jQ);return(X==null?0:X.url)?X.url:null};
_.JH=function(X,t){(X=_.wr(X))&&_.z7(X,t)};
_.z7=function(X,t){bqs(function(G){t?G.resolveCommand(X,t):G.resolveCommand(X)})};
sb6=function(X,t){var G=["yt-core-attributed-string__link"];t!=null&&t.noLinkColor||((t==null?0:t.isOverlay)?G.push("yt-core-attributed-string__link--overlay-call-to-action-color"):G.push("yt-core-attributed-string__link--call-to-action-color"),(t==null?0:t.linkInheritColor)&&G.push("yt-core-attributed-string--link-inherit-color"));G={className:G.join(" "),tabindex$:"0"};var y=X.onTap||X.onLongPress;if(!y)return G;var w=T3v(X);w&&(G["aria-label$"]=w);t=_.Hl({elementsCommand:y,elementConfig:G,skipOnClick:!(t==
null||!t.skipOnClick),forceNewState:!0});X.onLongPress&&(y=new AFY(function(){var z=_.wr(X.onLongPress);z&&_.gw().resolve(_.F3).resolveCommand(z)}),t&&Yg0(y,t));
return t||G};
T3v=function(X){var t,G;return(t=X.onTapOptions)==null?void 0:(G=t.accessibilityInfo)==null?void 0:G.accessibilityLabel};
DfE=function(X){var t=X;X<=16777215&&(t+=parseInt("ff000000",16));return _.yY(t)};
SgJ=function(X){var t=X.isDarkTheme;var G=X.extension;X=X.runColor;var y=void 0;if(G=G==null?void 0:G.colorMap){t=t?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";G=_.J(G);for(var w=G.next();!w.done;w=G.next())if(w=w.value,t===w.key){y=w.value;break}}y==null&&X&&(y=X);if(y)return DfE(y)};
Bl=function(X){var t=X.config;var G=X.image;var y=X.imageConfig;var w=X.imageWrapperConfig;var z=X.run;var B=X.tag;var V=X.textLength;var b=X.startIndex===void 0?0:X.startIndex;X=X.length;b===void 0&&(b=0);z={run:z,startIndex:b,endIndex:X!==void 0?b+X:V,tag:B};G&&(z.image=G);y&&(z.imageConfig=y);w&&(z.imageWrapperConfig=w);t&&(z.config=t);return z};
ZAv=function(X,t){var G=[];G.push("yt-core-attributed-string");(t==null?0:t.className)&&G.push(t==null?void 0:t.className);(t==null?0:t.ellipsisTruncate)?G.push("yt-core-attributed-string--ellipsis-truncate"):(t==null?0:t.noWrap)?G.push("yt-core-attributed-string--white-space-no-wrap"):(t==null?0:t.noPreWrap)||G.push("yt-core-attributed-string--white-space-pre-wrap");(t==null?0:t.linkInheritColor)&&G.push("yt-core-attributed-string--link-inherit-color");X.alignment&&G.push(hWV(X.alignment));X.lineBreakMode&&
G.push("yt-core-attributed-string--word-wrapping");return G.join(" ")};
qgh=function(X){if(X.weight)return X.weight;switch(X.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
CIY=function(X){switch(X){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"}};
hWV=function(X){switch(X){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"}};
bp=function(X,t,G){var y=t;X.content&&G&&(G=X.content.indexOf("\n"),G!==-1&&(y=Math.min(t,G)));if(!X.content||X.content.length<=y)t=X;else if(X.attachmentRuns||X.commandRuns||X.decorationRuns||X.styleRuns||X.paragraphStyleRuns){t=nX(X.content,y);G=y;var w=X.attachmentRuns;if(w){var z=[];w=_.J(w);for(var B=w.next();!B.done;B=w.next())B=Object.assign({},B.value),B.startIndex===void 0||B.startIndex>=G||(B.length||(B.length=0),B.length+B.startIndex>G&&(B.length=G-B.startIndex),z.push(B));G=z}else G=void 0;
z=K8h(y,X.commandRuns);w=y;var V=X.decorationRuns;if(V){B=[];V=_.J(V);for(var b=V.next();!b.done;b=V.next()){b=b.value;var e=_.Y(b.textDecorator,VL);if(e&&e.startIndex!==void 0&&!(e.startIndex>=w)){b=Object.assign({},b,{textDecorator:{highlightTextDecorator:Object.assign({},e)}});e=_.Y(b.textDecorator,VL);if(!e.length||e.length+e.startIndex>w)e.length=w-e.startIndex;B.push(b)}}w=B}else w=void 0;B=K8h(y,X.styleRuns);if(V=X.paragraphStyleRuns)for(X=[],V=_.J(V),b=V.next();!b.done;b=V.next()){var g=b.value;
b=Object.assign({},g);if(!(b.startIndex===void 0||b.startIndex>=y)){if(!b.length||b.length+b.startIndex>y)b.length=y-b.startIndex;e=[];var F=void 0,T=void 0;if((F=g)==null?0:(T=F.listGroup)==null?0:T.listItems)for(g=_.J(g.listGroup.listItems),F=g.next();!F.done;F=g.next())if(F=Object.assign({},F.value),!(F.startIndex===void 0||F.startIndex>=y)){if(!F.length||F.length+F.startIndex>y)F.length=y-F.startIndex;e.push(F)}e.length>0&&(b.listGroup||(b.listGroup={}),b.listGroup=Object.assign({},b.listGroup,
{listItems:e}));X.push(b)}}else X=void 0;t={content:t,attachmentRuns:G,commandRuns:z,decorationRuns:w,styleRuns:B,paragraphStyleRuns:X}}else t=Object.assign({},X,{content:nX(X.content,y)});return t};
K8h=function(X,t){if(t){var G=[];t=_.J(t);for(var y=t.next();!y.done;y=t.next())if(y=Object.assign({},y.value),!(y.startIndex===void 0||y.startIndex>=X)){if(!y.length||y.length+y.startIndex>X)y.length=X-y.startIndex;G.push(y)}return G}};
nX=function(X,t){var G=t,y;if(y=G>0)y=X.charCodeAt(G-1),y=y>=55296&&y<=56319;y&&(G=X.charCodeAt(G),y=G>=56320&&G<=57343);y&&--t;return X.substring(0,t)};
IXf=function(X,t,G){G=G===void 0?OA0:G;if(X){var y=_.gw().resolve(ji);y||_.A("mweb_no_observer_killswitch")?SSv(X,{data:t,observer:y,visibilityCallback:G,hideOption:uzl,showOption:Qbh,layer:X.layer}):_.Mj(new _.NJ("Warning: monitorVisibility called with null observer",X.tagName,t==null?void 0:t.loggingDirectives,t==null?void 0:t.trackingParams))}else _.Mj(new _.NJ("Warning: monitorVisibility called with null element",t==null?void 0:t.loggingDirectives,t==null?void 0:t.trackingParams,t==null?void 0:
t.rendererContext))};
E2s=function(X,t){var G=[],y=X.content.length,w,z=(w=_.gw().resolve(_.jH(_.kI)))==null?void 0:w();if(X.paragraphStyleRuns){w=_.J(X.paragraphStyleRuns);for(var B=w.next();!B.done;B=w.next()){var V=G.push,b=V.apply;var e=void 0;B=B.value;if((e=B.listGroup)!=null&&e.listItems){e=[];b:switch(B.listGroup.listType){case "LIST_TYPE_BULLET":var g="ul";break b;default:g="span"}e.push(Bl({run:B,textLength:y,tag:g,config:{className:"yt-core-attributed-string__list-group"},startIndex:B.startIndex,length:B.length}));
g=_.J(B.listGroup.listItems);for(var F=g.next();!F.done;F=g.next()){F=F.value;b:switch(B.listGroup.listType){case "LIST_TYPE_BULLET":var T="li";break b;default:T="span"}e.push(Bl({run:B,textLength:y,tag:T,startIndex:F.startIndex,length:F.length}))}B=e}else B=[];b.call(V,G,_.RY(B))}}if(X.styleRuns&&(t==null||!t.noStyleRuns))for(w=_.J(X.styleRuns),V=w.next();!V.done;V=w.next()){V=V.value;b=SgJ({extension:_.Y(V.styleRunExtensions,W86),isDarkTheme:z===void 0?!1:z,runColor:V.fontColor});e=[];b&&e.push("yt-core-attributed-string--link-inherit-color");
V.italic&&e.push("yt-core-attributed-string--italicized");V.underline&&V.strikethrough?e.push("yt-core-attributed-string--underline-strikethrough",CIY(V.underline)):V.underline?e.push("yt-core-attributed-string--underlined",CIY(V.underline)):V.strikethrough&&e.push("yt-core-attributed-string--strikethrough",CIY(V.strikethrough));if(V.baselineOffset){a:switch(V.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":B="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":B=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:B="yt-core-attributed-string--baseline-offset-unknown"}e.push(B)}B=e.join(" ");e=V;g={};if(e.weight||e.weightLabel)g.fontWeight=qgh(e).toString();b&&(g.color=b);G.push(Bl({run:V,textLength:y,tag:"span",config:{className:B,style:g},startIndex:V.startIndex,length:V.length}))}if(X.decorationRuns)for(w=_.J(X.decorationRuns),V=w.next();!V.done;V=w.next())V=V.value,b={},V.textDecorator&&(g=V.textDecorator,B=z===void 0?!1:z,F=[],e=
_.Y(g,VL),g=_.Y(g,cFY),e?(g=F,F=g.concat,T=[],(B=SgJ({extension:_.Y(e.highlightTextDecoratorExtensions,pX6),isDarkTheme:B,runColor:e.backgroundColor}))&&T.push("background-color: "+B+";"),e.backgroundCornerRadius!==void 0&&T.push("border-radius: "+e.backgroundCornerRadius+"px;"),e.leftPadding!==void 0&&T.push("padding-left: "+e.leftPadding+"px;"),e.rightPadding!==void 0&&T.push("padding-right: "+e.rightPadding+"px;"),e.topPadding!==void 0&&T.push("padding-top: "+e.topPadding+"px;"),e.bottomPadding!==
void 0&&T.push("padding-bottom: "+e.bottomPadding+"px;"),F=F.call(g,T)):g&&(e=F,F=e.concat,B=B?"#2ba640":"#107516",B=g.color?DfE(g.color):B,B=["padding: 2px;","border-top: solid "+B+" 2px;","border-bottom: solid "+B+" 2px;","background: linear-gradient(135deg, "+B+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+B+" 3px, rgba(0, 0, 0, 0) 3px);"],F=F.call(e,B)),B=F.join(" "),b.style$=B,B=V.textDecorator,e=[],g=_.Y(B,cFY),_.Y(B,VL)?e.push("yt-core-attributed-string--highlight-text-decorator"):
g&&e.push("yt-core-attributed-string--bracket-text-decorator"),B=e.join(" "),b.className=B,b.dir="auto"),B=_.Y(V.textDecorator,VL),e=_.Y(V.textDecorator,cFY),g=_.Y(V.textDecorator,VL),F=_.Y(V.textDecorator,cFY),G.push(Bl({run:V,textLength:y,tag:"span",config:b,startIndex:(B==null?void 0:B.startIndex)||(e==null?void 0:e.startIndex)||0,length:(g==null?void 0:g.length)||(F==null?void 0:F.length)||0}));if(X.commandRuns&&(t==null||!t.noEndpoints))for(z=_.J(X.commandRuns),w=z.next();!w.done;w=z.next())w=
w.value,V=sb6(w,t),G.push(Bl({run:w,textLength:y,tag:"a",config:V,startIndex:w.startIndex,length:w.length}));if(X.attachmentRuns)for(X=_.J(X.attachmentRuns),z=X.next();!z.done;z=X.next()){z=z.value;b=V=void 0;w={className:"yt-core-attributed-string--inline-block-mod"};if((b=z.element)==null?0:b.properties){b=(V=z.element)==null?void 0:V.properties;V=[];b=_.Y(b,rF_);if(b==null?0:b.margin)b=b.margin,b.left&&V.push("margin-left: "+G7(b.left)+";"),b.right&&V.push("margin-right: "+G7(b.right)+";"),b.top&&
V.push("margin-top: "+G7(b.top)+";"),b.bottom&&V.push("margin-bottom: "+G7(b.bottom)+";");V=V.length!==0?V.join(" "):void 0;w.style$=V}B=void 0;V={alt:"",preserveHeight:!0,preserveWidth:!0};b=["yt-core-attributed-string__image-element"];if(z.alignment){a:switch(z.alignment){case "ALIGNMENT_BASELINE":e="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":e="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:e=
"yt-core-attributed-string__image-element--image-alignment-bottom"}b.push(e)}if((B=z.element)==null?0:B.properties)B=[],e=_.Y(z.element.properties,rF_),(e==null?0:e.height)&&B.push("height: "+G7(e.height)+";"),(e==null?0:e.width)&&B.push("width: "+G7(e.width)+";"),B=B.length!==0?B.join(" "):void 0,V.style$=B,e=void 0,B=((e=_.Y(z.element.properties,N3V))==null?void 0:e.label)||"",V.alt=B;V.className=b.join(" ");b=void 0;g=e=void 0;B=((g=z.element)==null?0:g.type)?(e=_.Y(z.element.type,PIV))==null?
void 0:e.image:void 0;G.push(Bl({run:z,textLength:y,tag:"img",image:B,imageConfig:V,imageWrapperConfig:w,startIndex:z.startIndex,length:(b=z.length)!=null?b:0}))}if(t==null?0:t.headerRuns)for(t=_.J(t.headerRuns),X=t.next();!X.done;X=t.next())if(X=X.value,X.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(X.headerMapping)){a:{switch(X.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":z=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":z="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":z="yt-core-attributed-string--heading-3";break a}z=void 0}G.push(Bl({run:X,textLength:y,tag:"span",config:z?{className:z}:void 0,startIndex:X.startIndex,length:X.length}))}return G};
_.dr=function(X){return(X==null?void 0:X.content)!==void 0};
UfY=function(X){return _.dr(X)?X:_.$I(X)};
mfE=function(X){return X.image!==void 0&&X.imageConfig!==void 0};
RW6=function(X,t){if(t==null?0:t.userInput)for(X=_.J(X),t=X.next();!t.done;t=X.next())if(t=t.value,t.tag!=="a"&&t.tag!=="li"){var G=void 0;(G=t).config||(G.config={});t.config.dir=t.tag==="ul"?_.gw().resolve(_.e_):"auto"}};
iAh=function(X){return function(t){var G=X.run;(G.onTap!==void 0||G.onLongPress!==void 0)&&_.Y(G,xk_)&&IXf(t,{loggingDirectives:_.Y(G,xk_)})}};
L8J=function(X){return function(t){for(var G in X)(dS[G]||dS[ft["default"]])(t,G,X[G])}};
xfE=function(X,t){v2V(t);var G={data:null,start:0,end:X.length,parts:[]};t=_.J(t);for(var y=t.next();!y.done;y=t.next())y=y.value,aXV(G,y.startIndex,y.endIndex,y);lX6(X,G);return G};
aXV=function(X,t,G,y){for(var w=_.J(X.parts),z=w.next();!z.done;z=w.next()){z=z.value;if(typeof z==="string")throw Error("gh");if(z.start<=t&&G<=z.end){aXV(z,t,G,y);return}}X.parts.push({data:y,parts:[],start:t,end:G})};
lX6=function(X,t){for(var G=t.parts.length;G>=0;G--){var y=t.parts[G],w=t.parts[G-1],z=G===t.parts.length?t.end:y.start;w=G===0?t.start:w.end;z!==w&&t.parts.splice(G,0,X.slice(w,z));y&&lX6(X,y)}};
v2V=function(X){X.sort(function(t,G){if(t.startIndex<G.startIndex)return-1;if(G.startIndex<t.startIndex)return 1;t=t.endIndex-t.startIndex;G=G.endIndex-G.startIndex;return t>G?-1:G>t?1:0})};
_.fXJ=function(X){var t=X.thumbnails;if(t){X={sources:[]};t=_.J(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;var y={};y.url=G.url;y.width=G.width;y.height=G.height;X.sources.push(y)}return X}};
M3l=function(X,t,G,y){if(!t)return X.length>=1?X[X.length-1]:null;if(y)for(var w=_.J(X),z=w.next();!z.done;z=w.next()){z=z.value;var B=void 0,V=(B=z.url)==null?void 0:B.indexOf(y);if(V!==void 0&&V>=0)return z}y=_.J(X);for(w=y.next();!w.done;w=y.next())if(w=w.value,w.width&&w.height&&(G&&w.width>=t||!G&&w.height>=t))return w;for(t=X.length-1;t>=0;t--)if(G&&X[t].width||!G&&X[t].height)return X[t];return X[0]};
_.Xbv=function(X){var t;return(X=(t=X.sources)==null?void 0:t[0])?X.width/X.height:0};
_.$UG=function(X){if(X.sources){X=_.J(X.sources);for(var t=X.next();!t.done;t=X.next()){t=t.value;var G=void 0;if((G=t.clientResource)==null?0:G.imageName)return t}}};
t8v=function(X){var t;if((t=X.clientResource)!=null&&t.imageColor)return _.yY(X.clientResource.imageColor)};
_.ycJ=function(X,t,G,y,w,z,B){if(!t||t.length===0||t[0].clientResource)return null;if(G&&t[0].url)return t[0].url;y===void 0&&(y=!0);if(y){var V;X=Gas*(w||(X==null?void 0:(V=X.getBoundingClientRect())==null?void 0:V.width)||0)}else{var b;X=Gas*(z||(X==null?void 0:(b=X.getBoundingClientRect())==null?void 0:b.height)||0)}t=M3l(t,X,y,B);return(t==null?0:t.url)?t.url:(t==null?0:t.imageData)?t.imageData:null};
wbE=function(X,t,G){G=G?[G]:[];X.opacity&&G.push("opacity: "+X.opacity+";");t&&X.placeholderColor?(X=_.yY(X.placeholderColor),G.push("background-color: "+X+";")):G.push("background-color: transparent;");return G.join(" ")};
zgJ=function(X,t,G,y,w){var z=["yt-core-image"];t&&z.push(t);G||z.push("yt-core-image--fill-parent-height");y||z.push("yt-core-image--fill-parent-width");switch(X.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":z.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":z.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":z.push("yt-core-image--content-mode-center");break;default:z.push("yt-core-image--content-mode-scale-to-fill")}X.flipForRtlLayout&&
z.push("yt-core-image--flip-rtl");switch(w){case "TOP_START":var B;z.push(((B=document.body)==null?void 0:B.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return z.join(" ")};
oNw=function(X){var t;if(X==null?0:(t=X.clientResource)==null?0:t.imageName){var G;X=(G=X.clientResource)==null?void 0:G.imageName;a:{switch(X){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":G="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":G="yt-logos-ext:yt-logo-updated";break a}G=void 0}return G||Hfl.get(X)||X}};
nNJ=function(X){return _.A("mweb_wiz_skip_render")?JcV(X):B$l(X)};
JcV=function(X){return function(t){var G=kjG("wink-root");zh();d_G();WAV(G,_.k(X,t))}};
B$l=function(X){var t=t===void 0?!1:t;return function(G){if(!t||!_.A("mweb_skip_keto_to_c3_if_no_data")||G.data!==void 0){var y=FJ(!1);try{var w=G.children;_.A("mweb_render_outside_patch_killswitch")||XJ?w?k5(_.k(X,G,w)):k5(_.k(X,G)):_.Mj(new _.NJ("ketoToC3 called outside of a patch",{tagName:X.TAG_NAME}))}finally{FJ(y)}}}};
V8E=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
kaA=function(X,t){X.onViewportEntered=t;bfl.observe(X)};
dU6=function(){var X={rootMargin:"10%",threshold:.01};_.A("mweb_enable_set_io_root_to_null_safari")?X.root=null:_.A("mweb_enable_set_io_root_to_body_safari")&&(X.root=document.body);return new IntersectionObserver(function(t,G){t.filter(function(y){return y.intersectionRect.height>0}).forEach(function(y){y=y.target;
if(!_.A("mweb_enable_only_update_image_when_connected")||y.isConnected!==!1){var w;(w=y.onViewportEntered)==null||w.call(y);G.unobserve(y)}})},X)};
egf=function(X,t,G,y,w){function z(){if(y){var V=y.loadedClass,b=y.notifyOnUnloaded;V&&_.j_(X,V);b&&X.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function B(){var V=G(t,X);V&&X.getAttribute("src")!==V&&(_.A("mweb_enable_only_update_image_when_connected")&&X.isConnected===!1||V===X.src||(X.src=V),z())}
w=w===void 0?!0:w;X.removeAttribute("src");z();t&&(w?kaA(X,B):B())};
jw0=function(X,t,G){if(!t)return!1;t=G(t,X);G=X.getAttribute("src");return t&&t===G&&X.complete};
gN6=function(X,t){for(var G in t)G==="className"?X.className=t[G]:(dS[G]||dS[ft.default])(X,G,t[G])};
FIf=function(X,t,G,y){nNJ(_.gr)({contentMode:t.contentMode,loadedClass:t.loadedClass,isPreloaded:t.isPreloaded,notifyOnLoaded:t.notifyOnLoaded,notifyOnUnloaded:t.notifyOnUnloaded,preferredThumbnail:t.preferredThumbnail,preserveHeight:t.preserveHeight,preserveWidth:t.preserveWidth,objectPosition:t.objectPosition,targetWidth:t.targetWidth,targetHeight:t.targetHeight,shouldShowPlaceholder:t.shouldShowPlaceholder,useWidth:t.useWidth,isToggled:t.isToggled,alt:t.alt,className:t.className,onerror:t.onerror,
onload:t.onload,style$:t.style$,color:t.color,width:t.width,height:t.height,"aria-hidden$":t["aria-hidden$"],draggable:t.draggable,"data-disabled$":t["data-disabled$"],data:X,callback:G,renderLazy:y===void 0?!0:y,hideOn404:!1})};
AcY=function(X,t,G){G=G===void 0?!1:G;var y=X.sources!==void 0?X:_.fXJ(X);if(y){var w=t.onload;t.onload=function(b){var e=b.target;G&&e.naturalWidth===120||_.Fx(e,"yt-core-image--loaded");t.notifyOnLoaded&&e.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));w==null||w(b)};
t.targetWidth&&t.preserveWidth&&(t.width=t.targetWidth);t.targetHeight&&t.preserveHeight&&(t.height=t.targetHeight);var z=_.$UG(y),B=z&&oNw(z);if(B)return(X=t8v(z))&&(t.color=X),{type:"icon",iconName:B,config:Object.assign({},t,t.alt?{}:{"aria-hidden$":"true"},{"aria-label$":t.alt,role:"img"})};if(X.sources===void 0){t.alt=X.accessibility&&X.accessibility.accessibilityData&&X.accessibility.accessibilityData.label||t.alt;t.style$=wbE(X,t.shouldShowPlaceholder,t.style$);var V;t.isPreloaded=!((V=_.Y(X,
T$V))==null||!V.isPreloaded)}t.contentMode&&!y.contentMode&&(y.contentMode=t.contentMode);t.className=zgJ(y,t.className,t.preserveHeight,t.preserveWidth,t.objectPosition);t.loadedClass="yt-core-image--loaded";return{type:"image",image:y,config:t}}};
_.T7=function(){var X=_.f1.apply(0,arguments);return _.VN(Yuv,function(t){var G=X.map(function(y){return y==null?void 0:y(t)});
return function(){return void G.forEach(function(y){return void(y==null?void 0:y())})}})};
AH=function(X,t){var G=t==null?void 0:t.initial;return _.qt(function(){_.R5(!0);return G=X(G)},{equals:t==null?void 0:t.isEqual},"rSlKsc")};
sww=function(X,t){if(X===t)return!0;if(X===void 0||t===void 0)return!1;var G,y,w,z,B,V,b,e;return X.content===t.content&&((G=X.styleRuns)==null?void 0:G.length)===((y=t.styleRuns)==null?void 0:y.length)&&((w=X.commandRuns)==null?void 0:w.length)===((z=t.commandRuns)==null?void 0:z.length)&&((B=X.attachmentRuns)==null?void 0:B.length)===((V=t.attachmentRuns)==null?void 0:V.length)&&((b=X.decorationRuns)==null?void 0:b.length)===((e=t.decorationRuns)==null?void 0:e.length)};
hgE=function(X,t){if(X){var G=UfY(X);if(G!=null&&G.content)if(_.A("attr_string_reactive"))nNJ(DUA)({text:X,config:t});else{var y=!(t==null||!t.ariaLabel)||!(G.commandRuns&&G.commandRuns.length!==0||G.paragraphStyleRuns&&G.paragraphStyleRuns.length!==0);X=y?t==null?void 0:t.ariaLabel:null;y=y?"text":null;Mi("span",{className:ZAv(G,t),dir$:(t==null?0:t.userInput)?"auto":void 0,"aria-label$":X,role$:y},function(){if(G.styleRuns||G.commandRuns||G.attachmentRuns||G.decorationRuns){var w=E2s(G,t);RW6(w,
t);w=xfE(G.content,w);w=_.J(w.parts);for(var z=w.next();!z.done;z=w.next())Sul(z.value)}else bv(G.content)})}}};
Sul=function(X){typeof X==="string"?bv(X):mfE(X.data)?Mi("span",X.data.imageWrapperConfig,function(){FIf(X.data.image,X.data.imageConfig)}):Mi(X.data.tag,X.data.config,function(t){iAh(X.data)(t);
t=_.J(X.parts);for(var G=t.next();!G.done;G=t.next())Sul(G.value)})};
qu0=function(X){return X.parts.map(Zfh)};
Zfh=function(X){if(typeof X==="string")return X;X=mfE(X.data)?_.k("span",{el:_.T7(L8J(X.data.imageWrapperConfig))},_.k(_.gr,Object.assign({},{data:X.data.image},X.data.imageConfig))):_.k(X.data.tag,{el:_.T7(iAh(X.data),L8J(X.data.config))},X.parts.map(Zfh));return KY(X)};
C4h=function(X,t){return X===t?!0:X===void 0||t===void 0?!1:X.noStyleRuns===t.noStyleRuns&&X.noLinkColor===t.noLinkColor&&X.noEndpoints===t.noEndpoints&&X.headerRuns===t.headerRuns&&X.isOverlay===t.isOverlay&&X.linkInheritColor===t.linkInheritColor&&X.userInput===t.userInput};
KIf=function(X){return function(){var t,G,y,w,z,B,V,b,e,g,F,T,D,h;return{ariaLabel:(t=X.ariaLabel)==null?void 0:t.call(X),className:(G=X.className)==null?void 0:G.call(X),ellipsisTruncate:(y=X.ellipsisTruncate)==null?void 0:y.call(X),isOverlay:(w=X.isOverlay)==null?void 0:w.call(X),linkInheritColor:(z=X.linkInheritColor)==null?void 0:z.call(X),noEndpoints:(B=X.noEndpoints)==null?void 0:B.call(X),noStyleRuns:(V=X.noStyleRuns)==null?void 0:V.call(X),noLinkColor:(b=X.noLinkColor)==null?void 0:b.call(X),
noPreWrap:(e=X.noPreWrap)==null?void 0:e.call(X),noWrap:(g=X.noWrap)==null?void 0:g.call(X),skipOnClick:(F=X.skipOnClick)==null?void 0:F.call(X),stopPropagation:(T=X.stopPropagation)==null?void 0:T.call(X),userInput:(D=X.userInput)==null?void 0:D.call(X),headerRuns:(h=X.headerRuns)==null?void 0:h.call(X)}}};
Of_=function(X){return X.value===""||X.value==="true"?!0:X.value==="false"?!1:isNaN(Number(X.value))?X.value:Number(X.value)};
YI=function(X,t){X=new u5_(X,t);_.xA(X);throw X;};
Qww=function(X,t,G){var y=E4V(X);X._numRenders=0;try{var w=_.thG(function(){return _.k(t,Object.assign({},G))})}catch(B){var z=function(V){V.args||(V.args=[]);
V.args.push("Error in web component wrapper");V.args.push(X.tagName.toLowerCase());return V};
_.fh(B instanceof Error?z(B):new u5_("Wiz rendering error",X.tagName.toLowerCase()));throw B;}finally{E4V(y)}return w};
_.DW=function(X,t,G){function y(g){var F={};g=_.J(g);for(var T=g.next();!T.done;T=g.next()){T=T.value;var D=void 0,h=void 0,u=void 0,W=_.I4((u=(h=(D=T).getAttribute)==null?void 0:h.call(D,"slot"))!=null?u:"children");if(D=F[W])D.push(T);else if(W in z||W==="children")F[W]=[T]}g=_.J(Object.keys(F));W=g.next();for(T={};!W.done;T={content$jscomp$56:void 0},W=g.next())W=W.value,W!=="children"&&(T.content$jscomp$56=F[W],F[W]=function(c){return function(){return c.content$jscomp$56}}(T));
return F}
G=G===void 0?{}:G;X.componentType!==Wm||YI("Components must be marked reactive to be used from web component wrapper.",t);hm.has(t)&&YI("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",t);var w,z=(w=G.props)!=null?w:{};Zv.add(t);var B=I6Y();w=function(){var g=B.apply(this,arguments)||this;g.rawProps={};g.queuingRender=!1;g.dispose=function(){};
g.isWebComponentWrapper=!0;g.isReparenting=!1;g.hasRendered=!1;return g};
_.S(w,B);w.prototype.render=function(){this.hasRendered=!0;for(var g=_.J([].concat(_.RY(this.attributes))),F=g.next();!F.done;F=g.next())F=F.value,F.name!=="slot"&&F.name!=="hidden"&&this.removeAttribute(F.name);g=Object.assign({},this.componentProps,this.slotProps);F=_.J(Qww(this,X,g));g=F.next().value;F=F.next().value;!(g[0]instanceof Element)||g.length>1?YI("Wrapped Wiz components must return a single root element.",t):(g=g[0].tagName.toLowerCase(),g!==t&&YI("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(g+" !== '"+t),t),this.dispose=F)};
w.prototype.setUpProps=function(){for(var g=this.rawProps,F=this.attributes,T=_.J(Object.keys(z)),D=T.next();!D.done;D=T.next()){D=D.value;var h=void 0;((h=this)==null?0:h[D])&&this[D]!==WIG&&g[D]===void 0&&(g[D]=this[D],(h=Object.getOwnPropertyDescriptor(this.constructor.prototype,D))&&Object.defineProperty(this,D,h))}T=_.J(F);for(D=T.next();!D.done;D=T.next()){h=D.value;D=_.I4(h.name);var u=D==="class"&&!F.getNamedItem("class-name");if(D in z||u)h=Of_(h),D!=="class"||g.className?g[D]=h:g.className=
h}F={};for(var W in z)z[W]!==_.sd&&z[W]!==ccY&&(g[W]instanceof Function&&YI("Function props must be configured as STATIC, not SIGNAL.",t),D=_.J(_.sm(g[W],void 0,"Ri8MSe")),T=D.next().value,D=D.next().value,F[W]=D,g[W]=T);g=_.J([g,F]);this.componentProps=g.next().value;this.setters=g.next().value;this.slotProps=y(this.childNodes)};
w.prototype.connectedCallback=function(){Dv===t&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in z&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
w.prototype.disconnectedCallback=function(){if(!this._isInert){var g;a:{if(_.pbG)for(g=this;g;){if(_.rcJ.has(g)){g=!0;break a}g=g.parentElement}g=!1}if(g)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){g=_.J([].concat(_.RY(this.attributes)));for(var F=g.next();!F.done;F=g.next()){F=F.value;var T=void 0;F.name==="slot"||F.name==="hidden"&&((T=G.unsafeExternallySettableAttributes)==null?0:T.has("hidden"))||this.removeAttribute(F.name)}}this.innerText="";QTv(this)}}};
w.prototype._setPendingPropertyOrPath=function(){};
w.prototype.notifyPath=function(){};
_.ke.Object.defineProperties(w.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var V=_.J(Object.keys(z)),b=V.next(),e={};!b.done;e={prop$jscomp$104:void 0},b=V.next())e.prop$jscomp$104=b.value,b=void 0,((b=G.legacyPolymer)==null?0:b.forwardHostProps)&&KOY.has(e.prop$jscomp$104)||Object.defineProperty(w.prototype,e.prop$jscomp$104,{set:function(g){return function(F){var T=this;this._isInert||(this.setters?Ct(function(){var D,h;return void((h=(D=T.setters)[g.prop$jscomp$104])==null?void 0:h.call(D,F))}):(this.rawProps[g.prop$jscomp$104]=F,this.queuingRender&&g.prop$jscomp$104===
"data"&&F!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(e),
get:N$h.has(e.prop$jscomp$104)?void 0:function(){return WIG}});
customElements.define(t,w)};
_.P4G=function(X,t){return(X=_.S_(X,t))?_.Rj(_.l_(X)):null};
_.hH=function(X){if(X=_.S_(X,Number.MAX_VALUE,void 0,"width"))return _.l_(X)};
_.S_=function(X,t,G,y){y=y===void 0?"width":y;if(!X||!X.length)return null;if(_.A("kevlar_tuner_should_always_use_device_pixel_ratio")){var w=window.devicePixelRatio;_.A("kevlar_tuner_should_clamp_device_pixel_ratio")?w=Math.min(w,_.At("kevlar_tuner_clamp_device_pixel_ratio")):_.A("kevlar_tuner_should_use_thumbnail_factor")&&(w=_.At("kevlar_tuner_thumbnail_factor"));ENl=w}else ENl||(ENl=window.devicePixelRatio);w=ENl;_.A("kevlar_tuner_should_always_use_device_pixel_ratio")?t*=w:w>1&&(t*=w);if(_.A("kevlar_tuner_min_thumbnail_quality"))return X[0].url||
null;w=X.length;if(_.A("kevlar_tuner_max_thumbnail_quality"))return X[w-1].url||null;if(G)for(var z=0;z<w;z++)if(X[z].url.indexOf(G)>=0)return X[z].url||null;for(G=0;G<w;G++)if(X[G][y]>=t)return X[G].url||null;for(t=w-1;t>0;t--)if(X[t][y])return X[t].url||null;return X[0].url||null};
Rgs=function(){ZW.size?setTimeout(function(){qI(UUV)},0):mUh=0};
UUV=function(){var X=(0,_.gl)(),t=null,G=!1;ZW.forEach(function(w){w.loaded=!0;w.loadTime=X;w.pendingPaint=!1;var z=ifV.get(w);z&&z.resolve(X);t=w;G||!w.ftlEligible&&w.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(G=!0)});
var y;((y=t)==null?0:y.markDirty)&&t.markDirty();ZW.clear();mUh=0;G&&LIV(X)};
vN_=function(X){ZW.add(X);X.pendingPaint=!0;mUh||(mUh=_.CX(_.vz,Rgs))};
a6h=function(X){X.loaded=!1;X.loadTime=Infinity;var t=ifV.get(X);t&&(t.reject(Error("mh")),ifV.delete(X));X.pendingPaint&&(ZW.delete(X),X.pendingPaint=!1)};
_.l6V=function(X){var t=X.indexOf(":");return t===-1?{originalName:X}:{originalName:X.substring(0,t),datasyncId:X.substring(t+1)}};
_.f6v=function(){return _.n(function(X){if(xU0!==void 0)return X.return(xU0);xU0=new Promise(function(t){var G;return _.n(function(y){switch(y.nextAddress){case 1:return _.CL(y,2),y.yield(_.KX.open("test-only"),4);case 4:return y.yield(_.KX.delete("test-only"),5);case 5:_.zx(y,3);break;case 2:if(G=_.IY(y),G instanceof Error&&G.name==="SecurityError")return t(!1),y.return();case 3:t("caches"in window),_.W$(y)}})});
return X.return(xU0)})};
$$J=function(){return _.n(function(X){if(X.nextAddress==1)return X.yield(_.f6v(),2);if(!X.yieldResult)return X.return(void 0);M8h||(M8h=new XAG);return X.return(M8h)})};
t4G=function(X){var t,G,y,w;return _.n(function(z){switch(z.nextAddress){case 1:return z.yield($$J(),2);case 2:t=z.yieldResult;if(!t)throw Error("oh");return z.yield(t.open("yt-player-local-img"),3);case 3:return G=z.yieldResult,z.yield(G.match(X),4);case 4:y=z.yieldResult;if(!y)throw Error("ph");return z.yield(y.blob(),5);case 5:return w=z.yieldResult,z.return(w)}})};
GUf=function(X,t){for(var G in X)if(X.hasOwnProperty(G)&&t[G])return G;return null};
yRf=function(X){return"stamp"+X.replace("-","_")+"_"};
wAw=function(X){var t=X.match(/\[\[([\w\.]+)\]\]/);if(t&&t.length>1)return t[1];_.xA(Error("rh`"+X));return null};
z0w=function(X){return X===void 0?_.X3("REUSE_COMPONENTS",!1):X||!1};
JRf=function(X,t,G){G&&(t.is?(HwV.has(t)&&(X=HwV.get(t),G=X.listener,delete t[X.property],G.type==="element"&&t.removeEventListener(G.eventName,G.handler),HwV.delete(t)),ofE(t)):t.__proto__==HTMLElement.prototype&&(t=new _.NJ("Rendererstamper removed a non custom element","Stamper: "+X+" element: "+(t&&t.nodeName)),_.Mj(t)))};
BW0=function(X,t,G,y){var w=t.node?t.node:t;_.Sm(G).parentNode===w&&(t.removeChild(G),JRf(X,G,y));if(X=Od.get(G))Od.delete(G),_.vz.cancelJob(X);G.hidden=!1};
nfl=function(X,t,G,y){if(t&&t.children&&(G=t.children[G]))if(_.X3("DEFERRED_DETACH"))for(;G&&!Od.has(G);){var w=X,z=t,B=G,V=y;B.hidden=!0;w=_.PO(_.vz,BW0.bind(null,w,z,B,V),0);Od.set(B,w);G=G.nextElementSibling}else for(;(B=t.lastElementChild)&&(t.removeChild(B),JRf(X,B,y),B!=G););};
V4w=function(X){var t=_.nl("__slot-el");_.LY(function(){for(var G=_.J(X.slotContent),y=G.next();!y.done;y=G.next())t.value.appendChild(y.value)});
return _.k("__slot-el",{el:t,skip:!0})};
_.up=function(X,t,G){G=G===void 0?bwV:G;hm.add(t);var y;(y=G).propNames!=null||(y.propNames=[]);var w=new Set(G.propNames),z=I6Y();y=function(){var e=z.call(this)||this;e.props={};e.isUpdating=!1;e.hasAttached=!1;e.isInert=!1;e.updateQueued=!1;e.initialClasses=[];PdY(e,t);return e};
_.S(y,z);y.prototype.forwardKebabCaseProp=function(e,g){e=_.I4(e);if(w.has(e)||e==="children")this.props[e]=g};
y.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var e=_.J(this.initialClasses),g=e.next();!g.done;g=e.next())(g=g.value)&&this.classList.add(g);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
y.prototype.handleSlottedContent=function(){for(var e=new Map,g=_.J(this.children),F=g.next();!F.done;F=g.next()){F=F.value;var T=void 0,D=(T=F.getAttribute("slot"))!=null?T:"children";(T=e.get(D))?T.push(F):e.set(D,[F]);if(!F.getAttribute("key")){var h=void 0,u=void 0;F.setAttribute("key",D+"_"+((u=(h=T)==null?void 0:h.length)!=null?u:0))}}e=_.J(e);for(g=e.next();!g.done;g=e.next())F=_.J(g.value),g=F.next().value,F=F.next().value,this.forwardKebabCaseProp(g,_.k(V4w,{slotContent:F}))};
y.prototype.connectedCallback=function(){var e=this;if(!PdY(this,t)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var g=_.J(this.attributes),F=g.next();!F.done;F=g.next())F=F.value,this.forwardKebabCaseProp(F.name,Of_(F));this.handleSlottedContent();G.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){e.afterFirstPatch()});
this.hasAttached=!0}};
y.prototype.attributeChangedCallback=function(e,g,F){this.isInert||this.isUpdating||this.isConnected||e!=="class"||this.initialClasses.push.apply(this.initialClasses,_.RY(F.split(" ")))};
y.prototype.disconnectedCallback=function(){Tuf(this)};
y.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var e,g;WAV(this,_.k(X,Object.assign({},this.props,{idomKey:(g=(e=this.__incrementalDOMData)==null?void 0:e.key)!=null?g:t})),!0)}catch(T){var F=T instanceof Error?T:new _.NJ("Wiz rendering error");F.args||(F.args=[]);F.args.push("Error in deprecated web component wrapper");F.args.push(t.toLowerCase());_.xA(F);throw T;}finally{this.updateQueued=this.isUpdating=!1}}};
y.prototype.enqueueUpdate=function(){var e=this;return _.n(function(g){if(G.synchronous)return e.update(),g.return();if(e.updateQueued)return g.return();e.updateQueued=!0;return g.return(Promise.resolve().then(function(){e.update()}))})};
y.prototype.notifyPath=function(){G.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.ke.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var B=_.J(G.propNames),V=B.next(),b={};!V.done;b={prop$jscomp$106:void 0},V=B.next())b.prop$jscomp$106=V.value,Object.defineProperty(y.prototype,b.prop$jscomp$106,{set:function(e){return function(g){this.isInert||g===this.props[e.prop$jscomp$106]||(this.props[e.prop$jscomp$106]=g,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(b)});
customElements.define(t,y)};
_.kUA=function(X,t){return _.Kg(X.entities,"markersEngagementPanelSyncEntity",t)};
d$E=function(X,t){return _.Kg(X.entities,"fantasyWinProbabilityEntity",t)};
e0V=function(X,t){return _.Kg(X.entities,"fantasyTeamEntity",t)};
jFG=function(X,t){return _.Kg(X.entities,"fantasyPlayerEntity",t)};
gfY=function(X,t){return _.Kg(X.entities,"booleanEntity",t)};
Fsv=function(X,t){return _.Kg(X.entities,"qrCodeEntity",t)};
TWJ=function(X){return _.Kg(X.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
ARG=function(){if(QL)return QL;if(window.lottie)return QL=Promise.resolve(window.lottie);var X=_.aS(_.Md("LOTTIE_URL"));return X?QL=new Promise(function(t,G){var y=document.createElement("script");y.addEventListener("load",function(){t(lottie)});
y.addEventListener("error",function(w){var z="Lottie library failed to load.";w?w.message&&(z+=" Original description: "+w.message,_.XE(w,z)):w=Error(z);_.Mj(w);G(w)});
y.setAttribute("async","");_.Vb(y,X);document.head.appendChild(y)}):Promise.reject(Error("sh"))};
Yv_=function(){return QL?QL:ARG()};
sFG=function(X){if(X)switch(X){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.A("kevlar_use_wil_icons"))return X=(X=TWJ(_.dV().getState()))&&X.animationLightUrl&&X.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:X.animationLightUrl,pathDarkTheme:X.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,X?X:Ii.get("LIKE")}};
D$6=function(X){var t=sFG(X);if(t)return t;switch(X){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Ii.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Ii.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Ii.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Ii.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Ii.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Ii.get("NOTIFICATION_BELL")}};
h0Y=function(X,t){if(!X||SvY)t=!1;else{if(X.closest){var G=!!sFG(t);G=_.Md("ID_TOKEN")&&G?!!X.closest("segmented-like-dislike-button-view-model"):!1}else G=!1;if(!G)if(X.closest)if(G=!_.Md("ID_TOKEN"),X=X.closest("ytd-subscription-notification-toggle-button-renderer-next"),G||!X)G=!1;else{var y;G=((y=X.data)==null?void 0:y.targetId)==="notification-bell"&&t!=="EXPAND_MORE"}else G=!1;t=G}return t};
ZwV=function(X){var t,G;return _.n(function(y){switch(y.nextAddress){case 1:return _.CL(y,2),y.yield(fetch(X),4);case 4:return t=y.yieldResult,y.yield(t.json(),5);case 5:return y.return(y.yieldResult);case 2:G=_.IY(y),_.Mj(G),_.W$(y)}})};
qvV=function(X,t){var G,y,w;return _.n(function(z){if(z.nextAddress==1)return(G=t?X.pathDarkTheme:X.path)?z.yield(Promise.all([ZwV(G),ARG()]),2):z.return();y=z.yieldResult;w=y[0];Wl.set(G,w);_.W$(z)})};
_.cl=function(){for(var X=_.f1.apply(0,arguments),t=!0,G=_.J(X),y=G.next();!y.done;y=G.next())if(typeof y.value!=="string"){t=!1;break}return t?X.join(" ").trim()||void 0:function(){for(var w="",z=_.J(X),B=z.next();!B.done;B=z.next())if(B=B.value,typeof B==="function"&&(B=B()),B)if(typeof B==="string")w+=" "+B;else for(var V in B)if(B.hasOwnProperty(V)){var b=B[V];typeof b==="function"&&(b=b());b&&(w+=" "+V)}w=w.trim()||void 0;return _.R5(w)}};
KsV=function(X,t,G,y){function w(B,V){if(t.value===V&&X!=null&&X.value){for(;X.value.firstChild;)X.value.removeChild(X.value.firstChild);X.value.classList.add("yt-spec-icon-shape");B(X.value,y)}}
G=_.Ccv(_.gw().resolve(_.IL),G);if(typeof G==="function")t.value=null,w(G,null);else{var z=new _.Kh(G.then,G);t.value=z;z.then(function(B){w(B,z)})}};
uCE=function(X,t){var G=document.createElement("div"),y=_.Ea(G,function(){return _.k(_.d,{cond:X,then:function(w){return _.k(Ow6,{data:w,options:t})}})});
return[G,y]};
_.pX=function(){for(var X=[],t=_.J(_.f1.apply(0,arguments)),G=t.next();!G.done;G=t.next())if(G=G.value)if(typeof G==="string")X.push(G);else{G=_.J(Object.entries(G));for(var y=G.next();!y.done;y=G.next()){var w=_.J(y.value);y=w.next().value;(w=w.next().value)&&X.push(y)}}return X.join(" ")};
cRV=function(X){var t=_.nl("animated-rolling-character"),G=a2(),y=bs(X.character)||bs(X.previousCharacter);NuV(function(){if(X.marginMultiplier){var w;(w=G.value)==null||w.cancel();y?(w=X.previousCharacter?Number(X.previousCharacter)+10:X.rollUp?0:30,X.shouldAnimate||(w-=QFh(X,w))):(w=X.rollUp?0:2,X.shouldAnimate||(w-=X.rollUp?-1:1));t.value.style.marginTop="-"+w*X.marginMultiplier+"px";X.shouldAnimate?G.value=Igf(t.value,X,w,y):t.value.style.display=X.character?"":"none"}});
return _.k("animated-rolling-character",{el:t,class:"animated-rolling-character-wiz"},JW(y,function(){for(var w=[],z=1;z<30;z++)w.push(_.k("div",null,z%10));return _.k(_.gn,null,_.k("div",null,"\u00a0"),w,_.k("div",null,"\u00a0"))},function(){return WsE(X.character)}))};
WsE=function(X){return _.k(_.gn,null,_.k("div",null,"\u00a0"),_.k(_.gn,null,JW(!X||_.JA(X),function(){return _.k("div",null,"\u00a0")},function(){return _.k("div",null,X)})),_.k("div",null,"\u00a0"))};
Igf=function(X,t,G,y){G=new Animation(new KeyframeEffect(X,[{transform:"translateY(0px)"},{transform:"translateY("+(y?QFh(t,G):t.rollUp?-1:1)*t.marginMultiplier+"px)"}],pA_),document.timeline);t.character?(X.style.display="",G.onfinish=null):G.onfinish=function(){X.style.display="none"};
G.play();return G};
QFh=function(X,t){var G=Number(X.character)+10;if(X.previousCharacter)if(X.character){var y=Number(X.character),w=Number(X.previousCharacter);X=X.rollUp?w<y?G:G+10:w<y?G-10:G}else X=X.rollUp?30:0;else X=X.character==="0"?G:X.rollUp?G-10:G+10;return t-X};
_.rr=function(X,t){return function(G){var y={},w;for(w in G){var z=void 0,B=void 0;((z=t)==null?0:(B=z.callbacks)==null?0:B[w])||(y[w]=G[w])}return _.k($sV,null,function(){for(var V in y)G[V]=_.R5(y[V]);G.disableReactiveLogging=!0;return _.k(X,Object.assign({},G))})}};
Pc6=function(X,t,G,y,w,z,B){G=new Animation(new KeyframeEffect(X,[{transform:"translateY(0px)"},{transform:"translateY("+(z?rRA(t,G,y,w):y?-1:1)*B+"px)"}],NWv),document.timeline);t?(X.style.display="",G.onfinish=null):G.onfinish=function(){X.style.display="none"};
G.play();return G};
rRA=function(X,t,G,y){var w=Number(X)+10;t?X?(X=Number(X),t=Number(t),G=G?t<X?w:w+10:t<X?w-10:w):G=G?30:0:G=X==="0"?w:G?w-10:w+10;return y-G};
U$s=function(X){var t=a2(),G=a2();_.iv(function(){t.value=X.numberText;G.value=X.numberValue},[X.numberText]);
var y=X.fontSizeMultiplier?X.heightPx*X.fontSizeMultiplier:X.heightPx,w=aOf(function(){if(X.numberText){var B=X.numberText;var V=X.forceRollUp||!G.value||!X.numberValue||G.value<X.numberValue;var b=!!X.shouldAnimate,e=t.value,g=[],F=0,T=0,D=(e?e.replace(/\D/g,"").length:0)-(B?B.replace(/\D/g,"").length:0);e=e?e.split(/(\d)/).filter(Boolean):[];for(B=B.split(/(\d)/).filter(Boolean);D<0;){var h=B[T];g.push({character:h,rollUp:V,marginMultiplier:y,shouldAnimate:b});T++;bs(h)&&D++}for(;F<D;)h=e[F],g.push({previousCharacter:h,
rollUp:V,marginMultiplier:y,shouldAnimate:b}),F++,bs(h)||D++;for(;T<B.length;)D=B[T],h=e[F],bs(D)===bs(h)?(T++,F++):bs(D)?(F++,D=void 0):bs(h)&&(T++,h=void 0),g.push({character:D,previousCharacter:h,rollUp:V,marginMultiplier:y,shouldAnimate:b});V=g}else V=[];return V},[X.numberText]),z=X.numberText?["height: "+y+"px;",
"line-height: "+X.heightPx+"px;"].join(" "):"";return _.k("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:z,dir:"ltr","aria-hidden":"true"},w.map(function(B){return _.k(Efh,Object.assign({},B))}))};
R0w=function(X){var t;return(t=m$E[X])!=null?t:"EVENT_SPAN_TYPE_UNKNOWN"};
iwE=function(X){var t=X.nodeName;if(X.id)return t+="#"+X.id;if(X.classList)for(var G=_.J(X.classList),y=G.next();!y.done;y=G.next())t+="."+y.value;X.parentElement&&(t=iwE(X.parentElement)+" > "+t);return t};
Lsv=function(X){return function(t){var G=R0w(t.type);return G==="EVENT_SPAN_TYPE_UNKNOWN"?X(t):A00("event",{type:G,nodepath:t.target instanceof Element?iwE(t.target):void 0},function(){return X(t)})}};
_.NI=function(X){X&&grV("event")&&(X=Lsv(X));return O5_(function(t){var G,y=(G=X)==null?void 0:G(t);return typeof y==="boolean"?y:!0})};
Pl=function(X){return function(){return X()?X():void 0}};
vf_=function(X){return new KeyframeEffect(X,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
agJ=function(X){return new KeyframeEffect(X,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Ed=function(X){var t=AH(function(G){G=G?YH(G[0]):void 0;return _.sm(X(G),void 0,"AwTxXe")},{isEqual:function(G,y){return YH(G[0])===YH(y[0])}});
return[function(){return t()[0]()},
function(G){return void t()[1](G)}]};
_.Ud=function(X){return function(){var t="",G;for(G in X){for(var y=X[G];typeof y==="function";)y=y();y!==void 0&&y!==null&&(t+="; "+G+": "+y)}return t.length>0?_.R5(t.slice(2)):_.R5()}};
lgV=function(X){switch(X){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"}};
XiA=function(X,t,G,y,w,z){var B=x$Y(X),V=B.disabled,b=B.iconPosition,e=B.style,g=B.focused,F=function(){return!!h()&&b()==="icon-only"},T=function(){return!!h()&&b()==="icon-only-40"},D=function(){return!!h()&&b()==="icon-with-label"},h=function(){return!!t||!(y==null||!y())};
return{type:function(){return e()==="call-to-action-inverse"?"text":e()==="overlay-dark"&&X().type!=="filled"&&X().type!=="tonal"?"tonal":X().type},
shouldFocus:function(){return(g()||(z==null?void 0:z()))&&!V()},
hasIconLeading:function(){return!!h()&&b()==="leading"},
hasIconTrailing:function(){return!!h()&&b()==="trailing"},
hasIconLeadingTrailing:function(){return!!h()&&!!(G||w!=null&&w())&&b()==="leading-trailing"},
hasIconOnly:F,hasIconOnly40:T,hasIconWithLabel:D,iconButton:function(){return F()||T()||D()},
visiblyDisabled:function(){return(V()?"disabled":X().state)==="disabled"||V()},
overrideSmallSizeIcon:function(){return!X().ignoreIconSizeOverride&&fgY(X(),h())},
iconToRender:t?t:function(){return _.k(_.mw,{icon:y,size:function(){return Ri(X(),!0,X().ignoreIconSizeOverride)},
active:function(){return X().toggled},
iconFilter:function(){return M4E(X())}})},
secondaryIconToRender:G?G:function(){return _.k(_.mw,{icon:w,size:function(){return Ri(X(),!0,X().ignoreIconSizeOverride)},
active:function(){return X().toggled},
iconFilter:function(){return M4E(X())}})}}};
x$Y=function(X){return{size:function(){return X().size},
style:function(){return X().style},
focused:function(){return X().focused},
disabled:function(){return X().disabled},
onTap:function(t){var G,y;return(y=(G=X()).onTap)==null?void 0:y.call(G,t)},
alignByText:function(){return X().alignByText},
aTagConfig:function(){return X().aTagConfig},
customColors:function(){return X().customColors},
segmentedPosition:function(){return X().segmentedPosition},
toggled:function(){return X().toggled},
toggleable:function(){return X().toggleable},
accessibilityLabel:function(){return X().accessibilityLabel},
onToggle:function(t){var G,y;return(y=(G=X()).onToggle)==null?void 0:y.call(G,t)},
iconPosition:function(){return X().iconPosition},
oneOffCustomTextWrap:function(){return X().oneOffCustomTextWrap},
disableTextEllipsis:function(){return X().disableTextEllipsis},
disableBackdropFilter:function(){return X().disableBackdropFilter},
tooltipText:function(){return X().tooltipText},
ariaHidden:function(){return X().ariaHidden},
tabIndex:function(){return X().tabIndex},
buttonText:function(){return X().buttonText},
formattedButtonText:function(){return X().formattedButtonText},
animatedTextProps:function(){return X().animatedTextProps}}};
$cl=function(X){return X.style==="overlay-dark"?4:X.style==="overlay"?X.type==="filled"?4:3:X.type==="filled"||X.style==="call-to-action-inverse"||X.style==="mono-inverse"?2:1};
fgY=function(X,t){t=(X.iconPosition==="icon-only"||X.iconPosition==="icon-only-40"||X.iconPosition==="icon-with-label")&&t;return!X.segmentedPosition&&t&&X.size==="S"};
t5w=function(){return!_.A("web_disable_backdrop_filter")};
Ri=function(X,t,G){switch(X.size){case "XS":return 16;case "S":return!G&&fgY(X,t)?24:16;default:return 24}};
GEJ=function(X){switch(X){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"}};
yhA=function(X){switch(X){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"}};
wiJ=function(X){switch(X){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"}};
M4E=function(X){if(X.style==="overlay-dark"&&X.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
zAJ=function(X){if(!X)return{};var t=X.color,G=X.backgroundColor;X=X.borderColor;var y="";t&&(y+="color: "+t+";");G&&(y+="background-color: "+G+";");X&&(y+="border-color: "+X+";");return{style:y}};
nOG=function(X,t,G){var y=X.buttonText,w=X.formattedButtonText,z=X.formattedButtonTextLegacy,B=X.animatedTextProps,V=X.style,b=X.size,e=X.focused,g=X.disabled,F=X.onTap,T=X.alignByText,D=X.aTagConfig,h=X.customColors,u=X.segmentedPosition,W=X.toggled,c=X.toggleable,P=X.accessibilityLabel,l=X.onToggle,R=X.iconPosition,L=X.oneOffCustomTextWrap,x=X.disableTextEllipsis,w6=X.disableBackdropFilter,BY=X.tooltipText,kJ=X.ariaHidden,Ss=X.tabIndex,C_=X.ignoreIconSizeOverride,Fv=X.state,Uh=X.type;V==="call-to-action-inverse"&&
(Uh="text");V==="overlay-dark"&&Uh!=="filled"&&Uh!=="tonal"&&(Uh="tonal");var cY=!!t&&R==="leading",f_=!!t&&R==="trailing",sq=!!t&&!!G&&R==="leading-trailing",oq=!!t&&R==="icon-only",ll=!!t&&R==="icon-only-40",go=!!t&&R==="icon-with-label",kh=oq||ll||go;g&&(Fv="disabled");var Aq=Fv==="disabled"||g;C_=!C_&&fgY(X,!!t);Fv={};var OR=(Fv["yt-spec-button-shape-next"]=!0,Fv[GEJ(Uh)]=!0,Fv[yhA(V)]=!Aq,Fv["yt-spec-button-shape-next--disabled"]=!!Aq,Fv[wiJ(b)]=!0,Fv["yt-spec-button-shape-next--focused"]=!!e&&
!g,Fv["yt-spec-button-shape-next--icon-trailing"]=f_,Fv["yt-spec-button-shape-next--icon-leading"]=cY,Fv["yt-spec-button-shape-next--icon-leading-trailing"]=sq,Fv["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=sq&&!(y||w),Fv["yt-spec-button-shape-next--icon-button"]=oq||go,Fv["yt-spec-button-shape-next--icon-only-default"]=ll,Fv["yt-spec-button-shape-next--align-by-text"]=!!T,Fv["yt-spec-button-shape-next--segmented-start"]=u==="start",Fv["yt-spec-button-shape-next--segmented-end"]=u===
"end",Fv["yt-spec-button-shape-next--override-small-size-icon"]=C_,Fv["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!L,Fv["yt-spec-button-shape-next--disable-text-ellipsis"]=!!x,Fv["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!w6&&t5w(),Fv),Mz=function(){if(B)nNJ(_.Hx6)(B);else if(z)z(R==="icon-with-label"||L?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(w){var Uq=R==="icon-with-label"||L;hgE(Object.assign({},
w,Uq?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!Uq})}else y&&bv(y)},HY=function(Uq){F==null||F(Uq);
c&&(l==null||l(Uq))},yR=D?oOl:Jh6,hq=D?"aria-current$":"aria-pressed$",gi=function(){t&&(cY||sq||kh)&&function(){ip({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){t()})}();
(y||w||z||B)&&!kh&&function(){ip({className:"yt-spec-button-shape-next__button-text-content"},function(){Mz()})}();
f_&&function(){ip({className:"yt-spec-button-shape-next__icon"},function(){t()})}();
sq&&function(){ip({className:"yt-spec-button-shape-next__secondary-icon"},function(){G()})}();
g||nNJ(_.LX)({model:{color:$cl(X)}})},TB=function(){var Uq={};
yR(Object.assign({},(Uq.className=_.pX(OR),Uq.onclick=D?void 0:HY,Uq.disabled=g,Uq["aria-disabled$"]=Aq,Uq.style=g&&D?"pointer-events:none":void 0,Uq[hq]=c?!!W:void 0,Uq["aria-label$"]=P,Uq.title$=BY!=null?BY:"",Uq["aria-hidden$"]=kJ,Uq.tabindex$=Ss,Uq),D,zAJ(h)),function(){gi()})};
go?(b={},V=(b["yt-spec-button-shape-with-label"]=!0,b["yt-spec-button-shape-with-label--is-overlay"]=V==="overlay"||V==="overlay-dark",b),BeE({className:_.pX(V)},function(){TB();ip({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Mz)})):TB()};
bxE=function(X,t){if(!Bm){var G;Ujh(function(){return G=Mes(X,t)});
return G}X.parent=_.V5v();return Mes(X,t)};
_.V5v=function(){var X=Blf(Bm||void 0,lRV);return JGl(X)?void 0:X};
jel=function(X){var t=t===void 0?{}:t;X=_.J(_.Ed(X));var G=X.next().value;return[function(y){var w=_.qt(function(){var V,b,e,g,F={text:(V=G())!=null?V:"",location:(b=t.location)!=null?b:"bottom",offset:(e=t.offset)!=null?e:16,delay:(g=t.delay)!=null?g:500};return Object.assign({},F,{location:F.location})},void 0,"MgTrkc");
_.Em(function(){var V=w();YH(function(){_.vz.addJob(function(){kEA.notify(y,V)},4)})},"Z01NSc");
var z=function(){dc_(y,w())},B=function(){eAY()};
y.addEventListener("mouseenter",z);y.addEventListener("focus",z);y.addEventListener("mouseleave",B);y.addEventListener("blur",B);y.addEventListener("tap",B);_.Um(function(){y.removeEventListener("mouseenter",z);y.removeEventListener("mouseleave",B);y.removeEventListener("focus",z);y.removeEventListener("blur",B);y.removeEventListener("tap",B);eAY()})},
X.next().value]};
vl=function(X,t){_.z7(X,Object.assign({},t,{forceClickLogging:!0}))};
gOV=function(X,t,G,y){vl(X,Object.assign({},{form:{element:t,event:G}},y))};
TeV=function(X,t,G,y,w){var z=void 0;return function(B){var V=_.wr(G?X==null?void 0:X.onDisabledTap:X==null?void 0:X.onTap);if(V){var b;z=(b=z)!=null?b:t==null?void 0:t.value;if(V)if(_.A("web_button_vm_click_client_ve_killswitch"))gOV(V,z,B);else{b=FFw(X,V);if(w){gOV(V,w,B,{clickedVisualElement:b,form:{element:w}});return}gOV(V,z,B,{clickedVisualElement:b})}}y&&y(B)}};
FFw=function(X,t){t=t==null?void 0:t.clickTrackingParams;var G,y;if((X=X==null?void 0:(G=X.loggingDirectives)==null?void 0:(y=G.clientVeSpec)==null?void 0:y.uiType)&&!t)return _.ai(X)};
Ah0=function(X){switch(X){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"}};
Y7w=function(X){switch(X){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"}};
sef=function(X){switch(X){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"}};
Dcf=function(X){switch(X){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"}};
S70=function(X,t){return _.Kg(X.entities,"engagementToolbarStateEntityPayload",t)};
Zx0=function(X){(X=_.i$(X))&&_.hAw(X)};
_.hAw=function(X){var t=_.lw();t&&_.HK(t,X)};
q7V=function(X,t,G){_.sl(X,"yt-open-popup-action",[t,G||X])};
C56=function(X,t){var G=_.lv(X,"endpoint"),y=_.lv(X,"action");return(G=y?y:G)&&t&&(G=t.navigationEndpointPopupMap[G])&&(X=_.GA(G,X),(G=_.lv(X,"renderer"))&&t.supportedPopups.hasOwnProperty(G))?{openPopupAction:{popupType:t.popupTypeMap[G],popup:X}}:null};
KF6=function(X,t,G,y){if(y){var w;G=G==null?void 0:(w=G.data)==null?void 0:w.contents;(w=G instanceof Array&&G.length?G[0]:G)&&(G=_.lv(w,"renderer"))&&y.supportedPopups.hasOwnProperty(G)&&(t.stopPropagation(),q7V(X,{openPopupAction:{popupType:y.popupTypeMap[G],popup:w}}))}};
Qew=function(X,t,G,y){y=y===void 0?!1:y;var w=OxV(t);if(w){w.href&&HW(w.href);var z=t.button;z=z!==void 0?z===0&&!lp(t):!lp(t);w.data&&z&&uZV(X,w,t,G,y)}};
uZV=function(X,t,G,y,w){w=w===void 0?!1:w;var z=_.At("pbj_navigate_limit",-1)===0;ILw(t);_.gw().resolve(_.jH(wS));var B=t.data;if(Object.keys(B).length!==0)if(!_.A("unplugged_web_disable_actions_for_cec_endpoint")&&_.Y(B,_.Cq))_.A("endpoint_behavior_command_executor_fix_killswitch")||(G.preventDefault(),G.stopPropagation()),_.Z0(X,[B],X);else if(y=C56(B,y))B.loggingUrls&&B.loggingUrls.forEach(function(b){b.baseUrl&&_.HO(b.baseUrl)}),G.preventDefault(),G.stopPropagation(),q7V(X,y,t);
else{var V=WFE(0,t.data,G);if(X=t.getForm)X=X(),V.tempData=V.tempData||{},V.tempData=Object.assign({},V.tempData,X);X=_.be(G);if(y=X.find(function(b){return!!b.visualElement}))V.createScreenConfig=V.createScreenConfig||{},V.createScreenConfig.clickedVisualElement=y.visualElement;
if(!z)if(G.preventDefault(),G.stopPropagation(),_.Y(B,_.chA)&&!w&&_.Wj.instance)_.Wj.instance.resolveCommand(B,V);else if(_.A("kevlar_command_handler_formatted_string")&&!w&&_.Wj.instance&&piY(B))w=X.find(function(b){return!!b.is})||G.target,G={form:Object.assign({},V,{event:G,
element:w,originatingNode:t})},_.Wj.instance.resolveCommand(B,G);else{B=_.be(G);G=[];for(w=0;w<B.length;w++)(z=B[w].is)&&G.push(z);kzA({parents:G.join(","),text:t.innerText},function(){_.Yt(t,"yt-navigate",V)})}}};
rhG=function(X){if(X=OxV(X))ILw(X),MGE(X.href)};
OxV=function(X){X=_.be(X);for(var t,G=0;G<X.length;G++)if(t=X[G],t.tagName==="A"&&t.classList.contains("yt-simple-endpoint")){if(!t.data)break;return t}return null};
lp=function(X){return X.shiftKey||X.altKey||X.metaKey||X.ctrlKey};
NeJ=function(X,t){var G={itct:t.clickTrackingParams};_.A("kevlar_client_side_screens")&&(!_.Y(t,_.E8)||_.A("kevlar_exclude_endpoint_killswitch"))&&(G.endpoint=JSON.stringify(t));_.A("enable_unknown_lact_fix_on_html5")&&_.gw().resolve(_.jH(_.xI))&&(G.lact=_.T5());lzV(G);_.dk(X,G)};
ILw=function(X){X.href&&Object.keys(X.data).length!==0&&NeJ(X.href,X.data)};
piY=function(X){for(var t=_.J(P5l),G=t.next();!G.done;G=t.next())if(X[G.value])return!1;return!0};
_.fX=function(X,t){if(t){var G={};EOv.forEach(function(y){y=UcA(t,y,"--yt-lightsource-");Object.assign(G,y)});
mc6.forEach(function(y){y=UcA(t,y,"--yt-basic-");Object.assign(G,y)});
_.Kd(X,G)}};
UcA=function(X,t,G){var y={};y[G+_.Q8(t)]=X&&X[t]?_.yY(X[t]):"";return y};
_.Xa=function(X,t,G){MI[X]||(MI[X]={});MI[X][t]=G};
_.$W=function(X){MI[X]||(MI[X]={});return MI[X]};
RAE=function(X){if(!X)return{};var t=X.foregroundTitleColor,G=X.backgroundColor;X=X.borderColor;var y="text";X?y="outline":G&&(y="filled");return{type:y,customColors:{color:t?_.yY(t):void 0,backgroundColor:G?_.yY(G):void 0,borderColor:X?_.yY(X):void 0}}};
lLv=function(X){var t=X.renderer;var G=X.element;var y=X.commandController;var w=X.onTapCallback;var z=X.skipCommandHandling;var B=X.overrides;var V=X.forceIcon;var b=X.forceModernIconButton;var e=X.forceDisabled;var g=X.isSubscribe===void 0?!1:X.isSubscribe;var F=X.isPressed===void 0?!1:X.isPressed;var T=X.useButtonSize===void 0?!1:X.useButtonSize;X=ix6(t);g&&(X.style="mono",X.type="filled");V=!t.icon||!V&&t.text?t.icon?t.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:b?"icon-only":"icon-only-40";V==="icon-only-40"&&(X.type="text");var D;b=Object;g=b.assign;T=LFw(t,T);F=!!t.isSelected||!_.A("web_propagate_is_pressed_killswitch")&&!!F;var h=t.isSelected!==void 0;e=e===void 0?t.isDisabled:e;var u=t.text?_.$I(t.text):void 0;var W,c,P,l=((W=t.accessibilityData)==null?void 0:(c=W.accessibilityData)==null?void 0:c.label)||((P=t.accessibility)==null?void 0:P.label);W=l?l:_.bu(t.text);G=vOJ(t,G,y,w,z);y=aLE(t);y!=null&&y.length?(y=_.Hl({innertubeCommand:V30(y),
forceNewState:!0}),y=oi(y)?y:void 0):y=void 0;return g.call(b,{},X,T,{iconPosition:V},B,{focused:!1,toggled:F,toggleable:h,disabled:e,formattedButtonText:u,accessibilityLabel:W,onTap:G,aTagConfig:y},RAE((D=t.colorData)==null?void 0:D.basicColorPaletteData),{oneOffCustomTextWrap:t.oneOffCustomTextWrap})};
vOJ=function(X,t,G,y,w){return function(z){var B=aLE(X);y(B,z);if(!w){B=_.J(B);for(var V=B.next();!V.done;V=B.next())vl(V.value,{form:{element:t,event:z},commandController:G})}}};
aLE=function(X){var t=[];X.command&&t.push(X.command);X.serviceEndpoint&&t.push(X.serviceEndpoint);X.navigationEndpoint&&t.push(X.navigationEndpoint);return t};
LFw=function(X,t){if(t)switch(X.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(X.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
ix6=function(X){switch(X.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"}}};
_.tS=function(X){return X!=null&&X.watch?X.watch.isTheaterMode:!1};
_.Gz=function(X){return X!=null&&X.watch?X.watch.isWatchFullscreen:!1};
_.yE=function(X){X=_.xcV(X);return _.A("web_watch_enable_single_column_grid_view")?X:!1};
_.xcV=function(X){return X.watch.isWatchNarrowWidth};
_.fLG=function(X){return X.watch.openEngagementPanels};
_.w5=function(X){return _.qt(function(){U6V()();return iil(X)},{debugName:"d8B62c"},"wfRQAb")};
zz=function(X,t){return _.Kg(X.entities,"likeStatusEntity",t)};
M5w=function(X,t){return _.Kg(X.entities,"likeCountEntity",t)};
_.X26=function(X,t){return _.Kg(X.entities,"stringEntity",t)};
$3l=function(X,t){if(!X)return!1;var G,y=(G=_.Y(X,_.Ol))==null?void 0:G.signal;if(y&&t.signalEndpointMap)return!!t.signalEndpointMap[y];var w;if((G=(w=_.Y(X,_.Hk))==null?void 0:w.request)&&t.continuationEndpointMap)return!!t.continuationEndpointMap[G];for(var z in X)if(t.commandEndpointMap[z])return!0;return!1};
tKG=function(X,t){if(t.streamingEndpointMap)for(var G in X)if(t.streamingEndpointMap[G]&&(X=t.streamingEndpointMap[G]))return X()};
GdY=function(X,t){var G,y=(G=_.Y(X,_.Ol))==null?void 0:G.signal;if(y&&t.signalEndpointMap&&(G=t.signalEndpointMap[y]))return G();var w;if((G=(w=_.Y(X,_.Hk))==null?void 0:w.request)&&t.continuationEndpointMap&&(w=t.continuationEndpointMap[G]))return w();for(var z in X)if(t.commandEndpointMap[z]&&(X=t.commandEndpointMap[z]))return X()};
yxv=function(X){var t={"Content-Type":"application/json"};_.Md("EOM_VISITOR_DATA")?t["X-Goog-EOM-Visitor-Id"]=_.Md("EOM_VISITOR_DATA"):_.Md("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=_.Md("VISITOR_DATA"));t["X-Youtube-Bootstrap-Logged-In"]=_.Md("LOGGED_IN",!1);_.Md("DEBUG_SETTINGS_METADATA")&&(t["X-Debug-Settings-Metadata"]=_.Md("DEBUG_SETTINGS_METADATA"));X!=="cors"&&((X=_.Md("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(t["X-Youtube-Client-Name"]=X),(X=_.Md("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(t["X-Youtube-Client-Version"]=
X),(X=_.Md("CHROME_CONNECTED_HEADER"))&&(t["X-Youtube-Chrome-Connected"]=X),(X=_.Md("DOMAIN_ADMIN_STATE"))&&(t["X-Youtube-Domain-Admin-State"]=X),_.X3("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(X=_.Md("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(t["X-YouTube-Lava-Device-Context"]=X));return t};
w2J=function(X,t){t.watchNextResponse||t.reelItemWatchResponse?t.watchNextResponse?X.content=t.watchNextResponse:X.content=t.reelItemWatchResponse:t.playerResponse?X.player=t.playerResponse:t.reelWatchSequenceResponse&&(X.reelSequence=t.reelWatchSequenceResponse)};
_.JS=function(X){if(!X)return null;for(var t=[],G=0;G<X.textSegments.length;G++){var y=X.textSegments[G];y.text?t.push(y):y.emojiId&&t.push({emoji_id:y.emojiId})}return{text_segments:t}};
B8w=function(X,t,G,y,w,z,B){z=z===void 0?[]:z;var V=new _.Bk;V.endpoint=G;if(!G)return _.fh(new _.NJ("handle undefined endpoint",t.tagName)),V;var b=ssV(G);b.length&&(_.Z0(X,b,t,y),V.actions=b);G.loggingUrls&&G.loggingUrls.forEach(function(g){g.baseUrl&&o7(g.baseUrl,g.attributionSrcMode)});
b=!_.A("web_skip_impression_click_killswitch")&&y&&y.impression;if(G.clickTrackingParams&&!zqh(G)&&!HQh(t)&&!b&&(b=_.Pj(),!_.n5(b,t))){var e=t.getScreenLayer&&t.getScreenLayer();e?b.clickCommand(G,null,e):b.clickCommand(G,null)}b=!1;for(e=0;e<z.length;e++)if((0,z[e])(t,G,y)){b=!0;break}!b&&ocs(G)&&(V.ajaxPromise=JxV(X,t,G,y,w,B));return V};
HQh=function(X){var t;return(X=(t=X.data)==null?void 0:t.navigationEndpoint)&&!!X.clickTrackingParams};
zqh=function(X){var t=_.Y(X,_.Ol);if(t&&(t=t.signal)&&nc0.indexOf(t)>=0)return!0;for(var G in X)if(VK6.indexOf(G)>=0)return!0;return!1};
ocs=function(X){var t;if(((t=_.Y(X,_.Ol))==null?void 0:t.signal)==="CLIENT_SIGNAL")return!1;for(var G in X)if(bQw.indexOf(G)>=0)return!1;X=Object.keys(X);return X.length===1&&X[0]==="loggingUrls"?!1:!0};
Axs=function(X,t,G,y,w,z,B){var V=_.VE.instance;if(V&&_.bX(V,y))var b=_.kW(V,y,w).then(function(g){return(g==null?0:g.data)?g:{data:g}});
else b=X.requestDataForServiceEndpoint(y,w),_.Y(y,kds)||_.Y(y,d30)||_.Y(y,_.eqf)||_.Y(y,j1A)||_.Mj(new _.NJ("No RequestBuilder for endpoint",y));var e=_.d5();e.promise.thenCatch(function(){var g=_.lv(y,"action")||_.lv(y,"command")||_.lv(y,"endpoint");g&&(g=y[g],g.hasOwnProperty("onFailureAction")?_.Z0(t,[g.onFailureAction],G):g.hasOwnProperty("onFailureCommand")&&_.Z0(t,g.onFailureCommand,G));b.cancel("Resolver promise rejected")});
b.then(function(g){if(g){var F=g.error;if(F){if(z&&z.onServerError)z.onServerError(y,g);e.reject(new _.NJ("Response error",y,F))}else if(g=g.data)if(F=g.error){if(z&&z.onServerError)z.onServerError(y,g);e.reject(new _.NJ("Returned error",y,F))}else{gc_(t,G,g,y);FdY(g);if(F=YWV(g))for(var T=_.J(F),D=T.next();!D.done;D=T.next()){D=D.value;var h=_.gw().resolve(_.jH(T8v))||ee;if(!_.VE.instance||!h.some(function(W){return!!_.Y(y,W)})||_.A("kevlar_response_processor_allowlist_killswitch")){var u=h=void 0;
((u=_.Y((h=D)==null?void 0:h.commandMetadata,_.jQ))==null?0:u.sendPost)?_.hE(t,[D]):_.Z0(t,[D],G)}}(T=_.Y(g==null?void 0:g.frameworkUpdates,je))&&B&&B(T);if(z&&z.onSuccess)z.onSuccess(y,g);e.resolve(new _.g5(g,F))}}else e.reject(new _.NJ("Invalid service endpoint provided",y))},function(g){e.reject(g)});
return e.promise};
FdY=function(X){var t;(X=(t=_.Y(X==null?void 0:X.onResponseReceivedCommand,_.YJV))==null?void 0:t.continuationItems)&&(X==null?void 0:X.length)===1&&_.Y(X[0],s16)&&_.ls("so_r",void 0,"search_overview_answer")};
JxV=function(X,t,G,y,w,z){var B;return(B=t.getNetworkManager&&t.getNetworkManager()?t.getNetworkManager():_.gw().resolve(_.jH(_.fp)))?Axs(B,X,t,G,y,w,z):_.l$("No network manager.")};
gc_=function(X,t,G,y){if(G=G.trackingParams||G.loggingDirectives&&G.loggingDirectives.trackingParams){var w;(_.Y(y,D3f)||_.Y(y,SJY)||_.Y(y,hqv))&&y.clickTrackingParams?w=_.i$(y.clickTrackingParams):_.A("web_graft_to_parent_command")&&y.clickTrackingParams&&(w=_.i$(y.clickTrackingParams));var z;y=(z=t.getScreenLayer)==null?void 0:z.call(t);t=_.Pj().graftServerVe(G,w,y);_.D0(X,"yt-store-grafted-ve-action",[t])}};
_.ZQ_=function(X){var t=new Image;return new _.Kh(function(G,y){t.addEventListener("load",function(){G()});
t.addEventListener("error",function(){y()});
t.src=X})};
qJJ=function(X){return!!X};
C1Y=function(X){return!!X};
KdJ=function(X,t,G){var y=X.rowIndex;y!==void 0&&_.D0(X.hostElement,"yt-section-reactive-dismissal",[y,t,G])};
_.Fa=function(X,t,G){X=_.J(X);for(var y=X.next();!y.done;y=X.next()){y=y.value;if(y===t)break;for(var w=_.J(G),z=w.next();!z.done;z=w.next())if(z=z.value,y.tagName===z||!_.A("web_event_button_role_check_killswitch")&&y.role==="button"&&z==="BUTTON")return!0}return!1};
_.Tz=function(X,t,G){X=_.J(X);for(var y=X.next();!y.done;y=X.next()){y=y.value;if(y===t)break;for(var w=_.J(G),z=w.next();!z.done;z=w.next())if(y.id===z.value)return!0}return!1};
OQV=function(X){switch(X){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}};
uwG=function(X,t){if(!X&&!t)return"medium";X=Math.max(X||0,t||0);return X>=256?"large":X>=96?"medium":"small"};
Q1h=function(X){switch(X){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.sW=function(){var X=_.gw().resolve(_.jH(_.AS));return X?(X=X.getCurrentPage())?_.YW(X):null:null};
_.DR=function(){var X=_.sW();if(!X){var t=_.gw().resolve(_.jH(_.AS)),G=t?typeof t:"no page manager";t=t?t.getCurrentPage():null;G=new _.NJ("Player is missing when requested.",G,t?t.tagName:"no page");_.xA(G)}return X};
_.YW=function(X){return X&&X.getPlayer?X.getPlayer():null};
Itw=function(X,t){X={args:{raw_player_response:X}};t&&(X.args=Object.assign({},X.args,t));return X};
WdA=function(X){if(X.args){if(X.args.raw_player_response)return X.args.raw_player_response;if(X.args.player_response)return JSON.parse(X.args.player_response)}};
_.cxG=function(X,t){var G={url:"/watch?v="+X.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};X.playlistId&&(G.url+="&list="+X.playlistId);X.playerParams&&(G.url+="&pp="+X.playerParams);X={watchEndpoint:X,commandMetadata:{webCommandMetadata:G}};t&&(X.clickTrackingParams=t);return X};
rxJ=function(){return p20||!!_.GA("yt.player.Application")};
P1l=function(){return N8Y||!!document.querySelector("link#player-css")};
U3_=function(){function X(){p20=!0;EcG.resolve()}
var t,G;return _.n(function(y){EcG||(EcG=new _.Kp,rxJ()?X():(t=document.createElement("script"),t.addEventListener("load",X),G=_.Pp(_.Md("PLAYER_JS_URL")),_.Vb(t,G),document.head.appendChild(t)));return y.return(EcG.promise)})};
RqJ=function(){function X(){N8Y=!0;m3h.resolve()}
if(!m3h)if(m3h=new _.Kp,P1l())X();else{var t=document.createElement("link");t.id="player-css";t.addEventListener("load",X);var G=_.Pp(_.Md("PLAYER_CSS_URL"));_.dq(t,G,"stylesheet");document.head.appendChild(t)}return m3h.promise};
iQJ=function(){return rxJ()&&P1l()?Promise.resolve([]):Promise.all([U3_(),RqJ()])};
Ldl=function(X,t,G){var y={args:{}};X&&(y.args.raw_player_response=X);t&&(y.args.raw_watch_next_response=t);G&&(y.args=Object.assign({},y.args,G));return y};
x3V=function(X,t,G){var y=!1;y=y===void 0?!0:y;X=typeof X==="string"?_.Se(document,X):X;var w=vcE+"_"+_.GB(X),z=at_[w];if(z&&y)return ltV(t,G)?z.api.loadVideoByPlayerVars(t.args||null):z.loadNewVideoConfig(t),z.api;z=new hS(X,w,t,G,void 0);at_[w]=z;z.addOnDisposeCallback(function(){delete at_[z.getId()]});
return z.api};
ltV=function(X,t){return t&&t.serializedExperimentFlags?t.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):X&&X.args&&X.args.fflags?X.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
ftY=function(){var X=new _.Kp;X.resolved=!1;var t=X.resolve;X.resolve=function(G){X.resolved=!0;t(G)};
return X};
XTJ=function(X){var t={};MK0().install((t.document_disposed={callback:X},t))};
ZR=function(X,t){if(!X&&Math.random()<=_.At("kevlar_unified_player_logging_threshold")){X=Error("uh`"+(t?t:"Unspecified error"));if(_.A("kevlar_unified_player_throw_errors"))throw X;_.Mj(X)}};
_.$a6=function(){var X=_.GA("ytDebugData.callbacks");X||(X={},_.dl("ytDebugData.callbacks",X));return X};
G00=function(X,t){var G=_.$a6();if(_.A("web_dd_iu")||tXs.includes(X))G[X]=t};
y7A=function(){return _.n(function(X){return X.return({isLeader:_.WYv(_.dV().getState()),c:_.Md("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Md("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
wTl=function(){var X;_.n(function(t){if(t.nextAddress==1)return G00("APP_STATE",y7A),t.yield(_.gw().resolve(_.q7),2);X=t.yieldResult;G00("PI",function(){return _.n(function(G){return G.return(X.getVideoStats())})});
_.W$(t)})};
zxE=function(X){var t=_.kt(_.wk(_.tA.location.href));X=_.kt(_.wk(X));return _.A("kevlar_clear_non_displayable_url_params")?t==C5(X):C5(t)==C5(X)};
C5=function(X){var t=_.H3V(X);X=X.slice(0);var G=["frags"];_.A("kevlar_hide_pp_url_param")&&G.push("pp");_.A("kevlar_hide_time_continue_url_param")&&G.push("time_continue");G=_.J(G);for(var y=G.next();!y.done;y=G.next())y=y.value,X=_.eQ(_.kt(X),y);return _.kt(X)+(t?"#"+t:"")};
K5=function(X,t){t=Number(t)*1E3;var G=Math.round((0,_.gl)()),y=G.toString();X={innertubeResponse:X,serverDateTimestampMs:y,lastModifiedTimestampMs:y,expireTimestampMs:(G+t).toString()};if(t=_.Md("INNERTUBE_CONTEXT_CLIENT_NAME"))X.clientName=t;return X};
J7w=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++o8l};
_.BF_=function(){var X=_.a4(),t=_.lw();t&&X&&_.Jg(t,[X],!0)};
VXJ=function(X){return X&&n8J.some(function(t){return X.includes(t)})};
g8s=function(X){var t=_.Y(X,_.zj);if(!t)return!1;var G=t.url,y=t.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!G)return _.xA(Error("zh")),!1;if(t.target==="TARGET_NEW_WINDOW"){var w={};_.A("resolve_url_parent_tracking_params")&&(!_.bF(G)||kx(window.location.href,G))&&(w={endpoint:X,itct:X.clickTrackingParams});lzV(w);X=null;try{if(y)return X=_.yD_(G,"_blank",w,void 0,y),b3G(_.gw().resolve(k00),X,G),!0}catch(T){_.xA(T)}_.dk(G,w);t={target:"_blank",noopener:_.A("set_window_noopener_ks")&&
!t.allowOpener};X=window;y=mN(G)?G:_.l_(typeof G.href!="undefined"?G.href:String(G));w=self.crossOriginIsolated!==void 0;var z="strict-origin-when-cross-origin";window.Request&&(z=(new Request("/")).referrerPolicy);var B=t.noreferrer;if(w&&B&&z==="unsafe-url")throw Error("qe");z=B&&!w;B=t.target||G.target;var V=[],b=[],e=!1;for(F in t){var g=t[F];switch(F){case "width":case "height":case "top":case "left":V.push(F+"="+g);break;case "target":break;case "noopener":case "noreferrer":g?b.push(F):(e=!0,
b.push(F+"=false"));break;case "attributionsrc":V.push(F+(g?"="+g:""));break;default:V.push(F+"="+(g?1:0))}}var F=B!==void 0&&!["_blank","_self","_top","_parent",""].includes(B);F=qw()&&F;da_&&w&&V.length===0&&b.length>0&&!F&&!e?(b.length===2&&(b=["noreferrer"]),_.zc(X,y,B,b[0]),X=exl()):(F=V.join(","),_.IV()&&X.navigator&&X.navigator.standalone&&B&&B!="_self"?(F=_.OF("A"),XM(F,y),F.target=B,z&&(F.rel="noreferrer"),((t=t.attributionsrc)||t==="")&&F.setAttribute("attributionsrc",t),t=document.createEvent("MouseEvent"),
t.initMouseEvent("click",!0,!0,X,1),F.dispatchEvent(t),X=exl()):z?(X=_.zc(X,"",B,F),t=_.Rj(y),X&&(X.opener=null,t===""&&(t="javascript:''"),t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+OW(t)+'">',t=tI(t),(y=X.document)&&y.write&&(y.write(yb(t)),y.close()))):((X=_.zc(X,y,B,F))&&t.noopener&&(X.opener=null),X&&t.noreferrer&&(X.opener=null)));b3G(_.gw().resolve(k00),X,G);return!0}t=_.qJ(G);t=VXJ(t)||G==="https://studio.youtube.com/";y=!(!_.bF(G)||kx(window.location.href,
G));F=G.indexOf("disable_polymer=1")>=0;if(y||F||t)HW(G),Lq(),_.ok(G,void 0,void 0,window.top,jpA);else return _.Mj(new _.NJ("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",X)),!1;return!0};
_.A7l=function(X,t){t=t===void 0?0:t;if(!(_.Y(X,F1h)||_.Y(X,TF6)||_.Y(X,_.zj)&&_.Y(X,_.zj).url))return!1;var G,y=(G=_.Y(X,_.zj))==null?void 0:G.url;G=y?{externalLinkData:{url:y}}:null;return _.Pj().clickCommand(X,G,t)};
YkE=function(X,t){return _.Kg(X.entities,"subscriptionStateEntity",t)};
sps=function(X,t){return _.Kg(X.entities,"subscriptionNotificationStateEntity",t)};
Da6=function(X,t){return _.Kg(X.entities,"upcomingEventReminderStateEntity",t)};
Sk_=function(X,t){return _.Kg(X.entities,"engagementToolbarSurfaceEntityPayload",t)};
hxh=function(X,t){return _.Kg(X.entities,"triStateButtonStateEntityPayload",t)};
Z3A=function(X,t){return _.Kg(X.entities,"commerceCartCheckoutButtonEntity",t)};
_.qk6=function(X,t){return _.Kg(X.entities,"playlistLoopStateEntity",t)};
C36=function(X,t){return _.Kg(X.entities,"commandEntity",t)};
O3G=function(X,t,G,y,w){w=w===void 0?{}:w;return function(z){var B,V;var b=((B=X.loggingDirectives)==null?0:(V=B.clientVeSpec)==null?0:V.uiType)?_.ai(X.loggingDirectives.clientVeSpec.uiType):void 0;w.clickedVisualElement||(w.clickedVisualElement=b);b=K1s(X,t);G(b,z);b=_.J(b);for(B=b.next();!B.done;B=b.next()){B=B.value;V=y;var e=z,g=w;g.form?g.form.event=e:g.form={element:V,event:e};vl(B,g)}}};
K1s=function(X,t){var G=[];t?(X.toggledCommand&&G.push(X.toggledCommand),X.toggledServiceEndpoint&&G.push(X.toggledServiceEndpoint)):(X.defaultCommand&&G.push(X.defaultCommand),X.defaultServiceEndpoint&&G.push(X.defaultServiceEndpoint),X.defaultNavigationEndpoint&&G.push(X.defaultNavigationEndpoint));return G};
ufG=function(X,t){var G=X.toggledStyle||X.style,y;switch((y=t?G:X.style)==null?void 0:y.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"}}};
_.uX=function(){return _.n(function(X){return X.nextAddress==1?X.yield(_.gw().resolve(_.q7),2):X.return(_.gw().resolve(Qps)())})};
_.QE=function(){return _.gw().resolve(Qps)()};
_.Is=function(){return v0(function(){return{lottieEl:void 0}})};
IVh=function(X,t){return X.startsWith(t.uniqueId)};
W1A=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(_.uX(),2);t=y.yieldResult;if((G=t)==null||!G.addEventListener)return Wk(),y.return();t.addEventListener("onCueRangeEnter",X);_.W$(y)})};
c76=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(_.uX(),2);t=y.yieldResult;if((G=t)==null||!G.removeEventListener)return Wk(),y.return();t.removeEventListener("onCueRangeEnter",X);_.W$(y)})};
pTv=function(X){var t,G,y,w,z;_.n(function(B){if(B.nextAddress==1)return B.yield(_.uX(),2);t=B.yieldResult;if((G=t)==null||!G.addCueRange)return Wk(),B.return();y=_.J(X.timings);for(w=y.next();!w.done;w=y.next())z=w.value,t.addCueRange(X.uniqueId+"-"+z,z/1E3,(z+100)/1E3);_.W$(B)})};
r7v=function(X){var t,G,y,w,z;_.n(function(B){if(B.nextAddress==1)return B.yield(_.uX(),2);t=B.yieldResult;if((G=t)==null||!G.removeCueRange)return Wk(),B.return();y=_.J(X.timings);for(w=y.next();!w.done;w=y.next())z=w.value,t.removeCueRange(X.uniqueId+"-"+z);_.W$(B)})};
NFs=function(){var X,t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(_.uX(),2);X=y.yieldResult;if((t=X)==null||!t.getPlayerState)return Wk(),y.return();G=X.getPlayerState();return y.return(G===2)})};
Wk=function(){_.Mj(new _.NJ("Smartimation player does not exist or is corrupted"))};
P3f=function(){try{var X;return(X=window.CSS)!=null&&X.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(t){return _.Mj(new _.NJ("Smartimation CSS.supports threw an error")),!1}};
v8Y=function(X,t,G,y,w){var z=X.playlistId?E8V:Uav;t=t();G=G();w=!!X.videoId&&w()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.NQ(t))return mas({data:X,actionType:z,disabled:w},G);if(X.videoId&&y())return Rx0({data:X,actionType:z,disabled:w});switch(t){case "TRANSFER_STATE_UNKNOWN":return Rx0({data:X,actionType:z,disabled:w});case "TRANSFER_STATE_FAILED":return X.videoId?i3Y({data:X,actionType:z,disabled:w}):L1V({data:X,actionType:z,disabled:w});case "TRANSFER_STATE_COMPLETE":return L1V({data:X,
actionType:z,disabled:w});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return mas({data:X,actionType:z,disabled:w},G);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return X.videoId?i3Y({data:X,actionType:z,disabled:w}):Rx0({data:X,actionType:z,disabled:w});default:return Rx0({data:X,actionType:z,disabled:w})}};
aVG=function(X,t){var G=X.onTapCommand,y=_.wr(G);if(X.videoId&&_.Y(y,_.ck))return _.Y(y,_.ck).action=t,G;X.playlistId&&_.Y(y,_.p5)&&(_.Y(y,_.p5).action=t);return G};
Rx0=function(X){var t=X.data;var G=X.actionType;X=X.disabled;return{text:lVh,iconType:"OFFLINE_DOWNLOAD",onTap:aVG(t,G.ACTION_ADD),disabled:X}};
mas=function(X,t){var G=X.data;var y=X.actionType;X=X.disabled;var w="OFFLINE_DOWNLOAD";t>=0&&t<=.1?w="OFFLINE_DOWNLOADING_ZERO":t>.1&&t<=.3?w="OFFLINE_DOWNLOADING_TWENTY":t>.3&&t<=.5?w="OFFLINE_DOWNLOADING_FORTY":t>.5&&t<=.7?w="OFFLINE_DOWNLOADING_SIXTY":t>.7&&t<1?w="OFFLINE_DOWNLOADING_EIGHTY":t===1&&(w="OFFLINE_PIN");return{text:xaA,iconType:w,onTap:aVG(G,y.ACTION_REMOVE_WITH_PROMPT),disabled:X}};
L1V=function(X){var t=X.data;var G=X.actionType;X=X.disabled;return{text:fVG,iconType:"OFFLINE_PIN",onTap:aVG(t,G.ACTION_REMOVE_WITH_PROMPT),disabled:X}};
i3Y=function(X){var t=X.data;var G=X.actionType;X=X.disabled;return{text:MXE,iconType:"OFFLINE_DOWNLOAD",onTap:aVG(t,G.ACTION_RETRY),disabled:X}};
GgG=function(X){var t=XoV;$Xf.push(X);tZG||(t(function(){for(var G=_.J($Xf),y=G.next();!y.done;y=G.next())y=y.value,y();$Xf.length=0;tZG=!1}),tZG=!0)};
XoV=function(X){Promise.resolve().then(X)};
r5=function(X){X=_.J(vWf(X));var t=X.next().value,G=X.next().value,y=!1;_.LY(function(){return function(){y=!0}});
return[t,function(w){GgG(function(){y&&!_.A("cow_prevent_state_setter_after_cleanup_killswitch")||G(w)})}]};
_.Pk=function(X,t){var G=U6V();return _.qt(function(){G();return iil(X,[_.R5(t)||""])},{debugName:"LUZslf"},"qYSKAc")};
y1v=function(X){var t=_.Pk(_.$1,function(){return X().videoId}),G=_.Pk(_.tp,function(){return X().playlistId});
return function(){return X().videoId?t:X().playlistId?G:_.J(_.sm("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
wo6=function(X){var t=_.Pk(G8,function(){return X().videoId}),G=_.Pk(_.IBw,function(){return X().playlistId});
return function(){return X().videoId?t:X().playlistId?G:_.J(_.sm(0,void 0,"K4tgOc")).next().value}};
zds=function(X){var t=_.Pk(_.mPJ,function(){return X().videoId});
return function(){return X().videoId?t:_.J(_.sm(!1,void 0,"Oaxwcf")).next().value}};
HKA=function(X){var t=_.Pk(pFA,function(){return X().videoId});
return function(){return X().videoId?t:_.J(_.sm("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
oR_=function(){return{}};
J1Y=function(){var X,t;return(t=(X=_.gw().resolve(_.jH(_.kI)))==null?void 0:X())!=null?t:!1};
nR_=function(X,t){X=X===void 0?B4s:X;switch(t.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},X,{isOpen:t.payload});default:return X}};
bKY=function(X,t){X=X===void 0?VZA:X;switch(t.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},X,{isAllowed:t.payload});default:return X}};
dXG=function(X,t){X=X===void 0?kgV:X;switch(t.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},X,{errorMessage:t.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},X,{title:t.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},X,{privacy:t.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},X,{isDisabled:t.payload});default:return X}};
jGY=function(X,t){X=X===void 0?edE:X;switch(t.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},X,{isOpen:t.payload});default:return X}};
FgV=function(X,t){X=X===void 0?gRV:X;switch(t.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},X,{isFullscreen:t.payload});case "SET_NAVIGATION_BUTTON":var G=t.payload.targetId,y=Object.assign({},X.navigationButtons);y[G]=t.payload.button;return Object.assign({},X,{navigationButtons:y});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},X,{topPanelId:t.payload});case "SET_SECONDARY_HEADER":return G=t.payload.panelId,y=Object.assign({},X.secondaryHeader),y[G]=t.payload.secondaryHeader,
Object.assign({},X,{secondaryHeader:y});default:return X}};
sGA=function(){return Os(Object.assign({},{entities:iBE,voiceSearch:CjJ,engagementPanel:FgV,bottomSheet:nR_,cinematicSetting:bKY,shorts:pN_,drawerLayout:jGY,createPlaylist:dXG,locationCollection:T4J,reportChannel:A1f,reportForm:YjY},d4v))};
DXJ=function(X,t){_.vz.addLowPriorityJob(function(){var G,y,w;return _.n(function(z){switch(z.nextAddress){case 1:return _.CL(z,2),z.yield(ARG(),4);case 4:return z.yield(fetch(X),5);case 5:return G=z.yieldResult,z.yield(G.json(),6);case 6:y=z.yieldResult;Wl.set(X,y);requestAnimationFrame(function(){t(y)});
_.zx(z,0);break;case 2:w=_.IY(z),_.Mj(w),_.W$(z)}})})};
Sjs=function(X){var t={animationConfig:{},listeners:{}},G=function(){X(!0)};
t.listeners.data_failed=G;t.listeners.error=G;t.listeners.data_ready=function(){X(!1)};
return t};
qjv=function(X){var t=X.model;var G=X.subscribed;var y=X.isOverlay;var w=X.element;var z=X.commandController;var B=X.notificationState;if(G){var V,b;var e=(t==null?void 0:(V=t.buttonStyle)==null?void 0:V.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:t==null?void 0:(b=t.unsubscribeButtonContent)==null?void 0:b.buttonText}else{var g;e=t==null?void 0:(g=t.subscribeButtonContent)==null?void 0:g.buttonText}a:{var F;switch(t==null?void 0:(F=t.buttonStyle)==
null?void 0:F.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":V="S";break a;default:V="M"}}a:if(y)y="overlay";else switch(t.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":y="overlay";break a;default:y="mono"}a:if(G)var T="tonal";else switch((T=t.buttonStyle)==
null?void 0:T.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":T="tonal";break a;default:T="filled"}return{style:y,type:T,state:t.disableSubscribeButton?"disabled":"active",size:V,focused:X.focused,toggled:G,accessibilityLabel:hdf(t,G,B),buttonText:e,iconPosition:t.disableNotificationBell?"none":"leading-trailing",onTap:ZKY(t,G,w,z),disableTextEllipsis:!!X.disableTextEllipsis}};
ZKY=function(X,t,G,y){return function(w){if(t){var z;var B=X.disableNotificationBell?_.wr(X==null?void 0:(z=X.unsubscribeButtonContent)==null?void 0:z.onTapCommand):_.wr(X==null?void 0:X.onShowSubscriptionOptions)}else{var V;B=_.wr(X==null?void 0:(V=X.subscribeButtonContent)==null?void 0:V.onTapCommand)}B&&vl(B,{form:{element:G==null?void 0:G.value},commandController:y});w.stopPropagation()}};
hdf=function(X,t,G){if(t){if(X==null?0:X.disableNotificationBell){var y;return X==null?void 0:(y=X.unsubscribeButtonContent)==null?void 0:y.accessibilityText}switch(G){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var w;return X==null?void 0:(w=X.bellAccessibilityData)==null?void 0:w.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var z;return X==null?void 0:(z=X.bellAccessibilityData)==null?void 0:z.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var B;return X==null?void 0:(B=
X.bellAccessibilityData)==null?void 0:B.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var V;return X==null?void 0:(V=X.bellAccessibilityData)==null?void 0:V.disabledLabel;default:var b;return X==null?void 0:(b=X.unsubscribeButtonContent)==null?void 0:b.accessibilityText}}else{var e;return X==null?void 0:(e=X.subscribeButtonContent)==null?void 0:e.accessibilityText}};
CHv=function(X){if(X){switch(X){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":X="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":X="NOTIFICATIONS_OFF";break;default:X="NOTIFICATIONS_NONE"}return X}};
Kgl=function(X,t,G){G.subscribed!==t&&((G=G.key)&&_.dX(_.EW("subscriptionStateEntity",G,{key:G,subscribed:t})),X.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:t})),t||_.sl(X,"yt-unsubscribe-action"))};
u__=function(X){X=_.Y(_.wr(X),_.UW);var t,G,y,w;return(w=_.Y(X==null?void 0:(t=X.panelLoadingStrategy)==null?void 0:(G=t.inlineContent)==null?void 0:(y=G.sheetViewModel)==null?void 0:y.content,OK_))==null?void 0:w.listItems};
QGY=function(X,t){if(X.onShowSubscriptionOptions&&t&&(X=u__(X.onShowSubscriptionOptions),X!=null&&X.length)){var G=CHv(t);X.forEach(function(y){y=_.Y(y,_.mA);var w,z,B,V,b=y==null?void 0:(w=y.leadingImage)==null?void 0:(z=w.sources)==null?void 0:(B=z[0])==null?void 0:(V=B.clientResource)==null?void 0:V.imageName;y&&b&&(y.isSelected=b===G)})}};
ISJ=function(X,t,G,y){t&&G?X.style.width=G+"px":!t&&y&&(X.style.width=y+"px")};
WgJ=function(X,t,G){var y;(y=X.lottieEl)==null||y.goToAndPlay(0);var w;(w=t.lottieEl)==null||w.goToAndPlay(0);_.Rs(_.vz,function(){var z;(z=G.lottieEl)==null||z.goToAndPlay(0)},300)};
iX=function(){return _.gw().resolve(_.jH(c1V))||{}};
pow=function(X){return typeof X==="function"};
_.L5=function(X){Object.keys(X);var t=function(G,y){var w=t.mapping||X;if(!G)return _.k(_.gn,null);if(Array.isArray(G)&&(G=r16(w,t,G),Array.isArray(G))){if(!G.length)return _.k(_.gn,null);if(G.length>1){for(var z=!1,B=!1,V=[],b={},e=0;e<G.length;b={data$jscomp$1895:void 0},e++)if(b.data$jscomp$1895=G[e],b.data$jscomp$1895){var g=N4v(b.data$jscomp$1895,w),F=g.mappingEntry;g=g.rendererName;F&&g&&(F&&(!pow(F)&&PH0(F)&&(B=!0),!pow(F)&&F.asyncId||(z=!0)),V.push(ERE(b.data$jscomp$1895,F,g,t,y)))}return B&&
!z?_.k(_.gn,null,UXY()):_.k(_.gn,null,V)}G=G[0]}if(!G)return _.k(_.gn,null);G=r16(w,t,[G])[0];if(!G)return _.k(_.gn,null);z=N4v(G,w);w=z.mappingEntry;z=z.rendererName;return w&&z?_.k(_.gn,null,ERE(G,w,z,t,y)):_.k(_.gn,null)};
t.mapping=X;return t};
_.mXV=function(X){var t=void 0,G;for(G in X)if(X.hasOwnProperty(G)){t=G;break}return t};
r16=function(X,t,G){var y,w=(y=iX().preProcessOptions)==null?void 0:y.idomOptions;if(!w)return G;iX();return w.preProcessPropsIdom(X,G,t.triggerRerender)};
N4v=function(X,t){return(X=_.mXV(X))?{mappingEntry:t[X],rendererName:X}:{mappingEntry:void 0,rendererName:void 0}};
ERE=function(X,t,G,y,w){if(!t)return _.k(_.gn,null);var z={};w&&w[G]&&(z=Object.assign({},w[G]));X[G]!==void 0&&(z.data=X[G]);if(pow(t))return t.debugName||(t.debugName=G),_.k(t,z);t.asyncId&&(y.pendingIdsMap=y.pendingIdsMap||{},y.pendingIdsMap[G]=t.asyncId);return t.templateFn?t.templateFn(z):PH0(t)?UXY():_.k(_.gn,null)};
PH0=function(X){var t;return(t=X.showPlaceholder)!=null?t:iX().defaultShowPlaceholder};
UXY=function(){var X=iX().placeholder;return X()};
RdV=function(X){X=_.Y(X,_.vk);return(X==null?void 0:X.iconName)&&!(X==null?0:X.title)};
vRh=function(X,t,G){var y;return _.k(_.gn,null,X==null?void 0:(y=X.actions)==null?void 0:y.map(function(w){return _.k("div",{class:function(){var z={"yt-flexible-actions-view-model-wiz__action":!0};z["yt-flexible-actions-view-model-wiz__action--row-action"]=t;z["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(RdV(w))var B=!0;else if(B=_.Y(w,_.as),(B==null?0:B.isToggled)&&RdV(B==null?void 0:B.toggledButtonViewModel)||(B==null||!B.isToggled)&&RdV(B==null?void 0:B.defaultButtonViewModel))B=
!0;else{var V;B=((V=_.Y(w,iKs))==null?0:V.playlistId)?!0:!1}z=(z["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=B,z["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=G,z);return _.pX(z)}},Lgh([w],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!t}}))}))};
aSG=function(X){var t=X.layout===1,G,y=((G=X.data)==null?void 0:G.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";G={};y=(G["yt-flexible-actions-view-model-wiz"]=!0,G["yt-flexible-actions-view-model-wiz--inline"]=!t,G["yt-flexible-actions-view-model-wiz--scrollable"]=y,G);var w,z;return _.k("yt-flexible-actions-view-model",{class:_.pX(X.className,y)},(w=X.data)==null?void 0:(z=w.actionsRows)==null?void 0:z.map(function(B){if(t){var V;return _.k("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
vRh(B,t,!((V=X.data)==null||!V.respectActionIntrinsicWidth)))}return vRh(B,t,!1)}))};
lSA=function(X,t){t=t===void 0?{shouldPersist:!0}:t;return{useUpdatableData:function(G,y){var w=[],z=_.J(_.Ed(function(){var e=G();if(y!=null&&y.length&&w){var g=w.length>0;for(var F=!1,T=0;T<y.length;T++){var D=y[T]();g&&D!==w[T]&&(F=!0);w[T]=D}g=F}else g=!1;if(g)_.lX.remove(b());else if(g=_.lX.get(b()))return g;return e})),B=z.next().value,V=z.next().value,b=_.qt(function(){return X(G())},void 0,"VFraLb");
_.Em(function(){if(b()!=null){xW.set(b(),[B,V,!1]);var e=b();_.Um(function(){xW.delete(e)})}},"Fdafud");
return[B,function(e){V(e);t.shouldPersist&&_.lX.set(b(),e)}]},
getData:function(G){var y;return(y=xW.get(X(G)))==null?void 0:y[0]()},
updateData:function(G,y){G=X(G);var w=xW.get(G);if(!w)return!1;var z=_.J(w);w=z.next().value;z=z.next().value;y=y(w());z(y);t.shouldPersist&&_.lX.set(G,y);return!0},
useUpdatableDataIdom:function(G,y){var w=X(G),z=_.lX.get(w),B=_.J(r5(z!=null?z:G)),V=B.next().value,b=B.next().value,e=a2(z!=null?z:G);_.iv(function(){if(w!=null)return xW.set(w,[function(){return e.value},
function(g){b(g);e.value=g},
xW.has(w)]),_.vz.addJob(function(){_.f5(_.vz,function(){var g=xW.get(w);g&&(g[2]=!1)},0)},8),function(){var g;
((g=xW.get(w))==null?0:g[2])||xW.delete(w)}},[w]);
_.iv(function(){V!==G&&(b(G),e.value=G)},y?[].concat(_.RY(y),[w]):[w]);
return[V,b]}}};
xXV=function(X){var t=_.J(_.sm(!0,void 0,"bKtO6d")),G=t.next().value;t.next();return function(){var y=KY(X.children());return _.k(_.d,{cond:G,then:function(){return y},
else:X.fallback})}()};
_.M7=function(X){var t=fSf(X),G=t.data,y=t.mapping,w=t.wrapper;t=t.pendingFallback;var z=function(){return MZf(_.R5(G))},B=function(){var V=z(),b=[];
V=_.J(V);for(var e=V.next();!e.done;e=V.next()){var g=void 0;e=e.value;var F=void 0;for(g in e)if(!(!e).hasOwnProperty(g)){F=g;break}(g=F)&&b.push(g)}return b};
return X.data?_.k(xXV,{fallback:t},function(){return _.k(_.pY,{each:B},function(V,b){var e=w?function(F){return w(function(){return y[V](F,b)},g,b)}:function(F){return y[V](F,b)};
e.debugName||(e.debugName=String(V));if(!y[String(V)])return document.createComment("");e.componentType!==Wm&&XRE(String(V));var g=$nV(z,V,b);return _.k(e,{data:g})})}):_.k(_.gn,null)};
fSf=function(X){var t=X.targetId||tWh(X.children);if(!X.data||!t||_.A("mweb_new_replaceables_killswitch"))return Object.assign({},X,{mapping:X.children,wrapper:void 0});var G="stamper-"+G3V++,y=function(){var V;return(V=typeof X.targetId==="function"?X.targetId(G):X.targetId)!=null?V:G};
t=_.J(yuA(function(){var V=MZf(X.data());V.targetId=y;return V})).next().value;
var w=Object.assign({},iX().replaceableMapping,X.children);if(X.replacementWrapper){var z=w.notificationTextRenderer,B=w.notificationMultiActionRenderer;z&&(w.notificationTextRenderer=function(V,b){return X.replacementWrapper(z({data:V.data},b))});
B&&(w.notificationMultiActionRenderer=function(V,b){return X.replacementWrapper(B({data:V.data},b))})}return Object.assign({},X,{data:t,
mapping:w,wrapper:function(V,b,e){return bxE({targetId:y,stamperIndex:e},V)}})};
$nV=function(X,t,G){var y;return _.qt(function(){var w=X()[G()];if(w)y=w[t];else return _.Mj(new _.NJ("Stamper failed to find "+String(t)+" at index "+G()+" of data array of length "+(X().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),y;return w[t]},void 0,"wgRPHd")};
tWh=function(X){X=_.J(Object.keys(X));for(var t=X.next();!t.done;t=X.next())if(t=t.value,wRG.includes(t)||z3_.includes(t)||Hn6.includes(t))return!0;return!1};
MZf=function(X){return X?Array.isArray(X)?X:[X]:[]};
XRE=function(X){if(_.A("web_enable_renderer_logger")){var t;(t=_.gw().resolve(_.jH(oLV)))!=null&&t.loggingEnabled&&!t.ids.has(X)&&t.ids.add(X)}};
Jul=function(X){return!(X==null||!X.iconName||(X==null?0:X.title))};
Bm0=function(X,t,G,y){G&&_.vz.cancelJob(G);G=_.vz.addLowPriorityJob(function(){y(void 0)},5E3);
y(G);t&&X!==(t.likeStatus==="LIKE")&&t.key&&_.dX(_.EW("likeStatusEntity",t.key,{key:t.key,likeStatus:X?"LIKE":"INDIFFERENT",hadUserInteraction:X}))};
_.nLA=function(X,t){return _.Kg(X.entities,"accountLinkStatusEntity",t)};
VWl=function(X,t){return _.Kg(X.entities,"hatsSurveyEntity",t)};
bnJ=function(X,t){return _.Kg(X.entities,"hatsSurveyStateEntity",t)};
k36=function(X,t){return _.Kg(X.entities,"quantityIncrementerEntity",t)};
dnE=function(X){switch(X){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 7;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 8;case "BADGE_STYLE_TYPE_FEATURED":return 4;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 18;default:return 0}};
e36=function(X){switch(X){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}};
jWE=function(X){switch(X){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.Fj0=function(X){var t=_.At("web_generic_client_event_wait_period ",0);t||(t=3E5);var G=gLY.get(X);!_.A("enable_web_client_experiment_event_timeout_killswitch")&&G&&(0,_.gl)()-G<t||(gLY.set(X,(0,_.gl)()),_.a7("genericClientExperimentEvent",{eventType:X}))};
Tm6=function(X){switch(X){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""}};
AuE=function(X){if(!X)return"";var t,G=(t=_.gw().resolve(_.jH(_.kI)))==null?void 0:t(),y;if(!G&&((y=X.vibrantColorPalette)==null?0:y.iconInactiveColor))return wt(X.vibrantColorPalette.iconInactiveColor,"1");var w;return G&&((w=X.darkColorPalette)==null?0:w.iconInactiveColor)?wt(X.darkColorPalette.iconInactiveColor,"1"):X.color?wt(X.color,"1"):X.sampledThumbnailColor?(X=X.sampledThumbnailColor,"rgba("+X.red+","+X.green+","+X.blue+");"):""};
_.X7=function(X,t){if(!X.includes("DATE_PLACEHOLDER"))return X;var G=new Date(0);G.setUTCSeconds(t);return X.replace("DATE_PLACEHOLDER",YOl(G))};
sWV=function(X,t,G){return function(y){var w=X.command;w&&(vl(w,{form:{element:G}}),t([w],y))}};
SOJ=function(X,t,G,y,w){return function(z){var B=DnG(X,t);B&&vl(B,{form:{element:G},commandController:y});w&&z.stopPropagation()}};
DnG=function(X,t){if(X.signInEndpoint&&!_.A("web_subscribe_sign_in_endpoint_killswitch"))return X.signInEndpoint;if(t){if(X.serviceEndpoints)return X.serviceEndpoints[1];if(X.onUnsubscribeEndpoints)return X.onUnsubscribeEndpoints[0]}else{if(X.serviceEndpoints)return X.serviceEndpoints[0];if(X.onSubscribeEndpoints)return X.onSubscribeEndpoints[0]}};
h30=function(X,t){var G,y,w,z;t=t&&((G=X.unsubscribeAccessibility)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label)||((w=X.subscribeAccessibility)==null?void 0:(z=w.accessibilityData)==null?void 0:z.label);return X.longSubscriberCountText?[t,_.bu(X.longSubscriberCountText)].filter(function(B){return B}).join(" "):t};
$y=function(X,t){return t||(X==null?0:X.isChannelDelegate)?"disabled":"active"};
Znw=function(X,t){var G;switch((G=X.style)==null?void 0:G.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:$y(X)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:$y(X)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:$y(X,!0)};case "OVERLAY":return t?{style:"overlay",type:"tonal",state:$y(X)}:{style:"overlay",type:"filled",state:$y(X)};default:return t?{style:"mono",type:"tonal",state:$y(X)}:{style:"mono",type:"filled",state:$y(X)}}};
qOw=function(X){switch(X){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
Cb_=function(X){switch(X){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Kjw=function(X,t){var G=X.map(function(y){return y.toString()});
return _.NI(function(y){if(G.includes(y.key)){t&&y.preventDefault();var w;(w=y.currentTarget)==null||w.click()}})};
_.On_=function(){return Kjw(["Enter"])};
_.udY=function(){return Kjw(["Enter"," "],!0)};
_.t4=function(X){if(X.composedPath)return X.composedPath();if(!X.__composedPath){for(var t=[],G=X.target;G;)t.push(G),G=G.parentNode;t.push(window);X.__composedPath=t}return X.__composedPath};
_.GF=function(X,t,G){X=_.J(X);for(var y=X.next();!y.done;y=X.next()){y=y.value;if(y===t)break;for(var w=_.J(G),z=w.next();!z.done;z=w.next())if(z=z.value,y.tagName===z||y.role==="button"&&z==="BUTTON")return!0}return!1};
IiV=function(X,t){var G,y=(G=t.observer)!=null?G:_.gw().resolve(ji);if(X){G=QWG(X);var w=[];t.showOption&&w.push(y.observe(X,function(){t.visibilityCallback(!0,X)},t.showOption));
t.hideOption&&w.push(y.observe(X,function(){t.visibilityCallback(!1,X)},t.hideOption));
t.prescanOption&&t.prescanCallback&&w.push(y.observe(X,function(){t.prescanCallback()},t.prescanOption));
var z;G.visibilityMonitorKeys=((z=G.visibilityMonitorKeys)!=null?z:[]).concat(w)}};
QWG=function(X){var t;return(t=X.polymerController)!=null?t:X};
_.w2=function(X){return!!_.yj(X)};
_.zF=function(X,t,G,y,w){return function(z){var B=_.V5v();_.Em(function(){if(z){_.WjY(z,X(),w);var V=_.cul(z,X(),t,G,y,B);_.Um(V)}},"nr377e")}};
_.WjY=function(X,t,G){var y=pR_(t),w=ruw(t);t=y&&Nm_;var z=w&&Pbs;(y||w)&&IiV(X,{visibilityCallback:function(B){var V=_.gw().resolve(_.F3);B&&y?V.resolveCommand(y,{form:{element:G?X:void 0},disableClickTracking:!0}):!B&&w&&V.resolveCommand(w,{form:{element:G?X:void 0},disableClickTracking:!0})},
showOption:t,hideOption:z})};
_.cul=function(X,t,G,y,w,z){var B=new Map;if(t=_.yj(t)){var V;X=(y==null?void 0:(V=y.onTap)==null?void 0:V.value)||X;G=ELv(t,X,G==null?void 0:G.onTap,w,z);X.addEventListener("click",G);B.set("click",G)}return function(){for(var b=_.J(B),e=b.next();!e.done;e=b.next()){var g=_.J(e.value);e=g.next().value;g=g.next().value;X.removeEventListener(e,g)}}};
_.yj=function(X){var t;return(X=(t=_.Y(X,Unv))==null?void 0:t.onTap)&&_.wr(X)};
pR_=function(X){var t;return(X=(t=_.Y(X,Unv))==null?void 0:t.onVisible)&&_.wr(X)};
ruw=function(X){var t;return(X=(t=_.Y(X,Unv))==null?void 0:t.onHidden)&&_.wr(X)};
ELv=function(X,t,G,y,w){var z=function(V){_.gw().resolve(_.F3).resolveCommand(X,V)},B=function(V){y&&_.GF(_.t4(V),t,y)||z(V.target?{form:{element:V.target,
sourceData:X,mutationContext:w}}:void 0)};
G&&(B=function(V){G(V,z)});
return B};
mnv=function(X){switch(X){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}};
R3V=function(X){var t=X.numAvatarsInCluster;switch(X.clusterSize){case "small":return t===2?22:18;case "40":return t===2?24:22;default:return t===2?24:20}};
inh=function(X,t){return function(G){var y=Object.keys(t);_.Em(function(){if(X!=null&&X()){for(var w=_.J(y),z=w.next();!z.done;z=w.next())z=z.value,G.addEventListener(z,t[z]);_.Um(function(){for(var B=_.J(y),V=B.next();!V.done;V=B.next())V=V.value,G.removeEventListener(V,t[V])})}},"bXZGfe")}};
Ljs=function(X){switch(R3V(X)){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""}};
vLE=function(X){switch(X){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""}};
aiG=function(X){switch(R3V(X)){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""}};
liY=function(X){switch(X){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""}};
xn0=function(X){switch(X){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}};
fil=function(X){return X==="medium"||X==="48"||X==="large"||X==="extra-large"||X==="extra-extra-large"||X==="giant"};
MWh=function(X){return!!((X==null?0:X.includes(3))||(X==null?0:X.includes(5)))};
$bY=function(X){return{size:XUE(X.data.avatarImageSize),onTap:X.onTap,decorations:X.decorations||[],badgeText:X.badgeText,accessibilityText:X.accessibilityText,avatarButtonCustomClassName:X.avatarButtonCustomClassName,clusterLayoutConfig:X.clusterLayoutConfig}};
XUE=function(X){switch(X){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"}};
tAV=function(X){switch(X){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}};
GDV=function(X){switch(X){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""}};
y9_=function(X){var t=X.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",G,y=X.avatars&&X.avatars.length>0?(G=_.Y(X.avatars[0],_.Hv))==null?void 0:G.avatarImageSize:"AVATAR_SIZE_UNKNOWN";G=tAV(y)||0;if(t){var w,z=(w=X.avatarClusterSize)!=null?w:"AVATAR_SIZE_M";t=tAV(z);var B,V,b=Math.min((V=(B=X.avatars)==null?void 0:B.length)!=null?V:0,4),e;return{avatars:((e=X.avatars)==null?void 0:e.slice(0,4))||[],avatarSizeInPx:G,avatarStackStyle:{width:t+"px",height:t+"px",position:"relative"},avatarStyle:function(F){var T=
R3V({clusterSize:XUE(z),numAvatarsInCluster:b,avatarIndex:F});var D=tAV(z);b===3&&F===2?(D=(D-T)/2,D=(_.Md("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*D):D=void 0;return{position:"absolute",top:b===2&&F===1||b===3&&F===2||b===4&&F>=2?"0":void 0,bottom:b===2&&F===0||b>2&&F<2?"0":void 0,left:b===2&&F===1||b>2&&(F===1||F===3)?"0":void 0,right:b<=3&&F===0||b===4&&(F===0||F===2)?"0":void 0,transform:D?"translateX("+D+"px)":void 0,width:T+"px",height:T+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(F){return{clusterSize:XUE(X.avatarClusterSize),numAvatarsInCluster:b,avatarIndex:F}},
avatarButtonCustomClassName:void 0}}var g;return{avatars:((g=X.avatars)==null?void 0:g.slice())||[],avatarSizeInPx:G,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:GDV(y),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
wUG=function(X,t,G){return function(){vl(X,{form:{element:t},commandController:G})}};
zNV=function(X){switch(X){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
HFY=function(X){switch(X){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"}};
osA=function(X){var t=X.data;X=X.hidden===void 0?!1:X.hidden;var G={};X={class:_.pX("yt-page-indicator-view-model",(G["yt-page-indicator-view-model__indicator--hidden"]=!t.indicatorCount,G)),hidden:X};if(t.indicatorCount){G=[];for(var y=0;y<t.indicatorCount;y++){var w={};w=_.pX("yt-page-indicator-view-model__indicator",(w["yt-page-indicator-view-model__indicator--selected"]=t.selectedIndex===y,w));G.push(_.k("div",{class:w}))}t=_.k(_.gn,null,G)}else t=_.k(_.gn,null);return _.k("yt-page-indicator-view-model",
X,t)};
BMY=function(X){X&&(J9V(X)?delete X.inlinePlayerData:"inlinePlaybackEndpoint"in X&&delete X.inlinePlaybackEndpoint)};
nsV=function(X){if("accessibilityText"in X)return X.accessibilityText||"";if("title"in X){var t,G,y;return((t=X.title)==null?void 0:(G=t.accessibility)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label)||""}if("accessibility"in X){var w,z;return((w=X.accessibility)==null?void 0:(z=w.accessibilityData)==null?void 0:z.label)||""}return""};
J9V=function(X){return"inlinePlayerData"in X};
oD=function(X){return new VAE(X)};
bF0=function(X){var t=X.data;X=_.NI(function(){var w=_.Y(t.onTap,_.yL);w&&_.gw().resolve(_.F3).resolveCommand(w);return!1});
var G={sources:[{url:t.thumbnailUrl,width:120,height:90}]},y=t.rating&&t.ratingA11yLabel&&t.reviewsCount&&t.reviewsCountA11yLabel;return _.k("place-data-view-model",null,t.placeName&&t.placeCategory?_.k("div",{class:"yt-spec-place-data-view-model-shape","on:click":X},_.k(_.gr,{data:G,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.k(_.J4,{className:"yt-spec-place-data-view-model-shape__place-link",command:t.onTap},_.k("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:t.placeName},t.placeName)),_.k("div",{class:"yt-spec-place-data-view-model-shape__metadata"},y?_.k("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.k("span",{class:"score",title:t.ratingA11yLabel},t.rating),_.k("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.k(_.mw,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.k("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:t.reviewsCountA11yLabel},t.reviewsCount)):_.k("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.k("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.k("span",{class:"category",title:t.placeCategory},t.placeCategory)))):null)};
kDw=function(X){return function(t){X&&(X.thumbnailElRef=t.thumbnailElRef,X.thumbnail=t.thumbnail,X.thumbnailOverlays=t.thumbnailOverlays,X.thumbnailSize=t.thumbnailSize)}};
dbE=function(X){var t;return(t=X.sharedUi)==null?void 0:t.animatedThumbnailEnabled};
eN_=function(X){var t;return(t=X.sharedUi)==null?void 0:t.inlinePreviewEnabled};
_.jKf=function(X){var t;return(t=X.sharedUi)==null?void 0:t.currentPageSubType};
gsE=function(X){switch(X){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
TMV=function(X){var t=_.J(_.sm(!1,void 0,"RIOonf")),G=t.next().value,y=t.next().value;_.LY(function(){var w=X==null?void 0:X();if(w){var z=_.gw().resolve(_.jH(FrG));if(z){var B={triggeringElement:w,onDwellTriggeredFn:function(){y(!0)},
onDwellEndFn:function(){y(!1)}};
z.registerElement(B);_.Um(function(){_.Bv(z,B)})}}});
return G};
A9E=function(X,t,G){G?G(t):_.JH(t,X.target?{form:{element:X.target}}:void 0)};
_.ny=function(X,t,G){return function(y){_.Em(function(){var w=new Map,z,B=(z=X())==null?void 0:z.onTap;B&&(z=function(V){a:{var b=V.composedPath();b=_.J(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(e===y)break;if(e.className.indexOf("HostIsClickableAdComponent")>=0||e.tagName==="A".toString()||e.tagName==="BUTTON".toString()){b=!0;break a}}b=!1}b||A9E(V,B,t)},(G==null?0:G())||_.A("enable_web_home_top_landscape_image_layout_level_click")?(y.addEventListener("tap",z),w.set("tap",z)):(y.addEventListener("click",
z),w.set("click",z)));
_.Um(function(){for(var V=_.J(w),b=V.next();!b.done;b=V.next()){var e=_.J(b.value);b=e.next().value;e=e.next().value;y.removeEventListener(b,e)}})},"NMyqj")}};
YfA=function(X,t){var G,y=(G=X.interaction)==null?void 0:G.onTap;if(X=_.Hl({elementsCommand:y,forceNewState:!0,skipOnClick:!0}))return X.onclick=function(w){n2h(w)&&(w.preventDefault(),y&&A9E(w,y,t))},oi(X)?X:void 0};
sKA=function(X){switch(X){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Db0=function(X){switch(X){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"}};
Sf0=function(X){switch(X){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"}};
_.hN_=function(X){return _.A("rich_grid_enable_dynamic_offset")&&X?Math.max(Math.round((X-_.At("rich_grid_dynamic_offset_anchor_width",1300))/100*_.At("rich_grid_dynamic_offset_offset_per_100",10)),_.At("rich_grid_dynamic_offset_lower_bound",-60)):0};
ZF_=function(X,t){switch(t){case 4:return 16;case 1:return X<528?16:X<1024?32:48;case 2:return(X>=528?16:8)/2;case 3:return(X<528?16:X<1024?32:48)+(X>=528?16:8)/2;default:return 0}};
qfE=function(X){var t=X.originalContainerWidth;var G=X.sizing;var y=X.standardUnit;if(X.isCompactList&&t<528)return 1;switch(G){case "STANDARD":return y;case "COMPACT":return y+1;case "EXTRA_COMPACT":return _.A("web_responsive_extra_compact_2x")?y*2:_.A("web_responsive_current")?y===1?2:y%2===0?y/2*3:y+2:y<4?y*2:Math.ceil(y*3/2);case "MINI":return y>1?y*2:3;default:return y}};
KrV=function(X){var t=X.containerWidth;var G=X.peek;var y=X.gutter;var w=X.numItems;X=X.ignoreMaxWidthLimit;t=G?Math.max((t-G-y*w)/w,0):Math.max((t-y*(w-1))/w,0);return X?t:Math.min(t,CBE)};
_.Vj=function(X){var t=X.containerWidth;var G=X.hasPeek;var y=X.sizing;var w=X.marginSettings;var z=X.isCompactList;var B=X.enableFullBleedForSingleCol;var V=X.standardUnitMinWidth;y=y||"STANDARD";G=!!G;X=t>=528?16:8;var b=G?t>=528?48:24:0;w=ZF_(t,w);var e=Math.max(t-w*2,0);V=_.A("kevlar_disable_min_width_override")?void 0:V;V=Math.min(Math.max(Math.floor((e-b+X)/((V!=null?V:OFV)+_.hN_(t)+X)),1),6);var g=(B=!!B&&V===1)||V===1&&y!=="STANDARD";G=G||g?e:Math.min(e,(CBE+X)*V-X);y=qfE({originalContainerWidth:t,
sizing:y,standardUnit:V,isCompactList:z});return{itemWidth:KrV({containerWidth:G,peek:b,gutter:X,numItems:y,ignoreMaxWidthLimit:g}),gutter:X,maxContainerWidth:G,numItems:y,margin:B?0:w,contentMargin:ZF_(t,1),typographyBump:KrV({containerWidth:G,peek:b,gutter:X,numItems:V,ignoreMaxWidthLimit:g})>400&&!(z&&t<528),standardUnit:V}};
utJ=function(X){switch(X){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.QKl=function(X){if(X){var t;if((t=X.responsiveContainerConfiguration)==null?0:t.responsiveSize)return utJ(X.responsiveContainerConfiguration.responsiveSize);if(X.layoutSizing)switch(X.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"}}};
IrV=function(X){if(X.fullbleed)return 1;switch(X.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
r9E=function(X,t,G,y,w,z,B,V){a:if(X===4&&y==="LOCKUP_CONTENT_TYPE_SOURCE")var b=1;else switch(X){case 3:b=1;break a;default:b=0}a:switch(X){case 4:z=!!(z&&z<100);break a;default:z=!1}a:switch(X){case 3:case 4:var e=y==="LOCKUP_CONTENT_TYPE_CHANNEL"||y==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:e=!1}a:switch(X){case 5:var g=!0;break a;case 4:g=!1;break a;default:g=!1}return{isOverlay:g,isCard:Wrv(y,B),sizing:t!=null?t:"STANDARD",typographyBump:G!=null?G:!1,isTiny:z,isCentered:e,isCollection:c9G(y),
arrangement:b,addMarginForFullbleed:X===1&&y!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:X===1&&y==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:pU0(y,w,V),disableRounding:X===5||Wrv(y,B)||X===1&&y==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:c9G(y)?2:0,useLegacyTypography:!(V==null||!V.useLegacyTypography),useRichGridLegacyTypography:!(V==null||!V.useRichGridLegacyTypography)&&!_.A("web_enable_typography_bump"),compactMetadata:b===0&&y==="LOCKUP_CONTENT_TYPE_VIDEO"}};
c9G=function(X){switch(X){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}};
Wrv=function(X,t){if(t&&X==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(X){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
pU0=function(X,t,G){if(t&&(G==null||!G.alwaysRespectPodcastShowAspectRatio||X!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(X){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}};
NMs=function(X){switch(X){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"}};
PBE=function(X){switch(X){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
EsY=function(X){switch(X){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}};
_.b7=function(X){if(X){var t;return((t=_.gw().resolve(_.jH(_.kI)))==null?0:t())?X.darkThemeImage:X.image}};
RNV=function(X,t,G,y,w,z){if(w&&z&&t==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:w,height:z};if(!G)return{};w=G.size;G=G.allowFullWidth;if(t==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&G)return{fullWidth:!0};if(w===void 0)return{};switch(X){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:w,height:w};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:w,height:1/UbE*w};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:w*
mbG,height:w};default:return(y==null?0:y.height)&&(y==null?0:y.width)?y.width/y.height>1?{maxWidth:w*mbG}:{maxWidth:w}:{maxWidth:w}}};
iFs=function(X){var t;return X&&((t=_.b7(X.themedImage))!=null?t:X.image)};
Lrf=function(X){var t;return X==null?void 0:(t=X.sources)==null?void 0:t[0]};
vs0=function(X){switch(X){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"}};
arl=function(X){switch(X.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"}}};
lrJ=function(X){var t=_.jKf(_.kF().getState())||"";return X?X+t:""};
xb0=function(X){switch(X){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
MAG=function(X){var t=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],G=_.J(_.sm(void 0,void 0,"JrqNsb")),y=G.next().value,w=G.next().value,z=_.J(_.sm(void 0,void 0,"rWytse"));G=z.next().value;var B=z.next().value;z=_.J(_.sm(void 0,void 0,"DHRqxe"));var V=z.next().value,b=z.next().value;return{touchFeedbackEvents:{pointerUpEvent:y,pointerDownEvent:G,pointerLeaveEvent:V},touchFeedbackOnPointerUp:_.NI(function(e){frV(_.t4(e),t)||(w(e),B(void 0),b(void 0))}),
touchFeedbackOnPointerDown:_.NI(function(e){X==null||X(e);frV(_.t4(e),t)||(B(e),w(void 0),b(void 0))}),
touchFeedbackOnPointerLeave:_.NI(function(e){frV(_.t4(e),t)||(b(e),B(void 0),w(void 0))})}};
frV=function(X,t){t=t===void 0?[]:t;t=[].concat(_.RY(t),["BUTTON".toString()]);X=_.J(X);for(var G=X.next();!G.done;G=X.next()){G=G.value;for(var y=_.J(t),w=y.next();!w.done;w=y.next())if(G.tagName===w.value)return!0}return!1};
XJA=function(X){switch(X){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"}};
$A_=function(X){return X.scrollHeight-X.offsetHeight>1};
trV=function(X,t){var G;return bp(X,((G=X.content)==null?void 0:G.length)||0,!t)};
GRV=function(X,t){t=trV(X,t);var G,y;return(((G=X.content)==null?void 0:G.length)||0)>(((y=t.content)==null?void 0:y.length)||0)};
wJl=function(X,t,G,y,w,z){if(!t||ky){var B;return bp(X,((B=X.content)==null?void 0:B.length)||0,!0)}t=y.value;if(!G.value||!t||!X.content)return X;G=0;y=X.content.length;B=0;yrv||(yrv=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var V=yrv;for(w=w*z*V;G<=y;)z=Math.floor(G+(y-G)/2),V=bp(X,z)||X,t.firstChild&&(t.firstChild.textContent=V.content),t.scrollHeight>w?y=z-1:(B=z,G=z+1);return bp(X,B)};
zRJ=function(X,t){var G,y;return(((G=X.content)==null?void 0:G.length)||0)>(((y=t.content)==null?void 0:y.length)||0)};
HM_=function(X){var t=X.isTruncated;var G=X.isAbsoluteButton;var y=X.lineHeight;var w=X.contentRef.value,z=X.placeholderTruncationTextRef.value,B=X.truncationTextRef.value;X=X.appDirection==="rtl";if(w&&z){var V=z.offsetLeft;X&&(V=w.offsetWidth-z.offsetWidth-z.offsetLeft);if(t){t=z.offsetWidth;z=w.offsetWidth;var b=G?z-t-70:V-70;y="linear-gradient(\n      to top, transparent 0%,\n      transparent "+y+"rem,\n      #000 "+y+"rem,\n      #000 100%), linear-gradient(\n      to "+((X?"left":"right")+
",\n      #000 0px,\n      #000 "+b+"px,\n      transparent "+(G?z-t:b+70)+"px)");w.style.setProperty("-webkit-mask-image",y);w.style.setProperty("mask-image",y)}else w.style.setProperty("-webkit-mask-image",""),w.style.setProperty("mask-image","");G?X?(B.style.setProperty("left","0"),B.style.setProperty("right","unset")):(B.style.setProperty("left",""),B.style.setProperty("right","0")):X?(B.style.setProperty("left","unset"),B.style.setProperty("right",V+"px")):(B.style.setProperty("left",V+"px"),
B.style.setProperty("right","unset"))}};
o$s=function(X,t,G,y,w){var z=_.nl("truncated-text-content"),B=_.nl("truncated-text-content"),V=_.nl("button"),b=_.nl("button"),e=_.nl("button"),g=_.gw().resolve(_.e_),F=_.J(r5(trV(X,w))),T=F.next().value,D=F.next().value;F=_.J(r5(_.A("enable_truncated_text_max_lines")?zRJ(X,T):GRV(X,w)));var h=F.next().value,u=F.next().value,W=a2(null);_.iv(function(){function c(){if(z.value&&V.value&&e.value)if(_.A("enable_truncated_text_max_lines")){var R=wJl(X,w,z,B,t,G);D(R);y||requestAnimationFrame(function(){if(z.value&&
V.value&&e.value){var L=$A_(z.value)||zRJ(X,R);u(L);HM_({isTruncated:L,isAbsoluteButton:$A_(z.value),lineHeight:G,contentRef:z,placeholderTruncationTextRef:V,truncationTextRef:e,appDirection:g})}})}else D(trV(X,w)),requestAnimationFrame(function(){if(z.value&&V.value&&e.value)if($A_(z.value))u(!0),y||HM_({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:G,contentRef:z,placeholderTruncationTextRef:V,truncationTextRef:e,appDirection:g});else{var L=GRV(X,w);u(L);y||HM_({isTruncated:L,isAbsoluteButton:!1,lineHeight:G,contentRef:z,placeholderTruncationTextRef:V,truncationTextRef:e,appDirection:g})}})}
var P,l;(P=W.value)==null||(l=P.stop)==null||l.call(P);P=new _.d2(c,17);c();W.value=P},[X.content,
t,G,g,y,w]);_.LY(function(){var c=function(){yrv=void 0;var l,R;(l=W.value)==null||(R=l.fire)==null||R.call(l)};
if(window.ResizeObserver){var P=new ResizeObserver(c);P.observe(z.value);return function(){var l,R;(l=W.value)==null||(R=l.stop)==null||R.call(l);P.disconnect()}}window.addEventListener("resize",c);
return function(){var l,R;(l=W.value)==null||(R=l.stop)==null||R.call(l);window.removeEventListener("resize",c)}});
return{isTruncated:h,displayText:T,contentRef:z,hiddenRef:B,placeholderTruncationTextRef:V,hiddenTruncationTextRef:b,truncationTextRef:e}};
Jrh=function(X){var t=X.text;var G=X.alwaysShowTruncationText;var y=X.truncationText;var w=X.onTextClick;var z=X.maxLines===void 0?2:X.maxLines;var B=X.disableTextMask===void 0?!1:X.disableTextMask;var V=X.textStyle===void 0?"default":X.textStyle;var b=X.accessibilityLabel===void 0?"":X.accessibilityLabel;var e=X.textSize===void 0?"small":X.textSize;var g=X.alwaysTruncateAtMaxLines===void 0?!1:X.alwaysTruncateAtMaxLines;var F=X.expandOnClick===void 0?!1:X.expandOnClick;X=_.J(r5(!1));var T=X.next().value,
D=X.next().value;X=_.NI(function(){F&&D(!T);w==null||w()});
a:switch(e){case "medium":var h=2;break a;case "large":h=2.2;break a;default:h=1.8}var u=o$s(t,T?Infinity:z,h,B,g),W=u.isTruncated;t=u.displayText;g=u.contentRef;var c=u.hiddenRef,P=u.placeholderTruncationTextRef,l=u.hiddenTruncationTextRef;u=u.truncationTextRef;var R={};G=_.pX((R["truncated-text-wiz__absolute-button"]=!B,R["truncated-text-wiz__bottom-button"]=B,R["truncated-text-wiz--hidden"]=!(!T&&(G||W)),R));B={};V=_.pX((B["truncated-text-wiz"]=!0,B["truncated-text-wiz--overlay"]=V==="overlay",
B["truncated-text-wiz--medium-text"]=e==="medium",B["truncated-text-wiz--large-text"]=e==="large",B["truncated-text-wiz--primary-text"]=V==="primary-text",B));e={};e=_.pX((e["truncated-text-wiz__truncated-text-content"]=!0,e["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,e));return _.k("truncated-text",{class:V,"on:click":X,style:"line-height: "+h+"rem;"},_.k("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:g,style:T?"":"max-height: "+z*h+"rem;"},
_.k(_.eh,{text:t}),_.k("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:P,style:"line-height: "+h+"rem;"},_.k(_.eh,{text:y}))),_.k("truncated-text-content",{class:e,el:c,style:T?"":"max-height: "+z*h+"rem;","aria-hidden":"true"},_.k(_.eh,{text:t}),_.k("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:l,style:"line-height: "+h+"rem;"},_.k(_.eh,{text:y}))),_.k("button",{"aria-label":b,class:G,el:u,style:"line-height: "+h+"rem;"},
_.k(_.eh,{text:y})))};
Bd_=function(X){return X.scrollHeight-X.offsetHeight>1};
n$G=function(X,t){var G;return bp(X,((G=X.content)==null?void 0:G.length)||0,!t)};
VrE=function(X,t){t=n$G(X,t);var G,y;return(((G=X.content)==null?void 0:G.length)||0)>(((y=t.content)==null?void 0:y.length)||0)};
kRE=function(X,t,G,y,w,z){if(!t||ky){var B;return bp(X,((B=X.content)==null?void 0:B.length)||0,!0)}t=y.value;if(!G.value||!t||!X.content)return X;G=0;y=X.content.length;B=0;bM6||(bM6=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var V=bM6;for(w=w*z*V;G<=y;)z=Math.floor(G+(y-G)/2),V=bp(X,z)||X,t.firstChild&&(t.firstChild.textContent=V.content),t.scrollHeight>w?y=z-1:(B=z,G=z+1);return bp(X,B)};
dAv=function(X,t){var G,y;return(((G=X.content)==null?void 0:G.length)||0)>(((y=t.content)==null?void 0:y.length)||0)};
eRY=function(X){var t=X.isTruncated;var G=X.isAbsoluteButton;var y=X.lineHeight;var w=X.contentRef.value,z=X.placeholderTruncationTextRef.value,B=X.truncationTextRef.value;X=X.appDirection==="rtl";if(w&&z){var V=z.offsetLeft;X&&(V=w.offsetWidth-z.offsetWidth-z.offsetLeft);if(t){t=z.offsetWidth;z=w.offsetWidth;var b=G?z-t-70:V-70;y="linear-gradient(\n      to top, transparent 0%,\n      transparent "+y+"rem,\n      #000 "+y+"rem,\n      #000 100%), linear-gradient(\n      to "+((X?"left":"right")+
",\n      #000 0px,\n      #000 "+b+"px,\n      transparent "+(G?z-t:b+70)+"px)");w.style.setProperty("-webkit-mask-image",y);w.style.setProperty("mask-image",y)}else w.style.setProperty("-webkit-mask-image",""),w.style.setProperty("mask-image","");G?X?(B.style.setProperty("left","0"),B.style.setProperty("right","unset")):(B.style.setProperty("left",""),B.style.setProperty("right","0")):X?(B.style.setProperty("left","unset"),B.style.setProperty("right",V+"px")):(B.style.setProperty("left",V+"px"),
B.style.setProperty("right","unset"))}};
jPV=function(X,t,G,y,w){var z=_.nl("truncated-text-content"),B=_.nl("truncated-text-content"),V=_.nl("button"),b=_.nl("button"),e=_.nl("button"),g=_.gw().resolve(_.e_),F=_.J(_.Ed(function(){return n$G(X(),w())})),T=F.next().value,D=F.next().value;
F=_.J(_.Ed(function(){return _.A("enable_truncated_text_max_lines")?dAv(X(),T()):VrE(X(),w())}));
var h=F.next().value,u=F.next().value,W=null;_.Em(function(){function c(){if(z.value&&V.value&&e.value)if(_.A("enable_truncated_text_max_lines")){var R=kRE(X(),w(),z,B,t(),G());D(R);y()||requestAnimationFrame(function(){if(z.value&&V.value&&e.value){var L=Bd_(z.value)||dAv(X(),R);u(L);eRY({isTruncated:L,isAbsoluteButton:Bd_(z.value),lineHeight:G(),contentRef:z,placeholderTruncationTextRef:V,truncationTextRef:e,appDirection:g})}})}else D(n$G(X(),w())),requestAnimationFrame(function(){if(z.value&&V.value&&
e.value){var L=X();
t();var x=G(),w6=y(),BY=w();Bd_(z.value)?(u(!0),w6||eRY({isTruncated:!0,isAbsoluteButton:!0,lineHeight:x,contentRef:z,placeholderTruncationTextRef:V,truncationTextRef:e,appDirection:g})):(L=VrE(L,BY),u(L),w6||eRY({isTruncated:L,isAbsoluteButton:!1,lineHeight:x,contentRef:z,placeholderTruncationTextRef:V,truncationTextRef:e,appDirection:g}))}})}
var P,l;(P=W)==null||(l=P.stop)==null||l.call(P);P=new _.d2(c,17);c();W=P},"EujZId");
_.LY(function(){D(n$G(X(),w()));u(_.A("enable_truncated_text_max_lines")?dAv(X(),T()):VrE(X(),w()));var c=function(){bM6=void 0;var l,R;(l=W)==null||(R=l.fire)==null||R.call(l)};
if(window.ResizeObserver){var P=new ResizeObserver(c);P.observe(z.value);_.Um(function(){var l,R;(l=W)==null||(R=l.stop)==null||R.call(l);P.disconnect()})}else window.addEventListener("resize",c),_.Um(function(){var l,R;
(l=W)==null||(R=l.stop)==null||R.call(l);window.removeEventListener("resize",c)})});
return{isTruncated:h,displayText:T,contentRef:z,hiddenRef:B,placeholderTruncationTextRef:V,hiddenTruncationTextRef:b,truncationTextRef:e}};
_.g$E=function(X,t,G,y,w,z){var B=function(e){e.preventDefault()},V=function(){var e=X.value;
if(e)return(e._data=t)?(e.addEventListener("touchstart",dfJ,{passive:!0}),e.addEventListener("click",jbJ),t.clickTrackingParams&&(e.params={itct:t.clickTrackingParams}),g20(e,t),XM(e,F8s(t)||"")):e.addEventListener("click",B),function(){t?(e.removeEventListener("touchstart",dfJ,{passive:!0}),e.removeEventListener("click",jbJ)):e.removeEventListener("click",B)}},b=function(){var e=X.value;
if(e){var g=_.Hl({innertubeCommand:t,elementsCommand:G,forceNewState:y,stopPropagation:z});if(g)return e._data=g._data,g["aria-haspopup$"]&&e.setAttribute("aria-haspopup",g["aria-haspopup$"].toString()),g["force-new-state$"]&&e.setAttribute("force-new-state",g["force-new-state$"].toString()),g.href$&&XM(e,g.href$),g.rel$&&(e.rel=g.rel$),g.role$&&e.setAttribute("role",g.role$),g.target$&&(e.target=g.target$),e.params=g.params,g.onclick&&e.addEventListener("click",g.onclick),g.onpointerdown&&e.addEventListener("onpointerdown",
g.onpointerdown),function(){g.onclick&&e.removeEventListener("click",g.onclick);g.onpointerdown&&e.removeEventListener("onpointerdown",g.onpointerdown)}}};
_.iv(w?b:V,[t,G])};
FmE=function(X){var t=X.children;var G=X.className;var y=X.dir;var w=X.style;var z=X.role;var B=X.ariaSelected;var V=X.ariaLabel;var b=X.ariaHidden;var e=X.ariaLabelledby;var g=X.ariaDescribedby;var F=X.command;var T=X.elementsCommand;var D=X.forceNewState;var h=X.isPlaceholder;var u=X.tabIdentifier;var W=X.target;var c=X.tabIndex;var P=X.useATagConfig;var l=X.stopPropagation;X=_.nl("a");_.g$E(X,F,T,D,P,l);return _.k("a",{el:X,"on:click":_.NI(function(){return l===!1}),
class:G,style:w,dir:y,role:z?z:F?void 0:"group","aria-hidden":b?!0:void 0,"aria-label":V,"aria-labelledby":e,"aria-describedby":g,"aria-selected":B,tabindex:c!==void 0?c:void 0,target:W,"tab-identifier":u,"force-new-state":D?!0:void 0,"is-placeholder":h?!0:void 0},t)};
Td0=function(X){return{content:X!=null?X:""}};
ArV=function(X){return _.wr(X.onTap)||_.yj(X.rendererContext)};
DAf=function(X){var t=X.data;X={class:X.className};a:switch(t.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var G="yt-video-attribute-view-model--vertical";break a;default:G="yt-video-attribute-view-model--horizontal"}a:switch(t.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var y="yt-video-attribute-view-model--image-small";break a;default:y="yt-video-attribute-view-model--image-large"}a:switch(t.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var w="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":w="yt-video-attribute-view-model--image-avatar";break a;default:w=""}a:switch(t.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var z="yt-video-attribute-view-model--metadata-header";break a;default:z=""}a:switch(t.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var B="yt-video-attribute-view-model--container-card";break a;default:B=""}G=["yt-video-attribute-view-model",G,y,w,z,B,ArV(t)?"yt-video-attribute-view-model--clickable":
""].join(" ");if(t.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var V="";else y=t.lightColorPalette,w=t.darkColorPalette,z=((V=_.gw().resolve(_.jH(_.kI)))==null?0:V())&&w?w:y,V=(V=z==null?void 0:z.section2Color)?_.yY(V):"";return _.k("yt-video-attribute-view-model",X,_.k("div",{class:G,style:_.Ud({"background-color":V})},ArV(t)||!_.A("web_video_attribute_view_model_a11y_fix")?_.k(FmE,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:ArV(t),
role:"group",ariaLabel:t.title,forceNewState:!0},t.heroText||t.image?_.k(YoV,{data:t}):null,_.k(sPJ,{data:t,sizeSmall:t.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"})):_.k("div",{class:"yt-video-attribute-view-model__content-container"},t.heroText||t.image?_.k(YoV,{data:t}):null,_.k(sPJ,{data:t,sizeSmall:t.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
SoE=function(X){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:X.overflowMenuA11yLabel,onTap:function(t){t.preventDefault();t.stopPropagation();if(X.overflowMenuOnTap){var G=_.Hl({elementsCommand:X.overflowMenuOnTap,forceNewState:!0});if(G==null?0:G.onclick)G.onclick(t)}}}};
YoV=function(X){X=X.data;var t,G=((t=_.gw().resolve(_.jH(_.kI)))==null?0:t())&&X.darkThemeImage?X.darkThemeImage:X.image;t=SoE(X);return _.k("div",{class:"yt-video-attribute-view-model__hero-section"},G?_.k(_.gr,{data:G,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):X.heroText?_.k("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.k("span",{class:"yt-video-attribute-view-model__hero-text"},X.heroText)):null,X.overflowMenuOnTap?
_.k("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.k(_.jh,{data:t,iconName:"MORE_VERT"})):null)};
sPJ=function(X){var t=X.data;X=X.sizeSmall;var G=t.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",y=ArV(t);y=_.Hl({innertubeCommand:y});y=oi(y);var w={};X={class:_.pX("yt-video-attribute-view-model__metadata",(w["yt-video-attribute-view-model--small-font"]=X,w)),role:y?"link":"group"};y=_.k("h1",{class:"yt-video-attribute-view-model__title"},t.title);G=t.subtitle?_.k("h4",{class:"yt-video-attribute-view-model__subtitle"},G?_.k(hR0,{text:Td0(t.subtitle),truncationText:Td0(t.subtitleTruncationText),
maxLines:2}):_.k("span",null,t.subtitle)):null;if(t.secondarySubtitle){w=t.secondarySubtitle;if(w!=null&&w.attachmentRuns){for(var z=[],B=_.J(w.attachmentRuns),V=B.next();!V.done;V=B.next())V=V.value,V.element&&z.push(Object.assign({},V,{element:Object.assign({},V.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));w=Object.assign({},w,{attachmentRuns:z})}w=_.k("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.k(_.eh,{text:w}))}else w=null;return _.k("div",X,y,G,w,t.buttonViewModel?ZM0(t.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
qoJ=function(X){return{content:X!=null?X:""}};
C6s=function(X){return _.wr(X.onTap)||_.yj(X.rendererContext)};
Kmf=function(X){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:X.overflowMenuA11yLabel,onTap:function(t){t.preventDefault();t.stopPropagation();if(X.overflowMenuOnTap){var G=_.Hl({elementsCommand:X.overflowMenuOnTap,forceNewState:!0});if(G==null?0:G.onclick)G.onclick(t)}}}};
_.g2=function(X,t,G,y,w){y=y===void 0?{}:y;if(!w||Math.random()<5E-4){t=t||null;G=G||null;X=X instanceof Error?X:new _.NJ(X);if(X.args)for(var z=_.J(X.args),B=z.next();!B.done;B=z.next())B=B.value,B instanceof Object&&(y=Object.assign({},B,y));y.category="H5 Ads Control Flow";t&&(y.slot=t?"slot:  "+t.slotType:"");G&&(y.layout=G?"layout:  "+G.layoutType:"",y.layoutId=G.layoutId);w&&(y.known_error_aggressively_sampled=!0);X.args=[y];_.Mj(X)}};
_.OM0=function(X,t){_.sl(X,"yt-open-popup-action",[_.jl(t),X])};
_.F7=function(X,t){_.OM0(X,_.Vl(t))};
QPE=function(X){if(!X)return"";if(ur0[X])return ur0[X];TF||(TF=_.OF("A"));TF.href!==X&&XM(TF,X);var t=TF.pathname;ur0[X]=t.startsWith("/")?t:"/"+t;return ur0[X]};
I36=function(){var X=QPE(window.location.href);if(X==="/")return"home";if(X.startsWith("/results"))return"search";if(X.startsWith("/watch"))return"watch";if(X.startsWith("/shorts"))return"shorts";if(X.startsWith("/hashtag"))return"hashtag";if(X.startsWith("/create_channel"))return"create_channel";if(X.startsWith("/@")||X.startsWith("/user/")||X.startsWith("/channel/"))return"channel";if(X.startsWith("/experiments"))return"experiments";if(X.startsWith("/sponsor_channel"))return"sponsorship";if(X.startsWith("/select_site"))return"settings";
if(X.startsWith("/locate"))return"locate";if(X.startsWith("/redeem"))return"redeem";if(X.startsWith("/musicpremium")||X.startsWith("/premium")||X.startsWith("/red"))return"premium";if(X.startsWith("/paid_memberships"))return"paid_memberships";if(X.startsWith("/oops"))return"oops";if(X.startsWith("/clip"))return"clip";var t;return(A4==null?void 0:(t=A4.response)==null?void 0:t.page)==="404"?"404":X.startsWith("/feed/history")?"history":X.startsWith("/feed/library")?"library":X.startsWith("/feed/subscriptions")?
"subscriptions":X.startsWith("/feed/trending")?"trending":X.startsWith("/feed/news_destination")?"news":X.startsWith("/playlist")?"playlist":X.startsWith("/minor_moment")?"minor_moment":X.startsWith("/playable/")||X.match("^/playables/(?!saved).")?"mini_app":X.startsWith("/playables")?"playables":X.startsWith("/create/live/join")?"open_in_app":X.startsWith("/feed/explore")?"explore":"browse"};
_.rrY=function(){var X=A4==null?void 0:A4.response,t=X==null?void 0:X.endpoint;if(!t)return(X==null?void 0:X.page)==="watch"?"watch":I36();var G;X=(G=_.Y(t==null?void 0:t.commandMetadata,_.jQ))==null?void 0:G.webPageType;G=!1;if(X&&!WmE.includes(X))switch(X){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 y;return((y=_.Y(t==null?void 0:t.commandMetadata,_.jQ))==null?0:y.url)&&QPE(_.Y(t.commandMetadata,_.jQ).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var w;return(t=(w=_.Y(t,_.pp))==null?void 0:w.browseId)?crv[t]||"browse":"browse";default:G=!0}if(_.Y(t,_.Yy)||_.Y(t,pJV))return"sponsorship";w=QPE(window.location.href);if(w.startsWith("/experiments"))return"experiments";if(w.startsWith("/create_channel"))return"create_channel";
if(_.Y(t,_.zj)&&w.startsWith("/shorts"))return"shorts";if(_.Y(t,_.zj)&&w.startsWith("/watch"))return"watch";G&&(t=new _.NJ("Unsupported mWeb page type",{pathname:w,webPageType:X}),_.xA(t));return"browse"};
se=function(X,t,G,y){return X&&t?X!==G||t!==y?(_.g2(Error("Hh"),void 0,void 0,{"stored-slot":X,"stored-layout":t,"latest-slot":G,"latest-layout":y}),!1):!0:!1};
NdE=function(X,t,G){return X({targetId:t},function(y){return G.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},y,{header:G.continuationItems?G.continuationItems[0]:void 0}):Object.assign({},y,{contents:G.continuationItems?G.continuationItems:[]})})};
P6E=function(X,t,G,y){if(t=t.trackingParams){var w,z=(w=G.getScreenLayer)==null?void 0:w.call(G);G=_.lw(z);w=_.a4(z);if(G&&w){var B=_.i$(t);_.A("combine_ve_grafts")?X.graftServerVe(t,w,z):_.w9(G,w,B);y==null||y(B)}}};
UAv=function(X){var t;return((t=E$G.get(X))==null?void 0:t.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
iMl=function(X,t){var G={type:t.slotType,controlFlowManagerLayer:mAE.get(t.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};t.slotEntryTrigger&&(G.entryTriggerType=t.slotEntryTrigger.triggerType);t.slotPhysicalPosition!==1&&(G.slotPhysicalPosition=t.slotPhysicalPosition);if(X){G.debugData={slotId:t.slotId};if(X=t.slotEntryTrigger)G.debugData.slotEntryTriggerData=RR6(X);X=t.slotFulfillmentTriggers;G.debugData.fulfillmentTriggerData=[];X=_.J(X);for(var y=X.next();!y.done;y=X.next())G.debugData.fulfillmentTriggerData.push(RR6(y.value));
t=t.slotExpirationTriggers;G.debugData.expirationTriggerData=[];t=_.J(t);for(X=t.next();!X.done;X=t.next())G.debugData.expirationTriggerData.push(RR6(X.value))}return G};
RR6=function(X,t){var G={type:X.triggerType};t!=null&&(G.category=t);X.triggeringSlotId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedSlotId=X.triggeringSlotId);X.triggeringLayoutId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedLayoutId=X.triggeringLayoutId);return G};
LmG=function(X,t,G,y){t={opportunityType:t};X&&(y||G)&&(y=_.iG(y||[],function(w){return iMl(X,w)}),t.debugData=Object.assign({},G&&G.length>0?{associatedSlotId:G}:{},y.length>0?{slots:y}:{}));
return t};
v$v=function(X){return D7(X.opportunityAdapterMap).concat(D7(X.triggerAdapterMap)).concat(D7(X.fulfillmentAdapterFactoryMap)).concat(D7(X.slotAdapterFactoryMap)).concat(D7(X.layoutRenderingAdapterFactoryMap))};
D7=function(X){var t=[];X=_.J(X.values());for(var G=X.next();!G.done;G=X.next())G=G.value,G.isAdsControlFlowEventListener&&t.push(G);return t};
h4=function(X){var t=X.slotId,G=X.slotType,y=X.slotPhysicalPosition;return t===void 0?new Sh("Cannot construct a slot due to the missing id.",{adSlotMetadata:X}):G===void 0?new Sh("Cannot construct a slot due to the missing type.",{adSlotMetadata:X}):y===void 0?new Sh("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:X}):{slotId:t,slotType:G,slotPhysicalPosition:y,managerLayer:"external",adSlotLoggingData:X.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new a3h}};
l3J=function(X){var t=X.layoutId,G=X.layoutType;return t===void 0?new Z7("Cannot construct a layout due to the missing id.",{adLayoutMetadata:X}):G===void 0?new Z7("Cannot construct a layout due to the missing type.",{adLayoutMetadata:X}):{layoutId:t,layoutType:G,managerLayer:"external",adLayoutLoggingData:X.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new a3h,interactionLoggingAdsClientData:{}}};
xAA=function(X){if(X.querySelector("img")){var t=X.querySelector("img");t.addEventListener("error",function(){t4G(t.src).then(function(G){(G=_.xg(G).toString())?t.src=G:t.removeAttribute("src")}).catch(function(){t.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Cy=function(X,t){if(t&&(f3h(t.viewableCommand)||f3h(t.endOfSessionCommand))){var G=Mrw(t==null?void 0:t.viewableCommand);t=Mrw(t==null?void 0:t.endOfSessionCommand);if(!qs){var y=_.At("custom_active_view_tos_timeout_ms");qs=y>0&&y!==36E5?new X9s($56(),y):new X9s($56())}tpV(qs,X);Gtw(qs,X,G,t)}};
Ky=function(X){qs&&tpV(qs,X)};
$56=function(){var X=_.Md("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(X==null?void 0:X.length)===2?X[1]:null};
f3h=function(X){X=_.wr(X);return!(X==null||!X.loggingUrls)&&X.loggingUrls.length>0};
Mrw=function(X){if(!X)return[];var t=[],G,y;((y=(G=_.wr(X))==null?void 0:G.loggingUrls)!=null?y:[]).forEach(function(w){w.baseUrl&&t.push(w.baseUrl)});
return t};
ydV=function(X){if(_.A("stop_av_measurement_on_detach"))return function(){Ky(X)}};
w90=function(X){return function(){_.A("stop_av_measurement_on_detach")&&Ky(X)}};
zEV=function(X){if(_.A("stop_av_measurement_on_detach"))return function(){Ky(X)}};
HR6=function(X){return X.shorts.isDesktopSmallWidth};
_.okJ=function(X){return X.shorts.isShortsActive};
_.JdV=function(X){return X.shorts.isWatchWhileMode};
_.Oe=function(X){return X.shorts.isFullscreen};
_.u7=function(X){return X.shorts.isShortsPipActive};
nk6=function(X){var t,G;if(X=(t=_.Y(X.reelsAdCardButtoned,B7V))==null?void 0:(G=t.animatedRenderingConfig)==null?void 0:G.easeOutSeconds)return X+"s"};
bRh=function(X,t,G){return _.n(function(y){return y.return(new Promise(function(w){var z=new Image;z.onload=function(){w(new VpV(X,t,G,z.naturalWidth,z.naturalHeight))};
z.src=G.toString()}))})};
kts=function(X,t){return Math.round(X/1E-5)===Math.round(t/1E-5)};
d5h=function(X,t){return Math.round(X/1E-5)===Math.round(t/1E-5)};
eEw=function(X,t){return X.year===t.year&&X.month===t.month&&X.day===t.day};
jtw=function(X,t){return X.year!==t.year?X.year<t.year:X.month!==t.month?X.month<t.month:X.day<t.day};
FRw=function(X){return X.day===gkG(X.year,X.month)?X.month===11?{year:X.year+1,month:0,day:1}:{year:X.year,month:X.month+1,day:1}:{year:X.year,month:X.month,day:X.day+1}};
T7V=function(){var X=new Date,t={year:X.getFullYear(),month:X.getMonth(),day:X.getDate()};return{start:t,end:{year:X.getFullYear()+2,month:X.getMonth(),day:X.getDate()},selectedDate:FRw(t)}};
Ads=function(X){return(new By(2)).format(new Date(X.year,X.month,X.day))};
YNY=function(X){return{year:X.getFullYear(),month:X.getMonth(),day:X.getDate()}};
stl=function(X,t){X=(X+(Number(t.utcOffsetSec)+(new Date(X*1E3)).getTimezoneOffset()*60))*1E3;t=YNY(new Date(X));return{date:t,secondsSinceMidnight:Math.floor((X-(new Date(t.year,t.month,t.day)).getTime())/1E3)}};
D5s=function(X,t){t=t.months.findIndex(function(G){return G.year===X.year&&G.month===X.month});
return t>=0?t:void 0};
SNl=function(X){if(!X)return!1;try{if(X.host&&X.host.tagName==="YT-FORMATTED-STRING"&&X.host.id==="contenteditable-textarea"||X.nodeType===Node.ELEMENT_NODE&&X.tagName==="YTD-COMMENTBOX")return!0}catch(t){return!1}return SNl(X.parentNode)};
Qj=function(X){return X?!(X.tagName!=="A"||!X.href||!X.classList.contains("yt-simple-endpoint")):!1};
hEE=function(X){return X?X.tagName==="IMG"&&X.classList.contains("emoji"):!1};
ZRl=function(X,t,G){if(!X)return null;var y=Qj(X);if(y&&G)return t=X.pathname.substring(X.pathname.indexOf("/channel/")+9),document.createTextNode("@"+t);if(y&&!G)return document.createTextNode("");if(hEE(X))return G=X.alt,X=X.dataset.emojiId,!X&&t&&(t=_.ID(t,G))&&t.isCustomEmoji&&(X=t.emojiId),X?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+X+">"):document.createTextNode(G);y=X.cloneNode(!1);for(var w=0;w<X.childNodes.length;++w){var z=ZRl(X.childNodes[w],t,G);z&&y.appendChild(z)}return y};
Wv=function(X){return X?Qj(X)?X:Wv(X.lastChild):null};
qNY=function(X){return X?Qj(X)?X:qNY(X.firstChild):null};
C9l=function(X){if(!X)return null;for(var t=X.previousSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.previousSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.previousSibling;else break;(t=Wv(t))?X=t:X=(X=X.parentNode)?Wv(X.previousElementSibling):null;return X};
KRV=function(X){if(!X)return null;for(var t=X.nextSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.nextSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.nextSibling;else break;return(t=qNY(t))?t:KRV(X.parentNode)};
ORs=function(X){var t=_.cv(),G=t.JSC$11223_getStartNode();if(!SNl(G.parentNode))return null;t=t.JSC$11223_getStartOffset();if(G.nodeType===Node.TEXT_NODE){var y=_.xT(G,Qj);if(y){if(X&&t===0||!X&&t===G.length)return y}else{if(X&&t===G.length)return!G||G.nodeName==="BR"||G.nextElementSibling&&_.py(G.nextElementSibling,"display")==="block"?null:qNY(G.nextElementSibling);if(!X&&t===0)return G?Wv(G.previousElementSibling):null}}if(G.nodeType===Node.ELEMENT_NODE)if(X){if(0<=t&&t<G.childNodes.length)return qNY(G.childNodes[t])}else if(0<
t&&t<=G.childNodes.length)return Wv(G.childNodes[t-1]);return null};
u8V=function(X,t,G){if(!X)return null;if(X.nodeType===Node.TEXT_NODE)if(G){var y=C9l(X);if(y&&!/^\s+\S/.test(X.wholeText.substr(0,t)))return y}else if((y=KRV(X))&&!/\S\s+/.test(X.wholeText.substr(t,X.wholeText.length)))return y;return X.nodeType===Node.ELEMENT_NODE?G?C9l(X.childNodes[t]):KRV(X.childNodes[t]):u8V(X.parentNode,t,G)};
QtV=function(X){if(X.hasChildNodes())switch(X.tagName){case "DIV":case "A":case "SPAN":var t="";for(X=X.firstChild;X;X=X.nextSibling)t+=QtV(X);return t;default:return""}else switch(X.nodeType){case 3:return X.textContent;default:return""}};
r2=function(X,t){return X.year===t.year&&X.month===t.month&&X.day===t.day};
Ns=function(X,t){return X.year!==t.year?X.year<t.year:X.month!==t.month?X.month<t.month:X.day<t.day};
I2Y=function(X){return{year:X.getFullYear(),month:X.getMonth(),day:X.getDate()}};
WRl=function(X){var t=MOw;t=t===void 0?MOw:t;t(new Date(X.year,X.month,X.day))};
Pv=function(X){return I2Y(new Date(Number(X.seconds)*1E3))};
cdl=function(X){return X.year!==void 0&&X.month!==void 0&&X.day!==void 0};
p9l=function(X){return X.start!==void 0&&X.end!==void 0};
rd6=function(X){return p9l(X)?X.start:X};
N7E=function(X){return p9l(X)?X.end:void 0};
Ek_=function(X,t){for(var G=[],y=new Date(X.start.year,X.start.month);y.getFullYear()<X.end.year||y.getFullYear()===X.end.year&&y.getMonth()<=X.end.month;){var w=G,z=w.push,B=y.getFullYear(),V=y.getMonth(),b=X,e=t,g=void 0,F=[],T=Object.freeze({extraCssClass:"invisible"}),D=new Date(B,V),h=I2Y(D);D=D.getDay();for(var u=I2Y(new Date);h.month===V;){D!==P9s&&g||(g=Array.from({length:7}).fill(T),F.push(g));var W={date:{year:B,month:V,day:h.day},extraCssClass:"",debugClass:""};W.extraCssClass=e(W.date,
h,u,b).trim();g[(D-P9s+7)%7]=W;h=h.day===gkG(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};D=(D+1)%7}z.call(w,{weeks:F,monthLabel:Ee.SHORTMONTHS[V]+" "+B,year:B,month:V,monthLabelExtraCssClass:F[0][2]===T?"shift-down-label":""});y.setMonth(y.getMonth()+1)}return G};
U5Y=function(X,t){t=t.months.findIndex(function(G){return G.year===X.year&&G.month===X.month});
return t>=0?t:void 0};
REA=function(X,t){a:{var G=G===void 0?[2,3]:G;G=_.J(G);for(var y=G.next();!y.done;y=G.next()){var w=new Date;if((new m50(y.value)).parse(t,w,{validate:!0})){w.setHours(0,0,0,0);t=w;break a}}t=null}if(!t)return{isValid:!1,value:void 0};t=I2Y(t);G=X.end;return Ns(t,X.start)||Ns(G,t)?{isValid:!1,value:void 0}:{isValid:!0,value:t}};
l20=function(X){var t=iRY;t=t===void 0?LRJ:t;var G=X.columnsToShow||[],y=vkh(X.columnDimensions,X.columnsToShow,X.leftFloatingColumns,t);return G.map(function(w,z){var B=X.columns[w];if(B===void 0)throw Error("Nh");var V=y?y[z]:"";var b=X.getCustomTooltip?X.getCustomTooltip(w,B.headerTooltipParagraphs):B.headerTooltipParagraphs;var e=a2J(X,w);return{type:w,index:z,style:V,classes:e,headerName:B.headerName||"",headerIcon:B.headerIcon,headerTooltipParagraphs:b||[],headerTooltipHelpContext:B.headerTooltipHelpContext,
sortOrders:B.sortOrders||[],selectionState:B.isSelectionCheckbox?X.selectionState:void 0}})};
a2J=function(X,t){var G=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],y=X.columns[t];if(y===void 0)return"";var w=G.includes("DEFAULTS")&&y.cssClass?[y.cssClass]:[];if(G.includes("SORTING")){y.sortOrders&&y.sortOrders.length&&w.push("sortable");if(X.sorting&&X.sorting.columnType===t)a:switch(X.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var z="column-sorted";break a;default:z=""}else z="";z&&w.push(z)}G.includes("FLOATING")&&(t=X.columnsToShow.indexOf(t),X.leftFloatingColumns&&t<X.leftFloatingColumns&&
w.push("floating-column"),X.leftFloatingColumns&&t===X.leftFloatingColumns-1&&w.push("last-floating-column"));G.includes("RIGHT_ALIGN")&&y.rightAlignHeader&&w.push("right-align");return w.filter(function(B){return B}).join(" ")};
vkh=function(X,t,G,y){G=G===void 0?0:G;y=y===void 0?LRJ:y;if(X){var w=[],z=0;x56(X,t,y).forEach(function(B,V){var b="min-width:"+B.minWidth+"px;padding-left:"+B.paddingLeft+"px;padding-right:"+B.paddingRight+"px;flex:"+B.flexGrow+" 0 "+B.minWidth+"px;";B.maxWidth!==Infinity&&(b=[b,"max-width:"+B.maxWidth+"px;"].join(""));z>0&&V<G&&(b=[b,"left:"+z+"px;"].join(""));w.push(b);z+=B.minWidth+B.paddingLeft+B.paddingRight});
return w}};
x56=function(X,t,G){G=G===void 0?LRJ:G;return t.map(function(y,w){y=X&&X[y]||{};var z=w===0?G.paddingLeftFirstColumn:G.padding;y.paddingLeft!==void 0&&(z=y.paddingLeft);w=w===t.length-1?G.paddingRightLastColumn:G.padding;y.paddingRight!==void 0&&(w=y.paddingRight);return{paddingLeft:z,paddingRight:w,minWidth:y.minWidth!==void 0?y.minWidth:G.minWidth,maxWidth:y.maxWidth!==void 0?y.maxWidth:G.maxWidth,flexGrow:y.flexGrow!==void 0?y.flexGrow:G.flexGrow}})};
f20=function(X){var t=X.reduce(function(y,w){var z=w.columnId,B={};w.headerText&&(B.headerName=_.bu(w.headerText));w.rightAlignHeader&&(B.rightAlignHeader=w.rightAlignHeader);var V;if((V=w.headerIcon)==null?0:V.iconType)B.headerIcon=_.Q2(w.headerIcon.iconType);y[z]=B;return y},{}),G=X.filter(function(y){return!y.hideColumn}).map(function(y){return y.columnId});
X=X.filter(function(y){return!!y.dimensions}).reduce(function(y,w){y[w.columnId]=w.dimensions;
return y},{});
return{columns:t,columnsToShow:G,columnDimensions:X}};
_.MpV=function(X){return X?X.simpleText?X.simpleText:X.runs?X.runs.map(function(t){return t.text}).join(""):"":""};
y$0=function(X){var t=X.data;var G=X.onTap;var y=X.isSelected;var w=X.onFocusIn;if(!t)return{};X=XGs(t);y===void 0&&(y=t==null?void 0:t.isSelected);var z;return{text:$H_(t,X),startIcon:(z=t.icon)==null?void 0:z.iconType,state:y?0:2,type:0,onTap:tn6(t,G),accessibilityLabel:GJw(t,X),onFocusIn:function(){return w==null?void 0:w()}}};
$H_=function(X,t){if(!t)return X.text?_.MpV(X.text):void 0};
tn6=function(X,t){return function(G){t==null||t(G,X)}};
XGs=function(X){X=X.style&&X.style.styleType;return!ky&&X==="STYLE_EXPLORE_LAUNCHER_CHIP"};
GJw=function(X,t){if(t){var G,y,w;return(w=(G=X.accessibilityData)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label)!=null?w:$H_(X,!1)}};
Ue=function(X){return{signalAction:{signal:X}}};
HjA=function(){return _.Md("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?wGf:_.zn_};
ozG=function(X,t){X=X===void 0?"SOFT_RELOAD_PAGE":X;t=t===void 0?49504:t;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Ag(_.Qf("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:t}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:X}}]}}}};
J$s=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Ag(_.Qf("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:HjA()}};
BJ_=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Ag(_.Qf("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:HjA()}};
nzV=function(X,t){var G=_.Ag(_.Qf("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),y=_.Ag(_.Qf("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),w={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Ag(_.Qf("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};w.serviceEndpoint=X?X:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Ue("SOFT_RELOAD_PAGE")]}};return{title:G,bodyText:y,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:w},
style:{value:t!=null?t:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
bj6=function(X){X=X===void 0?{}:X;return{title:_.Ag(X.localizedZeroStateTitleText===void 0?"":X.localizedZeroStateTitleText),bodyText:_.Ag(X.localizedZeroStateMessage===void 0?"":X.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ag(X.localizedZeroStateButtonText===void 0?"":X.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[Vnw]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
dH0=function(X){X=X===void 0?{}:X;return{title:_.Ag(X.localizedOptInBannerTitleText===void 0?"":X.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Ag(X.localizedOptInMessage===void 0?"":X.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ag(_.Qf("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:_.Ag(_.Qf("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:[kJw]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
gzG=function(X,t){var G=t=t===void 0?{}:t;t=G.offlineTitleText===void 0?"":G.offlineTitleText;var y=G.offlineDescriptionText===void 0?"":G.offlineDescriptionText,w=G.formattedSupplementalText,z=G.actionButtonText===void 0?"":G.actionButtonText,B=G.titleText===void 0?"":G.titleText;G=G.descriptionText===void 0?"":G.descriptionText;var V={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.Ag(z),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};X||(B=t,G=y,V={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.Ag(z),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.Ag(B),titleLength:B.length,overrideTitleMaxFontSize:30,subtitle:_.Ag(G),supplementalText:w,primaryButton:{buttonRenderer:V},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},
tileImage:{thumbnails:[enA]},darkTileImage:{thumbnails:[jXV]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.A$w=function(X,t,G,y,w,z,B,V,b,e,g){w=w===void 0?!1:w;z=z===void 0?!1:z;B=B===void 0?0:B;V=V===void 0?-Infinity:V;b=b===void 0?!1:b;e=e===void 0?!1:e;g=g===void 0?!1:g;var F=[],T=_.Ag(_.Qf("SMART_DOWNLOADS",void 0,"Smart downloads")),D=_.Ag(FLs(B,V,X.length));V=B=void 0;e?B={statementBannerRenderer:gzG(g,y)}:w?X.length>0?V=TJV(X,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.A("kevlar_manual_downloads_above"),T,D):b?V={alertBannerViewModel:{heading:{content:G.localizedOptInBannerTitleText===
void 0?"":G.localizedOptInBannerTitleText},body:{content:G.localizedPromptMessage===void 0?"":G.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Qf("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Qf("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:_.bcE}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:z&&(V={backgroundPromoRenderer:{bodyText:_.Ag(_.Qf("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"}}}):
z&&(V={alertBannerViewModel:{heading:{content:G.localizedOptInBannerTitleText===void 0?"":G.localizedOptInBannerTitleText},body:{content:G.localizedOptInMessage===void 0?"":G.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Qf("TURN_ON",void 0,"Turn on"),accessibilityText:_.Qf("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}}}}}});G=_.Ag(_.Qf("YOUR_DOWNLOADS",void 0,"Your downloads"));y=void 0;t.length>0?(y=void 0,_.A("kevlar_display_downloads_numbers")&&(y=_.Ag(_.Ia("VIDEO_COUNT",t.length))),y=TJV(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,G,y)):w||X.length||
e||(y={backgroundPromoRenderer:{bodyText:_.Ag(_.Qf("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}}}});B?F.push({richSectionRenderer:{content:B}}):V&&!_.A("kevlar_manual_downloads_above")&&F.push({richSectionRenderer:{content:V,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
y&&F.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:51721}}}});V&&_.A("kevlar_manual_downloads_above")&&F.push({richSectionRenderer:{content:V,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(t.length>0||w&&X.length>0&&!e)&&F.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Ag(_.Qf("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:F}};
_.sXh=function(X){return Y3V(X,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.DH_=function(X){return Y3V(X,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Y3V=function(X,t){var G=[];X=TJV(X,t,!0);G.push({richSectionRenderer:{content:X}});return{contents:G}};
TJV=function(X,t,G,y,w){G=G===void 0?!1:G;var z="RESPONSIVE_SIZE_STANDARD";_.A("kevlar_modern_downloads_compact")?z="RESPONSIVE_SIZE_COMPACT":_.A("kevlar_modern_downloads_extra_compact")&&(z="RESPONSIVE_SIZE_EXTRA_COMPACT");X={isExpanded:G,contents:mM(X),entitySelectorType:t,responsiveContainerConfiguration:{responsiveSize:z}};y&&(X.title=y);w&&(X.subtitle=w);G||(_.A("kevlar_smart_downloads_show_more_button")?(X.showMoreButton={buttonRenderer:{accessibility:{label:_.Qf("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Ag(_.Qf("SHOW_MORE",void 0,"Show more"))}},X.showLessButton={buttonRenderer:{accessibility:{label:_.Qf("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Ag(_.Qf("SHOW_LESS",void 0,"Show less"))}}):(X.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Qf("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}}}},X.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Qf("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}}}},X.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Qf("VIEW_ALL",void 0,"View all"),accessibilityText:_.Qf("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:FV("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:X}};
mM=function(X){var t=[];X=_.J(X);for(var G=X.next();!G.done;G=X.next())if(G=G.value,l9w(G)){var y=t,w=y.push;var z=void 0;if(G==null?0:(z=G.videoEntity)==null?0:z.videoId){z=yl(_.dV().getState(),G.videoEntity.videoId);var B=_.dV().getState();var V=_.Cg(G.videoEntity.videoId,"mainVideoEntity");B=!!_.R$(B.entities)[V];B={videoId:G.videoEntity.videoId,title:Y0(G.videoEntity.title),shortBylineText:Y0(G.channelEntity.title),thumbnail:G.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:B&&_.A("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:hF0(G.videoEntity.videoId,z,G.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Qf("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};G.videoEntity.lengthSeconds&&(B.thumbnailOverlays=g6s(G.videoEntity.lengthSeconds,z));B.isWatched=z>0;_.A("kevlar_modern_downloads_page")&&(B.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:G.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Qf("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},B.badges=void 0);G=B}else G={};w.call(y,{richItemRenderer:{content:{videoRenderer:G},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(a96(G)){y=t;w=y.push;var b=V=z=void 0,e=void 0,g=void 0,F=void 0,T=void 0,D=void 0,h=void 0,u=void 0,W=void 0,c=void 0;B=G.mainPlaylistEntity.playlistId;var P=G==null?void 0:(c=G.mainPlaylistEntity)==null?void 0:(W=c.thumbnailStyleData)==null?void 0:(u=W[0])==null?void 0:(h=u.value)==null?void 0:(D=h.collageThumbnail)==
null?void 0:D.coverThumbnail;if(B&&P){D=ZB0(B);!_.A("enable_offline_playlist_page")&&(G==null?0:(T=G.mainPlaylistEntity)==null?0:T.videos)&&(T=G==null?void 0:(F=G.mainPlaylistEntity)==null?void 0:(g=F.videos)==null?void 0:g[0],g=_.hg(T).entityId,g=JSON.parse(g).videoId,g!==void 0&&(F=yl(_.dV().getState(),g),D=_.TG(g,B,void 0,void 0,F)));g=[];if(G==null?0:(e=G.mainPlaylistEntity)==null?0:(b=e.videos)==null?0:b.length)g=[fBs(),Object.assign({},(V=xPJ(G==null?void 0:G.mainPlaylistEntity.videos.length))!=
null?V:{})];G={playlistId:B,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:P}},navigationEndpoint:D,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:g,title:Y0(G.mainPlaylistEntity.title),shortBylineText:Y0(G==null?void 0:(z=G.channelEntity)==null?void 0:z.title),badges:[{metadataBadgeRenderer:{label:_.Qf("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.A("kevlar_modern_downloads_page")&&(G.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:S3f,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:B,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Qf("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},G.badges=void 0)}else G=void 0;w.call(y,{richItemRenderer:{content:{playlistRenderer:G},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return t};
FLs=function(X,t,G){X=X?hns(X):"";t!==void 0&&isFinite(t)?t===0?t=_.Qf("UPDATING",void 0,"Updating..."):(t=jI0(new Date(t),new Date),t=_.Qf("UPDATED_TIME",{relative_time:t},"Updated "+t)):t="";var y="";X&&t&&(y=" \u2022 ");if(G&&_.A("kevlar_display_downloads_numbers")){G=_.Ia("VIDEO_COUNT",G);if(X||t)y=" \u2022 ";return G+y+X+y+t}return X+y+t};
Zjv=function(X){return PYs(X.entities).length};
_.q3Y=function(X,t){var G=utJ(X.responsiveSize),y;X=!((y=X.responsiveMap)==null||!y.some(function(w){return w.containerSize==="CONTAINER_SIZE_NARROW"&&w.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:t,sizing:G,enableFullBleedForSingleCol:!1,isCompactList:G==="COMPACT"&&X}};
CrV=function(X,t){return _.Kg(X.entities,"votingEntity",t)};
KLY=function(X){if(X){var t;return((t=_.gw().resolve(_.jH(_.kI)))==null?0:t())?X.darkTheme:X.lightTheme}};
OjA=function(X,t){if(X.simpleText)return Object.assign({},X,{simpleText:nX(X.simpleText,t)});if(!X.runs)return X;for(var G=Object.assign({},X,{runs:[]}),y=0,w=_.J(X.runs),z=w.next();!z.done;z=w.next())if(z=z.value,z.text)if(y+z.text.length<=t)G.runs.push(z),y+=z.text.length;else return G.runs.push(Object.assign({},z,{text:nX(z.text,t-y)})),G;return X};
uGV=function(X,t){return _.Kg(X.entities,"chipBarStateEntity",t)};
QXE=function(X,t){return _.Kg(X.entities,"chipEntity",t)};
WL6=function(X,t,G,y){return function(){var w=I$h.has(X.displayType)&&X.selected,z=w&&X.deselectCommand?X.deselectCommand:X.tapCommand;!z||w&&y||_.JH(z,{form:{element:t==null?void 0:t.value}});G==null||G()}};
c$_=function(X){switch(X){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
pGf=function(X,t){return{triggeringElement:X,onDwellTriggeredFn:function(){var G={triggeringElement:X,loadVideoPreviewEventData:t},y=document.querySelector(".video-preview");y&&y.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:G}))},
onDwellEndFn:function(){var G=document.querySelector(".video-preview");G&&G.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
r$l=function(X,t){var G=_.gw().resolve(_.jH(FrG)),y=function(){var w=t();return G&&w?pGf(X.value,w):null};
_.Em(function(){var w=y();G&&w&&Promise.resolve().then(function(){G.registerElement(w)});
_.Um(function(){G&&w&&Promise.resolve().then(function(){_.Bv(G,w)})})},"csPUge")};
PrA=function(X){var t=X.dataset.resizeObserverId;if(t)return t;t=""+NJA++;return X.dataset.resizeObserverId=t};
EzA=function(X,t){var G=PrA(X);RD.has(G)||RD.set(G,new Set);RD.get(G).add(t);i7.has(G)&&t(Object.assign({},{target:X},i7.get(G)))};
UHG=function(X){X=_.J(X);for(var t=X.next();!t.done;t=X.next()){t=t.value;var G=PrA(t.target),y=Object.assign({},{target:t.target},i7.get(G));if(y!=null&&y.contentRect?y.contentRect.width!==t.contentRect.width||y.contentRect.height!==t.contentRect.height:1)for(i7.set(G,{borderBoxSize:t.borderBoxSize,contentBoxSize:t.contentBoxSize,contentRect:t.contentRect,devicePixelContentBoxSize:t.devicePixelContentBoxSize}),G=_.J(RD.get(G)||[]),y=G.next();!y.done;y=G.next())y=y.value,y(t)}};
RnA=function(){return Ly?Ly:Ly=new mHf(UHG)};
ijV=function(X,t){var G=PrA(X);RD.has(G)&&(RD.get(G).delete(t),RD.get(G).size===0&&(RD.delete(G),i7.delete(G),Ly.unobserve(X),delete X.dataset.resizeObserverId));RD.size===0&&Ly&&(Ly.disconnect(),Ly=void 0)};
vzl=function(X,t){var G=_.gw().resolve(ji);return LLJ.map(function(y){return G.observe(X,t,y)})};
a$w=function(X){var t=_.gw().resolve(ji);X.forEach(function(G){t.unobserveByKey(G)})};
_.f$6=function(X,t){var G=Object.assign({},l$s,t);t=_.J(dj6());var y=t.next().value,w=t.next().value,z=function(B){var V=B.contentRect.height;if((B=B.contentRect.width)||V||G.canHaveZeroSize)y.width()===B&&y.height()===V||w(y,{height:V,width:B})};
_.LY(function(){var B=X instanceof HTMLElement?X:X.value,V=xHG(z,G.throttleMs),b=[];G.useVisibilityObserver&&(b=vzl(B,function(e,g){requestAnimationFrame(function(){g==="visible"?(EzA(B,V),RnA().observe(B)):ijV(B,V)})}));
b.length||(EzA(B,V),RnA().observe(B));_.Um(function(){b.length&&(a$w(b),b.length=0);ijV(B,V)})});
return y};
Xu0=function(X){var t=X.data;var G=X.callback;var y=X.enableSingleChipSelection;var w=X.disableChipsScrollAnimation;var z=_.VN("div"),B=a2(!1),V=a2(0);X={};X=_.J(r5(t.autoselectedChipIndex!=null?(X[t.autoselectedChipIndex]=!0,X):{}));var b=X.next().value,e=X.next().value,g=function(){var BY=z.value;return BY==null||BY.scrollLeft-1<=0},F=function(){var BY=z.value;
return BY==null?!1:BY.scrollLeft+1>=(BY==null?NaN:BY.scrollWidth)-(BY==null?NaN:BY.clientWidth)};
X=_.J(r5(g()));var T=X.next().value,D=X.next().value;X=_.J(r5(F()));var h=X.next().value,u=X.next().value;X=t.isHorizontallyScrollable;var W=function(BY){z.value!=null&&(_.Md("HTML_DIR")==="rtl"&&(BY=-BY),z.value.scrollBy({left:BY,behavior:w?"instant":"smooth"}))},c=function(){W(-320)},P=function(){W(320)},l=_.NI(function(BY){B.value=!0;
V.value=BY.clientX}),R=_.NI(function(BY){if(B.value){BY=BY.clientX;
var kJ=BY-V.value;V.value=BY;var Ss;(Ss=z.value)==null||Ss.scrollBy({left:-kJ})}}),L=_.NI(function(){var BY=g(),kJ=F();
BY!==T&&D(BY);kJ!==h&&u(kJ)});
ei("pointerup",function(){B.value&&(B.value=!1)});
var x={},w6={};return _.k("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},JW(t.title,function(){return _.k("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.k("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},t.title),Mnv(t.overflowButton))}),_.k("div",{class:"ytChipsShelfViewModelChipsShelfContent"},JW(t.previousButton!=null,function(){var BY={};
return _.k("div",{class:_.pX("ytChipsShelfViewModelLeftArrowContainer",(BY.ytChipsShelfViewModelLeftArrowContainerIsHidden=T,BY))},Mnv(t.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:c}}))}),_.k("div",{el:z,
"on:pointerdown":l,"on:pointermove":R,"on:scroll":L,class:_.pX("ytChipsShelfViewModelChipsScrollContainer",(x.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!X,x))},_.k("div",{class:_.pX("ytChipsShelfViewModelChipsContainer",(w6.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!X,w6.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!X&&!1,w6)),role:"tablist"},(t.contents||[]).map(function(BY,kJ){return _.k("div",{class:"ytChipsShelfViewModelChipWrapper"},
Mnv(BY,{chipViewModel:{callback:function(Ss,C_){if(y){var Fv={};e((Fv[kJ]=C_,Fv))}else Fv={},e(Object.assign({},b,(Fv[kJ]=C_,Fv)));G==null||G(Ss,C_,kJ)},
disableDeselection:y,selected:!!b[kJ]}}))}))),JW(t.nextButton!=null,function(){var BY={};
return _.k("div",{class:_.pX("ytChipsShelfViewModelRightArrowContainer",(BY.ytChipsShelfViewModelRightArrowContainerIsHidden=h,BY))},Mnv(t.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:P}}))})))};
t6V=function(X,t,G,y,w){X=t?X.switchOffCommand:X.switchOnCommand;if(y&&w)$2A(X,G,w);else{var z,B;(z=_.Hl({elementsCommand:X}))==null||(B=z.onclick)==null||B.call(z,G)}};
$2A=function(X,t,G){X=_.Hl({elementsCommand:X,additionalCommandArgs:{commandController:{onSuccess:function(){G(!1)},
onServerError:function(){G(!1)}}}});
if(X==null?0:X.onclick)X.onclick(t),G(!0)};
yn6=function(X){if(X)return _.Y(X,Gnh)};
JnE=function(X,t,G){if(t)return[wul];switch(X){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[vv];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return G?[vv]:[z6h,vv];case "TRANSFER_STATE_PAUSED_BY_USER":return[HO6,vv];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[oil,vv];default:return[wul]}};
BCf=function(X,t,G,y){return JnE(X,t,y).map(function(w){var z=w.text,B=w.iconType,V=w.videoAction;w=w.playlistAction;z=z?{content:z}:void 0;B=B&&{sources:[{clientResource:{imageName:B}}]};var b=(0,_.RH.unsafeClone)(G);if(b){var e=_.Y(b,_.ck),g=_.Y(b,_.p5);e&&V?e.action=V:g&&w&&(g.action=w)}return{title:z,leadingImage:B,rendererContext:b&&{commandContext:{onTap:{innertubeCommand:b}}}}})};
ni_=function(X){X=_.yj(X.rendererContext);var t;return(t=_.Y(X,_.p5))==null?void 0:t.playlistId};
V66=function(X){var t;return(t=X.listItems)==null?void 0:t.some(function(G){var y;return _.w2((y=_.Y(G,_.mA))==null?void 0:y.rendererContext)})};
d2v=function(X){var t;return(t=X.listItems)==null?void 0:t.some(function(G){var y,w,z=(w=(y=_.Y(G,bOV))==null?void 0:y.defaultListItem)!=null?w:G;G=_.Y(z,_.mA);return!!_.Y(G==null?void 0:G.leadingAccessory,kn6)})};
gi_=function(X){var t=X.element;var G=X.veType;var y=X.storedVisualElement===void 0?null:X.storedVisualElement;var w=X.elementIndex===void 0?0:X.elementIndex;X=X.clientYouTubeData;var z=_.lw();z!==e6w&&(jgv.clear(),e6w=z);if(t.visualElement&&jgv.has(t.visualElement))return null;if(y&&jgv.has(y))return t.visualElement=y,null;G=_.Ni(_.Pj(),{veType:G,elementIndex:w,clientYouTubeData:X});if(!G)return null;t.visualElement=G;jgv.add(G);return G};
_.aD=function(X,t,G,y){G=G===void 0?null:G;y=y===void 0?OA0:y;var w=w===void 0?null:w;xF(function(){if(t){G instanceof Function&&(G=G());var z=gi_({element:t,veType:X,storedVisualElement:G,clientYouTubeData:void 0});z&&(IXf(t,w),y(z))}})};
l7=function(X,t){if(X){switch(t){case 0:X=X.primaryTitleColor;break;case 1:X=X.secondaryTitleColor;break;case 2:X=X.surgeColor;break;case 3:X=X.section2Color;break;case 4:X=X.section3Color;break;default:return}if(X)return _.Gq(X)}};
FJh=function(X){return X?_.yY(X):""};
TC6=function(X){return(X==null?void 0:X.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
An0=function(X,t){var G;return"linear-gradient(to bottom, "+((G=t==null?void 0:t.map(function(y){var w=X?y.darkThemeColor:y.lightThemeColor;return w?_.yY(w)+" "+((y==null?void 0:y.startLocation)||0)*100+"%":"transparent"}))==null?void 0:G.join(", "))+")"};
Y4V=function(X,t,G,y,w){if(!((y==null?0:y.height)&&(y==null?0:y.width)))return{size:0};var z=y.width;y=y.height;if(w)return t==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&z>y?{size:312/mbG}:t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(G!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||X!==1&&X!==2||t!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&t!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&t!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(t==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||y===z)switch(X){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||y>z)switch(X){case 1:case 3:return{size:240*UbE};default:return{size:360*UbE}}switch(X){case 1:case 2:return{size:1/mbG*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.sgh=function(X){if(!("matchMedia"in window))return _.yQ(Error("Oh")),function(){return!1};
var t=window.matchMedia(X);X=_.J(_.sm(t.matches,void 0,"jLJc8e"));var G=X.next().value,y=X.next().value,w=function(z){y(z.matches)};
t.addEventListener?(t.addEventListener("change",w),_.Um(function(){t.removeEventListener("change",w)})):t.addListener&&(t.addListener(w),_.Um(function(){t.removeListener(w)}));
return G};
D2Y=function(X){return X==="IMAGE_BANNER_STYLE_INSET"||X==="IMAGE_BANNER_STYLE_UNKNOWN"};
S4V=function(){if(!("matchMedia"in window))return _.yQ(Error("Oh")),function(){return 0};
var X=v0(function(){return window.matchMedia("(max-width: 527.9px)")}),t=v0(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),G=v0(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),y=v0(function(){return window.matchMedia("(min-width: 1024px)")}),w=_.J(_.sm(X.matches,void 0,"og9kEc")),z=w.next().value,B=w.next().value;
w=_.J(_.sm(t.matches,void 0,"ybDWCb"));var V=w.next().value,b=w.next().value;w=_.J(_.sm(G.matches,void 0,"o0Gfh"));var e=w.next().value,g=w.next().value;w=_.J(_.sm(y.matches,void 0,"yqUUgd"));var F=w.next().value,T=w.next().value,D=v0(function(){return function(c){B(c.matches)}}),h=v0(function(){return function(c){b(c.matches)}}),u=v0(function(){return function(c){g(c.matches)}}),W=v0(function(){return function(c){T(c.matches)}});
_.LY(function(){X.addEventListener?(X.addEventListener("change",D),t.addEventListener("change",h),G.addEventListener("change",u),y.addEventListener("change",W)):X.addListener&&(X.addListener(D),t.addListener(h),G.addListener(u),y.addListener(W));_.Um(function(){X.removeEventListener?(X.removeEventListener("change",D),t.removeEventListener("change",h),G.removeEventListener("change",u),y.removeEventListener("change",W)):X.removeListener&&(X.removeListener(D),t.removeListener(h),G.removeListener(u),
y.removeListener(W))})});
return function(){return z()?1:V()?2:e()?3:F()?4:0}};
h6l=function(X){var t=0;X=_.J([X.title,X.metadata,X.actions,X.description,X.attribution]);for(var G=X.next();!G.done;G=X.next())G.value&&t++;return t};
ZOf=function(X){return X===1||X===2?1:0};
CPh=function(X){var t,G=((t=_.gw().resolve(_.jH(_.kI)))==null?0:t())&&X.data.darkThemeImage?X.data.darkThemeImage:X.data.image;t=_.k("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.k("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},G?_.k(_.gr,{data:G,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),q46(X.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));G=_.k(_.eh,{text:X.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var y=X.data;if(y.bodyText){var w=[];y=_.J(y.bodyText);for(var z=y.next();!z.done;z=y.next())w.push(_.k(_.eh,{text:z.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else w=_.k(_.gn,null);return _.k("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},t,G,w,q46(X.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.k(_.eh,{text:X.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.k(_.eh,{text:X.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
OO_=function(X){X=(new KJl).parse(X);return(new CE).render(X).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(t){var G=t.split(":").map(Number),y=0,w=0;if(G.length===3)G=_.J(G),y=G.next().value,w=G.next().value,G=G.next().value;else if(G.length===2)G=_.J(G),w=G.next().value,G=G.next().value;else if(G.length===1)G=_.J(G).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(y*3600+w*60+G)+'" role="button">'+t+"</span>"})};
uns=function(X){X=_.J(X.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var t=X.next(),G={};!t.done;G={clickHandler$jscomp$4:void 0},t=X.next()){t=t.value;G.clickHandler$jscomp$4=function(w){w=Number(w.target.getAttribute("data-time"));if(isNaN(w))throw Error("Qh");var z;(z=_.QE())==null||z.seekTo(w,!0)};
var y=function(w){return function(z){z.key!=="Enter"&&z.key!=="Space"||(0,w.clickHandler$jscomp$4)(z)}}(G);
t.setAttribute("tabindex","0");t.removeEventListener("click",G.clickHandler$jscomp$4);t.removeEventListener("keydown",y);t.addEventListener("click",G.clickHandler$jscomp$4);t.addEventListener("keydown",y)}};
Qgw=function(){return _.k("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.k(xy,{percentWidth:100}),_.k(xy,{animationDelay:200}),_.k(xy,{animationDelay:400}),_.k(xy,{animationDelay:600}),_.k(xy,{animationDelay:800,percentWidth:60}),_.k("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.k(xy,{percentWidth:100}),_.k(xy,{animationDelay:200}),_.k(xy,{animationDelay:400}),_.k(xy,{animationDelay:600,percentWidth:50}))};
xy=function(X){return _.k("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(X.percentWidth===void 0?100:X.percentWidth)+"%"},_.k("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(X.animationDelay===void 0?0:X.animationDelay)+"ms"}))};
I5J=function(){var X=_.J(_.sm(function(){return""},void 0,"v2wS5e")),t=X.next().value;
return[function(){return t()()},
X.next().value]};
WJE=function(X,t){X=X?hns(X):"";t!==void 0&&isFinite(t)?t===0?t=_.Qf("UPDATING",void 0,"Updating..."):(t=jI0(new Date(t),new Date),t=_.Qf("UPDATED_TIME",{relative_time:t},"Updated "+t)):t="";var G="";X&&t&&(G=" \u2022 ");return _.Ag(X+G+t)};
rnh=function(X,t,G,y,w,z){t=t===void 0?0:t;var B=cnJ[t],V=B.title,b=B.iconType,e=B.topButtonRenderer,g=B.sectionClientVE;B=B.videoClientVE;var F;if(t!==1||X.length){G=[];X=_.J(X);for(y=X.next();!y.done;y=X.next()){var T=y.value;if(l9w(T))G.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:T.videoEntity.videoId,title:Y0(T.videoEntity.title),shortBylineText:Y0(T.channelEntity.title),thumbnail:T.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:T.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Qf("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:B}}}}}});else if(a96(T)){y=G;var D=y.push;var h=void 0,u=void 0,W=void 0,c=void 0,P=void 0,l=void 0,R=void 0,L=void 0,x=T.mainPlaylistEntity.playlistId,w6=T==null?void 0:(L=T.mainPlaylistEntity)==null?void 0:(R=L.thumbnailStyleData)==null?void 0:(l=R[0])==null?void 0:(P=l.value)==null?void 0:(c=P.collageThumbnail)==null?void 0:c.coverThumbnail;c=ZB0(x);if(!_.A("enable_offline_playlist_page")&&
(T==null?0:(W=T.mainPlaylistEntity)==null?0:W.videos)){b:{W=T==null?void 0:(u=T.mainPlaylistEntity)==null?void 0:u.videos;u=_.dV().getState().entities;if(W!=null&&W.length&&u)for(W=_.J(W),P=W.next();!P.done;P=W.next())if(P=_.hg(P.value).entityId,(P=JSON.parse(P).videoId)&&rZv(u,P)==="TRANSFER_STATE_COMPLETE"){u=P;break b}u=""}u!==void 0&&(c=yl(_.dV().getState(),u),c=_.TG(u,x,void 0,void 0,c))}u=CS0(_.Qf("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ZB0(x));T=x&&w6&&u?{playlistId:x,navigationEndpoint:c,
viewPlaylistText:u,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:w6}},title:Y0(T.mainPlaylistEntity.title),shortBylineText:Y0(T==null?void 0:(h=T.channelEntity)==null?void 0:h.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:pu0,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:x,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Qf("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:B}}}:
void 0;D.call(y,{gridPlaylistRenderer:T})}}B={gridRenderer:{items:G}};t===1&&(F=WJE(w,z))}else if(y){var BY=_.Ag((D=G==null?void 0:G.localizedPromptMessage)!=null?D:"");B={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ag(_.Qf("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.bcE}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ag(_.Qf("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};F=WJE(w,z)}else BY=_.Ag(_.Qf("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
B={};return{contents:[{shelfRenderer:{title:V,titleAnnotation:F,icon:{iconType:b},subtitle:BY,content:B,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:e}]}}}}],loggingDirectives:{clientVeSpec:{uiType:g}}}};
NC_=function(X,t,G,y,w,z,B,V,b,e,g){G=G===void 0?{}:G;y=y===void 0?{}:y;w=w===void 0?!1:w;z=z===void 0?!1:z;B=B===void 0?!1:B;V=V===void 0?!1:V;b=b===void 0?!1:b;e=e===void 0?0:e;g=g===void 0?-Infinity:g;if(!(t.length||X.length||w||V))return z?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:bj6(G)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Ag(_.Qf("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var F=[];X.length&&F.push(rnh(X,0));V?F.push({contents:[{statementBannerRenderer:gzG(b,y)}]}):w?F.push(rnh(t,1,G,B,e,g)):z&&F.push({contents:[{statementBannerRenderer:dH0(G)}]});(w&&t.length||X.length)&&F.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Ag(_.Qf("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return F.map(function(T){return{itemSectionRenderer:T}})};
fy=function(X,t){if(typeof X!=="object")return null;X=_.J(Object.entries(X));for(var G=X.next();!G.done;G=X.next()){var y=_.J(G.value);G=y.next().value;y=y.next().value;if(G===t)return G;if(y=fy(y,t))return G+"."+y}return null};
Ms=function(X){var t=X.content;return(X=X.styleRuns)&&t?{runs:X.map(function(G){var y={text:t.slice(G.startIndex,G.startIndex+G.length)};G.fontColor&&(y.textColor=G.fontColor);return y})}:{simpleText:t}};
U2w=function(X,t,G,y){var w=PPf;y&&(X.quantity=y);if(!X.quantity||!X.maxQuantity)return{};y=X.minusButton;var z=X.plusButton,B,V,b,e;return{value:X.quantity,maxValue:X.maxQuantity,onChangeCallback:function(g){w(X,g)},
minusLabel:(B=_.Y(y,EiY))==null?void 0:B.label,minimumReachedLabel:(V=_.Y(y,EiY))==null?void 0:V.limitReachedLabel,plusLabel:(b=_.Y(z,EiY))==null?void 0:b.label,maximumReachedLabel:(e=_.Y(z,EiY))==null?void 0:e.limitReachedLabel,disabled:t,onRemoveCommand:G}};
PPf=function(X,t){var G=X.quantityIncrementerEntityKey;if(G){var y={};y.quantity=t;_.dX(_.Xc("quantityIncrementerEntity",G,y));X.onChangeCommand&&_.JH(X.onChangeCommand)}};
iOf=function(X,t){(X=m2w(X))&&(t?R6l.push({command:X,sourceData:{},commandContext:void 0}):_.gw().resolve(_.F3).resolveCommand(X))};
m2w=function(X){return _.Y(X,_.yL)};
LJG=function(){var X=window.performance.timeOrigin+window.performance.now(),t=(new _.$l).setSeconds(X/1E9);return _.Bt(t,2,_.jq(X%1E9),0)};
ti=function(X,t){var G=_.Y(_.Y(X,_.yL),vi6);G&&(t&&(G.serializedAdditionalMetadata=_.i2(t)),iOf(X,!0))};
a56=function(X){switch(X){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"}};
l5s=function(){return!!_.Md("ID_TOKEN")};
M6s=function(X){return X instanceof Error&&X.cause instanceof x2h&&X.cause.rpcErrorCode!==void 0?!f5l.includes(X.cause.rpcErrorCode):!0};
$Gf=function(){return _.ns(Xws,{authuser:""+(_.Md("SESSION_INDEX")||0)})};
GC=function(X,t,G,y){G=G===void 0?"MINI_APP_SDK_API_UNSPECIFIED":G;y=y===void 0?"":y;var w=new _.NJ;G={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:y,sdkApi:G};X instanceof Error&&(w.message=X.message,w.name=X.name,X.cause instanceof x2h&&X.cause.rpcErrorCode!==void 0&&(G.rpcErrorCode=X.cause.rpcErrorCode));var z;(z=t.onError)==null||z.call(t,{loggingError:w,metadata:G})};
GWV=function(X,t,G,y){switch(X){case "MINI_APP_SOURCE_GAMESNACKS":return new y6(t,G,y);default:return new tjs(t,G,y)}};
y2V=function(X){switch(X){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"}};
wwE=function(X){switch(X){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"}};
zyf=function(X){switch(X){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"}};
Hal=function(){return Math.floor(Math.random()*4)+1};
omG=function(X,t,G,y){X=_.J(Object.entries(X));for(var w=X.next(),z={};!w.done;z={message$jscomp$989:void 0},w=X.next()){var B=_.J(w.value);w=B.next().value;B=B.next().value;z.message$jscomp$989=B;t.push(setTimeout(function(V){return function(){y(!1);G(V.message$jscomp$989.text)}}(z),z.message$jscomp$989.delayMs));
Number(w)>0&&t.push(setTimeout(function(){y(!0)},z.message$jscomp$989.delayMs-400))}};
J2h=function(X,t){var G=G===void 0?OA0:G;_.A("mweb_fix_monitor_visibility_after_render")?X&&xF(function(){IXf(X,t,G)}):xF(function(){IXf(X,t,G)})};
Vj_=function(X){var t=X.data;var G=X.uniqueId;X=X.overrides;var y,w=((y=t.timedAnimationData)==null?void 0:y.animationTiming)||[];return _.k("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.k(B00,{settings:{uniqueId:G,timings:w,experimentEnabled:w.length>0,enabled:w.length>0}},nmv(t.buttonRenderer,{buttonRenderer:{buttonOverrides:X}})))};
ey0=function(X){baE||(baE=kWf(new _.z8(1,void 0,void 0,dG_),0));var t=baE.format(Math.floor(X));t=_.wV==="be"||_.wV==="bg"||_.wV==="es"||_.wV==="et"||_.wV==="hu"||_.wV==="ka"||_.wV==="lv"||_.wV==="pl"||_.wV==="pt-PT"||_.wV==="sq"?t.replace(new RegExp("^(\\d)"+dG_.GROUP_SEP.replace(".","\\.")+"(\\d+("+dG_.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):t;return X>=1E3&&X<=9999&&t[1]==="."&&(_.wV==="sl"||_.wV==="it")?t.replace(".",""):t};
jdl=function(X,t){Mi("ytd-button-renderer",{data:X,className:t?t.className:"",overrides:t==null?void 0:t.buttonOverrides},zh)};
T0s=function(X,t,G,y){if(X)return y=y||X.likeStatus,t?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:y==="LIKE",isDisabled:!X.likesAllowed,defaultIcon:{iconType:G},defaultText:y==="LIKE"?X.likeCountWithUnlikeText:X.likeCountText,toggledText:y==="LIKE"?X.likeCountText:X.likeCountWithLikeText,defaultNavigationEndpoint:gmJ(X,"LIKE"),defaultServiceEndpoint:Fz6(X,"LIKE"),toggledServiceEndpoint:Fz6(X,"INDIFFERENT"),defaultTooltip:_.bu(X.likeCountTooltipText),toggledTooltip:_.bu(X.likeCountTooltipText),
targetId:X.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:y==="DISLIKE",isDisabled:!X.likesAllowed,defaultIcon:{iconType:G},defaultText:y==="DISLIKE"?X.dislikeCountWithUndislikeText:X.dislikeCountText,toggledText:y==="DISLIKE"?X.dislikeCountText:X.dislikeCountWithDislikeText,defaultNavigationEndpoint:gmJ(X,"DISLIKE"),defaultServiceEndpoint:Fz6(X,"DISLIKE"),toggledServiceEndpoint:Fz6(X,"INDIFFERENT"),defaultTooltip:_.bu(X.dislikeCountTooltipText),
toggledTooltip:_.bu(X.dislikeCountTooltipText)}};
gmJ=function(X,t){if(t==="LIKE")return X.likeCommand;if(t==="DISLIKE")return X.dislikeNavigationEndpoint};
Fz6=function(X,t){var G;return(G=X.serviceEndpoints)==null?void 0:G.find(function(y){var w;return((w=_.Y(y,_.wP))==null?void 0:w.status)===t})};
_.sdA=function(X,t,G){return window.spf&&!_.A("web_disable_spfjs_client")?A26(X,t,G):YQ0(X,t)};
A26=function(X,t,G){var y=null,w=(new _.Kh(function(z,B){var V={};if(t){V.method=t.method;var b=t.postParams||{};CsV(X,t)&&(b[_.Md("XSRF_FIELD_NAME")]=_.Md("XSRF_TOKEN"));V.postData=_.Ks(b);t.type&&(V.type=t.type);b=t.headers}V.headers=saA(X,b);_.A("debug_forward_web_query_parameters")&&(X=_.ZqE(X,window.location.search));V.experimental_headers=V.headers;V.onError=function(e){e.err&&e.xhr&&(e.err.params={url:e.xhr.responseURL,response:e.xhr.responseText.substr(0,64)});B(e.err)};
V.onPartDone=function(e){G&&G.call(null,e.part)};
V.onDone=function(e){var g=DGE(e.response,"xsrf_token");kx(window.location.href,X)&&g&&_.fY("XSRF_TOKEN",g);if(g=DGE(e.response,"service_worker_killswitch"))_.fY("SERVICE_WORKER_KILLSWITCH",g),oKw();z(e.response)};
y=spf.request(X,V)})).then(SQG);
w.thenCatch(function(z){var B=z instanceof _.zC,V=z&&z.hasOwnProperty("params")&&z.params.response?z.params.response:"";z instanceof Error&&(V?B?b5_(z):V===')]}\'\n{"reload":"now"}'?b5_(z):(hyA(z,X,V),Za6(z,V)?_.Mj(z):_.xA(z)):b5_(z));y&&y.abort()});
return w};
SQG=function(X){if(X.type==="multipart"){var t=X.timing;X=X.parts.reduce(function(G,y){Object.assign(G,y);return G},{});
X.timing=X.timing||{};Object.assign(X.timing,t);X.type="reduced"}return X};
YQ0=function(X,t){t=t===void 0?{}:t;var G=null,y=new _.Kh(function(w,z){t.onFinish=function(B){if(B.readyState===XMLHttpRequest.DONE)if(B.status===200){if(B.responseType!=="json"){var V=B.response;V.substring(0,5)===")]}'\n"&&(V=V.substring(5));try{var b=JSON.parse(V)}catch(e){b=e}}else b=B.response;b instanceof Error?z(b):(V=DGE(b,"xsrf_token"),kx(window.location.href,X)&&V&&_.fY("XSRF_TOKEN",V),B=B.responseURL,window.performance&&window.performance.getEntriesByName?(V=window.performance.getEntriesByName(B).pop())?
B={responseStart:(0,_.gl)()-(V.responseEnd-V.responseStart)}:(Math.random()<.01&&(V=Error("bi"),V.params=B,_.Mj(V)),B={responseStart:-1}):B={responseStart:0},b.timing=b.timing||{},Object.assign(b.timing,B),w(b))}else z(Error("ai`"+B.status))};
(G=_.Cs(X,t))||z(Error("ai`"+G.status))});
y.thenCatch(function(w){w instanceof Error&&(hyA(w,X),Za6(w)&&(w.level="WARNING"))});
_.A("cancel_pending_navs")&&y.thenCatch(function(){G.abort()});
return y};
DGE=function(X,t){var G=X[t],y=X.parts;X.type==="multipart"&&y&&(G=(X=y.find(function(w){return t in w}))&&X[t]);
return G};
hyA=function(X,t,G){var y=X.message||"";t={original:y,url:t};if(G)if(y=y.match(/position:?\s*(\d+)/)){y=y&&Number(y[1])?Number(y[1]):0;var w=Math.max(y-25,0);t.position=y;t.response=G.substring(w,y+25)}else t.response=G.substring(0,50);_.XE(X,t);try{X.message="JSON parse error"}catch(z){}};
Za6=function(X,t){X=X.message||"";X=!!(X.indexOf("<")>=0||X.indexOf("end of ")>=0||X.indexOf("Unterminated string")>=0||X.indexOf("Unexpected EOF"));if(!X&&t)for(var G=t.length,y=!1,w=0;w<G;w++)if(y&&t[w]==="\\")w++;else if(t[w]==='"')y=!y;else if(t[w]==="<"&&!y){X=!0;break}return X};
qQ0=function(){return document.documentElement.hasAttribute("dark")};
_.CoA=function(X,t){if(X!=="GFEEDBACK"&&X!=="GUIDED_HELP")_.$x(Error("ci`"+X));else{var G=_.gw().resolve(_.jH(_.AS));if(G&&(G=G.getCurrentPage())&&G.getServiceTrackingParams&&(G=G.getServiceTrackingParams()))for(var y=0,w;w=G[y++];)if(w.service===X){if(X=w.params)for(G=0;y=X[G++];)t[y.key]=y.value;break}}};
_.KzV=function(X){var t=_.sW();t&&(t=t.getPlayer())&&(t.pauseVideo(),X.playback_id=t.getVideoData().cpn,X.eid=t.getVideoData().eventId,Object.assign(X,t.getFeedbackProductData()))};
Oa_=function(){var X={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Md("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(X.enableAnonymousFeedback=!0);_.Md("SESSION_INDEX")&&(X.authuser=String(_.Md("SESSION_INDEX")));_.A("enable_pageid_for_feedback")&&_.Md("DELEGATED_SESSION_ID")&&(X.pageId=String(_.Md("DELEGATED_SESSION_ID")));return X};
_.Ha=function(X){_.A("enable_ypc_spinners")&&_.sl(X,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},X])};
_.oA=function(X){_.A("enable_ypc_spinners")&&_.sl(X,"yt-close-popup-action",["yt-loading-renderer"])};
ugG=function(X){return new Promise(function(t,G){_.z7({verifyCommand:{recaptchaToken:X.recaptchaResponse}},{commandController:{onSuccess:function(y,w){w||G("ChallengeService did not return a response.");var z;t({challengeCompleted:(z=w.verified)!=null?z:!1})},
onServerError:function(y,w){G(w)}}})})};
QdE=function(X,t,G,y){t({recaptchaResponse:y}).then(function(w){w.challengeCompleted?_.cx()?(G(3),_.gw().resolve(_.F3).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:X}})):G(2):G(4)},function(){G(4)})};
WzV=function(X,t,G){_.Gi(_.sw(IJs,_.Md("HL")),function(){var y;(y=window.grecaptcha)==null||y.ready(function(){var w=window.grecaptcha;w?(G(w.render(X,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:QdE.bind(null,X,ugG,t)})),t(1)):t(4)})})};
c2s=function(X,t){return function(){switch(t()){case 0:return X().captchaLoadingMessage;case 1:return X().challengeReason;case 3:return X().captchaSuccessfulMessage;case 2:return X().captchaCookieSetFailureMessage;case 4:return X().captchaFailedMessage;default:return X().challengeReason}}()};
_.Ji=function(){if(!pwV){var X=document.querySelector("#player.skeleton");X&&(_.uf(X),pwV=!0)}};
_.N0E=function(){return r2l=oQJ()};
UGV=function(){return _.n(function(X){return Pov!==void 0?X.return():X.yield(Eml(),0)})};
Eml=function(){return _.n(function(X){if(X.nextAddress==1)return X.yield(BQh(),2);r2l=X.yieldResult;Pov=_.vz.addLowPriorityJob(Eml,5E3);_.W$(X)})};
aJh=function(X){var t=t===void 0?mGY:t;var G,y,w=(G=X.responseContext)==null?void 0:(y=G.mainAppWebResponseContext)==null?void 0:y.trackingParam;if(!w){t.increment("MISSING");var z,B,V,b,e,g;_.Mj(new _.NJ("282054944_a",{jS0:!!((z=X.responseContext)==null?0:(B=z.mainAppWebResponseContext)==null?0:B.loggedOut),nuj:((V=X.responseContext)==null?void 0:V.mainAppWebResponseContext)===void 0,cva:X.responseContext===void 0,cp:(b=X.playabilityStatus)==null?void 0:b.contextParams,dzQ:(((e=X.streamingData)==
null?void 0:e.formats)||[]).length>0,lkL:(((g=X.streamingData)==null?void 0:g.adaptiveFormats)||[]).length>0,os:!!X.offlineState,cotn:X.cotn}));return 2}G="";try{G=RyA(w)}catch(D){return t.increment("C_ERROR"),_.xA(D),2}try{var F=_.ia6(G);var T=Lzw(F)}catch(D){return t.increment("P_ERROR"),_.xA(D),2}T=_.dT(T,vmA,1,_.eM());w=[];T=_.J(T);for(F=T.next();!F.done;F=T.next())y=F.value,F=y.getPath(),G=(0,_.RH.getValueByKeys)(X,F.split(".")),G=String(G===void 0||G===null?"":G),y=y.getValue()||"",z=/[+\-\/_]/g,
G.replace(z,"")!==y.replace(z,"")&&(t.increment("MISMATCH"),_.A("ab_mis_log_err")&&(G=new _.NJ("282054944_p",{rVb:F,g:String(G),e:String(y)}),_.xA(G)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(F)||(F.match(/enforcementMessageViewModel/i)?w.push(3):w.push(2)));if(w.length>0)return Math.max.apply(Math,_.RY(w));t.increment("SUCCESS");return 1};
fJs=function(X){var t=new Ba;if(X.interpreterJavascript){var G=_.z2G(X.interpreterJavascript);G=LNV(G).toString();var y=new lJJ;_.rp(y,6,G);_.Oi(t,1,y,mt)}else X.interpreterUrl&&(G=_.aS(X.interpreterUrl),G=_.Nx(G).toString(),y=new _.xG0,_.rp(y,4,G),_.Oi(t,2,y,mt));X.interpreterHash&&_.nV(t,3,X.interpreterHash,mt);X.program&&_.nV(t,4,X.program,mt);X.globalName&&_.nV(t,5,X.globalName,mt);X.clientExperimentsStateBlob&&_.nV(t,7,X.clientExperimentsStateBlob,mt);return t};
V6=function(X){var t={};X=_.J(X.split("&"));for(var G=X.next();!G.done;G=X.next())G=G.value.split("="),G.length===2&&(t[G[0]]=G[1]);return t};
MjY=function(X){return Number(X.t)||7200};
ddE=function(){if(_.A("bg_st_hr"))return"havuokmhhs-0";var X,t=((X=performance)==null?void 0:X.timeOrigin)||0;return"havuokmhhs-"+Math.floor(t)};
XLE=function(){return new Promise(function(X){var t=window;t.ntpevasrs!==void 0?X(new bW(t.ntpevasrs)):(t.ntpqfbel===void 0&&(t.ntpqfbel=[]),t.ntpqfbel.push(function(G){X(new bW(G))}))})};
$pl=function(X){var t=X.nTq.bind(X);_.dl("yt.aba.att",t);X=X.vJK.bind(X);_.dl("yt.aba.att2",X)};
GXs=function(X){switch(_.qJ(X.input)){case _.el(tLl):var t={};return t.encryptedVideoId=X.innerTubeRequest.externalVideoId,t}return{}};
zJV=function(X){switch(_.qJ(X.input)){case _.el(tLl):if(_.A("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.el(yTJ):if(_.A("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.el(dP):if(_.A("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&X.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.el(wLs):var t,G;if(_.A("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((G=_.Y((t=X.config)==null?void 0:t.command,D3f))==null?0:G.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.odY=function(X){var t;if(X.playlistVideoRenderer&&((t=X.playlistVideoRenderer)==null?0:t.engagementBar))return HJY(X.playlistVideoRenderer.engagementBar);if(_.Y(X,ew)){var G;if(X=(G=_.Y(X,ew))==null?void 0:G.engagementBar)return HJY(X)}return""};
HJY=function(X){if(!X)return"";X=_.Y(X,_.JTl);if(X==null||!X.actions)return"";X=_.J(X.actions);for(X=X.next();!X.done;X=X.next()){X=_.Y(X.value,_.Bcf);var t=void 0;if((t=X)==null||!t.itemId)break;return X.itemId}return""};
_.ndG=function(X){var t;if(X.playlistVideoRenderer&&((t=X.playlistVideoRenderer)==null?0:t.videoId))return X.playlistVideoRenderer.videoId;if(_.Y(X,ew)){var G,y;if(X=(G=_.Y(X,ew))==null?void 0:(y=G.playlistItemData)==null?void 0:y.videoId)return X}return""};
_.VLG=function(X){var t;if(X.playlistVideoRenderer&&((t=X.playlistVideoRenderer)==null?0:t.voteCount))return X.playlistVideoRenderer.voteCount;if(_.Y(X,ew)){var G,y;if(X=(G=_.Y(X,ew))==null?void 0:(y=G.playlistItemData)==null?void 0:y.voteCount)return X}return 0};
_.jw=function(X,t){return _.Kg(X.entities,"flowStateEntity",t)};
kXY=function(X,t,G,y){var w=void 0;X=_.J(X[t.iconName]||[]);for(var z=X.next();!z.done;z=X.next()){z=z.value;var B=t.iconSize;var V=t.iconStyle;B=!B||B===z[2];var b=bJ0[z[0]];y&&y!==z[1]||!B||V&&V!==b?V=!1:w?(V=bJ0[z[0]],V=!!t.iconStyle||V==="youtube_outline",B=w.version<=z[1],V=(!!t.iconSize||z[2]===24)&&V&&B):V=!0;V&&(w={name:t.iconName,style:bJ0[z[0]],size:z[2],version:z[1],allowMirroring:!!z[3],url:G(t.iconName,z)})}return w};
dp0=function(X,t,G,y){return X+(""+bJ0[G[0]]+((y===void 0?0:y)?"_experimental":"")+"/"+t+"/v"+G[1]+"/")+(G[2]+"px.svg")};
eJv=function(X){return _.Md("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":X};
jrJ=function(X,t){return dp0("https://fonts.gstatic.com/s/i/",X,t)};
gd_=function(X,t){return dp0("https://fonts.gstatic.com/s/i/",X,t,!0)};
FcV=function(X,t){return dp0("https://www.gstatic.com/youtube/img/icons/web/",X,t)};
ATY=function(X){var t=X.enabled;var G=X.itemPlaybackModel;var y=X.thumbnailElRef;var w=X.containerElRef;var z=X.options;var B;_.Em(function(){var V=w==null?void 0:w.value;var b,e=(b=y())==null?void 0:b.value;b=G();var g=z();if(t&&b&&V&&e&&(g==null?0:g.thumbnail)){var F={data:b,hostElement:V},T,D,h=_.A("web_explore_hub_on_hover")||_.A("web_client_explore_hub_on_hover")?[].concat(_.RY((T=g.thumbnailOverlays)!=null?T:[]),_.RY((D=b.overlays)!=null?D:[])):g.thumbnailOverlays||[],u,W;V={mediaRenderer:F,
lockupElement:V,thumbnailElement:e,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.wr((u=b.inlinePlayerData)==null?void 0:u.onVisible),navigationEndpoint:_.wr((W=b.inlinePlayerData)==null?void 0:W.onSelect),thumbnail:g.thumbnail,thumbnailOverlays:h,accessibilityText:g.accessibilityText||""},thumbnailSize:g.thumbnailSize,enableRounding:g.enableRounding}}}else V=void 0;if(u=V){var c;(c=B)==null||gP(c);B=oD(u);var P,l;((P=G())==null?0:(l=P.inlinePlayerData)==null?0:l.forceImpAutoplay)&&
TcA(B)}},"B33dEc");
_.Um(function(){var V;(V=B)==null||gP(V)})};
YBw=function(X){X=atob(X);for(var t=[],G=0;G<X.length;G++)t.push(X.charCodeAt(G));return new Blob([new Uint8Array(t)],{type:"image/png"})};
DpV=function(X,t,G,y){y=y===void 0?"INSERTION_POSITION_UNSPECIFIED":y;return X({targetId:t},function(w){var z,B=(z=w.contents)!=null?z:[];z=G!=null?G:[];var V=srJ(B);switch(y){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},w,{contents:[].concat(_.RY(B.slice(0,V)),_.RY(z),_.RY(B.slice(V+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},w,{contents:[].concat(_.RY(z),_.RY(B))});case "INSERTION_POSITION_LAST":return Object.assign({},w,{contents:[].concat(_.RY(B),_.RY(z))});
default:return w}})};
hJ_=function(X,t,G,y,w){w=w===void 0?"RELATIVE_INSERTION_POSITION_AFTER":w;return X({targetId:t},function(z){var B,V=(B=z.contents)!=null?B:[];B=SBJ(V,G);if(B<0)return z;B=w==="RELATIVE_INSERTION_POSITION_BEFORE"?B:B+1;return Object.assign({},z,{contents:[].concat(_.RY(V.slice(0,B)),_.RY(y),_.RY(V.slice(B)))})})};
srJ=function(X){var t=X.findIndex(function(G){return _.Y(G,_.Fc)});
return t>=0?t:X.length};
SBJ=function(X,t){return X.findIndex(function(G){a:{G=_.J(Object.values(G));for(var y=G.next();!y.done;y=G.next())if((y=y.value)&&y.targetId){G=y.targetId;break a}G=""}return G===t})};
qBA=function(X,t,G){return X({targetId:t},function(y){var w,z=(w=y.contents)!=null?w:[];return Object.assign({},y,{contents:ZJw(z,G)})})};
ZJw=function(X,t){return X.filter(function(G){var y=t.includes;a:{G=_.J(Object.values(G));for(var w=G.next();!w.done;w=G.next())if((w=w.value)&&w.targetId){G=w.targetId;break a}G=""}return!y.call(t,G||"")})};
_.CUJ=function(X,t){return{engagementPanelSectionListRenderer:{panelIdentifier:X,identifier:t,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.OJJ=function(X){var t,G=(t=X.getOption("captions","tracklist",{includeAsr:!0}))!=null?t:[];return G=Kcv(G,X)};
uYl=function(X){return X.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Kcv=function(X,t){t=uYl(t);if(t==null||!t.length)return X;var G=t.filter(function(B){return B});
t=X.filter(function(B){return B.languageCode.startsWith("en")});
G=_.J(G);for(var y=G.next();!y.done;y=G.next())if(y=y.value,t.length){var w=t[0],z=Object.assign({},w);w.languageCode!==y.languageCode&&(z.displayName=w.languageName+" >> "+y.languageName,z.translationLanguage=y,X.push(z))}return X};
Qrv=function(X,t,G){X=_.OJJ(X);if(X.length)return G?X.find(function(y){if(typeof(y==null?void 0:y.translationLanguage)==="object"){var w;return((w=y.translationLanguage)==null?void 0:w.languageCode)===t}return!1}):X==null?void 0:X.find(function(y){return y.languageCode===t})};
IKJ=function(X){return X.getOption("captions","tracklist",{includeAsr:!0})};
Wc6=function(X){return X.getOption("captions","tracklist",{includeAsr:!0})};
cTJ=function(X){var t=Wc6(X);if(t==null?0:t.length)return t;X.loadModule("captions");return Wc6(X)};
pL0=function(X){var t=X.getOption("captions","track");if(t)return t;X.loadModule("captions");return X.getOption("captions","track")};
NcG=function(X){var t=cTJ(X);if(t!=null&&t.length){var G=pL0(X),y;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Qf("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(G==null?0:G.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.RY(t.map(function(w){return{listItemViewModel:{title:{content:w.displayName},
isSelected:w.displayName===(G==null?void 0:G.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:w.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Qf("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!G.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!G.translationLanguage&&{selectionText:{content:(G==null?void 0:(y=G.translationLanguage)==null?void 0:y.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[rT0(X)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
rT0=function(X){var t=uYl(X);if(t==null||!t.length)throw Error("Ai");var G=pL0(X);X=t.filter(function(y){return!y.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.RY(X.map(function(y){var w;return{listItemViewModel:{title:{content:y.languageName},isSelected:y.languageName===(G==null?void 0:(w=G.translationLanguage)==null?void 0:w.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:y.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
mp0=function(X){return new Promise(function(t,G){if(X===void 0)_.xA(Error("Ei"),"ERROR"),G(Error("Ei"));else{G=new _.PUA;var y=_.EdA();G=G.init();var w=_.UpY(_.Md("YPC_MB_URL"),!0);Promise.all([G,w]).then(function(){var z=payments.business.integration.ClientTokenFactory.createClientToken(X,y);t(z)})}})};
Lc_=function(X,t,G,y,w,z,B){var V=_.d5();G=G.replace(/-/g,"+").replace(/_/g,"/");var b=_.cP().get("hl"),e=_.TC(_.VY),g=t==null?void 0:t.element;g&&_.Ha(g);RJV(t,!0);_.iJV(e,G,V.resolve,function(){g&&_.oA(g)},function(F){g&&_.oA(g);
V.reject(F)},b,y?function(F){y&&_.kW(X,y,{backend_analytics:F})}:void 0,V.resolve,w,z,B);
return V.promise};
RJV=function(X,t){!(X=X==null?void 0:X.element)||X.tagName!=="YT-BUTTON-RENDERER"&&X.tagName!=="YTD-BUTTON-RENDERER"||(X.disabled=t)};
vdV=function(){var X=_.Qf("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Ag(X),actionButton:{buttonRenderer:BJ_()}}},popupType:"TOAST"}};
aKs=function(){var X=_.Qf("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Ag(X),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
lK6=function(X){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:X}]}}};
Ai=function(X,t,G,y){var w;return _.n(function(z){if(z.nextAddress==1)return _.CL(z,2),z.yield(X,4);if(z.nextAddress!=2)return(w=_.EG(t.getState().entities).length>0)?z.return({title:_.Ag(_.Qf("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Ag(_.Qf("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:J$s()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
z.return(nzV(G,y));_.IY(z);return z.return(nzV(G,y))})};
xph=function(X,t){return t?t==="PPSV"||E_s(X,t):!1};
fKw=function(X){X.responseContext||(X.responseContext={});X.responseContext.maxAgeSeconds=0;return X};
s5=function(X){var t;return _.n(function(G){return G.nextAddress==1?G.yield(MLV(X,"service:topbar:fallback"),2):(t=G.yieldResult)&&_.Yl(t)?G.return(fKw(_.Yl(t))):G.return()})};
XdJ=function(X){var t;return _.n(function(G){return G.nextAddress==1?G.yield(MLV(X,"service:downloads_settings:fallback"),2):(t=G.yieldResult)&&_.Yl(t)?G.return(t):G.return()})};
MLV=function(X,t){var G;return _.n(function(y){if(y.nextAddress==1)return X?y.yield(X.get(t),2):y.return();G=y.yieldResult;return!G||!_.Yl(G)||!isNaN(Number(G.data.expireTimestampMs))&&G.isExpired()?y.return():y.return(G)})};
$CA=function(X){var t=_.gw().resolve(Dw).getState().entities;return X.playlistId?xph(t,X.playlistId):!1};
td0=function(X,t){var G;if(t==null?0:(G=t.requestTemplate)==null?0:G.panelId)X.panelId=t.requestTemplate.panelId;var y;if(t==null?0:(y=t.requestTemplate)==null?0:y.params)X.params=t.requestTemplate.params};
yNs=function(){if(Gkw)return Gkw();var X=!_.A("idb_response_store_auth_killswitch"),t={};Gkw=jD("yt-it-response-store",{objectStores:(t.ResponseStore={addedAtVersion:1},t),shared:!X,upgrade:function(G,y){y(1)&&(G=tv(G,"ResponseStore",{keyPath:["key","clientName"]}),yG(G,"byExpiration","expireTimestampMs"),yG(G,"byInterface","clientName"))},
version:1});return Gkw()};
wdf=function(X){return _.JG(yNs(),X)};
HIE=function(X,t){var G;return _.n(function(y){return y.nextAddress==1?y.yield(_.eD(),2):(G=y.yieldResult)?y.return(new zaA(X,t,G)):y.return()})};
ops=function(X){var t=Object.keys(X)[0];if(t)return X.screenExit&&(t=t+";"+X.screenExit.screen),t};
JNl=function(X){var t=new Map;X=_.J(X);for(var G=X.next();!G.done;G=X.next())G=G.value,G!=null&&(t.has(G.taskType)||t.set(G.taskType,[]),t.get(G.taskType).push(G));return t};
BU6=function(X){return!isNaN(X)&&X>0};
npJ=function(X){X=[].concat(_.RY(X)).sort(function(G,y){return G-y});
var t=Math.floor(X.length/2);return X.length%2?X[t]:(X[t-1]+X[t])/2};
kkh=function(X,t){X=X===void 0?fWG:X;t=t===void 0?{}:t;_.dl("yt.logging.errors.log",_.xA);lW_();Vd_(Gzv(),t);window.onerror=X;bIs=xIY;window.addEventListener("unhandledrejection",function(G){if(G.reason instanceof Error){var y=G.reason;_.XE(y,{source:"unhandledrejection"});y.name==="AbortError"&&(y.level="WARNING")}xIY(G.reason);G.preventDefault()})};
_.dCV=function(X){return X.a11y.ephemeralAction||null};
_.eas=function(X){var t,G,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L,x,w6,BY,kJ,Ss,C_,Fv,Uh,cY,f_,sq,oq,ll,go,kh,Aq,OR,Mz,HY;return _.n(function(yR){if(yR.nextAddress==1)return yR.yield(_.cK(X,{mode:"readonly",enableRetries:!0},function(hq){return pg(hq,"playbackData").then(function(gi){var TB=gi.map(function(n4){return n4.transfer}).filter(function(n4){return!!n4}),Uq=gi.map(function(n4){return n4.offlineVideoPolicy}).filter(function(n4){return!!n4}),Gc=gi.filter(function(n4){return!!n4.key}).map(function(n4){return _.Cg(_.hg(n4.key).entityId,
"downloadStatusEntity")});
TB=pg(hq,"transfer",TB);Uq=pg(hq,"offlineVideoPolicy",Uq);Gc=pg(hq,"downloadStatusEntity",Gc);var XH=TB.then(function(n4){n4=n4.reduce(function(lJ,kV){(kV==null?0:kV.offlineVideoStreams)&&lJ.push.apply(lJ,_.RY(kV.offlineVideoStreams));return lJ},[]).filter(function(lJ){return!!lJ});
return pg(hq,"offlineVideoStreams",n4)});
return tG.all([TB,Uq,XH,Gc]).then(function(n4){var lJ=_.J(n4);n4=lJ.next().value;var kV=lJ.next().value;var ZP=lJ.next().value;lJ=lJ.next().value;return[gi,n4,kV,ZP,lJ]})})}),2);
if(yR.nextAddress!=3)return t=yR.yieldResult,yR.yield(_.cK(X,{mode:"readonly",enableRetries:!0},function(hq){return pg(hq,"mainDownloadsListEntity").then(function(gi){var TB,Uq;return(Uq=(TB=gi[0])==null?void 0:TB.downloads)!=null?Uq:[]})}),3);
G=yR.yieldResult;y=_.J(t);w=y.next().value;z=y.next().value;B=y.next().value;V=y.next().value;b=y.next().value;e=w;g=z;F=B;T=V;D=b;h={};u={};W={};c={};P={};l=[];R=_.J(g);for(L=R.next();!L.done;L=R.next())(x=L.value)&&(h[x.key]=x);w6=_.J(F);for(BY=w6.next();!BY.done;BY=w6.next())(kJ=BY.value)&&(u[kJ.key]=kJ);Ss=_.J(D);for(C_=Ss.next();!C_.done;C_=Ss.next())(Fv=C_.value)&&(W[Fv.key]=Fv);Uh=_.J(T);for(cY=Uh.next();!cY.done;cY=Uh.next())(f_=cY.value)&&(c[f_.key]=f_);sq=_.J(G);for(oq=sq.next();!oq.done;oq=
sq.next())ll=oq.value,go=void 0,P[(go=ll.videoItem)!=null?go:""]=!0,ll.videoItem&&(Aq=kh=void 0,OR=(Aq=(kh=_.hg(ll.videoItem))==null?void 0:kh.entityId)!=null?Aq:"",l.push({externalVideoId:OR}));Mz=e.filter(function(hq){if(!hq||!hq.key||!hq.offlineVideoPolicy)return!1;hq=_.hg(hq.key).entityId;hq=_.Cg(hq,"downloadStatusEntity");var gi;return!(hq&&((gi=W[hq])==null?void 0:gi.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
HY=Mz.map(function(hq){var gi=h[hq.transfer],TB=[];if(gi==null?0:gi.offlineVideoStreams)for(var Uq=_.J(gi.offlineVideoStreams),Gc=Uq.next();!Gc.done;Gc=Uq.next())(Gc=c[Gc.value])&&TB.push(Gc);Uq=u[hq.offlineVideoPolicy];Gc=P;var XH=hq==null?void 0:hq.playerResponseTimestamp,n4=_.hg(Uq.key).entityId;hq=_.Cg(n4,"mainVideoEntity");if(Uq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var lJ="OFFLINE_VIDEO_STATE_DISABLED";Uq.expirationTimestamp&&Number(Uq.expirationTimestamp)<Date.now()/1E3&&(lJ="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Uq.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")lJ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(gi==null?void 0:gi.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":lJ="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":lJ="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":lJ="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":lJ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":lJ="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":lJ="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:lJ="OFFLINE_VIDEO_STATE_UNKNOWN"}if(lJ==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(gi==null?void 0:gi.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":lJ="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":lJ="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":lJ=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}n4={id:n4,videoState:lJ};if(gi==null?0:gi.cotn)n4.cotn=gi.cotn;if(gi==null?0:gi.maximumDownloadQuality)n4.selectedVideoQuality=gi==null?void 0:gi.maximumDownloadQuality;if(gi==null?0:gi.lastProgressTimeMs)n4.lastProgressTimeMs=gi.lastProgressTimeMs;XH&&(n4.playerResponseSavedTimeMs=String(Number(XH)*1E3));gi=String;XH=0;TB=_.J(TB);for(lJ=TB.next();!lJ.done;lJ=TB.next())if(lJ=lJ.value,lJ.streamsProgress){lJ=_.J(lJ.streamsProgress);for(var kV=lJ.next();!kV.done;kV=
lJ.next()){var ZP=void 0;XH+=Number((ZP=kV.value.numBytesDownloaded)!=null?ZP:0)}}n4.downloadedBytes=gi(XH);n4.selectedOfflineMode=Gc[hq]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Uq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(n4.offlinePlaybackDisabledReason=Uq.offlinePlaybackDisabledReason);return n4});
return yR.return({offlineVideos:HY,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:l}}})})};
jBA=function(){var X;return _.n(function(t){return t.nextAddress==1?t.yield(_.Q1(),2):(X=t.yieldResult)?t.return(_.eas(X)):t.return({state:"PES Unavailable"})})};
TUs=function(){var X,t,G,y;return _.n(function(w){if(w.nextAddress==1)return w.yield(_.Q1(),2);if(w.nextAddress!=3)return(X=w.yieldResult)?w.yield(gph(X),3):w.return({state:"PES Unavailable"});t=w.yieldResult;G={};y=t.reduce(function(z,B){z[B.key]=B;return z},G);
return w.return(F5A(y))})};
F5A=function(X){for(var t={},G=[],y=_.J(Object.keys(X)),w=y.next();!w.done;w=y.next()){var z=w.value;w=X[z];var B=void 0;if(((B=w)==null?void 0:B.entityType)==="mainVideoEntity"){delete X[z];var V=w.data;w={};if(V){var b=void 0;B=(b=V.videoId)!=null?b:"vid-"+z;z=X;w.video=V;delete w.video.formattedDescription;delete w.video.thumbnail;V.owner&&(b=z[V.owner],b==null?0:b.data)&&(delete z[b.key],w.video.owner=b.data,delete w.video.owner.avatar);if(V=V.downloadState)if(b=z[V],b==null?0:b.data)if(delete z[V],
V=b.data.playbackData)if(b=z[V],b!=null&&b.data){delete z[V];V=b.data;delete V.playerResponseJson;w.playbackData=V;if(V.transfer&&(b=z[V.transfer],b==null?0:b.data)){delete z[b.key];var e=b.data;w.transfer=e;b=[];e=_.J(e.offlineVideoStreams||[]);for(var g=e.next();!g.done;g=e.next())if(g=z[g.value])delete z[g.key],b.push(g.data);b&&(w.streams=b)}(V=V.offlineVideoPolicy)&&(V=z[V])&&V.data&&(delete z[V.key],w.offlineVideoPolicy=V.data)}t[B]=w}}else w&&w.entityType==="offlineOrchestrationActionWrapperEntity"&&
w.data&&(delete X[w.key],B=w.data,z=void 0,G.push({id:B.rootActionId,type:((z=B.actionProto)==null?void 0:z.actionType)||"",entity:w}))}t.wrapperEntities=G;Object.keys(X).length>0&&(t.unknownKeys=X);return t};
ANV=function(){var X,t,G,y,w,z,B,V,b;return _.n(function(e){if(e.nextAddress==1)return X=!!(new _.M1("")).expiringStorage_,y=!!((t=_.tA.crypto)==null?0:(G=t.subtle)==null?0:G.importKey),w=!!_.tA.BroadcastChannel,z=!!_.tA.navigator.locks,e.yield(CAV(),2);B=e.yieldResult;V=X&&y&&w&&z&&B;b={isSupported:V};if(V)return e.return(b);b.missingBrowserFeatures=[];B||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");X||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
y||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");w||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");z||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return e.return(b)})};
YnG=function(){var X;return!((X=Sw?Sw:null)==null||!X.window)};
_.DCv=function(X){if(_.K_()&&_.nJA("Chromium")>=120){var t=_.sBl().mediaSession;try{t.setActionHandler("enterpictureinpicture",function(){X()})}catch(G){}}};
Sn0=function(X){for(var t=[],G=_.J(document.styleSheets),y=G.next(),w={};!y.done;w={node$jscomp$727:void 0},y=G.next())w.node$jscomp$727=y.value.ownerNode,w.node$jscomp$727&&(w.node$jscomp$727 instanceof HTMLStyleElement||w.node$jscomp$727 instanceof HTMLLinkElement)&&t.push(new Promise(function(z){return function(B){var V=z.node$jscomp$727.cloneNode(!0);V.onload=function(){B()};
V.onerror=function(){_.Mj(Error("gj"));B()};
X.document.head.appendChild(V)}}(w)));
return Promise.all(t)};
W5f=function(X){var t=[_.T6(hah),_.T6(ZIY),_.T6(qnA)];CTh(window.document.documentElement,X.document.documentElement,[_.T6(K5s),_.T6(OI0),_.T6(u16),_.T6(QB6),_.T6(IEG)]);CTh(window.document.body,X.document.body,t)};
CTh=function(X,t,G){X=_.J(X.attributes);for(var y=X.next();!y.done;y=X.next())if(y=y.value)try{_.kw(G,t,y.name,y.value)}catch(w){}};
pdh=function(X,t){X=new _.hi(X.document.documentElement);X.start(cNV,t);return X};
rNl=function(X){var t=X.document.documentElement;t.addEventListener("click",function(G){Qew(t,G)});
t.addEventListener("touchstart",function(G){rhG(G)});
t.addEventListener("mousedown",function(G){rhG(G)})};
PTl=function(X,t,G,y){y=y===void 0?!1:y;t=new NUs(t||X,G||X);return{x:X.x+((y===void 0?0:y)?t.lengthX*-1:t.lengthX)*.2,y:X.y+((y===void 0?0:y)?t.lengthY*-1:t.lengthY)*.2}};
EpG=function(X){if(!X)return!1;var t=X.status==="OK"||X.status==="LIVE_STREAM_OFFLINE",G,y,w,z=(w=(G=X.errorScreen)==null?void 0:G.playerLegacyDesktopYpcTrailerRenderer)!=null?w:(y=X.errorScreen)==null?void 0:y.ypcTrailerRenderer;return!!t||!!z};
_.UC_=function(X,t){if(!X)return!1;var G,y=(G=X.errorScreen)==null?void 0:G.playerLegacyDesktopYpcOfferRenderer,w;t=!!(t==null?0:(w=t.playerOverlayRenderer)==null?0:w.gatedActionsOverlayRenderer);return!!EpG(X)||!!y||!!t};
iI_=function(X){return mCw(X,0,"gclid",X.search(RaE))>=0||mCw(X,0,"gad_source",X.search(RaE))>=0};
L5E=function(X){var t=[],G=0;return{clear:function(){G=t.length=0},
push:function(y){t[G]=y;G=(G+1)%X},
iterate:function(){return function w(){var z,B,V,b;return _.KV(w,function(e){switch(e.nextAddress){case 1:_.u8(e,2),z=t.length,B=0;case 4:if(!(B<z)){e.jumpTo(2);break}V=G+B;b=_.O5;return e.yield(t[V%z],7);case 7:b(e.yieldResult);B++;e.jumpTo(4);break;case 2:_.O6(e),_.Qb(e,0)}})}()}}};
aEh=function(){var X=vp0,t=gX.bufferSize;X||(X=[]);X=X.map(R0w);var G=new Set(X),y=L5E(t);return{flush:function(){var w=Array.from(y.iterate());y.clear();w=w.map(function(z){return{name:z.name,timestamp:z.startTime,attributes:z.attributes}});
return JSON.stringify(w)},
onSpanStart:function(w){w.name==="event"&&G.has(w.attributes.type)||y.push(w)}}};
lEV=function(){var X=aEh(),t=X.flush;FQV({onSpanStart:X.onSpanStart});oWJ.subscribe("handleError",function(G){try{G.params.breadcrumbs=t()}catch(y){_.xA(y,"WARNING")}})};
xCl=function(X,t,G){var y=X.endTime;if(y==null)throw Error("ij");var w=X.name,z={};y-=X.startTime;var B=X.startTime;z={webTracing:(z[w]=X.attributes,z)};G=_.tt(IZV)(w,y,B,z,G,t);if(X.children)for(X=_.J(X.children),w=X.next();!w.done;w=X.next())xCl(w.value,t,G)};
Md0=function(){for(var X={},t=_.J(gX.enabledSpansArray),G=t.next();!G.done;G=t.next())X[G.value]=!0;if(gX.exportToCsi||gX.exportBreadcrumbs)j7={sessionId:XZl()||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:X};gX.exportBreadcrumbs&&lEV();gX.exportToCsi&&FQV(fEE)};
XnV=function(X){return new Promise(function(t){window.setTimeout(t,X)})};
$mf=function(X){var t={bicf:function(z){X.qNb=z},
blc:function(){return X.getLatestChallengeResponse()},
bcr:function(z){X.iJi.push(z)}},G=window;
G.ntpevasrs=t;if(G.ntpqfbel!==void 0)for(var y=_.J(G.ntpqfbel),w=y.next();!w.done;w=y.next())w=w.value,w(t);G.ntpqfbel=void 0};
tyJ=function(X){return _.n(function(t){if(t.nextAddress==1)return _.CL(t,2),t.yield(X.avb(),4);if(t.nextAddress!=2)return _.zx(t,0);_.IY(t);_.W$(t)})};
GeJ=function(X){var t,G;(t=X.ytcsi)==null||(G=t.tick)==null||G.call(t,"pot_ist")};
yo_=function(X){if(X instanceof Error){var t=_.GA("yt.logging.errors.log");t&&t(X,"WARNING")}};
wnJ=function(X){try{var t=JSON.parse(X);if(t.bgChallenge)return t}catch(G){}};
HCJ=function(){var X=window,t={networkStatusManagerPromise:_.gw().resolve(new VQY(_.Jv)),initialChallengeSli:_.A("wpo_att_sli")?new _.FnY("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};X=X===void 0?window:X;var G=X.ytAtR,y;t==null||(y=t.initialChallengeSli)==null||_.uW(y);if(G){if(G=wnJ(G)){var w;t==null||(w=t.initialChallengeSli)==null||_.Q6(w,"SUCCESS");z5J(G,t)}X.ytAtR=void 0}else X.ytAtRC=function(z){if(z=wnJ(z)){var B;t==null||(B=t.initialChallengeSli)==null||
_.Q6(B,"SUCCESS");z5J(z,t);X.ytAtRC=void 0}}};
BD0=function(){if(oDV)return oDV;try{var X=_.OF("IFRAME");_.wq(X,_.sw(Jof));X.sandbox.add("allow-same-origin");X.style.display="none";document.body.appendChild(X);return oDV=X}catch(t){X=new _.NJ("Failed to create sandbox iframe"),_.xA(X)}};
nD0=function(X){var t,G;return(G=X==null?void 0:(t=X.contentWindow)==null?void 0:t.fetch)!=null?G:window.fetch};
Vys=function(X){var t,G;return(G=X==null?void 0:(t=X.contentWindow)==null?void 0:t.JSON.parse)!=null?G:JSON.parse};
bCw=function(X){var t,G;return(G=X==null?void 0:(t=X.contentWindow)==null?void 0:t.Request)!=null?G:window.Request};
kel=function(X){var t,G;return(G=X==null?void 0:(t=X.contentWindow)==null?void 0:t.TextDecoder)!=null?G:window.TextDecoder};
dmv=function(){return function(X,t){_.Md("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[X]=t}};
e5V=function(){return function(X,t){var G={};G[X]=t;X=_.tt(_.uLJ)(G);Object.keys(X).length>0&&_.vP(X)}};
FHh=function(){if(Am_()==="hidden")var X="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Am_()==="visible"&&(X="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",j_s=null);X&&gDl(X)};
gDl=function(X){if(X==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||X==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(TDf===X)return;TDf=X}var t=9E4+Math.random()*2E3;if(X!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.T5()>t)&&Am_()==="visible"){t=-1;j_s&&(t=Math.round((0,_.gl)()-j_s));var G=String;var y=_.GA("_fact",window);y=y==null||y==-1?-1:Math.max(Date.now()-y,0);_.a7("foregroundHeartbeat",{firstActivityMs:G(y),clientDocumentNonce:$TV,index:String(Ao_),lastEventDeltaMs:String(t),trigger:X});
_.dl("_fact",-1,window);Ao_++;j_s=(0,_.gl)()}};
_.YU0=function(){try{return!!self.sessionStorage}catch(X){return!1}};
s_J=function(){var X=navigator;return new Promise(function(t,G){var y;(y=X.webkitTemporaryStorage)!=null&&y.queryUsageAndQuota?X.webkitTemporaryStorage.queryUsageAndQuota(function(w,z){t({usage:w,quota:z})},function(w){G(w)}):G(Error("qj"))})};
DmV=function(X,t){var G={errorSeverity:t.errorSeverity.toString(),wizFeatureFlags:Object.entries(t.featureFlags).join("\n")};aW6(t,G);t=t.errorSeverity;t===3?_.xA(X,"ERROR",void 0,void 0,void 0,G):t===2&&_.xA(X,"WARNING",void 0,void 0,void 0,G);_.A("cow_if_errors_in_popup")&&t===3&&X.message.indexOf("<If>")!==-1&&window.alert(X.message)};
SUV=function(X,t){var G=e7.get(X)||{layerNode:t};G.layerNode=t;jxE(X,G);X.getScreenLayer=function(){return IA(G.layerNode)}};
h50=function(X){var t;X=X.parentNode;for(var G;X&&((t=e7.get(X))==null||!t.isRenderer)&&!((G=X.polymerController)!=null?G:X).isRenderer_;)X=X.parentNode||X.host;if(t=X)return e7.get(t)};
ZCh=function(X){if(X){e7.delete(X);var t=_.gw().resolve(ji);AkG(X,t)}};
CLw=function(X,t,G){if(G===void 0?0:G){if(G=X.getAttribute("client-ve-type"),t.data&&!t.disableReactiveLogging||G)_.im(function(){qUl(X,_.R5(t.data))}),_.Um(function(){return void ZCh(X)})}else typeof t.data!=="function"&&qUl(X,t.data)};
qUl=function(X,t){KHE++;OCG(X,t)&&_.vz.addJob(function(){_.f5(_.vz,function(){if(OCG(X,t)&&X.ownerDocument.documentElement===document.documentElement&&X){var G;if(X.getAttribute("layer")){var y=G=Number(X.getAttribute("layer")),w=e7.get(X);w?w.layerNode.layer=y:SUV(X,new uQv(y));(y=h50(X))&&(w=e7.get(X))!=null&&(w.layerNode.parent=y.layerNode)}else if(G=e7.get(X))G=IA(G.layerNode);else{G=IA;y=new uQv;if(w=h50(X))y.parent=w.layerNode;SUV(X,y);G=G(y)}G!=null||(G=0);y=X.getAttribute("client-ve-type");
w=Number(y);var z=!1;y=!1;var B=e7.get(X),V;if((V=B)&&!(V=B[Q_f]!==t)&&(V=w)){var b;V=((b=e7.get(X))==null?void 0:b.clientVeType)===void 0}V&&(B[Q_f]=t,z=y=B.isRenderer=!0);e7.has(X)&&(e7.get(X).clientVeType=w);X.visualElement&&(y=!0);if(_.A("wiz_next_ld_fix_client_ve_spec")){var e;b=((e=_.Y(t==null?void 0:t.rendererContext,_.EV))==null?void 0:e.loggingDirectives)||(t==null?void 0:t.loggingDirectives)}else b=t==null?void 0:t.loggingDirectives;b&&b.clientVeSpec&&(e=IQf(_.rX(),X),e=_.WHE(_.Pj(),b,e||
void 0,G))&&(X.visualElement=e);!X.visualElement&&w&&z&&(X.veType=w,e=void 0,_.A("wiz_next_client_ve_parent_fix")&&(e=IQf(_.rX(),X)),e=_.Ni(_.Pj(),X,e,G),X.visualElement=e);y&&(e=_.gw().resolve(ji),SSv(X,{data:t,observer:e,layer:G,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
OCG=function(X,t){return(t==null?0:t.trackingParams)||(t==null?0:t.loggingDirectives)||_.Y(t==null?void 0:t.rendererContext,_.EV)||X.getAttribute("client-ve-type")?!0:!1};
coY=function(X,t,G){X.componentType!==Wm&&G instanceof HTMLElement&&t&&!_.A("cow_logging_in_component_wrapper")&&CLw(G,t,!0)};
Uml=function(){if(!pnl){pnl=!0;var X=Object.assign({},{enableLazyTsx:_.A("mweb_enable_wiz_lazy_tsx")||_.A("kevlar_enable_wiz_lazy_tsx")||_.A("creator_enable_wiz_lazy_tsx")||ro6,flushRenderEffectsDuringRender:!0},{handleError:DmV,enableComponentStacksInErrorMessages:!1});Object.assign(kH,X);bEf=NDE;PL6();gev=mqJ;d8A=Rbl;_.A("ytwiz_enable_debug_component_props")&&(X=document.body.firstElementChild,window.ng||X.__ngContext__||(X.__ngContext__={},X.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
ED0))}};
PL6=function(){_.A("cow_logging_in_component_wrapper")?(MFl=function(X,t){t instanceof HTMLElement&&CLw(t,X,!0)},tbY=function(){}):(MFl=function(){},tbY=coY)};
mms=function(X,t,G){t=t===void 0?{}:t;var y,w=(y=_.Y(X.commandMetadata,_.jQ))==null?void 0:y.url;y=t.form||{};!G||y.element||y.skipDefaultElement||(t.form=t.form||{},t.form.element=G);if(w&&w!=="/service_ajax")return{type:0,command:X,form:t.form};if(_.A("kevlar_service_command_check")){if(_.bX(_.gw().resolve(_.Mr),X))return Object.assign({},{type:1,command:X},t)}else{var z;if((z=_.Y(X.commandMetadata,_.jQ))==null?0:z.apiUrl)return Object.assign({},{type:1,command:X},t)}return{type:2,command:X,form:t.form}};
R50=function(X){if(X.form){var t=X.form,G=Object.assign({},t);t=t.element;G=(delete G.element,G);if(t)return[_.hE(t,[X.command,G,X.commandController])]}return[]};
iC6=function(X){if(X.form){var t=X.form,G=Object.assign({},t);t=t.element;G=(delete G.element,G);t&&_.Z0(t,[X.command],t,G)}};
vDf=function(X,t,G){var y=new LH6(X,t),w=new Wa(X,t,G);X={"/youtubei/v1/browse":new ca(X,t,G),"/youtubei/v1/player":y,"/youtubei/v1/navigation/resolve_url":new pV,"/youtubei/v1/next":w,"/youtubei/v1/guide":new rP(G),"/youtubei/v1/search":new NM(X,t,G),"/youtubei/v1/reel/reel_item_watch":new Pa(X,t,G),"/youtubei/v1/get_watch":new E5(y,w)};X["/youtubei/v1/account/account_menu"]=new U5;X["/youtubei/v1/notification/get_notification_menu"]=new mh;return X};
iW=function(){var X=_.gw().resolve(RA);return Promise.resolve(aQE(X,_.tA.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
lQv=function(X){return X&&(X=_.LV(_.H3V(X)))?(new URLSearchParams(X)).get("service"):null};
lW=function(X,t){_.CX(_.va(),function(){_.ls("adl")});
_.gw().resolve(xmJ)(t);X=X.root;X.loadData&&X.loadData(t);(t==null?0:t.response)?_.Q6(Yyw(),"SUCCESS"):_.Mj(new _.NJ("Lifecycle: No response in data",_.X3("IS_SHELL_LOAD"),t?t.page:"NO_PAGE",t?t.endpoint:"NO_ENDPOINT"));X.polymerController.$["page-manager"].lazyPrepareCriticalPages((t==null?void 0:t.page)||"",t.endpoint);var G,y;((y=_.Y(t==null?void 0:(G=t.endpoint)==null?void 0:G.commandMetadata,_.jQ))==null?0:y.webPageType)&&_.dV().dispatch(_.aA(_.Y(t.endpoint.commandMetadata,_.jQ).webPageType))};
fQv=function(){var X,t;return _.n(function(G){switch(G.nextAddress){case 1:X=window;if(!X.getDataPromise){G.jumpTo(2);break}_.CL(G,3);return G.yield(X.getDataPromise(),5);case 5:return G.return(G.yieldResult);case 3:return _.IY(G),G.yield(iW(),6);case 6:return G.return(G.yieldResult);case 2:if(X.getInitialData)return t=X.getInitialData(),X.getInitialData=void 0,G.return(t);throw Error("sj`"+_.tA.location.href);}})};
XfE=function(){_.fY("CSI_SERVICE_NAME","youtube");_.vP({loadType:"cold"});_.A("kevlar_log_lcp")&&Myl(function(X){_.ls("lcp",X.value)})};
$90=function(){var X=_.XO(document.location.href,"enable");X&&X.indexOf("scraper")>-1&&_.fY("ADD_SCRAPER_ATTRIBUTES",!0)};
z__=function(X){var t=X.root;X=[tvA,GNv,_.xl];_.A("web_feedback_endpoint_autolog_allowlist_killswitch")&&X.push(_.fV,yUV);wfJ(function(G,y){return mms(G,y,t)},function(G){if(!G.command)return[];
var y;((y=G.form)==null?0:y.element)?G.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},G.form,{endpoint:G.command})})):t.handleNavigate(G);return[]},X);
_.gw().addProvider({provide:_.F3,useValue:_.Wj.instance})};
oYG=function(){var X={},t={},G;for(G in H70){var y=_.J(_.sm(H70[G],void 0,"NBH2te"));X[G]=y.next().value;t[G]=y.next().value}return[X,function(w){for(var z in w){var B=void 0;(B=t[z])==null||B(w[z])}}]};
_.nYV=function(X,t){var G=!1;G=G===void 0?!1:G;var y=_.RH.getValueByKeys(X,"contents","twoColumnWatchNextResults","results","results","contents"),w=_.RH.getValueByKeys(X,"contents","twoColumnWatchNextResults","playlist","playlist")||null;G&&(w=null);var z=G=null;if(w)G=_.RH.getValueByKeys(w,"titleText"),z=_.RH.unsafeClone(_.RH.getValueByKeys(w,"longBylineText")),y="",z&&(y=_.bu(z)),z=_.Vl(y);else if(y){y=_.J(y);for(var B=y.next();!B.done;B=y.next())B=B.value,B.videoPrimaryInfoRenderer&&(G=_.RH.getValueByKeys.apply(_.RH,
[B].concat(_.RY(JUG)))),B.videoSecondaryInfoRenderer&&(z=_.RH.getValueByKeys.apply(_.RH,[B].concat(_.RY(BLY))))}else _.yQ(Error("xj"));var V;X.currentVideoEndpoint?V=X.currentVideoEndpoint:_.yQ(Error("yj"));var b;t&&(b=_.RH.getValueByKeys(t,"playabilityStatus","miniplayer","miniplayerRenderer"));X={miniplayerTitle:G,miniplayerSubtitle:z,watchEndpoint:V,playlistData:w};b&&(X.miniplayerRenderer=b);return X};
Vv_=function(X){if(X)return _.$I(X)};
_.b7w=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
kN0=function(X){return X.videoDuration?X.numTaps>1&&X.tapDirection!==0?_.MM(X.draggedTime/X.videoDuration,0,1):_.MM((X.playedTime||0)/X.videoDuration,0,1):0};
d9_=function(X){return X.videoDuration?X.isDragging||X.numTaps>1&&X.tapDirection!==0?_.MM(X.draggedTime/X.videoDuration,0,1):_.MM((X.playedTime||0)/X.videoDuration,0,1):0};
jCv=function(X){var t,G,y;return _.Y(X==null?void 0:(t=X.markersMap)==null?void 0:(G=t.find(function(w){return w.key==="HEATSEEKER"}))==null?void 0:(y=G.value)==null?void 0:y.heatmap,e_h)};
gYY=function(X){var t,G;return(G=(t=jCv(X))==null?void 0:t.heatMarkersDecorations)!=null?G:[]};
Fel=function(X){if(_.A("mweb_supported_chapters_killswitch"))return!0;var t;return!!(X==null?0:(t=X.markersMap)==null?0:t.find(function(G){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(G.key)}))};
_.TLh=function(X){var t=Object,G=t.assign,y;X={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(y=X==null?void 0:X.getPlayerState())!=null?y:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return G.call(t,{},{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},X,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
AUJ=function(X){return function(t){var G=X(),y,w=(y=G.playerApi)==null?void 0:y.getPlayerState();t&&t!==G.playerState&&(t===1||t===2)&&G.setState({playerState:w})}};
sCv=function(X){return function(t){var G=X(),y=G.playerApi;y&&(t==null?void 0:t.type)==="newdata"&&(Yzw&&(clearTimeout(Yzw),Yzw=void 0),_.A("web_shorts_use_progress_state_for_gapless")?(t=y==null?void 0:y.getProgressState(t==null?void 0:t.playertype),t=t.seekableEnd-t.seekableStart):t=y==null?void 0:y.getDuration(t==null?void 0:t.playertype),G.setState({playedTime:0,videoDuration:t}))}};
D9h=function(X){return function(t){var G=X(),y=G.playerApi;if(y){var w=y.getPresentingPlayerType();_.A("web_shorts_use_progress_state_for_gapless")?(y=y.getProgressState(w),y=y.seekableEnd-y.seekableStart):y=y.getDuration(w);G.setState({playedTime:t,videoDuration:y})}}};
h_l=function(X){_.aD(112394,X,function(){return SzG},function(t){SzG=t})};
Chf=function(X,t){if(!X)return[];var G,y,w;X=((G=X.markersMap)==null?void 0:(y=G.find(function(z){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(z.key)}))==null?void 0:(w=y.value)==null?void 0:w.chapters)||[];
!Z7s(X)||(t==null?0:t.ignoreStub)||(X=[qzv()].concat(_.RY(X)));return X};
qzv=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Z7s=function(X){if(X.length===0)return!1;var t;return((t=_.Y(X[0],Xb))==null?void 0:t.timeRangeStartMillis)!==0};
$E=function(X){return X?X.timeRangeStartMillis||0:0};
O7f=function(X,t){if(X.isDragging&&t)return X=KeV(X,t),X===-1?qzv():Chf(t)[X]};
KeV=function(X,t){return X.isDragging&&t?Chf(t,{ignoreStub:!0}).findIndex(function(G,y,w){G=ujl(X);return QCw(G,w,y).scrubberHovering}):-1};
ujl=function(X){return Object.assign({},X,{videoDuration:X.videoDuration*1E3,playedTime:X.playedTime*1E3,draggedTime:X.draggedTime*1E3})};
QCw=function(X,t,G){var y=$E(_.Y(t[G],Xb));t=$E(_.Y(t[G+1],Xb))||X.videoDuration;G=X.isDragging;var w;if(w=X.isDragging)w=X.draggedTime,w=w!==null&&w>=y&&w<t;var z=X.playedTime;return z!==null&&z>=y&&z<t?{videoPosition:"active",isScrubbing:G,scrubberHovering:w}:X.playedTime<y?{videoPosition:"pending",isScrubbing:G,scrubberHovering:w}:{videoPosition:"seen",isScrubbing:G,scrubberHovering:w}};
Iq0=function(X,t){return X.videoPosition==="seen"||(t===void 0?0:t)>0};
Wef=function(X,t,G){t=X/t.storyboardInterval;var y=Chf(G);if(!y.length)return-t*72;G=0;y=_.J(y);for(var w=y.next();!w.done;w=y.next())if($E(_.Y(w.value,Xb))/1E3<X)G++;else break;return-(t*72)-G*56};
cUV=function(X){return X?X.width/X.columns:0};
pfV=function(X){return X.isHovering?X.hoveredTime:X.draggedTime};
rUl=function(X,t){X=X.draggedTime*1E3;return X>=t.visibleTimeRangeStartMillis&&X<=t.visibleTimeRangeEndMillis};
_.NL_=function(X){if(X===void 0||Number.isNaN(X))return"--:--";var t=Math.abs(Math.floor(X)),G=Math.floor(t/86400),y=Math.floor(t%86400/3600),w=Math.floor(t%3600/60);t=Math.floor(t%60);var z="";G>0&&(z+=G+":",y<10&&(z+="0"));if(G>0||y>0)z+=y+":",w<10&&(z+="0");z+=w+":";t<10&&(z+="0");z+=t;return X>=0?z:"-"+z};
Ph0=function(X,t){return function(){var G=pfV(X());var y=t();var w=X().playerApi;if(w&&w.getNumberOfStoryboardLevels()!==0){var z=w.getStoryboardFrameIndex(G,1);z!==-1?y=w.getStoryboardFrame(z,1):(G=w.getStoryboardFrameIndex(G,0),w=w.getStoryboardFrame(G,0),y&&w&&(w.height*=3,w.width*=3),y=w)}else y=null;if(!y)return null;t()&&(y.width=90*y.columns,y.height=160*y.rows);return y}};
_.tw=function(X){if(!X||X.getVideoData)return X};
EYf=function(){var X;return{playerApi:(X=_.QE())!=null?X:void 0}};
U9E=function(X){var t;_.n(function(G){if(G.nextAddress==1)return G.yield(_.uX(),2);if(t=G.yieldResult)t.unMute(!0),t.setVolume(X,!0);_.W$(G)})};
m9l=function(X,t){X&&(X.value=""+t,X.style.setProperty("--gradient-percent",t+"%"))};
R_G=function(X){var t;return(t=X==null?void 0:X.value)!=null?t:0};
i7V=function(){var X;_.n(function(t){if(t.nextAddress==1)return t.yield(_.uX(),2);X=t.yieldResult;if(!X)return t.return();X.isMuted()?X.unMute(!0):X.mute(!0);_.W$(t)})};
Les=function(X){var t=_.gw().resolve(_.G2).getPlayerElement();t&&X&&(X===1?t.pause():t.play())};
vY0=function(X){_.D0(X,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
aqJ=function(X){_.D0(X,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
x90=function(X){return _.Ea(X.document.body,function(){return _.k(lq_,null)})};
fqh=function(){var X=window.performance.getEntriesByType("navigation");return X?X.map(function(t){return t.type}).includes("reload"):!1};
z1_=function(){yc(yc(yc(yc(yc(yc(yc(_.gw().resolve(_.w1),_.MvE),_.XDw),_.$vf),_.tuf),_.G9h),_.yOY),_.wDw)};
H6_=function(X,t){t=t===void 0?!1:t;var G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return t||!_.A("kevlar_shorts_seedless_retry_initial_load")||(G=window,y=!(!G.getDataPromise&&!G.getInitialData),y)?B.yield(fQv(),2):(setTimeout(H6_.bind(window,X,!0),1E3),B.return());if(B.nextAddress!=3)return w=B.yieldResult,B.yield(oGh(w),3);z=B.yieldResult;lW(X,z);_.W$(B)})};
oGh=function(X){var t;if((t=X.response)==null||!t.replacementEndpoint)return _.qY(X);t=_.gw().resolve(RA);X=X.response;_.Y(X.replacementEndpoint,_.E8)&&X.sequenceContinuation&&(_.Y(X.replacementEndpoint,_.E8).sequenceParams=X.sequenceContinuation);return z2(t,X.replacementEndpoint,{},_.tA.location.href,"shorts",function(){},function(){return!1})};
BHv=function(X){var t=_.gw().resolve(JOh);X.playerResponse&&t.handleResponse(X.playerResponse);X.response&&t.handleResponse(X.response)};
nGE=function(X){var t=_.dV(),G,y=_.Y((G=X.response)==null?void 0:G.frameworkUpdates,je),w;G=_.Y((w=X.playerResponse)==null?void 0:w.frameworkUpdates,je);var z;X=_.Y((z=X.reelWatchSequenceResponse)==null?void 0:z.frameworkUpdates,je);y&&_.WK(y,t);G&&_.WK(G,t);X&&_.WK(X,t)};
VuV=function(X){var t;_.A("enable_redirect_linking_for_desktop_web_client")&&((t=window.location.hash)==null?0:t.includes("redirect_state"))&&X.url&&(X.url=X.url.toString()+window.location.hash)};
dvw=function(X){var t=_.gw(),G=t.resolve(RA);t=t.resolve(_.b6Y);X.endpoint&&(G=k9A(G,X.endpoint),G.content&&X.response&&_.HH(t,X.response,G.content),G.player&&X.playerResponse&&_.HH(t,X.playerResponse,G.player),G.reelSequence&&X.reelWatchSequenceResponse&&_.HH(t,X.reelWatchSequenceResponse,G.reelSequence))};
oQ=function(X,t){_.A("web_service_params_response_processor")&&BHv(t);nGE(t);var G;(t==null?0:t.url)&&((G=window.location.hash)==null?0:G.includes("redirect_state"))&&(VuV(t),(G=lQv(t.url))&&_.sl(X.root,"yt-initialize-third-party",[G,t]));dvw(t);G=_.gw();var y=G.resolve(e1V);t.playerResponse&&G.resolve(jzY).handleResponse(t.playerResponse);if(t.playerResponse){G=void 0;if(_.A("ab_v_vid_sig")&&t.endpoint){var w,z=(w=_.Y(t.endpoint,_.nq))!=null?w:_.Y(t.endpoint,_.E8);z&&(G=z.videoId)}gG6(y,t.playerResponse,
G)}t.playerResponse&&cBw(t.playerResponse)&&_.A("web_enable_ab_rsp_cl")?UGV().then(function(){FSJ(y,t.playerResponse);lW(X,t)}):lW(X,t)};
AOG=function(X){if(X=X.root.data){var t=_.gw().resolve(THf);X.endpoint&&(X.response&&t.handleResponse(X.response,void 0,document.querySelector("ytd-app")),X.playerResponse&&t.handleResponse(X.playerResponse),X.reelWatchSequenceResponse&&t.handleResponse(X.reelWatchSequenceResponse))}};
YPG=function(X){var t,G,y,w,z,B;return _.n(function(V){switch(V.nextAddress){case 1:t=window;if(!t.getDataPromise){V.jumpTo(2);break}_.CL(V,3);return V.yield(t.getDataPromise(),5);case 5:G=V.yieldResult;oQ(X,G);_.zx(V,4);break;case 3:return _.IY(V),V.yield(iW(),6);case 6:y=V.yieldResult,lW(X,y);case 4:return V.return();case 2:if(!_.A("sw_nav_preload_pbj")){V.jumpTo(7);break}t.fetchInitialData=function(){var b;return _.n(function(e){if(e.nextAddress==1)return e.yield(iW(),2);b=e.yieldResult;lW(X,b);
_.W$(e)})};
if(t.getInitialData){t.loadInitialData=function(b){oQ(X,b)};
w=t.getInitialData();t.getInitialData=void 0;oQ(X,w);V.jumpTo(8);break}t.fetchInitialData=void 0;return V.yield(iW(),9);case 9:z=V.yieldResult,lW(X,z);case 8:return V.return();case 7:t.getInitialData?(B=t.getInitialData(),t.getInitialData=void 0,oQ(X,B)):t.loadInitialData=function(b){oQ(X,b)},_.W$(V)}})};
szE=function(X){var t=0;return function(){return t<X.length?{done:!1,value:X[t++]}:{done:!0}}};
DvA=typeof Object.defineProperties=="function"?Object.defineProperty:function(X,t,G){if(X==Array.prototype||X==Object.prototype)return X;X[t]=G.value;return X};
SPG=function(X){X=["object"==typeof globalThis&&globalThis,X,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<X.length;++t){var G=X[t];if(G&&G.Math==Math)return G}throw Error("a");};
_.ke=SPG(this);Jw=function(X,t){if(t)a:{var G=_.ke;X=X.split(".");for(var y=0;y<X.length-1;y++){var w=X[y];if(!(w in G))break a;G=G[w]}X=X[X.length-1];y=G[X];t=t(y);t!=y&&t!=null&&DvA(G,X,{configurable:!0,writable:!0,value:t})}};
Jw("Symbol",function(X){if(X)return X;var t=function(z,B){this.$jscomp$symbol$id_=z;DvA(this,"description",{configurable:!0,writable:!0,value:B})};
t.prototype.toString=function(){return this.$jscomp$symbol$id_};
var G="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",y=0,w=function(z){if(this instanceof w)throw new TypeError("b");return new t(G+(z||"")+"_"+y++,z)};
return w});
Jw("Symbol.iterator",function(X){if(X)return X;X=Symbol("c");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),G=0;G<t.length;G++){var y=_.ke[t[G]];typeof y==="function"&&typeof y.prototype[X]!="function"&&DvA(y.prototype,X,{configurable:!0,writable:!0,value:function(){return h1l(szE(this))}})}return X});
Jw("Symbol.asyncIterator",function(X){return X?X:Symbol("d")});
var h1l=function(X){X={next:X};X[Symbol.iterator]=function(){return this};
return X},Z60=typeof Object.create=="function"?Object.create:function(X){var t=function(){};
t.prototype=X;return new t},qPw=function(){function X(){function G(){}
new G;Reflect.construct(G,[],function(){});
return new G instanceof G}
if(typeof Reflect!="undefined"&&Reflect.construct){if(X())return Reflect.construct;var t=Reflect.construct;return function(G,y,w){G=t(G,y);w&&Reflect.setPrototypeOf(G,w.prototype);return G}}return function(G,y,w){w===void 0&&(w=G);
w=Z60(w.prototype||Object.prototype);return Function.prototype.apply.call(G,w,y)||w}}(),CKs;
if(typeof Object.setPrototypeOf=="function")CKs=Object.setPrototypeOf;else{var KSf;a:{var O6l={a:!0},uuV={};try{uuV.__proto__=O6l;KSf=uuV.a;break a}catch(X){}KSf=!1}CKs=KSf?function(X,t){X.__proto__=t;if(X.__proto__!==t)throw new TypeError("e`"+X);return X}:null}BH=CKs;
_.S=function(X,t){X.prototype=Z60(t.prototype);X.prototype.constructor=X;if(BH)BH(X,t);else for(var G in t)if(G!="prototype")if(Object.defineProperties){var y=Object.getOwnPropertyDescriptor(t,G);y&&Object.defineProperty(X,G,y)}else X[G]=t[G];X.superClass_=t.prototype};
_.J=function(X){var t=typeof Symbol!="undefined"&&Symbol.iterator&&X[Symbol.iterator];if(t)return t.call(X);if(typeof X.length=="number")return{next:szE(X)};throw Error("f`"+String(X));};
Hm=function(X){for(var t,G=[];!(t=X.next()).done;)G.push(t.value);return G};
_.RY=function(X){return X instanceof Array?X:Hm(_.J(X))};
_.Vc=function(X){return n9(X,X)};
n9=function(X,t){X.raw=t;Object.freeze&&(Object.freeze(X),Object.freeze(t));return X};
bz=function(X,t){return Object.prototype.hasOwnProperty.call(X,t)};
Qzf=typeof Object.assign=="function"?Object.assign:function(X,t){for(var G=1;G<arguments.length;G++){var y=arguments[G];if(y)for(var w in y)bz(y,w)&&(X[w]=y[w])}return X};
Jw("Object.assign",function(X){return X||Qzf});
var kE=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},IcA=function(X){if(X.isRunning_)throw new TypeError("h");
X.isRunning_=!0};
kE.prototype.JSC$8656_next_=function(X){this.yieldResult=X};
var WSV=function(X,t){X.abruptCompletion_={exception:t,isException:!0};X.nextAddress=X.catchAddress_||X.finallyAddress_};
kE.prototype.return=function(X){this.abruptCompletion_={return:X};this.nextAddress=this.finallyAddress_};
kE.prototype.yield=function(X,t){this.nextAddress=t;return{value:X}};
kE.prototype.jumpTo=function(X){this.nextAddress=X};
_.W$=function(X){X.nextAddress=0};
_.CL=function(X,t,G){X.catchAddress_=t;G!=void 0&&(X.finallyAddress_=G)};
_.u8=function(X,t){X.catchAddress_=0;X.finallyAddress_=t||0};
_.zx=function(X,t,G){X.nextAddress=t;X.catchAddress_=G||0};
_.IY=function(X,t){X.catchAddress_=t||0;t=X.abruptCompletion_.exception;X.abruptCompletion_=null;return t};
_.O6=function(X,t,G,y){y?X.finallyContexts_[y]=X.abruptCompletion_:X.finallyContexts_=[X.abruptCompletion_];X.catchAddress_=t||0;X.finallyAddress_=G||0};
_.Qb=function(X,t,G){G=X.finallyContexts_.splice(G||0)[0];(G=X.abruptCompletion_=X.abruptCompletion_||G)?G.isException?X.nextAddress=X.catchAddress_||X.finallyAddress_:G.jumpTo!=void 0&&X.finallyAddress_<G.jumpTo?(X.nextAddress=G.jumpTo,X.abruptCompletion_=null):X.nextAddress=X.finallyAddress_:X.nextAddress=t};
cOh=function(X){this.JSC$8661_context_=new kE;this.program_=X};
rOv=function(X,t){IcA(X.JSC$8661_context_);var G=X.JSC$8661_context_.yieldAllIterator_;if(G)return pD0(X,"return"in G?G["return"]:function(y){return{value:y,done:!0}},t,X.JSC$8661_context_.return);
X.JSC$8661_context_.return(t);return d1(X)};
pD0=function(X,t,G,y){try{var w=t.call(X.JSC$8661_context_.yieldAllIterator_,G);if(!(w instanceof Object))throw new TypeError("g`"+w);if(!w.done)return X.JSC$8661_context_.isRunning_=!1,w;var z=w.value}catch(B){return X.JSC$8661_context_.yieldAllIterator_=null,WSV(X.JSC$8661_context_,B),d1(X)}X.JSC$8661_context_.yieldAllIterator_=null;y.call(X.JSC$8661_context_,z);return d1(X)};
d1=function(X){for(;X.JSC$8661_context_.nextAddress;)try{var t=X.program_(X.JSC$8661_context_);if(t)return X.JSC$8661_context_.isRunning_=!1,{value:t.value,done:!1}}catch(G){X.JSC$8661_context_.yieldResult=void 0,WSV(X.JSC$8661_context_,G)}X.JSC$8661_context_.isRunning_=!1;if(X.JSC$8661_context_.abruptCompletion_){t=X.JSC$8661_context_.abruptCompletion_;X.JSC$8661_context_.abruptCompletion_=null;if(t.isException)throw t.exception;return{value:t.return,done:!0}}return{value:void 0,done:!0}};
NHV=function(X){this.next=function(t){IcA(X.JSC$8661_context_);X.JSC$8661_context_.yieldAllIterator_?t=pD0(X,X.JSC$8661_context_.yieldAllIterator_.next,t,X.JSC$8661_context_.JSC$8656_next_):(X.JSC$8661_context_.JSC$8656_next_(t),t=d1(X));return t};
this.throw=function(t){IcA(X.JSC$8661_context_);X.JSC$8661_context_.yieldAllIterator_?t=pD0(X,X.JSC$8661_context_.yieldAllIterator_["throw"],t,X.JSC$8661_context_.JSC$8656_next_):(WSV(X.JSC$8661_context_,t),t=d1(X));return t};
this.return=function(t){return rOv(X,t)};
this[Symbol.iterator]=function(){return this}};
_.KV=function(X,t){t=new NHV(new cOh(t));BH&&X.prototype&&BH(t,X.prototype);return t};
PKJ=function(X){function t(y){return X.next(y)}
function G(y){return X.throw(y)}
return new Promise(function(y,w){function z(B){B.done?y(B.value):Promise.resolve(B.value).then(t,G).then(z,w)}
z(X.next())})};
_.n=function(X){return PKJ(new NHV(new cOh(X)))};
_.KL=function(X){var t=X[Symbol.asyncIterator];return t!==void 0?t.call(X):new EGV(_.J(X))};
EGV=function(X){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return X};
this.next=function(t){return Promise.resolve(X.next(t))};
this["throw"]=function(t){return new Promise(function(G,y){var w=X["throw"];w!==void 0?G(w.call(X,t)):(G=X["return"],G!==void 0&&G.call(X),y(new TypeError("i")))})};
X["return"]!==void 0&&(this["return"]=function(t){return Promise.resolve(X["return"](t))})};
_.f1=function(){for(var X=Number(this),t=[],G=X;G<arguments.length;G++)t[G-X]=arguments[G];return t};
_.O5=function(X){return X};
Jw("globalThis",function(X){return X||_.ke});
Jw("Reflect",function(X){return X?X:{}});
Jw("Reflect.construct",function(){return qPw});
Jw("Reflect.setPrototypeOf",function(X){return X?X:BH?function(t,G){try{return BH(t,G),!0}catch(y){return!1}}:null});
Jw("Promise",function(X){function t(){this.batch_=null}
function G(B){return B instanceof w?B:new w(function(V){V(B)})}
if(X&&(typeof _.ke.PromiseRejectionEvent!=="undefined"||!_.ke.Promise||_.ke.Promise.toString().indexOf("[native code]")===-1))return X;t.prototype.asyncExecute=function(B){if(this.batch_==null){this.batch_=[];var V=this;this.asyncExecuteFunction(function(){V.executeBatch_()})}this.batch_.push(B)};
var y=_.ke.setTimeout;t.prototype.asyncExecuteFunction=function(B){y(B,0)};
t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var B=this.batch_;this.batch_=[];for(var V=0;V<B.length;++V){var b=B[V];B[V]=null;try{b()}catch(e){this.asyncThrow_(e)}}}this.batch_=null};
t.prototype.asyncThrow_=function(B){this.asyncExecuteFunction(function(){throw B;})};
var w=function(B){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var V=this.createResolveAndReject_();try{B(V.resolve,V.reject)}catch(b){V.reject(b)}};
w.prototype.createResolveAndReject_=function(){function B(e){return function(g){b||(b=!0,e.call(V,g))}}
var V=this,b=!1;return{resolve:B(this.resolveTo_),reject:B(this.JSC$8689_reject_)}};
w.prototype.resolveTo_=function(B){if(B===this)this.JSC$8689_reject_(new TypeError("m"));else if(B instanceof w)this.settleSameAsPromise_(B);else{a:switch(typeof B){case "object":var V=B!=null;break a;case "function":V=!0;break a;default:V=!1}V?this.resolveToNonPromiseObj_(B):this.fulfill_(B)}};
w.prototype.resolveToNonPromiseObj_=function(B){var V=void 0;try{V=B.then}catch(b){this.JSC$8689_reject_(b);return}typeof V=="function"?this.settleSameAsThenable_(V,B):this.fulfill_(B)};
w.prototype.JSC$8689_reject_=function(B){this.settle_(2,B)};
w.prototype.fulfill_=function(B){this.settle_(1,B)};
w.prototype.settle_=function(B,V){if(this.state_!=0)throw Error("n`"+B+"`"+V+"`"+this.state_);this.state_=B;this.result_=V;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
w.prototype.scheduleUnhandledRejectionCheck_=function(){var B=this;y(function(){if(B.notifyUnhandledRejection_()){var V=_.ke.console;typeof V!=="undefined"&&V.error(B.result_)}},1)};
w.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var B=_.ke.CustomEvent,V=_.ke.Event,b=_.ke.dispatchEvent;if(typeof b==="undefined")return!0;typeof B==="function"?B=new B("unhandledrejection",{cancelable:!0}):typeof V==="function"?B=new V("unhandledrejection",{cancelable:!0}):(B=_.ke.document.createEvent("CustomEvent"),B.initCustomEvent("unhandledrejection",!1,!0,B));B.promise=this;B.reason=this.result_;return b(B)};
w.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var B=0;B<this.onSettledCallbacks_.length;++B)z.asyncExecute(this.onSettledCallbacks_[B]);this.onSettledCallbacks_=null}};
var z=new t;w.prototype.settleSameAsPromise_=function(B){var V=this.createResolveAndReject_();B.callWhenSettled_(V.resolve,V.reject)};
w.prototype.settleSameAsThenable_=function(B,V){var b=this.createResolveAndReject_();try{B.call(V,b.resolve,b.reject)}catch(e){b.reject(e)}};
w.prototype.then=function(B,V){function b(T,D){return typeof T=="function"?function(h){try{e(T(h))}catch(u){g(u)}}:D}
var e,g,F=new w(function(T,D){e=T;g=D});
this.callWhenSettled_(b(B,e),b(V,g));return F};
w.prototype.catch=function(B){return this.then(void 0,B)};
w.prototype.callWhenSettled_=function(B,V){function b(){switch(e.state_){case 1:B(e.result_);break;case 2:V(e.result_);break;default:throw Error("o`"+e.state_);}}
var e=this;this.onSettledCallbacks_==null?z.asyncExecute(b):this.onSettledCallbacks_.push(b);this.isRejectionHandled_=!0};
w.resolve=G;w.reject=function(B){return new w(function(V,b){b(B)})};
w.race=function(B){return new w(function(V,b){for(var e=_.J(B),g=e.next();!g.done;g=e.next())G(g.value).callWhenSettled_(V,b)})};
w.all=function(B){var V=_.J(B),b=V.next();return b.done?G([]):new w(function(e,g){function F(h){return function(u){T[h]=u;D--;D==0&&e(T)}}
var T=[],D=0;do T.push(void 0),D++,G(b.value).callWhenSettled_(F(T.length-1),g),b=V.next();while(!b.done)})};
return w});
var e$=function(X,t,G){if(X==null)throw new TypeError("p`"+G);if(t instanceof RegExp)throw new TypeError("q`"+G);return X+""};
Jw("String.prototype.startsWith",function(X){return X?X:function(t,G){var y=e$(this,t,"startsWith"),w=y.length,z=t.length;G=Math.max(0,Math.min(G|0,y.length));for(var B=0;B<z&&G<w;)if(y[G++]!=t[B++])return!1;return B>=z}});
Jw("Object.setPrototypeOf",function(X){return X||BH});
Jw("Symbol.dispose",function(X){return X?X:Symbol("r")});
Jw("SuppressedError",function(X){function t(G,y,w){if(!(this instanceof t))return new t(G,y,w);w=Error(w);"stack"in w&&(this.stack=w.stack);this.message=w.message;this.error=G;this.suppressed=y}
if(X)return X;_.S(t,Error);t.prototype.name="SuppressedError";return t});
var UvJ=function(X,t,G){X instanceof String&&(X=String(X));for(var y=X.length,w=0;w<y;w++){var z=X[w];if(t.call(G,z,w,X))return{i:w,v:z}}return{i:-1,v:void 0}};
Jw("Array.prototype.find",function(X){return X?X:function(t,G){return UvJ(this,t,G).v}});
Jw("WeakMap",function(X){function t(){}
function G(b){var e=typeof b;return e==="object"&&b!==null||e==="function"}
function y(b){if(!bz(b,z)){var e=new t;DvA(b,z,{value:e})}}
function w(b){var e=Object[b];e&&(Object[b]=function(g){if(g instanceof t)return g;Object.isExtensible(g)&&y(g);return e(g)})}
if(function(){if(!X||!Object.seal)return!1;try{var b=Object.seal({}),e=Object.seal({}),g=new X([[b,2],[e,3]]);if(g.get(b)!=2||g.get(e)!=3)return!1;g.delete(b);g.set(e,4);return!g.has(b)&&g.get(e)==4}catch(F){return!1}}())return X;
var z="$jscomp_hidden_"+Math.random();w("freeze");w("preventExtensions");w("seal");var B=0,V=function(b){this.JSC$8696_id_=(B+=Math.random()+1).toString();if(b){b=_.J(b);for(var e;!(e=b.next()).done;)e=e.value,this.set(e[0],e[1])}};
V.prototype.set=function(b,e){if(!G(b))throw Error("s");y(b);if(!bz(b,z))throw Error("t`"+b);b[z][this.JSC$8696_id_]=e;return this};
V.prototype.get=function(b){return G(b)&&bz(b,z)?b[z][this.JSC$8696_id_]:void 0};
V.prototype.has=function(b){return G(b)&&bz(b,z)&&bz(b[z],this.JSC$8696_id_)};
V.prototype.delete=function(b){return G(b)&&bz(b,z)&&bz(b[z],this.JSC$8696_id_)?delete b[z][this.JSC$8696_id_]:!1};
return V});
Jw("Map",function(X){if(function(){if(!X||typeof X!="function"||!X.prototype.entries||typeof Object.seal!="function")return!1;try{var V=Object.seal({x:4}),b=new X(_.J([[V,"s"]]));if(b.get(V)!="s"||b.size!=1||b.get({x:4})||b.set({x:4},"t")!=b||b.size!=2)return!1;var e=b.entries(),g=e.next();if(g.done||g.value[0]!=V||g.value[1]!="s")return!1;g=e.next();return g.done||g.value[0].x!=4||g.value[1]!="t"||!e.next().done?!1:!0}catch(F){return!1}}())return X;
var t=new WeakMap,G=function(V){this[0]={};this[1]=z();this.size=0;if(V){V=_.J(V);for(var b;!(b=V.next()).done;)b=b.value,this.set(b[0],b[1])}};
G.prototype.set=function(V,b){V=V===0?0:V;var e=y(this,V);e.list||(e.list=this[0][e.id]=[]);e.entry?e.entry.value=b:(e.entry={next:this[1],previous:this[1].previous,head:this[1],key:V,value:b},e.list.push(e.entry),this[1].previous.next=e.entry,this[1].previous=e.entry,this.size++);return this};
G.prototype.delete=function(V){V=y(this,V);return V.entry&&V.list?(V.list.splice(V.index,1),V.list.length||delete this[0][V.id],V.entry.previous.next=V.entry.next,V.entry.next.previous=V.entry.previous,V.entry.head=null,this.size--,!0):!1};
G.prototype.clear=function(){this[0]={};this[1]=this[1].previous=z();this.size=0};
G.prototype.has=function(V){return!!y(this,V).entry};
G.prototype.get=function(V){return(V=y(this,V).entry)&&V.value};
G.prototype.entries=function(){return w(this,function(V){return[V.key,V.value]})};
G.prototype.keys=function(){return w(this,function(V){return V.key})};
G.prototype.values=function(){return w(this,function(V){return V.value})};
G.prototype.forEach=function(V,b){for(var e=this.entries(),g;!(g=e.next()).done;)g=g.value,V.call(b,g[1],g[0],this)};
G.prototype[Symbol.iterator]=G.prototype.entries;var y=function(V,b){var e=b&&typeof b;e=="object"||e=="function"?t.has(b)?e=t.get(b):(e=""+ ++B,t.set(b,e)):e="p_"+b;var g=V[0][e];if(g&&bz(V[0],e))for(V=0;V<g.length;V++){var F=g[V];if(b!==b&&F.key!==F.key||b===F.key)return{id:e,list:g,index:V,entry:F}}return{id:e,list:g,index:-1,entry:void 0}},w=function(V,b){var e=V[1];
return h1l(function(){if(e){for(;e.head!=V[1];)e=e.previous;for(;e.next!=e.head;)return e=e.next,{done:!1,value:b(e)};e=null}return{done:!0,value:void 0}})},z=function(){var V={};
return V.previous=V.next=V.head=V},B=0;
return G});
Jw("Set",function(X){if(function(){if(!X||typeof X!="function"||!X.prototype.entries||typeof Object.seal!="function")return!1;try{var G=Object.seal({x:4}),y=new X(_.J([G]));if(!y.has(G)||y.size!=1||y.add(G)!=y||y.size!=1||y.add({x:4})!=y||y.size!=2)return!1;var w=y.entries(),z=w.next();if(z.done||z.value[0]!=G||z.value[1]!=G)return!1;z=w.next();return z.done||z.value[0]==G||z.value[0].x!=4||z.value[1]!=z.value[0]?!1:w.next().done}catch(B){return!1}}())return X;
var t=function(G){this.JSC$8710_map_=new Map;if(G){G=_.J(G);for(var y;!(y=G.next()).done;)this.add(y.value)}this.size=this.JSC$8710_map_.size};
t.prototype.add=function(G){G=G===0?0:G;this.JSC$8710_map_.set(G,G);this.size=this.JSC$8710_map_.size;return this};
t.prototype.delete=function(G){G=this.JSC$8710_map_.delete(G);this.size=this.JSC$8710_map_.size;return G};
t.prototype.clear=function(){this.JSC$8710_map_.clear();this.size=0};
t.prototype.has=function(G){return this.JSC$8710_map_.has(G)};
t.prototype.entries=function(){return this.JSC$8710_map_.entries()};
t.prototype.values=function(){return this.JSC$8710_map_.values()};
t.prototype.keys=t.prototype.values;t.prototype[Symbol.iterator]=t.prototype.values;t.prototype.forEach=function(G,y){var w=this;this.JSC$8710_map_.forEach(function(z){return G.call(y,z,z,w)})};
return t});
Jw("Math.log2",function(X){return X?X:function(t){return Math.log(t)/Math.LN2}});
Jw("Object.values",function(X){return X?X:function(t){var G=[],y;for(y in t)bz(t,y)&&G.push(t[y]);return G}});
Jw("Object.is",function(X){return X?X:function(t,G){return t===G?t!==0||1/t===1/G:t!==t&&G!==G}});
Jw("Array.prototype.includes",function(X){return X?X:function(t,G){var y=this;y instanceof String&&(y=String(y));var w=y.length;G=G||0;for(G<0&&(G=Math.max(G+w,0));G<w;G++){var z=y[G];if(z===t||Object.is(z,t))return!0}return!1}});
Jw("String.prototype.includes",function(X){return X?X:function(t,G){return e$(this,t,"includes").indexOf(t,G||0)!==-1}});
Jw("Array.from",function(X){return X?X:function(t,G,y){G=G!=null?G:function(V){return V};
var w=[],z=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];if(typeof z=="function"){t=z.call(t);for(var B=0;!(z=t.next()).done;)w.push(G.call(y,z.value,B++))}else for(z=t.length,B=0;B<z;B++)w.push(G.call(y,t[B],B));return w}});
Jw("Object.entries",function(X){return X?X:function(t){var G=[],y;for(y in t)bz(t,y)&&G.push([y,t[y]]);return G}});
Jw("Number.isFinite",function(X){return X?X:function(t){return typeof t!=="number"?!1:!isNaN(t)&&t!==Infinity&&t!==-Infinity}});
Jw("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Jw("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Jw("Number.isInteger",function(X){return X?X:function(t){return Number.isFinite(t)?t===Math.floor(t):!1}});
Jw("Number.isSafeInteger",function(X){return X?X:function(t){return Number.isInteger(t)&&Math.abs(t)<=Number.MAX_SAFE_INTEGER}});
Jw("String.prototype.endsWith",function(X){return X?X:function(t,G){var y=e$(this,t,"endsWith");G===void 0&&(G=y.length);G=Math.max(0,Math.min(G|0,y.length));for(var w=t.length;w>0&&G>0;)if(y[--G]!=t[--w])return!1;return w<=0}});
var mv0=function(X,t){X instanceof String&&(X+="");var G=0,y=!1,w={next:function(){if(!y&&G<X.length){var z=G++;return{value:t(z,X[z]),done:!1}}y=!0;return{done:!0,value:void 0}}};
w[Symbol.iterator]=function(){return w};
return w};
Jw("Array.prototype.entries",function(X){return X?X:function(){return mv0(this,function(t,G){return[t,G]})}});
Jw("Math.trunc",function(X){return X?X:function(t){t=Number(t);if(isNaN(t)||t===Infinity||t===-Infinity||t===0)return t;var G=Math.floor(Math.abs(t));return t<0?-G:G}});
Jw("Number.isNaN",function(X){return X?X:function(t){return typeof t==="number"&&isNaN(t)}});
Jw("Array.prototype.keys",function(X){return X?X:function(){return mv0(this,function(t){return t})}});
Jw("Array.prototype.values",function(X){return X?X:function(){return mv0(this,function(t,G){return G})}});
Jw("Array.prototype.fill",function(X){return X?X:function(t,G,y){var w=this.length||0;G<0&&(G=Math.max(0,w+G));if(y==null||y>w)y=w;y=Number(y);y<0&&(y=Math.max(0,w+y));for(G=Number(G||0);G<y;G++)this[G]=t;return this}});
var j$=function(X){return X?X:Array.prototype.fill};
Jw("Int8Array.prototype.fill",j$);Jw("Uint8Array.prototype.fill",j$);Jw("Uint8ClampedArray.prototype.fill",j$);Jw("Int16Array.prototype.fill",j$);Jw("Uint16Array.prototype.fill",j$);Jw("Int32Array.prototype.fill",j$);Jw("Uint32Array.prototype.fill",j$);Jw("Float32Array.prototype.fill",j$);Jw("Float64Array.prototype.fill",j$);
Jw("Object.fromEntries",function(X){return X?X:function(t){var G={};if(!(Symbol.iterator in t))throw new TypeError("u`"+t);t=t[Symbol.iterator].call(t);for(var y=t.next();!y.done;y=t.next()){y=y.value;if(Object(y)!==y)throw new TypeError("v");G[y[0]]=y[1]}return G}});
Jw("String.prototype.replaceAll",function(X){return X?X:function(t,G){if(t instanceof RegExp&&!t.global)throw new TypeError("w");return t instanceof RegExp?this.replace(t,G):this.replace(new RegExp(String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),G)}});
Jw("Object.getOwnPropertySymbols",function(X){return X?X:function(){return[]}});
Jw("String.prototype.repeat",function(X){return X?X:function(t){var G=e$(this,null,"repeat");if(t<0||t>1342177279)throw new RangeError("x");t|=0;for(var y="";t;)if(t&1&&(y+=G),t>>>=1)G+=G;return y}});
Jw("Array.prototype.findIndex",function(X){return X?X:function(t,G){return UvJ(this,t,G).i}});
Jw("Array.prototype.flatMap",function(X){return X?X:function(t,G){var y=[];Array.prototype.forEach.call(this,function(w,z){w=t.call(G,w,z,this);Array.isArray(w)?y.push.apply(y,w):y.push(w)});
return y}});
Jw("String.prototype.codePointAt",function(X){return X?X:function(t){var G=e$(this,null,"codePointAt"),y=G.length;t=Number(t)||0;if(t>=0&&t<y){t|=0;var w=G.charCodeAt(t);if(w<55296||w>56319||t+1===y)return w;t=G.charCodeAt(t+1);return t<56320||t>57343?w:(w-55296)*1024+t+9216}}});
Jw("String.fromCodePoint",function(X){return X?X:function(t){for(var G="",y=0;y<arguments.length;y++){var w=Number(arguments[y]);if(w<0||w>1114111||w!==Math.floor(w))throw new RangeError("y`"+w);w<=65535?G+=String.fromCharCode(w):(w-=65536,G+=String.fromCharCode(w>>>10&1023|55296),G+=String.fromCharCode(w&1023|56320))}return G}});
Jw("String.prototype.trimLeft",function(X){function t(){return this.replace(/^[\s\xa0]+/,"")}
return X||t});
Jw("String.prototype.trimStart",function(X){return X||String.prototype.trimLeft});
Jw("String.prototype.padStart",function(X){return X?X:function(t,G){var y=e$(this,null,"padStart");t-=y.length;G=G!==void 0?String(G):" ";return(t>0&&G?G.repeat(Math.ceil(t/G.length)).substring(0,t):"")+y}});
Jw("Promise.prototype.finally",function(X){return X?X:function(t){return this.then(function(G){return Promise.resolve(t()).then(function(){return G})},function(G){return Promise.resolve(t()).then(function(){throw G;
})})}});
Jw("Math.imul",function(X){return X?X:function(t,G){t=Number(t);G=Number(G);var y=t&65535,w=G&65535;return y*w+((t>>>16&65535)*w+y*(G>>>16&65535)<<16>>>0)|0}});
Jw("Object.hasOwn",function(X){return X?X:function(t,G){return Object.prototype.hasOwnProperty.call(t,G)}});
Jw("Math.sign",function(X){return X?X:function(t){t=Number(t);return t===0||isNaN(t)?t:t>0?1:-1}});
Jw("Array.prototype.flat",function(X){return X?X:function(t){t=t===void 0?1:t;var G=[];Array.prototype.forEach.call(this,function(y){Array.isArray(y)&&t>0?(y=Array.prototype.flat.call(y,t-1),G.push.apply(G,y)):G.push(y)});
return G}});
Jw("String.raw",function(X){return X?X:function(t,G){if(t==null)throw new TypeError("z");for(var y=t.raw,w=y.length,z="",B=0;B<w;++B)z+=y[B],B+1<w&&B+1<arguments.length&&(z+=String(arguments[B+1]));return z}});
Jw("Reflect.ownKeys",function(X){return X?X:function(t){var G=[],y=Object.getOwnPropertyNames(t);t=Object.getOwnPropertySymbols(t);for(var w=0;w<y.length;w++)(y[w].substring(0,14)=="jscomp_symbol_"?t:G).push(y[w]);return G.concat(t)}});
Jw("Object.getOwnPropertyDescriptors",function(X){return X?X:function(t){for(var G={},y=Reflect.ownKeys(t),w=0;w<y.length;w++)G[y[w]]=Object.getOwnPropertyDescriptor(t,y[w]);return G}});
Jw("WeakSet",function(X){if(function(){if(!X||!Object.seal)return!1;try{var G=Object.seal({}),y=Object.seal({}),w=new X([G]);if(!w.has(G)||w.has(y))return!1;w.delete(G);w.add(y);return!w.has(G)&&w.has(y)}catch(z){return!1}}())return X;
var t=function(G){this.JSC$8717_map_=new WeakMap;if(G){G=_.J(G);for(var y;!(y=G.next()).done;)this.add(y.value)}};
t.prototype.add=function(G){this.JSC$8717_map_.set(G,!0);return this};
t.prototype.has=function(G){return this.JSC$8717_map_.has(G)};
t.prototype.delete=function(G){return this.JSC$8717_map_.delete(G)};
return t});
Jw("Promise.allSettled",function(X){function t(y){return{status:"fulfilled",value:y}}
function G(y){return{status:"rejected",reason:y}}
return X?X:function(y){var w=this;y=Array.from(y,function(z){return w.resolve(z).then(t,G)});
return w.all(y)}});
Jw("Number.parseInt",function(X){return X||parseInt});
_._DumpException=window._DumpException||function(X){throw X;};
window._DumpException=_._DumpException;var R1Y,g1,Fb,T2,i6v,LSf,vGs,acV,UR,lc6;R1Y=R1Y||{};_.tA=this||self;_.dl=function(X,t,G){X=X.split(".");G=G||_.tA;for(var y;X.length&&(y=X.shift());)X.length||t===void 0?G[y]&&G[y]!==Object.prototype[y]?G=G[y]:G=G[y]={}:G[y]=t};
g1=function(X,t){var G=_.GA("WIZ_global_data.oxN3nb");X=G&&G[X];return X!=null?X:t};
Fb=_.tA._F_toggles_default_kevlar_base||[];T2=function(){};
T2.get=function(){return null};
_.GA=function(X,t){X=X.split(".");t=t||_.tA;for(var G=0;G<X.length;G++)if(t=t[X[G]],t==null)return null;return t};
_.Aw=function(X){X.instance_=void 0;X.getInstance=function(){return X.instance_?X.instance_:X.instance_=new X}};
_.JQ=function(X){var t=typeof X;return t!="object"?t:X?Array.isArray(X)?"array":t:"null"};
_.xJ=function(X){var t=_.JQ(X);return t=="array"||t=="object"&&typeof X.length=="number"};
_.$h=function(X){var t=typeof X;return t=="object"&&X!=null||t=="function"};
_.GB=function(X){return Object.prototype.hasOwnProperty.call(X,i6v)&&X[i6v]||(X[i6v]=++LSf)};
i6v="closure_uid_"+(Math.random()*1E9>>>0);LSf=0;vGs=function(X,t,G){return X.call.apply(X.bind,arguments)};
acV=function(X,t,G){if(!X)throw Error();if(arguments.length>2){var y=Array.prototype.slice.call(arguments,2);return function(){var w=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(w,y);return X.apply(t,w)}}return function(){return X.apply(t,arguments)}};
_.rT=function(X,t,G){_.rT=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?vGs:acV;return _.rT.apply(null,arguments)};
_.WP=function(X,t){var G=Array.prototype.slice.call(arguments,1);return function(){var y=G.slice();y.push.apply(y,arguments);return X.apply(this,y)}};
_.YE=function(){return Date.now()};
UR=function(X){return X};
_.sx=function(X,t){function G(){}
G.prototype=t.prototype;X.superClass_=t.prototype;X.prototype=new G;X.prototype.constructor=X;X.base=function(y,w,z){for(var B=Array(arguments.length-2),V=2;V<arguments.length;V++)B[V-2]=arguments[V];return t.prototype[w].apply(y,B)}};
lc6=function(X){return X};var xvs,fc_;_.E=function(X,t,G,y){var w=arguments.length,z=w<3?t:y===null?y=Object.getOwnPropertyDescriptor(t,G):y,B;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")z=Reflect.decorate(X,t,G,y);else for(var V=X.length-1;V>=0;V--)if(B=X[V])z=(w<3?B(z):w>3?B(t,G,z):B(t,G))||z;w>3&&z&&Object.defineProperty(t,G,z)};
_.U=function(X,t){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(X,t)};
xvs=function(X,t){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("A");if(G===void 0){if(!Symbol.dispose)throw new TypeError("C");var G=t[Symbol.dispose]}if(typeof G!=="function")throw new TypeError("D");X.stack.push({value:t,dispose:G,async:!1})}return t};
fc_=function(X){function t(z){X.error=X.hasError?new SuppressedError(z,X.error,"An error was suppressed during disposal."):z;X.hasError=!0}
function G(){for(;y=X.stack.pop();)try{if(!y.async&&w===1)return w=0,X.stack.push(y),Promise.resolve().then(G);if(y.dispose){var z=y.dispose.call(y.value);if(y.async)return w|=2,Promise.resolve(z).then(G,function(B){t(B);return G()})}else w|=1}catch(B){t(B)}if(w===1)return X.hasError?Promise.reject(X.error):Promise.resolve();
if(X.hasError)throw X.error;}
var y,w=0;G()};_.sx(_.Xv,Error);_.Xv.prototype.name="CustomError";var MuV;var Xgv=void 0,$OY,tz_=typeof TextDecoder!=="undefined",GVw,tsG=typeof String.prototype.isWellFormed==="function",$w0=typeof TextEncoder!=="undefined";var Gss;_.cp=function(X){for(var t=[],G=0,y=0;y<X.length;y++){var w=X.charCodeAt(y);w<128?t[G++]=w:(w<2048?t[G++]=w>>6|192:((w&64512)==55296&&y+1<X.length&&(X.charCodeAt(y+1)&64512)==56320?(w=65536+((w&1023)<<10)+(X.charCodeAt(++y)&1023),t[G++]=w>>18|240,t[G++]=w>>12&63|128):t[G++]=w>>12|224,t[G++]=w>>6&63|128),t[G++]=w&63|128)}return t};
Gss=function(X){for(var t=[],G=0,y=0;G<X.length;){var w=X[G++];if(w<128)t[y++]=String.fromCharCode(w);else if(w>191&&w<224){var z=X[G++];t[y++]=String.fromCharCode((w&31)<<6|z&63)}else if(w>239&&w<365){z=X[G++];var B=X[G++],V=X[G++];w=((w&7)<<18|(z&63)<<12|(B&63)<<6|V&63)-65536;t[y++]=String.fromCharCode(55296+(w>>10));t[y++]=String.fromCharCode(56320+(w&1023))}else z=X[G++],B=X[G++],t[y++]=String.fromCharCode((w&15)<<12|(z&63)<<6|B&63)}return t.join("")};var bl=String.prototype.trim?function(X){return X.trim()}:function(X){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(X)[1]},ysl=/&/g,wgG=/</g,z$E=/>/g,HHV=/"/g,ov_=/'/g,Js0=/\x00/g,BO6=/[\x00&<>"']/;var D_=!!(Fb[0]>>15&1),nvJ=!!(Fb[0]&1024),VzE=!!(Fb[0]>>16&1),bHA=!!(Fb[0]&8),ksw=!!(Fb[0]&2),dO0=!!(Fb[0]&4),e$l=!!(Fb[0]&16),jvG=!!(Fb[0]&128);var gvh=g1(1,!0),g6=D_?VzE:g1(610401301,!1),F7w=D_?bHA:g1(772657768,!1),TOh=D_?ksw:g1(513659523,!1),Ass=D_?nvJ||!dO0:g1(568333945,gvh),da_=D_?e$l:g1(1331761403,!1),tq_=D_?nvJ||!jvG:g1(748402147,gvh);var TV,YMl=_.tA.navigator;TV=YMl?YMl.userAgentData||null:null;var nh;_.PY=function(X,t){return Array.prototype.indexOf.call(X,t,void 0)};
_.zA=function(X,t,G){Array.prototype.forEach.call(X,t,G)};
_.S$=function(X,t,G){return Array.prototype.filter.call(X,t,G)};
_.iG=function(X,t,G){return Array.prototype.map.call(X,t,G)};
nh=function(X,t,G){return Array.prototype.some.call(X,t,G)};
_.NbV=function(X,t,G){return Array.prototype.every.call(X,t,G)};var hw=function(X){hw[" "](X);return X};
hw[" "]=function(){};
var vbA=function(X,t){try{return hw(X[t]),!0}catch(G){}return!1},yGV=function(X,t,G,y){y=y?y(t):t;
return Object.prototype.hasOwnProperty.call(X,y)?X[y]:X[y]=G(t)};var svJ,bt,DOw,SME,ZHV,qMG,NAJ,Cnw,K7w,OHh,ky,QvA,ICv,rsh,NOJ,Pnf;_.sBl=function(){return _.tA.navigator||null};
svJ=Zf();_.Z_=zGY();bt=sh("Edge");DOw=bt||_.Z_;_.qe=sh("Gecko")&&!(_.V0(_.es(),"WebKit")&&!sh("Edge"))&&!(sh("Trident")||sh("MSIE"))&&!sh("Edge");_.C9=_.V0(_.es(),"WebKit")&&!sh("Edge");SME=_.C9&&sh("Mobile");_.h$E=_.kVv();ZHV=_.dw_();qMG=(Q0()?TV.platform==="Linux":sh("Linux"))||_.eGl();NAJ=_.VsV();Cnw=b_V();K7w=sh("iPad");OHh=sh("iPod");_.uq_=_.IV();ky=_.V0(_.es(),"KaiOS");QvA=function(){var X=_.tA.document;return X?X.documentMode:void 0};
a:{var W7s="",cs6=function(){var X=_.es();if(_.qe)return/rv:([^\);]+)(\)|;)/.exec(X);if(bt)return/Edge\/([\d\.]+)/.exec(X);if(_.Z_)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(X);if(_.C9)return/WebKit\/(\S+)/.exec(X);if(svJ)return/(?:Version)[ \/]?(\S+)/.exec(X)}();
cs6&&(W7s=cs6?cs6[1]:"");if(_.Z_){var pgV=QvA();if(pgV!=null&&pgV>parseFloat(W7s)){ICv=String(pgV);break a}}ICv=W7s}rsh=ICv;NOJ={};_.K9=function(X){return yGV(NOJ,X,function(){return _.d6(rsh,X)>=0})};
if(_.tA.document&&_.Z_){var EvV=QvA();Pnf=EvV?EvV:parseInt(rsh,10)||void 0}else Pnf=void 0;_.UOA=Pnf;var HgY,o0A,mO_;_.Ox=qw();HgY=b_V()||sh("iPod");o0A=sh("iPad");mO_=_.oJs();_.uz=_.K_();_.Xl=_.Oh()&&!_.IV();var R$V,Qc,hfV,U4l,L7A,iHA;R$V={};Qc=null;hfV=_.qe||_.C9||typeof _.tA.btoa=="function";_.i2=function(X,t){t===void 0&&(t=0);iHA();t=R$V[t];for(var G=Array(Math.floor(X.length/3)),y=t[64]||"",w=0,z=0;w<X.length-2;w+=3){var B=X[w],V=X[w+1],b=X[w+2],e=t[B>>2];B=t[(B&3)<<4|V>>4];V=t[(V&15)<<2|b>>6];b=t[b&63];G[z++]=e+B+V+b}e=0;b=y;switch(X.length-w){case 2:e=X[w+1],b=t[(e&15)<<2]||y;case 1:X=X[w],G[z]=t[X>>2]+t[(X&3)<<4|e>>4]+b+y}return G.join("")};
U4l=function(X){var t="";L7A(X,function(G){t+=String.fromCharCode(G)});
return t};
_.ia6=function(X){var t=[];L7A(X,function(G){t.push(G)});
return t};
_.BS=function(X){var t=X.length,G=t*3/4;G%3?G=Math.floor(G):_.n_("=.",X[t-1])&&(G=_.n_("=.",X[t-2])?G-2:G-1);var y=new Uint8Array(G),w=0;L7A(X,function(z){y[w++]=z});
return w!==G?y.subarray(0,w):y};
L7A=function(X,t){function G(b){for(;y<X.length;){var e=X.charAt(y++),g=Qc[e];if(g!=null)return g;if(!_.JA(e))throw Error("H`"+e);}return b}
iHA();for(var y=0;;){var w=G(-1),z=G(0),B=G(64),V=G(64);if(V===64&&w===-1)break;t(w<<2|z>>4);B!=64&&(t(z<<4&240|B>>2),V!=64&&t(B<<6&192|V))}};
iHA=function(){if(!Qc){Qc={};for(var X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],G=0;G<5;G++){var y=X.concat(t[G].split(""));R$V[G]=y;for(var w=0;w<y.length;w++){var z=y[w];Qc[z]===void 0&&(Qc[z]=w)}}}};var WEw=typeof Uint8Array!=="undefined",hGh=!_.Z_&&typeof btoa==="function",Z_V=/[-_.]/g,Dws={"-":"+",_:"/",".":"="},ro={};var p4,aC0;p4=function(X,t){if(t!==ro)throw Error("J");this.JSC$8747_value_=X;if(X!=null&&X.length===0)throw Error("I");};
_.Nz=function(){return vvA||(vvA=new p4(null,ro))};
aC0=function(X){return new Uint8Array(DRY(X)||0)};
p4.prototype.isEmpty=function(){return this.JSC$8747_value_==null};
p4.prototype.sizeBytes=function(){var X=DRY(this);return X?X.length:0};
var DRY=function(X){if(ro!==ro)throw Error("J");var t=X.JSC$8747_value_;t==null||WEw&&t!=null&&t instanceof Uint8Array||(typeof t==="string"?t=qhE(t):(_.JQ(t),t=null));return t==null?t:X.JSC$8747_value_=t},vvA;var KEv=void 0;var qz=typeof Symbol==="function"&&typeof Symbol()==="symbol",lCs=SY("jas",void 0,!0),Yq0=SY(void 0,"0di"),n1=SY(void 0,"1oa"),ma=SY(void 0,Symbol()),pSE=SY(void 0,"0ub"),NoV=SY(void 0,"0ubs"),yME=SY(void 0,"0ubsb"),yQf=SY(void 0,"0actk"),NR=SY("m_m","messagePrototypeMarker",!0),lPV=SY(void 0,"vps"),IPJ=SY();var uvG,O_6,$g,xOA;uvG={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};O_6=Object.defineProperties;_.C4=qz?lCs:"internalArrayState";xOA=[];uJ(xOA,7);$g=Object.freeze(xOA);var P4={},WS={},fCh=function(X,t,G){this.iterable=X;this.mapper=t;this.thisArg=G};
fCh.prototype.next=function(){var X=this.iterable.next();X.done||(X.value=this.mapper.call(this.thisArg,X.value));return X};
fCh.prototype[Symbol.iterator]=function(){return this};
var MzA=Object.freeze({}),mt={};_.XhE=iJ(function(X){return X!==null&&X!==void 0});var PlV=iJ(function(X){return typeof X==="number"}),N6h=iJ(function(X){return typeof X==="string"}),EJG=iJ(function(X){return typeof X==="boolean"}),$yE=iJ(function(X){return X!=null&&typeof X==="object"&&typeof X.then==="function"}),OsA=iJ(function(X){return typeof X==="function"}),dh=iJ(function(X){return!!X&&(typeof X==="object"||typeof X==="function")});var L4=typeof _.tA.BigInt==="function"&&typeof _.tA.BigInt(0)==="bigint";var eeV=iJ(function(X){return L4?X>=tJE&&X<=GIV:X[0]==="-"?UwV(X,yj0):UwV(X,whs)}),yj0=Number.MIN_SAFE_INTEGER.toString(),tJE=L4?BigInt(Number.MIN_SAFE_INTEGER):void 0,whs=Number.MAX_SAFE_INTEGER.toString(),GIV=L4?BigInt(Number.MAX_SAFE_INTEGER):void 0;var zSJ=typeof Uint8Array.prototype.slice==="function",f4=0,$V=0,H1V;var DH,qR,VB,KT,MsV;DH=typeof BigInt==="function"?BigInt.asIntN:void 0;_.u2=typeof BigInt==="function"?BigInt.asUintN:void 0;qR=Number.isSafeInteger;VB=Number.isFinite;KT=Math.trunc;MsV=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var xz6={};var O4V={},HSV=function(){try{var X=function(){return qPw(Map,[],this.constructor)};
_.S(X,Map);hw(new X);return!1}catch(t){return!0}}(),IQ=function(){this.JSC$8767_map_=new Map};
_.H=IQ.prototype;_.H.get=function(X){return this.JSC$8767_map_.get(X)};
_.H.set=function(X,t){this.JSC$8767_map_.set(X,t);this.size=this.JSC$8767_map_.size;return this};
_.H.delete=function(X){X=this.JSC$8767_map_.delete(X);this.size=this.JSC$8767_map_.size;return X};
_.H.clear=function(){this.JSC$8767_map_.clear();this.size=this.JSC$8767_map_.size};
_.H.has=function(X){return this.JSC$8767_map_.has(X)};
_.H.entries=function(){return this.JSC$8767_map_.entries()};
_.H.keys=function(){return this.JSC$8767_map_.keys()};
_.H.values=function(){return this.JSC$8767_map_.values()};
_.H.forEach=function(X,t){return this.JSC$8767_map_.forEach(X,t)};
IQ.prototype[Symbol.iterator]=function(){return this.entries()};
var LT=function(){if(HSV)return Object.setPrototypeOf(IQ.prototype,Map.prototype),Object.defineProperties(IQ.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),IQ;var X=function(){return qPw(Map,[],this.constructor)};
_.S(X,Map);return X}(),ER=function(X,t,G,y){G=G===void 0?heV:G;
y=y===void 0?heV:y;var w=LT.call(this)||this;w.arrayState=X[_.C4]|0;w.valueCtor=t;w.keyToApi=G;w.valueToApi=w.valueCtor?qqY:y;for(var z=0;z<X.length;z++){var B=X[z],V=G(B[0],!1,!0),b=B[1];t?b===void 0&&(b=null):b=y(B[1],!1,!0,void 0,void 0,w.arrayState);LT.prototype.set.call(w,V,b)}return w};
_.S(ER,LT);var oa_=function(X){if(X.arrayState&2)throw Error("N");};
_.H=ER.prototype;_.H.clear=function(){oa_(this);LT.prototype.clear.call(this)};
_.H.delete=function(X){oa_(this);return LT.prototype.delete.call(this,this.keyToApi(X,!0,!1))};
_.H.entries=function(){if(this.valueCtor){var X=LT.prototype.keys.call(this);X=new fCh(X,CJA,this)}else X=LT.prototype.entries.call(this);return X};
_.H.values=function(){if(this.valueCtor){var X=LT.prototype.keys.call(this);X=new fCh(X,ER.prototype.get,this)}else X=LT.prototype.values.call(this);return X};
_.H.forEach=function(X,t){this.valueCtor?LT.prototype.forEach.call(this,function(G,y,w){X.call(t,w.get(y),y,w)}):LT.prototype.forEach.call(this,X,t)};
_.H.set=function(X,t){oa_(this);X=this.keyToApi(X,!0,!1);return X==null?this:t==null?(LT.prototype.delete.call(this,X),this):LT.prototype.set.call(this,X,this.valueToApi(t,!0,!0,this.valueCtor,!1,this.arrayState))};
_.H.has=function(X){return LT.prototype.has.call(this,this.keyToApi(X,!1,!1))};
_.H.get=function(X){X=this.keyToApi(X,!1,!1);var t=LT.prototype.get.call(this,X);if(t!==void 0){var G=this.valueCtor;return G?(G=this.valueToApi(t,!1,!0,G,this.callToMutableOnAccess,this.arrayState),G!==t&&LT.prototype.set.call(this,X,G),G):t}};
ER.prototype[Symbol.iterator]=function(){return this.entries()};
ER.prototype.toJSON=void 0;var Ktl;var mzV=function(){},EhG=function(X,t){for(var G in X)!isNaN(G)&&t(X,+G,X[G])},Rev=function(X){var t=new mzV;
EhG(X,function(G,y,w){t[y]=wi(w)});
t.reviveUnknownFields=X.reviveUnknownFields;return t},Wt6={reviveIntoImmutable:!0};var Uzl;var fPG,MYG;var JjJ,Ht,O9,cO,Bs_,Ux,I7,na0,VJw,L9,bSE,vH,f9,Me;JjJ=_.aq(0);_.WH={};_.cH=function(X,t,G,y,w){t=Ht(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t,G,w);if(t!==null||y&&X.noLegacyNull!==WS)return t};
Ht=function(X,t,G,y){if(t===-1)return null;var w=t+(G?0:-1),z=X.length-1;if(!(z<1+(G?0:-1))){if(w>=z){var B=X[z];if(B!=null&&typeof B==="object"&&B.constructor===Object){G=B[t];var V=!0}else if(w===z)G=B;else return}else G=X[w];if(y&&G!=null){y=y(G);if(y==null)return y;if(!Object.is(y,G))return V?B[t]=y:X[w]=y,y}return G}};
_.Y7=function(X,t,G,y){fT(X);var w=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Xk(w,w[_.C4]|0,t,G,y);return X};
_.p9=function(X,t,G){X=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return FaG(X,X[_.C4]|0,t,G)!==void 0};
_.r1=function(X,t,G,y){var w=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return FaG(w,w[_.C4]|0,t,cO(X,y,G))!==void 0};
_.eM=function(X){return X===MzA?2:4};
_.Ne=function(X,t){X=_.cH(X,t,void 0,void 0,bTh);return X==null?_.Nz():X};
O9=function(X,t,G,y){fT(X);var w=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=w[_.C4]|0;if(y==null){var B=ev_(w);if(jN0(B,w,z,G)===t)B.set(G,0);else return X}else z=gVv(w,z,G,t);Xk(w,z,t,y);return X};
_.PH=function(X,t,G,y){var w=X[_.C4]|0,z=Rq(w);w=gVv(X,w,G,t,z);Xk(X,w,t,y,z)};
cO=function(X,t,G){return _.Ex(X,t)===G?G:-1};
_.Ex=function(X,t){X=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jN0(ev_(X),X,void 0,t,void 0)};
Bs_=function(X,t,G){var y=X[_.C4]|0,w=Rq(y),z=Ht(X,G,w);if(z!=null&&z[NR]===P4){if(!cS(z))return xV(z),z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var B=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(z)&&(B=z);if(B){var V=B[_.C4]|0;V&2&&(B=l2(B,V))}B=$RA(B,t,!0);B!==z&&Xk(X,y,G,B,w);return B};
_.Co=function(X,t,G,y){var w=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=w[_.C4]|0;t=FaG(w,z,t,G,y);if(t==null)return t;z=w[_.C4]|0;if(!cS(X,z)){var B=Z4l(t);B!==t&&(xV(X)&&(w=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=w[_.C4]|0),t=B,z=Xk(w,z,G,t,y),MR(w,z))}return t};
_.dT=function(X,t,G,y){var w=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return TiJ(X,w,w[_.C4]|0,t,G,y,!1,!0)};
_.Oi=function(X,t,G,y){G=AQA(G);_.Y7(X,t,G,y);G&&!cS(G)&&MR(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return X};
_.QW=function(X,t,G,y){y=AQA(y);O9(X,t,G,y);y&&!cS(y)&&MR(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return X};
Ux=function(X,t,G){fT(X);var y=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=y[_.C4]|0;if(G==null)return Xk(y,w,t),X;for(var z=G===$g?7:G[_.C4]|0,B=z,V=zY(z),b=V||Object.isFrozen(G),e=!0,g=!0,F=0;F<G.length;F++){var T=G[F];V||(T=cS(T),e&&(e=!T),g&&(g=T))}V||(z=e?13:5,z=g?z&-4097:z|4096);b&&z===B||(G=wi(G),B=0,z=tM(z,w));z!==B&&uJ(G,z);w=Xk(y,w,t,G);2&z||!(4096&z||16&z)||MR(y,w);return X};
I7=function(X,t,G,y){sNY(X,t,G,y);return X};
na0=function(X,t,G){sNY(X,t,mZ,void 0,G,1,!0);return X};
_.RQ=function(X,t,G){X=_.cH(X,t,void 0,G);t=typeof X;X=X==null?X:t==="bigint"?_.aq((0,_.u2)(64,X)):_.b2(X)?t==="string"?_.dzA(X):_.b4_(X):void 0;return X};
_.iz=function(X,t){var G=G===void 0?!1:G;var y;return(y=_.ffs(_.cH(X,t)))!=null?y:G};
_.jM=function(X,t,G){G=G===void 0?0:G;var y;return(y=_.FH(_.cH(X,t)))!=null?y:G};
VJw=function(X,t){var G=G===void 0?0:G;X=_.$zJ(_.cH(X,t));return X!=null?X:G};
L9=function(X,t,G){G=G===void 0?JjJ:G;var y;return(y=_.Ftv(_.cH(X,t)))!=null?y:G};
bSE=function(X){var t=t===void 0?JjJ:t;var G;return(G=_.RQ(X,23))!=null?G:t};
vH=function(X,t){var G=G===void 0?0:G;var y;return(y=_.cH(X,t,void 0,void 0,_.lfJ))!=null?y:G};
_.aQ=function(X,t,G,y){G=G===void 0?"":G;var w;return(w=_.W4(_.cH(X,t,y)))!=null?w:G};
_.lz=function(X,t){var G=G===void 0?0:G;var y;return(y=_.eq(_.cH(X,t)))!=null?y:G};
f9=function(X,t){var G=G===void 0?"0":G;X=ghY(_.cH(X,t),!0);return X!=null?X:G};
Me=function(X,t,G){return _.aQ(X,cO(X,G,t))};
_.Xy=function(X,t,G,y){return _.Co(X,t,cO(X,y,G),void 0)};
_.Ko=function(X,t){return _.W4(_.cH(X,t,void 0,_.WH))};
_.Yb=function(X,t,G){return _.Y7(X,t,xwJ(G))};
_.iw=function(X,t,G){return _.Bt(X,t,xwJ(G),!1)};
_.$o=function(X,t,G){return _.Y7(X,t,_.jq(G))};
_.rj=function(X,t,G){return _.Y7(X,t,ZH(G))};
_.rp=function(X,t,G){return _.Y7(X,t,IN(G))};
_.nV=function(X,t,G,y){return _.Bt(X,t,IN(G),"",y)};
_.AG=function(X,t,G){return _.Y7(X,t,G==null?G:_.di(G))};
_.tl=function(X,t,G){return _.Bt(X,t,G==null?G:_.di(G),0)};var VW=function(X,t,G){this.buffer=X;if(G&&!t)throw Error();this.JSC$8779_isImmutable=t};var kI_=function(X,t,G,y){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8782_start_=0;this.init(X,t,G,y)},G1,eS0,jn6,FBs,Lal,dyw;
_.H=kI_.prototype;_.H.init=function(X,t,G,y){var w=y===void 0?{}:y;y=w.aliasBytesFields===void 0?!1:w.aliasBytesFields;w=w.treatNewDataAsImmutable===void 0?!1:w.treatNewDataAsImmutable;this.aliasBytesFields=y;this.treatNewDataAsImmutable=w;X&&(X=SR_(X,this.treatNewDataAsImmutable),this.bytes_=X.buffer,this.bytesAreImmutable_=X.JSC$8779_isImmutable,this.JSC$8782_start_=t||0,this.end_=G!==void 0?this.JSC$8782_start_+G:this.bytes_.length,this.cursor_=this.JSC$8782_start_)};
_.H.free=function(){this.clear();dyw.length<100&&dyw.push(this)};
_.H.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8782_start_=0;this.aliasBytesFields=!1};
_.H.reset=function(){this.cursor_=this.JSC$8782_start_};
_.H.atEnd=function(){return this.cursor_==this.end_};
_.y7=function(X,t){var G=0,y=0,w=0,z=X.bytes_,B=X.cursor_;do{var V=z[B++];G|=(V&127)<<w;w+=7}while(w<32&&V&128);if(w>32)for(y|=(V&127)>>4,w=3;w<32&&V&128;w+=7)V=z[B++],y|=(V&127)<<w;G1(X,B);if(!(V&128))return t(G>>>0,y>>>0);throw Error();};
G1=function(X,t){X.cursor_=t;if(t>X.end_)throw Error();};
_.wa=function(X){var t=X.bytes_,G=X.cursor_,y=t[G++],w=y&127;if(y&128&&(y=t[G++],w|=(y&127)<<7,y&128&&(y=t[G++],w|=(y&127)<<14,y&128&&(y=t[G++],w|=(y&127)<<21,y&128&&(y=t[G++],w|=y<<28,y&128&&t[G++]&128&&t[G++]&128&&t[G++]&128&&t[G++]&128&&t[G++]&128)))))throw Error();G1(X,G);return w};
_.z1=function(X){var t=X.bytes_,G=X.cursor_,y=t[G],w=t[G+1],z=t[G+2];t=t[G+3];G1(X,X.cursor_+4);return(y<<0|w<<8|z<<16|t<<24)>>>0};
eS0=function(X){var t=_.z1(X);X=_.z1(X);return i_V(t,X)};
jn6=function(X){var t=_.z1(X),G=_.z1(X);X=(G>>31)*2+1;var y=G>>>20&2047;t=4294967296*(G&1048575)+t;return y==2047?t?NaN:X*Infinity:y==0?X*4.9E-324*t:X*Math.pow(2,y-1075)*(t+4503599627370496)};
_.gaJ=function(X){for(var t=0,G=X.cursor_,y=G+10,w=X.bytes_;G<y;){var z=w[G++];t|=z;if((z&128)===0)return G1(X,G),!!(t&127)}throw Error();};
FBs=function(X,t){if(t<0)throw Error();var G=X.cursor_;t=G+t;if(t>X.end_)throw Error();X.cursor_=t;return G};
Lal=function(X,t){if(t==0)return _.Nz();var G=FBs(X,t);X.aliasBytesFields&&X.bytesAreImmutable_?G=X.bytes_.subarray(G,G+t):(X=X.bytes_,t=G+t,G=G===t?new Uint8Array(0):zSJ?X.slice(G,t):new Uint8Array(X.subarray(G,t)));return G.length==0?_.Nz():new p4(G,ro)};
dyw=[];var AjG=function(X,t,G,y){if(dyw.length){var w=dyw.pop();w.init(X,t,G,y);X=w}else X=new kI_(X,t,G,y);this.decoder_=X;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Ts_(this,y)},Ts_=function(X,t){t=t===void 0?{}:t;
X.discardUnknownFields=t.discardUnknownFields===void 0?!1:t.discardUnknownFields},lHv=function(X,t,G,y){if(YTs.length){var w=YTs.pop();
Ts_(w,y);w.decoder_.init(X,t,G,y);return w}return new AjG(X,t,G,y)},mR6,iTl,snV,YTs;
AjG.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;YTs.length<100&&YTs.push(this)};
AjG.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
mR6=function(X){if(X.decoder_.atEnd())return!1;X.fieldCursor_=X.decoder_.cursor_;var t=_.wa(X.decoder_)>>>0,G=t>>>3;t&=7;if(!(t>=0&&t<=5))throw Error();if(G<1)throw Error();X.nextField_=G;X.nextWireType_=t;return!0};
iTl=function(X){switch(X.nextWireType_){case 0:X.nextWireType_!=0?iTl(X):_.gaJ(X.decoder_);break;case 1:X=X.decoder_;G1(X,X.cursor_+8);break;case 2:if(X.nextWireType_!=2)iTl(X);else{var t=_.wa(X.decoder_)>>>0;X=X.decoder_;G1(X,X.cursor_+t)}break;case 5:X=X.decoder_;G1(X,X.cursor_+4);break;case 3:t=X.nextField_;do{if(!mR6(X))throw Error();if(X.nextWireType_==4){if(X.nextField_!=t)throw Error();break}iTl(X)}while(1);break;default:throw Error();}};
snV=function(X,t,G){var y=X.decoder_.end_,w=_.wa(X.decoder_)>>>0;w=X.decoder_.cursor_+w;var z=w-y;z<=0&&(X.decoder_.end_=w,G(t,X,void 0,void 0,void 0),z=w-X.decoder_.cursor_);if(z)throw Error();X.decoder_.cursor_=w;X.decoder_.end_=y};
_.DyA=function(X){var t=_.wa(X.decoder_)>>>0;X=X.decoder_;var G=FBs(X,t);X=X.bytes_;if(tz_){var y=X,w;(w=$OY)||(w=$OY=new TextDecoder("utf-8",{fatal:!0}));t=G+t;y=G===0&&t===y.length?y:y.subarray(G,t);try{var z=w.decode(y)}catch(e){if(Xgv===void 0){try{w.decode(new Uint8Array([128]))}catch(g){}try{w.decode(new Uint8Array([97])),Xgv=!0}catch(g){Xgv=!1}}!Xgv&&($OY=void 0);throw e;}}else{z=G;t=z+t;G=[];for(var B=null,V,b;z<t;)V=X[z++],V<128?G.push(V):V<224?z>=t?$J():(b=X[z++],V<194||(b&192)!==128?(z--,
$J()):G.push((V&31)<<6|b&63)):V<240?z>=t-1?$J():(b=X[z++],(b&192)!==128||V===224&&b<160||V===237&&b>=160||((w=X[z++])&192)!==128?(z--,$J()):G.push((V&15)<<12|(b&63)<<6|w&63)):V<=244?z>=t-2?$J():(b=X[z++],(b&192)!==128||(V<<28)+(b-144)>>30!==0||((w=X[z++])&192)!==128||((y=X[z++])&192)!==128?(z--,$J()):(V=(V&7)<<18|(b&63)<<12|(w&63)<<6|y&63,V-=65536,G.push((V>>10&1023)+55296,(V&1023)+56320))):$J(),G.length>=8192&&(B=XYv(B,G),G.length=0);z=XYv(B,G)}return z};
_.ST6=function(X){var t=_.wa(X.decoder_)>>>0;return Lal(X.decoder_,t)};
_.hSf=function(X,t,G){var y=_.wa(X.decoder_)>>>0;for(y=X.decoder_.cursor_+y;X.decoder_.cursor_<y;)G.push(t(X.decoder_))};
YTs=[];var ZSV=function(X,t){this.JSC$8789_lo=X>>>0;this.JSC$8789_hi=t>>>0},C0l=function(X){if(!X)return qTE||(qTE=new ZSV(0,0));
if(!/^\d+$/.test(X))return null;af_(X);return new ZSV(f4,$V)},qTE,ngv=function(X,t){this.JSC$8791_lo=X>>>0;
this.JSC$8791_hi=t>>>0},JMJ=function(X){if(!X)return KBG||(KBG=new ngv(0,0));
if(!/^-?\d+$/.test(X))return null;af_(X);return new ngv(f4,$V)},KBG;var HI=function(){this.JSC$8793_buffer_=[]},BNV,OSh;
HI.prototype.length=function(){return this.JSC$8793_buffer_.length};
HI.prototype.end=function(){var X=this.JSC$8793_buffer_;this.JSC$8793_buffer_=[];return X};
BNV=function(X,t,G){for(;G>0||t>127;)X.JSC$8793_buffer_.push(t&127|128),t=(t>>>7|G<<25)>>>0,G>>>=7;X.JSC$8793_buffer_.push(t)};
OSh=function(X,t){for(;t>127;)X.JSC$8793_buffer_.push(t&127|128),t>>>=7;X.JSC$8793_buffer_.push(t)};
_.VB0=function(X,t){if(t>=0)OSh(X,t);else{for(var G=0;G<9;G++)X.JSC$8793_buffer_.push(t&127|128),t>>=7;X.JSC$8793_buffer_.push(1)}};
HI.prototype.writeUint8=function(X){this.JSC$8793_buffer_.push(X>>>0&255)};
_.SB=function(X,t){X.JSC$8793_buffer_.push(t>>>0&255);X.JSC$8793_buffer_.push(t>>>8&255);X.JSC$8793_buffer_.push(t>>>16&255);X.JSC$8793_buffer_.push(t>>>24&255)};
HI.prototype.writeInt8=function(X){this.JSC$8793_buffer_.push(X>>>0&255)};var u6E,gN,kY0,jjl;u6E=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new HI};
gN=function(X,t){t.length!==0&&(X.blocks_.push(t),X.totalLength_+=t.length)};
_.C2f=function(X,t){_.DY(X,t,2);t=X.encoder_.end();gN(X,t);t.push(X.totalLength_);return t};
_.KaJ=function(X,t){var G=t.pop();for(G=X.totalLength_+X.encoder_.length()-G;G>127;)t.push(G&127|128),G>>>=7,X.totalLength_++;t.push(G);X.totalLength_++};
_.DY=function(X,t,G){OSh(X.encoder_,t*8+G)};
kY0=function(X,t,G){if(G!=null){switch(typeof G){case "string":C0l(G)}_.DY(X,t,1);switch(typeof G){case "number":X=X.encoder_;mw6(G);_.SB(X,f4);_.SB(X,$V);break;case "bigint":G=BigInt.asUintN(64,G);G=new ZSV(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)));X=X.encoder_;t=G.JSC$8789_hi;_.SB(X,G.JSC$8789_lo);_.SB(X,t);break;default:G=C0l(G),X=X.encoder_,t=G.JSC$8789_hi,_.SB(X,G.JSC$8789_lo),_.SB(X,t)}}};
jjl=function(X,t,G){_.DY(X,t,2);OSh(X.encoder_,G.length);gN(X,X.encoder_.end());gN(X,G)};var hv6,WB0,cjl,NsV,P0_;hv6=b_();_.Qnv=b_();_.IhE=b_();WB0=b_();cjl=b_();_.ph_=b_();_.om=b_();_.rj0=b_();NsV=b_();P0_=b_();_.Ea_=b_();_.UyV=b_();_.eB=function(X,t,G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X,t,G)};
_.eB.prototype.toJSON=function(){return v4(this)};
_.eB.prototype.serialize=function(X){return JSON.stringify(v4(this,X))};
var Siv=function(X,t){if(t==null||t=="")return new X;t=JSON.parse(t);if(!Array.isArray(t))throw Error("V");return new X(Ifs(t))};
_.eB.prototype.getExtension=function(X){rqY(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X.fieldIndex);cql(this,X.fieldIndex);return X.ctor?X.isRepeated?X.getExtensionFn(this,X.ctor,X.fieldIndex,_.eM(),X.JSC$8804_hasMessageId):X.getExtensionFn(this,X.ctor,X.fieldIndex,X.JSC$8804_hasMessageId):X.isRepeated?X.getExtensionFn(this,X.fieldIndex,_.eM(),X.JSC$8804_hasMessageId):X.getExtensionFn(this,X.fieldIndex,X.defaultValue,X.JSC$8804_hasMessageId)};
_.eB.prototype.clone=function(){var X=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=X[_.C4]|0;return JQf(this,X,t)?oVJ(this,X,!0):new this.constructor(l2(X,t,!1))};
_.eB.prototype[NR]=P4;_.eB.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var kg=function(X,t,G){this.$$binaryReaderFn=X;this.$$binaryWriterFn=t;X=UR(hv6);this.$$isMsg=!!X&&G===X||!1},Wah=ZTs(function(X,t,G,y,w){if(X.nextWireType_!==2)return!1;
snV(X,Bs_(t,y,G),w);return!0},OTV),cQv=ZTs(function(X,t,G,y,w){if(X.nextWireType_!==2)return!1;
snV(X,Bs_(t,y,G),w);return!0},OTV),fHV=Symbol(),NiE=Symbol(),URY=Symbol(),$xv=Symbol(),vVJ=Symbol(),uHG,QNV;var Yi0,myG,RSV,iSA,LBs,vaJ,ahJ,lh6,xyV,fhY,MJw,$uv,tEl,y5_,wEG;Yi0=function(X,t){var G=new u6E;tB6(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G,dN(fHV,xRE,MqG,t));gN(G,G.encoder_.end());X=new Uint8Array(G.totalLength_);t=G.blocks_;for(var y=t.length,w=0,z=0;z<y;z++){var B=t[z];X.set(B,w);w+=B.length}G.blocks_=[X];return X};
myG=_.AM(function(X,t,G){if(X.nextWireType_!==1)return!1;_.si(t,G,jn6(X.decoder_));return!0},ogJ,P0_);
RSV=_.AM(function(X,t,G,y){if(X.nextWireType_!==1)return!1;_.PH(t,G,y,jn6(X.decoder_));return!0},ogJ,P0_);
iSA=_.AM(function(X,t,G,y){if(X.nextWireType_!==5)return!1;var w=_.z1(X.decoder_);X=(w>>31)*2+1;var z=w>>>23&255;w&=8388607;_.PH(t,G,y,z==255?w?NaN:X*Infinity:z==0?X*1.401298464324817E-45*w:X*Math.pow(2,z-150)*(w+8388608));return!0},function(X,t,G){t=_.lfJ(t);
t!=null&&(_.DY(X,G,5),X=X.encoder_,G=H1V||(H1V=new DataView(new ArrayBuffer(8))),G.setFloat32(0,+t,!0),$V=0,f4=G.getUint32(0,!0),_.SB(X,f4))},NsV);
_.Jl=_.AM(function(X,t,G){if(X.nextWireType_!==0)return!1;_.si(t,G,_.y7(X.decoder_,yB));return!0},_.hM,_.om);
LBs=_.AM(function(X,t,G){if(X.nextWireType_!==0)return!1;X=_.y7(X.decoder_,yB);_.si(t,G,X===0?void 0:X);return!0},_.hM,_.om);
vaJ=_.AM(function(X,t,G,y){if(X.nextWireType_!==0)return!1;_.PH(t,G,y,_.y7(X.decoder_,yB));return!0},_.hM,_.om);
_.BI=_.AM(function(X,t,G){if(X.nextWireType_!==0)return!1;_.si(t,G,_.wa(X.decoder_));return!0},b1V,WB0);
ahJ=_.AM(function(X,t,G){if(X.nextWireType_!==0)return!1;X=_.wa(X.decoder_);_.si(t,G,X===0?void 0:X);return!0},b1V,WB0);
lh6=_.AM(function(X,t,G,y){if(X.nextWireType_!==0)return!1;_.PH(t,G,y,_.wa(X.decoder_));return!0},b1V,WB0);
xyV=_.AM(function(X,t,G){if(X.nextWireType_!==1)return!1;_.si(t,G,eS0(X.decoder_));return!0},_.dxw,_.rj0);
fhY=_.ztl(function(X,t,G){if(X.nextWireType_!==1&&X.nextWireType_!==2)return!1;t=_.dR0(t,t[_.C4]|0,G);X.nextWireType_==2?_.hSf(X,eS0,t):t.push(eS0(X.decoder_));return!0},function(X,t,G){t=_.wtV(Aqf,t,!1);
if(t!=null)for(var y=0;y<t.length;y++)kY0(X,G,t[y])},_.rj0);
_.nN=_.AM(function(X,t,G){if(X.nextWireType_!==0)return!1;_.si(t,G,_.gaJ(X.decoder_));return!0},_.etJ,_.Qnv);
MJw=_.AM(function(X,t,G,y){if(X.nextWireType_!==0)return!1;_.PH(t,G,y,_.gaJ(X.decoder_));return!0},_.etJ,_.Qnv);
_.V7=_.AM(function(X,t,G){if(X.nextWireType_!==2)return!1;_.si(t,G,_.DyA(X));return!0},_.ggf,_.IhE);
_.XEV=_.AM(function(X,t,G,y){if(X.nextWireType_!==2)return!1;_.PH(t,G,y,_.DyA(X));return!0},_.ggf,_.IhE);
$uv=_.ztl(function(X,t,G){if(X.nextWireType_!==2)return!1;X=_.DyA(X);_.dR0(t,t[_.C4]|0,G).push(X);return!0},function(X,t,G){t=_.wtV(_.W4,t,!0);
if(t!=null)for(var y=0;y<t.length;y++){var w=X,z=G,B=t[y];B!=null&&jjl(w,z,yAf(B))}},_.IhE);
tEl=void 0;tEl=tEl===void 0?hv6:tEl;_.bM=new kg(function(X,t,G,y,w){if(X.nextWireType_!==2)return!1;y=$RA(void 0,y,!0);_.dR0(t,t[_.C4]|0,G).push(y);snV(X,y,w);return!0},function(X,t,G,y,w){if(Array.isArray(t))for(var z=0;z<t.length;z++)FNl(X,t[z],G,y,w)},tEl);
_.ko=ZTs(function(X,t,G,y,w,z){if(X.nextWireType_!==2)return!1;var B=t[_.C4]|0;gVv(t,B,z,G,Rq(B));t=Bs_(t,y,G);snV(X,t,w);return!0},FNl);
_.Gfs=_.AM(function(X,t,G){if(X.nextWireType_!==2)return!1;_.si(t,G,_.ST6(X));return!0},_.TNV,_.Ea_);
y5_=_.AM(function(X,t,G,y){if(X.nextWireType_!==2)return!1;_.PH(t,G,y,_.ST6(X));return!0},_.TNV,_.Ea_);
wEG=_.AM(function(X,t,G,y){if(X.nextWireType_!==0)return!1;_.PH(t,G,y,_.wa(X.decoder_)>>>0);return!0},function(X,t,G){t=_.$zJ(t);
t!=null&&t!=null&&(_.DY(X,G,0),OSh(X.encoder_,t))},cjl);
_.da=_.AM(function(X,t,G){if(X.nextWireType_!==0)return!1;_.si(t,G,_.wa(X.decoder_));return!0},_.AMl,_.UyV);var ouJ=function(){var X=zcG,t=H26;this.fieldIndex=175237375;this.ctor=t;this.isRepeated=0;this.getExtensionFn=_.Co;this.defaultValue=void 0;this.JSC$8804_hasMessageId=X.messageId!=null?mt:void 0};
ouJ.prototype.register=function(){hw(this)};var J5V=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(J5V,_.eB);var ByA=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ByA,_.eB);var qil=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(qil,_.eB);var nuf=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(nuf,_.eB);var VEJ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(VEJ,_.eB);var b2A=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(b2A,_.eB);var kfh=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(kfh,_.eB);kfh.prototype.getData=function(){return _.Ne(this,2)};var dul=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(dul,_.eB);var ec0=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ec0,_.eB);ec0.prototype.getStyle=function(){return _.Co(this,J5V,1)};var K1=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(K1,_.eB);K1.prototype.getPayloadCase=function(){return _.Ex(this,Ij)};
K1.prototype.getStyle=function(){return _.Xy(this,ec0,6,Ij)};
var jfh=function(){var X=new K1,t=new VEJ;return _.QW(X,7,Ij,t)},guV=function(){var X=new K1,t=new b2A;
return _.QW(X,8,Ij,t)},Ij=[1,
2,3,4,5,6,7,8];var Fyv=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Fyv,_.eB);var Tyh=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Tyh,_.eB);var A5l=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(A5l,_.eB);var YXG=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(YXG,_.eB);var sfJ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(sfJ,_.eB);var Duv=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Duv,_.eB);var SXh=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(SXh,_.eB);var hcV=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(hcV,_.eB);hcV.prototype.getData=function(){return _.Ne(this,2)};var Z2h=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Z2h,_.eB);var Z10=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Z10,_.eB);Z10.prototype.getPayloadCase=function(){return _.Ex(this,jU)};
var jU=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Fy=function(X,t){X=Error.call(this,X);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.code=t===void 0?2:t};
_.S(Fy,Error);var qXE=Promise;var Cqv=function(X){this.channelPromise=X};
Cqv.prototype.send=function(X,t,G){this.channelPromise.then(function(y){y.send(X,t,G)})};var Ky6=function(X,t){this.data=X;this.channel=t};
Ky6.prototype.reply=function(X,t,G){this.channel.send(X,t,G)};var O2_=function(X){this.JSC$8870_port_=X};
O2_.prototype.send=function(X,t,G){G=G===void 0?[]:G;var y=new MessageChannel;uIv(y.port1,t);this.JSC$8870_port_.postMessage(X,[y.port2].concat(G))};
var Qff=function(X,t){uIv(X,t);return new O2_(X)},uIv=function(X,t){t&&(X.onmessage=function(G){t(new Ky6(G.data,Qff(G.ports[0])))})};var IDv=function(X){this.verifier_=X};
IDv.prototype.verify=function(X){return this.verifier_(X)};
var Wy0=function(X){var t=Object.create(null);(typeof X==="string"?[X]:X).forEach(function(G){if(G==="null")throw Error("X");t[G]=!0});
return function(G){return t[G]===!0}};_.c5Y=function(){if(!_.tA.addEventListener||!Object.defineProperty)return!1;var X=!1,t=Object.defineProperty({},"passive",{get:function(){X=!0}});
try{var G=function(){};
_.tA.addEventListener("test",G,t);_.tA.removeEventListener("test",G,t)}catch(y){}return X}();var pEV;_.T1=function(X){var t=X.destination;var G=X.iframe;var y=X.origin;var w=X.channelName===void 0?"ZNWN1d":X.channelName;var z=X.onMessage===void 0?void 0:X.onMessage;X=X.onEstablished===void 0?void 0:X.onEstablished;return pEV({destination:t,getSource:function(){return G.contentWindow},
originVerifier:y instanceof IDv?y:typeof y==="function"?new IDv(y):new IDv(Wy0(y)),channelName:w,onMessage:z,onEstablished:X})};
pEV=function(X){var t=X.destination;var G=X.getSource;var y=X.originVerifier;var w=X.token===void 0?void 0:X.token;var z=X.channelName;var B=X.onMessage===void 0?void 0:X.onMessage;var V=X.onEstablished===void 0?void 0:X.onEstablished;return new Cqv(new qXE(function(b,e){var g=function(F){F.source&&F.source===G()&&y.verify(F.origin)&&(F.data.n||F.data)===z&&(t.removeEventListener("message",g,!1),w&&F.data.t!==w?e(Error("Y`"+z+"`"+w+"`"+F.data.t)):(b(Qff(F.ports[0],B)),V&&V(F)))};
t.addEventListener("message",g,!1)}))};var r5l=function(X){try{X()}catch(t){GV(t)}};var Pqv=function(X){var t=this;var G=X.getMessageType;var y=X.onUnregisteredMessage===void 0?function(){}:X.onUnregisteredMessage;
var w=X.onBeforeRegisteredMessage===void 0?function(){}:X.onBeforeRegisteredMessage;
X=X.onAfterRegisteredMessage===void 0?function(){}:X.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=G;this.onUnregisteredMessage_=y;this.onBeforeRegisteredMessage_=w;this.onAfterRegisteredMessage_=X;this.onMessage=function(z){return Nyf(t,z)}};
Pqv.prototype.register=function(X,t){this.registry_.set(X,t);return this};
var Nyf=function(X,t){var G=X.getMessageType_(t.data),y=X.registry_.get(G);y?(r5l(function(){return X.onBeforeRegisteredMessage_(t,G)}),r5l(function(){return y(t)}),r5l(function(){return X.onAfterRegisteredMessage_(t,G)})):r5l(function(){return X.onUnregisteredMessage_(t,G)})};var Eu_=function(X){this.JSC$8887_channel_=X},muV,RcA;
Eu_.prototype.send=function(X,t,G){this.JSC$8887_channel_.send(v4(X),t,G)};
_.Uuv=function(X,t){return function(G){var y=new X(G.data);return t(new Ky6(y,G.channel))}};
muV=function(X){return function(t){return X(new Ky6(t.data,new Eu_(t.channel)))}};
RcA=function(X,t){return muV(_.Uuv(X,t))};var i2v=function(X,t,G,y){this.registry=X;this.delegate=t;this.receiveMessageConstructor=G;this.createInitMessage=y;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},htA=function(X){var t=new Pqv({getMessageType:X.getPayloadCase});
return new i2v(t,new Eu_(_.T1({iframe:X.child,destination:window,origin:X.origin,channelName:X.channelName,onMessage:RcA(X.receiveMessageConstructor,t.onMessage)})),X.receiveMessageConstructor,X.createInitMessage)},LyA=function(X,t){X.createInitMessage=t};
i2v.prototype.send=function(X){if(!this.initialised)throw new Fy("Attempted to send a message before initialisation.");this.delegate.send(X)};
var vuG=function(X,t){return _.n(function(G){if(!X.initialised)throw new Fy("Attempted to send a message before initialisation.");return G.return(new Promise(function(y){X.delegate.send(t,RcA(X.receiveMessageConstructor,y))}))})};
i2v.prototype.init=function(){var X=this;return _.n(function(t){if(X.initialised)throw new Fy("Attempted to initialise twice. The SDK can only be initialised once.");if(X.createInitMessage!==void 0){var G=X.delegate,y=G.send,w=X.createInitMessage;var z=new ByA;var B=[].concat(_.RY(X.features));z=_.JM(z,1,B,_.di);y.call(G,w.call(X,z))}X.initialised=!0;_.W$(t)})};
var Al=function(X,t){if(X.initialised)throw new Fy('Attempted to set up API "'+t+'" after initialisation. All APIs must be set up before initialising the SDK.');X.features.add(t);return X.registry};
_.ke.Object.defineProperties(i2v.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var aDs=function(X){this.channel=X;this.registered=!1};
aDs.prototype.update=function(X){if(this.channel.isInitialised){if(!this.registered)throw new Fy("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var t=new K1;var G=new nuf;G=_.Yb(G,1,X);t=_.QW(t,2,Ij,G);this.channel.send(t)}else this.register();this.JSC$8901_audioEnabled=X};
aDs.prototype.register=function(){Al(this.channel,1);this.registered=!0};
aDs.prototype.isAudioEnabled=function(){return this.JSC$8901_audioEnabled};var lDl=function(X){this.channel=X};
_.H=lDl.prototype;_.H.onFirstFrameReady=function(X){Al(this.channel,2).register(11,function(t){t=_.Xy(t.data,Fyv,11,jU);if(!t)throw new Fy("Unexpectedly nonexistent GameFirstFrameReadyEvent");X(_.aQ(t,1))})};
_.H.onReady=function(X){Al(this.channel,2).register(4,function(t){t=_.Xy(t.data,A5l,4,jU);if(!t)throw new Fy("Unexpectedly nonexistent GameReadyEvent");X(_.aQ(t,1))})};
_.H.onLevelComplete=function(X){Al(this.channel,2).register(5,function(t){t=_.Xy(t.data,YXG,5,jU);if(!t)throw new Fy("Unexpectedly nonexistent LevelCompleteEvent");X(_.aQ(t,1),_.jM(t,2))})};
_.H.onGameOver=function(X){Al(this.channel,2).register(6,function(t){t=_.Xy(t.data,Tyh,6,jU);if(!t)throw new Fy("Unexpectedly nonexistent GameOverEvent");X(_.aQ(t,1))})};
_.H.pause=function(){var X=this;if(!this.channel.isInitialised)return Al(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Fy("Using unregistered Game Feature: pause.");var t=jfh();return new Promise(function(G){return _.n(function(y){if(y.nextAddress==1)return y.yield(vuG(X.channel,t),2);G();_.W$(y)})})};
_.H.resume=function(){var X=this;if(!this.channel.isInitialised)return Al(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Fy("Using unregistered Game Feature: resume.");var t=guV();return new Promise(function(G){return _.n(function(y){if(y.nextAddress==1)return y.yield(vuG(X.channel,t),2);G();_.W$(y)})})};var xuw=function(X){this.channel=X};
xuw.prototype.onReady=function(X){Al(this.channel,5).register(8,function(t){if(!_.Xy(t.data,sfJ,8,jU))throw new Fy("Unexpectedly nonexistent PageReadyEvent");X()})};var fDh=function(X){this.channel=X};
fDh.prototype.onChange=function(X){Al(this.channel,3).register(7,function(t){t=_.Xy(t.data,Duv,7,jU);if(!t)throw new Fy("Unexpectedly nonexistent ScoreEvent");X(_.aQ(t,1),_.jM(t,2))})};var MEh={load:function(){throw new Fy("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Fy("Storage used, but storage.onSave() listener not set!");}},XY4=function(X){this.channel=X;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},$wR=function(X){Al(X.channel,4).register(2,MEh.load).register(3,MEh.save);
X.initialSetupDone=!0};
XY4.prototype.onLoad=function(X){this.initialSetupDone||$wR(this);this.loadRegistered||(this.loadRegistered=!0,Al(this.channel,4).register(2,function(t){var G,y,w;return _.n(function(z){if(z.nextAddress==1){G=_.Xy(t.data,SXh,2,jU);if(!G)throw new Fy("Unexpectedly nonexistent StorageLoad");y=_.aQ(G,1);return z.yield(X(y),2)}w=z.yieldResult;var B=t.reply,V=new K1;var b=new kfh;b=_.rp(b,1,y);b=_.Y7(b,2,_.PS(w,!1));V=_.QW(V,3,Ij,b);B.call(t,V);_.W$(z)})}))};
XY4.prototype.onSave=function(X){this.initialSetupDone||$wR(this);this.saveRegistered||(this.saveRegistered=!0,Al(this.channel,4).register(3,function(t){var G,y,w;return _.n(function(z){if(z.nextAddress==1){G=_.Xy(t.data,hcV,3,jU);if(!G)throw new Fy("Unexpectedly nonexistent StorageSave");y=_.aQ(G,1);w=aC0(G.getData());return z.yield(X(y,w),2)}var B=t.reply,V=new K1;var b=new dul;b=_.rp(b,1,y);V=_.QW(V,4,Ij,b);B.call(t,V);_.W$(z)})}))};var tse=function(X){this.channel=X};
tse.prototype.update=function(X){if(!this.channel.features.has(6))throw new Fy("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var t=new K1,G=new ec0;X=_.Oi(G,1,X);t=_.QW(t,6,Ij,X);this.channel.send(t)};
tse.prototype.register=function(){Al(this.channel,6)};var GVz=function(X){this.channel=X;this.userActivityLoggingIntervalMs=0};
GVz.prototype.onUserActivity=function(X,t){this.userActivityLoggingIntervalMs=t;Al(this.channel,7).register(9,function(G){if(!_.Xy(G.data,Z2h,9,jU))throw new Fy("Unexpectedly nonexistent ClickEvent");X()})};var yAP=function(X){var t=this;this.channel=X;this.init=this.channel.init.bind(this.channel);this.page=new xuw(this.channel);this.game=new lDl(this.channel);this.audio=new aDs(this.channel);this.score=new fDh(this.channel);this.storage=new XY4(this.channel);this.style=new tse(this.channel);this.userActivity=new GVz(this.channel);LyA(this.channel,function(G){var y=new qil;G=_.Oi(y,1,G);G=_.$o(G,3,t.userActivity.userActivityLoggingIntervalMs);y=t.audio.isAudioEnabled();y!==void 0&&_.Yb(G,2,y);y=new K1;
return _.QW(y,5,Ij,G)})};var wYS=function(){this.timedFunctionContext=0};
wYS.prototype.timeExecution=function(X,t){var G=this;return function(){var y=_.f1.apply(0,arguments);G.timedFunctionContext=X;return t.apply(null,_.RY(y))}};var zGS=function(){var X={};this.priorityTasks=(X[3]=[],X[2]=[],X[1]=[],X);this.isFlushing=!1},Ow=function(X,t,G){var y=H_Y(X,G);
X.priorityTasks[G].push(t);y&&X.priorityTasks[G].length===1&&X.flush()},H_Y=function(X,t){return Object.keys(X.priorityTasks).map(function(G){return Number(G)}).filter(function(G){return!isNaN(G)&&G>t}).every(function(G){return X.priorityTasks[G].length===0})};
zGS.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(X){return X.length>0});)oJY(this,3),oJY(this,2),oJY(this,1)}catch(X){throw Object.values(this.priorityTasks).forEach(function(t){return void t.splice(0,t.length)}),X;
}finally{this.isFlushing=!1}}};
var oJY=function(X,t){for(;H_Y(X,t)&&X.priorityTasks[t].length>0;)X.priorityTasks[t][0](),X.priorityTasks[t].shift()};
_.ke.Object.defineProperties(zGS.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(X){return X.length>0})}}});var cMf={};var JAq=globalThis.trustedTypes,KN_=JAq,ukv;var ct=function(X){this.privateDoNotAccessOrElseWrappedResourceUrl=X};
ct.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var B64,nJq,Vsq,b_q,kV4,dw4,eGJ,jVP;B64=_.Vc([""]);nJq=n9(["\x00"],["\\0"]);Vsq=n9(["\n"],["\\n"]);b_q=n9(["\x00"],["\\u0000"]);kV4=_.Vc([""]);dw4=n9(["\x00"],["\\0"]);eGJ=n9(["\n"],["\\n"]);jVP=n9(["\x00"],["\\u0000"]);_.gJP=WNs(function(X){return X(B64)})||WNs(function(X){return X(nJq)})||WNs(function(X){return X(Vsq)})||WNs(function(X){return X(b_q)});
_.FES=_.Pt(kV4)&&_.Pt(dw4)&&_.Pt(eGJ)&&_.Pt(jVP);var vt;_.Ei=function(X,t){this.privateDoNotAccessOrElseWrappedUrl=t};
_.Ei.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.T6P=Ui("about:blank");vt=Ui("about:invalid#zClosurez");var ptJ=function(X){this.isValid=X},AAt=new ptJ(function(X){return/^[^:]*([/?#]|$)/.test(X)}),Yhz=i_("data"),sVS=i_("http"),DwY=i_("https"),ShY=i_("ftp"),hGq=i_("mailto"),Z_q=i_("intent"),qht=i_("vnd.youtube"),rMf=[Yhz,
sVS,DwY,hGq,ShY,AAt],P_A=Wt(function(){return typeof URL==="function"}),ClP=["data:",
"http:","https:","mailto:","ftp:"],Ux0=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var $w=function(X){this.privateDoNotAccessOrElseWrappedHtml=X};
$w.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var $1V=Wt(function(){return new $w(JAq?JAq.emptyHTML:"")});var KE4={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"},Rtv=function(X,t){var G=Error.call(this,X+" cannot be used with intent "+KE4[t]);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.type=X;this.intent=t;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.S(Rtv,Error);_.oY=function(X){this.privateDoNotAccessOrElseWrappedScript=X};
_.oY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var aYl=function(X){this.privateDoNotAccessOrElseWrappedAttributePrefix=X};
aYl.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var lYv="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var teY=function(X){var t=_.GA("window.location.href");X==null&&(X='Unknown Error of type "null/undefined"');if(typeof X==="string")return{message:X,name:"Unknown error",lineNumber:"Not available",fileName:t,stack:"Not available"};var G=!1;try{var y=X.lineNumber||X.line||"Not available"}catch(B){y="Not available",G=!0}try{var w=X.fileName||X.filename||X.sourceURL||_.tA.$googDebugFname||t}catch(B){w="Not available",G=!0}t=O_o(X);if(!(!G&&X.lineNumber&&X.fileName&&X.stack&&X.message&&X.name)){G=X.message;
if(G==null){if(X.constructor&&X.constructor instanceof Function){if(X.constructor.name)G=X.constructor.name;else if(G=X.constructor,Yo[G])G=Yo[G];else{G=String(G);if(!Yo[G]){var z=/function\s+([^\(]+)/m.exec(G);Yo[G]=z?z[1]:"[Anonymous]"}G=Yo[G]}G='Unknown Error of type "'+G+'"'}else G="Unknown Error of unknown type";typeof X.toString==="function"&&Object.prototype.toString!==X.toString&&(G+=": "+X.toString())}return{message:G,name:X.name||"UnknownError",lineNumber:y,fileName:w,stack:t||"Not available"}}return{message:X.message,
name:X.name,lineNumber:X.lineNumber,fileName:X.fileName,stack:t}},O_o=function(X,t){t||(t={});
t[uve(X)]=!0;var G=X.stack||"",y=X.cause;y&&!t[uve(y)]&&(G+="\nCaused by: ",y.stack&&y.stack.indexOf(y.toString())==0||(G+=typeof y==="string"?y:y.message+"\n"),G+=O_o(y,t));X=X.errors;if(Array.isArray(X)){y=1;var w;for(w=0;w<X.length&&!(y>4);w++)t[uve(X[w])]||(G+="\nInner error "+y++ +": ",X[w].stack&&X[w].stack.indexOf(X[w].toString())==0||(G+=typeof X[w]==="string"?X[w]:X[w].message+"\n"),G+=O_o(X[w],t));w<X.length&&(G+="\n... "+(X.length-w)+" more inner errors")}return G},uve=function(X){var t=
"";
typeof X.toString==="function"&&(t=""+X);return t+X.stack},Yo={};var QV4,eH,OW,WEz,cAY,IfY,$H,yf,rAB;QV4=function(X,t){for(var G=X.split("%s"),y="",w=Array.prototype.slice.call(arguments,1);w.length&&G.length>1;)y+=G.shift()+w.shift();return y+G.join("%s")};
_.ww=function(X){return encodeURIComponent(String(X))};
eH=function(X){return decodeURIComponent(X.replace(/\+/g," "))};
OW=function(X){BO6.test(X)&&(X.indexOf("&")!=-1&&(X=X.replace(ysl,"&amp;")),X.indexOf("<")!=-1&&(X=X.replace(wgG,"&lt;")),X.indexOf(">")!=-1&&(X=X.replace(z$E,"&gt;")),X.indexOf('"')!=-1&&(X=X.replace(HHV,"&quot;")),X.indexOf("'")!=-1&&(X=X.replace(ov_,"&#39;")),X.indexOf("\x00")!=-1&&(X=X.replace(Js0,"&#0;")));return X};
WEz=function(X){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var G=_.tA.document.createElement("div");return X.replace(IfY,function(y,w){var z=t[y];if(z)return z;w.charAt(0)=="#"&&(w=Number("0"+w.slice(1)),isNaN(w)||(z=String.fromCharCode(w)));z||(_.b8(G,tI(y+" ")),z=G.firstChild.nodeValue.slice(0,-1));return t[y]=z})};
cAY=function(X){return X.replace(/&([^;]+);/g,function(t,G){switch(G){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return G.charAt(0)!="#"||(G=Number("0"+G.slice(1)),isNaN(G))?t:String.fromCharCode(G)}})};
IfY=/&([^;\s<&]+);?/g;_.DoJ=function(X){return String(X).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.pYS=String.prototype.repeat?function(X,t){return X.repeat(t)}:function(X,t){return Array(t+1).join(X)};
_.s1=function(X,t){if(!Number.isFinite(X))return String(X);X=String(X);var G=X.indexOf(".");G===-1&&(G=X.length);var y=X[0]==="-"?"-":"";y&&(X=X.substring(1));return y+(0,_.pYS)("0",Math.max(0,t-G))+X};
$H=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.YE()).toString(36)};
yf=function(X){for(var t=0,G=0;G<X.length;++G)t=31*t+X.charCodeAt(G)>>>0;return t};
_.I4=function(X){return String(X).replace(/\-([a-z])/g,function(t,G){return G.toUpperCase()})};
_.Q8=function(X){return String(X).replace(/([A-Z])/g,"-$1").toLowerCase()};
rAB=function(X){return X.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(t,G,y){return G+y.toUpperCase()})};var N6q=function(){this.names=new Map};
N6q.prototype.getName=function(X){var t=this.names.get(X);if(t)return t;var G;t=(G=X.description)!=null?G:$H();this.names.set(X,t);return t};var PlB=function(X){var t=Error.call(this,X?X.length+" errors occurred during unsubscription:\n"+X.map(function(G,y){return y+1+") "+G.toString()}).join("\n  "):"");
this.message=t.message;"stack"in t&&(this.stack=t.stack);this.errors=X;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.S(PlB,Error);var gq=function(X){this.initialTeardown=X;this.closed=!1;this._teardowns=this._parentage=null};
_.H=gq.prototype;
_.H.unsubscribe=function(){if(!this.closed){this.closed=!0;var X=this._parentage;if(Array.isArray(X))for(var t=_.J(X),G=t.next();!G.done;G=t.next())G.value.remove(this);else X==null||X.remove(this);t=this.initialTeardown;if(jc(t))try{t()}catch(z){var y=z instanceof PlB?z.errors:[z]}var w=this._teardowns;if(w)for(this._teardowns=null,t=_.J(w),G=t.next();!G.done;G=t.next()){G=G.value;try{jc(G)?G():G.unsubscribe()}catch(z){G=void 0,y=(G=y)!=null?G:[],z instanceof PlB?y=[].concat(_.RY(y),_.RY(z.errors)):
y.push(z)}}if(y)throw new PlB(y);}};
_.H.add=function(X){if(X&&X!==this)if(this.closed)jc(X)?X():X.unsubscribe();else{if(X instanceof gq){if(X.closed||X._hasParent(this))return;X._addParent(this)}var t;(this._teardowns=(t=this._teardowns)!=null?t:[]).push(X)}};
_.H._hasParent=function(X){var t=this._parentage;return t===X||Array.isArray(t)&&t.includes(X)};
_.H._addParent=function(X){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(X),t):t?[t,X]:X};
_.H._removeParent=function(X){var t=this._parentage;t===X?this._parentage=null:Array.isArray(t)&&X$J(t,X)};
_.H.remove=function(X){var t=this._teardowns;t&&X$J(t,X);X instanceof gq&&X._removeParent(this)};
var EJe=new gq;EJe.closed=!0;gq.JSC$8997_EMPTY=EJe;var tcA=function(){setTimeout.apply(null,_.RY(_.f1.apply(0,arguments)))};var DF=function(X){gq.call(this);this.JSC$9002_isStopped=!1;this.destination=X instanceof DF?X:new SU(!X||jc(X)?{next:X!=null?X:void 0}:X);$BA(X)&&X.add(this)};
_.S(DF,gq);DF.JSC$8997_EMPTY=gq.JSC$8997_EMPTY;DF.create=function(X,t,G){return new hl(X,t,G)};
_.H=DF.prototype;_.H.next=function(X){this.JSC$9002_isStopped||this._next(X)};
_.H.error=function(X){this.JSC$9002_isStopped||(this.JSC$9002_isStopped=!0,this._error(X))};
_.H.complete=function(){this.JSC$9002_isStopped||(this.JSC$9002_isStopped=!0,this._complete())};
_.H.unsubscribe=function(){this.closed||(this.JSC$9002_isStopped=!0,gq.prototype.unsubscribe.call(this))};
_.H._next=function(X){this.destination.next(X)};
_.H._error=function(X){this.destination.error(X);this.unsubscribe()};
_.H._complete=function(){this.destination.complete();this.unsubscribe()};
var SU=function(X){this.partialObserver=X};
SU.prototype.next=function(X){var t=this.partialObserver;if(t.next)try{t.next(X)}catch(G){Tc(G)}};
SU.prototype.error=function(X){var t=this.partialObserver;if(t.error)try{t.error(X)}catch(G){Tc(G)}else Tc(X)};
SU.prototype.complete=function(){var X=this.partialObserver;if(X.complete)try{X.complete()}catch(t){Tc(t)}};
var hl=function(X,t,G){DF.call(this);var y;jc(X)||!X?y={next:X!=null?X:void 0,error:t!=null?t:void 0,complete:G!=null?G:void 0}:y=X;this.destination=new SU(y)};
_.S(hl,DF);hl.JSC$8997_EMPTY=DF.JSC$8997_EMPTY;hl.create=DF.create;var hI=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Sc=function(X){X&&(this._subscribe=X)};
_.H=Sc.prototype;_.H.lift=function(X){var t=new Sc;t.source=this;t.operator=X;return t};
_.H.subscribe=function(X,t,G){X=X&&X instanceof DF||X&&jc(X.next)&&jc(X.error)&&jc(X.complete)&&$BA(X)?X:new hl(X,t,G);t=this.operator;G=this.source;X.add(t?t.call(X,G):G?this._subscribe(X):this._trySubscribe(X));return X};
_.H._trySubscribe=function(X){try{return this._subscribe(X)}catch(t){X.error(t)}};
_.H.forEach=function(X,t){var G=this;t=yI6(t);return new t(function(y,w){var z=G.subscribe(function(B){try{X(B)}catch(V){w(V),z==null||z.unsubscribe()}},w,y)})};
_.H._subscribe=function(X){var t;return(t=this.source)==null?void 0:t.subscribe(X)};
Sc.prototype[hI]=function(){return this};
Sc.prototype.pipe=function(){var X=_.f1.apply(0,arguments);return X.length?GcV(X)(this):this};
Sc.create=function(X){return new Sc(X)};var UwB=function(){var X=Error.call(this,"object unsubscribed");this.message=X.message;"stack"in X&&(this.stack=X.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.S(UwB,Error);var hK=function(){this.observers=[];this.hasError=this.JSC$9018_isStopped=this.closed=!1;this.thrownError=null};
_.S(hK,Sc);_.H=hK.prototype;_.H.lift=function(X){var t=new ZF(this,this);t.operator=X;return t};
_.H._throwIfClosed=function(){if(this.closed)throw new UwB;};
_.H.next=function(X){this._throwIfClosed();if(!this.JSC$9018_isStopped){var t=this.observers.slice();t=_.J(t);for(var G=t.next();!G.done;G=t.next())G.value.next(X)}};
_.H.error=function(X){this._throwIfClosed();if(!this.JSC$9018_isStopped){this.hasError=this.JSC$9018_isStopped=!0;this.thrownError=X;for(var t=this.observers;t.length;)t.shift().error(X)}};
_.H.complete=function(){this._throwIfClosed();if(!this.JSC$9018_isStopped){this.JSC$9018_isStopped=!0;for(var X=this.observers;X.length;)X.shift().complete()}};
_.H.unsubscribe=function(){this.JSC$9018_isStopped=this.closed=!0;this.observers=null};
_.H._trySubscribe=function(X){this._throwIfClosed();return Sc.prototype._trySubscribe.call(this,X)};
_.H._subscribe=function(X){this._throwIfClosed();this._checkFinalizedStatuses(X);return this._innerSubscribe(X)};
_.H._innerSubscribe=function(X){var t=this,G=this.JSC$9018_isStopped,y=this.observers;return this.hasError||G?gq.JSC$8997_EMPTY:(y.push(X),new gq(function(){return X$J(t.observers,X)}))};
_.H._checkFinalizedStatuses=function(X){var t=this.thrownError,G=this.JSC$9018_isStopped;this.hasError?X.error(t):G&&X.complete()};
hK.create=function(X,t){return new ZF(X,t)};
var ZF=function(X,t){hK.call(this);this.destination=X;this.source=t};
_.S(ZF,hK);ZF.create=hK.create;ZF.prototype.next=function(X){var t,G;(t=this.destination)==null||(G=t.next)==null||G.call(t,X)};
ZF.prototype.error=function(X){var t,G;(t=this.destination)==null||(G=t.error)==null||G.call(t,X)};
ZF.prototype.complete=function(){var X,t;(X=this.destination)==null||(t=X.complete)==null||t.call(X)};
ZF.prototype._subscribe=function(X){var t,G;return(G=(t=this.source)==null?void 0:t.subscribe(X))!=null?G:gq.JSC$8997_EMPTY};var $b=function(X){hK.call(this);this._value=X};
_.S($b,hK);$b.create=hK.create;$b.prototype._subscribe=function(X){var t=hK.prototype._subscribe.call(this,X);!t.closed&&X.next(this._value);return t};
$b.prototype.getValue=function(){var X=this.thrownError,t=this._value;if(this.hasError)throw X;this._throwIfClosed();return t};
$b.prototype.next=function(X){hK.prototype.next.call(this,this._value=X)};
_.ke.Object.defineProperties($b.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var l8=new Sc(function(X){return X.complete()});var ow0=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var bLE=function(X){return X&&typeof X.length==="number"&&typeof X!=="function"};var mwo={now:function(){return(mwo.delegate||Date).now()},
delegate:void 0};var nD=function(X,t,G){X=X===void 0?Infinity:X;t=t===void 0?Infinity:t;G=G===void 0?mwo:G;hK.call(this);this.bufferSize=X;this.windowTime=t;this.timestampProvider=G;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=t===Infinity;this.bufferSize=Math.max(1,X);this.windowTime=Math.max(1,t)};
_.S(nD,hK);nD.create=hK.create;nD.prototype.next=function(X){var t=this.buffer,G=this.infiniteTimeWindow,y=this.timestampProvider,w=this.windowTime;this.JSC$9018_isStopped||(t.push(X),!G&&t.push(y.now()+w));RGY(this);hK.prototype.next.call(this,X)};
nD.prototype._subscribe=function(X){this._throwIfClosed();RGY(this);for(var t=this._innerSubscribe(X),G=this.infiniteTimeWindow,y=this.buffer.slice(),w=0;w<y.length&&!X.closed;w+=G?1:2)X.next(y[w]);this._checkFinalizedStatuses(X);return t};
var RGY=function(X){var t=X.bufferSize,G=X.timestampProvider,y=X.buffer;X=X.infiniteTimeWindow;var w=(X?1:2)*t;t<Infinity&&w<y.length&&y.splice(0,y.length-w);if(!X){t=G.now();G=0;for(X=1;X<y.length&&y[X]<=t;X+=2)G=X;G&&y.splice(0,G+1)}};var LEo=function(X,t){t=t===void 0?i_B:t;this.schedulerActionCtor=X;this.now=t};
LEo.prototype.schedule=function(X,t,G){t=t===void 0?0:t;return(new this.schedulerActionCtor(this,X)).schedule(G,t)};
var i_B=mwo.now;var w1E=function(){var X=Error.call(this,"no elements in sequence");this.message=X.message;"stack"in X&&(this.stack=X.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.S(w1E,Error);var E6=function(X,t,G,y,w){DF.call(this,X);this.onUnsubscribe=w;t&&(this._next=function(z){try{t(z)}catch(B){this.destination.error(B)}});
G&&(this._error=function(z){try{G(z)}catch(B){this.destination.error(B)}this.unsubscribe()});
y&&(this._complete=function(){try{y()}catch(z){this.destination.error(z)}this.unsubscribe()})};
_.S(E6,DF);E6.JSC$8997_EMPTY=DF.JSC$8997_EMPTY;E6.create=DF.create;E6.prototype.unsubscribe=function(){var X;this.closed||(X=this.onUnsubscribe)!=null&&X.call(this);DF.prototype.unsubscribe.call(this)};var JK=function(X,t){this.source=X;this.subjectFactory=t;this._subject=null;this._refCount=0;this._connection=null};
_.S(JK,Sc);JK.create=Sc.create;JK.prototype._subscribe=function(X){return vJq(this).subscribe(X)};
var vJq=function(X){var t=X._subject;if(!t||t.JSC$9018_isStopped)X._subject=X.subjectFactory();return X._subject};
JK.prototype._teardown=function(){this._refCount=0;var X=this._connection;this._subject=this._connection=null;X==null||X.unsubscribe()};
JK.prototype.connect=function(){var X=this,t=this._connection;if(!t){t=this._connection=new gq;var G=vJq(this);t.add(this.source.subscribe(new E6(G,void 0,function(y){X._teardown();G.error(y)},function(){X._teardown();
G.complete()},function(){return X._teardown()})));
t.closed&&(this._connection=null,t=gq.JSC$8997_EMPTY)}return t};var S6s=Array.isArray;var ZL6=Array.isArray,af4=Object,q6l=af4.getPrototypeOf,C8V=af4.prototype,K3s=af4.keys;var LL=function(X,t,G){DF.call(this,X);this._next=t;this.shouldComplete=G};
_.S(LL,DF);LL.JSC$8997_EMPTY=DF.JSC$8997_EMPTY;LL.create=DF.create;LL.prototype._complete=function(){this.shouldComplete()?DF.prototype._complete.call(this):this.unsubscribe()};var NqV=["addListener","removeListener"],rIf=["addEventListener","removeEventListener"],EwV=["on","off"];var qF=function(){gq.call(this)};
_.S(qF,gq);qF.JSC$8997_EMPTY=gq.JSC$8997_EMPTY;qF.prototype.schedule=function(){return this};var lfh=function(X,t){return setInterval.apply(null,[X,t].concat(_.RY(_.f1.apply(2,arguments))))};var CN=function(X,t){gq.call(this);this.scheduler=X;this.work=t;this.pending=!1};
_.S(CN,qF);CN.JSC$8997_EMPTY=qF.JSC$8997_EMPTY;CN.prototype.schedule=function(X,t){t=t===void 0?0:t;if(this.closed)return this;this.state=X;X=this.id;var G=this.scheduler;X!=null&&(this.id=xwh(this,X,t));this.pending=!0;this.delay=t;this.id=this.id||this.requestAsyncId(G,this.id,t);return this};
CN.prototype.requestAsyncId=function(X,t,G){G=G===void 0?0:G;return lfh(X.flush.bind(X,this),G)};
var xwh=function(X,t,G){G=G===void 0?0:G;if(G!=null&&X.delay===G&&X.pending===!1)return t;clearInterval(t)};
CN.prototype.execute=function(X,t){if(this.closed)return Error("ha");this.pending=!1;if(X=this._execute(X,t))return X;this.pending===!1&&this.id!=null&&(this.id=xwh(this,this.id,null))};
CN.prototype._execute=function(X){var t=!1;try{this.work(X)}catch(y){t=!0;var G=!!y&&y||Error(y)}if(t)return this.unsubscribe(),G};
CN.prototype.unsubscribe=function(){if(!this.closed){var X=this.id,t=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;X$J(t,this);X!=null&&(this.id=xwh(this,X,null));this.delay=null;qF.prototype.unsubscribe.call(this)}};var ffY=function(X,t){t=t===void 0?i_B:t;LEo.call(this,X,t);this.actions=[];this.active=!1;this.scheduled=void 0};
_.S(ffY,LEo);ffY.prototype.flush=function(X){var t=this.actions;if(this.active)t.push(X);else{var G;this.active=!0;do if(G=X.execute(X.state,X.delay))break;while(X=t.shift());this.active=!1;if(G){for(;X=t.shift();)X.unsubscribe();throw G;}}};var Ew=new Sc(FM);var UBV=Array.isArray;var KN=function(X,t){CN.call(this,X,t);this.scheduler=X;this.work=t};
_.S(KN,CN);KN.JSC$8997_EMPTY=CN.JSC$8997_EMPTY;KN.prototype.schedule=function(X,t){t=t===void 0?0:t;if(t>0)return CN.prototype.schedule.call(this,X,t);this.delay=t;this.state=X;this.scheduler.flush(this);return this};
KN.prototype.execute=function(X,t){return t>0||this.closed?CN.prototype.execute.call(this,X,t):this._execute(X,t)};
KN.prototype.requestAsyncId=function(X,t,G){G=G===void 0?0:G;return G!=null&&G>0||G==null&&this.delay>0?CN.prototype.requestAsyncId.call(this,X,t,G):X.flush(this)};var Msq=function(){ffY.apply(this,arguments)};
_.S(Msq,ffY);var sYs=new Msq(KN);var XS4=function(){this.performanceMonitor=new wYS;this.queue=new zGS;this.internalSymbol=Symbol();this.debugNames=new N6q};
XS4.prototype.getOnBackgrounded=function(){return Ew};
_.ke.Object.defineProperties(XS4.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var O1=function(X,t){t=Error.call(this,t?X+": "+t:String(X));this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=X;this.__proto__=O1.prototype;this.name=String(X)};
_.S(O1,Error);var Uw=function(X){O1.call(this,1E3,'sfr:"'+X+'"');this.measurementStrategyFailureReason=X;this.__proto__=Uw.prototype};
_.S(Uw,O1);var mb=function(){O1.call(this,1003);this.__proto__=mb.prototype};
_.S(mb,O1);var uM=function(){O1.call(this,1009);this.__proto__=uM.prototype};
_.S(uM,O1);var $zh=function(){O1.call(this,1011);this.__proto__=$zh.prototype};
_.S($zh,O1);var tYq=function(){O1.call(this,1007);this.__proto__=mb.prototype};
_.S(tYq,O1);var NV=function(X){O1.call(this,1004,String(X));this.inputObservableIndex=X;this.__proto__=NV.prototype};
_.S(NV,O1);var j0l=function(X){O1.call(this,1010,X);this.__proto__=gbs.prototype};
_.S(j0l,O1);var gbs=function(X){O1.call(this,1005,X);this.__proto__=gbs.prototype};
_.S(gbs,O1);var GBB=function(X){var t=_.f1.apply(1,arguments),G=this;this.orderedFactories=[];this.orderedFactories.push(X);t.forEach(function(y){G.orderedFactories.push(y)})};
GBB.prototype.isSupported=function(X){return this.orderedFactories.some(function(t){return t.isSupported(X)})};
GBB.prototype.makeBeacon=function(X,t){for(var G=0;G<this.orderedFactories.length;G++)if(this.orderedFactories[G].isSupported(t))return this.orderedFactories[G].makeBeacon(X,t);throw new uM;};var Hts=Symbol("ia"),yqP=Symbol("ja"),X2=function(X,t){this.value=X;this.timeline=t},MB=function(X,t){if(t.timeline!==X.timeline)throw new tYq;
return X.value-t.value};
_.H=X2.prototype;_.H.equals=function(X){return MB(this,X)===0};
_.H.maximum=function(X){if(X.timeline!==this.timeline)throw new tYq;return this.value>=X.value?this:X};
_.H.round=function(){return new X2(Math.round(this.value),this.timeline)};
_.H.add=function(X){return new X2(this.value+X,this.timeline)};
_.H.toString=function(){return String(this.value)};var Q7=function(X,t){this.context=X;this.JSC$9124_pinger=t};
Q7.prototype.isSupported=function(X){return this.JSC$9124_pinger.isSupported(X)};
Q7.prototype.makeBeacon=function(X,t){if(!this.isSupported(t))throw new uM;return new Im(this.context,this.JSC$9124_pinger,t!=null?t:void 0,X)};
var Im=function(X,t,G,y){var w=this;this.JSC$9130_pinger=t;this.properties=G;this.url=y;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var z;this.method=(z=G==null?void 0:G.beaconMethod)!=null?z:"GET";this.backgroundedSubscription=X.getOnBackgrounded().subscribe(function(){w.sendNow()})};
Im.prototype.deactivate=function(){this.internalIsPending=!1};
Im.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9130_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var X,t;this.JSC$9130_pinger.pingWithHeadersAndBody((X=this.properties)!=null?X:{},this.customHeaders,(t=this.body)!=null?t:"",this.url)}else this.JSC$9130_pinger.ping(this.url);this.internalIsPending=!1}catch(G){}else this.internalIsPending=!1};
Im.prototype.setHeader=function(X,t){this.customHeaders.set(X,t)};
_.ke.Object.defineProperties(Im.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var zeJ=function(){for(var X=_.J(_.f1.apply(0,arguments)),t=X.next();!t.done;t=X.next())if(t=t.value,t.available()){this.timeProvider=t;return}this.timeProvider=new wSY};
_.H=zeJ.prototype;_.H.available=function(){return this.timeProvider.available()};
_.H.now=function(){return this.timeProvider.now()};
_.H.setTimeout=function(X,t){return this.timeProvider.setTimeout(X,t)};
_.H.clearTimeout=function(X){this.timeProvider.clearTimeout(X)};
_.H.interval=function(X,t){var G=this.intervalObservable(X).subscribe(t);return function(){return void G.unsubscribe()}};
_.H.intervalObservable=function(X){return this.timeProvider.intervalObservable(X)};
_.ke.Object.defineProperties(zeJ.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var wSY=function(){this.timeline=Symbol()};
_.H=wSY.prototype;_.H.available=function(){return!1};
_.H.now=function(){return new X2(0,this.timeline)};
_.H.setTimeout=function(){return 0};
_.H.clearTimeout=function(){};
_.H.interval=function(){return function(){}};
_.H.intervalObservable=function(){return Ew};var WI=function(X,t){this.intrinsicFunctionNamespace=X;this.performanceMonitor=t};
_.H=WI.prototype;_.H.setTimeout=function(X,t){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,X),t)};
_.H.clearTimeout=function(X){this.intrinsicFunctionNamespace.clearTimeout(X)};
_.H.interval=function(X,t){var G=this.intervalObservable(X).subscribe(t);return function(){return void G.unsubscribe()}};
_.H.intervalObservable=function(X){var t=this;return new Sc(function(G){var y=0,w=t.intrinsicFunctionNamespace.setInterval(function(){G.next(y++)},X);
return function(){t.intrinsicFunctionNamespace.clearInterval(w)}})};
_.H.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var H44=function(X,t){WI.call(this,X,t);this.timeline=yqP};
_.S(H44,WI);H44.prototype.now=function(){return new X2(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
H44.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&WI.prototype.available.call(this)};var ohB=function(X,t){WI.call(this,X,t);this.timeline=Hts};
_.S(ohB,WI);ohB.prototype.now=function(){return new X2(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
ohB.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&WI.prototype.available.call(this)};var Bo4=function(X){this.context=X;if(JqS===void 0)a:{var t,G,y=(t=X.global)==null?void 0:(G=t.document)==null?void 0:G.createElement("meta");if(y)try{y.httpEquiv="origin-trial";y.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";X.global.document.head.append(y);JqS=y;break a}catch(w){}JqS=void 0}},
JqS;
Bo4.prototype.isSupported=function(X){return McV(this.context)!==void 0&&!(X==null||!X.endOfSession)&&!cI(this.context)&&!(X==null?0:X.attributionEnabled)&&!(X==null?0:X.customHeaders)&&!(X==null?0:X.customBody)};
Bo4.prototype.makeBeacon=function(X,t){if(!this.isSupported(t))throw new uM;return new pN(this.context,X,t)};
var pN=function(X,t,G){this.context=X;this.properties=G;this.JSC$9157_urlWithoutToken=t;var y;this.beaconMethod=(y=G==null?void 0:G.beaconMethod)!=null?y:"GET";X=McV(this.context);if(X===void 0)throw Error();this.fetchLater=X;nhY(this,VYJ(this))},nhY=function(X,t){X.beaconResult&&X.beaconResult.activated||(X.beaconAbort=new AbortController,X.beaconResult=X.fetchLater(t,{method:X.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:X.beaconAbort.signal,activateAfter:96E4}))},VYJ=function(X){X=X.JSC$9157_urlWithoutToken;
return(X.slice(-1)[0]==="&"?X:X+"&")+"flapi=1"};
pN.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
pN.prototype.sendNow=function(){};
pN.prototype.setHeader=function(){};
_.ke.Object.defineProperties(pN.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9157_urlWithoutToken},
set:function(X){this.JSC$9157_urlWithoutToken=X;X=VYJ(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);nhY(this,X)}},
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 b44=function(X){this.context=X};
b44.prototype.isSupported=function(){return!cI(this.context)&&!!this.context.global.fetch};
b44.prototype.ping=function(){var X=this;return xw.apply(null,_.RY(_.f1.apply(0,arguments).map(function(t){return qB(X.context.global.fetch(t,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(m3(function(G){return G.status===200}))}))).pipe(zfA(function(t){return t}),oT0())};
b44.prototype.pingWithHeadersAndBody=function(X,t,G){for(var y=_.f1.apply(3,arguments),w=this,z=new Headers,B=_.J(t.entries()),V=B.next();!V.done;V=B.next()){var b=_.J(V.value);V=b.next().value;b=b.next().value;z.set(V,b)}var e,g=(e=X.keepAlive)!=null?e:!1;xw.apply(null,_.RY(y.map(function(F){return qB(w.context.global.fetch(F,Object.assign({},{method:String(X.beaconMethod),cache:"no-cache"},g?{keepalive:!0}:{},{mode:"no-cors",headers:z,body:G}))).pipe(m3(function(T){return T.status===200}))}))).pipe(zfA(function(F){return F}),
oT0())};var kB4,xHG;_.ra=function(){};
_.Nw=function(X){return X};
kB4=function(X){var t=t||0;return function(){return X.apply(this,Array.prototype.slice.call(arguments,0,t))}};
_.NF=function(X){var t=!1,G;return function(){t||(G=X(),t=!0);return G}};
_.PI=function(X,t){var G=0;return function(y){_.tA.clearTimeout(G);var w=arguments;G=_.tA.setTimeout(function(){X.apply(void 0,w)},t)}};
xHG=function(X,t){var G=0,y=!1,w=[],z=function(){G=0;y&&(y=!1,B())},B=function(){G=_.tA.setTimeout(z,t);
var V=w;w=[];X.apply(void 0,V)};
return function(V){w=arguments;G?y=!0:B()}};var eeq=function(){return g6&&TV?TV.mobile:!dzq()&&(sh("iPod")||sh("iPhone")||sh("Android")||sh("IEMobile"))},dzq=function(){return g6&&TV?!TV.mobile&&(sh("iPad")||sh("Android")||sh("Silk")):sh("iPad")||sh("Android")&&!sh("Mobile")||sh("Silk")};var jqS;_.RH={};jqS="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.RH.add=function(X,t,G){if(X!==null&&t in X)throw Error("la`"+t);X[t]=G};
_.RH.clear=function(X){for(var t in X)delete X[t]};
_.RH.clone=function(X){var t={},G;for(G in X)t[G]=X[G];return t};
_.RH.contains=function(X,t){return Vkh(X,t)};
_.RH.containsKey=function(X,t){return X!==null&&t in X};
_.RH.containsValue=Vkh;_.RH.create=dVE;_.RH.createImmutableView=function(X){var t=X;Object.isFrozen&&!Object.isFrozen(X)&&(t=Object.create(X),Object.freeze(t));return t};
_.RH.createSet=efA;_.RH.equals=function(X,t){for(var G in X)if(!(G in t)||X[G]!==t[G])return!1;for(var y in t)if(!(y in X))return!1;return!0};
_.RH.every=function(X,t,G){for(var y in X)if(!t.call(G,X[y],y,X))return!1;return!0};
_.RH.extend=function(X,t){for(var G,y,w=1;w<arguments.length;w++){y=arguments[w];for(G in y)X[G]=y[G];for(var z=0;z<jqS.length;z++)G=jqS[z],Object.prototype.hasOwnProperty.call(y,G)&&(X[G]=y[G])}};
_.RH.filter=function(X,t,G){var y={},w;for(w in X)t.call(G,X[w],w,X)&&(y[w]=X[w]);return y};
_.RH.findKey=bDV;_.RH.findValue=function(X,t,G){return(t=bDV(X,t,G))&&X[t]};
_.RH.forEach=function(X,t,G){for(var y in X)t.call(G,X[y],y,X)};
_.RH.get=function(X,t,G){return X!==null&&t in X?X[t]:G};
_.RH.getAllPropertyNames=function(X,t,G){if(!X)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return nTh(X);for(var y={};X&&(X!==Object.prototype||t)&&(X!==Function.prototype||G);){for(var w=Object.getOwnPropertyNames(X),z=0;z<w.length;z++)y[w[z]]=!0;X=Object.getPrototypeOf(X)}return nTh(y)};
_.RH.getAnyKey=function(X){for(var t in X)return t};
_.RH.getAnyValue=function(X){for(var t in X)return X[t]};
_.RH.getCount=function(X){var t=0,G;for(G in X)t++;return t};
_.RH.getKeys=nTh;_.RH.getSuperClass=function(X){return(X=Object.getPrototypeOf(X.prototype))&&X.constructor};
_.RH.getValueByKeys=function(X,t){var G=_.xJ(t),y=G?t:arguments;for(G=G?0:1;G<y.length;G++){if(X==null)return;X=X[y[G]]}return X};
_.RH.getValues=function(X){var t=[],G=0,y;for(y in X)t[G++]=X[y];return t};
_.RH.isEmpty=function(X){for(var t in X)return!1;return!0};
_.RH.isImmutableView=function(X){return!!Object.isFrozen&&Object.isFrozen(X)};
_.RH.map=function(X,t,G){var y={},w;for(w in X)y[w]=t.call(G,X[w],w,X);return y};
_.RH.remove=function(X,t){var G;(G=t in X)&&delete X[t];return G};
_.RH.set=function(X,t,G){X[t]=G};
_.RH.setIfUndefined=function(X,t,G){return t in X?X[t]:X[t]=G};
_.RH.setWithReturnValueIfNotSet=function(X,t,G){if(t in X)return X[t];G=G();return X[t]=G};
_.RH.some=function(X,t,G){for(var y in X)if(t.call(G,X[y],y,X))return!0;return!1};
_.RH.transpose=function(X){var t={},G;for(G in X)t[X[G]]=G;return t};
_.RH.unsafeClone=k6h;var E1=function(X,t,G,y,w){this.allowedElements=X;this.elementPolicies=t;this.allowedGlobalAttributes=G;this.globalAttributePolicies=y;this.globallyAllowedAttributePrefixes=w},ghS=function(X,t,G){G=X.elementPolicies.get(G);
return(G==null?0:G.has(t))?G.get(t):X.allowedGlobalAttributes.has(t)?{policyAction:1}:(G=X.globalAttributePolicies.get(t))?G:X.globallyAllowedAttributePrefixes&&[].concat(_.RY(X.globallyAllowedAttributePrefixes)).some(function(y){return t.indexOf(y)===0})?{policyAction:1}:{policyAction:0}};var Ft4="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(" "),
Toq=[["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}]])]],AqP="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(" "),
YqR=[["dir",{policyAction:3,conditions:Wt(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Wt(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Wt(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Wt(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],sqY=new E1(new Set(Ft4),new Map(Toq),new Set(AqP),new Map(YqR)),DzP=new E1(new Set(Ft4.concat(["BUTTON",
"INPUT"])),new Map(Toq),new Set(Wt(function(){return AqP.concat(["class","id","name"])})),new Map(Wt(function(){return YqR.concat([["style",
{policyAction:1}]])})));var Sqe,heq,qqS;Sqe=function(X,t,G,y,w){this.JSC$9217_sanitizerTable=X;this.styleElementSanitizer=t;this.styleAttributeSanitizer=G;this.JSC$9217_resourceUrlPolicy=y;this.JSC$9217_navigationUrlPolicy=w;this.changes=[]};
_.Z4J=function(X,t){var G=document.implementation.createHTMLDocument("");X=heq(X,t,G);G=G.body;G.appendChild(X);G=(new XMLSerializer).serializeToString(G);G=G.slice(G.indexOf(">")+1,G.lastIndexOf("</"));return tI(G)};
heq=function(X,t,G){t=gTV(t,G);t=document.createTreeWalker(t,5,function(V){if(V.nodeType===3)V=1;else if(TpV(V))if(V=FbV(V),V===null)V=2;else{var b=X.JSC$9217_sanitizerTable;V=V!=="FORM"&&(b.allowedElements.has(V)||b.elementPolicies.has(V))?1:2}else V=2;return V});
for(var y=t.nextNode(),w=G.createDocumentFragment(),z=w;y!==null;){var B=void 0;if(y.nodeType===3)X.styleElementSanitizer&&z.nodeName==="STYLE"?(y=X.styleElementSanitizer(y.data),B=X.createTextNode(y)):B=X.createTextNode(y.data);else if(TpV(y))B=qqS(X,y,G);else throw Error("Z");z.appendChild(B);if(y=t.firstChild())z=B;else for(;!(y=t.nextSibling())&&(y=t.parentNode());)z=z.parentNode}return w};
Sqe.prototype.createTextNode=function(X){return document.createTextNode(X)};
qqS=function(X,t,G){var y,w=FbV(t);G=G.createElement(w);t=t.attributes;for(var z=_.J(t),B=z.next();!B.done;B=z.next()){var V=B.value;B=V.name;V=V.value;var b=ghS(X.JSC$9217_sanitizerTable,B,w);a:{if(y=b.conditions){y=_.J(y);for(var e=y.next();!e.done;e=y.next()){var g=_.J(e.value);e=g.next().value;g=g.next().value;var F=void 0;if((e=(F=t.getNamedItem(e))==null?void 0:F.value)&&!g.has(e)){y=!1;break a}}}y=!0}if(y)switch(b.policyAction){case 1:AK(G,B,V);break;case 2:throw Error();case 3:AK(G,B,V.toLowerCase());
break;case 4:X.styleAttributeSanitizer?(V=X.styleAttributeSanitizer(V),AK(G,B,V)):AK(G,B,V);break;case 5:X.JSC$9217_resourceUrlPolicy?(b={type:2,attributeName:B,elementName:w},V=jHA(V),(V=X.JSC$9217_resourceUrlPolicy(V,b))&&AK(G,B,V.toString())):AK(G,B,V);break;case 6:if(X.JSC$9217_resourceUrlPolicy){b={type:2,attributeName:B,elementName:w};y=[];V=_.J(V.split(","));for(e=V.next();!e.done;e=V.next())g=_.J(e.value.trim().split(/\s+/,2)),e=g.next().value,g=g.next().value,y.push({url:e,descriptor:g});
V={parts:[]};y=_.J(y);for(e=y.next();!e.done;e=y.next())e=e.value,g=jHA(e.url),(g=X.JSC$9217_resourceUrlPolicy(g,b))&&V.parts.push({url:g.toString(),descriptor:e.descriptor});AK(G,B,AK6(V))}else AK(G,B,V);break;case 7:b=V;if(X.JSC$9217_navigationUrlPolicy){b={type:2,attributeName:B,elementName:w};V=jHA(V);V=X.JSC$9217_navigationUrlPolicy(V,b);if(V===null)break;b=V.toString()}V=b;b=_.EgV(V);b=b!==void 0&&ClP.indexOf(b.toLowerCase())!==-1?V:"about:invalid#zClosurez";AK(G,B,b)}}return G};
_.CJq=Wt(function(){return new Sqe(sqY)});
_.KtJ=Wt(function(){return new Sqe(DzP)});var O4q=function(){this.calledBuild=!1;this.JSC$9229_sanitizerTable=sqY},u4B=function(){O4q.apply(this,arguments)};
_.S(u4B,O4q);u4B.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new Sqe(this.JSC$9229_sanitizerTable,void 0,void 0,this.JSC$9229_resourceUrlPolicy,this.JSC$9229_navigationUrlPolicy)};var Qqe=/[^#]*/;var UtG=function(X){try{return!!X&&X.location.href!=null&&vbA(X,"foo")}catch(t){return!1}},Wto=function(X){var t=IPh;
if(t)for(var G in t)Object.prototype.hasOwnProperty.call(t,G)&&X(t[G],G,t)},cqJ=function(){var X=[];
Wto(function(t){X.push(t)});
return X},IPh={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"},pSt=_.NF(function(){return cqJ()}),Noq=function(){var X=rqS("IFRAME"),
t={};
_.zA(pSt(),function(G){X.sandbox&&X.sandbox.supports&&X.sandbox.supports(G)&&(t[G]=!0)});
return t},rqS=function(X,t){t=t===void 0?document:t;
return t.createElement(String(X).toLowerCase())};var U1;_.MM=function(X,t,G){return Math.min(Math.max(X,t),G)};
U1=function(X,t,G){return X+G*(t-X)};_.LD=function(X,t){this.x=X!==void 0?X:0;this.y=t!==void 0?t:0};
_.H=_.LD.prototype;_.H.clone=function(){return new _.LD(this.x,this.y)};
_.H.equals=function(X){return X instanceof _.LD&&(this==X?!0:this&&X?this.x==X.x&&this.y==X.y:!1)};
_.H.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.H.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.H.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.H.translate=function(X,t){X instanceof _.LD?(this.x+=X.x,this.y+=X.y):(this.x+=Number(X),typeof t==="number"&&(this.y+=t));return this};
_.H.scale=function(X,t){this.x*=X;this.y*=typeof t==="number"?t:X;return this};_.IH=function(X,t){this.width=X;this.height=t};
_.H=_.IH.prototype;_.H.clone=function(){return new _.IH(this.width,this.height)};
_.H.area=function(){return this.width*this.height};
_.H.aspectRatio=function(){return this.width/this.height};
_.H.isEmpty=function(){return!this.area()};
_.H.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.H.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.H.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.H.scale=function(X,t){this.width*=X;this.height*=typeof t==="number"?t:X;return this};var $5=function(X,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=X===wk_&&t||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=PJe};
$5.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Ehe=function(X){return X instanceof $5&&X.constructor===$5&&X.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===PJe?X.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},PJe={},wk_={};
new $5(wk_,"");var pD,Qs,Rm,UzJ,i4Y,Re4,v1,vhB,lPq,aPq,am,xzo,yQP,GrP,tq4,w4o,zvh,HTS,oVh,Dil,JQP,nVo,Vqe,Bio,mP;pD=function(X){return X?new mP(_.aH(X)):MuV||(MuV=new mP)};
_.Se=function(X,t){return typeof t==="string"?X.getElementById(t):t};
Qs=function(X,t){return(t||document).getElementsByTagName(String(X))};
_.mzB=function(X){return UzJ("yt-formatted-string","paper-input-input",X)};
Rm=function(X,t,G,y){X=y||X;return(t=t&&t!="*"?String(t).toUpperCase():"")||G?X.querySelectorAll(t+(G?"."+G:"")):X.getElementsByTagName("*")};
UzJ=function(X,t,G){var y=document,w=X&&X!="*"?String(X).toUpperCase():"";return w||t?(G||y).querySelector(w+(t?"."+t:"")):Rm(y,X,t,G)[0]||null};
i4Y=function(X,t){_.RH.forEach(t,function(G,y){y=="style"?X.style.cssText=G:y=="class"?X.className=G:y=="for"?X.htmlFor=G:Re4.hasOwnProperty(y)?X.setAttribute(Re4[y],G):_.y0(y,"aria-")||_.y0(y,"data-")?X.setAttribute(y,G):X[y]=G})};
Re4={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"};_.W1=function(X){X=(X||window).document;X=X.compatMode=="CSS1Compat"?X.documentElement:X.body;return new _.IH(X.clientWidth,X.clientHeight)};
_.Ltq=function(X){var t=_.iM(X);X=X.defaultView;return new _.LD(X.pageXOffset||t.scrollLeft,X.pageYOffset||t.scrollTop)};
_.iM=function(X){return X.scrollingElement?X.scrollingElement:_.C9||X.compatMode!="CSS1Compat"?X.body||X.documentElement:X.documentElement};
v1=function(X){return X?X.defaultView:window};
_.LN=function(X,t,G){return vhB(document,arguments)};
vhB=function(X,t){var G=t[1],y=aPq(X,String(t[0]));G&&(typeof G==="string"?y.className=G:Array.isArray(G)?y.className=G.join(" "):i4Y(y,G));t.length>2&&lPq(X,y,t,2);return y};
lPq=function(X,t,G,y){function w(V){V&&t.appendChild(typeof V==="string"?X.createTextNode(V):V)}
for(;y<G.length;y++){var z=G[y];if(!_.xJ(z)||_.$h(z)&&z.nodeType>0)w(z);else{a:{if(z&&typeof z.length=="number"){if(_.$h(z)){var B=typeof z.item=="function"||typeof z.item=="string";break a}if(typeof z==="function"){B=typeof z.item=="function";break a}}B=!1}_.zA(B?_.aV(z):z,w)}}};
_.OF=function(X){return aPq(document,X)};
aPq=function(X,t){t=String(t);X.contentType==="application/xhtml+xml"&&(t=t.toLowerCase());return X.createElement(t)};
_.vI=function(){return document.createTextNode("\n")};
am=function(X){if(X.nodeType!=1)return!1;switch(X.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};
xzo=function(X,t){lPq(_.aH(X),X,arguments,1)};
_.lM=function(X){for(var t;t=X.firstChild;)X.removeChild(t)};
_.xo=function(X,t){t.parentNode&&t.parentNode.insertBefore(X,t)};
_.fN=function(X,t){t.parentNode&&t.parentNode.insertBefore(X,t.nextSibling)};
_.uf=function(X){return X&&X.parentNode?X.parentNode.removeChild(X):null};
_.fPe=function(X,t){var G=t.parentNode;G&&G.replaceChild(X,t)};
_.MYe=function(X){var t,G=X.parentNode;if(G&&G.nodeType!=11)if(X.removeNode)X.removeNode(!1);else{for(;t=X.firstChild;)G.insertBefore(t,X);_.uf(X)}};
_.MF=function(X){return X.children!=void 0?X.children:Array.prototype.filter.call(X.childNodes,function(t){return t.nodeType==1})};
_.$Rq=function(X){return X.nextElementSibling!==void 0?X.nextElementSibling:_.X4S(X.nextSibling,!0)};
_.X4S=function(X,t){for(;X&&X.nodeType!=1;)X=t?X.nextSibling:X.previousSibling;return X};
_.kA=function(X){return _.$h(X)&&X.nodeType==1};
_.Ml=function(X,t){if(!X||!t)return!1;if(X.contains&&t.nodeType==1)return X==t||X.contains(t);if(typeof X.compareDocumentPosition!="undefined")return X==t||!!(X.compareDocumentPosition(t)&16);for(;t&&X!=t;)t=t.parentNode;return t==X};
yQP=function(X,t){if(X==t)return 0;if(X.compareDocumentPosition)return X.compareDocumentPosition(t)&2?1:-1;if("sourceIndex"in X||X.parentNode&&"sourceIndex"in X.parentNode){var G=X.nodeType==1,y=t.nodeType==1;if(G&&y)return X.sourceIndex-t.sourceIndex;var w=X.parentNode,z=t.parentNode;return w==z?tq4(X,t):!G&&_.Ml(w,t)?-1*GrP(X,t):!y&&_.Ml(z,X)?GrP(t,X):(G?X.sourceIndex:w.sourceIndex)-(y?t.sourceIndex:z.sourceIndex)}y=_.aH(X);G=y.createRange();G.selectNode(X);G.collapse(!0);X=y.createRange();X.selectNode(t);
X.collapse(!0);return G.compareBoundaryPoints(_.tA.Range.START_TO_END,X)};
GrP=function(X,t){var G=X.parentNode;if(G==t)return-1;for(;t.parentNode!=G;)t=t.parentNode;return tq4(t,X)};
tq4=function(X,t){for(;t=t.previousSibling;)if(t==X)return-1;return 1};
w4o=function(X){var t,G=arguments.length;if(!G)return null;if(G==1)return arguments[0];var y=[],w=Infinity;for(t=0;t<G;t++){for(var z=[],B=arguments[t];B;)z.unshift(B),B=B.parentNode;y.push(z);w=Math.min(w,z.length)}z=null;for(t=0;t<w;t++){B=y[0][t];for(var V=1;V<G;V++)if(B!=y[V][t])return z;z=B}return z};
_.aH=function(X){return X.nodeType==9?X:X.ownerDocument||X.document};
zvh=function(X){return X.contentDocument||X.contentWindow.document};
_.XA=function(X,t){if("textContent"in X)X.textContent=t;else if(X.nodeType==3)X.data=String(t);else if(X.firstChild&&X.firstChild.nodeType==3){for(;X.lastChild!=X.firstChild;)X.removeChild(X.lastChild);X.firstChild.data=String(t)}else _.lM(X),X.appendChild(_.aH(X).createTextNode(String(t)))};
HTS={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};oVh={IMG:" ",BR:"\n"};Dil=function(X){var t;X.tagName=="A"&&X.hasAttribute("href")||X.tagName=="INPUT"||X.tagName=="TEXTAREA"||X.tagName=="SELECT"||X.tagName=="BUTTON"?t=!X.disabled&&(!X.hasAttribute("tabindex")||JQP(X)):t=X.hasAttribute("tabindex")&&JQP(X);return t};
JQP=function(X){X=X.tabIndex;return typeof X==="number"&&X>=0&&X<32768};
nVo=function(X){var t=[];Bio(X,t,!0);X=t.join("");X=X.replace(/ \xAD /g," ").replace(/\xAD/g,"");X=X.replace(/\u200B/g,"");X=X.replace(/ +/g," ");X!=" "&&(X=X.replace(/^\s*/,""));return X};
Vqe=function(X){var t=[];Bio(X,t,!1);return t.join("")};
Bio=function(X,t,G){if(!(X.nodeName in HTS))if(X.nodeType==3)G?t.push(String(X.nodeValue).replace(/(\r\n|\r|\n)/g,"")):t.push(X.nodeValue);else if(X.nodeName in oVh)t.push(oVh[X.nodeName]);else for(X=X.firstChild;X;)Bio(X,t,G),X=X.nextSibling};
_.bTq=function(X,t,G){if(!t&&!G)return null;var y=t?String(t).toUpperCase():null;return _.xT(X,function(w){return(!y||w.nodeName==y)&&(!G||typeof w.className==="string"&&_.Eh(w.className.split(/\s+/),G))},!0)};
_.xT=function(X,t,G){X&&!G&&(X=X.parentNode);for(G=0;X;){if(t(X))return X;X=X.parentNode;G++}return null};
mP=function(X){this.JSC$9254_document_=X||_.tA.document||document};
_.H=mP.prototype;_.H.getElement=function(X){return _.Se(this.JSC$9254_document_,X)};
_.H.$=mP.prototype.getElement;_.H.getElementsByTagName=function(X,t){return(t||this.JSC$9254_document_).getElementsByTagName(String(X))};
_.H.getElementsByTagNameAndClass=function(X,t,G){return Rm(this.JSC$9254_document_,X,t,G)};
_.H.$$=mP.prototype.getElementsByTagNameAndClass;_.H.setProperties=i4Y;_.H.JSC$9256_createDom=function(X,t,G){return vhB(this.JSC$9254_document_,arguments)};
_.H.createElement=function(X){return aPq(this.JSC$9254_document_,X)};
_.H.createTextNode=function(X){return this.JSC$9254_document_.createTextNode(String(X))};
_.H.getWindow=function(){return this.JSC$9254_document_.defaultView};
var c1=function(X){return _.Ltq(X.JSC$9254_document_)};
_.H=mP.prototype;_.H.appendChild=function(X,t){X.appendChild(t)};
_.H.append=xzo;_.H.canHaveChildren=am;_.H.removeNode=_.uf;_.H.getChildren=_.MF;_.H.contains=_.Ml;_.H=Sk.prototype;_.H.getWidth=function(){return this.right-this.left};
_.H.getHeight=function(){return this.bottom-this.top};
_.H.clone=function(){return new Sk(this.top,this.right,this.bottom,this.left)};
_.H.contains=function(X){return this&&X?X instanceof Sk?X.left>=this.left&&X.right<=this.right&&X.top>=this.top&&X.bottom<=this.bottom:X.x>=this.left&&X.x<=this.right&&X.y>=this.top&&X.y<=this.bottom:!1};
_.H.expand=function(X,t,G,y){_.$h(X)?(this.top-=X.top,this.right+=X.right,this.bottom+=X.bottom,this.left-=X.left):(this.top-=X,this.right+=Number(t),this.bottom+=Number(G),this.left-=Number(y));return this};
_.H.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};
_.H.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};
_.H.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};
_.H.translate=function(X,t){X instanceof _.LD?(this.left+=X.x,this.right+=X.x,this.top+=X.y,this.bottom+=X.y):(this.left+=X,this.right+=X,typeof t==="number"&&(this.top+=t,this.bottom+=t));return this};
_.H.scale=function(X,t){t=typeof t==="number"?t:X;this.left*=X;this.right*=X;this.top*=t;this.bottom*=t;return this};var $9=function(X,t,G,y){this.left=X;this.top=t;this.width=G;this.height=y};
_.H=$9.prototype;_.H.clone=function(){return new $9(this.left,this.top,this.width,this.height)};
_.H.boundingRect=function(X){var t=Math.max(this.left+this.width,X.left+X.width),G=Math.max(this.top+this.height,X.top+X.height);this.left=Math.min(this.left,X.left);this.top=Math.min(this.top,X.top);this.width=t-this.left;this.height=G-this.top};
_.H.contains=function(X){return X instanceof _.LD?X.x>=this.left&&X.x<=this.left+this.width&&X.y>=this.top&&X.y<=this.top+this.height:this.left<=X.left&&this.left+this.width>=X.left+X.width&&this.top<=X.top&&this.top+this.height>=X.top+X.height};
_.H.distance=function(X){var t=X.x<this.left?this.left-X.x:Math.max(X.x-(this.left+this.width),0);X=X.y<this.top?this.top-X.y:Math.max(X.y-(this.top+this.height),0);return Math.sqrt(t*t+X*X)};
_.H.getSize=function(){return new _.IH(this.width,this.height)};
_.H.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};
_.H.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};
_.H.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};
_.H.translate=function(X,t){X instanceof _.LD?(this.left+=X.x,this.top+=X.y):(this.left+=X,typeof t==="number"&&(this.top+=t));return this};
_.H.scale=function(X,t){t=typeof t==="number"?t:X;this.left*=X;this.width*=X;this.top*=t;this.height*=t;return this};var dRR,yI,aos,G$,Fae,gV4,Tih,dF0,AQq,sNS;_.ty=function(X,t,G){if(typeof t==="string")(t=_.krS(X,t))&&(X.style[t]=G);else for(var y in t){G=X;var w=t[y],z=_.krS(G,y);z&&(G.style[z]=w)}};
dRR={};_.krS=function(X,t){var G=dRR[t];if(!G){var y=_.I4(t);G=y;X.style[y]===void 0&&(y=(_.C9?"Webkit":_.qe?"Moz":null)+rAB(y),X.style[y]!==void 0&&(G=y));dRR[t]=G}return G};
_.py=function(X,t){var G=_.aH(X);return G.defaultView&&G.defaultView.getComputedStyle&&(X=G.defaultView.getComputedStyle(X,null))?X[t]||X.getPropertyValue(t)||"":""};
_.fo=function(X,t){return _.py(X,t)||(X.currentStyle?X.currentStyle[t]:null)||X.style&&X.style[t]};
_.ev4=function(X){return _.fo(X,"position")};
yI=function(X,t,G){if(t instanceof _.LD){var y=t.x;t=t.y}else y=t,t=G;X.style.left=G$(y,!1);X.style.top=G$(t,!1)};
aos=function(X){try{return X.getBoundingClientRect()}catch(t){return{left:0,top:0,right:0,bottom:0}}};
_.lG=function(X){var t=_.aH(X),G=new _.LD(0,0);if(X==(t?_.aH(t):document).documentElement)return G;X=aos(X);t=c1(pD(t));G.x=X.left+t.x;G.y=X.top+t.y;return G};
_.jNR=function(X,t,G){if(t instanceof _.IH)G=t.height,t=t.width;else if(G==void 0)throw Error("oa");X.style.width=G$(t,!0);X.style.height=G$(G,!0)};
G$=function(X,t){typeof X=="number"&&(X=(t?Math.round(X):X)+"px");return X};
Fae=function(X){return gV4(X)};
gV4=function(X){var t=Tih;if(_.fo(X,"display")!="none")return t(X);var G=X.style,y=G.display,w=G.visibility,z=G.position;G.visibility="hidden";G.position="absolute";G.display="inline";X=t(X);G.display=y;G.position=z;G.visibility=w;return X};
Tih=function(X){var t=X.offsetWidth,G=X.offsetHeight,y=_.C9&&!t&&!G;return(t===void 0||y)&&X.getBoundingClientRect?(X=aos(X),new _.IH(X.right-X.left,X.bottom-X.top)):new _.IH(t,G)};
dF0=function(X){var t=_.lG(X);X=gV4(X);return new $9(t.x,t.y,X.width,X.height)};
AQq=function(X,t){X=X.style;"opacity"in X?X.opacity=t:"MozOpacity"in X?X.MozOpacity=t:"filter"in X&&(X.filter=t===""?"":"alpha(opacity="+Number(t)*100+")")};
_.wh=function(X,t){X.style.display=t?"":"none"};
_.YRq=function(X){return"rtl"==_.fo(X,"direction")};
sNS=function(X){var t=_.py(X,"marginLeft"),G=_.py(X,"marginRight"),y=_.py(X,"marginTop");X=_.py(X,"marginBottom");return new Sk(parseFloat(y),parseFloat(G),parseFloat(X),parseFloat(t))};
_.DRS=function(X){var t=_.py(X,"borderLeftWidth"),G=_.py(X,"borderRightWidth"),y=_.py(X,"borderTopWidth");X=_.py(X,"borderBottomWidth");return new Sk(parseFloat(y),parseFloat(G),parseFloat(X),parseFloat(t))};var wY=function(X){this.context=X};
wY.prototype.isSupported=function(X){return(X==null?0:X.attributionEnabled)||(X==null?void 0:X.beaconMethod)==="POST"||(X==null?0:X.customHeaders)||(X==null?0:X.customBody)||(X==null?0:X.keepAlive)?!1:!cI(this.context)};
wY.prototype.ping=function(){var X=this;return pL(_.f1.apply(0,arguments).map(function(t){try{var G=X.context.global,y=!1;y=y===void 0?!1:y;G.google_image_requests||(G.google_image_requests=[]);var w=rqS("IMG",G.document);y&&(w.attributionSrc="");w.src=t;G.google_image_requests.push(w);return!0}catch(z){return!1}}).every(function(t){return t}))};
wY.prototype.pingWithHeadersAndBody=function(X,t,G){this.ping.apply(this,_.RY(_.f1.apply(3,arguments)))};var SR4=function(X){this.context=X};
SR4.prototype.isSupported=function(X){return hvo&&!cI(this.context)&&sHv(this.context)!==void 0&&!(X==null?0:X.attributionEnabled)&&(X==null?void 0:X.beaconMethod)!=="POST"&&!(X==null?0:X.customHeaders)&&!(X==null?0:X.customBody)};
SR4.prototype.makeBeacon=function(X,t){if(!this.isSupported(t))throw new uM;return new z$(this.context,X)};
var hvo=!1,z$=function(X,t){this.context=X;this.JSC$9275_urlWithoutToken=t;X=sHv(this.context);if(X===void 0)throw Error();this.wrappedBeacon=new X(ZTY(this),{})},ZTY=function(X){X=X.JSC$9275_urlWithoutToken;
return(X.slice(-1)[0]==="&"?X:X+"&")+"pbapi=1"};
z$.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
z$.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
z$.prototype.setHeader=function(){};
_.ke.Object.defineProperties(z$.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9275_urlWithoutToken},
set:function(X){this.JSC$9275_urlWithoutToken=X;this.wrappedBeacon.setURL(ZTY(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(X){if(X!=="GET")throw new uM;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var qRo=function(X){this.context=X};
qRo.prototype.isSupported=function(X){if((X==null?0:X.attributionEnabled)||(X==null?void 0:X.beaconMethod)==="GET"||(X==null?0:X.customHeaders)||(X==null?0:X.customBody)||(X==null?0:X.keepAlive))return!1;var t;return!cI(this.context)&&((t=this.context.global.navigator)==null?void 0:t.sendBeacon)!==void 0};
qRo.prototype.ping=function(){var X=this;return pL(_.f1.apply(0,arguments).map(function(t){var G;return(G=X.context.global.navigator)==null?void 0:G.sendBeacon(t)}).every(function(t){return t}))};
qRo.prototype.pingWithHeadersAndBody=function(X,t,G){this.ping.apply(this,_.RY(_.f1.apply(3,arguments)))};var uG=function(X){this.value=X},o0=function(X,t){return pL(X.value).pipe(KD(t))},Bp=new uG(!1),oSv=new uG(!0);var fD=function(X){this.value=X;this.releasedSubject=new hK};
fD.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.ke.Object.defineProperties(fD.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9288_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var cKG=["FRAME","IMG","IFRAME"],Kbh=/^[01](px)?$/,WbG=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},IAv=function(){var X=new WbG;
X.crossDomainLoadedDefault=!0;X.pendingImagesBlockLoad=!0;return X};var C2P=function(X,t){var G=mVE(X);if(G)if(G.onCreativeLoad)G.onCreativeLoad(t);else{var y=t?[t]:[],w=function(z){for(var B=0;B<y.length;++B)try{y[B](1,z)}catch(V){}y={push:function(V){V(1,z)}}};
G.onCreativeLoad=function(z){y.push(z)};
G.setAttribute("data-creative-load-listener","");G.addEventListener("creativeLoad",function(z){w(z.detail)});
_.tA.addEventListener("message",function(z){UVV(G,w,z)})}};var H6=function(X,t){var G=this;this.global=X;this.parentContext=t;this.JSC$9299_onVisibilityChange=this.document?xw(pL(!0),aY(this.document,"visibilitychange")).pipe($T(this.parentContext.performanceMonitor,748),m3(function(){return G.getVisibilityState()}),z6()):pL("visible");
this.document?aY(this.document,"DOMContentLoaded").pipe($T(this.parentContext.performanceMonitor,739),wp(1)):pL(qw_("DOMContentLoaded"))},HYl=function(X){return X.document!==null&&X.document.visibilityState!==void 0};
H6.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
H6.prototype.querySelector=function(X){return this.document?this.document.querySelector(X):null};
H6.prototype.querySelectorAll=function(X){return this.document?_.aV(this.document.querySelectorAll(X)):[]};
H6.prototype.elementFromPoint=function(X,t){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;X=this.document.elementFromPoint(X,t);return X===null?null:new fD(X)};
var lyJ=function(X,t,G){G=G===void 0?!1:G;if(t.ref===void 0||!X.document)return pL(t).pipe($T(X.parentContext.performanceMonitor,749));var y=new nD(1),w=function(){y.next(t)};
G||C2P(t.ref,w);p1w(t.ref,w);return y.pipe($T(X.parentContext.performanceMonitor,749),wp(1))};
_.ke.Object.defineProperties(H6.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return vbA(this.global,"document")?this.global.document||null:null}}});var RfV=_.Vc(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),iDE=_.Vc(["./reach_worklet.js"]),Lbh=_.Vc(["./reach_worklet.js"]),Kah=_.Vc(["./reach_worklet.html"]),OTB=_.Vc(["./reach_worklet.js"]),uHe=_.Vc(["./reach_worklet.js"]);_.sw(Kah);_.sw(OTB);_.sw(uHe);var t6={left:0,top:0,width:0,height:0};var QNq,IHq,Waq,cQ4,kx,rQY,Nit,P24,mCw,RaE,mRo,RvS;QNq=function(X,t,G,y,w,z,B){var V="";X&&(V+=X+":");G&&(V+="//",t&&(V+=t+"@"),V+=G,y&&(V+=":"+y));w&&(V+=w);z&&(V+="?"+z);B&&(V+="#"+B);return V};
IHq=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.VQ=function(X){return X.match(IHq)};
_.LV=function(X,t){return X?t?decodeURI(X):decodeURIComponent(X):X};
Waq=function(X){X=_.VQ(X)[1]||null;!X&&_.tA.self&&_.tA.self.location&&(X=_.tA.self.location.protocol.slice(0,-1));return X?X.toLowerCase():""};
_.bF=function(X){return _.LV(_.VQ(X)[3]||null,!0)};
_.qJ=function(X){return _.LV(_.VQ(X)[5]||null,!0)};
_.H3V=function(X){var t=X.indexOf("#");return t<0?null:X.slice(t+1)};
cQ4=function(X){X=_.VQ(X);return QNq(X[1],X[2],X[3],X[4])};
_.p4q=function(X){X=_.VQ(X);return QNq(X[1],null,X[3],X[4])};
_.wk=function(X){X=_.VQ(X);return QNq(null,null,null,null,X[5],X[6],X[7])};
_.kt=function(X){var t=X.indexOf("#");return t<0?X:X.slice(0,t)};
kx=function(X,t){X=_.VQ(X);t=_.VQ(t);return X[3]==t[3]&&X[1]==t[1]&&X[4]==t[4]};
rQY=function(X,t){if(X){X=X.split("&");for(var G=0;G<X.length;G++){var y=X[G].indexOf("="),w=null;if(y>=0){var z=X[G].substring(0,y);w=X[G].substring(y+1)}else z=X[G];t(z,w?eH(w):"")}}};
Nit=function(X){var t=X.indexOf("#");t<0&&(t=X.length);var G=X.indexOf("?");if(G<0||G>t){G=t;var y=""}else y=X.substring(G+1,t);return[X.slice(0,G),y,X.slice(t)]};
P24=function(X,t){return t?X?X+"&"+t:t:X};
_.EVB=function(X,t){if(!t)return X;X=Nit(X);X[1]=P24(X[1],t);return X[0]+(X[1]?"?"+X[1]:"")+X[2]};
_.URS=function(X,t,G){if(Array.isArray(t))for(var y=0;y<t.length;y++)_.URS(X,String(t[y]),G);else t!=null&&G.push(X+(t===""?"":"="+_.ww(t)))};
_.Ks=function(X){var t=[],G;for(G in X)_.URS(G,X[G],t);return t.join("&")};
_.ns=function(X,t){t=_.Ks(t);return _.EVB(X,t)};
_.o8=function(X,t,G){G=G!=null?"="+_.ww(G):"";return _.EVB(X,t+G)};
mCw=function(X,t,G,y){for(var w=G.length;(t=X.indexOf(G,t))>=0&&t<y;){var z=X.charCodeAt(t-1);if(z==38||z==63)if(z=X.charCodeAt(t+w),!z||z==61||z==38||z==35)return t;t+=w+1}return-1};
RaE=/#|$/;_.XO=function(X,t){var G=X.search(RaE),y=mCw(X,0,t,G);if(y<0)return null;var w=X.indexOf("&",y);if(w<0||w>G)w=G;y+=t.length+1;return eH(X.slice(y,w!==-1?w:0))};
mRo=/[?&]($|#)/;_.eQ=function(X,t){for(var G=X.search(RaE),y=0,w,z=[];(w=mCw(X,y,t,G))>=0;)z.push(X.substring(y,w)),y=Math.min(X.indexOf("&",w)+1||G,G);z.push(X.slice(y));return z.join("").replace(mRo,"$1")};
_.ta=function(X,t,G){return _.o8(_.eQ(X,t),t,G)};
RvS=function(X){var t=Nit(window.location.href),G=t[1],y=[];G&&G.split("&").forEach(function(w){var z=w.indexOf("=");z=z>=0?w.slice(0,z):w;X.hasOwnProperty(z)||y.push(w)});
t[1]=P24(y.join("&"),_.Ks(X));return t[0]+(t[1]?"?"+t[1]:"")+t[2]};var bov=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(bov,_.eB);bov.prototype.getVersion=function(){return _.aQ(this,2)};var VMl=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(VMl,_.eB);var zB_=function(X,t){return _.rp(X,2,t)},nbl=function(X,t){return _.rp(X,3,t)};
VMl.prototype.getModel=function(){return _.aQ(this,4)};
var obl=function(X,t){return _.rp(X,4,t)},wpf=function(X,t){return _.rp(X,5,t)},BT_=function(X,t){return _.rp(X,9,t)},y6Y=function(X,t){return Ux(X,10,t)},Gl_=function(X,t){return _.Yb(X,11,t)},HoE=function(X,t){return _.rp(X,1,t)},J66=function(X,t){return _.Yb(X,7,t)};var $l0="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var J6=function(X,t,G,y){X=X===void 0?window:X;t=t===void 0?null:t;G=G===void 0?new wYS:G;y=y===void 0?vTY():y;XS4.call(this);var w=this;this.global=X;this.debugChannel=t;this.performanceMonitor=G;this.onPageHide=p$s(function(){return aY(w.global,"pagehide")}).pipe($T(this.performanceMonitor,941));
this.onLoad=p$s(function(){return aY(w.global,"load")}).pipe($T(this.performanceMonitor,738),wp(1));
this.onResize=p$s(function(){return aY(w.global,"resize")}).pipe($T(this.performanceMonitor,741));
this.onMessage=p$s(function(){return aY(w.global,"message")}).pipe($T(this.performanceMonitor,740));
this.document=new H6(this.global,this);this.timeProvider=new zeJ(new ohB(this.intrinsicFunctionNamespace,this.performanceMonitor),new H44(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new GBB(new Bo4(this),new SR4(this),new Q7(this,new b44(this)),new Q7(this,new qRo(this)),new Q7(this,new wY(this)))};
_.S(J6,XS4);var cI=function(X){var t=X.global;return!!X.global.HTMLFencedFrameElement&&!!t.fence&&typeof t.fence.reportEvent==="function"};
_.H=J6.prototype;_.H.reportFencedFrameEvent=function(X){cI(this)&&this.global.fence.reportEvent(X)};
_.H.getOnBackgrounded=function(){return this.onPageHide.pipe($T(this.performanceMonitor,942),KD(this.queue),m3(function(){}))};
_.H.postMessage=function(X,t,G){G=G===void 0?[]:G;this.global.postMessage(X,t,G)};
_.H.getWidth=function(){return UtG(this.global)?this.global.width:0};
_.H.getHeight=function(){return UtG(this.global)?this.global.height:0};
_.H.isMobile=function(){return dzq()||eeq()};
var MV=function(X,t){try{var G=fA_(t,X.global,X.isMobile());return{left:G.left,top:G.top,width:G.getWidth(),height:G.getHeight()}}catch(y){return t6}};
J6.prototype.validate=function(){var X=this.beaconFactory.isSupported()||cI(this);return this.global&&this.timeProvider.available()&&X};
var Swv=function(X){return(X=dlY(X.global))?qB(X):null};
_.ke.Object.defineProperties(J6.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(X){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!UtG(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}}});_.iTJ=!_.Z_&&!_.Oh();var JfV=function(X){return X};var nS6=function(X){return X.pipe(fL(function(t){var G=t.endOfSessionReason;var y;return((y=t.viewable)==null?void 0:y.extrapolateToNow().value)||G!=void 0}),wp(1),G6())};var YFs=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},s06=function(X){var t=X.sequenceNumber.toString(10).padStart(2,"0");
t=""+X.startTime+t;X.sequenceNumber<99&&X.sequenceNumber++;return t};var z8J=Yw(F2(function(X){return X.endOfSessionReason===void 0}),m3(function(X){return Object.assign({},X,{timestamps:P1(X)})}),fL(function(X){var t=X.viewable;
X=X.timestamps;var G;return(G=t==null?void 0:t.extrapolateUsingTimestampMap(X).value)!=null?G:!1}),m3(function(X){var t=X.beaconFactory;
var G=X.timestampedExposureHistory;var y=X.timeOnScreen;var w=X.binaryContext;X=X.timestamps;if(t===void 0||G===void 0||y===void 0||w===void 0)return!1;if(y.extrapolateUsingTimestampMap(X).value.every(function(z){return z>=0}))return!0;
G=G.map(function(z){return z.timestamp+":"+z.value}).join(",");
y=Dls({bin:w,tos:y},X);t.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+y+("&eh="+G)).sendNow();return!0}),F2(function(X){return!X}),G6());var hBE=function(X){return{id:X.pingId,mcvt:X.maxConsecutiveViewTime,p:X.creativePosition,asp:X.adSpeedPosition,tm:X.totalMeasurementTime,tu:X.totalUnviewedTime,mtos:X.maxTimeOnScreen,tos:X.timeOnScreen,v:X.binaryVersion,bin:X.binaryContext,avms:X.measurementStrategy,bs:X.browserSize,mc:X.maximumExposure,"if":X.crossDomainIframeState,vu:X.delayedImpressionJsState,app:X.inApp,mse:X.mraidError,mtop:X.mraidSituation,itpl:X.injectedTemplateId,adk:X.adKey,exk:X.awbidKey,rs:X.requestSource,la:X.isLargeAd,
cr:X.isContentRecommendationAd,uach:X.userAgentClientHints,vs:X.viewState,r:X.reasonCode,pay:X.hasCpmavUrl,co:X.clientPingOrderCounter,rst:X.adRenderStartTime,rpt:X.adRenderPeriodTime,isd:X.initialScrollDepth,lsd:X.loadedScrollDepth,context:X.errorContext,msg:X.errorMessage,stack:X.errorStack,name:X.errorName,ec:X.hasElementChanged,sfr:X.strategyFailureReasons,met:X.creativeSearchResult,wmsd:X.webMeasurementStartDiagnostic,pv:X.pageVisible,epv:X.eosPageVisible,pbe:X.inStatefulBeaconExperiment,fle:X.inFetchLaterBeaconExperiment,
vae:X.inViewableAttributionExperiment,spb:X.supportsPendingBeacon,sfl:X.supportsFetchLater,ffslot:X.isFencedFrameSlotTurtlex,reach:X.sharedStorageReachMode,io2:X.v2VisibilityBitVector,rxdbg:X.rxDebugger,omida:X.omidAppId,omidp:X.omidPartner,omidpv:X.omidPartnerVersion,omidor:X.omidOcclusionReasons,omidv:X.omidVersion,omids:X.omidSessionType,omidam:X.omidAccessMode,omidct:X.omidCreativeType,omidia:X.omidInApp,omiddc:X.omidDeviceCategory,omidlat:X.omidLastActivity,omiddit:X.omidDeviceIdleTime,qid:X.errorEscapedQueryId}};var BnJ=function(X){var t=[];return X.pipe(m3(function(G){var y=G.beaconFactory,w=G.fetchBeaconFactory,z=G.timeOnScreen,B=G.timeOnScreenUrlPrefixes,V=G.payloadMapper,b=G.timeOnScreenPingId,e=G.timeOnScreenReason,g=G.urlSerializer,F=G.viewable,T=G.hasImpressionFired,D=G.inStatefulBeaconExperiment,h=G.supportsPendingBeacon,u=G.supportsFetchLater,W=G.turtlexReportEventData;if(!G.geometryMeasurable||!T||G.maxTimeOnScreen===void 0||z===void 0||B===void 0||V===void 0||b===void 0||g===void 0||y===void 0)return!1;
if(G.isTurtlex){if(e===void 0)return!1;B=G.reportFencedFrameEvent;if(!B)return!1;B({eventType:"active-view-time-on-screen",eventData:W!=null?W:"",destination:["buyer"]});return!0}if(!(D||u||e))return!1;W=P1(G);var c;F=(c=F==null?void 0:F.extrapolateUsingTimestampMap(W).value)!=null?c:!1;c=g(Object.assign({},G,{pingId:b,viewState:F?4:3,reasonCode:e!=null?e:"u",payloadMapper:V,urlPrefixes:B}),W);if(D){for(;t.length>B.length;)G=void 0,(G=t.shift())==null||G.deactivate();c.forEach(function(l,R){R>=t.length?
t.push(y.makeBeacon(l)):t[R].url=l});
return h&&w&&e!==void 0?(c.forEach(function(l){w.makeBeacon(l).sendNow()}),!0):e!==void 0}if(h&&w&&e!==void 0)return c.forEach(function(l){w.makeBeacon(l).sendNow()}),!0;
if(u&&w){for(;t.length>B.length;)h=void 0,(h=t.shift())==null||h.deactivate();var P=g(Object.assign({},G,{pingId:b,viewState:F?4:3,reasonCode:e!=null?e:"u",payloadMapper:V,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),W)[0];c.forEach(function(l,R){R>=t.length?t.push(y.makeBeacon(P,{endOfSession:!0})):t[R].url=P});
return e!==void 0?(c.forEach(function(l){w.makeBeacon(l).sendNow()}),!0):e!==void 0}return e!==void 0?(c.forEach(function(l){y.makeBeacon(l).sendNow()}),!0):!1}),F2(function(G){return!G}),G6())};var Vgw=Yw(fL(function(X){return X.immediateUrlPrefixes!==void 0&&X.payloadMapper!==void 0&&X.urlSerializer!==void 0&&X.inferredPingId!==void 0&&X.beaconFactory!==void 0}),fL(function(X){return IoV(X)!==null}),uoY(function(X){return X.activeViewUnmeasurableEvent},function(X){return X.emit}),m3(function(X){if(X.isTurtlex){var t=X.reportFencedFrameEvent;
if(t){var G;t({eventType:"active-view-unmeasurable",eventData:(G=X.turtlexReportEventData)!=null?G:"",destination:["buyer"]})}}else{G=void 0;var y=IoV(X);if(y==="x"){var w,z=(w=X.geometricMeasurementErrors)!=null?w:X.contextValidationErrors;z&&(t=z.stack,G=z.message)}X.urlSerializer(Object.assign({},X,{urlPrefixes:X.immediateUrlPrefixes,payloadMapper:X.payloadMapper,pingId:X.inferredPingId,viewState:2,reasonCode:y,errorMessage:G,errorStack:t}),P1(X)).forEach(function(B){X.beaconFactory.makeBeacon(B).sendNow()})}}),
wp(1),G6());var WW6=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var w0V=Yw(fL(function(X){return X.payloadMapper!==void 0&&X.immediateUrlPrefixes!==void 0&&X.urlSerializer!==void 0&&X.inferredPingId!==void 0&&X.beaconFactory!==void 0}),m3(function(X){return Object.assign({},X,{timestamps:P1(X)})}),fL(function(X){var t=X.viewable;
var G=X.hasImpressionFired;X=X.timestamps;var y;return!!G&&((y=t==null?void 0:t.extrapolateUsingTimestampMap(X).value)!=null?y:!1)}),uoY(function(X){return X.activeViewViewableEvent},function(X){return X.emit}),m3(function(X){var t=X.beaconFactory,G=X.turtlexReportEventData;
if(X.isTurtlex){var y=X.reportFencedFrameEvent;if(!y)return!1;y({eventType:"active-view-viewable",eventData:G!=null?G:"",destination:["buyer"]});return!0}G=X.urlSerializer(Object.assign({},X,{urlPrefixes:X.immediateUrlPrefixes,payloadMapper:X.payloadMapper,pingId:X.inferredPingId,viewState:4,reasonCode:"v"}),X.timestamps);(y=X.cpmavUrls)&&y.length>0&&X.viewUrlSerializer&&X.viewUrlSerializer(y,X).forEach(function(w){t.makeBeacon(w).sendNow()});
(y=X.viewableRelayUrls)&&y.length>0&&X.viewUrlSerializer&&X.viewUrlSerializer(y,X).forEach(function(w){t.makeBeacon(w).sendNow()});
G.forEach(function(w){t.makeBeacon(w,{attributionEnabled:X.isViewableAttributionEnabled}).sendNow()});
return!0}),F2(function(X){return!X}),G6());var ZtY=m3(function(X){return[X.value.topWindowViewportExternalGeometry.width,X.value.topWindowViewportExternalGeometry.height]});var Xo=function(X,t){this.callback=X;this.options=t;this.intersectionObserverV2=this.intersectionObserverV1=null},JWw=function(X,t){t?X.intersectionObserverV2||(t=Object.assign({},X.options,{delay:100,
trackVisibility:!0}),X.intersectionObserverV2=new IntersectionObserver(X.callback,t)):X.intersectionObserverV1||(X.intersectionObserverV1=new IntersectionObserver(X.callback,X.options))},LaJ=function(X,t){X=t?X.intersectionObserverV2:X.intersectionObserverV1;
if(!X)throw new $zh;return X};
Xo.prototype.observe=function(X,t){LaJ(this,X).observe(t)};
Xo.prototype.unobserve=function(X,t){LaJ(this,X).unobserve(t)};
Xo.prototype.disconnect=function(X){LaJ(this,X).disconnect()};
Xo.prototype.takeRecords=function(X){return LaJ(this,X).takeRecords()};var xlG={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:t6,topWindowViewportExternalGeometry:t6,measurementRequests:new hK,elementGeometrySourceName:"ns",elementGeometry:t6,intersectionGeometry:t6,viewportLocalAppOffset:{x:0,y:0}};var eKG=Gl(Yw(m3(function(X){var t;return(t=X.exposureOverride)!=null?t:nHl(X)}),m3(function(X){return isFinite(X)?X:0}))),s5s=Gl(Yw(m3(function(X){var t;
return(t=X.exposureOverride)!=null?t:nHl(X)}),m3(function(X){return isFinite(X)?X:-1})));var Jy=function(X,t){this.a=X;this.b=t;if(X.clock.timeline!==t.clock.timeline)throw Error();};
Jy.prototype.equivalentTo=function(X){return X instanceof Jy?this.a.equivalentTo(X.a)&&this.b.equivalentTo(X.b):!1};
Jy.prototype.extrapolateToTime=function(X){var t=this.a.extrapolateToTime(X).value,G=this.b.extrapolateToTime(X).value;return{timestamp:X,value:[t,G]}};
_.ke.Object.defineProperties(Jy.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 X=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),t=this.a.lastMeasurement.timestamp.equals(X)?this.a.lastMeasurement.value:this.a.extrapolateToTime(X).value,G=this.b.lastMeasurement.timestamp.equals(X)?this.b.lastMeasurement.value:this.b.extrapolateToTime(X).value;return{timestamp:X,value:[t,G]}}}});var B6=function(X,t){this.input=X;this.mapFunction=t;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
B6.prototype.equivalentTo=function(X){return X instanceof B6?this.input.equivalentTo(X.input)&&this.mapFunction===X.mapFunction:!1};
B6.prototype.extrapolateToTime=function(X){X=this.input.extrapolateToTime(X);return{timestamp:X.timestamp,value:this.mapFunction(X.value)}};
_.ke.Object.defineProperties(B6.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var nU=function(){};
nU.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
nU.prototype.extrapolateUsingTimestampMap=function(X){var t=this.clock.timeline,G,y=(G=X.get(t))!=null?G:this.clock.now();X.set(t,y);return this.extrapolateToTime(y)};
nU.prototype.map=function(X){return new vVh(this,X)};
nU.prototype.joinWith=function(X){return new aHY(this,X)};
var aHY=function(){Jy.apply(this,arguments);this.map=nU.prototype.map;this.joinWith=nU.prototype.joinWith;this.extrapolateToNow=nU.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=nU.prototype.extrapolateUsingTimestampMap};
_.S(aHY,Jy);var vVh=function(){B6.apply(this,arguments);this.map=nU.prototype.map;this.joinWith=nU.prototype.joinWith;this.extrapolateToNow=nU.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=nU.prototype.extrapolateUsingTimestampMap};
_.S(vVh,B6);var wT=function(X,t){this.lastMeasurement=t;this.extrapolateToNow=nU.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=nU.prototype.extrapolateUsingTimestampMap;this.map=nU.prototype.map;this.joinWith=nU.prototype.joinWith;this.clock=X};
wT.prototype.equivalentTo=function(X){return X.active};
wT.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.ke.Object.defineProperties(wT.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var hK6=m3(function(X){if(X.value.viewportGeometrySourceName==="omid"){if(X.value.elementGeometrySourceName==="nio")return"omio";if(X.value.elementGeometrySourceName==="geo")return"omgeo"}return X.value.elementGeometrySourceName==="geo"||X.value.elementGeometrySourceName==="nio"?X.value.viewportGeometrySourceName:X.value.elementGeometrySourceName});var btE=Yw(fL(function(X){return!isNaN(X)}),ek(function(X,t){return isNaN(X)?t:Math.min(X,t)},NaN),z6());var j5w=Gl(Yw(m3(function(X){return X.intersectionGeometry.width*X.intersectionGeometry.height/(X.exposedViewportLocalGeometry.width*X.exposedViewportLocalGeometry.height)}),m3(function(X){return isFinite(X)?Math.min(1,X):0})));var SmG=Yw(Gl(m3(function(X){X=X.exposureOverride?X.elementGeometry.width*X.elementGeometry.height*X.exposureOverride/(X.topWindowViewportExternalGeometry.width*X.topWindowViewportExternalGeometry.height):X.intersectionGeometry.width*X.intersectionGeometry.height/(X.topWindowViewportExternalGeometry.width*X.topWindowViewportExternalGeometry.height);return isFinite(X)?X:0})));var K$0=function(X,t){var G=this;this.timeProvider=X;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=t.pipe(z6()).subscribe(function(y){uOJ(G);G.measurementRequestObserver=y})},Q56=function(X,t){uOJ(X);
X.lastMeasurementRequest=X.timeProvider.setTimeout(function(){var G;return void((G=X.measurementRequestObserver)==null?void 0:G.next())},t)},uOJ=function(X){X.lastMeasurementRequest!==null&&X.timeProvider.clearTimeout(X.lastMeasurementRequest);
X.lastMeasurementRequest=null};
K$0.prototype.dispose=function(){uOJ(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var lH4=function(){};var tgv=function(X,t){this.context=X;this.strategies=t};
_.S(tgv,lH4);tgv.prototype.buildGeometrySource=function(X,t){var G=this.strategies.map(function(z){return z.buildGeometrySource(X,t)}),y=rWE(G.map(function(z){return z.geometrySource})),w=y.capturedErrors.pipe(xRt());
return{geometrySource:y.chain.pipe(KD(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:w,strategyErrors:y.capturedErrors}].concat(_.RY(G.map(function(z){return z.additionalOutputs}))))}};
var xRt=function(){return ek(function(X,t){t instanceof Uw?X.push(t.measurementStrategyFailureReason):X.push(-1);return X},[])};var yf_=function(X,t){this.context=X;this.poller=t};
_.S(yf_,lH4);yf_.prototype.buildGeometrySource=function(X,t){var G=Nhf(EHv(this.context,this.poller),foA(this.context,t.requestSource));return{geometrySource:pmv(X.measurableCreative.pipe(G),t.inApp),additionalOutputs:{}}};var Ghw=function(X,t,G){G=G===void 0?yWG(X,t):G;this.context=X;this.intersectionObserverStrategy=G};
_.S(Ghw,lH4);Ghw.prototype.buildGeometrySource=function(X,t){var G=this.intersectionObserverStrategy(t.useV2);return{geometrySource:pmv(X.measurableCreative.pipe(G,wm6(this.context)),t.inApp),additionalOutputs:{}}};var fHB=function(X,t,G){var y=y===void 0?Symbol():y;this.element=X;this.immediateUrls=t;this.timeOnScreenUrls=G;this.symbol=y};var Cmw=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),vHV=Object.freeze([1,.75,Cmw.exposureThreshold,Cmw.largeAdExposureThreshold,0]);var X9s=function(X,t){t=t===void 0?36E5:t;var G=G===void 0?!0:G;this.creatives=new hK;this.elementsToUnregister=new hK;this.elementMap=new Map;var y=new J6(window,null);y.beaconFactory=new Q7(y,new wY(y));$dJ(y,this.creatives,this.elementsToUnregister,X,t,G).subscribe()},Gtw=function(X,t,G,y){if(!X.elementMap.has(t)){var w=new fD(t);
X.elementMap.set(t,w);X.creatives.next(new fHB(w,G,y))}},tpV=function(X,t){X.elementsToUnregister.next(t);
var G=X.elementMap.get(t);G!==void 0&&(G.release(),X.elementMap.delete(t))};var Xjl=function(X){var t=X.url;X=X.uaDataValues;this.JSC$9404_url_=t;this.uaDataValues_=X;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var G=/[?&]([^&=]+)=([^&]*)/g;X=G.exec(t);)this.urlParamValues_[X[1]]=X[2]},$il=function(X){X=X.uaDataValues_;
if(!X)return"";var t=no("uap",X.platform)+no("uapv",X.platformVersion)+no("uafv",X.uaFullVersion)+no("uaa",X.architecture)+no("uam",X.model)+no("uab",X.bitness);X.fullVersionList&&(t+="&uafvl="+encodeURIComponent(X.fullVersionList.map(function(G){return encodeURIComponent(G.brand)+";"+encodeURIComponent(G.version)}).join("|")));
X.wow64!=null&&(t+="&uaw="+Number(X.wow64));return t.slice(1)};var Mqe=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Mqe,_.eB);Mqe.prototype.getId=function(){return _.aQ(this,1)};var VI=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(VI,_.eB);VI.prototype.getSeconds=function(){return L9(this,1)};
VI.prototype.setSeconds=function(X){return _.Bt(this,1,ZH(X),"0")};_.$l=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(_.$l,_.eB);_.$l.prototype.getSeconds=function(){return L9(this,1)};
_.$l.prototype.setSeconds=function(X){return _.Bt(this,1,ZH(X),"0")};
_.XtY=function(X){var t=Number(f9(X,1));X=_.jM(X,2);return new Date(t*1E3+X/1E6)};var bi=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(bi,_.eB);bi.prototype.getUrl=function(){return _.aQ(this,1)};
bi.prototype.setUrl=function(X){return _.nV(this,1,X)};
bi.prototype.getHeight=function(){return _.jM(this,2)};
bi.prototype.getWidth=function(){return _.jM(this,3)};var k9=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(k9,_.eB);k9.prototype.getAspectRatio=function(){return vH(this,1)};
k9.prototype.setAspectRatio=function(X){return _.Bt(this,1,_.H4(X),0)};
k9.prototype.getDuration=function(){return _.Co(this,VI,2)};var $x4=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S($x4,_.eB);var tBo=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(tBo,_.eB);var GYP=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(GYP,_.eB);var yMt=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(yMt,_.eB);var wtB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(wtB,_.eB);var ztJ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ztJ,_.eB);var H1q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(H1q,_.eB);var ogh=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ogh,_.eB);var JMh=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(JMh,_.eB);var dY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(dY,_.eB);var eo=[2,4,5,6,7];var BNB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(BNB,_.eB);var mZ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(mZ,_.eB);_.H=mZ.prototype;_.H.getId=function(){return _.Co(this,Mqe,1)};
_.H.getName=function(){return _.aQ(this,2)};
_.H.setDescription=function(X){return _.nV(this,3,X)};
_.H.getUrl=function(){return _.aQ(this,8)};
_.H.setUrl=function(X){return _.nV(this,8,X)};
var jo=function(X){return _.dT(X,bi,10,_.eM())};
mZ.prototype.getOwner=function(X){var t=_.wN(this,40,_.W4,3,!0);Eq(t,X);return t[X]};
mZ.prototype.getVersion=function(){return L9(this,45)};
var gY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(gY,_.eB);_.ng4=[0,LBs,ahJ];_.VBR=[0,LBs,ahJ];var b1B=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(b1B,_.eB);var FA=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(FA,_.eB);FA.prototype.getStatus=function(){return _.lz(this,1)};
FA.prototype.removeItem=function(X){return na0(this,2,X)};var kYR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(kYR,_.eB);kYR.prototype.getName=function(){return _.aQ(this,8)};var T$=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(T$,_.eB);T$.prototype.getCommand=function(){return _.lz(this,1)};
T$.prototype.getSource=function(){return _.Co(this,kYR,2)};
T$.prototype.setVisible=function(X){return _.iw(this,5,X)};
T$.prototype.removeItem=function(X){return na0(this,7,X)};var dxz=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(dxz,_.eB);dxz.prototype.getCommand=function(){return _.lz(this,1)};
dxz.prototype.removeItem=function(X){return na0(this,4,X)};
var eth=_.C1(dxz);var Ay=function(X,t,G){G=G===void 0?Error():G;var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=X;t+=":";G instanceof Error?(this.message=t+G.message,this.stack=G.stack||""):(this.message=t+String(G),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(Ay,Error);_.po=function(){this.JSC$9462_disposed_=this.JSC$9462_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.po.prototype.JSC$9462_disposed_=!1;_.po.prototype.isDisposed=function(){return this.JSC$9462_disposed_};
_.po.prototype.dispose=function(){this.JSC$9462_disposed_||(this.JSC$9462_disposed_=!0,this.disposeInternal())};
_.po.prototype[Symbol.dispose]=function(){this.dispose()};
_.h6=function(X,t){X.addOnDisposeCallback(_.WP(_.Vs,t))};
_.po.prototype.addOnDisposeCallback=function(X,t){this.JSC$9462_disposed_?t!==void 0?X.call(t):X():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),t&&(X=X.bind(t)),this.onDisposeCallbacks_.push(X))};
_.po.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Y9=function(X){_.po.call(this);this.wpc=X};
_.S(Y9,_.po);Y9.prototype.avb=function(){return this.wpc.f()};
Y9.prototype.j3b=function(X){return this.wpc.c(X)};
Y9.prototype.aP=function(X){return this.wpc.m(j2Y(X))};
Y9.prototype.hOs=function(X){return this.wpc.mws(j2Y(X))};
var kb=function(X){_.po.call(this);var t=this;this.vm=X;this.wrI="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.aUT=void 0;this.cQc=this.vm.p;this.q5v=this.vmB.bind(this);this.addOnDisposeCallback(function(){return void jjJ(t)})};
_.S(kb,_.po);var ggP=function(X){var t;return _.n(function(G){if(G.nextAddress==1){if(!X.vm.wpc)throw new Ay(30,"NWA");return X.cXJ?G.return(X.cXJ):G.yield(X.vm.wpc(),2)}t=G.yieldResult;X.cXJ=new Y9(t);return G.return(X.cXJ)})};
kb.prototype.snapshot=function(X){return this.vm.s(Object.assign({},X.qe&&{c:X.qe},X.alW&&{s:X.alW},X.glb!==void 0&&{p:X.glb}))};
kb.prototype.vmB=function(X){this.vm.e(X)};
kb.prototype.ed6=function(X,t){return this.vm.c(X,t,!1)};
var jjJ=function(X){X.aUT!==void 0&&(X.wrI.forEach(function(t){var G;(G=X.aUT)==null||G.removeEventListener(t,X.q5v)}),X.aUT=void 0)};
kb.prototype.ugO=function(){return this.vm.l()};var sH=function(){_.po.apply(this,arguments);this.hlE=1};
_.S(sH,_.po);sH.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.hlE++;return this};
sH.prototype.dispose=function(){--this.hlE||_.po.prototype.dispose.call(this)};var FNJ=function(X){this.f6S=X;X.addNewEventMetric("/client_streamz/bg/frs",_.A6("mk"))};
FNJ.prototype.record=function(X,t){this.f6S.record("/client_streamz/bg/frs",X,t)};
var TNq=function(X){this.l6K=X;X.addNewEventMetric("/client_streamz/bg/wrl",_.A6("mn"),Tl("ac"),Tl("sc"),_.A6("rk"),_.A6("mk"))};
TNq.prototype.record=function(X,t,G,y,w,z){this.l6K.record("/client_streamz/bg/wrl",X,t,G,y,w,z)};
var AMJ=function(X){this.dxY=X;X.addNewCounter("/client_streamz/bg/ec",_.A6("en"),_.A6("mk"))};
AMJ.prototype.increment=function(X,t){this.dxY.JSC$9716_incrementCounter("/client_streamz/bg/ec",X,t)};
var YiR=function(X){this.sCS=X;X.addNewEventMetric("/client_streamz/bg/el",_.A6("en"),_.A6("mk"))};
YiR.prototype.record=function(X,t,G){this.sCS.record("/client_streamz/bg/el",X,t,G)};
var sjt=function(X){this.iVB=X;X.addNewCounter("/client_streamz/bg/cec",Tl("ec"),_.A6("mk"))};
sjt.prototype.increment=function(X,t){this.iVB.JSC$9716_incrementCounter("/client_streamz/bg/cec",X,t)};
var Dxt=function(X){this.heK=X;X.addNewCounter("/client_streamz/bg/po/csc",Tl("cs"),_.A6("mk"))};
Dxt.prototype.increment=function(X,t){this.heK.JSC$9716_incrementCounter("/client_streamz/bg/po/csc",X,t)};
var Si4=function(X){this.tV7=X;X.addNewCounter("/client_streamz/bg/po/ctav",_.A6("av"),_.A6("mk"))};
Si4.prototype.increment=function(X,t){this.tV7.JSC$9716_incrementCounter("/client_streamz/bg/po/ctav",X,t)};
var htq=function(X){this.oqv=X;X.addNewCounter("/client_streamz/bg/po/cwsc",_.A6("su"),_.A6("mk"))};
htq.prototype.increment=function(X,t){this.oqv.JSC$9716_incrementCounter("/client_streamz/bg/po/cwsc",X,t)};var iYY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(iYY,_.eB);var R8V=function(X,t){return _.JM(X,3,t,XSv)};var Z1R=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Z1R,_.eB);var qiJ=[1,2,3];var C_P=[0,qiJ,_.XEV,lh6,MJw];var KN4=[0,_.bM,[0,myG,_.Jl]];var O1q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(O1q,_.eB);var uk4=[1,2,3];var QjS=[0,uk4,vaJ,RSV,_.ko,KN4];var IYq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(IYq,_.eB);var WNY=[0,_.bM,C_P,QjS];var cMP=[0,_.V7];var pth=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(pth,_.eB);var rMP=[0,_.V7,-1,_.nN];var NNq=[0,_.V7,-1,_.BI,_.nN];var P_q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(P_q,_.eB);var EgB=[1,2,3];var UxR=[0,EgB,_.ko,rMP,_.ko,NNq,_.ko,cMP];var mxR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(mxR,_.eB);mxR.prototype.JSC$9536_serializeBinary=sjE([0,_.V7,UxR,$uv,_.bM,WNY,xyV,fhY]);var Rt4=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Rt4,_.eB);var vgq=function(X){var t=new mxR;t=_.rp(t,1,X.JSC$9652_metricName);var G=i1q(X);t=_.JM(t,3,G,_.QB);G=[];for(var y=[],w=_.J(X.cellMap.keys()),z=w.next();!z.done;z=w.next())y.push(z.value.split(","));for(w=0;w<y.length;w++){z=y[w];for(var B=X.cellType,V=X.getCells(z)||[],b=[],e=0;e<V.length;e++){var g=V[e],F=g&&g.cellValue;g=new O1q;switch(B){case 3:F=Number(F);Number.isFinite(F)&&O9(g,1,uk4,ZH(F));break;case 2:O9(g,2,uk4,_.H4(Number(F)))}b.push(g)}B=b;for(V=0;V<B.length;V++){b=B[V];e=new IYq;b=_.Oi(e,
2,b);e=[];g=LNq(X);for(F=0;F<g.length;F++){var T=g[F],D=z[F],h=new Z1R;switch(T){case 3:O9(h,1,qiJ,IN(String(D)));break;case 2:T=Number(D);Number.isFinite(T)&&O9(h,2,qiJ,_.jq(T));break;case 1:O9(h,3,qiJ,xwJ(D==="true"))}e.push(h)}Ux(b,1,e);G.push(b)}}Ux(t,4,G);return t};var aYJ=function(X){if(!X)return"";if(/^about:(?:blank|srcdoc)$/.test(X))return window.origin||"";X.indexOf("blob:")===0&&(X=X.substring(5));X=X.split("#")[0].split("?")[0];X=X.toLowerCase();X.indexOf("//")==0&&(X=window.location.protocol+X);/^[\w\-]*:\/\//.test(X)||(X=window.location.href);var t=X.substring(X.indexOf("://")+3),G=t.indexOf("/");G!=-1&&(t=t.substring(0,G));G=X.substring(0,X.indexOf("://"));if(!G)throw Error("qa`"+X);if(G!=="http"&&G!=="https"&&G!=="chrome-extension"&&G!=="moz-extension"&&
G!=="file"&&G!=="android-app"&&G!=="chrome-search"&&G!=="chrome-untrusted"&&G!=="chrome"&&G!=="app"&&G!=="devtools")throw Error("ra`"+G);X="";var y=t.indexOf(":");if(y!=-1){var w=t.substring(y+1);t=t.substring(0,y);if(G==="http"&&w!=="80"||G==="https"&&w!=="443")X=":"+w}return G+"://"+t+X};var xxR=function(X,t,G){var y=String(_.tA.location.href);return y&&X&&t?[t,lY4(aYJ(y),X,G||null)].join(" "):null},lY4=function(X,t,G){var y=[],w=[];
if((Array.isArray(G)?2:1)==1)return w=[t,X],_.zA(y,function(V){w.push(V)}),fY4(w.join(" "));
var z=[],B=[];_.zA(G,function(V){B.push(V.key);z.push(V.value)});
G=Math.floor((new Date).getTime()/1E3);w=z.length==0?[G,t,X]:[z.join(":"),G,t,X];_.zA(y,function(V){w.push(V)});
X=fY4(w.join(" "));X=[G,X];B.length==0||X.push(B.join(""));return X.join("_")},fY4=function(X){var t=SaG();
t.update(X);return t.digestString().toLowerCase()};var Da=function(X){this.JSC$9547_document_=X||{cookie:""}},MBq;
_.H=Da.prototype;_.H.isEnabled=function(){if(!_.tA.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};
_.H.set=function(X,t,G){var y=!1;if(typeof G==="object"){var w=G.sameSite;y=G.secure||!1;var z=G.domain||void 0;var B=G.path||void 0;var V=G.maxAge}if(/[;=\s]/.test(X))throw Error("sa`"+X);if(/[;\r\n]/.test(t))throw Error("ta`"+t);V===void 0&&(V=-1);G=z?";domain="+z:"";B=B?";path="+B:"";y=y?";secure":"";V=V<0?"":V==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+V*1E3)).toUTCString();this.JSC$9547_document_.cookie=X+"="+t+G+B+V+y+(w!=null?";samesite="+w:"")};
_.H.get=function(X,t){for(var G=X+"=",y=(this.JSC$9547_document_.cookie||"").split(";"),w=0,z;w<y.length;w++){z=bl(y[w]);if(z.lastIndexOf(G,0)==0)return z.slice(G.length);if(z==X)return""}return t};
_.H.remove=function(X,t,G){var y=this.containsKey(X);this.set(X,"",{maxAge:0,path:t,domain:G});return y};
_.H.getKeys=function(){return MBq(this).keys};
_.H.getValues=function(){return MBq(this).values};
_.H.isEmpty=function(){return!this.JSC$9547_document_.cookie};
_.H.getCount=function(){return this.JSC$9547_document_.cookie?(this.JSC$9547_document_.cookie||"").split(";").length:0};
_.H.containsKey=function(X){return this.get(X)!==void 0};
_.H.containsValue=function(X){for(var t=MBq(this).values,G=0;G<t.length;G++)if(t[G]==X)return!0;return!1};
_.H.clear=function(){for(var X=MBq(this).keys,t=X.length-1;t>=0;t--)this.remove(X[t])};
MBq=function(X){X=(X.JSC$9547_document_.cookie||"").split(";");for(var t=[],G=[],y,w,z=0;z<X.length;z++)w=bl(X[z]),y=w.indexOf("="),y==-1?(t.push(""),G.push(w)):(t.push(w.substring(0,y)),G.push(w.substring(y+1)));return{keys:t,values:G}};
_.QQ=new Da(typeof document=="undefined"?null:document);var r8_,X$h;r8_=function(){var X=_.tA.__SAPISID||_.tA.__APISID||_.tA.__3PSAPISID||_.tA.__1PSAPISID||_.tA.__OVERRIDE_SID;if(X)return!0;typeof document!=="undefined"&&(X=new Da(document),X=X.get("SAPISID")||X.get("APISID")||X.get("__Secure-3PAPISID")||X.get("__Secure-1PAPISID"));return!!X};
X$h=function(X,t,G,y){(X=_.tA[X])||typeof document==="undefined"||(X=(new Da(document)).get(t));return X?xxR(X,G,y):null};
_.Ces=function(X){var t=aYJ(_.tA==null?void 0:_.tA.location.href),G=[];if(r8_()){t=t.indexOf("https:")==0||t.indexOf("chrome-extension:")==0||t.indexOf("chrome-untrusted://new-tab-page")==0||t.indexOf("moz-extension:")==0;var y=t?_.tA.__SAPISID:_.tA.__APISID;y||typeof document==="undefined"||(y=new Da(document),y=y.get(t?"SAPISID":"APISID")||y.get("__Secure-3PAPISID"));(y=y?xxR(y,t?"SAPISIDHASH":"APISIDHASH",X):null)&&G.push(y);t&&((t=X$h("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",X))&&G.push(t),
(X=X$h("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",X))&&G.push(X))}return G.length==0?null:G.join(" ")};var $Bq=function(){this.minSize=1024};
$Bq.prototype.compress=function(X){var t,G,y,w;return _.n(function(z){switch(z.nextAddress){case 1:return t=new CompressionStream("gzip"),G=(new Response(t.readable)).arrayBuffer(),y=t.writable.getWriter(),z.yield(y.write((new TextEncoder).encode(X)),2);case 2:return z.yield(y.close(),3);case 3:return w=Uint8Array,z.yield(G,4);case 4:return z.return(new w(z.yieldResult))}})};
$Bq.prototype.isSupported=function(X){return X<this.minSize?!1:typeof CompressionStream!=="undefined"};var tcq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(tcq,_.eB);var So=function(X,t){this.intervalMs=X;this.callback=t;this.enabled=!1;this.nowFn=function(){return _.YE()};
this.lastTimeMs=this.nowFn()};
So.prototype.setInterval=function(X){this.intervalMs=X;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
So.prototype.start=function(){var X=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){X.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
So.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
So.prototype.tick=function(){var X=this;if(this.enabled){var t=Math.max(this.nowFn()-this.lastTimeMs,0);t<this.intervalMs*.8?this.timer=setTimeout(function(){X.tick()},this.intervalMs-t):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Gcq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Gcq,_.eB);var yIo=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(yIo,_.eB);var w$B=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(w$B,_.eB);w$B.prototype.getTransmissionType=function(){return _.lz(this,1)};var Cvl=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Cvl,_.eB);Cvl.prototype.getVersion=function(){return _.aQ(this,2)};var hy=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(hy,_.eB);var qas=function(X){Ux(K6v,1,X)};
hy.prototype.getModel=function(){return _.aQ(this,6)};
var zQt=_.C1(hy);var HLq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(HLq,_.eB);var h8G=["platform","platformVersion","architecture","model","uaFullVersion"],K6v=new hy,ZYV=null;var Za=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Za,_.eB);var owR=function(X){return _.AG(X,1,1)};var JIB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X,4)};
_.S(JIB,_.eB);_.qo=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X,36)};
_.S(_.qo,_.eB);_.qo.prototype.getExperimentIds=function(){return _.Co(this,tcq,16)};var Bqo=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X,19)};
_.S(Bqo,_.eB);Bqo.prototype.setLogSource=function(X){return _.AG(this,2,X)};
Bqo.prototype.setScheduler=function(X){return _.AG(this,10,X)};var VcP=function(X,t){this.isServiceWorkerScope=t=t===void 0?!1:t;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Bqo;Number.isInteger(X)&&this.logRequest.setLogSource(X);t||(this.locale=document.documentElement.getAttribute("lang"));nwo(this,new Za)};
VcP.prototype.setLogSource=function(X){this.logRequest.setLogSource(X);return this};
var nwo=function(X,t){_.Oi(X.logRequest,1,t);_.lz(t,1)||owR(t);X.isServiceWorkerScope||(t=CU(X),_.aQ(t,5)||_.rp(t,5,X.locale));X.uach&&(t=CU(X),_.Co(t,hy,9)||_.Oi(t,9,X.uach))},bLt=function(X,t){X.transmissionType=t},kc4=function(X){var t=t===void 0?h8G:t;
var G=X.isServiceWorkerScope?void 0:v1();G?OY0(G,t).then(function(y){X.uach=zQt(y!=null?y:"[]");y=CU(X);_.Oi(y,9,X.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},CU=function(X){var t=_.Co(X.logRequest,Za,1);
t||(t=new Za,nwo(X,t));X=t;t=_.Co(X,HLq,11);t||(t=new HLq,_.Oi(X,11,t));return t};
VcP.prototype.build=function(X,t,G,y,w,z){t=t===void 0?0:t;G=G===void 0?0:G;y=y===void 0?null:y;w=w===void 0?0:w;z=z===void 0?0:z;if(!this.isServiceWorkerScope){var B=CU(this);var V=new w$B;V=_.AG(V,1,this.transmissionType);V=_.Yb(V,2,this.isFinal);G=_.$o(V,3,G>0?G:void 0);G=_.$o(G,4,w>0?w:void 0);G=_.$o(G,5,z>0?z:void 0);w=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;z=w[_.C4]|0;G=cS(G,z)?G:JQf(G,w,z)?oVJ(G,w):new G.constructor(l2(w,z,!0));_.Oi(B,10,G)}B=this.logRequest.clone();G=Date.now().toString();
B=_.Y7(B,4,ZH(G));X=X.slice();X=Ux(B,3,X);y&&(B=new Gcq,y=_.$o(B,13,y),B=new yIo,y=_.Oi(B,2,y),B=new JIB,y=_.Oi(B,1,y),y=_.AG(y,2,9),_.Oi(X,18,y));t&&_.rj(X,14,t);return X};sF.prototype.currBackoffCount_=0;sF.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
sF.prototype.getValue=function(){return this.currValue_};
var dB4=function(X){X.currBaseValue_=Math.min(X.maxValue_,X.currBaseValue_*X.backoffFactor_);X.currValue_=Math.min(X.maxValue_,X.currBaseValue_+(X.randomFactor_?Math.round(X.randomFactor_*(Math.random()-.5)*2*X.currBaseValue_):0));X.currBackoffCount_++};var zcG=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X,8)};
_.S(zcG,_.eB);var eQR=_.C1(zcG);var H26=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(H26,_.eB);var KU;KU=new ouJ;var OH=function(X){_.po.call(this);var t=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9625_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$9625_sendBeaconApiEnabled=!1;this.logSource=X.logSource;this.getAuthHeaderValue=
X.getAuthHeaderValue||function(){};
this.logRequestBuilder=new VcP(X.logSource,X.isServiceWorkerScope);this.network=X.network||null;this.productID=X.productID||null;this.bufferSize=1E3;this.clearcutUrl=X.urlOverride||null;this.sessionIndex=X.sessionIndex||null;this.disableAutomaticFlush=X.disableAutomaticFlush||!1;this.withCredentials=!X.disableWithCredentials;this.isServiceWorkerScope=X.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!v1()&&!!v1().navigator&&v1().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(jYP())).searchParams&&!!(new URL(jYP())).searchParams.set;var G=owR(new Za);nwo(this.logRequestBuilder,G);this.flushBackoff=new sF(1E4,3E5,.1);X=gwY(this,X.backgroundJobDeferrer);this.JSC$9625_flushTimer=new So(this.flushBackoff.getValue(),X);this.backupTimer=new So(6E5,X);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){F3B(t);
var y;(y=t.metalogService)==null||y.flush()}}),document.addEventListener("pagehide",function(){F3B(t);
var y;(y=t.metalogService)==null||y.flush()}))};
_.S(OH,_.po);var gwY=function(X,t){return X.isBrowserSupported?t?function(){t().then(function(){X.flush()})}:function(){X.flush()}:function(){}};
OH.prototype.disposeInternal=function(){F3B(this);this.JSC$9625_flushTimer.stop();this.backupTimer.stop();_.po.prototype.disposeInternal.call(this)};
var TqS=function(X){X.clearcutUrl||(X.clearcutUrl=jYP());try{return(new URL(X.clearcutUrl)).toString()}catch(t){return(new URL(X.clearcutUrl,v1().location.origin)).toString()}};
OH.prototype.dispatch=function(X){if(X instanceof _.qo)this.log(X);else try{var t=new _.qo,G=X.serialize();var y=_.rp(t,8,G);this.log(y)}catch(w){ui(this,4,1)}};
var ui=function(X,t,G){X.metalogService&&X.metalogService.increment(t,G)};
OH.prototype.log=function(X){ui(this,2,1);if(this.isBrowserSupported){X=X.clone();var t=this.sequencePosition++;X=_.rj(X,21,t);this.componentId&&_.rp(X,26,this.componentId);t=X;if(ghY(_.cH(t,1))==null){var G=Date.now();G=Number.isFinite(G)?G.toString():"0";_.Y7(t,1,ZH(G))}_.jqY(_.cH(t,15))!=null||_.rj(t,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(G=this.experimentIds.clone(),_.Oi(t,16,G));ui(this,1,1);t=this.pendingEvents.length-this.bufferSize+1;t>0&&(this.pendingEvents.splice(0,t),
this.numLogsDroppedSinceLastFlush+=t,ui(this,3,t));this.pendingEvents.push(X);this.disableAutomaticFlush||this.JSC$9625_flushTimer.enabled||this.JSC$9625_flushTimer.start()}};
OH.prototype.flush=function(X,t){var G=this;if(this.pendingEvents.length===0)X&&X();else if(this.JSC$9625_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,AIe(this);else{var y=Date.now();if(this.noFlushUntilMs>y&&this.startWaitingMs<y)t&&t("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?bLt(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var w=this.pendingEvents.length,
z=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),B=this.getAuthHeaderValue();if(B&&this.lastFailedAuth===B)t&&t("stale-auth-token");else{this.pendingEvents=[];this.JSC$9625_flushTimer.enabled&&this.JSC$9625_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;y=z.serialize();var V;this.JSC$9625_compressor&&this.JSC$9625_compressor.isSupported(y.length)&&
(V=this.JSC$9625_compressor.compress(y));var b=Y6h(this,y,B),e=function(T){G.flushBackoff.reset();G.JSC$9625_flushTimer.setInterval(G.flushBackoff.getValue());if(T){var D=null;try{var h=JSON.stringify(JSON.parse(T.replace(")]}'\n","")));D=eQR(h)}catch(u){}D&&(T=Number(L9(D,1,_.aq("-1"))),T>0&&(G.startWaitingMs=Date.now(),G.noFlushUntilMs=G.startWaitingMs+T),rqY(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,KU.fieldIndex),cql(D,KU.fieldIndex),D=KU.ctor?KU.getExtensionFn(D,KU.ctor,KU.fieldIndex,
KU.JSC$8804_hasMessageId):KU.getExtensionFn(D,KU.fieldIndex,null,KU.JSC$8804_hasMessageId),D=D===null?void 0:D)&&(D=_.jM(D,1,-1),D!==-1&&(G.flushBackoff=new sF(D<1?1:D,3E5,.1),G.JSC$9625_flushTimer.setInterval(G.flushBackoff.getValue())))}X&&X();G.numRetriesSinceLastSuccessfulFlush=0},g=function(T,D){var h=_.dT(z,_.qo,3,_.eM());
var u=Number(L9(z,14));dB4(G.flushBackoff);G.JSC$9625_flushTimer.setInterval(G.flushBackoff.getValue());T===401&&B&&(G.lastFailedAuth=B);u&&(G.numLogsDroppedSinceLastFlush+=u);D===void 0&&(D=G.isRetryable(T));D&&(G.pendingEvents=h.concat(G.pendingEvents),G.disableAutomaticFlush||G.JSC$9625_flushTimer.enabled||G.JSC$9625_flushTimer.start());ui(G,7,1);t&&t("net-send-failed",T);++G.numRetriesSinceLastSuccessfulFlush},F=function(){G.network&&G.network.send(b,e,g)};
V?V.then(function(T){ui(G,5,w);b.requestHeaders["Content-Encoding"]="gzip";b.requestHeaders["Content-Type"]="application/binary";b.body=T;b.bodyType=2;F()},function(){ui(G,6,w);
F()}):F()}}}};
var Y6h=function(X,t,G){G=G===void 0?null:G;var y=y===void 0?X.withCredentials:y;var w={},z=new URL(TqS(X));G&&(w.Authorization=G);X.sessionIndex&&(w["X-Goog-AuthUser"]=X.sessionIndex,z.searchParams.set("authuser",X.sessionIndex));X.pageId&&(Object.defineProperty(w,"X-Goog-PageId",{value:X.pageId}),z.searchParams.set("pageId",X.pageId));return{url:z.toString(),body:t,bodyType:1,requestHeaders:w,requestType:"POST",withCredentials:y,timeoutMillis:X.timeoutMillis}},F3B=function(X){X.logRequestBuilder.isFinal=
!0;
X.flush();X.logRequestBuilder.isFinal=!1},AIe=function(X){sYY(X,function(t,G){t=new URL(t);
t.searchParams.set("format","json");var y=!1;try{y=v1().navigator.sendBeacon(t.toString(),G.serialize())}catch(w){}y||(X.isSendBeaconSupported=!1);return y})},sYY=function(X,t){if(X.pendingEvents.length!==0){var G=new URL(TqS(X));
G.searchParams.delete("format");var y=X.getAuthHeaderValue();y&&G.searchParams.set("auth",y);G.searchParams.set("authuser",X.sessionIndex||"0");for(y=0;y<10&&X.pendingEvents.length;++y){var w=X.pendingEvents.slice(0,32),z=X.logRequestBuilder.build(w,X.numLogsDroppedSinceLastFlush,X.numRetriesSinceLastSuccessfulFlush,X.productID,X.persistedLogRecoveredCount,X.persistedLogExpiredCount);if(!t(G.toString(),z)){++X.numRetriesSinceLastSuccessfulFlush;break}X.numLogsDroppedSinceLastFlush=0;X.numRetriesSinceLastSuccessfulFlush=
0;X.persistedLogRecoveredCount=0;X.persistedLogExpiredCount=0;X.pendingEvents=X.pendingEvents.slice(w.length)}X.JSC$9625_flushTimer.enabled&&X.JSC$9625_flushTimer.stop()}};
OH.prototype.isRetryable=function(X){return 500<=X&&X<600||X===401||X===0};
var jYP=function(){return"https://play.google.com/log?format=json&hasfast=true"};var DBz=function(){this.abortSupported=typeof AbortController!=="undefined"};
DBz.prototype.send=function(X,t,G){var y=this,w,z,B,V,b,e,g,F,T,D;return _.n(function(h){switch(h.nextAddress){case 1:return z=(w=y.abortSupported?new AbortController:void 0)?setTimeout(function(){w.abort()},X.timeoutMillis):void 0,_.CL(h,2,3),B=Object.assign({},{method:X.requestType,
headers:Object.assign({},X.requestHeaders)},X.body&&{body:X.body},X.withCredentials&&{credentials:"include"},{signal:X.timeoutMillis&&w?w.signal:null}),h.yield(fetch(X.url,B),5);case 5:V=h.yieldResult;if(V.status!==200){(b=G)==null||b(V.status);h.jumpTo(3);break}if((e=t)==null){h.jumpTo(7);break}return h.yield(V.text(),8);case 8:e(h.yieldResult);case 7:case 3:_.O6(h);clearTimeout(z);_.Qb(h,0);break;case 2:g=_.IY(h);switch((F=g)==null?void 0:F.name){case "AbortError":(T=G)==null||T(408);break;default:(D=
G)==null||D(400)}h.jumpTo(3)}})};
DBz.prototype.getTransmissionType=function(){return 4};_.SM=function(X,t){t=t===void 0?"0":t;_.po.call(this);this.logSource=X;this.sessionIndex=t;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9643_clearExperimentIds=this.productID=null;this.JSC$9643_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.S(_.SM,_.po);var ES0=function(X,t){X.buildLabel=t;return X},PvG=function(X,t){X.network=t;
return X},mdh=function(X,t){X.JSC$9643_clearExperimentIds=t},NnA=function(X){X.JSC$9643_sendBeaconApiEnabled=!0;
return X};
_.SM.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.SM.prototype.build=function(){this.network||(this.network=new DBz);var X=new OH({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.Ces,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.h6(this,X);if(this.buildLabel){var t=this.buildLabel,G=
CU(X.logRequestBuilder);_.rp(G,7,t)}X.JSC$9625_compressor=new $Bq;this.componentId&&(X.componentId=this.componentId);this.productID&&(X.productID=this.productID);this.pageId&&(X.pageId=this.pageId);this.JSC$9643_clearExperimentIds&&((G=this.JSC$9643_clearExperimentIds)?(X.experimentIds||(X.experimentIds=new tcq),t=X.experimentIds,G=G.serialize(),_.rp(t,4,G)):X.experimentIds&&_.Y7(X.experimentIds,4));this.JSC$9643_sendBeaconApiEnabled&&(X.JSC$9625_sendBeaconApiEnabled=X.isSendBeaconSupported);kc4(X.logRequestBuilder);
this.bufferSize&&(X.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(X);return X};var L6G=function(X,t,G,y,w,z,B){X=X===void 0?-1:X;t=t===void 0?"":t;G=G===void 0?"":G;y=y===void 0?!1:y;w=w===void 0?"":w;_.po.call(this);this.logSource=X;this.componentId=t;z?t=z:(X=new _.SM(X,"0"),X.componentId=t,_.h6(this,X),G!==""&&(X.destinationUrl=G),y&&(X.serviceWorkerScopeEnabled=!0),w&&ES0(X,w),B&&PvG(X,B),t=X.build());this.JSC$9647_transport=t};
_.S(L6G,_.po);L6G.prototype.flush=function(X){X=X||[];if(X.length){for(var t=new Rt4,G=[],y=0;y<X.length;y++){var w=X[y],z=vgq(w);G.push(z);w.clear()}Ux(t,1,G);this.JSC$9647_transport.dispatch(t);this.JSC$9647_transport.flush()}};var S6Y=function(X){this.cellValue=X};var QI=function(X,t,G){this.JSC$9652_metricName=X;this.cellType=t;this.fields=G||[];this.cellMap=new Map},LNq=function(X){return X.fields.map(function(t){return t.fieldType})},i1q=function(X){return X.fields.map(function(t){return t.fieldName})};
_.H=QI.prototype;_.H.addCell=function(X){var t=_.f1.apply(1,arguments),G=this.getCells(t);G?G.push(new S6Y(X)):this.JSC$9652_setCell(X,t)};
_.H.JSC$9652_setCell=function(X){var t=this.JSC$9652_getKey(_.f1.apply(1,arguments));this.cellMap.set(t,[new S6Y(X)])};
_.H.getCells=function(){var X=this.JSC$9652_getKey(_.f1.apply(0,arguments));return this.cellMap.has(X)?this.cellMap.get(X):void 0};
_.H.getCell=function(){var X=this.getCells(_.f1.apply(0,arguments));return X&&X.length?X[0]:void 0};
_.H.clear=function(){this.cellMap.clear()};
_.H.JSC$9652_getKey=function(){var X=_.f1.apply(0,arguments);return X?X.join(","):"key"};var hQJ=function(X,t){QI.call(this,X,3,t)};
_.S(hQJ,QI);hQJ.prototype.JSC$9655_incrementCounterBy=function(X){var t=_.f1.apply(1,arguments),G=0,y=this.getCell(t);y&&(G=y.cellValue);this.JSC$9652_setCell(G+X,t)};var ZLo=function(X,t){QI.call(this,X,2,t)};
_.S(ZLo,QI);ZLo.prototype.record=function(X){this.addCell(X,_.f1.apply(1,arguments))};_.I8=function(X){this.id=X};
_.I8.prototype.toString=function(){return this.id};_.W6=function(X,t){this.type=X instanceof _.I8?String(X):X;this.currentTarget=this.target=t;this.defaultPrevented=this.propagationStopped_=!1};
_.W6.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.W6.prototype.preventDefault=function(){this.defaultPrevented=!0};_.c6=function(X,t){_.W6.call(this,X?X.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;X&&this.init(X,t)};
_.sx(_.c6,_.W6);
_.c6.prototype.init=function(X,t){var G=this.type=X.type,y=X.changedTouches&&X.changedTouches.length?X.changedTouches[0]:null;this.target=X.target||X.srcElement;this.currentTarget=t;t=X.relatedTarget;t||(G=="mouseover"?t=X.fromElement:G=="mouseout"&&(t=X.toElement));this.relatedTarget=t;y?(this.clientX=y.clientX!==void 0?y.clientX:y.pageX,this.clientY=y.clientY!==void 0?y.clientY:y.pageY,this.screenX=y.screenX||0,this.screenY=y.screenY||0):(this.offsetX=_.C9||X.offsetX!==void 0?X.offsetX:X.layerX,
this.offsetY=_.C9||X.offsetY!==void 0?X.offsetY:X.layerY,this.clientX=X.clientX!==void 0?X.clientX:X.pageX,this.clientY=X.clientY!==void 0?X.clientY:X.pageY,this.screenX=X.screenX||0,this.screenY=X.screenY||0);this.button=X.button;this.keyCode=X.keyCode||0;this.key=X.key||"";this.charCode=X.charCode||(G=="keypress"?X.keyCode:0);this.ctrlKey=X.ctrlKey;this.altKey=X.altKey;this.shiftKey=X.shiftKey;this.metaKey=X.metaKey;this.pointerId=X.pointerId||0;this.pointerType=X.pointerType;this.state=X.state;
this.timeStamp=X.timeStamp;this.event_=X;X.defaultPrevented&&_.c6.superClass_.preventDefault.call(this)};
_.c6.prototype.stopPropagation=function(){_.c6.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.c6.prototype.preventDefault=function(){_.c6.superClass_.preventDefault.call(this);var X=this.event_;X.preventDefault?X.preventDefault():X.returnValue=!1};var q6J="closure_listenable_"+(Math.random()*1E6|0),pU=function(X){return!(!X||!X[q6J])};var C8B=0;var K3Y=function(X,t,G,y,w){this.listener=X;this.proxy=null;this.src=t;this.type=G;this.capture=!!y;this.handler=w;this.key=++C8B;this.removed=this.callOnce=!1},OL4=function(X){X.removed=!0;
X.listener=null;X.proxy=null;X.src=null;X.handler=null};Do.prototype.add=function(X,t,G,y,w){var z=X.toString();X=this.listeners[z];X||(X=this.listeners[z]=[],this.typeCount_++);var B=uMS(X,t,y,w);B>-1?(t=X[B],G||(t.callOnce=!1)):(t=new K3Y(t,this.src,z,!!y,w),t.callOnce=G,X.push(t));return t};
Do.prototype.remove=function(X,t,G,y){X=X.toString();if(!(X in this.listeners))return!1;var w=this.listeners[X];t=uMS(w,t,G,y);return t>-1?(OL4(w[t]),_.L_(w,t),w.length==0&&(delete this.listeners[X],this.typeCount_--),!0):!1};
var QYe=function(X,t){var G=t.type;if(!(G in X.listeners))return!1;var y=_.vY(X.listeners[G],t);y&&(OL4(t),X.listeners[G].length==0&&(delete X.listeners[G],X.typeCount_--));return y};
Do.prototype.removeAll=function(X){X=X&&X.toString();var t=0,G;for(G in this.listeners)if(!X||G==X){for(var y=this.listeners[G],w=0;w<y.length;w++)++t,OL4(y[w]);delete this.listeners[G];this.typeCount_--}return t};
Do.prototype.getListener=function(X,t,G,y){X=this.listeners[X.toString()];var w=-1;X&&(w=uMS(X,t,G,y));return w>-1?X[w]:null};
Do.prototype.hasListener=function(X,t){var G=X!==void 0,y=G?X.toString():"",w=t!==void 0;return _.RH.some(this.listeners,function(z){for(var B=0;B<z.length;++B)if(!(G&&z[B].type!=y||w&&z[B].capture!=t))return!0;return!1})};
var uMS=function(X,t,G,y){for(var w=0;w<X.length;++w){var z=X[w];if(!z.removed&&z.listener==t&&z.capture==!!G&&z.handler==y)return w}return-1};var Ixh,W3S,cIR,rIP,Nqq,mf,RL,UBB,P8q,EwB,rY,mBB,p$Y;Ixh="closure_lm_"+(Math.random()*1E6|0);W3S={};cIR=0;_.vj=function(X,t,G,y,w){if(y&&y.once)return mf(X,t,G,y,w);if(Array.isArray(t)){for(var z=0;z<t.length;z++)_.vj(X,t[z],G,y,w);return null}G=p$Y(G);return pU(X)?X.listen(t,G,_.$h(y)?!!y.capture:!!y,w):rIP(X,t,G,!1,y,w)};
rIP=function(X,t,G,y,w,z){if(!t)throw Error("va");var B=_.$h(w)?!!w.capture:!!w,V=rY(X);V||(X[Ixh]=V=new Do(X));G=V.add(t,G,y,B,z);if(G.proxy)return G;y=Nqq();G.proxy=y;y.src=X;y.listener=G;if(X.addEventListener)_.c5Y||(w=B),w===void 0&&(w=!1),X.addEventListener(t.toString(),y,w);else if(X.attachEvent)X.attachEvent(P8q(t.toString()),y);else if(X.addListener&&X.removeListener)X.addListener(y);else throw Error("wa");cIR++;return G};
Nqq=function(){var X=EwB,t=function(G){return X.call(t.src,t.listener,G)};
return t};
mf=function(X,t,G,y,w){if(Array.isArray(t)){for(var z=0;z<t.length;z++)mf(X,t[z],G,y,w);return null}G=p$Y(G);return pU(X)?X.listenOnce(t,G,_.$h(y)?!!y.capture:!!y,w):rIP(X,t,G,!0,y,w)};
_.No=function(X,t,G,y,w){if(Array.isArray(t))for(var z=0;z<t.length;z++)_.No(X,t[z],G,y,w);else y=_.$h(y)?!!y.capture:!!y,G=p$Y(G),pU(X)?X.unlisten(t,G,y,w):X&&(X=rY(X))&&(t=X.getListener(t,G,y,w))&&RL(t)};
RL=function(X){if(typeof X==="number"||!X||X.removed)return!1;var t=X.src;if(pU(t))return QYe(t.eventTargetListeners_,X);var G=X.type,y=X.proxy;t.removeEventListener?t.removeEventListener(G,y,X.capture):t.detachEvent?t.detachEvent(P8q(G),y):t.addListener&&t.removeListener&&t.removeListener(y);cIR--;(G=rY(t))?(QYe(G,X),G.typeCount_==0&&(G.src=null,t[Ixh]=null)):OL4(X);return!0};
UBB=function(X,t,G,y,w){G=p$Y(G);y=!!y;return pU(X)?X.getListener(t,G,y,w):X?(X=rY(X))?X.getListener(t,G,y,w):null:null};
P8q=function(X){return X in W3S?W3S[X]:W3S[X]="on"+X};
EwB=function(X,t){if(X.removed)X=!0;else{t=new _.c6(t,this);var G=X.listener,y=X.handler||X.src;X.callOnce&&RL(X);X=G.call(y,t)}return X};
rY=function(X){X=X[Ixh];return X instanceof Do?X:null};
mBB="__closure_events_fn_"+(Math.random()*1E9>>>0);p$Y=function(X){if(typeof X==="function")return X;X[mBB]||(X[mBB]=function(t){return X.handleEvent(t)});
return X[mBB]};_.P6=function(){_.po.call(this);this.eventTargetListeners_=new Do(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.sx(_.P6,_.po);_.P6.prototype[q6J]=!0;_.H=_.P6.prototype;_.H.setParentEventTarget=function(X){this.parentEventTarget_=X};
_.H.addEventListener=function(X,t,G,y){_.vj(this,X,t,G,y)};
_.H.removeEventListener=function(X,t,G,y){_.No(this,X,t,G,y)};
_.H.dispatchEvent=function(X){var t,G=this.parentEventTarget_;if(G)for(t=[];G;G=G.parentEventTarget_)t.push(G);G=this.actualEventTarget_;var y=X.type||X;if(typeof X==="string")X=new _.W6(X,G);else if(X instanceof _.W6)X.target=X.target||G;else{var w=X;X=new _.W6(y,G);_.RH.extend(X,w)}w=!0;var z;if(t)for(z=t.length-1;!X.propagationStopped_&&z>=0;z--){var B=X.currentTarget=t[z];w=RQY(B,y,!0,X)&&w}X.propagationStopped_||(B=X.currentTarget=G,w=RQY(B,y,!0,X)&&w,X.propagationStopped_||(w=RQY(B,y,!1,X)&&
w));if(t)for(z=0;!X.propagationStopped_&&z<t.length;z++)B=X.currentTarget=t[z],w=RQY(B,y,!1,X)&&w;return w};
_.H.disposeInternal=function(){_.P6.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.H.listen=function(X,t,G,y){return this.eventTargetListeners_.add(String(X),t,!1,G,y)};
_.H.listenOnce=function(X,t,G,y){return this.eventTargetListeners_.add(String(X),t,!0,G,y)};
_.H.unlisten=function(X,t,G,y){return this.eventTargetListeners_.remove(String(X),t,G,y)};
_.H.removeAllListeners=function(X){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(X):0};
var RQY=function(X,t,G,y){t=X.eventTargetListeners_.listeners[String(t)];if(!t)return!0;t=t.concat();for(var w=!0,z=0;z<t.length;++z){var B=t[z];if(B&&!B.removed&&B.capture==G){var V=B.listener,b=B.handler||B.src;B.callOnce&&QYe(X.eventTargetListeners_,B);w=V.call(b,y)!==!1&&w}}return w&&!y.defaultPrevented};
_.P6.prototype.getListener=function(X,t,G,y){return this.eventTargetListeners_.getListener(String(X),t,G,y)};
_.P6.prototype.hasListener=function(X,t){return this.eventTargetListeners_.hasListener(X!==void 0?String(X):void 0,t)};var EH=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(X){return X&&AsyncContext.Snapshot.wrap(X)}:function(X){return X};var iLJ=function(X,t){this.create_=X;this.reset_=t;this.occupants_=0;this.JSC$9687_head_=null};
iLJ.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var X=this.JSC$9687_head_;this.JSC$9687_head_=X.next;X.next=null}else X=this.create_();return X};
iLJ.prototype.put=function(X){this.reset_(X);this.occupants_<100&&(this.occupants_++,X.next=this.JSC$9687_head_,this.JSC$9687_head_=X)};var L3J=function(){this.workTail_=this.workHead_=null};
L3J.prototype.add=function(X,t){var G=Q2A.get();G.set(X,t);this.workTail_?this.workTail_.next=G:this.workHead_=G;this.workTail_=G};
L3J.prototype.remove=function(){var X=null;this.workHead_&&(X=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),X.next=null);return X};
var Q2A=new iLJ(function(){return new vwe},function(X){return X.reset()}),vwe=function(){this.next=this.scope=this.fn=null};
vwe.prototype.set=function(X,t){this.fn=X;this.scope=t;this.next=null};
vwe.prototype.reset=function(){this.next=this.scope=this.fn=null};var axR,I1A,uJ6,lxR;I1A=!1;uJ6=new L3J;_.UH=function(X,t){axR||lxR();I1A||(axR(),I1A=!0);uJ6.add(X,t)};
lxR=function(){var X=Promise.resolve(void 0);axR=function(){X.then(W6_)}};var xB4=function(X){X.prototype.$goog_Thenable=!0},fx4=function(X){if(!X)return!1;
try{return!!X.$goog_Thenable}catch(t){return!1}};var Mcq,X1z,$Ve,G6h,yKq,w1t,JKR,Vkq,efq,k6q,bIs;_.Kh=function(X,t){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(X!=_.ra)try{var G=this;X.call(t,function(y){G.resolve_(2,y)},function(y){G.resolve_(3,y)})}catch(y){this.resolve_(3,y)}};
Mcq=function(){this.next=this.context=this.JSC$9698_onRejected=this.JSC$9698_onFulfilled=this.child=null;this.always=!1};
Mcq.prototype.reset=function(){this.context=this.JSC$9698_onRejected=this.JSC$9698_onFulfilled=this.child=null;this.always=!1};
X1z=new iLJ(function(){return new Mcq},function(X){X.reset()});
$Ve=function(X,t,G){var y=X1z.get();y.JSC$9698_onFulfilled=X;y.JSC$9698_onRejected=t;y.context=G;return y};
_.qY=function(X){if(X instanceof _.Kh)return X;var t=new _.Kh(_.ra);t.resolve_(2,X);return t};
_.l$=function(X){return new _.Kh(function(t,G){G(X)})};
G6h=function(X,t,G){tkP(X,t,G,null)||_.UH(_.WP(t,X))};
_.m9=function(X){return new _.Kh(function(t,G){var y=X.length,w=[];if(y)for(var z=function(e,g){y--;w[e]=g;y==0&&t(w)},B=function(e){G(e)},V,b=0;b<X.length;b++)V=X[b],G6h(V,_.WP(z,b),B);
else t(w)})};
yKq=function(X){return new _.Kh(function(t){var G=X.length,y=[];if(G)for(var w=function(V,b,e){G--;y[V]=b?{fulfilled:!0,value:e}:{fulfilled:!1,reason:e};G==0&&t(y)},z,B=0;B<X.length;B++)z=X[B],G6h(z,_.WP(w,B,!0),_.WP(w,B,!1));
else t(y)})};
w1t=function(X){return new _.Kh(function(t,G){var y=X.length,w=[];if(y)for(var z=function(e){t(e)},B=function(e,g){y--;
w[e]=g;y==0&&G(w)},V,b=0;b<X.length;b++)V=X[b],G6h(V,z,_.WP(B,b));
else t(void 0)})};
_.d5=function(){var X,t,G=new _.Kh(function(y,w){X=y;t=w});
return new zfq(G,X,t)};
_.Kh.prototype.then=function(X,t,G){return HD4(this,EH(typeof X==="function"?X:null),EH(typeof t==="function"?t:null),G)};
xB4(_.Kh);JKR=function(X,t,G,y){oTR(X,$Ve(t||_.ra,G||null,y))};
_.R8=function(X,t){t=EH(t);t=$Ve(t,t);t.always=!0;oTR(X,t);return X};
_.Kh.prototype.finally=function(X){var t=this;X=EH(X);return new Promise(function(G,y){JKR(t,function(w){X();G(w)},function(w){X();
y(w)})})};
_.Kh.prototype.thenCatch=function(X,t){return HD4(this,null,EH(X),t)};
_.Kh.prototype.catch=_.Kh.prototype.thenCatch;_.Kh.prototype.cancel=function(X){if(this.state_==0){var t=new _.zC(X);_.UH(function(){Bp4(this,t)},this)}};
var Bp4=function(X,t){if(X.state_==0)if(X.parent_){var G=X.parent_;if(G.callbackEntries_){for(var y=0,w=null,z=null,B=G.callbackEntries_;B&&(B.always||(y++,B.child==X&&(w=B),!(w&&y>1)));B=B.next)w||(z=B);w&&(G.state_==0&&y==1?Bp4(G,t):(z?(y=z,y.next==G.callbackEntriesTail_&&(G.callbackEntriesTail_=y),y.next=y.next.next):nTq(G),Vkq(G,w,3,t)))}X.parent_=null}else X.resolve_(3,t)},oTR=function(X,t){X.callbackEntries_||X.state_!=2&&X.state_!=3||bDq(X);
X.callbackEntriesTail_?X.callbackEntriesTail_.next=t:X.callbackEntries_=t;X.callbackEntriesTail_=t},HD4=function(X,t,G,y){var w=$Ve(null,null,null);
w.child=new _.Kh(function(z,B){w.JSC$9698_onFulfilled=t?function(V){try{var b=t.call(y,V);z(b)}catch(e){B(e)}}:z;
w.JSC$9698_onRejected=G?function(V){try{var b=G.call(y,V);b===void 0&&V instanceof _.zC?B(V):z(b)}catch(e){B(e)}}:B});
w.child.parent_=X;oTR(X,w);return w.child};
_.Kh.prototype.unblockAndFulfill_=function(X){this.state_=0;this.resolve_(2,X)};
_.Kh.prototype.unblockAndReject_=function(X){this.state_=0;this.resolve_(3,X)};
_.Kh.prototype.resolve_=function(X,t){this.state_==0&&(this===t&&(X=3,t=new TypeError("xa")),this.state_=1,tkP(t,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=t,this.state_=X,this.parent_=null,bDq(this),X!=3||t instanceof _.zC||k6q(this,t)))};
var tkP=function(X,t,G,y){if(X instanceof _.Kh)return JKR(X,t,G,y),!0;if(fx4(X))return X.then(t,G,y),!0;if(_.$h(X))try{var w=X.then;if(typeof w==="function")return dVt(X,w,t,G,y),!0}catch(z){return G.call(y,z),!0}return!1},dVt=function(X,t,G,y,w){var z=!1,B=function(b){z||(z=!0,G.call(w,b))},V=function(b){z||(z=!0,y.call(w,b))};
try{t.call(X,B,V)}catch(b){V(b)}},bDq=function(X){X.executing_||(X.executing_=!0,_.UH(X.executeCallbacks_,X))},nTq=function(X){var t=null;
X.callbackEntries_&&(t=X.callbackEntries_,X.callbackEntries_=t.next,t.next=null);X.callbackEntries_||(X.callbackEntriesTail_=null);return t};
_.Kh.prototype.executeCallbacks_=function(){for(var X;X=nTq(this);)Vkq(this,X,this.state_,this.result_);this.executing_=!1};
Vkq=function(X,t,G,y){if(G==3&&t.JSC$9698_onRejected&&!t.always)for(;X&&X.hadUnhandledRejection_;X=X.parent_)X.hadUnhandledRejection_=!1;if(t.child)t.child.parent_=null,efq(t,G,y);else try{t.always?t.JSC$9698_onFulfilled.call(t.context):efq(t,G,y)}catch(w){bIs.call(null,w)}X1z.put(t)};
efq=function(X,t,G){t==2?X.JSC$9698_onFulfilled.call(X.context,G):X.JSC$9698_onRejected&&X.JSC$9698_onRejected.call(X.context,G)};
k6q=function(X,t){X.hadUnhandledRejection_=!0;_.UH(function(){X.hadUnhandledRejection_&&bIs.call(null,t)})};
bIs=GV;_.zC=function(X){_.Xv.call(this,X)};
_.sx(_.zC,_.Xv);_.zC.prototype.name="cancel";var zfq=function(X,t,G){this.promise=X;this.resolve=t;this.reject=G};var ii;_.Tp=function(X,t){_.P6.call(this);this.JSC$9710_interval_=X||1;this.timerObject_=t||_.tA;this.boundTick_=(0,_.rT)(this.tick_,this);this.last_=_.YE()};
_.sx(_.Tp,_.P6);_.H=_.Tp.prototype;_.H.enabled=!1;_.H.JSC$9712_timer_=null;_.H.setInterval=function(X){this.JSC$9710_interval_=X;this.JSC$9712_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9712_timer_&&this.stop()};
_.H.tick_=function(){if(this.enabled){var X=_.YE()-this.last_;X>0&&X<this.JSC$9710_interval_*.8?this.JSC$9712_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9710_interval_-X):(this.JSC$9712_timer_&&(this.timerObject_.clearTimeout(this.JSC$9712_timer_),this.JSC$9712_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.H.start=function(){this.enabled=!0;this.JSC$9712_timer_||(this.JSC$9712_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9710_interval_),this.last_=_.YE())};
_.H.stop=function(){this.enabled=!1;this.JSC$9712_timer_&&(this.timerObject_.clearTimeout(this.JSC$9712_timer_),this.JSC$9712_timer_=null)};
_.H.disposeInternal=function(){_.Tp.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
ii=function(X,t,G){if(typeof X==="function")G&&(X=(0,_.rT)(X,G));else if(X&&typeof X.handleEvent=="function")X=(0,_.rT)(X.handleEvent,X);else throw Error("ya");return Number(t)>2147483647?-1:_.tA.setTimeout(X,t||0)};
_.jHq=function(X){var t=null;return(new _.Kh(function(G,y){t=ii(function(){G(void 0)},X);
t==-1&&y(Error("za"))})).thenCatch(function(G){_.tA.clearTimeout(t);
throw G;})};var Zo=function(X){_.po.call(this);this.streamzLogger=X;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9716_flushTimer=new _.Tp(this.flushInterval);this.JSC$9716_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.h6(this,this.JSC$9716_flushTimer)};
_.S(Zo,_.po);Zo.prototype.sendIsolatedPayload=function(X){this.shouldSendIsolatedPayload=X;this.invocationLimit=1};
var gTq=function(X){X.JSC$9716_flushTimer.enabled||X.JSC$9716_flushTimer.start();X.invocationCount++;X.invocationCount>=X.invocationLimit&&X.snapshotAndFlush()};
Zo.prototype.snapshotAndFlush=function(){var X=this.metricMap.values();X=[].concat(_.RY(X)).filter(function(t){return t.cellMap.size});
X.length&&this.streamzLogger.flush(X,this.shouldSendIsolatedPayload);FbB(X);this.invocationCount=0;this.JSC$9716_flushTimer.enabled&&this.JSC$9716_flushTimer.stop()};
Zo.prototype.addNewCounter=function(X){var t=_.f1.apply(1,arguments);this.metricMap.has(X)||this.metricMap.set(X,new hQJ(X,t))};
Zo.prototype.addNewEventMetric=function(X){var t=_.f1.apply(1,arguments);this.metricMap.has(X)||this.metricMap.set(X,new ZLo(X,t))};
var TpB=function(X,t){return X.disabledMetrics.has(t)?void 0:X.metricMap.get(t)};
Zo.prototype.JSC$9716_incrementCounter=function(X){this.JSC$9716_incrementCounterBy(X,1,_.f1.apply(1,arguments))};
Zo.prototype.JSC$9716_incrementCounterBy=function(X,t){var G=_.f1.apply(2,arguments),y=TpB(this,X);y&&y instanceof hQJ&&(y.JSC$9655_incrementCounterBy(t,G),gTq(this))};
Zo.prototype.record=function(X,t){var G=_.f1.apply(2,arguments),y=TpB(this,X);y&&y instanceof ZLo&&(y.record(t,G),gTq(this))};
var FbB=function(X){for(var t=0;t<X.length;t++)X[t].clear()};_.LU=function(X,t,G){G=G===void 0?{}:G;t=Error.call(this,t);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=X;this.metadata=G;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(_.LU,Error);_.LU.prototype.toString=function(){var X="RpcError("+(p0V(this.code)||String(this.code))+")";this.message&&(X+=": "+this.message);return X};_.AKo=_.tA.JSON.parse;_.v6=_.tA.JSON.stringify;_.R4=_.tA.JSON.parse;_.Ywz=function(X){switch(X){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 sH4=function(X){switch(X){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var DVz,Sw4=function(){};
_.sx(Sw4,_.rfl);Sw4.prototype.createInstance=function(){return new XMLHttpRequest};
DVz=new Sw4;_.a8=function(X){_.P6.call(this);this.headers=new Map;this.JSC$9725_xmlHttpFactory_=X||null;this.JSC$9725_active_=!1;this.JSC$9725_xhr_=null;this.JSC$9725_lastUri_="";this.JSC$9725_lastErrorCode_=0;this.JSC$9725_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9725_timeoutId_=null;this.responseType_="";this.JSC$9725_withCredentials_=!1};
_.sx(_.a8,_.P6);var hfq=/^https?$/i,ZDe=["POST","PUT"],qw4=[],UgJ=function(X,t,G,y,w,z,B){var V=new _.a8;qw4.push(V);t&&V.listen("complete",t);V.listenOnce("ready",V.cleanupSend_);z&&(V.timeoutInterval_=Math.max(0,z));B&&(V.JSC$9725_withCredentials_=B);V.send(X,G,y,w)};
_.a8.prototype.cleanupSend_=function(){this.dispose();_.vY(qw4,this)};
_.a8.prototype.send=function(X,t,G,y){if(this.JSC$9725_xhr_)throw Error("Aa`"+this.JSC$9725_lastUri_+"`"+X);t=t?t.toUpperCase():"GET";this.JSC$9725_lastUri_=X;this.JSC$9725_lastError_="";this.JSC$9725_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9725_active_=!0;this.JSC$9725_xhr_=this.createXhr();this.JSC$9725_xhr_.onreadystatechange=EH((0,_.rT)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9725_xhr_.open(t,String(X),!0),this.inOpen_=!1}catch(B){CGB(this,B);return}X=G||"";G=new Map(this.headers);
if(y)if(Object.getPrototypeOf(y)===Object.prototype)for(var w in y)G.set(w,y[w]);else if(typeof y.keys==="function"&&typeof y.get==="function"){w=_.J(y.keys());for(var z=w.next();!z.done;z=w.next())z=z.value,G.set(z,y.get(z))}else throw Error("Ba`"+String(y));y=Array.from(G.keys()).find(function(B){return"content-type"==B.toLowerCase()});
w=_.tA.FormData&&X instanceof _.tA.FormData;!_.Eh(ZDe,t)||y||w||G.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");t=_.J(G);for(y=t.next();!y.done;y=t.next())G=_.J(y.value),y=G.next().value,G=G.next().value,this.JSC$9725_xhr_.setRequestHeader(y,G);this.responseType_&&(this.JSC$9725_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9725_xhr_&&this.JSC$9725_xhr_.withCredentials!==this.JSC$9725_withCredentials_&&(this.JSC$9725_xhr_.withCredentials=this.JSC$9725_withCredentials_);
try{this.JSC$9725_timeoutId_&&(clearTimeout(this.JSC$9725_timeoutId_),this.JSC$9725_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9725_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9725_xhr_.send(X),this.inSend_=!1}catch(B){CGB(this,B)}};
_.a8.prototype.createXhr=function(){return this.JSC$9725_xmlHttpFactory_?this.JSC$9725_xmlHttpFactory_.createInstance():DVz.createInstance()};
_.a8.prototype.timeout_=function(){typeof R1Y!="undefined"&&this.JSC$9725_xhr_&&(this.JSC$9725_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9725_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var CGB=function(X,t){X.JSC$9725_active_=!1;X.JSC$9725_xhr_&&(X.inAbort_=!0,X.JSC$9725_xhr_.abort(),X.inAbort_=!1);X.JSC$9725_lastError_=t;X.JSC$9725_lastErrorCode_=5;Kbq(X);ODJ(X)},Kbq=function(X){X.errorDispatched_||(X.errorDispatched_=!0,X.dispatchEvent("complete"),X.dispatchEvent("error"))};
_.a8.prototype.abort=function(X){this.JSC$9725_xhr_&&this.JSC$9725_active_&&(this.JSC$9725_active_=!1,this.inAbort_=!0,this.JSC$9725_xhr_.abort(),this.inAbort_=!1,this.JSC$9725_lastErrorCode_=X||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ODJ(this))};
_.a8.prototype.disposeInternal=function(){this.JSC$9725_xhr_&&(this.JSC$9725_active_&&(this.JSC$9725_active_=!1,this.inAbort_=!0,this.JSC$9725_xhr_.abort(),this.inAbort_=!1),ODJ(this,!0));_.a8.superClass_.disposeInternal.call(this)};
_.a8.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)u2S(this);else this.onReadyStateChangeEntryPoint_()};
_.a8.prototype.onReadyStateChangeEntryPoint_=function(){u2S(this)};
var u2S=function(X){if(X.JSC$9725_active_&&typeof R1Y!="undefined")if(X.inSend_&&_.li(X)==4)setTimeout(X.onReadyStateChange_.bind(X),0);else if(X.dispatchEvent("readystatechange"),X.isComplete()){X.JSC$9725_active_=!1;try{if(X.isSuccess())X.dispatchEvent("complete"),X.dispatchEvent("success");else{X.JSC$9725_lastErrorCode_=6;try{var t=_.li(X)>2?X.JSC$9725_xhr_.statusText:""}catch(G){t=""}X.JSC$9725_lastError_=t+" ["+X.getStatus()+"]";Kbq(X)}}finally{ODJ(X)}}},ODJ=function(X,t){if(X.JSC$9725_xhr_){X.JSC$9725_timeoutId_&&
(clearTimeout(X.JSC$9725_timeoutId_),X.JSC$9725_timeoutId_=null);
var G=X.JSC$9725_xhr_;X.JSC$9725_xhr_=null;t||X.dispatchEvent("ready");try{G.onreadystatechange=null}catch(y){}}};
_.a8.prototype.isActive=function(){return!!this.JSC$9725_xhr_};
_.a8.prototype.isComplete=function(){return _.li(this)==4};
_.a8.prototype.isSuccess=function(){var X=this.getStatus(),t;if(!(t=sH4(X))){if(X=X===0)X=Waq(String(this.JSC$9725_lastUri_)),X=!hfq.test(X);t=X}return t};
_.li=function(X){return X.JSC$9725_xhr_?X.JSC$9725_xhr_.readyState:0};
_.H=_.a8.prototype;_.H.getStatus=function(){try{return _.li(this)>2?this.JSC$9725_xhr_.status:-1}catch(X){return-1}};
_.H.getResponseText=function(){try{return this.JSC$9725_xhr_?this.JSC$9725_xhr_.responseText:""}catch(X){return""}};
_.H.getResponse=function(){try{if(!this.JSC$9725_xhr_)return null;if("response"in this.JSC$9725_xhr_)return this.JSC$9725_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9725_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9725_xhr_)return this.JSC$9725_xhr_.mozResponseArrayBuffer}return null}catch(X){return null}};
_.H.getAllResponseHeaders=function(){return this.JSC$9725_xhr_&&_.li(this)>=2?this.JSC$9725_xhr_.getAllResponseHeaders()||"":""};
_.H.getLastError=function(){return typeof this.JSC$9725_lastError_==="string"?this.JSC$9725_lastError_:String(this.JSC$9725_lastError_)};var UdV=function(){};
UdV.prototype.send=function(X,t,G){t=t===void 0?function(){}:t;
G=G===void 0?function(){}:G;
UgJ(X.url,function(y){y=y.target;y.isSuccess()?t(y.getResponseText()):G(y.getStatus())},X.requestType,X.body,X.requestHeaders,X.timeoutMillis,X.withCredentials)};
UdV.prototype.getTransmissionType=function(){return 1};var QH4=function(X,t){this.xxo=X;this.event=t;this.startTime=ql()},a1s;
QH4.prototype.done=function(){this.xxo.l5(this.event,ql()-this.startTime)};
var x9=function(){sH.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.S(x9,sH);_.fU=function(X,t,G){var y=ql();t=t();X.l5(G,ql()-y);return t};
a1s=function(){x9.apply(this,arguments)};
_.S(a1s,x9);_.H=a1s.prototype;_.H.orX=function(){};
_.H.yI=function(){};
_.H.l5=function(){};
_.H.logError=function(){};
_.H.w2=function(){};
_.H.lYc=function(){};
_.H.viX=function(){};
_.H.fYc=function(){};
var IA4=function(X){x9.call(this);var t=this;this.xR=X;this.TEST_ONLY={owt:function(){return t.xR},
getExperimentIds:function(){return t.xR.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void t.xR.dispose()})};
_.S(IA4,x9);_.H=IA4.prototype;_.H.update=function(X){this.xR.dispose();this.xR=X};
_.H.yI=function(X){this.xR.yI(X)};
_.H.l5=function(X,t){this.xR.l5(X,t)};
_.H.logError=function(X){this.xR.logError(X)};
_.H.w2=function(){this.xR.w2()};
_.H.lYc=function(X){this.xR.lYc(X)};
_.H.viX=function(X){this.xR.viX(X)};
_.H.fYc=function(X){this.xR.fYc(X)};
_.H.orX=function(X){this.xR.orX(X)};
var Wbe=function(X,t){_.po.call(this);var G=this;this.callback=X;this.oSS=t;this.oSb=-t;this.addOnDisposeCallback(function(){return void clearTimeout(G.timer)})};
_.S(Wbe,_.po);var cKe=function(X){if(X.timer===void 0){var t=Math.max(0,X.oSb+X.oSS-ql());X.timer=setTimeout(function(){try{X.callback()}finally{X.oSb=ql(),X.timer=void 0}},t)}},p1z=function(X,t){x9.call(this);
this.metrics=X;this.lD=t};
_.S(p1z,x9);_.H=p1z.prototype;_.H.orX=function(X){this.metrics.ceg.record(X,this.lD)};
_.H.yI=function(X){this.metrics.eventCount.increment(X,this.lD)};
_.H.l5=function(X,t){this.metrics.vN1.record(t,X,this.lD)};
_.H.logError=function(X){this.metrics.errorCount.increment(X,this.lD)};
_.H.lYc=function(X){this.metrics.y2g.increment(X,this.lD)};
_.H.viX=function(X){this.metrics.zc7.increment(X,this.lD)};
_.H.fYc=function(X){this.metrics.nma.increment(X,this.lD)};
var xdv=function(X,t){t=t===void 0?[]:t;var G={lD:X.lD||"_",tEW:X.tEW||[],i4x:X.i4x|0,destinationUrl:X.destinationUrl,disableClearcutCredentialBinding:X.disableClearcutCredentialBinding,bYX:X.bYX||function(){},
ljc:X.ljc||function(z,B){return vS_(z,B,G.bYX,G.destinationUrl,G.disableClearcutCredentialBinding)}},y=G.ljc("50",G.tEW.concat(t));
p1z.call(this,{ceg:new FNJ(y),errorCount:new sjt(y),eventCount:new AMJ(y),vN1:new YiR(y),wNL:new TNq(y),y2g:new Dxt(y),zc7:new Si4(y),nma:new htq(y)},G.lD);var w=this;this.TEST_ONLY={getExperimentIds:function(){return w.options.tEW.concat(w.cwX).sort(function(z,B){return z-B})}};
this.options=G;this.service=y;this.mZe=!X.ljc;this.flushDebouncer=new Wbe(function(){return void w.service.snapshotAndFlush()},G.i4x);
this.addOnDisposeCallback(function(){w.flushDebouncer.dispose();w.mZe&&w.service.dispose()});
(this.cwX=t.slice()).sort(_.HS)};
_.S(xdv,p1z);xdv.prototype.w2=function(){cKe(this.flushDebouncer)};var lJJ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(lJJ,_.eB);_.xG0=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(_.xG0,_.eB);var Ba=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X,0,Ba.messageId)};
_.S(Ba,_.eB);var rKo=_.DxE(Ba);Ba.messageId="bfkj";var l1J=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(l1J,_.eB);var AfE=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(AfE,_.eB);var NpR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(NpR,_.eB);var PGJ=_.C1(NpR);_.Kp=function(){var X=this;this.promise=new Promise(function(t,G){X.resolve=t;X.reject=G})};_.Mo=function(X){_.po.call(this);var t=this;this.jix=Math.floor(Math.random()*200);this.qdJ=new NpR;if("challenge"in X&&rKo(X.challenge)){var G=_.aQ(X.challenge,4,void 0,mt);var y=_.aQ(X.challenge,5,void 0,mt);_.aQ(X.challenge,7,void 0,mt)&&(this.qdJ=PGJ(_.aQ(X.challenge,7,void 0,mt)))}else G=X.program,y=X.globalName;this.addOnDisposeCallback(function(){var h,u,W;return _.n(function(c){if(c.nextAddress==1)return c.yield(t.pAs,2);h=c.yieldResult;u=h.tI9;(W=u)==null||W();_.W$(c)})});
this.sI=f1E(X.is2||{},this.qdJ);_.h6(this,this.sI);var w=new _.Kp;this.pAs=w.promise;this.sI.yI("t");var z=this.sI.share(),B=new QH4(z,"t"),V=function(h,u,W,c){if(!t.sI.isDisposed()){var P="k";u?P="h":W&&(P="u");P!=="k"?c!==0&&(t.sI.yI(P),t.sI.l5(P,h)):t.jix<=0?(t.sI.yI(P),t.sI.l5(P,h),t.jix=Math.floor(Math.random()*200)):t.jix--}},b=function(h,u,W,c){Promise.resolve().then(function(){B.done();
z.w2();z.dispose();w.resolve({jzX:h,tI9:u,p0g:W,iwI:c})})};
if(!_.tA[y])throw this.sI.logError(25),Error("Ca");if(!_.tA[y].a)throw this.sI.logError(26),Error("Da");try{var e=_.tA[y].a;y=[];for(var g=[],F=Yas(this.qdJ),T=0;T<F.length;T++)y.push(F[T]),g.push(1);var D=s2h(this.qdJ);for(F=0;F<D.length;F++)y.push(D[F]),g.push(2);this.aZr=_.J(e(G,b,!0,X.cOW,V,[y,g],_.aQ(this.qdJ,5))).next().value;this.cQc=w.promise.then(function(){})}catch(h){throw this.sI.logError(28),h;
}};
_.S(_.Mo,_.po);_.Mo.prototype.snapshot=function(X){if(this.isDisposed())throw Error("Ea");this.sI.yI("n");var t=this.sI.share();return this.pAs.then(function(G){var y=G.jzX;return new Promise(function(w){var z=new QH4(t,"n");y(function(B){z.done();t.orX(B.length);t.w2();t.dispose();w(B)},[X.qe,
X.alW,X.tLg,X.glb])})})};
_.Mo.prototype.vmB=function(X){this.pAs.then(function(t){var G;(G=t.p0g)==null||G(X)})};
_.Mo.prototype.ed6=function(X,t){return this.pAs.then(function(G){var y;return(y=G.iwI)==null?void 0:y(X,t,!1)})};
_.Mo.prototype.ugO=function(){return this.sI.share()};var ETR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ETR,_.eB);var ca_=_.DxE(ETR);var UVq=function(){this.promises={};this.tNA=null},mVt=function(){UVq.instance||(UVq.instance=new UVq);
return UVq.instance},iDt=function(X,t){return Rfq(X,_.Co(t,lJJ,1,mt),_.Co(t,_.xG0,2,mt),_.aQ(t,3,void 0,mt))},Rfq=function(X,t,G,y){if(!t&&!G)return Promise.resolve();
if(!y)return GAE(t,G);var w;(w=X.promises)[y]||(w[y]=new Promise(function(z,B){GAE(t,G).then(function(){X.tNA=y;z()},function(V){delete X.promises[y];
B(V)})}));
return X.promises[y]};var Lbq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Lbq,_.eB);var vTS=function(X,t){return _.nV(X,1,t)},aAq=function(X,t){return _.nV(X,2,t)};var XS=function(X){_.po.call(this);var t=this;this.options=X;this.yLf=new _.Kp;this.cQc=this.yLf.promise;this.urQ=new _.Kp;this.wNv=1;this.lMa=new _.Kp;this.ews=[];this.qvJ=X.qvJ||function(){};
this.rXJ=new IA4(f1E(X.is2||{}));lA4(this,X.hg,X.w7M,X.vZl,X.wjl,Object.assign({},xVq,X.wgO||{}));this.addOnDisposeCallback(function(){return void fA4(t)})};
_.S(XS,_.po);XS.prototype.snapshot=function(X){var t=this;return _.n(function(G){switch(G.nextAddress){case 1:if(t.isDisposed())throw Error("Ea");if(t.qX||t.hB3){G.jumpTo(2);break}return G.yield(t.urQ.promise,2);case 2:if(!t.qX){G.jumpTo(4);break}return G.yield(t.qX.snapshot(X),5);case 5:return G.return(G.yieldResult);case 4:throw t.hB3;}})};
var Mke=function(X){var t;return _.n(function(G){if(X.isDisposed())throw Error("Ea");(t=X.zP)!=null&&(t.endTimeMs=0,t.resolver(1));return G.yield(X.lMa.promise,0)})},fA4=function(X){X.hB3=Error("Ga");
X.urQ.resolve();DdE(X.yLf.promise);X.yLf.reject(Error("Ga"));X.rXJ.dispose();Promise.all(X.ews).then(function(){var G;return _.n(function(y){(G=X.qX)==null||G.dispose();X.qX=void 0;_.W$(y)})});
X.ews=[];var t;(t=X.zP)!=null&&(t.endTimeMs=0,t.resolver(1));DdE(X.lMa.promise);X.lMa.reject(Error("Ga"))};
XS.prototype.vmB=function(X){var t,G;(t=this.qX)==null||(G=t.vmB)==null||G.call(t,X)};
XS.prototype.ed6=function(X,t){var G,y,w;return(w=(G=this.qX)==null?void 0:(y=G.ed6)==null?void 0:y.call(G,X,t))!=null?w:Promise.resolve()};
var Xp4=function(X,t){var G=X.qvJ;X.qvJ=function(){G();t()}},$lR=function(X,t){X.isDisposed()||(X.qX=t,X.rXJ.update(t.ugO()),X.urQ.resolve(),X.yLf.resolve(void 0),X.qvJ())};
XS.prototype.handleError=function(X){if(!this.isDisposed()){this.hB3=X;this.urQ.resolve();var t,G;(G=(t=this.options).rh7)==null||G.call(t,X)}};
var tM4=function(X,t){t&&(Promise.all(X.ews).then(function(){return void t.dispose()}),X.ews=[])},$P=function(X,t){X.wNv=t;
var G,y;(y=(G=X.options).mIg)==null||y.call(G,t)},Gl4=function(X){X.isDisposed()||(X.lMa.resolve(),X.lMa=new _.Kp)},lA4=function(X,t,G,y,w,z){y=y===void 0?mVt():y;
w=w===void 0?Promise.resolve(void 0):w;var B,V,b,e,g,F,T,D,h,u,W,c;_.n(function(P){switch(P.nextAddress){case 1:return P.yield(0,3);case 3:V=null;if(!B){P.jumpTo(6);break}$P(X,7);_.CL(P,7);return P.yield(I0(B.snapshot({}),z.gDg,function(){return Promise.resolve("E:CTO")}),9);
case 9:V=P.yieldResult;_.zx(P,6);break;case 7:_.IY(P),V="E:UCE";case 6:b=void 0,e=B?z.wwI:z.eI1,g=new sF(e,z.mro,z.gNM,z.r81),F=1;case 10:if(!(F<=z.maxAttempts)){P.jumpTo(12);break}if(F===1){P.jumpTo(13);break}$P(X,0);X.zP=new y6S(g.getValue(),z.kv7,z.wh4);return P.yield(X.zP.promise,14);case 14:T=P.yieldResult,X.zP=void 0,T===1?(F=1,g.reset()):dB4(g);case 13:_.CL(P,15);D=void 0;if(G){D=G;P.jumpTo(17);break}$P(X,5);h=y.tNA;return P.yield(I0(wpP(t,h,V),z.e1K,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:D=P.yieldResult;case 17:return $P(X,3),P.yield(I0(iDt(y,D),z.sBg,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return $P(X,8),P.yield(w,20);case 20:return u=new _.Mo({challenge:D,is2:X.options.is2,cOW:X.options.cOW}),P.yield(I0(u.cQc,z.fI9,function(){return Promise.reject(Error("Ja"))}),21);
case 21:b=u;P.jumpTo(12);break;case 15:W=_.IY(P),X.handleError(W),Gl4(X);case 11:F++;P.jumpTo(10);break;case 12:if(X.isDisposed()){P.jumpTo(5);break}b&&(G=void 0,tM4(X,B),B=b,$lR(X,b),Gl4(X));$P(X,2);X.zP=new y6S(z.tuv,z.kv7,z.wh4);return P.yield(X.zP.promise,22);case 22:X.zP=void 0;if(X.isDisposed()){P.jumpTo(5);break}P.jumpTo(3);break;case 5:(c=B)==null||c.dispose(),_.W$(P)}})};
XS.prototype.ugO=function(){return this.rXJ.share()};
var xVq={tuv:432E5,kv7:3E5,wh4:10,gDg:1E4,e1K:3E4,sBg:3E4,fI9:6E4,eI1:1E3,wwI:6E4,mro:6E5,gNM:.25,r81:2,maxAttempts:10},y6S=function(X,t,G){var y=this;this.endTimeMs=Date.now()+X;this.promise=new Promise(function(z){y.resolver=z});
var w=function(){var z=y.endTimeMs-Date.now();z<=G?y.resolver(0):setTimeout(w,Math.min(z,t))};
w()};var zB4,suV=(zB4=Math.imul)!=null?zB4:function(X,t){return X*t|0},Wp=[196,
200,224,18],tJ=function(X,t,G){G=G===void 0?[]:G;this.maxItems=X;this.eE=t===void 0?0:t;this.g5=G},Hot=function(X){var t=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!t)return new tJ(X);var G=t.split(",");if(G.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new tJ(X);t=G.slice(1);t.length===1&&t[0]===""&&(t=[]);G=Number(G[0]);return isNaN(G)||G<0||G>t.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new tJ(X)):new tJ(X,G,t)};
tJ.prototype.serialize=function(){return String(this.eE)+","+this.g5.join()};
tJ.prototype.insert=function(X,t){var G=void 0;if(this.g5[this.eE]!==X){var y=this.g5.indexOf(X);y!==-1?(this.g5.splice(y,1),y<this.eE&&this.eE--,this.g5.splice(this.eE,0,X)):(G=this.g5[this.eE],this.g5[this.eE]=X)}this.eE=(this.eE+1)%this.maxItems;X=ytv("iU5q-!O9@$",this.serialize());G&&X&&t(G);return X};
var obJ=function(X,t){this.js2=t;try{var G=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(y){G=!1}G&&(this.index=Hot(X))},J6o=function(X,t,G,y,w){var z=X.index?_.fU(X.js2,function(){return Zs6(X.index,Sc_(t),G,y,w)},"W"):"u";
X.js2.fYc(z)},BT4=function(X,t,G){var y=_.J(X.index?_.fU(X.js2,function(){return qcs(Sc_(t),G)},"R"):["u"]),w=y.next().value;
y=y.next().value;X.js2.viX(w);return y};var nbJ={toString:function(X){var t=[],G=0;X-=-2147483648;t[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(X%52);for(X=Math.floor(X/52);X>0;)t[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(X%62),X=Math.floor(X/62);return t.join("")}};var klB=function(X){X=VMJ(X);for(var t=2654435769,G=2654435769,y=314159265,w=X.length,z=w,B=0,V=function(){t-=G;t-=y;t^=y>>>13;G-=y;G-=t;G^=t<<8;y-=t;y-=G;y^=G>>>13;t-=G;t-=y;t^=y>>>12;G-=y;G-=t;G^=t<<16;y-=t;y-=G;y^=G>>>5;t-=G;t-=y;t^=y>>>3;G-=y;G-=t;G^=t<<10;y-=t;y-=G;y^=G>>>15};z>=12;z-=12,B+=12)t+=bo4(X,B),G+=bo4(X,B+4),y+=bo4(X,B+8),V();
y+=w;switch(z){case 11:y+=X[B+10]<<24;case 10:y+=X[B+9]<<16;case 9:y+=X[B+8]<<8;case 8:G+=X[B+7]<<24;case 7:G+=X[B+6]<<16;case 6:G+=X[B+5]<<8;case 5:G+=X[B+4];case 4:t+=X[B+3]<<24;case 3:t+=X[B+2]<<16;case 2:t+=X[B+1]<<8;case 1:t+=X[B]}V();return nbJ.toString(y)},VMJ=function(X){for(var t=[],G=0;G<X.length;G++)t.push(X.charCodeAt(G));
return t},bo4=function(X,t){return X[t]+(X[t+1]<<8)+(X[t+2]<<16)+(X[t+3]<<24)};var GT=function(X){_.po.call(this);this.jh=X;this.jT3=new _.Kp};
_.S(GT,_.po);var dlS=function(X,t){var G=setTimeout(function(){X.jT3.resolve()},t);
X.addOnDisposeCallback(function(){return void clearTimeout(G)})};
GT.prototype.hOs=function(X,t){var G=this.aP(X);t==null||t(G);return _.fU(this.jh,function(){return _.i2(G,2)},this.uiQ)};
var eB4=function(X,t,G,y){return _.fU(X.jh,function(){return G?X.hOs(t,y):X.aP(t,y)},X.taJ)},j0J=function(X,t,G,y){GT.call(this,X);
this.zmM=t;this.nSM=G;this.taJ="m";this.uiQ="x";this.xv4=0;dlS(this,y)};
_.S(j0J,GT);j0J.prototype.aP=function(X,t){var G=this;this.jh.yI(this.taJ);++this.xv4>=this.nSM&&this.jT3.resolve();var y=X();X=_.fU(this.jh,function(){return G.zmM(y)},"C");
if(X===void 0)throw new Ay(17,"YNJ:Undefined");if(!(X instanceof Uint8Array))throw new Ay(18,"ODM:Invalid");t==null||t(X);return X};
var gbY=function(X,t,G){GT.call(this,X);this.bPI=t;this.taJ="f";this.uiQ="z";dlS(this,G)};
_.S(gbY,GT);gbY.prototype.aP=function(){return this.bPI};
var FWS=function(X,t,G){GT.call(this,X);this.oY7=t;this.taJ="w";this.uiQ="z";dlS(this,G)};
_.S(FWS,GT);FWS.prototype.aP=function(){var X=this;return _.fU(this.jh,function(){return _.BS(X.oY7)},"d")};
FWS.prototype.hOs=function(){return this.oY7};
var TTo=function(X,t){GT.call(this,X);this.error=t;this.taJ="e";this.uiQ="y"};
_.S(TTo,GT);var A6R=function(X,t){var G=(t(X.error.message)+":"+t(X.error.stack)).substring(0,2048);t=G.length+1;G=CFY(G);var y=new Uint8Array(4+G.length);y.set([42,t&127|128,t>>7,X.error.code]);y.set(G,4);return y};
TTo.prototype.aP=function(){if(this.fsy)return this.fsy;this.fsy=A6R(this,function(X){return"_"+klB(X)});
return A6R(this,function(X){return X})};
var YFY=function(X,t,G){GT.call(this,X);this.qw1=t;this.clientState=G;this.taJ="S";this.uiQ="q"};
_.S(YFY,GT);YFY.prototype.aP=function(){var X=Math.floor(Date.now()/1E3),t=[Math.random()*255,Math.random()*255],G=t.concat([this.qw1&255,this.clientState],[X>>24&255,X>>16&255,X>>8&255,X&255]);X=new Uint8Array(2+G.length);X[0]=34;X[1]=G.length;X.set(G,2);G=X.subarray(2);for(var y=t=t.length;y<G.length;++y)G[y]^=G[y%t];this.jh.lYc(this.clientState);return X};var s0o={g7g:3E4,uyj:2E4},yT=function(X){_.po.call(this);var t=this;this.av2=new _.Kp;this.l0c=0;this.tg=void 0;this.state=2;this.vm=X.vm;this.hg=X.hg;this.wgO=Object.assign({},s0o,X.wgO||{});this.pG=X.vm.ugO();var G;this.onError=(G=X.onError)!=null?G:function(){};
this.i6b=X.i6b||!1;if(DlY(X)){var y=this.vm;this.pkb=function(){return Mke(y).catch(function(B){B=t.reportError(new Ay(t.zt?20:32,"TRG:Disposed",B));t.tg=B;var V;(V=t.zt)==null||V.dispose();t.zt=void 0;t.av2.reject(B)})};
Xp4(y,function(){return void SFP(t)});
y.wNv===2&&SFP(this)}else this.pkb=X.cw0,SFP(this);var w=this.pG.share();w.yI("o");var z=new QH4(w,"o");this.av2.promise.then(function(){z.done();w.w2();w.dispose()},function(){return void w.dispose()});
this.addOnDisposeCallback(function(){t.zt?(t.zt.dispose(),t.zt=void 0):t.tg?t.pG.w2():(t.tg=t.reportError(new Ay(32,"TNP:Disposed")),t.pG.w2(),t.av2.reject(t.tg))});
_.h6(this,this.pG)};
_.S(yT,_.po);yT.prototype.avb=function(){return this.av2.promise};
var hBt=function(X,t){if(!(t instanceof Ay))if(t instanceof _.LU){var G=Error(t.toString());G.stack=t.stack;t=new Ay(11,"EBH:Error",G)}else t=new Ay(12,"BSO:Unknown",t);return X.reportError(t)},SFP=function(X){var t,G,y,w,z,B,V,b,e,g,F,T,D,h,u;
return _.n(function(W){switch(W.nextAddress){case 1:t=void 0;X.l0c++;G=new _.Kp;X.vm instanceof XS&&X.vm.ews.push(G.promise);if(!X.i6b){W.jumpTo(2);break}y=new _.Kp;setTimeout(function(){return void y.resolve()});
return W.yield(y.promise,2);case 2:return w=X.pG.share(),_.CL(W,4,5),X.state=5,z={},B=[],W.yield(I0(X.vm.snapshot({qe:z,tLg:B}),X.wgO.uyj,function(){return Promise.reject(new Ay(15,"MDA:Timeout"))}),7);
case 7:V=W.yieldResult;if(X.isDisposed())throw new Ay(X.zt?20:32,"MDA:Disposed");b=B[0];X.state=6;return W.yield(I0(Zo4(X.hg,V),X.wgO.g7g,function(){return Promise.reject(new Ay(10,"BWB:Timeout"))}),8);
case 8:e=W.yieldResult;if(X.isDisposed())throw new Ay(X.zt?20:32,"BWB:Disposed");X.state=7;t=_.fU(w,function(){var P=qFz(X,e,G,b);P.jT3.promise.then(function(){return void X.pkb()});
return P},"i");
case 5:_.O6(W);w.dispose();_.Qb(W,6);break;case 4:g=_.IY(W);(F=t)==null||F.dispose();if(!X.tg){T=hBt(X,g);G.resolve();var c;if(c=X.vm instanceof XS&&X.l0c<2)a:if(g instanceof Ay)c=g.code!==32&&g.code!==20&&g.code!==10;else{if(g instanceof _.LU)switch(g.code){case 2:case 13:case 14:case 4:break;default:c=!1;break a}c=!0}if(c)return D=(1+Math.random()*.25)*(X.zt?6E4:1E3),h=setTimeout(function(){return void X.pkb()},D),X.addOnDisposeCallback(function(){return void clearTimeout(h)}),W.return();
X.tg=T}w.logError(X.zt?13:14);X.av2.reject(X.tg);return W.return();case 6:X.state=8,X.l0c=0,(u=X.zt)==null||u.dispose(),X.zt=t,X.av2.resolve(),_.W$(W)}})},qFz=function(X,t,G,y){var w=VJw(t,2)*1E3;
if(w<=0)throw new Ay(31,"TTM:Invalid");if(_.aQ(t,4))return new FWS(X.pG,_.aQ(t,4),w);if(!VJw(t,3))return new gbY(X.pG,aC0(_.Ne(t,1)),w);if(!y)throw new Ay(4,"PMD:Undefined");y=y(aC0(_.Ne(t,1)));if(!(y instanceof Function))throw new Ay(16,"APF:Failed");X.kPM=Math.floor((Date.now()+w)/1E3);X=new j0J(X.pG,y,VJw(t,3),w);X.addOnDisposeCallback(function(){return void G.resolve()});
return X};
yT.prototype.aP=function(X){return CfP(this,Object.assign({},X),!1)};
yT.prototype.hOs=function(X){return CfP(this,Object.assign({},X),!0)};
yT.prototype.j3b=function(X){if(X>150)return!1;try{return this.cache=new obJ(X,this.pG),!0}catch(t){return this.reportError(new Ay(22,"GBJ:init",t)),!1}};
yT.prototype.reportError=function(X){this.pG.logError(X.code);this.onError(X);return X};
var KWY=function(X,t){t=t instanceof Ay?t:new Ay(5,"TVD:error",t);return X.reportError(t)},CfP=function(X,t,G){try{if(X.isDisposed())throw new Ay(21,"BNT:disposed");
if(!X.zt&&X.tg)throw X.tg;var y,w;return(w=(y=Ooq(X,t,G))!=null?y:uoS(X,t,G))!=null?w:Q0t(X,t,G)}catch(z){if(!t.nXi)throw KWY(X,z);return IoB(X,G,z)}},Ooq=function(X,t,G){var y;
return(y=X.zt)==null?void 0:eB4(y,function(){return WWo(X,t)},G,function(w){var z;
if(X.zt instanceof j0J&&((z=t.i4)==null?0:z.lUM))try{var B;(B=X.cache)==null||J6o(B,WWo(X,t),w,t.i4.xlO,X.kPM-120)}catch(V){X.reportError(new Ay(24,"ELX:write",V))}})},uoS=function(X,t,G){var y;
if((y=t.i4)!=null&&y.mOT)try{var w,z=(w=X.cache)==null?void 0:BT4(w,WWo(X,t),t.i4.xlO);return z?G?_.fU(X.pG,function(){return _.i2(z,2)},"a"):z:void 0}catch(B){X.reportError(new Ay(23,"RXO:read",B))}},Q0t=function(X,t,G){var y={stack:[],
error:void 0,hasError:!1};try{if(!t.xo3)throw new Ay(29,"SDF:notready");return eB4(xvs(y,new YFY(X.pG,0,X.state)),function(){return WWo(X,t)},G)}catch(w){y.error=w,y.hasError=!0}finally{fc_(y)}},IoB=function(X,t,G){var y={stack:[],
error:void 0,hasError:!1};try{var w=KWY(X,G);return eB4(xvs(y,new TTo(X.pG,w)),function(){return[]},t)}catch(z){y.error=z,y.hasError=!0}finally{fc_(y)}},WWo=function(X,t){return t.gds?t.gds:t.qe?_.fU(X.pG,function(){return t.gds=CFY(t.qe)},"c"):[]},DlY=function(X){return iJ(function(t){if(!dh(t))return!1;
for(var G=_.J(Object.entries(X)),y=G.next();!y.done;y=G.next()){var w=_.J(y.value);y=w.next().value;w=w.next().value;if(!(y in t)){if(w.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!w(t[y]))return!1}return!0})}({vm:function(X){return iJ(function(t){return t instanceof X})}(XS)},"");var c6S=function(){var X=_.hp();this.JSC$9845_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",gT("cookie_enabled"),gT("cookie_3p_enabled"),_.A6("browser"))};
c6S.prototype.increment=function(X,t,G){this.JSC$9845_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",X,t,G)};
var $hv=function(){var X=_.hp();this.JSC$9869_streamzService=X;X.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Tl("tick"),gT("from_st_cookie"))};
$hv.prototype.increment=function(X,t){this.JSC$9869_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",X,t)};
var ppt=function(){var X=_.hp();this.JSC$9875_streamzService=X;X.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.A6("status"))};
ppt.prototype.increment=function(X){this.JSC$9875_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",X)};
var r6q=function(){var X=_.hp();this.JSC$9878_streamzService=X;X.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.A6("stage"),gT("is_using_ytd_player"),gT("has_expandable_tiles"))};
r6q.prototype.increment=function(X,t,G){this.JSC$9878_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",X,t,G)};
var NT4=function(){var X=_.hp();this.JSC$9881_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/response_signature",_.A6("check_status"))};
NT4.prototype.increment=function(X){this.JSC$9881_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/web/response_signature",X)};
var Pfh=function(){var X=_.hp();this.JSC$9884_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.A6("sig"),Tl("de"))};
Pfh.prototype.increment=function(X,t){this.JSC$9884_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/web/e_sig_log",X,t)};
var Ebh=function(){var X=_.hp();this.JSC$9887_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.A6("sig"),Tl("de"))};
Ebh.prototype.increment=function(X,t){this.JSC$9887_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/web/e_sig_en",X,t)};
_.Ulq=function(){var X=_.hp();this.JSC$9890_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.A6("action"))};
_.Ulq.prototype.increment=function(X){this.JSC$9890_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/web/enforcement_intent",X)};var wE=window;var mlz=(new Date).getTime();_.RH.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.RH.createSet("action","cite","data","formaction","href","manifest","poster","src");var RBB=function(X){this.servicePromise_=X;X.then((0,_.rT)(function(){},this),function(){},this)},ioe=function(X,t,G){X.servicePromise_.then(function(y){var w=y[t];
if(!w)throw Error("Ka`"+t);return w.apply(y,G)})},aoY=function(X,t,G){for(var y=Array(arguments.length-2),w=2;w<arguments.length;w++)y[w-2]=arguments[w];
w=LWh(X,t).then(function(z){return z.apply(null,y)},function(z){z=Error("La`"+t+"`"+X,{cause:z});
delete vbq[t];return _.l$(z)});
return new RBB(w)},vbq={},LWh=function(X,t){var G=vbq[t];
if(G)return G;G=(G=_.GA(t))?_.qY(G):(new _.Kh(function(y,w){var z=(new mP(document)).createElement("SCRIPT");z.async=!0;_.Vb(z,_.rN(Ehe(X)));z.onload=z.onreadystatechange=function(){z.readyState&&z.readyState!="loaded"&&z.readyState!="complete"||y()};
z.onerror=function(B){w(Error("Ma`"+t+"`"+X,{cause:B}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(z)})).then(function(){var y=_.GA(t);
if(!y)throw Error("Na`"+t+"`"+X);return y});
return vbq[t]=G};var loR={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},foq=function(){var X=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=KUV(function(){return _.n(function(t){if(t.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?t.return(Promise.resolve()):t.yield(xle(X),2);X.rsaForList.length>
0&&document.addEventListener("click",X.requestAccessForHelpPanel);_.W$(t)})});
this.requestAccessForHelpPanel=function(){if(!(X.rsaForPromises.length>0)){for(var t=_.J(X.rsaForList),G=t.next();!G.done;G=t.next()){G=G.value;try{X.rsaForPromises.push(document.requestStorageAccessFor(G))}catch(y){}}Promise.all(X.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){X.reset()})}}};
foq.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var xle=function(X){var t,G,y,w;return _.n(function(z){switch(z.nextAddress){case 1:t=_.J(Object.values(loR)),G=t.next();case 2:if(G.done){z.jumpTo(0);break}y=G.value;_.CL(z,5);return z.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:y}),7);case 7:w=z.yieldResult;w.state!=="granted"&&X.rsaForList.push(y);_.zx(z,3);break;case 5:_.IY(z);z.jumpTo(0);break;case 3:G=t.next(),z.jumpTo(2)}})};(new foq).initialize();var MMo=function(X){this.JSC$9904_loader_=X};
MMo.prototype.startHelp=function(X){ioe(this.JSC$9904_loader_,"startHelp",arguments)};
MMo.prototype.JSC$9906_loadChatSupport=function(X){ioe(this.JSC$9904_loader_,"loadChatSupport",arguments)};
var $te=function(X,t){t=t||{};X=aoY(Xm4,"help.service.Lazy.create",X,{apiKey:t.apiKey||t.apiKey,asxUiUri:t.asxUiUri||t.asxUiUri,environment:t.environment||t.environment,flow:t.flow||t.flow,frdProductData:t.frdProductData||t.frdProductData,frdProductDataSerializedJspb:t.frdProductDataSerializedJspb||t.frdProductDataSerializedJspb,helpCenterPath:t.helpCenterPath||t.helpCenterPath,locale:t.locale||t.locale||"en-US".replace(/-/g,"_"),nonce:t.nonce||t.nonce,productData:t.productData||t.productData,receiverUri:t.receiverUri||
t.receiverUri,renderApiUri:t.renderApiUri||t.renderApiUri,theme:t.theme||t.theme,window:t.window||t.window});return new MMo(X)},Xm4=new $5(wk_,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var t0t=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(t0t,_.eB);var Gy4=_.C1(t0t);_.yWe=new function(X,t,G,y){this.configType=X;this.flagName=G;this.defaultValue=y;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 zKB=function(){this.retriever=_.gw().resolve(wmo)};u3l(Node);u3l(Element);var HtY=u3l(HTMLElement);u3l(SVGElement);var oHS,JWz,o6,Bh4;oHS=function(X){return typeof X.className=="string"?X.className:X.getAttribute&&X.getAttribute("class")||""};
JWz=function(X){return X.classList?X.classList:oHS(X).match(/\S+/g)||[]};
_.zT=function(X,t){typeof X.className=="string"?X.className=t:X.setAttribute&&X.setAttribute("class",t)};
_.He=function(X,t){return X.classList?X.classList.contains(t):_.Eh(JWz(X),t)};
_.Fx=function(X,t){if(X.classList)X.classList.add(t);else if(!_.He(X,t)){var G=oHS(X);_.zT(X,G+(G.length>0?" "+t:t))}};
o6=function(X,t){if(X.classList)Array.prototype.forEach.call(t,function(w){_.Fx(X,w)});
else{var G={};Array.prototype.forEach.call(JWz(X),function(w){G[w]=!0});
Array.prototype.forEach.call(t,function(w){G[w]=!0});
t="";for(var y in G)t+=t.length>0?" "+y:y;_.zT(X,t)}};
_.j_=function(X,t){X.classList?X.classList.remove(t):_.He(X,t)&&_.zT(X,Array.prototype.filter.call(JWz(X),function(G){return G!=t}).join(" "))};
Bh4=function(X,t){X.classList?Array.prototype.forEach.call(t,function(G){_.j_(X,G)}):_.zT(X,Array.prototype.filter.call(JWz(X),function(G){return!_.Eh(t,G)}).join(" "))};var nHJ=function(X){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=X.document},kyY=function(X,t){V0Y(X);
var G=document.createElement("div"),y;(y=t.parentNode)==null||y.insertBefore(G,t);G.tabIndex=0;G.id="fc-focus-trap-pre-div";G=document.createElement("div");var w;(w=t.parentNode)==null||w.insertBefore(G,t.nextSibling);G.tabIndex=0;G.id="fc-focus-trap-post-div";var z=btt(X,t),B=btt(X,t,!0);z&&B&&(X.focusChangeHandler=function(){var V=X.document.activeElement;if(V)if(_.Ml(t,V))X.previouslyFocusedElement=V;else if(V===X.document.activeElement)switch(X.previouslyFocusedElement){case z:B.focus();X.previouslyFocusedElement=
B;break;default:z.focus(),X.previouslyFocusedElement=z}},X.document.addEventListener("focus",X.focusChangeHandler,!0),X.document.addEventListener("focusin",X.focusChangeHandler))},V0Y=function(X){X.focusChangeHandler&&(document.removeEventListener("focus",X.focusChangeHandler,!0),document.removeEventListener("focusin",X.focusChangeHandler),X.focusChangeHandler=null);
var t;(t=document.getElementById("fc-focus-trap-pre-div"))==null||t.remove();var G;(G=document.getElementById("fc-focus-trap-post-div"))==null||G.remove()},dtP=function(X,t,G,y,w){G=G===void 0?!0:G;
var z;w=(z=w===void 0?null:w)!=null?z:btt(X,t,y===void 0?!1:y);w!==null&&(w.focus(),G&&kyY(X,t))};
nHJ.prototype.disableButton=function(X,t){t=t===void 0?null:t;X.disabled=!0;t&&_.Fx(X,t)};
var btt=function(X,t,G){G=G===void 0?!1:G;if(Dil(t)&&!G)return t;var y=G?[].slice.call(t.children,0).reverse():t.children;y=_.J(y);for(var w=y.next();!w.done;w=y.next())if(w=w.value,HtY(w)&&(w=btt(X,w,G)))return w;return Dil(t)&&G?t:null};var eKe=function(X){this.originalBodyOverflow="";this.JSC$9930_domHelper=pD(X)};
eKe.prototype.enableScrolling=function(){this.JSC$9930_domHelper.JSC$9254_document_.body.style.overflow=this.originalBodyOverflow};_.sx(_.Nl,_.po);_.H=_.Nl.prototype;_.H.JSC$9933_id_=0;_.H.disposeInternal=function(){_.Nl.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9931_listener_;delete this.handler_};
_.H.start=function(X){this.stop();this.JSC$9933_id_=ii(this.callback_,X!==void 0?X:this.JSC$9931_interval_)};
_.H.stop=function(){this.isActive()&&_.tA.clearTimeout(this.JSC$9933_id_);this.JSC$9933_id_=0};
_.H.fire=function(){this.stop();this.JSC$9933_doAction_()};
_.H.isActive=function(){return this.JSC$9933_id_!=0};
_.H.JSC$9933_doAction_=function(){this.JSC$9933_id_=0;this.JSC$9931_listener_&&this.JSC$9931_listener_.call(this.handler_)};_.AL=function(X){_.po.call(this);this.handler_=X;this.JSC$9934_keys_={}};
_.sx(_.AL,_.po);var j5z=[];_.AL.prototype.listen=function(X,t,G,y){Array.isArray(t)||(t&&(j5z[0]=t.toString()),t=j5z);for(var w=0;w<t.length;w++){var z=_.vj(X,t[w],G||this.handleEvent,y||!1,this.handler_||this);if(!z)break;this.JSC$9934_keys_[z.key]=z}return this};
_.AL.prototype.listenOnce=function(X,t,G,y){return gH4(this,X,t,G,y)};
var gH4=function(X,t,G,y,w,z){if(Array.isArray(G))for(var B=0;B<G.length;B++)gH4(X,t,G[B],y,w,z);else{t=mf(t,G,y||X.handleEvent,w,z||X.handler_||X);if(!t)return X;X.JSC$9934_keys_[t.key]=t}return X};
_.AL.prototype.unlisten=function(X,t,G,y,w){if(Array.isArray(t))for(var z=0;z<t.length;z++)this.unlisten(X,t[z],G,y,w);else if(X=UBB(X,t,G||this.handleEvent,_.$h(y)?!!y.capture:!!y,w||this.handler_||this))RL(X),delete this.JSC$9934_keys_[X.key];return this};
_.AL.prototype.removeAll=function(){_.RH.forEach(this.JSC$9934_keys_,function(X,t){this.JSC$9934_keys_.hasOwnProperty(t)&&RL(X)},this);
this.JSC$9934_keys_={}};
_.AL.prototype.disposeInternal=function(){_.AL.superClass_.disposeInternal.call(this);this.removeAll()};
_.AL.prototype.handleEvent=function(){throw Error("Oa");};var JJ=function(){_.po.call(this);this.services_={}};
_.sx(JJ,_.po);JJ.prototype.connect=function(X){X&&X()};
JJ.prototype.isConnected=function(){return!0};
JJ.prototype.registerService=function(X,t,G){this.services_[X]={callback:t,objectPayload:!!G}};
JJ.prototype.getService=function(X,t){var G=this.services_[X];return G?G:this.defaultService_?{callback:_.WP(this.defaultService_,X),objectPayload:_.$h(t)}:null};
var F$J=function(X,t){if(t&&typeof X==="string")try{return JSON.parse(X)}catch(G){return null}else if(!t&&typeof X!=="string")return(0,_.v6)(X);return X};
JJ.prototype.disposeInternal=function(){JJ.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 Be=function(X,t){this.sequence_=[];this.onCancelFunction_=X;this.defaultScope_=t||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};
Be.prototype.cancel=function(X){if(this.fired_)this.result_ instanceof Be&&this.result_.cancel();else{if(this.parent_){var t=this.parent_;delete this.parent_;X?t.cancel(X):(t.branches_--,t.branches_<=0&&t.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new nG(this))}};
Be.prototype.continue_=function(X,t){this.blocked_=!1;Thq(this,X,t)};
var Thq=function(X,t,G){X.fired_=!0;X.result_=G;X.hadError_=!t;AW4(X)},s5Y=function(X){if(X.fired_){if(!X.silentlyCanceled_)throw new Ymq(X);
X.silentlyCanceled_=!1}};
Be.prototype.callback=function(X){s5Y(this);Thq(this,!0,X)};
Be.prototype.errback=function(X){s5Y(this);Thq(this,!1,X)};
var Dtq=function(X,t,G){VT(X,t,null,G)};
Be.prototype.finally=function(X){var t=this;return Sme(new Promise(function(G,y){VT(t,function(w){X();G(w)},function(w){X();
y(w)})}))};
var VT=function(X,t,G,y){var w=X.fired_;w||(t===G?t=G=EH(t):(t=EH(t),G=EH(G)));X.sequence_.push([t,G,y]);w&&AW4(X)};
Be.prototype.then=function(X,t,G){var y,w,z=new _.Kh(function(B,V){w=B;y=V});
VT(this,w,function(B){B instanceof nG?z.cancel():y(B);return hKo},this);
return z.then(X,t,G)};
xB4(Be);var ZtS=function(X,t){t instanceof Be?Dtq(X,(0,_.rT)(t.branch,t)):Dtq(X,function(){return t})};
Be.prototype.branch=function(X){var t=new Be;VT(this,t.callback,t.errback,t);X&&(t.parent_=this,this.branches_++);return t};
Be.prototype.isError=function(X){return X instanceof Error};
var qmR=function(X){return nh(X.sequence_,function(t){return typeof t[1]==="function"})},hKo={},AW4=function(X){if(X.unhandledErrorId_&&X.fired_&&qmR(X)){var t=X.unhandledErrorId_,G=Cmz[t];
G&&(_.tA.clearTimeout(G.JSC$9951_id_),delete Cmz[t]);X.unhandledErrorId_=0}X.parent_&&(X.parent_.branches_--,delete X.parent_);t=X.result_;for(var y=G=!1;X.sequence_.length&&!X.blocked_;){var w=X.sequence_.shift(),z=w[0],B=w[1];w=w[2];if(z=X.hadError_?B:z)try{var V=z.call(w||X.defaultScope_,t);V===hKo&&(V=void 0);V!==void 0&&(X.hadError_=X.hadError_&&(V==t||X.isError(V)),X.result_=t=V);if(fx4(t)||typeof _.tA.Promise==="function"&&t instanceof _.tA.Promise)y=!0,X.blocked_=!0}catch(b){t=b,X.hadError_=
!0,qmR(X)||(G=!0)}}X.result_=t;y&&(V=(0,_.rT)(X.continue_,X,!0),y=(0,_.rT)(X.continue_,X,!1),t instanceof Be?(VT(t,V,y),t.blocking_=!0):t.then(V,y));G&&(t=new K$R(t),Cmz[t.JSC$9951_id_]=t,X.unhandledErrorId_=t.JSC$9951_id_)},Sme=function(X){var t=new Be;
X.then(function(G){t.callback(G)},function(G){t.errback(G)});
return t},Ymq=function(){_.Xv.call(this)};
_.sx(Ymq,_.Xv);Ymq.prototype.message="Deferred has already fired";Ymq.prototype.name="AlreadyCalledError";var nG=function(){_.Xv.call(this)};
_.sx(nG,_.Xv);nG.prototype.message="Deferred was canceled";nG.prototype.name="CanceledError";var K$R=function(X){this.JSC$9951_id_=_.tA.setTimeout((0,_.rT)(this.throwError,this),0);this.JSC$9951_error_=X};
K$R.prototype.throwError=function(){delete Cmz[this.JSC$9951_id_];throw this.JSC$9951_error_;};
var Cmz={};var Otz={1:"NativeMessagingTransport"},uOh=["pu","lru","pru","lpu","ppu"],Iyq=function(){for(var X=10,t=Q5o,G=t.length,y="";X-- >0;)y+=t.charAt(Math.floor(Math.random()*G));return y},Q5o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var bE=function(X){_.po.call(this);this.JSC$9954_domHelper_=X||pD()};
_.sx(bE,_.po);bE.prototype.transportType=0;bE.prototype.getWindow=function(){return this.JSC$9954_domHelper_.getWindow()};
bE.prototype.getName=function(){return Otz[String(this.transportType)]||""};var kP=function(X,t,G,y,w){bE.call(this,G);this.JSC$9957_channel_=X;this.protocolVersion_=w||2;this.peerHostname_=t||"*";this.JSC$9957_eventHandler_=new _.AL(this);this.maybeAttemptToConnectTimer_=new _.Tp(100,this.getWindow());this.oneSidedHandshake_=!!y;this.setupAckReceived_=new Be;this.setupAckSent_=new Be;this.JSC$9957_connected_=new Be;this.endpointId_=Iyq();this.peerEndpointId_=null;this.oneSidedHandshake_?W$R(this.JSC$9957_channel_)==1?ZtS(this.JSC$9957_connected_,this.setupAckReceived_):
ZtS(this.JSC$9957_connected_,this.setupAckSent_):(ZtS(this.JSC$9957_connected_,this.setupAckReceived_),this.protocolVersion_==2&&ZtS(this.JSC$9957_connected_,this.setupAckSent_));Dtq(this.JSC$9957_connected_,this.notifyConnected_,this);this.JSC$9957_connected_.callback(!0);this.JSC$9957_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.sx(kP,bE);kP.prototype.peerProtocolVersion_=null;kP.prototype.initialized_=!1;kP.prototype.transportType=1;var cWR={};kP.prototype.sendTimerId_=0;
var NhP=function(X){var t=X.event_.data;if(typeof t!=="string")return!1;var G=t.indexOf("|"),y=t.indexOf(":");if(G==-1||y==-1)return!1;var w=t.substring(0,G);G=t.substring(G+1,y);t=t.substring(y+1);if(y=dE[w])return y.xpcDeliver(G,t,X.event_.origin),!0;y=pm4(t)[0];for(var z in dE){var B=dE[z];if(W$R(B)==1&&!B.isConnected()&&G=="tp"&&(y=="SETUP"||y=="SETUP_NTPV2")&&rWt(B,X.event_.origin))return delete dE[B.name],B.name=w,dE[w]=B,B.xpcDeliver(G,t),!0}return!1},PmY=function(X){X.protocolVersion_!=2||
X.peerProtocolVersion_!=null&&X.peerProtocolVersion_!=2||X.send("tp","SETUP_NTPV2,"+X.endpointId_);
X.peerProtocolVersion_!=null&&X.peerProtocolVersion_!=1||X.send("tp","SETUP")},EH4=function(X,t){if(X.protocolVersion_!=2||X.peerProtocolVersion_!=null&&X.peerProtocolVersion_!=2||t!=2){if(X.peerProtocolVersion_!=null&&X.peerProtocolVersion_!=1||t!=1)return;
X.send("tp","SETUP_ACK")}else X.send("tp","SETUP_ACK_NTPV2");X.setupAckSent_.fired_||X.setupAckSent_.callback(!0)},Ute=function(X,t){t>X.peerProtocolVersion_&&(X.peerProtocolVersion_=t);
X.peerProtocolVersion_==1&&(X.setupAckSent_.fired_||X.oneSidedHandshake_||X.setupAckSent_.callback(!0),X.peerEndpointId_=null)};
_.H=kP.prototype;_.H.connect=function(){var X=this.getWindow(),t=_.GB(X),G=cWR[t];typeof G!=="number"&&(G=0);G==0&&_.vj(X.postMessage?X:X.document,"message",NhP,!1,kP);cWR[t]=G+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.H.maybeAttemptToConnect_=function(){var X=W$R(this.JSC$9957_channel_)==0;this.oneSidedHandshake_&&X||this.JSC$9957_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),PmY(this))};
_.H.send=function(X,t){var G=this.JSC$9957_channel_.peerWindowObject_;G&&(this.send=function(y,w){var z=this,B=this.JSC$9957_channel_.name;this.sendTimerId_=ii(function(){z.sendTimerId_=0;try{var V=G.postMessage?G:G.document;V.postMessage&&V.postMessage(B+"|"+y+":"+w,z.peerHostname_)}catch(b){}},0)},this.send(X,t))};
_.H.notifyConnected_=function(){var X=this.JSC$9957_channel_,t=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;X.isConnected()||X.connectionDelay_&&X.connectionDelay_.isActive()||(X.state_=2,_.Vs(X.connectionDelay_),t!==void 0?(X.connectionDelay_=new _.Nl(X.connectCb_,t),X.connectionDelay_.start()):(X.connectionDelay_=null,X.connectCb_()))};
_.H.disposeInternal=function(){if(this.initialized_){var X=this.getWindow(),t=_.GB(X),G=cWR[t];cWR[t]=G-1;G==1&&_.No(X.postMessage?X:X.document,"message",NhP,!1,kP)}this.sendTimerId_&&(_.tA.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Vs(this.JSC$9957_eventHandler_);delete this.JSC$9957_eventHandler_;_.Vs(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9957_connected_.cancel();delete this.JSC$9957_connected_;delete this.send;kP.superClass_.disposeInternal.call(this)};
var pm4=function(X){X=X.split(",");X[1]=X[1]||null;return X};var RKq;_.e2=function(X){if(X.getValues&&typeof X.getValues=="function")return X.getValues();if(typeof Map!=="undefined"&&X instanceof Map||typeof Set!=="undefined"&&X instanceof Set)return Array.from(X.values());if(typeof X==="string")return X.split("");if(_.xJ(X)){for(var t=[],G=X.length,y=0;y<G;y++)t.push(X[y]);return t}return _.RH.getValues(X)};
_.mtJ=function(X){if(X.getKeys&&typeof X.getKeys=="function")return X.getKeys();if(!X.getValues||typeof X.getValues!="function"){if(typeof Map!=="undefined"&&X instanceof Map)return Array.from(X.keys());if(!(typeof Set!=="undefined"&&X instanceof Set)){if(_.xJ(X)||typeof X==="string"){var t=[];X=X.length;for(var G=0;G<X;G++)t.push(G);return t}return _.RH.getKeys(X)}}};
RKq=function(X,t,G){if(X.forEach&&typeof X.forEach=="function")X.forEach(t,G);else if(_.xJ(X)||typeof X==="string")Array.prototype.forEach.call(X,t,G);else for(var y=_.mtJ(X),w=_.e2(X),z=w.length,B=0;B<z;B++)t.call(G,w[B],y&&y[B],X)};var wVY,DM,hJ,fyY,itJ,vHB,L$h,xte,ayS;
_.Vf=function(X,t){this.JSC$9962_domain_=this.userInfo_=this.scheme_="";this.JSC$9962_port_=null;this.fragment_=this.JSC$9962_path_="";this.JSC$9962_ignoreCase_=!1;var G;X instanceof _.Vf?(this.JSC$9962_ignoreCase_=t!==void 0?t:X.JSC$9962_ignoreCase_,_.j2(this,X.scheme_),this.userInfo_=X.userInfo_,_.gE(this,X.JSC$9962_domain_),_.FS(this,X.JSC$9962_port_),_.TT(this,X.getPath()),_.YP(this,X.JSC$9962_queryData_.clone()),_.sp(this,X.fragment_)):X&&(G=_.VQ(String(X)))?(this.JSC$9962_ignoreCase_=!!t,_.j2(this,
G[1]||"",!0),this.userInfo_=DM(G[2]||""),_.gE(this,G[3]||"",!0),_.FS(this,G[4]),_.TT(this,G[5]||"",!0),_.YP(this,G[6]||"",!0),_.sp(this,G[7]||"",!0)):(this.JSC$9962_ignoreCase_=!!t,this.JSC$9962_queryData_=new _.S2(null,this.JSC$9962_ignoreCase_))};
_.Vf.prototype.toString=function(){var X=[],t=this.scheme_;t&&X.push(hJ(t,itJ,!0),":");var G=this.JSC$9962_domain_;if(G||t=="file")X.push("//"),(t=this.userInfo_)&&X.push(hJ(t,itJ,!0),"@"),X.push(_.ww(G).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G=this.JSC$9962_port_,G!=null&&X.push(":",String(G));if(G=this.getPath())this.JSC$9962_domain_&&G.charAt(0)!="/"&&X.push("/"),X.push(hJ(G,G.charAt(0)=="/"?L$h:vHB,!0));(G=this.JSC$9962_queryData_.toString())&&X.push("?",G);(G=this.fragment_)&&X.push("#",hJ(G,
ayS));return X.join("")};
_.Vf.prototype.resolve=function(X){var t=this.clone(),G=!!X.scheme_;G?_.j2(t,X.scheme_):G=!!X.userInfo_;G?t.userInfo_=X.userInfo_:G=!!X.JSC$9962_domain_;G?_.gE(t,X.JSC$9962_domain_):G=X.JSC$9962_port_!=null;var y=X.getPath();if(G)_.FS(t,X.JSC$9962_port_);else if(G=!!X.JSC$9962_path_){if(y.charAt(0)!="/")if(this.JSC$9962_domain_&&!this.JSC$9962_path_)y="/"+y;else{var w=t.getPath().lastIndexOf("/");w!=-1&&(y=t.getPath().slice(0,w+1)+y)}w=y;if(w==".."||w==".")y="";else if(_.n_(w,"./")||_.n_(w,"/.")){y=
_.y0(w,"/");w=w.split("/");for(var z=[],B=0;B<w.length;){var V=w[B++];V=="."?y&&B==w.length&&z.push(""):V==".."?((z.length>1||z.length==1&&z[0]!="")&&z.pop(),y&&B==w.length&&z.push("")):(z.push(V),y=!0)}y=z.join("/")}else y=w}G?_.TT(t,y):G=X.JSC$9962_queryData_.toString()!=="";G?_.YP(t,X.JSC$9962_queryData_.clone()):G=!!X.fragment_;G&&_.sp(t,X.fragment_);return t};
_.Vf.prototype.clone=function(){return new _.Vf(this)};
_.j2=function(X,t,G){X.scheme_=G?DM(t,!0):t;X.scheme_&&(X.scheme_=X.scheme_.replace(/:$/,""));return X};
_.gE=function(X,t,G){X.JSC$9962_domain_=G?DM(t,!0):t;return X};
_.FS=function(X,t){if(t){t=Number(t);if(isNaN(t)||t<0)throw Error("Pa`"+t);X.JSC$9962_port_=t}else X.JSC$9962_port_=null;return X};
_.Vf.prototype.getPath=function(){return this.JSC$9962_path_};
_.TT=function(X,t,G){X.JSC$9962_path_=G?DM(t,!0):t;return X};
_.YP=function(X,t,G){t instanceof _.S2?(X.JSC$9962_queryData_=t,lyh(X.JSC$9962_queryData_,X.JSC$9962_ignoreCase_)):(G||(t=hJ(t,xte)),X.JSC$9962_queryData_=new _.S2(t,X.JSC$9962_ignoreCase_));return X};
_.yA=function(X,t,G){X.JSC$9962_queryData_.set(t,G);return X};
_.Gy=function(X,t){return X.JSC$9962_queryData_.get(t)};
_.sp=function(X,t,G){X.fragment_=G?DM(t):t;return X};
_.ZM=function(X){_.yA(X,"zx",$H());return X};
_.tW=function(X,t){return X instanceof _.Vf?X.clone():new _.Vf(X,t)};
wVY=function(X,t){X instanceof _.Vf||(X=_.tW(X));t instanceof _.Vf||(t=_.tW(t));return X.resolve(t)};
DM=function(X,t){return X?t?decodeURI(X.replace(/%25/g,"%2525")):decodeURIComponent(X):""};
hJ=function(X,t,G){return typeof X==="string"?(X=encodeURI(X).replace(t,fyY),G&&(X=X.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),X):null};
fyY=function(X){X=X.charCodeAt(0);return"%"+(X>>4&15).toString(16)+(X&15).toString(16)};
itJ=/[#\/\?@]/g;vHB=/[#\?:]/g;L$h=/[#\?]/g;xte=/[#\?@]/g;ayS=/#/g;_.S2=function(X,t){this.count_=this.keyMap_=null;this.encodedQuery_=X||null;this.JSC$9963_ignoreCase_=!!t};
_.qg=function(X){X.keyMap_||(X.keyMap_=new Map,X.count_=0,X.encodedQuery_&&rQY(X.encodedQuery_,function(t,G){X.add(eH(t),G)}))};
_.H=_.S2.prototype;_.H.getCount=function(){_.qg(this);return this.count_};
_.H.add=function(X,t){_.qg(this);this.encodedQuery_=null;X=CG(this,X);var G=this.keyMap_.get(X);G||this.keyMap_.set(X,G=[]);G.push(t);this.count_+=1;return this};
_.H.remove=function(X){_.qg(this);X=CG(this,X);return this.keyMap_.has(X)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(X).length,this.keyMap_.delete(X)):!1};
_.H.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.H.isEmpty=function(){_.qg(this);return this.count_==0};
_.H.containsKey=function(X){_.qg(this);X=CG(this,X);return this.keyMap_.has(X)};
_.H.containsValue=function(X){var t=this.getValues();return _.Eh(t,X)};
_.H.forEach=function(X,t){_.qg(this);this.keyMap_.forEach(function(G,y){G.forEach(function(w){X.call(t,w,y,this)},this)},this)};
_.H.getKeys=function(){_.qg(this);for(var X=Array.from(this.keyMap_.values()),t=Array.from(this.keyMap_.keys()),G=[],y=0;y<t.length;y++)for(var w=X[y],z=0;z<w.length;z++)G.push(t[y]);return G};
_.H.getValues=function(X){_.qg(this);var t=[];if(typeof X==="string")this.containsKey(X)&&(t=t.concat(this.keyMap_.get(CG(this,X))));else{X=Array.from(this.keyMap_.values());for(var G=0;G<X.length;G++)t=t.concat(X[G])}return t};
_.H.set=function(X,t){_.qg(this);this.encodedQuery_=null;X=CG(this,X);this.containsKey(X)&&(this.count_-=this.keyMap_.get(X).length);this.keyMap_.set(X,[t]);this.count_+=1;return this};
_.H.get=function(X,t){if(!X)return t;X=this.getValues(X);return X.length>0?String(X[0]):t};
_.M0P=function(X,t,G){X.remove(t);G.length>0&&(X.encodedQuery_=null,X.keyMap_.set(CG(X,t),_.aV(G)),X.count_+=G.length)};
_.S2.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var X=[],t=Array.from(this.keyMap_.keys()),G=0;G<t.length;G++){var y=t[G],w=_.ww(y);y=this.getValues(y);for(var z=0;z<y.length;z++){var B=w;y[z]!==""&&(B+="="+_.ww(y[z]));X.push(B)}}return this.encodedQuery_=X.join("&")};
_.S2.prototype.clone=function(){var X=new _.S2;X.encodedQuery_=this.encodedQuery_;this.keyMap_&&(X.keyMap_=new Map(this.keyMap_),X.count_=this.count_);return X};
var CG=function(X,t){t=String(t);X.JSC$9963_ignoreCase_&&(t=t.toLowerCase());return t},lyh=function(X,t){t&&!X.JSC$9963_ignoreCase_&&(_.qg(X),X.encodedQuery_=null,X.keyMap_.forEach(function(G,y){var w=y.toLowerCase();
y!=w&&(this.remove(y),_.M0P(this,w,G))},X));
X.JSC$9963_ignoreCase_=t};
_.S2.prototype.extend=function(X){for(var t=0;t<arguments.length;t++)RKq(arguments[t],function(G,y){this.add(y,G)},this)};var KG=function(X,t){JJ.call(this);for(var G=0,y;y=uOh[G];G++)if(y in X&&!/^https?:\/\//.test(X[y]))throw Error("Ra`"+X[y]+"`"+y);this.cfg_=X;this.name=this.cfg_.cn||Iyq();this.JSC$9958_domHelper_=t||pD();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.AL(this);X.lpu=X.lpu||cQ4(this.JSC$9958_domHelper_.getWindow().location.href)+"/robots.txt";X.ppu=X.ppu||cQ4(X.pu||"")+"/robots.txt";dE[this.name]=this;UBB(window,"unload",X04)||mf(window,"unload",X04)};
_.sx(KG,JJ);var $dh=RegExp("^%*tp$"),tg4=RegExp("^%+tp$");_.H=KG.prototype;_.H.connectionDelay_=null;_.H.peerWindowDeferred_=null;_.H.transport_=null;_.H.state_=1;_.H.isConnected=function(){return this.state_==2};
_.H.peerWindowObject_=null;_.H.iframeElement_=null;_.H.connect=function(X){this.connectCb_=X||_.ra;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Dtq(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.H.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9958_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var X=this.iframeElement_.contentWindow;X||(X=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=X}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$9958_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new kP(this,this.cfg_.ph,this.JSC$9958_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()()};
_.H.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Vs(this.transport_);this.connectCb_=this.transport_=null;_.Vs(this.connectionDelay_);this.connectionDelay_=null};
_.H.send=function(X,t){if(this.isConnected()){try{var G=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(w){G=!1}if(G){_.$h(t)&&(t=(0,_.v6)(t));G=this.transport_;var y=G.send;$dh.test(X)&&(X="%"+X);X=X.replace(/[%:|]/g,encodeURIComponent);y.call(G,X,t)}else this.close()}};
_.H.xpcDeliver=function(X,t,G){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.rT)(this.xpcDeliver,this,X,t,G));else if(rWt(this,G)&&!this.isDisposed()&&this.state_!=3)if(X&&X!="tp")this.isConnected()&&(X=X.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),X=tg4.test(X)?X.substring(1):X,X=this.getService(X,t))&&(t=F$J(t,X.objectPayload),t!=null&&X.callback(t));else switch(X=this.transport_,G=pm4(t),t=G[1],G[0]){case "SETUP_ACK":Ute(X,1);X.setupAckReceived_.fired_||X.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":X.protocolVersion_==2&&(Ute(X,2),X.setupAckReceived_.fired_||X.setupAckReceived_.callback(!0));break;case "SETUP":Ute(X,1);EH4(X,1);break;case "SETUP_NTPV2":X.protocolVersion_==2&&(G=X.peerProtocolVersion_,Ute(X,2),EH4(X,2),G!=1&&X.peerEndpointId_==null||X.peerEndpointId_==t||PmY(X),X.peerEndpointId_=t)}};
var W$R=function(X){var t=X.cfg_.role;return typeof t==="number"?t:window.parent==X.peerWindowObject_?1:0},rWt=function(X,t){var G=X.cfg_.ph;
return _.JA(t==null?"":String(t))||_.JA(G==null?"":String(G))||t==X.cfg_.ph};
KG.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete dE[this.name];_.Vs(this.peerLoadHandler_);delete this.peerLoadHandler_;KG.superClass_.disposeInternal.call(this)};
var X04=function(){for(var X in dE)_.Vs(dE[X])},dE={};var yf4=function(X,t){this.JSC$9972_win=X;this.allowAdsHttpEndpoint=t;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$9972_domHelper=pD(X);this.scrollManager=new eKe(X);this.accessibilityManager=new nHJ(X);Ghz(this)},Ghz=function(X){var t=function(){X.allowAdsPopup&&X.allowAdsPopup.style.setProperty("display","none","important");
X.wallElement.style.setProperty("display","","important");V0Y(X.accessibilityManager);dtP(X.accessibilityManager,X.wallElement.querySelector(".fc-dialog-container"),!1,!1,X.wallElement.querySelector(".fc-button-whitelist"));X.scrollManager.enableScrolling()};
X.allowAdsPopup=X.JSC$9972_domHelper.JSC$9256_createDom("DIV",{"class":"fc-whitelist-root"});X.allowAdsPopup.style.setProperty("display","none","important");X.JSC$9972_domHelper.appendChild(X.JSC$9972_domHelper.JSC$9254_document_.body,X.allowAdsPopup);var G=X.JSC$9972_domHelper.JSC$9256_createDom("DIV",{"class":"fc-dialog-overlay"});X.JSC$9972_domHelper.appendChild(X.allowAdsPopup,G);var y=X.JSC$9972_domHelper.JSC$9256_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:t});X.JSC$9972_domHelper.appendChild(X.allowAdsPopup,
y);G=X.JSC$9972_domHelper.JSC$9256_createDom("IFRAME");G.className="fc-whitelist-dialog";G.frameBorder="0";G.id="fc-whitelist-iframe";G.tabIndex="0";_.wq(G,X.allowAdsHttpEndpoint);X.JSC$9972_domHelper.appendChild(y,G);y={};y.pu=_.Nx(X.allowAdsHttpEndpoint).toString();y.tp=1;y.cn="fc-whitelist-channel";y.ifrid=G.id;y.osh=!0;X.allowAdsCrossPageChannel=new KG(y);X.allowAdsCrossPageChannel.registerService("close",t);X.allowAdsCrossPageChannel.registerService("refresh",function(){X.JSC$9972_win.location.reload()});
X.allowAdsCrossPageChannel.registerService("resize",function(w){if(w){var z=X.allowAdsPopup.querySelector(".fc-whitelist-dialog");w.width&&z.style.setProperty("width",w.width,"important");w.height&&z.style.setProperty("height",w.height,"important")}},!0);
X.allowAdsCrossPageChannel.connect()};
yf4.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$9972_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Op=window,uE=document,w0B=Op.location,z8h=function(){},HYJ=/\[native code\]/,QT=function(X,t,G){return X[t]=X[t]||G},oS4=function(X){X=X.sort();
for(var t=[],G=void 0,y=0;y<X.length;y++){var w=X[y];w!=G&&t.push(w);G=w}return t},I6=function(){var X;
if((X=Object.create)&&HYJ.test(X))X=X(null);else{X={};for(var t in X)X[t]=void 0}return X},We=QT(Op,"gapi",{});var ce={};ce=QT(Op,"___jsl",I6());QT(ce,"I",0);QT(ce,"hel",10);var JfB=function(){var X=w0B.href;if(ce.dpo)var t=ce.h;else{t=ce.h;var G=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),y=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(X=X&&(G.exec(X)||y.exec(X)))try{t=decodeURIComponent(X[2])}catch(w){}}return t},Bnh=function(X){var t=QT(ce,"PQ",[]);
ce.PQ=[];var G=t.length;if(G===0)X();else for(var y=0,w=function(){++y===G&&X()},z=0;z<G;z++)t[z](w)},nSo=function(X){return QT(QT(ce,"H",I6()),X,I6())};var pG=function(X){this.JSC$9974_obj_=X};
pG.prototype.value=function(){return this.JSC$9974_obj_};
pG.prototype.getWidth=function(){return this.JSC$9974_obj_.width};
pG.prototype.getHeight=function(){return this.JSC$9974_obj_.height};
pG.prototype.getStyle=function(){return this.JSC$9974_obj_.style};var Vgz=function(X){this.JSC$9977_obj_=X||{}};
_.H=Vgz.prototype;_.H.value=function(){return this.JSC$9977_obj_};
_.H.setUrl=function(X){this.JSC$9977_obj_.url=X;return this};
_.H.getUrl=function(){return this.JSC$9977_obj_.url};
_.H.getStyle=function(){return this.JSC$9977_obj_.style};
_.H.getId=function(){return this.JSC$9977_obj_.id};
_.H.getContext=function(){return this.JSC$9977_obj_.context};
var bYo=function(X){X.JSC$9977_obj_.attributes=X.JSC$9977_obj_.attributes||{};return new pG(X.JSC$9977_obj_.attributes)};var kht=function(){Vgz.apply(this,arguments)};
_.S(kht,Vgz);var ddt=QT(ce,"perf",I6());QT(ddt,"g",I6());var e8q=QT(ddt,"i",I6());QT(ddt,"r",[]);I6();I6();var gSq=function(X,t,G){t&&t.length>0&&(t=j2S(t),G&&G.length>0&&(t+="___"+j2S(G)),t.length>28&&(t=t.substr(0,28)+(t.length-28)),G=t,t=QT(e8q,"_p",I6()),QT(t,G,I6())[X]=(new Date).getTime(),t=ddt.r,typeof t==="function"?t(X,"_p",G):t.push([X,"_p",G]))},j2S=function(X){return X.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var F64=I6(),Tnz=[],rE=function(X){throw Error("Ua`"+X);};
Tnz.push(["jsl",function(X){for(var t in X)if(Object.prototype.hasOwnProperty.call(X,t)){var G=X[t];typeof G=="object"?ce[t]=QT(ce,t,[]).concat(G):QT(ce,t,G)}if(t=X.u)X=QT(ce,"us",[]),X.push(t),(t=/^https:(.*)$/.exec(t))&&X.push("http:"+t[1])}]);
var Aft=/^(\/[a-zA-Z0-9_\-]+)+$/,YaY=[/\/amp\//,/\/amp$/,/^\/amp$/],s2q=/^[a-zA-Z0-9\-_\.,!]+$/,Ddt=/^gapi\.loaded_[0-9]+$/,Sae=/^[a-zA-Z0-9,._-]+$/,CvJ=function(X,t,G,y,w){var z=X.split(";"),B=z.shift(),V=F64[B],b=null;V?b=V(z,t,G,y):rE("no hint processor for: "+B);b||rE("failed to generate load url");t=b;G=t.match(h8e);(y=t.match(ZYq))&&y.length===1&&qaY.test(t)&&G&&G.length===1||rE("failed sanity: "+X);try{X="?";if(w&&w.length>0){zB(w);var e=w.join(",");b=b+"?le="+e;X="&"}if(ce.rol){var g=ce.ol;
g&&g.length&&(b=""+b+X+"ol="+g.length)}}catch(F){}return b},uJo=function(X,t,G,y){X=K64(X);
Ddt.test(G)||rE("invalid_callback");t=OYR(t);y=y&&y.length?OYR(y):null;var w=function(z){return encodeURIComponent(z).replace(/%2C/g,",")};
return[encodeURIComponent(X.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",w(X.version),"/m=",w(t),y?"/exm="+w(y):"","/rt=j/sv=1/d=1/ed=1",X.activeMods?"/am="+w(X.activeMods):"",X.resourceSig?"/rs="+w(X.resourceSig):"",X.zcms?"/t="+w(X.zcms):"","/cb=",w(G)].join("")},K64=function(X){X.charAt(0)!=="/"&&rE("relative path");
for(var t=X.substring(1).split("/"),G=[];t.length;){X=t.shift();if(!X.length||X.indexOf(".")==0)rE("empty/relative directory");else if(X.indexOf("=")>0){t.unshift(X);break}G.push(X)}X={};for(var y=0,w=t.length;y<w;++y){var z=t[y].split("="),B=decodeURIComponent(z[0]),V=decodeURIComponent(z[1]);z.length==2&&B&&V&&(X[B]=X[B]||V)}t="/"+G.join("/");Aft.test(t)||rE("invalid_prefix");G=0;for(y=YaY.length;G<y;++G)YaY[G].test(t)&&rE("invalid_prefix");G=Q2q(X,"k",!0);y=Q2q(X,"am");w=Q2q(X,"rs");X=Q2q(X,"t");
return{pathPrefix:t,version:G,activeMods:y,resourceSig:w,zcms:X}},OYR=function(X){for(var t=[],G=0,y=X.length;G<y;++G){var w=X[G].replace(/\./g,"_").replace(/-/g,"_");
Sae.test(w)&&t.push(w)}return t.join(",")},Q2q=function(X,t,G){X=X[t];
!X&&G&&rE("missing: "+t);if(X){if(s2q.test(X))return X;rE("invalid: "+t)}return null},qaY=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,ZYq=/\/cb=/g,h8e=/\/\//g;
F64.m=function(X,t,G,y){(X=X[0])||rE("missing_hint");return"https://apis.google.com"+uJo(X,t,G,y)};
var I1q=decodeURI("%73cript"),W64=/^[-+_0-9\/A-Za-z]+={0,2}$/,cfq=function(X,t){for(var G=[],y=0;y<X.length;++y){var w=X[y],z;if(z=w){a:{for(z=0;z<t.length;z++)if(t[z]===w)break a;z=-1}z=z<0}z&&G.push(w)}return G},p0B=function(){var X=ce.nonce;
return X!==void 0?X&&X===String(X)&&X.match(W64)?X:ce.nonce=null:uE.querySelector?(X=uE.querySelector("script[nonce]"))?(X=X.nonce||X.getAttribute("nonce")||"",X&&X===String(X)&&X.match(W64)?ce.nonce=X:ce.nonce=null):null:null},Pve=function(X){if(uE.readyState!="loading")rfJ(X);
else{var t=p0B(),G="";t!==null&&(G=' nonce="'+t+'"');X="<"+I1q+' src="'+encodeURI(X)+'"'+G+"></"+I1q+">";uE.write(Nnq?Nnq.createHTML(X):X)}},rfJ=function(X){var t=uE.createElement(I1q);
t.setAttribute("src",Nnq?Nnq.createScriptURL(X):X);X=p0B();X!==null&&t.setAttribute("nonce",X);t.async="true";(X=uE.getElementsByTagName(I1q)[0])?X.parentNode.insertBefore(t,X):(uE.head||uE.body||uE.documentElement).appendChild(t)},Udq=function(X,t,G){ESR(function(){var y=t===JfB()?QT(We,"_",I6()):I6();
y=QT(nSo(t),"_",y);X(y)},G)},XBh=function(X,t){var G=t||{};
typeof t=="function"&&(G={},G.callback=t);var y=(t=G)&&t._c;if(y)for(var w=0;w<Tnz.length;w++){var z=Tnz[w][0],B=Tnz[w][1];B&&Object.prototype.hasOwnProperty.call(y,z)&&B(y[z],X,t)}t=[];X?t=X.split(":"):G.features&&(t=G.features);if(!(X=G.h)&&(X=JfB(),!X))throw Error("Va");mdq(t||[],G,X)},mdq=function(X,t,G){X=oS4(X)||[];
var y=t.callback,w=t.config,z=t.timeout,B=t.ontimeout,V=t.onerror,b=void 0;typeof V=="function"&&(b=V);var e=null,g=!1;if(z&&!B||!z&&B)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";V=QT(nSo(G),"r",[]).sort();var F=QT(nSo(G),"L",[]).sort(),T=ce.le||[],D=[].concat(V),h=function(l,R){if(g)return 0;Op.clearTimeout(e);F.push.apply(F,u);var L=((We||{}).config||{}).update;L?L(w):w&&QT(ce,"cu",[]).push(w);if(R){gSq("me0",l,D);try{Udq(R,G,b)}finally{gSq("me1",l,D)}}return 1};
z>0&&(e=Op.setTimeout(function(){g=!0;B()},z));
var u=cfq(X,F);if(u.length){u=cfq(X,V);var W=QT(ce,"CP",[]),c=W.length;W[c]=function(l){if(!l)return 0;gSq("ml1",u,D);var R=function(x){W[c]=null;h(u,l)&&Bnh(function(){y&&y();x()})},L=function(){var x=W[c+1];
x&&x()};
c>0&&W[c-1]?W[c]=function(){R(L)}:R(L)};
if(u.length){var P="loaded_"+ce.I++;We[P]=function(l){W[c](l);We[P]=null};
X=CvJ(G,u,"gapi."+P,V,T);V.push.apply(V,u);gSq("ml0",u,D);t.sync||Op.___gapisync?Pve(X):rfJ(X)}else W[c](z8h)}else h(u)&&y&&y()},R8q;
var iYS=null,L6e=_.tA.trustedTypes;if(L6e&&L6e.createPolicy){try{iYS=L6e.createPolicy("goog#gapi",{createHTML:lc6,createScript:lc6,createScriptURL:lc6})}catch(X){_.tA.console&&_.tA.console.error(X.message)}R8q=iYS}else R8q=iYS;var Nnq=R8q,ESR=function(X,t){if(ce.hee&&ce.hel>0)try{return X()}catch(G){t&&t(G),ce.hel--,XBh("debug_error",function(){try{window.___jsl.hefn(G)}catch(y){throw G;}})}else try{return X()}catch(G){throw t&&t(G),G;
}},vS4=We.load;
vS4&&QT(ce,"ol",[]).push(vS4);We.load=function(X,t){return ESR(function(){return XBh(X,t)})};var pxw;var l1h=function(X,t){var G=G||[];this.serviceId_=X;this.moduleId_=t||null;this.dependencies_=[];a1Y(this,G)};
l1h.prototype.toString=function(){return this.serviceId_};
l1h.prototype.getModuleId=function(){return this.moduleId_};
var a1Y=function(X,t){var G=!1;G=G===void 0?!1:G;X.dependencies_=X.dependencies_.concat(t);if(G){if(!X.moduleId_)throw Error("Wa`"+X.serviceId_);t.map(function(y){return y.getModuleId()}).forEach(function(y){rts(function(w){w.addExtraEdge(X.moduleId_,y)})})}};var EeA=new l1h("MpJwZc","MpJwZc");var m8_=new _.I8("a"),U8Y=function(X,t,G){_.W6.call(this,X,t);this.node=t;this.kind=G};
_.S(U8Y,_.W6);var xd4=function(){this.JSC$9990_keys_={};this.urlPrefix_="";this.JSC$9990_queryData_={}};
xd4.prototype.toString=function(){var X=this.urlPrefix_+f1t(this),t=_.Ks(this.JSC$9990_queryData_),G="";t!=""&&(G="?"+t);return X+G};
var Mge=function(X){X=Ng(X,"md");return!!X&&X!=="0"},f1t=function(X){var t=[],G=(0,_.rT)(function(y){this.JSC$9990_keys_[y]!==void 0&&t.push(y+"="+this.JSC$9990_keys_[y])},X);
Mge(X)?(G("md"),G("k"),G("ck"),G("am"),G("rs"),G("gssmodulesetproto"),G("slk"),G("dti")):(G("sdch"),G("k"),G("ck"),G("am"),G("rt"),"d"in X.JSC$9990_keys_||Pe(X,"d","0"),G("d"),G("exm"),G("excm"),(X.JSC$9990_keys_.excm||X.JSC$9990_keys_.exm)&&t.push("ed=1"),G("im"),G("dg"),G("sm"),Ng(X,"br")!="1"&&Ng(X,"br")!="0"||G("br"),G("br-d"),Ng(X,"rb")=="1"&&G("rb"),Ng(X,"zs")!=="0"&&G("zs"),Xx4(X)!==""&&G("wt"),G("gssmodulesetproto"),G("ujg"),G("sp"),G("rs"),G("cb"),G("ee"),G("slk"),G("dti"),G("m"));return t.join("/")},
Ng=function(X,t){return X.JSC$9990_keys_[t]?X.JSC$9990_keys_[t]:null},Pe=function(X,t,G){G?X.JSC$9990_keys_[t]=G:delete X.JSC$9990_keys_[t]},$Jq=function(X,t){X.urlPrefix_=t},tH4=function(X,t){t&&t.length>0?(t.sort(),Pe(X,"exm",t.join(","))):Pe(X,"exm",null)},GAt=function(X,t){t&&t.length>0?(t.sort(),Pe(X,"excm",t.join(","))):Pe(X,"excm",null)},yt4=function(X){return(X=Ng(X,"m"))?X.split(","):[]},Xx4=function(X){switch(Ng(X,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},wxS=function(X,t){var G=Object.keys(t).filter(function(y){return!!Object.keys(t[y]).length}).map(function(y){var w=Object.keys(t[y]);
w.length>1&&w.sort();return y+":"+w.join(",")});
G.sort();Pe(X,"ee",G.join(";"))},KG_=function(X){var t=Ng(X,"ee");
if(!t)return{};X={};t=_.J(t.split(";"));for(var G=t.next();!G.done;G=t.next()){var y=_.J(G.value.split(":"));G=y.next().value;y=y.next().value;X[G]={};y=_.J(y.split(","));for(var w=y.next();!w.done;w=y.next())X[G][w.value]=!0}return X},zZR=function(X){delete X.JSC$9990_keys_.m;
delete X.JSC$9990_keys_.exm;delete X.JSC$9990_keys_.ed};
xd4.prototype.clone=function(){var X=new xd4;X.JSC$9990_keys_=Object.assign({},this.JSC$9990_keys_);X.urlPrefix_=this.urlPrefix_;X.JSC$9990_queryData_=Object.assign({},this.JSC$9990_queryData_);return X};
var Obf=function(X,t){t=t===void 0?!0:t;var G=Hs4(X),y=new xd4,w=_.VQ(G)[5];_.RH.forEach(ox4,function(B){var V=w.match("/"+B+"=([^/]+)");V&&Pe(y,B,V[1])});
var z="";z=X.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";$Jq(y,X.substr(0,X.indexOf(z)+z.length));if(!t)return y;(X=_.VQ(G)[6]||null)&&rQY(X,function(B,V){y.JSC$9990_queryData_[B]=V});
return y},Zbv=function(X){X=_.qJ(Hs4(X));
return X===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(X)?/\/k=/.test(X):!1},Hs4=function(X){return X.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?X.substr(65):X},ox4={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"},JtR=RegExp("^loaded_(g|h)?[_\\d]+$");_.Ep=function(X){this.JSC$10002_id_=X;this.opts={}};
_.Ep.prototype.JSC$10004_setLabel=function(X){this.label_=X||void 0;return this};
_.Ep.prototype.addUploadMetadata=function(X,t){var G=this.opts.data||{};G[X]=t;this.opts.data=G;return this};
var Bwq=function(X){var t=_.RH.filter(X.opts,function(G){return G!==null});
t=_.RH.isEmpty(t)?null:t;X=[X.JSC$10002_id_,X.label_,t];t=gJf(X);return X=X.slice(0,t+1)};
_.Ep.prototype.toString=function(){var X=Bwq(this);return"("+_.iG(X,function(t){return JSON.stringify(t)}).join(",")+")"};
_.Ep.prototype.getId=function(){return this.JSC$10002_id_};
_.Ep.prototype.getOptions=function(){return _.RH.clone(this.opts)};var Up=function(){_.Ep.call(this,"image-search")};
_.S(Up,_.Ep);Up.prototype.setSize=function(X){this.opts.imgsz=X;return this};
Up.prototype.JSC$10004_setLabel=function(X){_.Ep.prototype.JSC$10004_setLabel.call(this,X);return this};
Up.prototype.addUploadMetadata=function(X,t){_.Ep.prototype.addUploadMetadata.call(this,X,t);return this};var mp=function(){_.Ep.call(this,"maps")};
_.S(mp,_.Ep);mp.prototype.setZoom=function(X){this.opts.zoom=X;return this};
mp.prototype.JSC$10004_setLabel=function(X){_.Ep.prototype.JSC$10004_setLabel.call(this,X);return this};
mp.prototype.addUploadMetadata=function(X,t){_.Ep.prototype.addUploadMetadata.call(this,X,t);return this};_.R6=function(){_.Ep.call(this,"photos")};
_.S(_.R6,_.Ep);_.R6.prototype.JSC$10004_setLabel=function(X){_.Ep.prototype.JSC$10004_setLabel.call(this,X);return this};
_.R6.prototype.addUploadMetadata=function(X,t){_.Ep.prototype.addUploadMetadata.call(this,X,t);return this};var iE=function(){_.Ep.call(this,"url")};
_.S(iE,_.Ep);var nxz=function(){var X=new iE;X.opts.type="video";X.opts.site="youtube.com";return X};
iE.prototype.JSC$10004_setLabel=function(X){_.Ep.prototype.JSC$10004_setLabel.call(this,X);return this};
iE.prototype.addUploadMetadata=function(X,t){_.Ep.prototype.addUploadMetadata.call(this,X,t);return this};var LG=function(){_.Ep.call(this,"video-search")};
_.S(LG,_.Ep);var VHJ=function(){var X=new LG;X.opts.site="youtube.com";return X};
LG.prototype.JSC$10004_setLabel=function(X){_.Ep.prototype.JSC$10004_setLabel.call(this,X);return this};
LG.prototype.addUploadMetadata=function(X,t){_.Ep.prototype.addUploadMetadata.call(this,X,t);return this};var bs4=function(){_.Ep.call(this,"web")};
_.S(bs4,_.Ep);bs4.prototype.JSC$10004_setLabel=function(X){_.Ep.prototype.JSC$10004_setLabel.call(this,X);return this};
bs4.prototype.addUploadMetadata=function(X,t){_.Ep.prototype.addUploadMetadata.call(this,X,t);return this};var ve=function(){this.items_=[];this.opts={}},kAo=function(X){switch(X){case "image-search":return new Up;
case "maps":return new mp;case "photos":return new _.R6;case "url":return new iE;case "video-search":return new LG;case "web":return new bs4}return new _.Ep(X)};
ve.prototype.addView=function(X){this.items_.push(typeof X==="string"?kAo(X):X);return this};
var dJY=function(X){return"("+_.iG(X.items_,function(t){return t.toString()}).join(",")+")"};
ve.prototype.toString=function(){return dJY(this)};
ve.prototype.getViews=function(X,t){t=t===void 0?[]:t;for(var G=this.items_,y=0;y<G.length;y++){var w=G[y];w instanceof ve?w.getViews(X,t):w.getId()==X&&t.push(w)}return t};
ve.prototype.getOptions=function(){return _.RH.clone(this.opts)};var lf=function(X){this.basePickerUrl_=X||"https://docs.google.com/picker";this.nav_=new ve};
lf.prototype.nav_=null;lf.prototype.addView=function(X){this.nav_.addView(X);return this};
lf.prototype.getBaseUrl=function(){return this.basePickerUrl_};
lf.prototype.getViews=function(X){return this.nav_.getViews(X)};
_.eZ4=function(X,t){X.callback_=t;return X};var jut=new Map;jut.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");jut.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");jut.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var gx4=new Set;gx4.add("application/vnd.google-apps.kix");gx4.add("application/vnd.google-apps.ritz");gx4.add("application/vnd.google-apps.punch");var KUq=function(X,t,G){var y=G&&_.aQ(G,1);G=FUR(G);var w=X[0].getId();switch(_.lz(w,2)){case 13:return Twz(X,t,y,G);case 3:return Ate(X,t,y,G);case 10:return YcP(X,t,y,G);case 27:return YcP(X,t,y,G);case 12:return suq(X,t);case 2:return DJq(X,t,y,G);case 5:return Sc4(X,t,y,G);case 9:return hZo(X,t,y,G);case 6:return Zso(X,t,y,G);case 25:return qcY(X,t,y,G);case 1:return _.p9(X[0],$x4,26)?CFS(X,t,y,G):YcP(X,t,y,G);default:return{}}},Zso=function(X,t,G,y){X=X.map(function(w){return{id:w.getId().getId(),
serviceId:"youtube",name:w.getName(),description:_.aQ(w,3),type:a6(w),lastEditedUtc:_.XtY(_.Co(w,_.$l,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:w.getUrl(),embedUrl:_.aQ(w,13),thumbnails:lE(jo(w))}});
return{action:t,docs:X,viewToken:y,view:G||"youtube",v2Translated:!0}},DJq=function(X,t,G,y){var w=X.map(function(z){var B=z.getId().getId(),V=_.aQ(z,7),b=z.getName(),e=a6(z),g=_.XtY(_.Co(z,_.$l,12)).getTime(),F=z.getUrl(),T=Number(bSE(z)),D=_.aQ(z,3),h=_.aQ(z,11),u=lE(jo(z));
var W=_.Co(z,gY,21);W=_.iz(W,1);var c=_.Co(z,gY,21);c=_.aQ(c,10);var P=_.aQ(z,13);var l=_.Co(z,gY,21);l=_.iz(l,9);var R=_.Co(z,gY,21);R=_.aQ(R,11);B={id:B,serviceId:"docs",mimeType:V,name:b,type:e,lastEditedUtc:g,url:F,sizeBytes:T,description:D,iconUrl:h,thumbnails:u,isShared:W,downloadUrl:c,embedUrl:P,copyable:l,resourceKey:R};V=_.Co(z,gY,21);_.iz(V,12)&&(B.uploadState="success",B.isNew=!0);V=_.Co(z,gY,21);_.p9(V,k9,3)&&(z=_.Co(z,gY,21),z=_.Co(z,k9,3),_.p9(z,VI,2)&&(V=vp(z.getDuration().getSeconds()),
b=z.getDuration(),b=_.jM(b,2),B.duration=V+b/1E9),B.aspectRatio=z.getAspectRatio());return B});
return{action:t,docs:w,viewToken:y,view:G||"all",extraUserInputs:Osq(X),v2Translated:!0}},Sc4=function(X,t,G,y){X=X.map(function(w){var z=_.Co(w,BNB,15);
z=_.Co(z,bi,1);I7(w,10,bi,z);return{id:w.getId().getId(),serviceId:"web",mimeType:_.aQ(w,7),name:w.getName(),type:a6(w),url:w.getUrl(),description:_.aQ(w,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lE(jo(w))}});
return{action:t,docs:X,viewToken:y,view:G||"image-search",v2Translated:!0}},hZo=function(X,t,G,y){X=X.map(function(w){return{serviceId:"url",
name:jo(w)[0].getUrl().split("/").pop(),type:a6(w),mimeType:_.aQ(w,7),url:w.getUrl(),description:_.aQ(w,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lE(jo(w))}});
return{action:t,docs:X,viewToken:y,view:G||"url",v2Translated:!0}},CFS=function(X,t,G,y){X=X.map(function(w){return{id:w.getId().getId(),
serviceId:"picasa",name:w.getName(),type:a6(w),description:_.aQ(w,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lE(jo(w))}});
return{action:t,docs:X,viewToken:y,view:G||"webcam",v2Translated:!0}},YcP=function(X,t,G,y){return{action:t,
docs:X.map(u3J),viewToken:y,view:QuR(G||"upload",X),extraUserInputs:Osq(X),v2Translated:!0}},QuR=function(X,t){return t.some(function(G){var y;
return((y=_.Co(G,dY,30))==null?void 0:_.lz(y,3))===9})?X+"/gmailphotos":X},Ate=function(X,t,G,y){var w=X.map(function(z){var B={id:z.getId().getId(),
serviceId:"picasa",mimeType:_.aQ(z,7),name:z.getName(),type:a6(z),lastEditedUtc:_.XtY(_.Co(z,_.$l,12)).getTime(),url:z.getUrl(),sizeBytes:Number(bSE(z)),description:_.aQ(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lE(jo(z)),mediaKey:z.getId().getId(),parentId:_.aQ(z,4)},V,b=(V=_.Co(z,yMt,18))==null?void 0:_.Co(V,GYP,3);b&&(B.latitude=vH(b,1),B.longitude=vH(b,2));var e;z=(e=_.Co(z,yMt,18))==null?void 0:L9(e,6);e=z!=null?vp(z):void 0;e&&(B.version=
e);return B});
return{action:t,docs:w,viewToken:y,view:G||"photos",extraUserInputs:Osq(X),v2Translated:!0}},Twz=function(X,t,G,y){X=X.map(function(w){return{id:w.getId().getId(),
serviceId:"et",name:jo(w)[0].getUrl().split("/").pop(),description:_.aQ(w,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lE(jo(w),"etjpg")}});
return{action:t,docs:X,viewToken:y,view:G||"et",v2Translated:!0}},qcY=function(X,t,G,y){X=X.map(function(w){var z=w.getId().getId(),B=y["2"];
return{id:z,serviceId:B.type!=="gmail_themes"&&B.parent==="6226252643674576769"?"picasa":"static_themes",name:w.getName(),mimeType:_.aQ(w,7),type:a6(w),description:_.aQ(w,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:w.getUrl(),embedUrl:w.getUrl(),thumbnails:lE(jo(w))}});
return{action:t,docs:X,viewToken:y,view:G||"photos",v2Translated:!0}},suq=function(X,t){X=X.map(function(G){var y=_.Co(G,tBo,27);
y=_.wN(y,1,_.W4,_.eM())[0];return{id:G.getId().getId(),serviceId:"contacts",mimeType:_.aQ(G,7),name:G.getName(),description:_.aQ(G,3),url:"mailto:"+y,thumbnail:[{url:_.aQ(G,11)}],email:y}});
return{action:t,docs:X,view:"contacts",v2Translated:!0}},FUR=function(X){if(!X)return{};
var t=_.aQ(X,3);t=t&&JSON.parse(t)||{};return{0:_.aQ(X,1),1:_.aQ(X,2),2:t}},lE=function(X,t){t=t===void 0?"":t;
if(!X.length)return null;t=="etjpg"&&(X=X.filter(function(G){return G.getUrl().includes("w1200-h300")}));
return X.map(function(G){return{url:G.getUrl(),height:G.getHeight(),width:G.getWidth(),type:t}})},Osq=function(X){return{isAttachment:X.some(function(t){return _.iz(t,31)})}},u3J=function(X){var t,G={id:(t=X.getId())==null?void 0:t.getId(),
serviceId:Iuq(X),mimeType:_.aQ(X,7),name:X.getName(),type:a6(X),sizeBytes:Number(bSE(X)),description:_.aQ(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lE(jo(X)),isNew:!0};if(t=_.Co(X,dY,30)){G.dataUrl=_.aQ(t,1)||null;a:{var y=_.Co(X,dY,30);switch(_.lz(y,3)){case 9:y=_.Xy(y,ogh,2,eo);y={remoteRefs:y&&_.aQ(y,1)};break a;case 10:case 15:y=_.Xy(y,H1q,4,eo);var w=jo(X);y={photo_id:y&&_.aQ(y,1),media_key:X.getId().getId(),media_type:_.lz(X,6)===1?1:2,image_url:w&&
w[0].getUrl(),width:w&&String(w[0].getWidth()),height:w&&String(w[0].getHeight())};break a}y=null}G.uploadMetadata=y;G.uploadId=_.aQ(t,9)||null;G.uploadState=WUS(t)||null}(y=t&&_.Xy(t,H1q,4,eo))&&(G.id=_.aQ(y,1));(y=t&&_.Xy(t,JMh,5,eo))&&(G.contentId=_.aQ(y,1));(y=t&&_.Xy(t,wtB,7,eo))&&(G.contentId=_.aQ(y,1));(y=t&&_.Xy(t,ztJ,6,eo))&&(G.contentId=_.aQ(y,1));(t==null?void 0:_.lz(t,3))===1&&(G.mediaKey=X.getId().getId());return G},Iuq=function(X){var t;
switch(((t=_.Co(X,dY,30))==null?void 0:_.lz(t,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},a6=function(X){switch(_.lz(X,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(X,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},WUS=function(X){switch(X==null?void 0:_.lz(X,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 NwR,ctS,pxz,rtY;_.PF4=function(X,t){var G=t||{};t=G.document||document;var y=_.Nx(X).toString(),w=(new mP(t)).createElement("SCRIPT"),z={script_:w,timeout_:void 0},B=new Be(ctS,z),V=null,b=G.timeout!=null?G.timeout:5E3;b>0&&(V=window.setTimeout(function(){pxz(w,!0);B.errback(new rtY(1,"Timeout reached for loading script "+y))},b),z.timeout_=V);
w.onload=w.onreadystatechange=function(){w.readyState&&w.readyState!="loaded"&&w.readyState!="complete"||(pxz(w,G.cleanupWhenDone||!1,V),B.callback(null))};
w.onerror=function(){pxz(w,!0,V);B.errback(new rtY(0,"Error while loading script "+y))};
z=G.attributes||{};_.RH.extend(z,{type:"text/javascript",charset:"UTF-8"});i4Y(w,z);_.Vb(w,X);NwR(t).appendChild(w);return B};
NwR=function(X){var t=Qs("HEAD",X);return t&&t.length!==0?t[0]:X.documentElement};
ctS=function(){if(this&&this.script_){var X=this.script_;X&&X.tagName=="SCRIPT"&&pxz(X,!0,this.timeout_)}};
pxz=function(X,t,G){G!=null&&_.tA.clearTimeout(G);X.onload=function(){};
X.onerror=function(){};
X.onreadystatechange=function(){};
t&&window.setTimeout(function(){_.uf(X)},0)};
rtY=function(X,t){var G="Jsloader error (code #"+X+")";t&&(G+=": "+t);_.Xv.call(this,G);this.code=X};
_.sx(rtY,_.Xv);var Exq=_.Vc(["https://apis.google.com/js/api.js"]),UJz=_.sw(Exq),LUo=function(X,t){var G=!1,y=mJB(X,t).then(function(z){G=!0;return z}),w=_.jHq(5E3).then(function(){return G?mJB(X,t):RZ4(t).then(function(z){return isS(z,X)})});
return w1t([y,w])},mJB=function(X,t){return vxJ(t).then(function(G){return isS(G,X)})},isS=function(X,t){var G=_.y0(t,"gapi.")?t.slice(5):t;
return X[G]?_.qY(X[G]):new _.Kh(function(y,w){var z=ii(function(){w(Error("Ya"))},3E4);
X.load(t,{callback:function(){_.tA.clearTimeout(z);y(X[G])},
onerror:function(B){_.tA.clearTimeout(z);w(B)}})})},vxJ=function(X){return X.gapi&&X.gapi.load?_.qY(X.gapi):RZ4(X)},RZ4=function(X){return _.PF4(UJz,{document:X.document}).then(function(){return X.gapi})},auY=function(){};
auY.prototype.load=function(X,t){t=t===void 0?window:t;var G=Date.now();return LUo(X,t).then(function(y){var w=Date.now();return{library:y,loadStartMs:G,loadEndMs:w}},function(y){throw y instanceof Error?y:Error(String(y));
})};var xJV=function(){_.po.call(this);this.gapiLoader_=new auY;this.origin_=null;this.gapiPickerIframeResolver_=_.d5();this.gapiIframesResolver_=_.d5();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.S(xJV,_.po);var luP=function(X,t){var G=_.GA("gapi.iframes",t);return G?(X=Date.now(),_.qY({library:G,loadStartMs:X,loadEndMs:X})):X.gapiLoader_.load("gapi.iframes",t)},xJB=function(X,t,G,y,w,z){var B=!1;
B=B===void 0?!1:B;luP(X,v1(t.ownerDocument)).then(function(V){var b=V.library;X.gapiIframesResolver_.resolve(b);V=X.gapiPickerIframeResolver_;var e=V.resolve,g=B;g=g===void 0?!1:g;var F={};F["host-message-handler"]=G;X.hostMessageHandlerInternal_=F;var T=_.tW(y);T=_.tW(T);T=_.FS(_.gE(_.j2(new _.Vf,T.scheme_),T.JSC$9962_domain_),T.JSC$9962_port_).toString();X.origin_=T;T=(new kht).setUrl(y);T.JSC$9977_obj_.where=t;T.JSC$9977_obj_.allowPost=g;T.JSC$9977_obj_.messageHandlers=F;g=_.GA("makeWhiteListIframesFilter",
b)([X.origin_]);T.JSC$9977_obj_.messageHandlersFilter=g;w!=null&&(T.JSC$9977_obj_.id=w);z!=null&&(T.JSC$9977_obj_.rpctoken=z);g=bYo(T);g.JSC$9974_obj_.style={display:"block","min-width":"100%",width:"1px"};g.JSC$9974_obj_.height="100%";bYo(T).value().allow="camera 'src' "+X.origin_;b=b.getContext().openChild(T.value());e.call(V,b)},function(V){X.gapiIframesResolver_.reject(V);
X.gapiPickerIframeResolver_.reject(V)});
return X.gapiPickerIframeResolver_.promise},fuh=function(X,t){return _.m9([X.gapiIframesResolver_.promise,
X.gapiPickerIframeResolver_.promise]).then(function(G){var y=_.J(G);G=y.next().value;return(y=y.next().value)?y.send("picker-message-handler",t,void 0,_.GA("makeWhiteListIframesFilter",G)([X.origin_])):_.l$(Error("Za"))})};
xJV.prototype.disposeInternal=function(){MHS(this);_.po.prototype.disposeInternal.call(this)};
var MHS=function(X){X.gapiPickerIframeResolver_.promise.then(function(t){t&&(t.unregister("host-message-handler"),delete X.hostMessageHandlerInternal_["host-message-handler"])})};var Xz4=function(){this.JSC$10064_nextId=0};var tDe=function(X,t){switch(X.action){case "select-contacts":X=$1q(X.contacts);break;case "visibility":X=X.visible;var G=new T$;X=_.tl(G,1,7).setVisible(X);G={};G["iframe-command"]=X.serialize();X=G;break;default:X=null}return X?fuh(t,X):_.qY()},$1q=function(X){if(!X||X.length==0)return null;
var t=new T$;_.tl(t,1,11);var G=new Xz4;X.forEach(function(y){if(y.email){var w=new mZ;w=_.nV(w,2,y.name?y.name:y.email);var z=new tBo;y=_.YRh(z,1,_.QB,y.email,_.W4);y=_.Oi(w,27,y);w=new Mqe;z=":"+(G.JSC$10064_nextId++).toString(36);w=_.nV(w,1,z);w=_.tl(w,2,12);y=_.Oi(y,1,w)}else y=null;y&&I7(t,7,mZ,y)});
X={};X["iframe-command"]=t.serialize();return X};_.Gx4=function(){if(ZHV){var X=/Windows NT ([0-9.]+)/;return(X=X.exec(_.es()))?X[1]:"0"}return _.h$E?(X=/1[0|1][_.][0-9_.]+/,(X=X.exec(_.es()))?X[0].replace(/_/g,"."):"10"):NAJ?(X=/Android\s+([^\);]+)(\)|;)/,(X=X.exec(_.es()))?X[1]:""):Cnw||K7w||OHh?(X=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(X=X.exec(_.es()))?X[1].replace(/_/g,"."):""):""}();var xP;xP=function(X){return(X=X.exec(_.es()))?X[1]:""};
_.yGq=function(){if(_.Ox)return xP(/Firefox\/([0-9.]+)/);if(_.Z_||bt||svJ)return rsh;if(_.uz){if(_.IV()||_.kVv()){var X=xP(/CriOS\/([0-9.]+)/);if(X)return X}return xP(/Chrome\/([0-9.]+)/)}if(_.Xl&&!_.IV())return xP(/Version\/([0-9.]+)/);if(HgY||o0A){if(X=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.es()))return X[1]+"."+X[2]}else if(mO_)return(X=xP(/Android\s+([0-9.]+)/))?X:xP(/Version\/([0-9.]+)/);return""}();var wzo=function(){};
_.Aw(wzo);wzo.prototype.nextId_=0;_.fG=function(X){return":"+(X.nextId_++).toString(36)};var Mg=function(X){_.P6.call(this);this.JSC$10072_dom_=X||pD();this.JSC$10072_id_=null;this.inDocument_=!1;this.JSC$10072_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.sx(Mg,_.P6);Mg.prototype.idGenerator_=wzo.getInstance();Mg.prototype.getId=function(){return this.JSC$10072_id_||(this.JSC$10072_id_=_.fG(this.idGenerator_))};
Mg.prototype.getElement=function(){return this.JSC$10072_element_};
var XB=function(X){X.googUiComponentHandler_||(X.googUiComponentHandler_=new _.AL(X));return X.googUiComponentHandler_},zLS=function(X,t){if(X==t)throw Error("$a");
var G;if(G=t&&X.parent_&&X.JSC$10072_id_){G=X.parent_;var y=X.JSC$10072_id_;G=G.childIndex_&&y?_.RH.get(G.childIndex_,y)||null:null}if(G&&X.parent_!=t)throw Error("$a");X.parent_=t;Mg.superClass_.setParentEventTarget.call(X,t)};
Mg.prototype.setParentEventTarget=function(X){if(this.parent_&&this.parent_!=X)throw Error("ab");Mg.superClass_.setParentEventTarget.call(this,X)};
Mg.prototype.JSC$10074_createDom=function(){this.JSC$10072_element_=this.JSC$10072_dom_.createElement("DIV")};
Mg.prototype.render=function(X){Hbt(this,X)};
var Hbt=function(X,t,G){if(X.inDocument_)throw Error("bb");X.JSC$10072_element_||X.JSC$10074_createDom();t?t.insertBefore(X.JSC$10072_element_,G||null):X.JSC$10072_dom_.JSC$9254_document_.body.appendChild(X.JSC$10072_element_);X.parent_&&!X.parent_.inDocument_||X.enterDocument()};
_.H=Mg.prototype;_.H.decorate=function(X){if(this.inDocument_)throw Error("bb");if(X&&this.canDecorate(X)){this.wasDecorated_=!0;var t=_.aH(X);this.JSC$10072_dom_&&this.JSC$10072_dom_.JSC$9254_document_==t||(this.JSC$10072_dom_=pD(X));this.decorateInternal(X);this.enterDocument()}else throw Error("cb");};
_.H.canDecorate=function(){return!0};
_.H.decorateInternal=function(X){this.JSC$10072_element_=X};
_.H.enterDocument=function(){this.inDocument_=!0;o74(this,function(X){!X.inDocument_&&X.getElement()&&X.enterDocument()})};
_.H.exitDocument=function(){o74(this,function(X){X.inDocument_&&X.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.H.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);o74(this,function(X){X.dispose()});
!this.wasDecorated_&&this.JSC$10072_element_&&_.uf(this.JSC$10072_element_);this.parent_=this.model_=this.JSC$10072_element_=this.childIndex_=this.children_=null;Mg.superClass_.disposeInternal.call(this)};
_.H.getModel=function(){return this.model_};
_.H.addChild=function(X,t){var G=this.children_?this.children_.length:0;if(X.inDocument_&&(t||!this.inDocument_))throw Error("bb");if(G<0||G>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);X.parent_==this?(_.RH.set(this.childIndex_,X.getId(),X),_.vY(this.children_,X)):_.RH.add(this.childIndex_,X.getId(),X);zLS(X,this);_.T6f(this.children_,G,0,X);X.inDocument_&&this.inDocument_&&X.parent_==this?(t=this.getContentElement(),
(t.childNodes[G]||null)!=X.getElement()&&(X.getElement().parentElement==t&&t.removeChild(X.getElement()),G=t.childNodes[G]||null,t.insertBefore(X.getElement(),G))):t?(this.JSC$10072_element_||this.JSC$10074_createDom(),G=this.children_?this.children_[G+1]||null:null,Hbt(X,this.getContentElement(),G?G.JSC$10072_element_:null)):this.inDocument_&&!X.inDocument_&&X.JSC$10072_element_&&X.JSC$10072_element_.parentNode&&X.JSC$10072_element_.parentNode.nodeType==1&&X.enterDocument()};
_.H.getContentElement=function(){return this.JSC$10072_element_};
var o74=function(X,t){X.children_&&X.children_.forEach(t,void 0)};
Mg.prototype.removeChild=function(X,t){if(X){var G=typeof X==="string"?X:X.getId();X=this.childIndex_&&G?_.RH.get(this.childIndex_,G)||null:null;G&&X&&(_.RH.remove(this.childIndex_,G),_.vY(this.children_,X),t&&(X.exitDocument(),X.JSC$10072_element_&&_.uf(X.JSC$10072_element_)),zLS(X,null))}if(!X)throw Error("eb");return X};_.sx(ExA,PFv);_.sx(UJw,PFv);var JGJ;_.RH.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var BlP=function(X,t){t?X.setAttribute("role",t):X.removeAttribute("role")},$X=function(X,t,G){Array.isArray(G)&&(G=G.join(" "));
var y="aria-"+t;G===""||G==void 0?(JGJ||(G={},JGJ=(G.atomic=!1,G.autocomplete="none",G.dropeffect="none",G.haspopup=!1,G.live="off",G.multiline=!1,G.multiselectable=!1,G.orientation="vertical",G.readonly=!1,G.relevant="additions text",G.required=!1,G.sort="none",G.busy=!1,G.disabled=!1,G.hidden=!1,G.invalid="false",G)),G=JGJ,t in G?X.setAttribute(y,G[t]):X.removeAttribute(y)):X.setAttribute(y,G)};var n7t;_.t8=function(X,t,G){_.P6.call(this);this.target=X;this.handle=t||X;this.limits=G||new $9(NaN,NaN,NaN,NaN);this.JSC$10077_document_=_.aH(X);this.JSC$10077_eventHandler_=new _.AL(this);_.h6(this,this.JSC$10077_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;_.vj(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=n7t};
_.sx(_.t8,_.P6);n7t=_.tA.document&&_.tA.document.documentElement&&!!_.tA.document.documentElement.setCapture&&!!_.tA.document.releaseCapture;_.VDe=function(X,t){X.hysteresisDistanceSquared_=Math.pow(t,2)};
_.H=_.t8.prototype;_.H.setEnabled=function(X){this.enabled_=X};
_.H.disposeInternal=function(){_.t8.superClass_.disposeInternal.call(this);_.No(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10077_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10077_document_.releaseCapture();this.handle=this.target=null};
_.H.startDrag=function(X){var t=X.type=="mousedown";if(!this.enabled_||this.dragging_||t&&(X.event_.button!=0||_.h$E&&X.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Gu("start",this,X.clientX,X.clientY,X)))this.dragging_=!0,t&&X.preventDefault();else return;else t&&X.preventDefault();t=this.JSC$10077_document_;var G=t.documentElement,y=!this.useSetCapture_;this.JSC$10077_eventHandler_.listen(t,["touchmove","mousemove"],this.handleMove_,
{capture:y,passive:!1});this.JSC$10077_eventHandler_.listen(t,["touchend","mouseup"],this.endDrag,y);this.useSetCapture_?(G.setCapture(!1),this.JSC$10077_eventHandler_.listen(G,"losecapture",this.endDrag)):this.JSC$10077_eventHandler_.listen(v1(t),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10077_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,y);this.clientX=this.startX=X.clientX;this.clientY=this.startY=X.clientY;this.screenX=X.screenX;this.screenY=X.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=c1(pD(this.JSC$10077_document_))}};
_.H.endDrag=function(X,t){this.JSC$10077_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10077_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Gu("end",this,X.clientX,X.clientY,X,bbS(this,this.deltaX),kx4(this,this.deltaY),t||X.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.H.handleMove_=function(X){if(this.enabled_){var t=X.clientX-this.clientX,G=X.clientY-this.clientY;this.clientX=X.clientX;this.clientY=X.clientY;this.screenX=X.screenX;this.screenY=X.screenY;if(!this.dragging_){var y=this.startX-this.clientX,w=this.startY-this.clientY;if(y*y+w*w>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Gu("start",this,X.clientX,X.clientY,X)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(X);return}}G=d1h(this,t,G);t=G.x;G=G.y;this.dragging_&&this.dispatchEvent(new Gu("beforedrag",
this,X.clientX,X.clientY,X,t,G))&&(eL4(this,X,t,G),X.preventDefault())}};
var d1h=function(X,t,G){var y=c1(pD(X.JSC$10077_document_));t+=y.x-X.pageScroll.x;G+=y.y-X.pageScroll.y;X.pageScroll=y;X.deltaX+=t;X.deltaY+=G;return new _.LD(bbS(X,X.deltaX),kx4(X,X.deltaY))};
_.t8.prototype.onScroll_=function(X){var t=d1h(this,0,0);X.clientX=this.clientX;X.clientY=this.clientY;eL4(this,X,t.x,t.y)};
var eL4=function(X,t,G,y){X.target.style.left=G+"px";X.target.style.top=y+"px";X.dispatchEvent(new Gu("drag",X,t.clientX,t.clientY,t,G,y))},bbS=function(X,t){var G=X.limits;
X=isNaN(G.left)?null:G.left;G=isNaN(G.width)?0:G.width;return Math.min(X!=null?X+G:Infinity,Math.max(X!=null?X:-Infinity,t))},kx4=function(X,t){var G=X.limits;
X=isNaN(G.top)?null:G.top;G=isNaN(G.height)?0:G.height;return Math.min(X!=null?X+G:Infinity,Math.max(X!=null?X:-Infinity,t))};
_.t8.prototype.isDragging=function(){return this.dragging_};
var Gu=function(X,t,G,y,w,z,B){_.W6.call(this,X);this.clientX=G;this.clientY=y;this.browserEvent=w;this.left=z!==void 0?z:t.deltaX;this.top=B!==void 0?B:t.deltaY};
_.sx(Gu,_.W6);var y3=function(X){this.JSC$10084_map_=new Map;var t=arguments.length;if(t>1){if(t%2)throw Error("ka");for(var G=0;G<t;G+=2)this.set(arguments[G],arguments[G+1])}else X&&this.addAll(X)};
_.H=y3.prototype;_.H.getCount=function(){return this.JSC$10084_map_.size};
_.H.getValues=function(){return Array.from(this.JSC$10084_map_.values())};
_.H.getKeys=function(){return Array.from(this.JSC$10084_map_.keys())};
_.H.containsKey=function(X){return this.JSC$10084_map_.has(X)};
_.H.containsValue=function(X){return this.getValues().some(function(t){return t==X})};
_.H.equals=function(X,t){var G=this;t=t===void 0?function(y,w){return y===w}:t;
return this===X?!0:this.JSC$10084_map_.size!=X.getCount()?!1:this.getKeys().every(function(y){return t(G.JSC$10084_map_.get(y),X.get(y))})};
_.H.isEmpty=function(){return this.JSC$10084_map_.size==0};
_.H.clear=function(){this.JSC$10084_map_.clear()};
_.H.remove=function(X){return this.JSC$10084_map_.delete(X)};
_.H.get=function(X,t){return this.JSC$10084_map_.has(X)?this.JSC$10084_map_.get(X):t};
_.H.set=function(X,t){this.JSC$10084_map_.set(X,t);return this};
_.H.addAll=function(X){if(X instanceof y3){X=_.J(X.JSC$10084_map_);for(var t=X.next();!t.done;t=X.next()){var G=_.J(t.value);t=G.next().value;G=G.next().value;this.JSC$10084_map_.set(t,G)}}else if(X)for(X=_.J(Object.entries(X)),t=X.next();!t.done;t=X.next())G=_.J(t.value),t=G.next().value,G=G.next().value,this.JSC$10084_map_.set(t,G)};
_.H.forEach=function(X,t){var G=this;t=t===void 0?this:t;this.JSC$10084_map_.forEach(function(y,w){return X.call(t,y,w,G)})};
_.H.clone=function(){return new y3(this)};(function(){for(var X=["ms","moz","webkit","o"],t,G=0;t=X[G]&&!_.tA.requestAnimationFrame;++G)_.tA.requestAnimationFrame=_.tA[t+"RequestAnimationFrame"],_.tA.cancelAnimationFrame=_.tA[t+"CancelAnimationFrame"]||_.tA[t+"CancelRequestAnimationFrame"];if(!_.tA.requestAnimationFrame){var y=0;_.tA.requestAnimationFrame=function(w){var z=(new Date).getTime(),B=Math.max(0,16-(z-y));y=z+B;return _.tA.setTimeout(function(){w(z+B)},B)};
_.tA.cancelAnimationFrame||(_.tA.cancelAnimationFrame=function(w){clearTimeout(w)})}})();
var jSS=[[],[]],g7J=0,FGJ=!1,Tlq=0,Yro=function(X,t){var G=Tlq++,y={measureTask:{id:G,fn:X.measure,context:t},mutateTask:{id:G,fn:X.mutate,context:t},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(y.args||(y.args=[]),y.args.length=0,y.args.push.apply(y.args,arguments),y.args.push(y.state)):y.args&&y.args.length!=0?(y.args[0]=y.state,y.args.length=1):y.args=[y.state];y.isScheduled||(y.isScheduled=!0,jSS[g7J].push(y));FGJ||(FGJ=!0,window.requestAnimationFrame(AG4))}},AG4=
function(){FGJ=!1;
var X=jSS[g7J],t=X.length;g7J=(g7J+1)%2;for(var G,y=0;y<t;++y){G=X[y];var w=G.measureTask;G.isScheduled=!1;w.fn&&w.fn.apply(w.context,G.args)}for(y=0;y<t;++y)G=X[y],w=G.mutateTask,G.isScheduled=!1,w.fn&&w.fn.apply(w.context,G.args),G.state={};X.length=0};var sSq=_.Vc(["about:blank"]),D14=_.Vc(["javascript:undefined"]),Srt=_.sw(sSq);_.Nx(Srt);var hLS=_.sw(D14);_.Nx(hLS);var wA=function(X){_.P6.call(this);this.JSC$10090_element_=X;this.listenKeyIn_=_.vj(this.JSC$10090_element_,"focus",this,!0);this.listenKeyOut_=_.vj(this.JSC$10090_element_,"blur",this,!0)};
_.sx(wA,_.P6);wA.prototype.handleEvent=function(X){var t=new _.c6(X.event_);t.type=X.type=="focusin"||X.type=="focus"?"focusin":"focusout";this.dispatchEvent(t)};
wA.prototype.disposeInternal=function(){wA.superClass_.disposeInternal.call(this);RL(this.listenKeyIn_);RL(this.listenKeyOut_);delete this.JSC$10090_element_};var Zb4=function(X,t){this.JSC$10093_element_=X;this.JSC$10093_dom_=t};var zu=function(X,t){Mg.call(this,t);this.useIframeMask_=!!X;this.lastFocus_=null;this.resizeBackgroundTask_=Yro({mutate:this.resizeBackground_},this);Yro({mutate:this.updateModalAndBackground_},this)};
_.sx(zu,Mg);_.H=zu.prototype;_.H.focusHandler_=null;_.H.visible_=!1;_.H.bgEl_=null;_.H.bgIframeEl_=null;_.H.tabCatcherElement_=null;_.H.backwardTabWrapInProgress_=!1;_.H.getCssClass=function(){return"goog-modalpopup"};
_.H.getBackgroundElement=function(){return this.bgEl_};
_.H.JSC$10074_createDom=function(){zu.superClass_.JSC$10074_createDom.call(this);var X=this.getElement(),t=bl(this.getCssClass()).split(" ");o6(X,t);X.tabIndex=0;_.wh(X,!1);qrq(this);CtR(this)};
var qrq=function(X){if(X.useIframeMask_&&!X.bgIframeEl_){var t=X.JSC$10072_dom_.JSC$9256_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.wq(t,Srt);X.bgIframeEl_=t;X.bgIframeEl_.className=X.getCssClass()+"-bg";_.wh(X.bgIframeEl_,!1);AQq(X.bgIframeEl_,0)}X.bgEl_||(X.bgEl_=X.JSC$10072_dom_.JSC$9256_createDom("DIV",X.getCssClass()+"-bg"),_.wh(X.bgEl_,!1))},CtR=function(X){X.tabCatcherElement_||(X.tabCatcherElement_=X.JSC$10072_dom_.createElement("SPAN"),_.wh(X.tabCatcherElement_,
!1),X.tabCatcherElement_.tabIndex=0,X.tabCatcherElement_.style.position="absolute")};
_.H=zu.prototype;_.H.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.H.canDecorate=function(X){return!!X&&X.tagName=="DIV"};
_.H.decorateInternal=function(X){zu.superClass_.decorateInternal.call(this,X);X=bl(this.getCssClass()).split(" ");o6(this.getElement(),X);qrq(this);CtR(this);this.getElement().tabIndex=0;_.wh(this.getElement(),!1)};
_.H.enterDocument=function(){this.bgIframeEl_&&_.xo(this.bgIframeEl_,this.getElement());_.xo(this.bgEl_,this.getElement());zu.superClass_.enterDocument.call(this);_.fN(this.tabCatcherElement_,this.getElement());this.focusHandler_=new wA(this.JSC$10072_dom_.JSC$9254_document_);XB(this).listen(this.focusHandler_,"focusin",this.onFocus);KG4(this,!1)};
_.H.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Vs(this.focusHandler_);zu.superClass_.exitDocument.call(this);_.uf(this.bgIframeEl_);_.uf(this.bgEl_);_.uf(this.tabCatcherElement_)};
_.H.setVisible=function(X){if(X!=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_&&KG4(this,X),X){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10072_dom_.JSC$9254_document_.activeElement}catch(w){}this.updateModalAndBackground_();XB(this).listen(this.JSC$10072_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10072_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);ObP(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)mf(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){XB(this).unlisten(this.JSC$10072_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10072_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)mf(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var t=this.JSC$10072_dom_,G=t.JSC$9254_document_.body,y=t.JSC$9254_document_.activeElement||G;if(!this.lastFocus_||this.lastFocus_==G){this.lastFocus_=null;break a}(y==G||t.contains(this.getElement(),y))&&this.lastFocus_.focus()}catch(w){}this.lastFocus_=
null}}};
var KG4=function(X,t){X.modalAriaVisibilityHelper_||(X.modalAriaVisibilityHelper_=new Zb4(X.JSC$10072_element_,X.JSC$10072_dom_));X=X.modalAriaVisibilityHelper_;if(t){X.hiddenElements_||(X.hiddenElements_=[]);t=X.JSC$10093_dom_.getChildren(X.JSC$10093_dom_.JSC$9254_document_.body);for(var G=0;G<t.length;G++){var y=t[G],w;if(w=y!=X.JSC$10093_element_)w=y.getAttribute("aria-hidden"),w=!(w==null||w==void 0?0:String(w));w&&($X(y,"hidden",!0),X.hiddenElements_.push(y))}}else if(X.hiddenElements_){for(t=
0;t<X.hiddenElements_.length;t++)X.hiddenElements_[t].removeAttribute("aria-hidden");X.hiddenElements_=null}};
zu.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var ObP=function(X,t){X.bgIframeEl_&&_.wh(X.bgIframeEl_,t);X.bgEl_&&_.wh(X.bgEl_,t);_.wh(X.getElement(),t);_.wh(X.tabCatcherElement_,t)};
_.H=zu.prototype;_.H.onShow=function(){this.dispatchEvent("show")};
_.H.onHide=function(){ObP(this,!1);this.dispatchEvent("hide")};
_.H.isVisible=function(){return this.visible_};
_.H.focus=function(){this.focusElement_()};
_.H.resizeBackground_=function(){this.bgIframeEl_&&_.wh(this.bgIframeEl_,!1);this.bgEl_&&_.wh(this.bgEl_,!1);var X=this.JSC$10072_dom_.JSC$9254_document_;var t=_.W1(v1(this.JSC$10072_dom_.JSC$9254_document_)||window);var G=Math.max(t.width,Math.max(X.body.scrollWidth,X.documentElement.scrollWidth));X=Math.max(t.height,Math.max(X.body.scrollHeight,X.documentElement.scrollHeight));this.bgIframeEl_&&(_.wh(this.bgIframeEl_,!0),_.jNR(this.bgIframeEl_,G,X));this.bgEl_&&(_.wh(this.bgEl_,!0),_.jNR(this.bgEl_,
G,X))};
_.H.reposition=function(){var X;if(_.ev4(this.getElement())=="fixed")var t=X=0;else t=c1(this.JSC$10072_dom_),X=t.x,t=t.y;var G=Fae(this.getElement());var y=_.W1(v1(this.JSC$10072_dom_.JSC$9254_document_)||window);X=Math.max(X+y.width/2-G.width/2,0);t=Math.max(t+y.height/2-G.height/2,0);yI(this.getElement(),X,t);yI(this.tabCatcherElement_,X,t)};
_.H.onFocus=function(X){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():X.target==this.tabCatcherElement_&&ii(this.focusElement_,0,this)};
_.H.focusElement_=function(){try{this.getElement().focus()}catch(X){}};
_.H.disposeInternal=function(){_.Vs(this.popupShowTransition_);this.popupShowTransition_=null;_.Vs(this.popupHideTransition_);this.popupHideTransition_=null;_.Vs(this.bgShowTransition_);this.bgShowTransition_=null;_.Vs(this.bgHideTransition_);this.bgHideTransition_=null;zu.superClass_.disposeInternal.call(this)};var a0=function(X,t,G){zu.call(this,t,G);this.JSC$10103_class_=X||"modal-dialog";this.buttons_=(new HZ).addButton(ulq,!0).addButton(QSJ,!1,!0)};
_.sx(a0,zu);_.H=a0.prototype;_.H.escapeToCancel_=!0;_.H.hasTitleCloseButton_=!0;_.H.modal_=!0;_.H.draggable_=!0;_.H.backgroundElementOpacity_=.5;_.H.title_="";_.H.JSC$10105_dragger_=null;_.H.JSC$10105_disposeOnHide_=!1;_.H.titleEl_=null;_.H.titleTextEl_=null;_.H.titleTextId_=null;_.H.titleCloseEl_=null;_.H.contentEl_=null;_.H.buttonEl_=null;_.H.getCssClass=function(){return this.JSC$10103_class_};
_.H.setTitle=function(X){this.title_=X;this.titleTextEl_&&_.XA(this.titleTextEl_,X)};
_.H.getTitle=function(){return this.title_};
_.H.getContent=function(){return""};
_.H.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var INt=function(X){X.getElement()||X.render();return X.getElement()};
a0.prototype.getBackgroundElement=function(){this.getElement()||this.render();return a0.superClass_.getBackgroundElement.call(this)};
var WGq=function(X,t){X.backgroundElementOpacity_=t;X.getElement()&&(t=X.getBackgroundElement())&&AQq(t,X.backgroundElementOpacity_)};
a0.prototype.setDraggable=function(X){this.draggable_=X;cGe(this,X&&this.inDocument_)};
a0.prototype.JSC$10105_handleDrag=function(){};
var cGe=function(X,t){var G=bl(X.JSC$10103_class_+"-title-draggable").split(" ");X.getElement()&&(t?o6(X.titleEl_,G):Bh4(X.titleEl_,G));t&&!X.JSC$10105_dragger_?(t=new _.t8(X.getElement(),X.titleEl_),X.JSC$10105_dragger_=t,o6(X.titleEl_,G),_.vj(X.JSC$10105_dragger_,"start",X.setDraggerLimits_,!1,X),_.vj(X.JSC$10105_dragger_,"drag",X.JSC$10105_handleDrag,!1,X)):!t&&X.JSC$10105_dragger_&&(X.JSC$10105_dragger_.dispose(),X.JSC$10105_dragger_=null)};
_.H=a0.prototype;
_.H.JSC$10074_createDom=function(){a0.superClass_.JSC$10074_createDom.call(this);var X=this.getElement(),t=this.JSC$10072_dom_;this.titleTextId_=this.getId();var G=this.getId()+".contentEl";this.titleEl_=t.JSC$9256_createDom("DIV",this.JSC$10103_class_+"-title",this.titleTextEl_=t.JSC$9256_createDom("SPAN",{className:this.JSC$10103_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=t.JSC$9256_createDom("SPAN",this.JSC$10103_class_+"-title-close"));xzo(X,this.titleEl_,this.contentEl_=
t.JSC$9256_createDom("DIV",{className:this.JSC$10103_class_+"-content",id:G}),this.buttonEl_=t.JSC$9256_createDom("DIV",this.JSC$10103_class_+"-buttons"));BlP(this.titleTextEl_,"heading");BlP(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;$X(this.titleCloseEl_,"label","Close");BlP(X,"dialog");$X(X,"labelledby",this.titleTextId_||"");_.wh(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(X=this.buttons_,X.JSC$10106_element_=this.buttonEl_,X.render());_.wh(this.buttonEl_,!!this.buttons_);
WGq(this,this.backgroundElementOpacity_)};
_.H.decorateInternal=function(X){a0.superClass_.decorateInternal.call(this,X);X=this.getElement();var t=this.JSC$10103_class_+"-content";this.contentEl_=Rm(document,null,t,X)[0];this.contentEl_||(this.contentEl_=this.JSC$10072_dom_.JSC$9256_createDom("DIV",t),X.appendChild(this.contentEl_));t=this.JSC$10103_class_+"-title";var G=this.JSC$10103_class_+"-title-text",y=this.JSC$10103_class_+"-title-close";(this.titleEl_=Rm(document,null,t,X)[0])?(this.titleTextEl_=Rm(document,null,G,this.titleEl_)[0],
this.titleCloseEl_=Rm(document,null,y,this.titleEl_)[0]):(this.titleEl_=this.JSC$10072_dom_.JSC$9256_createDom("DIV",t),X.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=nVo(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.LN("SPAN",{className:G,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;$X(X,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10072_dom_.JSC$9256_createDom("SPAN",y),this.titleEl_.appendChild(this.titleCloseEl_));_.wh(this.titleCloseEl_,this.hasTitleCloseButton_);t=this.JSC$10103_class_+"-buttons";(this.buttonEl_=Rm(document,null,t,X)[0])?(this.buttons_=new HZ(this.JSC$10072_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10072_dom_.JSC$9256_createDom("DIV",t),X.appendChild(this.buttonEl_),this.buttons_&&(X=this.buttons_,X.JSC$10106_element_=this.buttonEl_,X.render()),_.wh(this.buttonEl_,
!!this.buttons_));WGq(this,this.backgroundElementOpacity_)};
_.H.enterDocument=function(){a0.superClass_.enterDocument.call(this);XB(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);XB(this).listen(this.buttonEl_,"click",this.onButtonClick_);cGe(this,this.draggable_);XB(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var X=this.getElement();BlP(X,"dialog");this.titleTextEl_.id!==""&&$X(X,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){X=this.JSC$10072_dom_;
var t=this.getBackgroundElement();X.removeNode(this.bgIframeEl_);X.removeNode(t)}this.isVisible()&&KG4(this,!1)}};
_.H.exitDocument=function(){this.isVisible()&&this.setVisible(!1);cGe(this,!1);a0.superClass_.exitDocument.call(this)};
_.H.setVisible=function(X){X!=this.isVisible()&&(this.inDocument_||this.render(),a0.superClass_.setVisible.call(this,X))};
_.H.onShow=function(){a0.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.H.onHide=function(){a0.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10105_disposeOnHide_&&this.dispose()};
_.H.setDraggerLimits_=function(){var X=this.JSC$10072_dom_.JSC$9254_document_,t=_.W1(v1(X)||window),G=Math.max(X.body.scrollWidth,t.width);X=Math.max(X.body.scrollHeight,t.height);var y=Fae(this.getElement());_.ev4(this.getElement())=="fixed"?this.JSC$10105_dragger_.limits=new $9(0,0,Math.max(0,t.width-y.width),Math.max(0,t.height-y.height)):this.JSC$10105_dragger_.limits=new $9(0,0,G-y.width,X-y.height)};
_.H.onTitleCloseClick_=function(){pz4(this)};
var pz4=function(X){if(X.hasTitleCloseButton_){var t=X.buttons_,G=t&&t.cancelButton_;G?(t=t.get(G),X.dispatchEvent(new oE(G,t))&&X.setVisible(!1)):X.setVisible(!1)}},rGh=function(X){X.hasTitleCloseButton_=!1;
X.titleCloseEl_&&_.wh(X.titleCloseEl_,X.hasTitleCloseButton_)};
a0.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;a0.superClass_.disposeInternal.call(this)};
a0.prototype.onButtonClick_=function(X){a:{for(X=X.target;X!=null&&X!=this.buttonEl_;){if(X.tagName=="BUTTON")break a;X=X.parentNode}X=null}if(X&&!X.disabled){X=X.name;var t=this.buttons_.get(X);this.dispatchEvent(new oE(X,t))&&this.setVisible(!1)}};
a0.prototype.onKey_=function(X){var t=!1,G=!1,y=this.buttons_,w=X.target;if(X.type=="keydown")if(this.escapeToCancel_&&X.keyCode==27){var z=y&&y.cancelButton_;w=w.tagName=="SELECT"&&!w.disabled;z&&!w?(G=!0,t=y.get(z),t=this.dispatchEvent(new oE(z,t))):w||(t=!0)}else{if(X.keyCode==9&&X.shiftKey&&w==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(g){}ii(this.resetBackwardTabWrap_,0,this)}}else if(X.keyCode==13){if(w.tagName=="BUTTON"&&!w.disabled)z=w.name;
else if(w==this.titleCloseEl_)pz4(this);else if(y){var B=y.defaultButton_,V;if(V=B)a:{V=Qs("BUTTON",y.JSC$10106_element_);for(var b,e=0;b=V[e];e++)if(b.name==B||b.id==B){V=b;break a}V=null}w=(w.tagName=="TEXTAREA"||w.tagName=="SELECT"||w.tagName=="A")&&!w.disabled;!V||V.disabled||w||(z=B)}z&&y&&(G=!0,t=this.dispatchEvent(new oE(z,String(y.get(z)))))}else w!=this.titleCloseEl_||X.keyCode!=32&&X.key!=" "||pz4(this);if(t||G)X.stopPropagation(),X.preventDefault();t&&this.setVisible(!1)};
var oE=function(X,t){this.type="dialogselect";this.key=X;this.caption=t};
_.sx(oE,_.W6);var HZ=function(X){y3.call(this);X||pD();this.cancelButton_=this.JSC$10106_element_=this.defaultButton_=null};
_.sx(HZ,y3);_.H=HZ.prototype;_.H.clear=function(){y3.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.H.set=function(X,t,G,y){y3.prototype.set.call(this,X,t);G&&(this.defaultButton_=X);y&&(this.cancelButton_=X);return this};
_.H.addButton=function(X,t,G){return this.set(X.key,X.caption,t,G)};
_.H.render=function(){if(this.JSC$10106_element_){_.b8(this.JSC$10106_element_,$1V);var X=pD(this.JSC$10106_element_);this.forEach(function(t,G){t=X.JSC$9256_createDom("BUTTON",{name:G},t);G==this.defaultButton_&&(t.className="goog-buttonset-default");this.JSC$10106_element_.appendChild(t)},this)}};
_.H.decorate=function(X){if(X&&X.nodeType==1){this.JSC$10106_element_=X;X=Qs("BUTTON",this.JSC$10106_element_);for(var t,G,y,w=0;t=X[w];w++)if(G=t.name||t.id,y=nVo(t)||t.value,G){var z=w==0;this.set(G,y,z,t.name=="cancel");z&&_.Fx(t,"goog-buttonset-default")}}};
_.H.getElement=function(){return this.JSC$10106_element_};
var ulq={key:"ok",caption:"OK"},QSJ={key:"cancel",caption:"Cancel"},Nl4={key:"yes",caption:"Yes"},Ptt={key:"no",caption:"No"},E7q={key:"save",caption:"Save"},U1z={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new HZ).addButton(ulq,!0,!0),(new HZ).addButton(ulq,!0).addButton(QSJ,!1,!0),(new HZ).addButton(Nl4,!0).addButton(Ptt,!1,!0),(new HZ).addButton(Nl4).addButton(Ptt,!0).addButton(QSJ,!1,!0),(new HZ).addButton(U1z).addButton(E7q).addButton(QSJ,!0,!0));_.sx(mJV,a0);_.sx(RZv,lf);var m1Y=_.Vc(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),RL4=_.Vc(["//apis.google.com/js/rpc.js"]),Xzv=_.sw(m1Y),MHY=_.sw(RL4),LU6=null;var xb=function(X,t){_.P6.call(this);this.JSC$10115_element_=X;X=_.kA(this.JSC$10115_element_)?this.JSC$10115_element_:this.JSC$10115_element_?this.JSC$10115_element_.body:null;this.isRtl_=!!X&&_.YRq(X);this.listenKey_=_.vj(this.JSC$10115_element_,_.qe?"DOMMouseScroll":"mousewheel",this,t)};
_.sx(xb,_.P6);xb.prototype.handleEvent=function(X){var t=0,G=0,y=X.event_;y.type=="mousewheel"?(X=ibY(-y.wheelDelta),y.wheelDeltaX!==void 0?(t=ibY(-y.wheelDeltaX),G=ibY(-y.wheelDeltaY)):G=X):(X=y.detail,X>100?X=3:X<-100&&(X=-3),y.axis!==void 0&&y.axis===y.HORIZONTAL_AXIS?t=X:G=X);typeof this.maxDeltaX_==="number"&&(t=_.MM(t,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(G=_.MM(G,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(t=-t);t=new LGP(X,y,t,G);this.dispatchEvent(t)};
var ibY=function(X){return _.C9&&(_.h$E||qMG)&&X%40!=0?X:X/40};
xb.prototype.disposeInternal=function(){xb.superClass_.disposeInternal.call(this);RL(this.listenKey_);this.listenKey_=null};
var LGP=function(X,t,G,y){_.c6.call(this,t);this.type="mousewheel";this.detail=X;this.deltaX=G;this.deltaY=y};
_.sx(LGP,_.c6);_.TC=function(X){var t="instance_";if(X.instance_&&X.hasOwnProperty(t))return X.instance_;t=new X;return X.instance_=t};var fuJ;var v7Y=_.Vc(["https://about:blank"]),aNS=_.Vc(['javascript:""']),lNJ=_.Vc(["about:blank"]);_.sx(zy,mJV);_.H=zy.prototype;_.H.JSC$10123_url_="";_.H.JSC$10123_iframe_=null;_.H.iframeLoaded_=!1;_.H.loadedFired_=!1;_.H.callback_=function(){};
_.H.enterDocument=function(){zy.superClass_.enterDocument.call(this);luf(this.getBackgroundElement(),XB(this))};
_.H.render=function(X){var t=this;zy.superClass_.render.call(this,X);this.useGapi_?luP(this.iframeManager_,window).then(function(){return x1Y(t)}).then(null,function(){t.callback_({action:"error"})}):fNh(this)};
var x1Y=function(X){var t=X.JSC$10072_dom_.JSC$9256_createDom("div",["picker-dialog-content","picker-frame"]);_.wh(t,!1);X.getContentElement().appendChild(t);return xJB(X.iframeManager_,t,function(G){var y=eth(G["iframe-command"]);switch(y.getCommand()){case 1:G=X.callback_;y=_.Co(y,FA,2);var w="";switch(y.getStatus()){case 2:w="cancel";break;case 1:w="picked";break;case 3:w="error"}var z=_.dT(y,mZ,2,_.eM(MzA));y=z.length===0?{action:w}:KUq(z,w,_.Co(y,b1B,7));G.call(X,y);X.setVisible(!1);break;case 4:rGh(X);
X.callback_({action:"loaded"});break;case 7:case 8:G=X.callback_;a:{w=y.getCommand();z=_.Co(y,FA,2);switch(w){case 7:w="uploadScheduled";break;case 8:w="uploadStateChange";break;default:y={};break a}y=_.dT(z,mZ,2,_.eM(MzA));if(y.length===0)y={action:w};else{var B=_.Co(z,b1B,7);z=B&&_.aQ(B,1);B=FUR(B);y=YcP(y,w,z,B)}}G.call(X,y)}},X.JSC$10123_url_,X.targetId_,X.rpcToken_).then(function(G){X.JSC$10123_iframe_=G.getIframeEl();
MDR(X);_.wh(X.JSC$10123_iframe_.parentElement,!0);_.Fx(X.getElement(),"picker-dialog");XOB(X);return G})},fNh=function(X){X.JSC$10123_iframe_=X.JSC$10072_dom_.JSC$9256_createDom("IFRAME",{id:X.targetId_,
name:X.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.wq(X.JSC$10123_iframe_,$jS(X));_.Fx(X.getElement(),"picker-dialog");X.getContentElement().appendChild(X.JSC$10123_iframe_);XB(X).listen(X.JSC$10123_iframe_,"load",function(){return void MDR(X)});
X.JSC$10123_iframe_.src=X.JSC$10123_url_;XOB(X)},G54=function(X){tPY(X,(0,_.rT)(function(t){t.setAuthToken(this.targetId_,this.rpcToken_)},X))},XOB=function(X){var t=_.Gy(_.tW(X.JSC$10123_url_),"title");
t&&X.setTitle(t)},$jS=function(X){return _.nJA("Internet Explorer")>=7&&_.y0(X.JSC$10123_url_,"https")?_.sw(v7Y):_.Z_?_.sw(aNS):_.sw(lNJ)},MDR=function(X){G54(X);
X.iframeLoaded_=!0;X.JSC$10123_iframe_.tabIndex=0;X.isVisible()&&X.focus()};
zy.prototype.handleKeydown_=function(X){X.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),X.stopPropagation(),X.preventDefault())};
var tPY=function(X,t){var G=X.JSC$10121_gadgetsDomHelper_;vxl(function(){t(G.getWindow().gadgets.rpc)},G)};
zy.prototype.setUrl=function(X){X=_.yA(new _.Vf(X),"rpcService",this.targetId_);_.yA(X,"rpctoken",this.rpcToken_);_.sp(X,"rpctoken="+this.rpcToken_);_.j2(X,"https");this.JSC$10123_url_=X.toString();this.JSC$10123_iframe_&&(this.JSC$10123_iframe_.src=this.JSC$10123_url_)};
var yvt=function(X,t){X.callback_=t;tPY(X,(0,_.rT)(function(G){G.register(this.targetId_,(0,_.rT)(this.handlePickerAction_,this))},X))};
zy.prototype.handlePickerAction_=function(X){var t=X.action;t=="loaded"&&(this.loadedFired_=!0,wOS(this,new UJw(this.isVisible())),zPY(this),rGh(this),XB(this).unlisten(this.JSC$10072_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10123_iframe_.tabIndex=0);t!="picked"&&t!="cancel"||this.setVisible(!1);this.callback_(X)};
var zPY=function(X){X.JSC$10123_appId_&&wOS(X,new ExA(X.JSC$10123_appId_,window.location.protocol+"//"+window.location.host))};
zy.prototype.setRelayUrl=function(X){tPY(this,(0,_.rT)(function(t){t.setRelayUrl(this.targetId_,X)},this))};
var wOS=function(X,t){X.useGapi_&&tDe(t,X.iframeManager_).then(null,function(){X.callback_({action:"error"})});
tPY(X,(0,_.rT)(function(G){G.call(this.targetId_,"picker",null,t)},X))};
zy.prototype.resizePicker_=function(){var X=v1(this.JSC$10072_dom_.JSC$9254_document_)||window;if(_.Gy(_.tW(this.JSC$10123_url_),"ignoreLimits")=="true")X=new _.IH(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Gy(_.tW(this.JSC$10123_url_),"shadeDialog")=="true"){var t=INt(this);t=sNS(t);var G=_.W1(X);X=G.width-80;G=G.height-40;t&&(X-=t.left?t.left:0,X-=t.right?t.right:0,G-=t.top?t.top:0,G-=t.bottom?t.bottom:0);X=new _.IH(X>0?X:0,G>0?G:0)}else(t=this.preferredDialogWidth_)?(t=Math.max(320,
Math.min(1051,t)),(G=this.preferredDialogHeight_)||(G=_.W1(X).height*.85),G=Math.max(480,Math.min(650,G))):(t=_.W1(X),G=t.width*.618,G=G<t.height?Math.round(Math.max(480,Math.min(650,G*.85))):Math.round(Math.max(480,Math.min(650,t.height*.85))),t=Math.round(G/.618)),X=_.W1(X),t=Math.min(t,Math.max(X.width,320)),G=Math.min(G,Math.max(X.height,480)),X=new _.IH(t,G);_.jNR(this.getContentElement(),X);this.reposition()};
zy.prototype.reposition=function(){if(_.Gy(_.tW(this.JSC$10123_url_),"shadeDialog")=="true"){var X=Fae(this.getElement()),t=_.W1(this.JSC$10072_dom_.getWindow());X=Math.floor(t.width/2-X.width/2);t=INt(this);if(t=sNS(t)){var G=t.left?t.left:0;G+=t.right?t.right:0;X=Math.floor(X-G/2)}X=X>0?X:0;t=c1(this.JSC$10072_dom_).y;yI(this.getElement(),X,t)}else zy.superClass_.reposition.call(this)};
zy.prototype.setVisible=function(X){if(X!=this.isVisible()&&this.autoSizeDialog_){var t=this.JSC$10072_dom_.getWindow();X?(this.resizePicker_(),XB(this).listen(t,"resize",this.resizePicker_),this.iframeLoaded_||XB(this).listen(t,"keydown",this.handleKeydown_)):(XB(this).unlisten(t,"resize",this.resizePicker_),this.iframeLoaded_||XB(this).unlisten(t,"keydown",this.handleKeydown_))}zy.superClass_.setVisible.call(this,X);wOS(this,new UJw(X))};
zy.prototype.focus=function(){zy.superClass_.focus.call(this);if(this.JSC$10123_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10123_iframe_.focus()}catch(X){}};var x1=function(X,t){t=t===void 0?zy:t;lf.call(this,X);this.pickerConstructor=t;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(X=window.location.origin)||(X=window.location.protocol+"//"+window.location.host);X&&this.urlParamMap_.set("origin",X);this.postProcessors_=[]};
_.S(x1,RZv);x1.prototype.JSC$10128_disposeOnHide_=!1;
x1.prototype.build=function(){this.JSC$10029_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10029_appId_);this.getRelayUrl()||this.setRelayUrl(_.TT(_.sp(_.YP(_.tW(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var X=new this.pickerConstructor(Hhq(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);X.JSC$10105_disposeOnHide_=this.JSC$10128_disposeOnHide_;
X.JSC$10123_appId_=this.JSC$10029_appId_;X.loadedFired_&&zPY(X);yvt(X,this.callback_);return X};
var oA4=function(X){X.urlParamMap_.set("multiselectEnabled","true");return X};
_.H=x1.prototype;_.H.getHeight=function(){return this.dialogHeight_};
_.H.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.H.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.H.getTitle=function(){return this.urlParamMap_.get("title")};
_.H.getWidth=function(){return this.dialogWidth_};
var JvS=function(X){X.JSC$10128_disposeOnHide_=void 0;return X};
x1.prototype.setRelayUrl=function(X){this.urlParamMap_.set("parent",X);return this};
var BjY=function(X,t){X.urlParamMap_.set("selectButtonLabel",t);return X};
x1.prototype.setSize=function(X,t){this.dialogWidth_=X;this.dialogHeight_=t;return this};
x1.prototype.setTitle=function(X){this.urlParamMap_.set("title",X);return this};
var Hhq=function(X){X.postProcessors_.length&&X.urlParamMap_.set("pp",JSON.stringify(X.postProcessors_));X.urlParamMap_.set("nav",dJY(X.nav_));var t=new _.Vf(X.getBaseUrl());X.urlParamMap_.forEach(function(G,y){_.yA(t,y,G)});
return t};var bhP=function(X,t){X.name!==void 0?(this.name=X.name,this.code=nAJ[X.name]):(this.code=X=X.code,this.name=VPY(X));_.Xv.call(this,QV4("%s %s",this.name,t))};
_.sx(bhP,_.Xv);var VPY=function(X){var t=_.RH.findKey(nAJ,function(G){return X==G});
if(t===void 0)throw Error("hb`"+X);return t},J8={},nAJ=(J8.AbortError=3,J8.EncodingError=5,J8.InvalidModificationError=9,J8.InvalidStateError=7,J8.NotFoundError=1,J8.NotReadableError=4,J8.NoModificationAllowedError=6,J8.PathExistsError=12,J8.QuotaExceededError=10,J8.SecurityError=2,J8.SyntaxError=8,J8.TypeMismatchError=11,J8);var k5S=function(X,t){_.W6.call(this,X.type,t);this.event_=X};
_.sx(k5S,_.W6);var djo=function(X,t,G){G===void 0&&(G=X.size);return X.slice?X.slice(t,G):null};var Gx_=new WeakMap,tDG=function(X,t){X=[X];for(var G=t.length-1;G>=0;--G)X.push(typeof t[G],t[G]);return X.join("\v")};_.wz6(function(){if(!_.tA.Blob)return!1;var X=new Uint8Array(100);try{var t=new Blob([X])}catch(G){return!1}return t.size!=100?!1:!0});
var ePz=_.wz6(function(){if(!_.tA.Blob)return!1;var X=new Uint8Array(100);try{var t=new Blob([X])}catch(G){return!1}return djo(t,0,1)===null?!1:!0});_.tA.U3bHHf!=null||(_.tA.U3bHHf=0);_.tA.U3bHHf++;var zLY={};var Bm=void 0;var o7v=Symbol("pb");var Yr6=VA("WizInjectionContext_Dispatcher");var jg=Symbol("qb");var CY=function(){this.afterRenderCallbacks=null},IOh=Symbol("rb"),c0=function(X){this.props=X;
this.__unmounted=!1};
c0.prototype.didPatch=function(){};
c0.prototype.didMount=function(){};
c0.prototype.didUnmount=function(){};
c0.prototype.didUpdate=function(){};var jSY=VA("WizInjectionContext_RootElement");var FGl=VA("WizInjectionContext_AppContext"),g7l=VA("WizInjectionContext_ModelRootElement"),TlA=VA("WizInjectionContext_RendererData"),AGv=VA("WizInjectionContext_InjectingConstructor"),eLv=VA("WizInjectionContext_AsyncDeps"),sSh={};var Ct0=!1;var QSl={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:TOh,enableLazyTsx:Ass,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:F7w,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var kH=Object.assign({},{attributes:{},handleError:function(X){throw X;}},QSl);var j7R=Symbol("vb"),Kt=Symbol("wb"),s76=Symbol("xb"),Av0=Symbol("yb"),Ku0=iJ(function(X){return dh(X)&&j7R in X});var PtE=Symbol("zb"),BZ={},rGJ=(BZ[PtE]=!0,BZ.debugName="[component]",BZ.getComponentStack=function(){for(var X=[],t=this;t;)E7V(t)&&X.push(t.debugName),t=t.parent;return X},BZ.registerSignal=function(){},BZ.registerEffect=function(){},BZ);var e0=null,gh=!1,ibs=1,AW=Symbol("Ab"),Zy={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 nP=Symbol("Bb"),V3=Symbol("Cb"),Ty=Symbol("Db"),XOV=Object.assign({},Zy,{value:nP,dirty:!0,error:null,equal:U1w,kind:"computed",producerMustRecompute:function(X){return X.value===nP||X.value===V3},
producerRecomputeValue:function(X){if(X.value===V3)throw Error("Z");var t=X.value;X.value=V3;var G=x1s(X),y=!1;try{var w=X.computation();j0(null);y=t!==nP&&t!==Ty&&w!==Ty&&X.equal(t,w)}catch(z){w=Ty,X.error=z}finally{MD0(X,G)}y?X.value=t:(X.value=w,X.version++)}});var yvE=function(){throw Error();};var zPs=null,tPs=Object.assign({},Zy,{equal:U1w,value:void 0,kind:"signal"});Object.assign({},Zy,{value:nP,dirty:!0,error:null,equal:U1w,kind:"linkedSignal",producerMustRecompute:function(X){return X.value===nP||X.value===V3},
producerRecomputeValue:function(X){if(X.value===V3)throw Error("Z");var t=X.value;X.value=V3;var G=x1s(X);try{var y=X.source();var w=X.computation(y,t===nP||t===Ty?void 0:{source:X.sourceValue,value:t});X.sourceValue=y}catch(z){w=Ty,X.error=z}finally{MD0(X,G)}t!==nP&&w!==Ty&&X.equal(t,w)?X.value=t:(X.value=w,X.version++)}});Object.assign({},Zy,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(X){X.schedule!==null&&X.schedule(X.ref)},
hasRun:!1,cleanupFn:function(){}});var oA_=Symbol("Eb"),Dy=Symbol("Fb");var S0=Array.isArray;var j70;var gAz={},FuG=ePw(Object.assign({},{consumerAllowSignalWrites:!0},gAz)),Oa=ePw(Object.assign({},{consumerAllowSignalWrites:!0},gAz));var Om=0,um=!1,bk=function(){this.queue=new Set};
bk.prototype.remove=function(X){this.queue.delete(X)};
bk.prototype.clear=function(){this.queue.clear()};
var Fue=function(){bk.apply(this,arguments)};
_.S(Fue,bk);Fue.prototype.schedule=function(X){this.queue.add(X)};
Fue.prototype.flush=function(){if(this.queue.size){um=!0;try{for(var X=_.J(this.queue),t=X.next();!t.done;t=X.next()){var G=t.value;this.queue.delete(G);try{G.run()}catch(y){Tjq(y)}}}finally{um=!1}}};
var AvR=new Fue,kX=function(){bk.apply(this,arguments)};
_.S(kX,bk);var Y9t=function(){kX.apply(this,arguments)};
_.S(Y9t,kX);Y9t.prototype.schedule=function(X){X.hasRun?this.queue.add(X):X.run()};
Y9t.prototype.flush=function(){if(this.queue.size)if(kH.flushRenderEffectsDuringRender){var X=this.queue;this.queue=new Set;Oh6(X)}else Oh6(this.queue)};
var TjV=new Y9t,s7o=function(){kX.apply(this,arguments)};
_.S(s7o,kX);s7o.prototype.schedule=function(X){var t=this;return _.n(function(G){if(G.nextAddress==1)return X.hasRun?G.jumpTo(2):G.yield(Promise.resolve(),3);if(G.nextAddress!=2)return X.run(),G.return();t.queue.add(X);_.W$(G)})};
s7o.prototype.flush=function(){var X=this;return _.n(function(t){if(t.nextAddress==1)return X.queue.size?t.yield(Promise.resolve(),2):t.return();Oh6(X.queue);_.W$(t)})};
var DjJ=new s7o,Djh=function(){kX.apply(this,arguments)};
_.S(Djh,kX);Djh.prototype.schedule=function(X){this.queue.add(X)};
Djh.prototype.flush=function(){this.queue.size&&Oh6(this.queue)};
var Y9E=new Djh,q9f=[TjV,AvR,Y9E,DjJ],S9B=[TjV,Y9E,DjJ],hP0=[];zPs=function(){CxG();for(var X=_.J(hP0),t=X.next();!t.done;t=X.next())t=t.value,t()};
var Tjq=GV;var Wm=Symbol("Kb");var I5=null,IUh,WuY=null,cvv;var dA={},hPR=Object.assign({},Zy,(dA[j7R]=!0,dA.effectType=Kt,dA.isResettableContext=!0,dA.hasRun=!1,dA.effectFn=null,dA.consumerIsAlwaysLive=!0,dA.consumerAllowSignalWrites=!0,dA.consumerMarkedDirty=S9V,dA.kind="effect",dA.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(gh)throw Error("Lb");this.dirty=!1;if(!this.hasRun||LGf(this)){this.hasRun=!0;d1J(this);var X=_.nt(this),t=x1s(this);WGA("effectRun",this.debugName);try{rh(this.effectFn,this.componentStack,this)}catch(G){throw kH.enableContextBasedComponentStacks&&
pt(G),G;}finally{cGG("effectRun",this.debugName),MD0(this,t),_.nt(X)}}}},dA.componentStack=void 0,dA.debugName="[effect]",dA[Symbol.dispose]=function(){if(FO(this))for(var X=this.producers;X!==void 0;)X=fNJ(X);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;X=_.J(S9B);for(var t=X.next();!t.done;t=X.next())t.value.remove(this);kxv(this)},dA));var Nj_=Object.assign({},hPR,{effectType:s76});var PxE=Symbol("Mb");var EAV=Object.assign({},hPR,{effectType:Kt});var YAf=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 RPA={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},mj_=
{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}]}},eHv={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},vA0=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Luf={"*":{async:1,dir:0,loading:2,target:3}};var Zh4=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ea={},lU6=(ea[1]=null,ea[2]=function(X,t){return t instanceof $w?yb(t):vt.toString()},ea[3]=function(X,t){return mN(t)?_.Rj(t):Zh4.test(String(t))?String(t):vt.toString()},ea[4]=function(X,t){return t instanceof ct?_.Nx(t):vt.toString()},ea[5]=function(X,t){return String(t)},ea[7]=null,ea[8]=null,ea[10]=null,ea);var rSv=Symbol("Pb");var hns=function(X){var t=q9P,G=X,y="",w="",z=1;X<0&&(X=-X);if(X===Infinity)X=(Infinity*Math.sign(G)).toString();else{for(var B=0;B<Cxe.length;B++){var V=Cxe[B];z=t[V];if(X>=z||z<=1&&X>.1*z){y=V;break}}y?(y+="B",w=" "):z=1;X=Math.round(G/z*10)/10+w+y}return X},Cxe="Y Z E P T G M K  m u n".split(" "),q9P={"":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};_.KuR=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 sa={};RegExp.prototype.hasOwnProperty("sticky");var D_h=function(X){X=String(X);for(var t=function(y,w,z){for(var B=Math.min(w.length-z,y.length),V=0;V<B;V++){var b=w[z+V];if(y[V]!==("A"<=b&&b<="Z"?b.toLowerCase():b))return!1}return!0},G=0;(G=X.indexOf("<",G))!=-1;){if(t("\x3c/script",X,G)||t("\x3c!--",X,G))return"zSoyz";
G+=1}return X};var ft={default:"__default"};var tiE=Object.prototype.hasOwnProperty;MPh.prototype=Object.create(null);var dS=wql();var Jf=null;var eM6=function(X){this.created=[];this.deleted=[];this.node=X};var jOA=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var X=this,t=X;X;)t=X,X=X.parentNode;return t};var HlV=function(X,t){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=X;this.key=t;this.text=void 0};var tf=null,Gh=null,XJ=null,wn=null,ViV=[],n50=JaA,H0=[],o2=[],pkv=function(X){return g5v(function(t,G,y){XJ=Gh=t;Gh=null;G(y);BSf(null);Gh=XJ;XJ=XJ.parentNode;return t},X)}(),cSJ=function(X){return g5v(function(t,G,y){var w={nextSibling:t};
Gh=w;G(y);XJ&&BSf(t.nextSibling);return w===Gh?null:Gh},X)}();var B0=[],TSh=0;var VX=new MPh;var fz=new MPh;var Oho=wql(),ZlA=Oho[ft.default],hMw=Oho.style,sOG=["focusin","focusout"],KXY="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var bEf=function(){},tbY=function(){},gev=function(){},d8A=function(){};var dn=Symbol("Wb");var WXv,Is6=QOl;var hf=Symbol("Xb");var j4Y=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(" ")),
eXY=new Set(["a","font","script","style","title"]);var Sg={setUp:asY,tearDown:asY,log:asY,logNodeRange:asY,graft:function(X,t){t()}};var uv={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var QX=null,I2=function(X,t){c0.call(this,X);var G=this;this.functionComponent=t;this.hooks=[];this.hookCounter=0;this.disposeEffects=m$(function(y){G.effectContext=y;_.Um(function(){zXv(G,G.el)})},kH.alwaysTrackContexts||!!Bm)};
_.S(I2,c0);I2.prototype.render=function(X){var t=QX;QX=this;this.hookCounter=0;var G=j0(Oa),y=_.nt(this.effectContext);try{return WGA("render",this.componentName),this.functionComponent(X)}finally{cGG("render",this.componentName),_.nt(y),j0(G),QX=t}};
_.ke.Object.defineProperties(I2.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return uR6(this.functionComponent)}}});var FqG=Symbol("kc"),neE=function(X,t,G){this.afterRenderCallbacks=null;this.kind=X;this.props=t;this.children=G};
_.S(neE,CY);neE.prototype.render=function(){var X=Bu0(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var t=_.J(this.afterRenderCallbacks),G=t.next();!G.done;G=t.next())G=G.value,X=G(X);return X};
neE.prototype.getChildren=function(){return this.children};var ALV=[];yvE=function(X){throw Error("ob`"+X.debugName);};
(function(){var X=Jf;Jf=function(t){X==null||X(t);YsG(t)}})();var uRo=new WeakMap,Q7h=0;var IUq=void 0,WuS={},cv4=new WeakMap,ED0={getComponent:function(X){if(X.hasAttribute("ng-version"))return WuS;if(!X.__wizComponent)return null;X=X.__wizComponent;cv4.set(X.propsAndState,X);return X.propsAndState},
getDirectiveMetadata:function(X){if(X===WuS)return{framework:"wiz",name:"<Root>",props:{}};X=cv4.get(X);if(!X)throw Error("lc");return{framework:"wiz",name:X.name,props:Object.fromEntries(Object.keys(X.props).map(function(t){return[t,t]}))}},
"\u0275setProfiler":function(X){var t;(t=IUq)==null||t();IUq=Zh_(function(){X(2)})},
getInjector:function(X){return X.__wizComponent},
"\u0275getSignalGraph":function(X){var t;X=(t=X.effects)!=null?t:[];var G=s4_(X),y=Array.from(G.keys());t=[];X=[];for(var w=new Map,z=0;z<y.length;z++)w.set(y[z],z);G=_.J(G.entries());for(y=G.next();!y.done;y=G.next()){z=_.J(y.value);y=z.next().value;var B=z.next().value;z=y;y=w.get(z);var V=uRo.get(z);V||(V=Q7h.toString(),uRo.set(z,V),Q7h++);var b=void 0,e=(b=z.debugName)!=null?b:"";b=e.startsWith("[signal]")?e:e.replace(/@.+/,"");if(z.kind==="computed"){e=z.computation;var g=void 0;t.push({label:b,
value:z.value,kind:z.kind,epoch:z.version,debuggableFn:(g=e.userFn)!=null?g:e,id:V})}else if(z.kind==="signal")t.push({label:b,value:z.value,kind:z.kind,epoch:z.version,id:V});else if(z.kind==="effect"){g=void 0;e=(g=z.effectFn)!=null?g:void 0;var F=g=void 0;t.push({label:b,kind:z.kind,epoch:z.version,debuggableFn:(F=(g=e)==null?void 0:g.userFn)!=null?F:e,id:V})}else t.push({label:b,kind:z.kind,epoch:z.version,id:V});z=_.J(B);for(B=z.next();!B.done;B=z.next())X.push({consumer:y,producer:w.get(B.value)})}return{nodes:t,
edges:X}},
isSignal:function(X){return typeof X==="function"&&X[AW]!==void 0}};Object.assign({},hPR,{effectType:Kt,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var X=this.elementRef;var t;X.element!=null||(X.element=(t=X.document.getElementById(X.value))!=null?t:void 0);X=X.element;for(t=this.attributes;t;){var G=t.signal();G!==t.prevValue&&(t.prevValue=G,YAf.has(t.name)?xH(X,t.name,G?"":null):xH(X,t.name,G));t=t.next}}});Object.assign({},hPR,{effectType:Kt,hasRun:!0});_.d.debugName="RlDudd";var D8J={nonNullableCondIsNull:function(){return Error("rc")}};var Kq6=function(){this.map=new Map};
Kq6.prototype.push=function(X,t){var G=this.map;G.has(X)&&(this.multi||(this.multi=new Map),this.multi.set(t,G.get(X)));G.set(X,t)};
Kq6.prototype.pop=function(X){var t=this.map,G=t.get(X),y;G!==void 0&&((y=this.multi)==null?0:y.has(G))?(t.set(X,this.multi.get(G)),this.multi.delete(G)):t.delete(X);return G};_.pY.debugName="nsTGHd";_.rn.debugName="tbhMcf";_.Nd.debugName="zyMFzb";_.P0.debugName="vI1rtf";_.cLw={OUT_OF_ORDER_HOOK_CALL:function(X){return Error("sc`"+X)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("tc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("uc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("vc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(X,t){return Error("wc`"+((t===void 0?0:t)?"IDOM":"Reactive")+"`"+X)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(X,t){return Error("xc`"+X+"`"+t)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(X){return Error("yc`"+X)},
USE_ELEMENT_NOT_ASSIGNED:function(X){return Error("zc`"+String(X))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(X){return Error("Ac`"+String(X))}};WXv=Vbv;var RX6=Symbol("Bc");yLf({beforeRender:function(X){var t=_.nt(X.effectContext);try{var G;((G=X.__syncEffects)==null?0:G.length)&&LqV(X.__syncEffects)}finally{_.nt(t)}},
didPatch:function(X){var t=_.nt(X.effectContext);try{var G;((G=X.__syncEffects)==null?0:G.length)&&LqV(X.__syncEffects)}finally{_.nt(t)}},
didUnmount:function(X){var t;((t=X.hooks)==null?0:t.length)&&X.hooks.forEach(iEV)}});var pOz,rv4,Nj4;pOz=_.tA.window;_.xS=(pOz==null?void 0:(rv4=pOz.yt)==null?void 0:rv4.config_)||(pOz==null?void 0:(Nj4=pOz.ytcfg)==null?void 0:Nj4.data_)||{};_.dl("yt.config_",_.xS);var Pxt={},x80=[];_.NJ=function(X){var t=_.f1.apply(1,arguments);var G=Error.call(this,X);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.args=[].concat(_.RY(t));Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(_.NJ,Error);var Mah=function(X,t,G){this.actionName=X;this.optionalAction=t===void 0?!1:t;this.args=G===void 0?null:G;this.returnValue=[]};_.ja=function(X){this.name=X};_.yN=new _.ja("signalAction");var ot_=/^[\w.]*$/,tQA={q:!0,search_query:!0},$Y0=String(XPA);var gA;gA=Symbol("Cc");_.FB=function(X){this.name=X};
_.FB.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var JEV=function(X){this.key=X},VQY=function(X){this.deferredKey=X},ntJ=function(){var X=this;
this.providers=new Map;this.JSC$10383_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(X.providers)}}};
ntJ.prototype.addProvider=function(X){this.providers.set(X.provide,X);var t=this.JSC$10383_deferred.get(X.provide);if(t)try{t.resolver(this.resolve(X.provide))}catch(G){t.rejector(G)}};
ntJ.prototype.resolve=function(X){return X instanceof VQY?EAq(this,X):X instanceof JEV?Ujq(this,X.key,[],!0):Ujq(this,X,[])};
var EAq=function(X,t){t=t.deferredKey;if(X.JSC$10383_deferred.has(t))return X.JSC$10383_deferred.get(t).promise;var G={};G.promise=new Promise(function(y,w){G.resolver=y;G.rejector=w});
X.JSC$10383_deferred.set(t,G);return G.promise},Ujq=function(X,t,G,y){y=y===void 0?!1:y;
if(G.indexOf(t)>-1)throw Error("Dc`"+t);if(X.cachedValues.has(t))return X.cachedValues.get(t);if(!X.providers.has(t)){if(y)return;throw Error("Ec`"+t);}y=X.providers.get(t);G.push(t);if(y.useValue!==void 0)var w=y.useValue;else if(y.useFactory)w=y[gA]?mj4(X,y[gA],G):[],w=y.useFactory.apply(y,_.RY(w));else if(y.useClass){w=y.useClass;var z=w[gA]?mj4(X,w[gA],G):[];w=new (Function.prototype.bind.apply(w,[null].concat(_.RY(z))))}else throw Error("Fc`"+t);G.pop();y.skipCache||X.cachedValues.set(t,w);return w},
mj4=function(X,t,G){return t?t.map(function(y){return y instanceof JEV?Ujq(X,y.key,G,!0):Ujq(X,y,G)}):[]};var Bkh;var wS=new _.FB("ENDPOINT_HANDLER_TOKEN");_.zj=new _.ja("urlEndpoint");var RPq=function(){this.data=[];this.cachedPackedInt52=-1};
RPq.prototype.set=function(X,t){t=t===void 0?!0:t;0<=X&&X<52&&Number.isInteger(X)&&this.data[X]!==t&&(this.data[X]=t,this.cachedPackedInt52=-1)};
RPq.prototype.get=function(X){return!!this.data[X]};
var ihq=function(X){X.cachedPackedInt52===-1&&(X.cachedPackedInt52=X.data.reduce(function(t,G,y){return t+(G?Math.pow(2,y):0)},0));
return X.cachedPackedInt52};var huh=function(X){var t=LuP;X=X===void 0?_.GA("yt.ads.biscotti.lastId_")||"":X;var G=Object,y=G.assign,w={};w.dt=mlz;w.flash="0";a:{try{var z=t.JSC$10388_win_.top.location.href}catch(w6){z=2;break a}z=z?z===t.doc_.location.href?0:1:2}w=(w.frm=z,w);try{w.u_tz=-(new Date).getTimezoneOffset();try{var B=wE.history.length}catch(w6){B=0}w.u_his=B;var V;w.u_h=(V=wE.screen)==null?void 0:V.height;var b;w.u_w=(b=wE.screen)==null?void 0:b.width;var e;w.u_ah=(e=wE.screen)==null?void 0:e.availHeight;var g;w.u_aw=
(g=wE.screen)==null?void 0:g.availWidth;var F;w.u_cd=(F=wE.screen)==null?void 0:F.colorDepth}catch(w6){}B=t.JSC$10388_win_;try{var T=B.screenX;var D=B.screenY}catch(w6){}try{var h=B.outerWidth;var u=B.outerHeight}catch(w6){}try{var W=B.innerWidth;var c=B.innerHeight}catch(w6){}try{var P=B.screenLeft;var l=B.screenTop}catch(w6){}try{W=B.innerWidth,c=B.innerHeight}catch(w6){}try{var R=B.screen.availWidth;var L=B.screen.availTop}catch(w6){}T=[P,l,T,D,R,L,h,u,W,c];D=xVA(!1,t.JSC$10388_win_.top);h={};
var x=x===void 0?_.tA:x;u=new RPq;"SVGElement"in x&&"createElementNS"in x.document&&u.set(0);W=Noq();W["allow-top-navigation-by-user-activation"]&&u.set(1);W["allow-popups-to-escape-sandbox"]&&u.set(2);x.crypto&&x.crypto.subtle&&u.set(3);"TextDecoder"in x&&"TextEncoder"in x&&u.set(4);x=ihq(u);t=(h.bc=x,h.bih=D.height,h.biw=D.width,h.brdim=T.join(),h.vis=mtl(t.doc_),h.wgl=!!wE.WebGLRenderingContext,h);G=y.call(G,w,t);G.ca_type="image";X&&(G.bid=X);return G},LuP=new function(){var X=window.document;
this.JSC$10388_win_=window;this.doc_=X};
_.dl("yt.ads_.signals_.getAdSignalsString",function(X){return GiG(huh(X))});_.YE();navigator.userAgent.indexOf(" (CrKey ");var jaf="XMLHttpRequest"in _.tA?function(){return new XMLHttpRequest}:null;var vAR="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),aUe=[].concat(_.RY(vAR),["client_dev_set_cookie"]);var SlG={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"},Tkh="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(_.RY(vAR)),Wxv=!1,Ylh=_.ZqE,ui0=DY6;var ySv=[{messageFn:function(X){return"Cannot read property '"+X.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(X){return"Cannot call '"+X.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(X){return X.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var lUo={messageWeights:[],callbackWeights:[{callback:NkE,weight:500},{callback:PsG,weight:500}]};var xjR=function(){this.callbackWeights=[];this.messageWeights=[]},fUB,Gzv=function(){if(!fUB){var X=fUB=new xjR;
X.messageWeights.length=0;X.callbackWeights.length=0;Vd_(X,lUo)}return fUB},Vd_=function(X,t){t.messageWeights&&X.messageWeights.push.apply(X.messageWeights,t.messageWeights);
t.callbackWeights&&X.callbackWeights.push.apply(X.callbackWeights,t.callbackWeights)};_.sx(_.Oc,_.po);_.Oc.prototype.subscribe=function(X,t,G){var y=this.topics_[X];y||(y=this.topics_[X]=[]);var w=this.JSC$10412_key_;this.subscriptions_[w]=X;this.subscriptions_[w+1]=t;this.subscriptions_[w+2]=G;this.JSC$10412_key_=w+3;y.push(w);return w};
var MPq=function(X){var t=oWJ,G=!1,y=t.subscribe("handleError",function(w){G||(G=!0,this.unsubscribeByKey(y),X.apply(void 0,arguments))},t)};
_.Oc.prototype.unsubscribe=function(X,t,G){if(X=this.topics_[X]){var y=this.subscriptions_;if(X=X.find(function(w){return y[w+1]==t&&y[w+2]==G}))return this.unsubscribeByKey(X)}return!1};
_.Oc.prototype.unsubscribeByKey=function(X){var t=this.subscriptions_[X];if(t){var G=this.topics_[t];this.publishDepth_!=0?(this.pendingKeys_.push(X),this.subscriptions_[X+1]=function(){}):(G&&_.vY(G,X),delete this.subscriptions_[X],delete this.subscriptions_[X+1],delete this.subscriptions_[X+2])}return!!t};
_.Oc.prototype.publish=function(X,t){var G=this.topics_[X];if(G){var y=Array(arguments.length-1),w=arguments.length,z;for(z=1;z<w;z++)y[z-1]=arguments[z];if(this.async_)for(z=0;z<G.length;z++)w=G[z],Xqh(this.subscriptions_[w+1],this.subscriptions_[w+2],y);else{this.publishDepth_++;try{for(z=0,w=G.length;z<w&&!this.isDisposed();z++){var B=G[z];this.subscriptions_[B+1].apply(this.subscriptions_[B+2],y)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;G=this.pendingKeys_.pop();)this.unsubscribeByKey(G)}}return z!=
0}return!1};
var Xqh=function(X,t,G){_.UH(function(){X.apply(t,G)})};
_.Oc.prototype.clear=function(X){if(X){var t=this.topics_[X];t&&(t.forEach(this.unsubscribeByKey,this),delete this.topics_[X])}else this.subscriptions_.length=0,this.topics_={}};
_.Oc.prototype.getCount=function(X){if(X){var t=this.topics_[X];return t?t.length:0}X=0;for(t in this.topics_)X+=this.getCount(t);return X};
_.Oc.prototype.disposeInternal=function(){_.Oc.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var oWJ=new _.Oc;var sr=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(sr,_.eB);sr.prototype.getColdHashData=function(){return _.aQ(this,3)};
sr.prototype.getHotHashData=function(){return _.aQ(this,5)};
sr.prototype.setHotHashData=function(X){return _.rp(this,5,X)};var $rG=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S($rG,_.eB);var qdV=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(qdV,_.eB);_.H=qdV.prototype;_.H.getDeviceId=function(){return _.aQ(this,6)};
_.H.getExperimentIds=function(X){var t=_.wN(this,9,_.FH,3,!0);Eq(t,X);return t[X]};
_.H.getPlayerType=function(){return _.lz(this,36)};
_.H.setHomeGroupInfo=function(X){return _.Oi(this,81,X)};
_.H.clearLocationPlayabilityToken=function(){return _.Y7(this,89)};var QG=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(QG,_.eB);QG.prototype.setKey=function(X){return _.rp(this,1,X)};
QG.prototype.getValue=function(){return Me(this,2,Kwh)};
var Kwh=[2,3,4,5,6];var $_e=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S($_e,_.eB);$_e.prototype.setTrackingParams=function(X){return _.Y7(this,1,_.PS(X,!1))};var CpG=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(CpG,_.eB);var ypV=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ypV,_.eB);ypV.prototype.getExperimentIds=function(X){var t=_.wN(this,5,_.$zJ,3,!0);Eq(t,X);return t[X]};var ph=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ph,_.eB);ph.prototype.getToken=function(){return _.Ko(this,2)};
ph.prototype.setToken=function(X){return _.rp(this,2,X)};var WO=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(WO,_.eB);WO.prototype.setSafetyMode=function(X){return _.AG(this,5,X)};var ux=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ux,_.eB);ux.prototype.setClient=function(X){return _.Oi(this,1,X)};var G8v={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 tlf;_.ac=function(){var X=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.tA.addEventListener("beforeinstallprompt",function(t){t.preventDefault();X.deferredInstallPrompt=t});
_.tA.addEventListener("appinstalled",function(){X.appInstalledEventFired=!0},{once:!0})};
tlf=function(){if(!_.tA.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.tA.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.tA.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.tA.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.tA.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(X){return"WEB_DISPLAY_MODE_UNKNOWN"}};var HpA=function(){this.syncHeaders=!0},o10=function(X){var t={},G=[];
"USER_SESSION_ID"in _.xS&&G.push({key:"u",value:_.Md("USER_SESSION_ID")});if(G=_.Ces(G))t.Authorization=G,G=X=X==null?void 0:X.sessionIndex,G===void 0&&(G=Number(_.Md("SESSION_INDEX",0)),G=isNaN(G)?0:G),_.A("voice_search_auth_header_removal")||(t["X-Goog-AuthUser"]=G.toString()),"INNERTUBE_HOST_OVERRIDE"in _.xS||(t["X-Origin"]=window.location.origin),X===void 0&&"DELEGATED_SESSION_ID"in _.xS&&(t["X-Goog-PageId"]=_.Md("DELEGATED_SESSION_ID"));return t};var tit={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Tu=_.GA("ytglobal.prefsUserPrefsPrefs_")||{},GjP;_.dl("ytglobal.prefsUserPrefsPrefs_",Tu);_.A8=function(){this.cookieName=_.Md("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Md("ALT_PREF_COOKIE_DOMAIN","youtube.com");var X=_.QQ.get(this.cookieName,void 0);X&&this.parse(X)};
_.cP=function(){GjP||(GjP=new _.A8);return GjP};
_.A8.prototype.get=function(X,t){yaR(X);wqJ(X);X=Tu[X]!==void 0?Tu[X].toString():null;return X!=null?X:t?t:""};
_.A8.prototype.set=function(X,t){yaR(X);wqJ(X);if(t==null)throw Error("Ic");Tu[X]=t.toString()};
_.A8.prototype.getFlag=function(X){return!!((zMh("f"+(Math.floor(X/31)+1))||0)&1<<X%31)};
_.pq=function(X,t,G){X="f"+(Math.floor(t/31)+1);t=1<<t%31;var y=zMh(X)||0;y=G?y|t:y&~t;y===0?delete Tu[X]:(G=y.toString(16),Tu[X]=G.toString())};
_.A8.prototype.remove=function(X){yaR(X);wqJ(X);delete Tu[X]};
_.A8.prototype.save=function(){var X=!0;_.A("web_secure_pref_cookie_killswitch")&&(X=!1);_.Iu(this.cookieName,this.dump(),63072E3,this.cookieDomain,X)};
_.A8.prototype.clear=function(){_.RH.clear(Tu)};
_.A8.prototype.dump=function(){var X=[],t;for(t in Tu)Tu.hasOwnProperty(t)&&X.push(t+"="+encodeURIComponent(String(Tu[t])));return X.join("&")};
var wqJ=function(X){if(/^f([1-9][0-9]*)$/.test(X))throw Error("Jc`"+X);},yaR=function(X){if(!/^\w+$/.test(X))throw Error("Kc`"+X);
},zMh=function(X){X=Tu[X]!==void 0?Tu[X].toString():null;
return X!=null&&/^[A-Fa-f0-9]+$/.test(X)?parseInt(X,16):null};
_.A8.prototype.parse=function(X){X=decodeURIComponent(X).split("&");for(var t=0;t<X.length;t++){var G=X[t].split("="),y=G[0];(G=G[1])&&(Tu[y]=G.toString())}};var l0v={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"},wyv={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},zl6={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},f0G={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var qI;_.YX=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.PO=function(X,t,G){return X.addJob(t,0,G)};
_.YX.prototype.addLowPriorityJob=function(X,t){return this.addJob(X,1,t)};
_.Rs=function(X,t,G){return X.addJob(t,2,G)};
_.f5=function(X,t,G){return X.addJob(t,3,G)};
_.CX=function(X,t,G){return X.addJob(t,4,G)};
qI=function(X){var t=_.GA("yt.scheduler.instance.addImmediateJob");t?t(X):X()};
_.YX.prototype.debounce=function(X,t,G){var y=this,w=0,z=function(){w&&y.cancelJob(w);w=y.addJob(X,t,G);y.cancelDebouncedJobMap.set(z,w)};
return z};
_.YX.prototype.cancelThrottle=function(X){(X=this.cancelThrottledJobMap.get(X))&&X()};var sy=function(){_.YX.apply(this,arguments)};
_.S(sy,_.YX);_.va=function(){sy.instance||(sy.instance=new sy);return sy.instance};
sy.prototype.addJob=function(X,t,G){G!==void 0&&Number.isNaN(Number(G))&&(G=void 0);var y=_.GA("yt.scheduler.instance.addJob");return y?y(X,t,G):G===void 0?(X(),NaN):_.SH(X,G||0)};
sy.prototype.cancelJob=function(X){if(X===void 0||!Number.isNaN(Number(X))){var t=_.GA("yt.scheduler.instance.cancelJob");t?t(X):_.Zu(X)}};
sy.prototype.start=function(){var X=_.GA("yt.scheduler.instance.start");X&&X()};
sy.prototype.pause=function(){var X=_.GA("yt.scheduler.instance.pause");X&&X()};
_.vz=_.va();_.Px.prototype.set=function(X,t){t===void 0?this.mechanism.remove(X):this.mechanism.set(X,(0,_.v6)(t))};
_.Px.prototype.get=function(X){try{var t=this.mechanism.get(X)}catch(G){return}if(t!==null)try{return JSON.parse(t)}catch(G){throw"Storage: Invalid value was encountered";}};
_.Px.prototype.remove=function(X){this.mechanism.remove(X)};var D4=function(X){this.mechanism=X};
_.sx(D4,_.Px);var Hlq=function(X){this.data=X},o5q=function(X){return X===void 0||X instanceof Hlq?X:new Hlq(X)};
D4.prototype.set=function(X,t){D4.superClass_.set.call(this,X,o5q(t))};
D4.prototype.getWrapper=function(X){X=D4.superClass_.get.call(this,X);if(X===void 0||X instanceof Object)return X;throw"Storage: Invalid value was encountered";};
D4.prototype.get=function(X){if(X=this.getWrapper(X)){if(X=X.data,X===void 0)throw"Storage: Invalid value was encountered";}else X=void 0;return X};_.sx(Ec,D4);_.Jaq=function(X){var t=X.creation;X=X.expiration;return!!X&&X<_.YE()||!!t&&t>_.YE()};
Ec.prototype.set=function(X,t,G){if(t=o5q(t)){if(G){if(G<_.YE()){Ec.prototype.remove.call(this,X);return}t.expiration=G}t.creation=_.YE()}Ec.superClass_.set.call(this,X,t)};
Ec.prototype.getWrapper=function(X,t){var G=Ec.superClass_.getWrapper.call(this,X);if(G)if(!t&&_.Jaq(G))Ec.prototype.remove.call(this,X);else return G};var Sa=function(){};
Sa.prototype.next=function(){return h8};
var h8={done:!0,value:void 0},Z4=function(X){return{value:X,done:!1}};
Sa.prototype.__iterator__=function(){return this};
_.BSP=function(X){if(X instanceof Sa)return X;if(typeof X.__iterator__=="function")return X.__iterator__(!1);if(_.xJ(X)){var t=0,G=new Sa;G.next=function(){for(;;){if(t>=X.length)return h8;if(t in X)return Z4(X[t++]);t++}};
return G}throw Error("Lc");};var n5R=function(X){if(X instanceof qT||X instanceof CP||X instanceof KP)return X;if(typeof X.next=="function")return new qT(function(){return X});
if(typeof X[Symbol.iterator]=="function")return new qT(function(){return X[Symbol.iterator]()});
if(typeof X.__iterator__=="function")return new qT(function(){return X.__iterator__()});
throw Error("Mc");},qT=function(X){this.func_=X};
qT.prototype.__iterator__=function(){return new CP(this.func_())};
qT.prototype[Symbol.iterator]=function(){return new KP(this.func_())};
qT.prototype.toEs6=function(){return new KP(this.func_())};
var CP=function(X){this.JSC$10496_iter_=X};
_.S(CP,Sa);CP.prototype.next=function(){return this.JSC$10496_iter_.next()};
CP.prototype[Symbol.iterator]=function(){return new KP(this.JSC$10496_iter_)};
CP.prototype.toEs6=function(){return new KP(this.JSC$10496_iter_)};
var KP=function(X){qT.call(this,function(){return X});
this.JSC$10499_iter_=X};
_.S(KP,qT);KP.prototype.next=function(){return this.JSC$10499_iter_.next()};var ViB=function(){};var Oy=function(){};
_.sx(Oy,ViB);Oy.prototype.getCount=function(){for(var X=0,t=_.J(this),G=t.next();!G.done;G=t.next())X++;return X};
Oy.prototype[Symbol.iterator]=function(){return n5R(this.__iterator__(!0)).toEs6()};
Oy.prototype.clear=function(){var X=Array.from(this);X=_.J(X);for(var t=X.next();!t.done;t=X.next())this.remove(t.value)};_.sx(Uc,Oy);_.H=Uc.prototype;_.H.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var X=this.storage_;if(X)try{X.setItem("__sak","1");X.removeItem("__sak");var t=!0}catch(G){t=G instanceof DOMException&&(G.name==="QuotaExceededError"||G.code===22||G.code===1014||G.name==="NS_ERROR_DOM_QUOTA_REACHED")&&X&&X.length!==0}else t=!1;this.cachedIsStorageAvailable_=t}return this.cachedIsStorageAvailable_};
_.H.set=function(X,t){uk(this);try{this.storage_.setItem(X,t)}catch(G){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.H.get=function(X){uk(this);X=this.storage_.getItem(X);if(typeof X!=="string"&&X!==null)throw"Storage mechanism: Invalid value was encountered";return X};
_.H.remove=function(X){uk(this);this.storage_.removeItem(X)};
_.H.getCount=function(){uk(this);return this.storage_.length};
_.H.__iterator__=function(X){uk(this);var t=0,G=this.storage_,y=new Sa;y.next=function(){if(t>=G.length)return h8;var w=G.key(t++);if(X)return Z4(w);w=G.getItem(w);if(typeof w!=="string")throw"Storage mechanism: Invalid value was encountered";return Z4(w)};
return y};
_.H.clear=function(){uk(this);this.storage_.clear()};
_.H.key=function(X){uk(this);return this.storage_.key(X)};
var uk=function(X){if(X.storage_==null)throw Error("Nc");X.isAvailable()||GV(Error("Nc"))};_.sx(XKJ,Uc);_.sx($Ql,Uc);_.sx(mU,Oy);mU.prototype.set=function(X,t){this.mechanism_.set(this.JSC$10514_prefix_+X,t)};
mU.prototype.get=function(X){return this.mechanism_.get(this.JSC$10514_prefix_+X)};
mU.prototype.remove=function(X){this.mechanism_.remove(this.JSC$10514_prefix_+X)};
mU.prototype.__iterator__=function(X){var t=this.mechanism_[Symbol.iterator](),G=this,y=new Sa;y.next=function(){var w=t.next();if(w.done)return w;for(w=w.value;w.slice(0,G.JSC$10514_prefix_.length)!=G.JSC$10514_prefix_;){w=t.next();if(w.done)return w;w=w.value}return Z4(X?w.slice(G.JSC$10514_prefix_.length):G.mechanism_.get(w))};
return y};_.M1=function(X){this.expiringStorage_=(X=_.t7E(X))?new Ec(X):null;this.JSC$10518_domain_=document.domain||window.location.hostname};
_.M1.prototype.set=function(X,t,G,y){G=G||31104E3;this.remove(X);if(this.expiringStorage_)try{this.expiringStorage_.set(X,t,Date.now()+G*1E3);return}catch(z){}var w="";if(y)try{w=escape((0,_.v6)(t))}catch(z){return}else w=escape(t);_.Iu(X,w,G,this.JSC$10518_domain_)};
_.M1.prototype.get=function(X,t){var G=void 0,y=!this.expiringStorage_;if(!y)try{G=this.expiringStorage_.get(X)}catch(w){y=!0}if(y&&(G=_.QQ.get(X,void 0))&&(G=unescape(G),t))try{G=JSON.parse(G)}catch(w){this.remove(X),G=void 0}return G};
_.M1.prototype.remove=function(X){this.expiringStorage_&&this.expiringStorage_.remove(X);_.Lxw(X,"/",this.JSC$10518_domain_)};
_.M1.prototype.getCreationTime=function(X){return this.expiringStorage_&&(X=(this.expiringStorage_.getWrapper(X)||{}).creation,typeof X==="number")?X:null};var ygh=function(){var X;return function(){X||(X=new _.M1("ytidb"));return X}}();var z7s;_.iF=[];z7s=!1;var SGf=HgY||o0A;var Q3={},blS=(Q3.AUTH_INVALID="No user identifier specified.",Q3.EXPLICIT_ABORT="Transaction was explicitly aborted.",Q3.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Q3.MISSING_INDEX="Index not created.",Q3.MISSING_OBJECT_STORES="Object stores not created.",Q3.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Q3.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Q3.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Q3.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Q3.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Q3.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Q3.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Q3),IE={},kje=(IE.AUTH_INVALID="ERROR",IE.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",IE.EXPLICIT_ABORT="IGNORED",
IE.IDB_NOT_SUPPORTED="ERROR",IE.MISSING_INDEX="WARNING",IE.MISSING_OBJECT_STORES="ERROR",IE.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",IE.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",IE.QUOTA_EXCEEDED="WARNING",IE.QUOTA_MAYBE_EXCEEDED="WARNING",IE.UNKNOWN_ABORT="WARNING",IE.INCOMPATIBLE_DB_VERSION="WARNING",IE),WZ={},d_e=(WZ.AUTH_INVALID=!1,WZ.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,WZ.EXPLICIT_ABORT=!1,WZ.IDB_NOT_SUPPORTED=!1,WZ.MISSING_INDEX=!1,WZ.MISSING_OBJECT_STORES=!1,WZ.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,WZ.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,WZ.QUOTA_EXCEEDED=!1,WZ.QUOTA_MAYBE_EXCEEDED=!0,WZ.UNKNOWN_ABORT=!0,WZ.INCOMPATIBLE_DB_VERSION=!1,WZ),MJ=function(X,t,G,y,w){t=t===void 0?{}:t;G=G===void 0?blS[X]:G;y=y===void 0?kje[X]:y;w=w===void 0?d_e[X]:w;_.NJ.call(this,G,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:X},t));this.type=X;this.message=G;this.level=y;this.retryable=w;Object.setPrototypeOf(this,MJ.prototype)};
_.S(MJ,_.NJ);var eMo=function(X,t){MJ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:t,foundObjectStores:X},blS.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,eMo.prototype)};
_.S(eMo,MJ);var B9V=function(X,t){var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.index=X;this.objectStore=t;Object.setPrototypeOf(this,B9V.prototype)};
_.S(B9V,Error);var n0l=["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 Gx=function(X){this.executor=X},tG=function(X){var t=this;
this.state={status:"PENDING"};this.JSC$10546_onFulfilled=[];this.JSC$10546_onRejected=[];X=X.executor;var G=function(w){if(t.state.status==="PENDING"){t.state={status:"FULFILLED",value:w};w=_.J(t.JSC$10546_onFulfilled);for(var z=w.next();!z.done;z=w.next())z=z.value,z()}},y=function(w){if(t.state.status==="PENDING"){t.state={status:"REJECTED",
reason:w};w=_.J(t.JSC$10546_onRejected);for(var z=w.next();!z.done;z=w.next())z=z.value,z()}};
try{X(G,y)}catch(w){y(w)}};
tG.all=function(X){return new tG(new Gx(function(t,G){var y=[],w=X.length;w===0&&t(y);for(var z={i$jscomp$463:0};z.i$jscomp$463<X.length;z={i$jscomp$463:z.i$jscomp$463},++z.i$jscomp$463)tG.resolve(X[z.i$jscomp$463]).then(function(B){return function(V){y[B.i$jscomp$463]=V;w--;w===0&&t(y)}}(z)).catch(function(B){G(B)})}))};
tG.resolve=function(X){return new tG(new Gx(function(t,G){X instanceof tG?X.then(t,G):t(X)}))};
tG.reject=function(X){return new tG(new Gx(function(t,G){G(X)}))};
tG.prototype.then=function(X,t){var G=this,y=X!=null?X:kGv,w=t!=null?t:bgw;return new tG(new Gx(function(z,B){G.state.status==="PENDING"?(G.JSC$10546_onFulfilled.push(function(){jOq(G,G,y,z,B)}),G.JSC$10546_onRejected.push(function(){g54(G,G,w,z,B)})):G.state.status==="FULFILLED"?jOq(G,G,y,z,B):G.state.status==="REJECTED"&&g54(G,G,w,z,B)}))};
tG.prototype.catch=function(X){return this.then(void 0,X)};
var jOq=function(X,t,G,y,w){try{if(X.state.status!=="FULFILLED")throw Error("Qc");var z=G(X.state.value);z instanceof tG?FXh(X,t,z,y,w):y(z)}catch(B){w(B)}},g54=function(X,t,G,y,w){try{if(X.state.status!=="REJECTED")throw Error("Rc");
var z=G(X.state.reason);z instanceof tG?FXh(X,t,z,y,w):y(z)}catch(B){w(B)}},FXh=function(X,t,G,y,w){t===G?w(new TypeError("Sc")):G.then(function(z){z instanceof tG?FXh(X,t,z,y,w):y(z)},function(z){w(z)})};var cZ;cZ=window;_.gl=cZ.ytcsi&&cZ.ytcsi.now?cZ.ytcsi.now:cZ.performance&&cZ.performance.timing&&cZ.performance.now&&cZ.performance.timing.navigationStart?function(){return cZ.performance.timing.navigationStart+cZ.performance.now()}:function(){return(new Date).getTime()};var wl=function(X,t){this.JSC$10558_wrapped=X;this.options=t;this.transactionCount=0;this.startedMs=Math.round((0,_.gl)());this.hasUnknownAbortedTransaction=!1},YAP,sOe,NT,hMz;
wl.prototype.add=function(X,t,G){return _.Bz(this,[X],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore(X).add(t,G)})};
wl.prototype.clear=function(X){return _.Bz(this,[X],{mode:"readwrite",enableRetries:!0},function(t){return t.objectStore(X).clear()})};
wl.prototype.close=function(){this.JSC$10558_wrapped.close();var X;((X=this.options)==null?0:X.closed)&&this.options.closed()};
wl.prototype.count=function(X,t){return _.Bz(this,[X],{mode:"readonly",enableRetries:!0},function(G){return G.objectStore(X).count(t)})};
var tv=function(X,t,G){X=X.JSC$10558_wrapped.createObjectStore(t,G);return new pP(X)};
wl.prototype.delete=function(X,t){return _.Bz(this,[X],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore(X).delete(t)})};
var TSq=function(X,t){return _.Bz(X,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore("ResponseStore").index("byInterface").delete(t)})};
wl.prototype.get=function(X,t){return _.Bz(this,[X],{mode:"readonly",enableRetries:!0},function(G){return G.objectStore(X).get(t)})};
wl.prototype.getAll=function(X,t,G){return _.Bz(this,[X],{mode:"readonly",enableRetries:!0},function(y){return y.objectStore(X).getAll(t,G)})};
wl.prototype.put=function(X,t,G){return _.Bz(this,[X],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore(X).put(t,G)})};
wl.prototype.objectStoreNames=function(){return Array.from(this.JSC$10558_wrapped.objectStoreNames)};
_.Bz=function(X,t,G,y){var w,z,B,V,b,e,g,F,T,D,h,u;return _.n(function(W){switch(W.nextAddress){case 1:var c={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof G==="string"?c.mode=G:Object.assign(c,G);w=c;X.transactionCount++;z=w.enableRetries?3:1;B=0;case 2:if(V){W.jumpTo(4);break}B++;b=Math.round((0,_.gl)());_.CL(W,5);e=X.JSC$10558_wrapped.transaction(t,w.mode);c=W.yield;var P=new g0v(e);P=Aah(P,y);return c.call(W,P,7);case 7:return g=W.yieldResult,F=Math.round((0,_.gl)()),
YAP(X,b,F,B,void 0,t.join(),w),W.return(g);case 5:T=_.IY(W);D=Math.round((0,_.gl)());h=V7E(T,X.JSC$10558_wrapped.name,t.join(),X.JSC$10558_wrapped.version);if((u=h instanceof MJ&&!h.retryable)||B>=z)YAP(X,b,D,B,h,t.join(),w),V=h;W.jumpTo(2);break;case 4:return W.return(Promise.reject(V))}})};
YAP=function(X,t,G,y,w,z,B){t=G-t;w?(w instanceof MJ&&(w.type==="QUOTA_EXCEEDED"||w.type==="QUOTA_MAYBE_EXCEEDED")&&vx("QUOTA_EXCEEDED",{dbName:lF(X.JSC$10558_wrapped.name),objectStoreNames:z,transactionCount:X.transactionCount,transactionMode:B.mode}),w instanceof MJ&&w.type==="UNKNOWN_ABORT"&&(G-=X.startedMs,G<0&&G>=2147483648&&(G=0),vx("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:z,transactionDuration:t,transactionCount:X.transactionCount,dbDuration:G}),X.hasUnknownAbortedTransaction=!0),
sOe(X,!1,y,z,t,B.tag),_.Ls(w)):sOe(X,!0,y,z,t,B.tag)};
sOe=function(X,t,G,y,w,z){vx("TRANSACTION_ENDED",{objectStoreNames:y,connectionHasUnknownAbortedTransaction:X.hasUnknownAbortedTransaction,duration:w,isSuccessful:t,tryCount:G,tag:z===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":z})};
wl.prototype.getVersion=function(){return this.JSC$10558_wrapped.version};
wl.prototype.getName=function(){return this.JSC$10558_wrapped.name};
var pP=function(X){this.JSC$10572_wrapped=X};
pP.prototype.add=function(X,t){return yw(this.JSC$10572_wrapped.add(X,t))};
pP.prototype.autoIncrement=function(){return this.JSC$10572_wrapped.autoIncrement};
pP.prototype.clear=function(){return yw(this.JSC$10572_wrapped.clear()).then(function(){})};
var yG=function(X,t,G){X.JSC$10572_wrapped.createIndex(t,G,{unique:!1})};
pP.prototype.count=function(X){return yw(this.JSC$10572_wrapped.count(X))};
var D_q=function(X,t){return Vw(X,{query:t},function(G){return G.delete().then(function(){return G.continue()})}).then(function(){})};
pP.prototype.delete=function(X){return X instanceof IDBKeyRange?D_q(this,X):yw(this.JSC$10572_wrapped.delete(X))};
pP.prototype.get=function(X){return yw(this.JSC$10572_wrapped.get(X))};
pP.prototype.getAll=function(X,t){return"getAll"in IDBObjectStore.prototype?yw(this.JSC$10572_wrapped.getAll(X,t)):SAP(this,X,t)};
var SAP=function(X,t,G){var y=[];return Vw(X,{query:t},function(w){if(!(G!==void 0&&y.length>=G))return y.push(w.getValue()),w.continue()}).then(function(){return y})};
pP.prototype.index=function(X){try{return new rA(this.JSC$10572_wrapped.index(X))}catch(t){if(t instanceof Error&&t.name==="NotFoundError")throw new B9V(X,this.JSC$10572_wrapped.name);throw t;}};
pP.prototype.getName=function(){return this.JSC$10572_wrapped.name};
pP.prototype.keyPath=function(){return this.JSC$10572_wrapped.keyPath};
pP.prototype.put=function(X,t){return yw(this.JSC$10572_wrapped.put(X,t))};
var Vw=function(X,t,G){X=X.JSC$10572_wrapped.openCursor(t.query,t.direction);return hMz(X).then(function(y){return j$l(y,G)})},g0v=function(X){var t=this;
this.JSC$10580_wrapped=X;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(G,y){t.JSC$10580_wrapped.addEventListener("complete",function(){G()});
t.JSC$10580_wrapped.addEventListener("error",function(w){w.currentTarget===w.target&&y(t.JSC$10580_wrapped.error)});
t.JSC$10580_wrapped.addEventListener("abort",function(){var w=t.JSC$10580_wrapped.error;if(w)y(w);else if(!t.aborted){w=MJ;for(var z=t.JSC$10580_wrapped.objectStoreNames,B=[],V=0;V<z.length;V++){var b=z.item(V);if(b===null)throw Error("Tc");B.push(b)}w=new w("UNKNOWN_ABORT",{objectStoreNames:B.join(),dbName:t.JSC$10580_wrapped.db.name,mode:t.JSC$10580_wrapped.mode});y(w)}})})},Aah=function(X,t){var G=new Promise(function(y,w){try{t(X).then(function(z){y(z)}).catch(w)}catch(z){w(z),X.abort()}});
return Promise.all([G,X.done]).then(function(y){return _.J(y).next().value})};
g0v.prototype.abort=function(){this.JSC$10580_wrapped.abort();this.aborted=!0;throw new MJ("EXPLICIT_ABORT");};
g0v.prototype.objectStore=function(X){X=this.JSC$10580_wrapped.objectStore(X);var t=this.objectStoreCache.get(X);t||(t=new pP(X),this.objectStoreCache.set(X,t));return t};
var rA=function(X){this.JSC$10582_wrapped=X};
rA.prototype.count=function(X){return yw(this.JSC$10582_wrapped.count(X))};
rA.prototype.delete=function(X){return _.Fl(this,{query:X},function(t){return t.delete().then(function(){return t.continue()})})};
rA.prototype.get=function(X){return yw(this.JSC$10582_wrapped.get(X))};
rA.prototype.getAll=function(X,t){return"getAll"in IDBIndex.prototype?yw(this.JSC$10582_wrapped.getAll(X,t)):Zlq(this,X,t)};
var Zlq=function(X,t,G){var y=[];return _.Fl(X,{query:t},function(w){if(!(G!==void 0&&y.length>=G))return y.push(w.getValue()),w.continue()}).then(function(){return y})};
rA.prototype.keyPath=function(){return this.JSC$10582_wrapped.keyPath};
rA.prototype.unique=function(){return this.JSC$10582_wrapped.unique};
_.Fl=function(X,t,G){X=X.JSC$10582_wrapped.openCursor(t.query===void 0?null:t.query,t.direction===void 0?"next":t.direction);return hMz(X).then(function(y){return j$l(y,G)})};
NT=function(X,t){this.request=X;this.cursor=t};
hMz=function(X){return yw(X).then(function(t){return t?new NT(X,t):null})};
NT.prototype.continue=function(X){this.cursor.continue(X);return hMz(this.request)};
NT.prototype.delete=function(){return yw(this.cursor.delete()).then(function(){})};
NT.prototype.getValue=function(){return this.cursor.value};
NT.prototype.update=function(X){return yw(this.cursor.update(X))};var PZ=function(X,t){this.name=X;this.options=t;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},qA4;
PZ.prototype.openDb=function(X,t,G){G=G===void 0?{}:G;return T9h(X,t,G)};
PZ.prototype.delete=function(X){X=X===void 0?{}:X;return _.Hz(this.name,X)};
qA4=function(X,t){return new MJ("INCOMPATIBLE_DB_VERSION",{dbName:X.name,oldVersion:X.options.version,newVersion:t})};
_.JG=function(X,t){if(!t)throw $7("openWithToken",lF(X.name));return X.open()};
PZ.prototype.open=function(){var X=this;if(!this.isCompatible)throw qA4(this);if(this.connectionPromise)return this.connectionPromise;var t,G=function(){X.connectionPromise===t&&(X.connectionPromise=void 0)},y={blocking:function(z){z.close()},
closed:G,terminated:G,upgrade:this.options.upgrade},w=function(){var z,B,V,b,e,g,F,T,D,h;return _.n(function(u){switch(u.nextAddress){case 1:return B=(z=Error().stack)!=null?z:"",_.CL(u,2),u.yield(X.openDb(X.name,X.options.version,y),4);case 4:for(var W=V=u.yieldResult,c=X.options,P=[],l=_.J(Object.keys(c.objectStores)),R=l.next();!R.done;R=l.next()){R=R.value;var L=c.objectStores[R],x=L.removedAtVersion===void 0?Number.MAX_VALUE:L.removedAtVersion;!(W.JSC$10558_wrapped.version>=L.addedAtVersion)||
W.JSC$10558_wrapped.version>=x||W.JSC$10558_wrapped.objectStoreNames.contains(R)||P.push(R)}b=P;if(b.length===0){u.jumpTo(5);break}e=Object.keys(X.options.objectStores);g=V.objectStoreNames();if(X.timesReopenedToFixMissingObjectStore<_.At("ytidb_reopen_db_retries",0))return X.timesReopenedToFixMissingObjectStore++,V.close(),_.Ls(new MJ("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:X.name,expectedObjectStores:e,foundObjectStores:g})),u.return(w());if(!(X.timesDeletedToFixMissingObjectStore<_.At("ytidb_remake_db_retries",
1))){u.jumpTo(6);break}X.timesDeletedToFixMissingObjectStore++;return u.yield(X.delete(),7);case 7:return _.Ls(new MJ("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:X.name,expectedObjectStores:e,foundObjectStores:g})),u.return(w());case 6:throw new eMo(g,e);case 5:return u.return(V);case 2:F=_.IY(u);if(F instanceof DOMException?F.name!=="VersionError":"DOMError"in self&&F instanceof DOMError?F.name!=="VersionError":!(F instanceof Object&&"message"in F)||F.message!=="An attempt was made to open a database using a lower version than the existing version."){u.jumpTo(8);
break}return u.yield(X.openDb(X.name,void 0,Object.assign({},y,{upgrade:void 0})),9);case 9:T=u.yieldResult;D=T.getVersion();if(X.options.version!==void 0&&D>X.options.version+1)throw T.close(),X.isCompatible=!1,qA4(X,D);return u.return(T);case 8:throw G(),F instanceof Error&&!_.A("ytidb_async_stack_killswitch")&&(F.stack=F.stack+"\n"+B.substring(B.indexOf("\n")+1)),V7E(F,X.name,"",(h=X.options.version)!=null?h:-1);}})};
return this.connectionPromise=t=w()};var AgV=new PZ("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(X,t){t(1)&&tv(X,"databases",{keyPath:"actualName"})}});var qGs,h7J=new function(){}(new function(){});new _.Kp;var CCe=function(X,t){PZ.call(this,X,t);this.options=t;au(X)};
_.S(CCe,PZ);var rgs=function(X,t){var G;return function(){G||(G=new CCe(X,t));return G}};
CCe.prototype.openDb=function(X,t,G){G=G===void 0?{}:G;return(this.options.shared?Q$J:uV6)(X,t,Object.assign({},G))};
CCe.prototype.delete=function(X){X=X===void 0?{}:X;return(this.options.shared?pK6:Il0)(this.name,X)};var KXS={},N9V=jD("ytGcfConfig",{objectStores:(KXS.coldConfigStore={addedAtVersion:1},KXS.hotConfigStore={addedAtVersion:1},KXS),shared:!1,upgrade:function(X,t){t(1)&&(yG(tv(X,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),yG(tv(X,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Ole=function(){_.po.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var X=_.GA("yt.gcf.config.hotUpdateCallbacks");X?(this.localHotConfigJobQueue=[].concat(_.RY(X)),this.sharedHotConfigJobQueue=X):(this.sharedHotConfigJobQueue=[],_.dl("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.S(Ole,_.po);Ole.prototype.disposeInternal=function(){for(var X=_.J(this.localHotConfigJobQueue),t=X.next();!t.done;t=X.next()){var G=this.sharedHotConfigJobQueue;t=G.indexOf(t.value);t>=0&&G.splice(t,1)}this.localHotConfigJobQueue.length=0;_.po.prototype.disposeInternal.call(this)};var mu=function(){var X=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Ole;this.TEST_ONLY={initializeConfigDb:function(){X.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return X.coldGlobalConfigGroup},
setHotConfigGroup:function(t){uEq(X,t)},
setHotHashData:function(t){X.setHotHashData(t)},
setColdConfigGroup:function(t){QOJ(X,t)},
getColdHashData:function(){return X.coldHashData},
getHotHashData:function(){return X.hotHashData},
getHotConfigGroup:function(){return X.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Iso()},
getExportedHotConfigGroup:function(){return Ey()},
getExportedColdHashData:function(){return _.GA("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.GA("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){WX4(X)},
resetInstance:function(){X.setHotHashData(void 0);ca4(X);delete mu.instance},
setDebounceTimer:function(t){X.debounceTimer=t},
getDebounceTimer:function(){return X.debounceTimer}}},pq4=function(){if(!mu.instance){var X=new mu;
mu.instance=X}return mu.instance},PCh=function(X){var t;
_.n(function(G){if(G.nextAddress==1)return _.A("start_client_gcf")||_.A("delete_gcf_config_db")?_.A("start_client_gcf")?G.yield(_.eD(),3):G.jumpTo(2):G.return();G.nextAddress!=2&&((t=G.yieldResult)&&_.rw()&&!_.A("delete_gcf_config_db")?(X.isConfigDbInitialized=!0,WX4(X)):(raY(X),NSe(X)));return _.A("delete_gcf_config_db")?G.yield(ig_(),0):G.jumpTo(0)})},R7=function(){var X;
return(X=Ey())!=null?X:_.Md("RAW_HOT_CONFIG_GROUP")},E5Y=function(X){var t,G,y,w,z,B;
return _.n(function(V){switch(V.nextAddress){case 1:if(X.hotGlobalConfigGroup)return V.return(Ey());if(!X.isConfigDbInitialized)return t=$7("getHotConfig IDB not initialized"),_.yQ(t),V.return(Promise.reject(t));G=k7();y=_.Md("TIME_CREATED_MS");if(!G){w=$7("getHotConfig token error");_.yQ(w);V.jumpTo(2);break}return V.yield(R7s(G),3);case 3:if((z=V.yieldResult)&&z.timestamp>y)return uEq(X,z.config),X.setHotHashData(z.hashData),V.return(Ey());case 2:NSe(X);if(!(G&&X.hotGlobalConfigGroup&&X.hotHashData)){V.jumpTo(4);
break}return V.yield(E0v(X.hotGlobalConfigGroup,X.hotHashData,G,y),4);case 4:return X.hotGlobalConfigGroup?V.return(Ey()):(B=new _.NJ("Config not available in ytConfig"),_.yQ(B),V.return(Promise.reject(B)))}})},m_q=function(X){var t,G,y,w,z,B;
return _.n(function(V){switch(V.nextAddress){case 1:if(X.coldGlobalConfigGroup)return V.return(Iso());if(!X.isConfigDbInitialized)return t=$7("getColdConfig IDB not initialized"),_.yQ(t),V.return(Promise.reject(t));G=k7();y=_.Md("TIME_CREATED_MS");if(!G){w=$7("getColdConfig");_.yQ(w);V.jumpTo(2);break}return V.yield(mQE(G),3);case 3:if((z=V.yieldResult)&&z.timestamp>y)return QOJ(X,z.config),U_J(X,z.configData),ca4(X,z.hashData),V.return(Iso());case 2:raY(X);if(!(G&&X.coldGlobalConfigGroup&&X.coldHashData&&
X.configData)){V.jumpTo(4);break}return V.yield(UQw(X.coldGlobalConfigGroup,X.coldHashData,X.configData,G,y),4);case 4:return X.coldGlobalConfigGroup?V.return(Iso()):(B=new _.NJ("Config not available in ytConfig"),_.yQ(B),V.return(Promise.reject(B)))}})},WX4=function(X){if(!X.hotGlobalConfigGroup||!X.coldGlobalConfigGroup){if(!k7()){var t=$7("scheduleGetConfigs");
_.yQ(t)}X.initJob||(X.initJob=_.vz.addLowPriorityJob(function(){return _.n(function(G){switch(G.nextAddress){case 1:return _.CL(G,2),G.yield(E5Y(X),4);case 4:_.zx(G,3);break;case 2:_.IY(G);case 3:return _.CL(G,5),G.yield(m_q(X),7);case 7:_.zx(G,6);break;case 5:_.IY(G);case 6:X.initJob&&(X.initJob=0),_.W$(G)}})},100))}},EIh=function(X,t,G){var y,w,z;
return _.n(function(B){switch(B.nextAddress){case 1:if(!_.A("start_client_gcf")){B.jumpTo(0);break}G&&uEq(X,G);X.setHotHashData(t);y=k7();if(!y){B.jumpTo(3);break}if(G){B.jumpTo(4);break}return B.yield(R7s(y),5);case 5:w=B.yieldResult,G=(z=w)==null?void 0:z.config;case 4:return B.yield(E0v(G,t,y),3);case 3:if(G)for(var V=G,b=_.J(X.configUpdateService.sharedHotConfigJobQueue),e=b.next();!e.done;e=b.next())e=e.value,e(V);_.W$(B)}})},UIY=function(X,t,G){var y,w,z,B;
return _.n(function(V){if(V.nextAddress==1){if(!_.A("start_client_gcf"))return V.jumpTo(0);ca4(X,t);return(y=k7())?G?V.jumpTo(4):V.yield(mQE(y),5):V.jumpTo(0)}V.nextAddress!=4&&(w=V.yieldResult,G=(z=w)==null?void 0:z.config);if(!G)return V.jumpTo(0);B=G.configData;return V.yield(UQw(G,t,B,y),0)})},BVs=function(){var X=pq4(),t=(0,_.gl)()-X.debounceTimer;
if(!(X.debounceTimer!==0&&t<_.At("send_config_hash_timer"))){t=_.GA("yt.gcf.config.coldConfigData");var G=_.GA("yt.gcf.config.hotHashData"),y=_.GA("yt.gcf.config.coldHashData");t&&G&&y&&(X.debounceTimer=(0,_.gl)());return{coldConfigData:t,hotHashData:G,coldHashData:y}}},raY=function(X){QOJ(X,_.Md("RAW_COLD_CONFIG_GROUP"));
ca4(X,_.Md("SERIALIZED_COLD_HASH_DATA"));var t;U_J(X,(t=X.coldGlobalConfigGroup)==null?void 0:t.configData)},NSe=function(X){uEq(X,_.Md("RAW_HOT_CONFIG_GROUP"));
X.setHotHashData(_.Md("SERIALIZED_HOT_HASH_DATA"))},uEq=function(X,t){X.hotGlobalConfigGroup=t;
_.dl("yt.gcf.config.hotConfigGroup",X.hotGlobalConfigGroup||null)},QOJ=function(X,t){X.coldGlobalConfigGroup=t;
_.dl("yt.gcf.config.coldConfigGroup",X.coldGlobalConfigGroup||null)};
mu.prototype.setHotHashData=function(X){this.hotHashData=X;_.dl("yt.gcf.config.hotHashData",this.hotHashData||null)};
var ca4=function(X,t){X.coldHashData=t;_.dl("yt.gcf.config.coldHashData",X.coldHashData||null)},U_J=function(X,t){X.configData=t;
_.dl("yt.gcf.config.coldConfigData",X.configData||null)},Ey=function(){return _.GA("yt.gcf.config.hotConfigGroup")},Iso=function(){return _.GA("yt.gcf.config.coldConfigGroup")};var q1={},RMB=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";q1.assign=function(X){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var G=t.shift();if(G){if(typeof G!=="object")throw new TypeError("Wc`"+G);for(var y in G)Object.prototype.hasOwnProperty.call(G,y)&&(X[y]=G[y])}}return X};
q1.shrinkBuf=function(X,t){if(X.length===t)return X;if(X.subarray)return X.subarray(0,t);X.length=t;return X};
var ilq={arraySet:function(X,t,G,y,w){if(t.subarray&&X.subarray)X.set(t.subarray(G,G+y),w);else for(var z=0;z<y;z++)X[w+z]=t[G+z]},
flattenChunks:function(X){var t,G;var y=G=0;for(t=X.length;y<t;y++)G+=X[y].length;var w=new Uint8Array(G);y=G=0;for(t=X.length;y<t;y++){var z=X[y];w.set(z,G);G+=z.length}return w}},LXo={arraySet:function(X,t,G,y,w){for(var z=0;z<y;z++)X[w+z]=t[G+z]},
flattenChunks:function(X){return[].concat.apply([],X)}};
q1.setTyped=function(){RMB?(q1.Buf8=Uint8Array,q1.Buf16=Uint16Array,q1.Buf32=Int32Array,q1.assign(q1,ilq)):(q1.Buf8=Array,q1.Buf16=Array,q1.Buf32=Array,q1.assign(q1,LXo))};
q1.setTyped();var v5z=!0;try{new Uint8Array(1)}catch(X){v5z=!1}
var RlA=function(X){var t,G,y=X.length,w=0;for(t=0;t<y;t++){var z=X.charCodeAt(t);if((z&64512)===55296&&t+1<y){var B=X.charCodeAt(t+1);(B&64512)===56320&&(z=65536+(z-55296<<10)+(B-56320),t++)}w+=z<128?1:z<2048?2:z<65536?3:4}var V=new q1.Buf8(w);for(t=G=0;G<w;t++)z=X.charCodeAt(t),(z&64512)===55296&&t+1<y&&(B=X.charCodeAt(t+1),(B&64512)===56320&&(z=65536+(z-55296<<10)+(B-56320),t++)),z<128?V[G++]=z:(z<2048?V[G++]=192|z>>>6:(z<65536?V[G++]=224|z>>>12:(V[G++]=240|z>>>18,V[G++]=128|z>>>12&63),V[G++]=
128|z>>>6&63),V[G++]=128|z&63);return V};var Opw={};Opw=function(X,t,G,y){var w=X&65535|0;X=X>>>16&65535|0;for(var z;G!==0;){z=G>2E3?2E3:G;G-=z;do w=w+t[y++]|0,X=X+w|0;while(--z);w%=65521;X%=65521}return w|X<<16|0};for(var Er={},Uy,asS=[],ls4=0;ls4<256;ls4++){Uy=ls4;for(var x_q=0;x_q<8;x_q++)Uy=Uy&1?3988292384^Uy>>>1:Uy>>>1;asS[ls4]=Uy}Er=function(X,t,G,y){G=y+G;for(X^=-1;y<G;y++)X=X>>>8^asS[(X^t[y])&255];return X^-1};var ut={};ut={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 TVv=[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],Y8J=[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],mr0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Cuh=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],cz=Array(576);DN(cz);var pb=Array(60);DN(pb);var Kb=Array(512);DN(Kb);var Cb=Array(256);DN(Cb);var Ap0=Array(29);DN(Ap0);var sc0=Array(30);DN(sc0);var PuV,E10,Urh,NVf=!1;var Lb;
Lb=[new RS(0,0,0,0,function(X,t){var G=65535;for(G>X.pending_buf_size-5&&(G=X.pending_buf_size-5);;){if(X.lookahead<=1){Ur(X);if(X.lookahead===0&&t===0)return 1;if(X.lookahead===0)break}X.strstart+=X.lookahead;X.lookahead=0;var y=X.block_start+G;if(X.strstart===0||X.strstart>=y)if(X.lookahead=X.strstart-y,X.strstart=y,rl(X,!1),X.strm.avail_out===0)return 1;if(X.strstart-X.block_start>=X.w_size-262&&(rl(X,!1),X.strm.avail_out===0))return 1}X.insert=0;if(t===4)return rl(X,!0),X.strm.avail_out===0?3:
4;X.strstart>X.block_start&&rl(X,!1);return 1}),
new RS(4,4,8,4,u0_),new RS(4,5,16,8,u0_),new RS(4,6,32,32,u0_),new RS(4,4,16,16,mG),new RS(8,16,32,32,mG),new RS(8,16,128,128,mG),new RS(8,32,128,256,mG),new RS(32,128,258,1024,mG),new RS(32,258,258,4096,mG)];var rp_={};rp_=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 ip6=Object.prototype.toString;
py_.prototype.push=function(X,t){var G=this.strm,y=this.options.chunkSize;if(this.ended)return!1;var w=t===~~t?t:t===!0?4:0;typeof X==="string"?G.input=RlA(X):ip6.call(X)==="[object ArrayBuffer]"?G.input=new Uint8Array(X):G.input=X;G.next_in=0;G.avail_in=G.input.length;do{G.avail_out===0&&(G.output=new q1.Buf8(y),G.next_out=0,G.avail_out=y);X=cp_(G,w);if(X!==1&&X!==0)return fsq(this,X),this.ended=!0,!1;if(G.avail_out===0||G.avail_in===0&&(w===4||w===2))if(this.options.to==="string"){var z=q1.shrinkBuf(G.output,
G.next_out);t=z;z=z.length;if(z<65537&&(t.subarray&&v5z||!t.subarray))t=String.fromCharCode.apply(null,q1.shrinkBuf(t,z));else{for(var B="",V=0;V<z;V++)B+=String.fromCharCode(t[V]);t=B}this.chunks.push(t)}else t=q1.shrinkBuf(G.output,G.next_out),this.chunks.push(t)}while((G.avail_in>0||G.avail_out===0)&&X!==1);if(w===4)return(G=this.strm)&&G.state?(y=G.state.status,y!==42&&y!==69&&y!==73&&y!==91&&y!==103&&y!==113&&y!==666?X=Qw(G,-2):(G.state=null,X=y===113?Qw(G,-3):0)):X=-2,fsq(this,X),this.ended=
!0,X===0;w===2&&(fsq(this,0),G.avail_out=0);return!0};
var fsq=function(X,t){t===0&&(X.result=X.options.to==="string"?X.chunks.join(""):q1.flattenChunks(X.chunks));X.chunks=[];X.err=t;X.msg=X.strm.msg};var Miz=typeof TextEncoder!=="undefined"?new TextEncoder:null,AbE=Miz?function(X){return Miz.encode(X)}:function(X){X=_.cp(X);
for(var t=new Uint8Array(X.length),G=0;G<t.length;G++)t[G]=X[G];return t};var vCE={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},lZA={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var mn=function(X,t){this.version=X;this.args=t};
mn.prototype.serialize=function(){return{version:this.version,args:this.args}};var xr_=function(X,t){this.topic=X;this.dataClass=t};
xr_.prototype.toString=function(){return this.topic};var Xsz=_.GA("ytPubsub2Pubsub2Instance")||new _.Oc;_.Oc.prototype.subscribe=_.Oc.prototype.subscribe;_.Oc.prototype.unsubscribeByKey=_.Oc.prototype.unsubscribeByKey;_.Oc.prototype.publish=_.Oc.prototype.publish;_.Oc.prototype.clear=_.Oc.prototype.clear;_.dl("ytPubsub2Pubsub2Instance",Xsz);var ldV=_.GA("ytPubsub2Pubsub2SubscribedKeys")||{};_.dl("ytPubsub2Pubsub2SubscribedKeys",ldV);var Mlv=_.GA("ytPubsub2Pubsub2TopicToKeys")||{};_.dl("ytPubsub2Pubsub2TopicToKeys",Mlv);
var fdV=_.GA("ytPubsub2Pubsub2IsAsync")||{};_.dl("ytPubsub2Pubsub2IsAsync",fdV);_.dl("ytPubsub2Pubsub2SkipSubKey",null);var Jbl=void 0,Hdl=void 0;var jkv=_.At("max_body_size_to_compress",5E5),g3s=_.At("min_body_size_to_compress",500),lt=!0,DSw=0,x7=0,skh=_.At("compression_performance_threshold_lr",250),S0h=_.At("slow_compressions_before_abandon_count",4),Vm_=!1,bd0=new Map,TtA=1,F_s=!0;_.sx(fb,q0V);fb.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 $8J=function(X,t,G){G||(G=0);var y=X.W_;if(typeof t==="string")for(var w=0;w<16;w++)y[w]=t.charCodeAt(G)<<24|t.charCodeAt(G+1)<<16|t.charCodeAt(G+2)<<8|t.charCodeAt(G+3),G+=4;else for(w=0;w<16;w++)y[w]=t[G]<<24|t[G+1]<<16|t[G+2]<<8|t[G+3],G+=4;for(t=16;t<80;t++)G=y[t-3]^y[t-8]^y[t-14]^y[t-16],y[t]=(G<<1|G>>>31)&4294967295;t=X.chain_[0];G=X.chain_[1];w=X.chain_[2];for(var z=X.chain_[3],B=X.chain_[4],V,b,e=0;e<80;e++)e<40?e<20?(V=z^G&(w^z),b=1518500249):(V=G^w^z,b=1859775393):e<60?(V=G&w|z&(G|w),
b=2400959708):(V=G^w^z,b=3395469782),V=(t<<5|t>>>27)+V+B+b+y[e]&4294967295,B=z,z=w,w=(G<<30|G>>>2)&4294967295,G=t,t=V;X.chain_[0]=X.chain_[0]+t&4294967295;X.chain_[1]=X.chain_[1]+G&4294967295;X.chain_[2]=X.chain_[2]+w&4294967295;X.chain_[3]=X.chain_[3]+z&4294967295;X.chain_[4]=X.chain_[4]+B&4294967295};
fb.prototype.update=function(X,t){if(X!=null){t===void 0&&(t=X.length);for(var G=t-this.blockSize,y=0,w=this.buf_,z=this.inbuf_;y<t;){if(z==0)for(;y<=G;)$8J(this,X,y),y+=this.blockSize;if(typeof X==="string")for(;y<t;){if(w[z]=X.charCodeAt(y),++z,++y,z==this.blockSize){$8J(this,w);z=0;break}}else for(;y<t;)if(w[z]=X[y],++z,++y,z==this.blockSize){$8J(this,w);z=0;break}}this.inbuf_=z;this.total_+=t}};
fb.prototype.digest=function(){var X=[],t=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var G=this.blockSize-1;G>=56;G--)this.buf_[G]=t&255,t/=256;$8J(this,this.buf_);for(G=t=0;G<5;G++)for(var y=24;y>=0;y-=8)X[t]=this.chain_[G]>>y&255,++t;return X};var Odf;var ik=function(X){var t=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(g){t.databaseToken=g},
triggerThrottle:function(){t.throttledSend()},
cancelThrottle:function(){t.cancelThrottledSend()},
immediateSend:function(g){return _.n(function(F){return F.yield(t.immediateSend(g),0)})},
requestWithinAgeLimit:function(g,F){return t.requestWithinAgeLimit(g,F)},
retryQueuedRequests:function(){t.retryQueuedRequests()}};
var G;this.throttleTimeout=(G=X.throttleTimeout)!=null?G:100;var y;this.retryMaxAttempts=(y=X.retryMaxAttempts)!=null?y:1;var w;this.requestAgeLimitMs=(w=X.requestAgeLimitMs)!=null?w:2592E6;var z;this.queuedRequestAgeLimitMs=(z=X.queuedRequestAgeLimitMs)!=null?z:12E4;var B;this.retryDelayMs=(B=X.retryDelayMs)!=null?B:5E3;var V;this.databaseToken=(V=X.databaseToken)!=null?V:void 0;this.enableCleaning=!!X.enableCleaning;var b;this.cleaningRate=(b=X.cleaningRate)!=null?b:.1;var e;this.potentialEsfErrorLimit=
(e=X.potentialEsfErrorLimit)!=null?e:10;X.handleError&&(this.handleError=X.handleError);X.handleWarning&&(this.handleWarning=X.handleWarning);X.disableYtIdbTransactions&&(this.disableYtIdbTransactions=X.disableYtIdbTransactions);X.bypassDbTokenDependency&&(this.bypassDbTokenDependency=X.bypassDbTokenDependency);this.getBooleanFlag=X.getBooleanFlag;this.jobManager=X.jobManager;this.logsStore=X.logsStore;this.networkManager=X.networkManager;this.sendFn=X.sendFn;this.onlineEvent=X.onlineEvent;this.offlineEvent=
X.offlineEvent;RE(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&tbS(this)},tbS=function(X){RE(X)&&!X.disableYtIdbTransactions&&(X.initialized=!0,X.enableCleaning&&Math.random()<=X.cleaningRate&&X.logsStore.cleanLogsStore(X.databaseToken),X.retryQueuedRequests(),X.networkManager.isNetworkAvailable()&&X.throttledSend(),X.networkManager.listen(X.onlineEvent,X.throttledSend.bind(X)),X.networkManager.listen(X.offlineEvent,X.cancelThrottledSend.bind(X)))};
_.H=ik.prototype;_.H.writeThenSend=function(X,t){var G=this;t=t===void 0?{}:t;if(RE(this)&&this.initialized){var y={url:X,options:t,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(y,this.databaseToken).then(function(w){y.id=w;G.networkManager.isNetworkAvailable()&&G.immediateSend(y)}).catch(function(w){G.immediateSend(y);
GpB(G,w)})}else this.sendFn(X,t)};
_.H.sendThenWrite=function(X,t,G){var y=this;t=t===void 0?{}:t;if(RE(this)&&this.initialized){var w={url:X,options:t,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(w.skipRetry=G);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!w.skipRetry){if(!w.skipRetry){var z=t.onError?t.onError:function(){};
t.onError=function(B,V){return _.n(function(b){if(b.nextAddress==1)return b.yield(y.logsStore.set(w,y.databaseToken).catch(function(e){GpB(y,e)}),2);
z(B,V);_.W$(b)})}}this.sendFn(X,t,w.skipRetry)}else this.logsStore.set(w,this.databaseToken).catch(function(B){y.sendFn(X,t,w.skipRetry);
GpB(y,B)})}else this.sendFn(X,t,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&G)};
_.H.sendAndWrite=function(X,t){var G=this;t=t===void 0?{}:t;if(RE(this)&&this.initialized){var y={url:X,options:t,timestamp:this.now(),status:"NEW",sendCount:0},w=!1,z=t.onSuccess?t.onSuccess:function(){};
y.options.onSuccess=function(B,V){y.id!==void 0?G.logsStore.deleteRequest(y.id,G.databaseToken):w=!0;G.networkManager.networkStatusHint&&G.getBooleanFlag&&G.getBooleanFlag("vss_network_hint")&&G.networkManager.networkStatusHint(!0);z(B,V)};
this.sendFn(y.url,y.options,void 0,!0);this.logsStore.set(y,this.databaseToken).then(function(B){y.id=B;w&&G.logsStore.deleteRequest(y.id,G.databaseToken)}).catch(function(B){GpB(G,B)})}else this.sendFn(X,t,void 0,!0)};
_.H.throttledSend=function(){var X=this;if(!RE(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var t;return _.n(function(G){if(G.nextAddress==1)return G.yield(X.logsStore.getMostRecentByStatus("NEW",X.databaseToken),2);if(G.nextAddress!=3)return t=G.yieldResult,t?G.yield(X.immediateSend(t),3):(X.cancelThrottledSend(),G.return());X.intervalJob&&(X.intervalJob=0,X.throttledSend());_.W$(G)})},this.throttleTimeout))};
_.H.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.H.immediateSend=function(X){var t=this,G;return _.n(function(y){switch(y.nextAddress){case 1:if(!RE(t))throw Error("$c");if(X.id===void 0){y.jumpTo(2);break}return y.yield(t.logsStore.markAsQueued(X.id,t.databaseToken),3);case 3:(G=y.yieldResult)||t.handleWarning(Error("ad"));case 2:if(t.requestWithinAgeLimit(X,t.requestAgeLimitMs)){y.jumpTo(4);break}t.handleWarning(Error("bd"));if(X.id===void 0){y.jumpTo(5);break}return y.yield(t.logsStore.deleteRequest(X.id,t.databaseToken),5);case 5:return y.return();
case 4:X.skipRetry||(X=yLP(t,X));if(!X){y.jumpTo(0);break}if(!X.skipRetry||X.id===void 0){y.jumpTo(8);break}return y.yield(t.logsStore.deleteRequest(X.id,t.databaseToken),8);case 8:t.sendFn(X.url,X.options,!!X.skipRetry),_.W$(y)}})};
var yLP=function(X,t){if(!RE(X))throw Error("cd");var G=t.options.onError?t.options.onError:function(){};
t.options.onError=function(w,z){var B,V,b,e;return _.n(function(g){switch(g.nextAddress){case 1:B=cbY(z);(V=pWG(z))&&X.getBooleanFlag&&X.getBooleanFlag("web_enable_error_204")&&X.handleError(Error("dd"),t.url,z);if(!(X.getBooleanFlag&&X.getBooleanFlag("nwl_consider_error_code")&&B||X.getBooleanFlag&&!X.getBooleanFlag("nwl_consider_error_code")&&X.potentialEsfErrorCounter<=X.potentialEsfErrorLimit)){g.jumpTo(2);break}if(!X.networkManager.sendNetworkCheckRequest){g.jumpTo(3);break}return g.yield(X.networkManager.sendNetworkCheckRequest(),
3);case 3:if(X.networkManager.isNetworkAvailable()){g.jumpTo(2);break}G(w,z);if(!X.getBooleanFlag||!X.getBooleanFlag("nwl_consider_error_code")||((b=t)==null?void 0:b.id)===void 0){g.jumpTo(6);break}return g.yield(X.logsStore.resetRequest(t.id,X.databaseToken,!1),6);case 6:return g.return();case 2:if(X.getBooleanFlag&&X.getBooleanFlag("nwl_consider_error_code")&&!B&&X.potentialEsfErrorCounter>X.potentialEsfErrorLimit)return g.return();X.potentialEsfErrorCounter++;if(((e=t)==null?void 0:e.id)===void 0){g.jumpTo(8);
break}return t.sendCount<X.retryMaxAttempts?g.yield(X.logsStore.resetRequest(t.id,X.databaseToken,!0,V?!1:void 0),12):g.yield(X.logsStore.deleteRequest(t.id,X.databaseToken),8);case 12:X.jobManager.addLowPriorityJob(function(){X.networkManager.isNetworkAvailable()&&X.throttledSend()},X.retryDelayMs);
case 8:G(w,z),_.W$(g)}})};
var y=t.options.onSuccess?t.options.onSuccess:function(){};
t.options.onSuccess=function(w,z){var B;return _.n(function(V){if(V.nextAddress==1)return((B=t)==null?void 0:B.id)===void 0?V.jumpTo(2):V.yield(X.logsStore.deleteRequest(t.id,X.databaseToken),2);X.networkManager.networkStatusHint&&X.getBooleanFlag&&X.getBooleanFlag("vss_network_hint")&&X.networkManager.networkStatusHint(!0);y(w,z);_.W$(V)})};
return t};
ik.prototype.requestWithinAgeLimit=function(X,t){X=X.timestamp;return this.now()-X>=t?!1:!0};
ik.prototype.retryQueuedRequests=function(){var X=this;if(!RE(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(t){t&&!X.requestWithinAgeLimit(t,X.queuedRequestAgeLimitMs)?X.jobManager.addLowPriorityJob(function(){return _.n(function(G){if(G.nextAddress==1)return t.id===void 0?G.jumpTo(2):G.yield(X.logsStore.resetRequest(t.id,X.databaseToken),2);X.retryQueuedRequests();_.W$(G)})}):X.networkManager.isNetworkAvailable()&&X.throttledSend()})};
var GpB=function(X,t){X.writeError&&!X.networkManager.isNetworkAvailable()?X.writeError(t):X.handleError(t)},RE=function(X){return!!X.databaseToken||X.bypassDbTokenDependency};var rbw;var iXE={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};var wsq={},ak6=jD("ServiceWorkerLogsDatabase",{objectStores:(wsq.SWHealthLog={addedAtVersion:1},wsq),shared:!0,upgrade:function(X,t){t(1)&&yG(tv(X,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var GOV={},tx0=0;var HzA;var LP=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},BO=function(){if(!LP.instance){var X=_.GA("yt.networkRequestMonitor.instance")||new LP;
_.dl("yt.networkRequestMonitor.instance",X);LP.instance=X}return LP.instance};
LP.prototype.requestComplete=function(X,t){t&&(this.anyRequestHasSucceeded=!0);X=this.removeParams(X);this.requestMap.get(X)||this.requestMap.set(X,t)};
LP.prototype.isEndpointCFR=function(X){X=this.removeParams(X);return(X=this.requestMap.get(X))?!1:X===!1&&this.anyRequestHasSucceeded?!0:null};
LP.prototype.removeParams=function(X){return X.split("?")[0]};
LP.prototype.removeParams=LP.prototype.removeParams;LP.prototype.isEndpointCFR=LP.prototype.isEndpointCFR;LP.prototype.requestComplete=LP.prototype.requestComplete;LP.getInstance=BO;var vZ=function(X){_.P6.call(this);var t=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=X!=null?X:{addLowPriorityJob:function(w,z){return setTimeout(w,z)},
cancelJob:function(w){clearTimeout(w)}};
var G,y;this.isOnline=(y=(G=window.navigator)==null?void 0:G.onLine)!=null?y:!0;this.onNavigatorChange=function(){return _.n(function(w){return w.yield(zX4(t),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||HER(this)};
_.S(vZ,_.P6);vZ.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete vZ.instance};
vZ.prototype.isNetworkAvailable=function(){return this.isOnline};
var HER=function(X){X.pollingJob=X.jobManager.addLowPriorityJob(function(){var t;return _.n(function(G){if(G.nextAddress==1)return X.isOnline?((t=window.navigator)==null?0:t.onLine)?G.jumpTo(3):G.yield(zX4(X),3):G.yield(zX4(X),3);HER(X);_.W$(G)})},3E4)},zX4=function(X,t){return X.networkRequestPromise?X.networkRequestPromise:X.networkRequestPromise=new Promise(function(G){var y,w,z,B;
return _.n(function(V){switch(V.nextAddress){case 1:return y=window.AbortController?new window.AbortController:void 0,z=(w=y)==null?void 0:w.signal,B=!1,_.CL(V,2,3),y&&(X.abortTimeoutKey=X.jobManager.addLowPriorityJob(function(){y.abort()},t||2E4)),V.yield(fetch("/generate_204",{method:"HEAD",
signal:z}),5);case 5:B=!0;case 3:_.O6(V);X.networkRequestPromise=void 0;X.abortTimeoutKey&&(X.jobManager.cancelJob(X.abortTimeoutKey),X.abortTimeoutKey=0);B!==X.isOnline&&(X.isOnline=B,X.isOnline?X.dispatchEvent("networkstatus-online"):X.dispatchEvent("networkstatus-offline"));G(B);_.Qb(V,0);break;case 2:_.IY(V),B=!1,V.jumpTo(3)}})})};var aE=function(){_.P6.call(this);var X=this;this.shouldFlushErrors=!1;vZ.instance||(vZ.instance=new vZ(_.vz));this.sharedNetworkStatusManager=vZ.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(X.shouldFlushErrors&&_.A("offline_error_handling")){var t=oFY().get("errors",!0);if(t){for(var G in t)if(t[G]){var y=new _.NJ(G,"sent via offline_errors");y.name=t[G].name;y.stack=t[G].stack;y.level=t[G].level;_.$x(y)}oFY().set("errors",{},2592E3,!0)}}})};
_.S(aE,_.P6);var oe4=function(){if(!aE.instance){var X=_.GA("yt.networkStatusManager.instance")||new aE;_.dl("yt.networkStatusManager.instance",X);aE.instance=X}return aE.instance};
_.H=aE.prototype;_.H.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.H.networkStatusHint=function(X){this.sharedNetworkStatusManager.isOnline=X};
_.H.getWindowStatus=function(){var X=window.navigator.onLine;return X===void 0?!0:X};
_.H.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.H.listen=function(X,t){return this.sharedNetworkStatusManager.listen(X,t)};
_.H.sendNetworkCheckRequest=function(X){X=zX4(this.sharedNetworkStatusManager,X);X.then(function(t){_.A("use_cfr_monitor")&&BO().requestComplete("generate_204",t)});
return X};
aE.prototype.sendNetworkCheckRequest=aE.prototype.sendNetworkCheckRequest;aE.prototype.listen=aE.prototype.listen;aE.prototype.enableErrorFlushing=aE.prototype.enableErrorFlushing;aE.prototype.getWindowStatus=aE.prototype.getWindowStatus;aE.prototype.networkStatusHint=aE.prototype.networkStatusHint;aE.prototype.isNetworkAvailable=aE.prototype.isNetworkAvailable;aE.getInstance=oe4;_.Jv=function(X){X=X===void 0?{}:X;_.P6.call(this);var t=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=oe4();var G=_.GA("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);G&&(X.rateLimit?(this.rateLimit=X.rateLimit,G("networkstatus-online",function(){JLq(t,"publicytnetworkstatus-online")}),G("networkstatus-offline",function(){JLq(t,"publicytnetworkstatus-offline")})):(G("networkstatus-online",function(){t.dispatchEvent("publicytnetworkstatus-online")}),G("networkstatus-offline",
function(){t.dispatchEvent("publicytnetworkstatus-offline")})))};
_.S(_.Jv,_.P6);_.Jv.prototype.isNetworkAvailable=function(){var X=_.GA("yt.networkStatusManager.instance.isNetworkAvailable");return X?X.bind(this.nsmInstance)():!0};
_.Jv.prototype.networkStatusHint=function(X){var t=_.GA("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);t&&t(X)};
_.Jv.prototype.sendNetworkCheckRequest=function(X){var t=this,G;return _.n(function(y){G=_.GA("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(t.nsmInstance);return _.A("skip_network_check_if_cfr")&&BO().isEndpointCFR("generate_204")?y.return(new Promise(function(w){var z;t.networkStatusHint(((z=window.navigator)==null?void 0:z.onLine)||!0);w(t.isNetworkAvailable())})):G?y.return(G(X)):y.return(!0)})};
var JLq=function(X,t){X.rateLimit?X.lastJobTime?(_.vz.cancelJob(X.schedulerJob),X.schedulerJob=_.vz.addLowPriorityJob(function(){X.lastPublicSignalSent!==t&&(X.dispatchEvent(t),X.lastPublicSignalSent=t,X.lastJobTime=(0,_.gl)())},X.rateLimit-((0,_.gl)()-X.lastJobTime))):(X.dispatchEvent(t),X.lastPublicSignalSent=t,X.lastJobTime=(0,_.gl)()):X.dispatchEvent(t)};var bz_,lk=function(){ik.call(this,{logsStore:{cleanLogsStore:L_w,deleteRequest:id_,getMostRecentByStatus:USv,markAsQueued:mSw,resetRequest:R2h,set:E3_},networkManager:_.kOw(),handleError:function(X,t,G){var y,w=G==null?void 0:(y=G.error)==null?void 0:y.code;if(w===400||w===415){var z;X=new _.NJ(X.message,t,G==null?void 0:(z=G.error)==null?void 0:z.code);_.yQ(X,void 0,void 0,void 0,!0)}else _.$x(X)},
handleWarning:_.yQ,sendFn:nFE,now:_.gl,writeError:Jml,jobManager:_.va(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.At("potential_esf_error_limit",10),getBooleanFlag:_.A,disableYtIdbTransactions:!(_.rw()&&_.dis())});this.initializationPromise=new _.Kp;_.A("networkless_immediately_drop_all_requests")&&v3A();pK6("LogsDatabaseV2")};
_.S(lk,ik);_.Vb4=function(){var X=_.GA("yt.networklessRequestController.instance");X||(X=new lk,_.dl("yt.networklessRequestController.instance",X),_.A("networkless_logging")&&_.eD().then(function(t){X.databaseToken=t;tbS(X);X.initializationPromise.resolve();X.enableCleaning&&Math.random()<=X.cleaningRate&&X.databaseToken&&xSs(X.databaseToken);_.A("networkless_immediately_drop_sw_health_store")&&BuR(X)}));
return X};
lk.prototype.writeThenSend=function(X,t){t||(t={});t=VxV(X,t);_.rw()||(this.initialized=!1);ik.prototype.writeThenSend.call(this,X,t)};
lk.prototype.sendThenWrite=function(X,t,G){t||(t={});t=VxV(X,t);_.rw()||(this.initialized=!1);ik.prototype.sendThenWrite.call(this,X,t,G)};
lk.prototype.sendAndWrite=function(X,t){t||(t={});t=VxV(X,t);_.rw()||(this.initialized=!1);ik.prototype.sendAndWrite.call(this,X,t)};
lk.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var BuR=function(X){var t;_.n(function(G){if(!X.databaseToken)throw t=$7("clearSWHealthLogsDb"),t;return G.return(fkh(X.databaseToken).catch(function(y){X.handleError(y)}))})};_.jL0=!1;_.ejh=_.tA.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.jL0};_.dl("ytNetworklessLoggingInitializationOptions",_.ejh);var vO=function(X){var t=this;this.config_=null;X?this.config_=X:LCh()&&(this.config_=_.Tx());_.PO(_.vz,function(){W_V(t)},5E3)};
vO.prototype.isReady=function(){!this.config_&&LCh()&&(this.config_=_.Tx());return!!this.config_};
var IkJ=function(X,t,G,y){!_.Md("VISITOR_DATA")&&t!=="visitor_id"&&Math.random()<.01&&_.yQ(new _.NJ("Missing VISITOR_DATA when sending innertube request.",t,G,y));if(!X.isReady()){var w=new _.NJ("innertube xhrclient not ready",t,G,y);_.$x(w);throw w;}var z={headers:y.headers||{},method:"POST",postParams:G,postBody:y.postBody,postBodyFormat:y.postBodyFormat||"JSON",onTimeout:function(){y.onTimeout()},
onFetchTimeout:y.onTimeout,onSuccess:function(F,T){if(y.onSuccess)y.onSuccess(T)},
onFetchSuccess:function(F){if(y.onSuccess)y.onSuccess(F)},
onProgress:function(F){if(y.onProgress)y.onProgress(F)},
onError:function(F,T){if(y.onError)y.onError(T)},
onFetchError:function(F){if(y.onError)y.onError(F)},
timeout:y.timeout,withCredentials:!0,compress:y.compress};z.headers["Content-Type"]||(z.headers["Content-Type"]="application/json");var B="";(w=X.config_.innertubeHostOverride)&&(B=w);var V=X.config_.innertubeUseThirdPartyAuth||!1,b=_.Jps(V,B,y);Object.assign(z.headers,b);z.headers.Authorization&&!B&&V&&(z.headers["x-origin"]=window.location.origin);var e=_.Bx(B+("/youtubei/"+X.config_.innertubeApiVersion+"/"+t),{alt:"json"}),g=function(F){F=F===void 0?!1:F;var T;if(y.retry&&B!="www.youtube-nocookie.com"&&
(F||_.A("skip_ls_gel_retry")||z.headers["Content-Type"]!=="application/json"||(T=uDl(t,G,b,V)),T)){var D=z.onSuccess,h=z.onFetchSuccess;z.onSuccess=function(c,P){QkV(T);D(c,P)};
G.onFetchSuccess=function(c,P){QkV(T);h(c,P)}}try{if(F&&y.retry&&!y.networklessOptions.bypassNetworkless)z.method="POST",y.networklessOptions.writeThenSend?_.Vb4().writeThenSend(e,z):_.Vb4().sendAndWrite(e,z);
else if(y.compress){var u=!y.networklessOptions.writeThenSend;if(z.postBody){var W=z.postBody;typeof W!=="string"&&(W=JSON.stringify(z.postBody));Y0s(e,W,z,_.Cs,u)}else Y0s(e,JSON.stringify(z.postParams),z,qlv,u)}else _.A("web_all_payloads_via_jspb")?_.Cs(e,z):qlv(e,z)}catch(c){if(c.name==="InvalidAccessError")T&&(QkV(T),T=0),_.yQ(Error("fd"));else throw c;}T&&_.PO(_.vz,function(){W_V(X)},5E3)};
_.gFf()?CAV().then(function(F){g(F)}):g(!1)};var AzE=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(AzE,_.eB);var bEP=0,TXG=_.C9?"webkit":_.qe?"moz":_.Z_?"ms":svJ?"o":"";_.dl("ytDomDomGetNextId",_.GA("ytDomDomGetNextId")||function(){return++bEP});var kpz={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},eP=function(X){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(X=
X||window.event){this.event=X;for(var t in X)t in kpz||(this[t]=X[t]);this.scale=X.scale;this.rotation=X.rotation;var G=X.target||X.srcElement;G&&G.nodeType==3&&(G=G.parentNode);this.target=G;var y=X.relatedTarget;if(y)try{y=y.nodeName?y:null}catch(w){y=null}else this.type=="mouseover"?y=X.fromElement:this.type=="mouseout"&&(y=X.toElement);this.relatedTarget=y;this.clientX=X.clientX!=void 0?X.clientX:X.pageX;this.clientY=X.clientY!=void 0?X.clientY:X.pageY;this.keyCode=X.keyCode?X.keyCode:X.which;
this.charCode=X.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=X.altKey;this.ctrlKey=X.ctrlKey;this.shiftKey=X.shiftKey;this.metaKey=X.metaKey;this.pageX_=X.pageX;this.pageY_=X.pageY}}catch(w){}},d8q=function(X){if(document.body&&document.documentElement){var t=document.body.scrollTop+document.documentElement.scrollTop;
X.pageX_=X.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);X.pageY_=X.clientY+t}};
eP.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
eP.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
eP.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var dj=_.tA.ytEventsEventsListeners||{};_.dl("ytEventsEventsListeners",dj);var hj_=_.tA.ytEventsEventsCounter||{count:0};_.dl("ytEventsEventsCounter",hj_);var Zzw=_.NF(function(){var X=!1;try{var t=Object.defineProperty({},"capture",{get:function(){X=!0}});
window.addEventListener("test",null,t)}catch(G){}return X});_.sx(gj,_.po);gj.prototype.onMouseMove_=function(X){X.pageX_===void 0&&d8q(X);var t=X.pageX_;X.pageY_===void 0&&d8q(X);this.position_=new _.LD(t,X.pageY_)};
gj.prototype.checkPosition_=function(){if(this.position_){var X=(0,_.gl)();if(this.previousTime_!=0){var t=this.previousPosition_,G=this.position_,y=t.x-G.x;t=t.y-G.y;y=Math.sqrt(y*y+t*t)/(X-this.previousTime_);this.cycles_[this.index_]=Math.abs((y-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(G=t=0;G<4;G++)t+=this.cycles_[G]||0;t>=3&&this.callback_();this.previousVelocity_=y}this.previousTime_=X;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
gj.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.qVY(this.mouseListenerKey_)};var upJ={};var Ppf=new _.ja("rawColdConfigGroup");var Nrv=new _.ja("rawHotConfigGroup");var eXS=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(eXS,_.eB);var Tx_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Tx_,_.eB);var Nj=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X,500)};
_.S(Nj,_.eB);Nj.prototype.getPayloadCase=function(){return _.Ex(this,j4S)};
Nj.prototype.getContext=function(){return _.Co(this,Tx_,33)};
var j4S=[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];var QiJ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(QiJ,_.eB);var JH6=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(JH6,_.eB);JH6.prototype.setVideoId=function(X){return O9(this,1,Brv,IN(X))};
JH6.prototype.getPlaylistId=function(){return _.Ko(this,cO(this,Brv,2))};
var Brv=[1,2];var ZXv=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ZXv,_.eB);ZXv.prototype.getContext=function(){return _.Co(this,ux,1)};
ZXv.prototype.getTier=function(){return _.lz(this,7)};var ge4,YA,s9;ge4=_.tA.ytPubsubPubsubInstance||new _.Oc;YA=_.tA.ytPubsubPubsubSubscribedKeys||{};s9=_.tA.ytPubsubPubsubTopicToKeys||{};_.QLA=_.tA.ytPubsubPubsubIsSynchronous||{};_.Oc.prototype.subscribe=_.Oc.prototype.subscribe;_.Oc.prototype.unsubscribeByKey=_.Oc.prototype.unsubscribeByKey;_.Oc.prototype.publish=_.Oc.prototype.publish;_.Oc.prototype.clear=_.Oc.prototype.clear;_.dl("ytPubsubPubsubInstance",ge4);_.dl("ytPubsubPubsubTopicToKeys",s9);_.dl("ytPubsubPubsubIsSynchronous",_.QLA);
_.dl("ytPubsubPubsubSubscribedKeys",YA);var SP=window;var xX=_.A("web_enable_lifecycle_monitoring")&&rmG()!==0,Fqe=_.A("web_enable_lifecycle_monitoring");var TuP=function(X){var t=this;var G=G===void 0?0:G;var y=y===void 0?_.va():y;this.JSC$10779_defaultPriority=G;this.scheduler=y;this.completedResolver=new _.Kp;this.scheduledPayloads=X;for(X={i$jscomp$487:0};X.i$jscomp$487<this.scheduledPayloads.length;X={payload$jscomp$19:void 0,i$jscomp$487:X.i$jscomp$487},X.i$jscomp$487++)X.payload$jscomp$19=this.scheduledPayloads[X.i$jscomp$487],G=function(w){return function(){w.payload$jscomp$19.job();t.scheduledPayloads[w.i$jscomp$487].processed=!0;t.scheduledPayloads.every(function(z){return z.processed===
!0})&&t.completedResolver.resolve()}}(X),y=this.getPriority(X.payload$jscomp$19),y=this.scheduler.addJob(G,y),this.scheduledPayloads[X.i$jscomp$487]=Object.assign({},X.payload$jscomp$19,{job:G,
jobId:y})};
TuP.prototype.flushJobs=function(){var X=this,t=Array.from(this.scheduledPayloads.keys()).sort(function(y,w){return X.getPriority(X.scheduledPayloads[w])-X.getPriority(X.scheduledPayloads[y])});
t=_.J(t);for(var G=t.next();!G.done;G=t.next())G=this.scheduledPayloads[G.value],G.jobId===void 0||G.processed||(this.scheduler.cancelJob(G.jobId),this.scheduler.addJob(G.job,10))};
TuP.prototype.cancel=function(){for(var X=_.J(this.scheduledPayloads),t=X.next();!t.done;t=X.next())t=t.value,t.jobId===void 0||t.processed||this.scheduler.cancelJob(t.jobId),t.processed=!0;this.completedResolver.resolve()};
TuP.prototype.getPriority=function(X){var t;return(t=X.priority)!=null?t:this.JSC$10779_defaultPriority};var fP=function(X){this.state=X;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};xX&&NXv(this.state)};
fP.prototype.install=function(X){this.plugins.push(X);return this};
fP.prototype.uninstall=function(){var X=this;_.f1.apply(0,arguments).forEach(function(t){t=X.plugins.indexOf(t);t>-1&&X.plugins.splice(t,1)})};
fP.prototype.transition=function(X,t){var G=this;xX&&P$V(this.state);var y=this.transitions.find(function(z){return Array.isArray(z.from)?z.from.find(function(B){return B===G.state&&z.to===X}):z.from===G.state&&z.to===X});
if(y){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);ALq(this,X,t);this.state=X;xX&&NXv(this.state);y=y.action.bind(this);var w=this.plugins.filter(function(z){return z[X]}).map(function(z){return z[X]});
y(Yse(this,w),t)}else throw Error("gd`"+this.state+"`"+X);};
var Yse=function(X,t){var G=t.filter(function(w){return s44(X,w)===10}),y=t.filter(function(w){return s44(X,w)!==10});
return X.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var w=_.f1.apply(0,arguments);return _.n(function(z){if(z.nextAddress==1)return z.yield(X.runImmediateJobsAsync.apply(X,[G].concat(_.RY(w))),2);X.setJobSetWithScheduledJobs.apply(X,[y].concat(_.RY(w)));_.W$(z)})}:function(){var w=_.f1.apply(0,arguments);
X.runImmediateJobsSync.apply(X,[G].concat(_.RY(w)));X.setJobSetWithScheduledJobs.apply(X,[y].concat(_.RY(w)))}};
fP.prototype.runImmediateJobsSync=function(X){var t=_.f1.apply(1,arguments);_.va();for(var G=_.J(X),y=G.next(),w={};!y.done;w={lifecycle$jscomp$2:void 0},y=G.next())w.lifecycle$jscomp$2=y.value,qI(function(z){return function(){D8h(z.lifecycle$jscomp$2.name);Uih(function(){return z.lifecycle$jscomp$2.callback.apply(z.lifecycle$jscomp$2,_.RY(t))});
MT(z.lifecycle$jscomp$2.name)}}(w))};
fP.prototype.runImmediateJobsAsync=function(X){var t=_.f1.apply(1,arguments),G,y,w,z;return _.n(function(B){B.nextAddress==1&&(_.va(),G=_.J(X),y=G.next(),w={});if(B.nextAddress!=3){if(y.done)return B.jumpTo(0);w.lifecycle$jscomp$3=y.value;w.asyncJobCompletion=void 0;z=function(V){return function(){D8h(V.lifecycle$jscomp$3.name);var b=Uih(function(){return V.lifecycle$jscomp$3.callback.apply(V.lifecycle$jscomp$3,_.RY(t))});
$yE(b)?V.asyncJobCompletion=_.A("web_lifecycle_error_handling_killswitch")?b.then(function(){MT(V.lifecycle$jscomp$3.name)}):b.then(function(){MT(V.lifecycle$jscomp$3.name)},function(e){EFV(e);
MT(V.lifecycle$jscomp$3.name)}):MT(V.lifecycle$jscomp$3.name)}}(w);
qI(z);return w.asyncJobCompletion?B.yield(w.asyncJobCompletion,3):B.jumpTo(3)}w={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};y=G.next();return B.jumpTo(2)})};
fP.prototype.setJobSetWithScheduledJobs=function(X){var t=_.f1.apply(1,arguments),G=this,y=X.map(function(w){return{job:function(){D8h(w.name);Uih(function(){return w.callback.apply(w,_.RY(t))});
MT(w.name)},
priority:s44(G,w)}});
y.length&&(this.jobSet=new TuP(y))};
var s44=function(X,t){var G,y;return(y=(G=X.overridePriority)!=null?G:t.priority)!=null?y:0},D8h=function(X){xX&&X&&NXv(X)},MT=function(X){xX&&X&&P$V(X)},ALq=function(X,t,G){Fqe&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+X.constructor.name+"] '"+X.state+"' to '"+t+"'"),console.log("with message: ",G),console.groupEnd())};
_.ke.Object.defineProperties(fP.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var SsS=function(X){fP.call(this,X===void 0?"none":X);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(){}}]},hXq;
_.S(SsS,fP);SsS.prototype.runApplicationNavigationBegin=function(X,t){var G=this;this.navigationTimer=_.PO(_.vz,function(){G.currentState==="application_navigating"&&G.transition("none")},5E3);
X(t==null?void 0:t.event)};
SsS.prototype.runApplicationNavigationEnd=function(X,t){this.navigationTimer&&(_.vz.cancelJob(this.navigationTimer),this.navigationTimer=null);X(t==null?void 0:t.event)};
_.rHA=function(){hXq||(hXq=new SsS);return hXq};var plw=[];_.dl("yt.logging.transport.getScrapedGelPayloads",function(){return plw});var hv=function(){var X=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return X.totalEntries}}};
hv.prototype.storePayload=function(X,t){X=mif(X);this.store[X]?this.store[X].push(t):(this.memoizedKeySequences={},this.store[X]=[t]);this.totalEntries++;_.A("more_accurate_gel_parser")&&(t=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(t));return X};
hv.prototype.smartExtractMatchingEntries=function(X){if(!X.keys.length)return[];for(var t=ZEP(this,X.keys.splice(0,1)[0]),G=[],y=0;y<t.length;y++)this.store[t[y]]&&X.sizeLimit&&(this.store[t[y]].length<=X.sizeLimit?(G.push.apply(G,_.RY(this.store[t[y]])),delete this.store[t[y]]):G.push.apply(G,_.RY(this.store[t[y]].splice(0,X.sizeLimit))));this.totalEntries-=G.length;(X==null?0:X.sizeLimit)&&G.length<(X==null?void 0:X.sizeLimit)&&(X.sizeLimit-=G.length,G.push.apply(G,_.RY(this.smartExtractMatchingEntries(X))));
return G};
hv.prototype.extractMatchingEntries=function(X){X=ZEP(this,X);for(var t=[],G=0;G<X.length;G++)this.store[X[G]]&&(t.push.apply(t,_.RY(this.store[X[G]])),delete this.store[X[G]]);this.totalEntries-=t.length;return t};
hv.prototype.getSequenceCount=function(X){X=ZEP(this,X);for(var t=0,G=0;G<X.length;G++){var y=void 0;t+=((y=this.store[X[G]])==null?void 0:y.length)||0}return t};
var ZEP=function(X,t){var G=mif(t);if(X.memoizedKeySequences[G])return X.memoizedKeySequences[G];var y=Object.keys(X.store)||[];if(y.length<=1&&mif(t)===y[0])return y;for(var w=[],z=0;z<y.length;z++){var B=y[z].split("/");if(qsY(t.auth,B[0])){var V=t.isJspb;qsY(V===void 0?"undefined":V?"true":"false",B[1])&&qsY(t.cttAuthInfo,B[2])&&(V=t.tier,V=V===void 0?"undefined":JSON.stringify(V),qsY(V,B[3])&&w.push(y[z]))}}return X.memoizedKeySequences[G]=w},qsY=function(X,t){return X===void 0||X==="undefined"?
!0:X===t};
hv.prototype.getSequenceCount=hv.prototype.getSequenceCount;hv.prototype.extractMatchingEntries=hv.prototype.extractMatchingEntries;hv.prototype.smartExtractMatchingEntries=hv.prototype.smartExtractMatchingEntries;hv.prototype.storePayload=hv.prototype.storePayload;var Fws,jis,Trh,Ch,CwY,RVE,mIV,eVs,dIl,yH6,gIJ,Wwf,V_J;Fws=_.At("initial_gel_batch_timeout",2E3);jis=_.At("gel_queue_timeout_max_ms",6E4);Trh=_.At("gel_min_batch_size",5);Ch=void 0;CwY=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
RVE=new CwY;mIV=new CwY;eVs=new CwY;dIl=new CwY;gIJ=!0;Wwf=1;_.IWf=new Map;V_J=_.tA.ytLoggingTransportTokensToCttTargetIds_||{};_.dl("ytLoggingTransportTokensToCttTargetIds_",V_J);var nIs=_.tA.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.dl("ytLoggingTransportTokensToJspbCttTargetIds_",nIs);var qj={};var ix=_.tA.ytLoggingGelSequenceIdObj_||{};_.dl("ytLoggingGelSequenceIdObj_",ix);var vIV=[];var zIw=new Set,M_h=0,B5E=0,JS6=0,$7w=[],XkV=[],nWJ=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var D7w=function(){};
D7w.prototype.getUrl=function(X,t){t=t===void 0?!1:t;return X.hasOwnProperty("shareEndpoint")?null:_.d7l(X,null,t)};
var WFE=function(X,t,G){X={endpoint:t,actions:[]};G=(G.path?G.path[0]:G.target).icon||"";t=G.indexOf(":");t>0&&(G=G.substr(t+1));G&&X.actions.push(G);return X};var ASl=/Command$/,T50=/Endpoint$/,jsY=new Map;var Kqo,OEo;Kqo=1;_.Hq=function(){this.actionRoutingMap=new Map};
_.Hq.prototype.triggerAction=function(X){var t=new Mah(X,!1,_.f1.apply(1,arguments));this.handleAction(t);return t.returnValue};
_.Hq.prototype.triggerOptionalAction=function(X){var t=new Mah(X,!0,_.f1.apply(1,arguments));this.handleAction(t);return t.returnValue};
_.XL=function(X,t,G){t.forEach(function(y){var w=FAh(y);w&&X.triggerOptionalAction(w,y,G,void 0)})};
_.Hq.prototype.handleAction=function(X){var t=this.actionRoutingMap.get(X.actionName);t&&OEo(X,t);X.optionalAction||X.returnValue.length!==0||(X=new _.NJ("Unhandled action",X.actionName),_.yQ(X))};
OEo=function(X,t){t.forEach(function(G){var y=null;G?y=G.apply(null,X.args):(G=Error("hd"),G.params=X.actionName,_.$x(G));X.returnValue.push(y)})};
_.oO=function(X,t,G){G||(G=Kqo++);for(var y=_.J(Object.keys(t)),w=y.next();!w.done;w=y.next()){w=w.value;var z=X.actionRoutingMap.get(w);z||(z=new Map,X.actionRoutingMap.set(w,z));X.registerActionHandler(G,w,t[w],z)}return G};
_.Hq.prototype.registerActionHandler=function(X,t,G,y){y.set(X,_.tt(G))};
_.Ja=function(X,t,G){t=_.J(Object.keys(t));for(var y=t.next();!y.done;y=t.next())(y=X.actionRoutingMap.get(y.value))&&y.delete(G)};
_.Aw(_.Hq);var Z5V=function(X,t){var G=_.Hq.getInstance();_.LY(function(){var y={},w=_.oO(G,(y[X]=t,y));_.Um(function(){var z={};_.Ja(G,(z[X]="",z),w)})})};var Yuv=Symbol("jd");WXv=Vbv;var m7V=new Set(["For","If","Match","Watch"]),um4={},Q4o=(um4[ft.default]=function(){return qA_},um4.style=function(){return qA_},um4),IOq;
for(IOq in Q4o)kH.attributes[IOq]=Q4o[IOq](kH.attributes[IOq]);var ji=new _.FB("VISIBILITY_OBSERVER");var XvG={retrieve:function(X){return this.id.\u0275prov.token===X.\u0275prov.token?this.contextValue:this?Blf(this,this.id):o7v}};var NDE=function(X,t,G){if(X!==bC)return!1;X=pkv(document.createElement("div"),function(){var y=FJ(!1);try{G[0]()}finally{FJ(y)}});
X=Array.from(X.childNodes);X.length===1&&(X=X[0]);return X};var WqJ=function(X){X=X.clone();zZR(X);Pe(X,"dg",null);Pe(X,"d","0");tH4(X,null);GAt(X,null);return X},cLz=!0,pso=function(X,t,G){var y=G===void 0?{}:G;
G=y.cssRowKey===void 0?void 0:y.cssRowKey;var w=y.combinedSignature===void 0?void 0:y.combinedSignature;var z=y.extraEdges===void 0?void 0:y.extraEdges;y=y.callback===void 0?void 0:y.callback;Pe(X,"m",t.join(","));z&&wxS(X,z);G&&(Pe(X,"ck",G),w?Pe(X,"rs",w):cLz&&(cLz=!1));if(y){if(y!=null&&!JtR.test(y))throw Error("Xa`"+y);Pe(X,"cb",y)}X=X.toString();_.y0(X,"/")&&(X=cQ4(document.location.href)+X);return _.rN(X)};var Nuq=function(X){return rLq(X).then(function(t){return JSON.parse(t.responseText)})},rLq=function(X){var t={},G=t.xmlHttpFactory?t.xmlHttpFactory.createInstance():DVz.createInstance();
return(new _.Kh(function(y,w){var z;try{G.open("GET",X,!0)}catch(b){w(new $C("Error opening XHR: "+b.message,X,G))}G.onreadystatechange=function(){if(G.readyState==4){_.tA.clearTimeout(z);var b;!(b=sH4(G.status))&&(b=G.status===0)&&(b=Waq(X),b=!(b=="http"||b=="https"||b==""));b?y(G):w(new PwJ(G.status,X,G))}};
G.onerror=function(){w(new $C("Network error",X,G))};
if(t.headers)for(var B in t.headers){var V=t.headers[B];V!=null&&G.setRequestHeader(B,V)}t.withCredentials&&(G.withCredentials=t.withCredentials);t.responseType&&(G.responseType=t.responseType);t.mimeType&&G.overrideMimeType(t.mimeType);t.timeoutMs>0&&(z=_.tA.setTimeout(function(){G.onreadystatechange=function(){};
G.abort();w(new Eeq(X,G))},t.timeoutMs));
try{G.send(null)}catch(b){G.onreadystatechange=function(){},_.tA.clearTimeout(z),w(new $C("Error sending XHR: "+b.message,X,G))}})).thenCatch(function(y){y instanceof _.zC&&G.abort();
throw y;})},$C=function(X,t,G){_.Xv.call(this,X+", url="+t);
this.url=t;this.xhr=G};
_.sx($C,_.Xv);$C.prototype.name="XhrError";var PwJ=function(X,t,G){$C.call(this,"Request Failed, status="+X,t,G);this.status=X};
_.sx(PwJ,$C);PwJ.prototype.name="XhrHttpError";var Eeq=function(X,t){$C.call(this,"Request timed out",X,t)};
_.sx(Eeq,$C);Eeq.prototype.name="XhrTimeoutError";T2=T2||{};var tz=function(){_.po.call(this)};
_.sx(tz,_.po);tz.prototype.initialize=function(){};var U8S=function(X,t){this.fn_=X;this.handler_=t};
U8S.prototype.execute=function(X){this.fn_&&(this.fn_.call(this.handler_||null,X),this.fn_=this.handler_=null)};
U8S.prototype.abort=function(){this.handler_=this.fn_=null};var Gv=function(X,t){_.po.call(this);this.deps_=X;this.JSC$10906_id_=t;this.onloadCallbacks_=[];this.JSC$10906_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.sx(Gv,_.po);Gv.prototype.moduleConstructor_=tz;Gv.prototype.module_=null;Gv.prototype.getId=function(){return this.JSC$10906_id_};
Gv.prototype.registerCallback=function(X,t){return m84(this.onloadCallbacks_,X,t)};
var RXo=function(X,t){m84(X.JSC$10906_onErrorCallbacks_,t)},m84=function(X,t,G){t=new U8S(t,G);
X.push(t);return t};
Gv.prototype.isLoaded=function(){return!!this.module_};
Gv.prototype.onLoad=function(X){var t=new this.moduleConstructor_;t.initialize(X());this.module_=t;t=(t=iEq(this.earlyOnloadCallbacks_,X()))||iEq(this.onloadCallbacks_,X());t||(this.JSC$10906_onErrorCallbacks_.length=0);return t};
Gv.prototype.onError=function(X){(X=iEq(this.JSC$10906_onErrorCallbacks_,X))&&GV(Error("nd`"+X));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var iEq=function(X,t){for(var G=[],y=0;y<X.length;y++)try{X[y].execute(t)}catch(w){GV(w),G.push(w)}X.length=0;return G.length?G:null};
Gv.prototype.disposeInternal=function(){Gv.superClass_.disposeInternal.call(this);_.Vs(this.module_)};var Lqq,MbY,x8R,fOh,aOP,lOe,yEh,tQq,Gie;
_.wx=function(X,t,G,y,w){y=y===void 0?!1:y;w=w===void 0?!1:w;var z=z===void 0?!0:z;this.scsReferenceUrl_=Obf(_.Nx(X).toString(),z);this.cssRowKey_=t;this.combinedSignature_=G;this.useNegativeLoading_=y;this.requestedModuleMap_={};this.JSC$10909_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(X=Ng(this.scsReferenceUrl_,"excm"))?X.split(","):[];this.shouldScanForCss_=w;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;ulV();_.yo(this,yt4(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Lqq=function(X,t){if(t.href||t.getAttribute("data-href"))if(t=t.href||t.getAttribute("data-href"),Zbv(t)&&!Obf(t).urlPrefix_.endsWith("_/js/")){t=yt4(Obf(t));t=_.J(t);for(var G=t.next();!G.done;G=t.next())G=G.value,X.loadedCssModuleList_.includes(G)||X.loadedCssModuleList_.push(G)}};
_.wx.prototype.JSC$10911_loadModules=function(X,t,G){var y=G===void 0?{}:G;G=y.extraEdges;var w=y.onError;var z=y.onSuccess;y=y.forceReload;this.JSC$10909_moduleInfoMap_=t;if(!X)throw Error("od");if(this.shouldScanForCss_){t=_.J(document.getElementsByTagName("style"));for(var B=t.next();!B.done;B=t.next())Lqq(this,B.value);t=_.J(document.getElementsByTagName("link"));for(B=t.next();!B.done;B=t.next())Lqq(this,B.value)}vez(this,aOP(this,X),G,w,z,y)};
var vez=function(X,t,G,y,w,z){y=y===void 0?function(){}:y;
w=w===void 0?function(){}:w;
z=z===void 0?!1:z;lOe(X,t,function(B,V,b){b=b===void 0?V:b;X.enableFallbackFetch&&z?X.loadWithFetch(B,V,y,w,b):X.load(B,V,y,w,b,G)},G)||y(-1)};
_.wx.prototype.loadWithFetch=function(){_.n(function(){throw Error("pd");})};
_.wx.prototype.maybeSetAdditionalFields=function(){};
MbY=function(X,t,G){if(X.useNegativeLoading_){var y=X.scsReferenceUrl_;X={cssRowKey:X.cssRowKey_,combinedSignature:X.combinedSignature_,extraEdges:G,requestedModuleIds:x8R(X),requestedCssModuleIds:fOh(X)};var w=X===void 0?{}:X;X=w.requestedModuleIds===void 0?[]:w.requestedModuleIds;G=w.requestedCssModuleIds===void 0?[]:w.requestedCssModuleIds;var z=w.cssRowKey===void 0?void 0:w.cssRowKey;var B=w.combinedSignature===void 0?void 0:w.combinedSignature;var V=w.extraEdges===void 0?void 0:w.extraEdges;
w=w.callback===void 0?void 0:w.callback;y=WqJ(y);Pe(y,"d","1");tH4(y,X);GAt(y,G);t=pso(y,t,{cssRowKey:z,combinedSignature:B,extraEdges:V,callback:w})}else y=X.scsReferenceUrl_,X={cssRowKey:X.cssRowKey_,combinedSignature:X.combinedSignature_,requestedModuleIds:x8R(X),requestedCssModuleIds:fOh(X)},V=X===void 0?{}:X,X=V.requestedCssModuleIds===void 0?[]:V.requestedCssModuleIds,G=V.cssRowKey===void 0?void 0:V.cssRowKey,z=V.combinedSignature===void 0?void 0:V.combinedSignature,B=V.extraEdges===void 0?
void 0:V.extraEdges,V=V.callback===void 0?void 0:V.callback,y=WqJ(y),GAt(y,X),t=pso(y,t,{cssRowKey:G,combinedSignature:z,extraEdges:B,callback:V});return t};
_.yo=function(X,t){for(var G=!1,y=[],w=0;w<t.length;++w){var z=t[w];X.requestedModuleMap_[z]||(X.requestedModuleMap_[z]=!0,X.requestedModuleList_.push(z),G=!0,y.push(z))}G&&(X.requestedModuleListSorted_=!1)};
_.zv=function(X,t){for(var G=[],y=0;y<t.length;++y){var w=t[y];X.requestedModuleMap_[w]&&(delete X.requestedModuleMap_[w],_.vY(X.requestedModuleList_,w),G.push(w))}};
_.wx.prototype.load=function(X,t,G,y,w){w=w===void 0?t:w;_.Nx(X);var z=this.useCors_,B=this.corsMode_,V=this.fetchPriority,b=_.OF("SCRIPT");_.Vb(b,X);z&&(b.crossOrigin=B);b.async=!1;V&&b.setAttribute("fetchpriority",V);_.yo(this,t);_.XPq(this,X,b,t,G,y,w)};
_.XPq=function(X,t,G,y,w,z,B){B=B===void 0?y:B;X.lastScript_=G;X.insertPos.insertBefore(G,X.insertPos.firstChild);_.$YR(G,y,function(){G.parentElement.removeChild(G);X.lastScript_==G&&(X.lastScript_=null);var V=new Set;y.map(function(e){return V.add(e)});
for(var b in X.JSC$10909_moduleInfoMap_)X.JSC$10909_moduleInfoMap_[b].isLoaded()&&V.add(b);Array.from(V);z()},function(V){G.parentElement.removeChild(G);
X.lastScript_==G&&(X.lastScript_=null);_.zv(X,V);X.pendingModuleGraphUpdate_?X.pendingModuleGraphUpdate_.then(function(){w(-1,t)}):w(-1,t)},B)};
_.$YR=function(X,t,G,y,w){w=w===void 0?t:w;var z=t.length,B=function(){z=0;X.onload=null;X.onerror=null;V=function(){}},V=function(){B();
var e=w.filter(function(g){return!mW().getModuleInfo(g).isLoaded()});
e.length!==0?y(e,"Response was successful but was missing module(s) "+e+"."):G()},b=function(){z--;
z==0&&V()};
t.forEach(function(e){e=mW().getModuleInfo(e);e.isLoaded()?b():(m84(e.earlyOnloadCallbacks_,b),RXo(e,b))});
X.onload=function(){return V()};
X.onerror=function(){B();y(t)}};
x8R=function(X){X.requestedModuleListSorted_||(X.requestedModuleListSorted_=!0,X.requestedModuleList_.sort());return X.requestedModuleList_};
fOh=function(X){X=X.loadedCssModuleList_;X.sort();return X};
aOP=function(X,t){return t.filter(function(G){return!X.requestedModuleMap_[G]})};
lOe=function(X,t,G,y){if(X.pendingModuleGraphUpdate_)return X.pendingModuleGraphUpdate_.then(function(){lOe(X,t,G,y)}),!0;
if(!X.useNegativeLoading_){var w=[],z=Object.assign({},X.requestedModuleMap_);tQq(X,t,function(g){w.push(g.getId())},y,function(g){return!g.isLoaded()},z);
t=w}for(z=0;z<t.length;){for(var B=t.length-z,V=z==0?t:t.slice(z,t.length),b=MbY(X,V,y),e=_.Nx(b).toString();e.length>X.urlMaxLength;)if(B>1)B-=Math.ceil((e.length-X.urlMaxLength)/6),B=Math.max(B,1),V=t.slice(z,z+B),b=MbY(X,V,y),e=_.Nx(b).toString();else return X.useNegativeLoading_?(X.useNegativeLoading_=!1,X.pendingModuleGraphUpdate_=Gie(X).then(function(g){yEh(X,g,y)}),lOe(X,t.slice(z),G,y)):!1;
z+=B;X.useNegativeLoading_?G(b,V):G(b,V,z===t.length?t:[])}return!0};
yEh=function(X,t,G){mW().setAllModuleInfoString((t||{}).moduleGraph);tQq(X,x8R(X),function(y){_.yo(X,[y.getId()])},G);
X.pendingModuleGraphUpdate_=null};
tQq=function(X,t,G,y,w,z){z=z===void 0?{}:z;var B=mW();t=_.J(t);for(var V=t.next();!V.done;V=t.next()){V=V.value;var b=B.getModuleInfo(V);if(!(z[V]||w&&!w(b))){z[V]=!0;var e=b.deps_||[];if(y){var g=[];y[V]&&(g=Object.keys(y[V]));e=e.concat(g)}tQq(X,e,G,y,w,z);G(b)}}};
Gie=function(X){X=X.scsReferenceUrl_.clone();zZR(X);Pe(X,"dg",null);Pe(X,"md","1");return Nuq(X.toString())};var GFV=new Uint8Array(123);var wPP=[];var zuJ=function(){this.JSC$9984_loader_=null};
_.H=zuJ.prototype;_.H.setBatchModeEnabled=function(){};
_.H.setAllModuleInfoString=function(){};
_.H.addExtraEdge=function(){throw Error("qd");};
_.H.removeExtraEdge=function(){throw Error("rd");};
_.H.getModuleContext=function(){return null};
_.H.isActive=function(){return!1};
_.H.isUserActive=function(){return!1};
_.H.registerCallback=function(){};var HB=function(X,t,G,y,w){var z=Error.call(this);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.name="ModuleLoadFailure";this.type=X;this.status=t;this.requestedModuleIds=G;this.url=y;this.cause=w;this.message=this.toString()};
_.S(HB,Error);HB.prototype.toString=function(){return Hq4(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Hq4=function(X){switch(X.type){case HB.Type.UNAUTHORIZED:return"Unauthorized";case HB.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case HB.Type.TIMEOUT:return"Timed out";case HB.Type.OLD_CODE_GONE:return"Out of date module id";case HB.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+X.type}};
T2.ModuleLoadFailure=HB;T2.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var oZ=function(){this.moduleIds_=this.JSC$9984_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10924_extraEdges_={};this.JSC$10924_callbackMap_={};this.JSC$10924_currentlyLoadingModule_=this.baseModuleInfo_=new Gv([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Be;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.sx(oZ,zuJ);var ot4=function(X,t){_.Xv.call(this,"Error loading "+X+": "+t)};
_.sx(ot4,_.Xv);oZ.prototype.setBatchModeEnabled=function(X){this.batchModeEnabled_=X};
oZ.prototype.setAllModuleInfoString=function(X,t){if(!(this instanceof oZ))this.setAllModuleInfoString(X,t);else if(typeof X==="string"){if(X.startsWith("d$")){X=X.substring(2);for(var G=[],y=0,w=X.indexOf("/"),z=0,B=!1,V=0;;){var b=B?X.substring(z):X.substring(z,w);if(b.length===0)y++,z="sy"+y.toString(36),b=[];else{var e=b.indexOf(":");if(e<0)z=b,b=[];else if(e===b.length-1)z=b.substring(0,e),b=Array(G[V-1]);else{z=b.substring(0,e);b=b.substring(e+1).split(",");e=V;for(var g=0;g<b.length;g++)e-=
b[g].length===0?1:Number(b[g]),b[g]=G[e]}e=0;if(z.length===0)e=1;else if(z.charAt(0)==="+"||z.charAt(0)==="-")e=Number(z);e!==0&&(y+=e,z="sy"+y.toString(36))}G.push(z);JEB(this,z,b);if(B)break;z=w+1;w=X.indexOf("/",z);w===-1&&(B=!0);V++}this.moduleIds_=G}else if(X.startsWith("p$"))Bkq(this,X);else{X=X.split("/");G=[];for(y=0;y<X.length;y++){V=X[y].split(":");w=V[0];B=[];if(V[1])for(B=V[1].split(","),V=0;V<B.length;V++)B[V]=G[parseInt(B[V],36)];G.push(w);JEB(this,w,B)}this.moduleIds_=G}t&&t.length?
(_.X4(this.loadingModuleIds_,t),this.lastInitialModuleId_=_.WY(t)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10924_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10924_currentlyLoadingModule_=null,(t=this.baseModuleInfo_.onLoad((0,_.rT)(this.getModuleContext,this)))&&t.length&&nth(this,new T2.ModuleLoadFailure(T2.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,t[0])),Jz(this))}};
var Bkq=function(X,t){var G=t.substring(2);for(t=0;t<64;t++)GFV["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(t)]=t;var y={buf:G,pos:0};Tj(y);var w=Tj(y),z=Tj(y)+1;t=Array(w);var B=Array(w),V=Array(w);z=Array(z);var b=0,e=0,g=y.pos,F=y.buf.indexOf("|",y.pos);y.pos=F+1;for(F=0;F<w;F++){var T=Tj(y),D=T&2,h=T&1;T>>>=2;h?(b+=T>>>1^-(T&1),T="sy"+b.toString(36)):(h=g,g+=T,T=G.substring(h,g));t[F]=T;D&&(z[e++]=T)}z[e]="";y.pos++;e=w&-2;G=w&1;for(b=0;b<e;b+=2)g=y4J(y),V[b]=
g&7,V[b+1]=g>>>3&7;G&&(G=y4J(y),V[e]=G&7);y.pos++;for(e=0;e<w;e++)V[e]===7&&(V[e]=Tj(y));y.pos++;for(G=e=0;G<w;G++){b=V[G];g=b===0?wPP:Array(b);B[G]=g;F=e;for(D=0;D<b;D++)F-=Tj(y),g[D]=z[F];z[e]===t[G]&&e++}for(y=0;y<t.length;y++)JEB(X,t[y],B[y]);X.moduleIds_=t};
_.H=oZ.prototype;_.H.getModuleInfo=function(X){return this.moduleInfoMap[X]};
_.H.addExtraEdge=function(X,t){var G=this.getModuleInfo(X);G&&G.isLoaded()?this.load(t):(this.JSC$10924_extraEdges_[X]||(this.JSC$10924_extraEdges_[X]={}),this.JSC$10924_extraEdges_[X][t]=!0)};
_.H.removeExtraEdge=function(X,t){if(this.JSC$10924_extraEdges_[X]){delete this.JSC$10924_extraEdges_[X][t];for(var G in this.JSC$10924_extraEdges_[X])return;delete this.JSC$10924_extraEdges_[X]}};
_.H.isActive=function(){return this.loadingModuleIds_.length>0};
_.H.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Jz=function(X){var t=X.lastActive_,G=X.isActive();G!=t&&(X.executeCallbacks_(G?"active":"idle"),X.lastActive_=G);t=X.isUserActive();t!=X.userLastActive_&&(X.executeCallbacks_(t?"userActive":"userIdle"),X.userLastActive_=t)},JEB=function(X,t,G){X.moduleInfoMap[t]?(X=X.moduleInfoMap[t].deps_,X!=G&&X.splice.apply(X,[0,
X.length].concat(_.RY(G)))):X.moduleInfoMap[t]=new Gv(G,t)},bqY=function(X,t,G){var y=[];
zB(t,y);t=[];for(var w={},z=0;z<y.length;z++){var B=y[z],V=X.getModuleInfo(B);if(!V)throw Error("sd`"+B);var b=new Be;w[B]=b;V.isLoaded()?b.callback(null):(VQS(X,B,V,!!G,b),X.isModuleLoading(B)||t.push(B))}t.length>0&&(X.loadingModuleIds_.length===0?X.loadModules_(t):(X.requestedModuleIdsQueue_.push(t),Jz(X)));return w},VQS=function(X,t,G,y,w){G.registerCallback(w.callback,w);
RXo(G,function(z){w.errback(new ot4(t,z))});
X.isModuleLoading(t)?y&&(kiq(X,t),Jz(X)):y&&kiq(X,t)};
oZ.prototype.loadModules_=function(X,t,G){var y=this;t||(this.consecutiveFailures_=0);var w=dYe(this,X);this.loadingModuleIds_=w;this.requestedLoadingModuleIds_=this.batchModeEnabled_?X:_.aV(w);Jz(this);if(w.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,w);if(Object.keys(this.JSC$10924_extraEdges_).length>0&&!this.JSC$9984_loader_.supportsExtraEdges)throw Error("td");X=(0,_.rT)(this.JSC$9984_loader_.JSC$10911_loadModules,this.JSC$9984_loader_,_.aV(w),this.moduleInfoMap,
{extraEdges:this.JSC$10924_extraEdges_,forceReload:!!G,onError:function(z,B){var V=y.requestedLoadingModuleIds_;z=z!=null?z:void 0;y.consecutiveFailures_++;var b=_.aV(w);y.requestedLoadingModuleIds_=V;w.forEach(_.WP(_.vY,y.requestedModuleIds_),y);z==401?(nth(y,new T2.ModuleLoadFailure(T2.ModuleLoadFailure.Type.UNAUTHORIZED,z)),y.requestedModuleIdsQueue_.length=0):z==410?(euh(y,new T2.ModuleLoadFailure(T2.ModuleLoadFailure.Type.OLD_CODE_GONE,z)),jaP(y)):y.consecutiveFailures_>=3?(euh(y,new T2.ModuleLoadFailure(T2.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
z,b,B)),jaP(y)):y.loadModules_(y.requestedLoadingModuleIds_,!0,z==8001||!1)},
onTimeout:(0,_.rT)(this.handleLoadTimeout_,this)});(t=Math.pow(this.consecutiveFailures_,2)*5E3)?_.tA.setTimeout(X,t):X()}};
var dYe=function(X,t){t=t.filter(function(w){return X.moduleInfoMap[w].isLoaded()?(_.tA.setTimeout(function(){return Error("ud`"+w)},0),!1):!0});
for(var G=[],y=0;y<t.length;y++)G=G.concat(gtR(X,t[y]));zB(G);return!X.batchModeEnabled_&&G.length>1?(t=G.shift(),X.requestedModuleIdsQueue_=G.map(function(w){return[w]}).concat(X.requestedModuleIdsQueue_),[t]):G},gtR=function(X,t){var G=_.RH.createSet(X.requestedModuleIds_),y=[];
G[t]||y.push(t);t=[t];for(var w=0;w<t.length;w++)for(var z=X.getModuleInfo(t[w]).deps_,B=z.length-1;B>=0;B--){var V=z[B];X.getModuleInfo(V).isLoaded()||G[V]||(y.push(V),t.push(V))}y.reverse();zB(y);return y};
oZ.prototype.JSC$10919_setLoaded=function(){if(this.JSC$10924_currentlyLoadingModule_){var X=this.JSC$10924_currentlyLoadingModule_.getId(),t=[];if(this.JSC$10924_extraEdges_[X]){for(var G=_.J(Object.keys(this.JSC$10924_extraEdges_[X])),y=G.next();!y.done;y=G.next()){y=y.value;var w=this.getModuleInfo(y);w&&!w.isLoaded()&&(this.removeExtraEdge(X,y),t.push(y))}this.loadMultiple(t)}this.isDisposed()||((t=this.moduleInfoMap[X].onLoad((0,_.rT)(this.getModuleContext,this)))&&t.length&&nth(this,new T2.ModuleLoadFailure(T2.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,t[0])),_.vY(this.userInitiatedLoadingModuleIds_,X),_.vY(this.loadingModuleIds_,X),this.loadingModuleIds_.length===0&&jaP(this),this.lastInitialModuleId_&&X==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Jz(this),this.JSC$10924_currentlyLoadingModule_=null)}};
oZ.prototype.isModuleLoading=function(X){if(_.Eh(this.loadingModuleIds_,X))return!0;for(var t=0;t<this.requestedModuleIdsQueue_.length;t++)if(_.Eh(this.requestedModuleIdsQueue_[t],X))return!0;return!1};
oZ.prototype.load=function(X,t){return bqY(this,[X],t)[X]};
oZ.prototype.loadMultiple=function(X){return bqY(this,X)};
var kiq=function(X,t){_.Eh(X.userInitiatedLoadingModuleIds_,t)||X.userInitiatedLoadingModuleIds_.push(t)};
oZ.prototype.beforeLoadModuleCode=function(X){var t=this;this.JSC$10924_currentlyLoadingModule_&&this.JSC$10924_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10919_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[X]&&FxP(this,this.moduleInfoMap[X].deps_||[],function(G){G.module_=new tz;_.vY(t.loadingModuleIds_,G.getId())},function(G){return!G.isLoaded()});
this.JSC$10924_currentlyLoadingModule_=this.getModuleInfo(X)};
oZ.prototype.handleLoadTimeout_=function(){euh(this,new T2.ModuleLoadFailure(T2.ModuleLoadFailure.Type.TIMEOUT));jaP(this)};
var euh=function(X,t){X.requestedLoadingModuleIds_.length>1?X.requestedModuleIdsQueue_=X.requestedLoadingModuleIds_.map(function(G){return[G]}).concat(X.requestedModuleIdsQueue_):nth(X,t)},nth=function(X,t){var G=X.requestedLoadingModuleIds_;
X.loadingModuleIds_.length=0;for(var y=[],w=0;w<X.requestedModuleIdsQueue_.length;w++){var z=X.requestedModuleIdsQueue_[w].filter(function(b){var e=gtR(this,b);return nh(G,function(g){return _.Eh(e,g)})},X);
_.X4(y,z)}for(w=0;w<G.length;w++)_.RV(y,G[w]);for(w=0;w<y.length;w++){for(z=0;z<X.requestedModuleIdsQueue_.length;z++)_.vY(X.requestedModuleIdsQueue_[z],y[w]);_.vY(X.userInitiatedLoadingModuleIds_,y[w])}if(w=X.JSC$10924_callbackMap_.error)for(z=0;z<w.length;z++)for(var B=w[z],V=0;V<y.length;V++)B("error",y[V],t);for(y=0;y<G.length;y++)if(X.moduleInfoMap[G[y]])X.moduleInfoMap[G[y]].onError(t);X.requestedLoadingModuleIds_.length=0;Jz(X)},jaP=function(X){for(;X.requestedModuleIdsQueue_.length;){var t=
X.requestedModuleIdsQueue_.shift().filter(function(G){return!this.getModuleInfo(G).isLoaded()},X);
if(t.length>0){X.loadModules_(t);return}}Jz(X)};
oZ.prototype.registerCallback=function(X,t){Array.isArray(X)||(X=[X]);for(var G=0;G<X.length;G++){var y=X[G],w=t,z=this.JSC$10924_callbackMap_;z[y]||(z[y]=[]);z[y].push(w)}};
oZ.prototype.executeCallbacks_=function(X){for(var t=this.JSC$10924_callbackMap_[X],G=0;t&&G<t.length;G++)t[G](X)};
var FxP=function(X,t,G,y,w){y=y===void 0?function(){return!0}:y;
w=w===void 0?{}:w;t=_.J(t);for(var z=t.next();!z.done;z=t.next()){z=z.value;var B=X.getModuleInfo(z);!w[z]&&y(B)&&(w[z]=!0,FxP(X,B.deps_||[],G,y,w),G(B))}};
oZ.prototype.dispose=function(){_.bf(_.RH.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10924_callbackMap_={};this.isDisposed_=!0};
oZ.prototype.isDisposed=function(){return this.isDisposed_};
_.UF=function(){return new oZ};var Tkq=[5E3,2E4],AEz=function(){this.JSC$9984_loader_=null;this.JSC$10932_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10932_queue_=[];this.JSC$10932_extraEdges_=Object.create(null);this.JSC$10932_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.S(AEz,zuJ);_.H=AEz.prototype;_.H.setAllModuleInfoString=function(){this.JSC$10932_currentlyLoadingModule_&&this.JSC$10932_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10919_setLoaded()};
_.H.getModuleInfo=function(X){var t=this.JSC$10932_moduleInfoMap_[X];t||(t=new Gv([],X),this.JSC$10932_moduleInfoMap_[X]=t);return t};
_.H.addExtraEdge=function(X,t){this.getModuleInfo(X).isLoaded()?this.load(t):(this.JSC$10932_extraEdges_[X]||(this.JSC$10932_extraEdges_[X]={}),this.JSC$10932_extraEdges_[X][t]=!0)};
_.H.removeExtraEdge=function(X,t){if(this.JSC$10932_extraEdges_[X]){delete this.JSC$10932_extraEdges_[X][t];for(var G in this.JSC$10932_extraEdges_[X])return;delete this.JSC$10932_extraEdges_[X]}};
_.H.isModuleLoading=function(X){return!!this.loadingModules_[X]};
_.H.load=function(X){Ylq(this,[X]);return saq(this,X)};
_.H.loadMultiple=function(X){var t=this,G=Object.create(null),y=[];X.forEach(function(w){G[w]||(G[w]=saq(t,w),y.push(w))});
Ylq(this,y);return G};
_.H.beforeLoadModuleCode=function(X){var t;((t=this.JSC$10932_currentlyLoadingModule_)==null?void 0:t.getId())==="synthetic_module_overhead"&&this.JSC$10919_setLoaded();var G,y;DYo(this,(y=(G=this.JSC$10932_moduleInfoMap_[X])==null?void 0:G.deps_)!=null?y:[],function(w){w.module_=new tz},function(w){return!w.isLoaded()});
this.JSC$10932_currentlyLoadingModule_=this.getModuleInfo(X)};
_.H.JSC$10919_setLoaded=function(){if(this.JSC$10932_currentlyLoadingModule_){var X=this.JSC$10932_currentlyLoadingModule_.getId(),t=[];if(this.JSC$10932_extraEdges_[X]){for(var G=_.J(Object.keys(this.JSC$10932_extraEdges_[X])),y=G.next();!y.done;y=G.next())y=y.value,this.getModuleInfo(y).isLoaded()||(this.removeExtraEdge(X,y),t.push(y));this.loadMultiple(t)}this.JSC$10932_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10932_currentlyLoadingModule_=null;(!this.isModuleLoading(X)&&/^sy[0-9a-z]{0,4}$/.test(X)||X==="synthetic_module_overhead")&&delete this.JSC$10932_moduleInfoMap_[X];this.unsetModulesAsLoading(X)}};
_.H.setModulesAsLoading=function(){var X=this;_.f1.apply(0,arguments).forEach(function(t){X.loadingModules_[t]=!0})};
_.H.unsetModulesAsLoading=function(){var X=this;_.f1.apply(0,arguments).forEach(function(t){delete X.loadingModules_[t]})};
var saq=function(X,t){return new _.Kh(function(G,y){var w=X.getModuleInfo(t);w.isLoaded()?G(null):(w.registerCallback(function(){G(null)}),RXo(w,function(z){var B="Error loading "+t+": "+z;
z instanceof T2.ModuleLoadFailure&&z.url&&(B=B+", requested url: "+z.url.toString());y(Error(B))}))})},Ylq=function(X,t){t=t.filter(function(G){return!X.isModuleLoading(G)&&!X.getModuleInfo(G).isLoaded()});
t.length>0&&(X.setModulesAsLoading.apply(X,_.RY(t)),X.JSC$10932_queue_.push(t),Sle(X))},Sle=function(X){for(var t={};X.activeLoads_<Infinity&&X.JSC$10932_queue_.length>0;t={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})t.ids$jscomp$36=X.JSC$10932_queue_.shift().filter(function(G){return!X.getModuleInfo(G).isLoaded()}),t.ids$jscomp$36.length>0&&(X.activeLoads_++,t.finishLoad=function(G){return function(){X.activeLoads_--;
Sle(X);G.finishLoad=function(){}}}(t),_.m9(t.ids$jscomp$36.map(function(G){return saq(X,G)})).then(function(G){return function(){(0,G.finishLoad)()}}(t)),t.attempt$jscomp$6=0,t.load$jscomp$1=function(G){return function(){if(Object.keys(X.JSC$10932_extraEdges_).length>0&&!X.JSC$9984_loader_.supportsExtraEdges)throw Error("td");
X.JSC$9984_loader_.JSC$10911_loadModules(G.ids$jscomp$36,X.JSC$10932_moduleInfoMap_,{extraEdges:X.JSC$10932_extraEdges_,onError:function(y,w){var z=Tkq[G.attempt$jscomp$6++];z!==void 0?setTimeout(function(){(0,G.load$jscomp$1)()},z):(X.unsetModulesAsLoading.apply(X,_.RY(G.ids$jscomp$36)),(0,G.finishLoad)(),G.ids$jscomp$36.forEach(function(B){B=X.getModuleInfo(B);
if(!B.isLoaded())B.onError(new T2.ModuleLoadFailure(T2.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,y,G.ids$jscomp$36,w))}))}})}}(t),(0,t.load$jscomp$1)())},DYo=function(X,t,G,y,w){y=y===void 0?function(){return!0}:y;
w=w===void 0?{}:w;t=_.J(t);for(var z=t.next();!z.done;z=t.next()){z=z.value;var B=X.getModuleInfo(z);!w[z]&&y(B)&&(w[z]=!0,DYo(X,B.deps_||[],G,y,w),G(B))}};var huq=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var zpA=Symbol("wd");window.JSCompiler_renameProperty=function(X){return X};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Zqt=!huq||HTMLElement.es5Shimmed||_.tA.Reflect===void 0||_.tA.customElements===void 0||_.tA.customElements.polyfillWrapFlushCallback||!1,ql4,I6Y=function(){var X=HTMLElement;if(Zqt)return X;if(ql4!==void 0)return ql4;var t=_.tA.Reflect,G=function(){return t.construct(X,[],this.constructor)};
G.prototype=X.prototype;G.prototype.constructor=G;G.es5Shimmed=!0;Object.setPrototypeOf(G,X);return ql4=G},Csq=!1;Zqt||Csq||(Csq=!0,_.tA.HTMLElement=I6Y());/*

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 nyh=/(url\()([^)]*)(\))/g,J46=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,B20,Aa;var $e=!window.ShadyDOM||!window.ShadyDOM.inUse,KxY=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),OqJ=!window.customElements.polyfillWrapFlushCallback,uiR;if(uiR=$e&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var QaJ=new CSSStyleSheet;QaJ.replaceSync("");var I0Y=document.createElement("div");I0Y.attachShadow({mode:"open"});I0Y.shadowRoot.adoptedStyleSheets=[QaJ];uiR=I0Y.shadowRoot.adoptedStyleSheets[0]===QaJ}catch(X){uiR=!1}
var Wx4=uiR,cEo=window.Polymer&&window.Polymer.rootPath||byY(document.baseURI||window.location.href),pl=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Ai6=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,wu=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,pPR=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Xm=window.Polymer&&window.Polymer.legacyOptimizations||!1,y8=window.Polymer&&window.Polymer.legacyWarnings||!1,rEt=window.Polymer&&window.Polymer.syncInitialRender||
!1,N_=window.Polymer&&window.Polymer.legacyUndefined||!1,Nkt=window.Polymer&&window.Polymer.orderedComputed||!1,BB=window.Polymer&&window.Polymer.removeNestedTemplates||!1,nm=window.Polymer&&window.Polymer.fastDomIf||!1,Vo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Pse=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,EtR=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var by={},UY4={},EA=function(){return HTMLElement.apply(this,arguments)||this};
_.S(EA,HTMLElement);EA.import=function(X,t){return X?(X=by[X]||UY4[X.toLowerCase()])&&t?X.querySelector(t):X:null};
EA.prototype.attributeChangedCallback=function(X,t,G){t!==G&&this.register()};
EA.prototype.register=function(X){if(X=X||this.id){if(wu&&(by[X]||UY4[X.toLowerCase()])!==void 0)throw by[X]=UY4[X.toLowerCase()]=null,Error("xd`"+X);this.id=X;by[X]=UY4[X.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.ke.Object.defineProperties(EA.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var X=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;X=_.Y5(this.getAttribute("assetpath")||"",X.baseURI);this.__assetpath=byY(X)}return this.__assetpath}}});
_.ke.Object.defineProperties(EA,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
EA["import"]=EA.import;EA.prototype.modules=by;customElements.define("dom-module",EA);var mYq=0,ds0=0,sA=[],Ru4=0,kFh=!1,iq4=document.createTextNode(""),Lxz,fl;(new window.MutationObserver(epY)).observe(iq4,{characterData:!0});_.kC={after:function(X){return{run:function(t){return window.setTimeout(t,X)},
cancel:function(t){window.clearTimeout(t)}}},
run:function(X,t){return window.setTimeout(X,t)},
cancel:function(X){window.clearTimeout(X)}};
_.aL={run:function(X){return window.requestAnimationFrame(X)},
cancel:function(X){window.cancelAnimationFrame(X)}};
Lxz={run:function(X){return window.requestIdleCallback?window.requestIdleCallback(X):window.setTimeout(X,16)},
cancel:function(X){window.cancelIdleCallback?window.cancelIdleCallback(X):window.clearTimeout(X)}};
fl={run:function(X){kFh||(kFh=!0,iq4.textContent=Ru4++);sA.push(X);return mYq++},
cancel:function(X){var t=X-ds0;if(t>=0){if(!sA[t])throw Error("yd`"+X);sA[t]=null}}};var vtq=0,dx=function(X){var t=X.__mixinApplications;t||(t=new WeakMap,X.__mixinApplications=t);var G=vtq++;return function(y){var w=y.__mixinSet;if(w&&w[G])return y;var z=t,B=z.get(y);B||(B=X(y),z.set(y,B),y=Object.create(B.__mixinSet||w||null),y[G]=!0,B.__mixinSet=y);return B}};_.cq=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(X){return ShadyDOM.patch(X)}:function(X){return X};var a0q=dx(function(X){var t=function(){var G=X.call(this)||this;G.__dataEnabled=!1;G.__dataReady=!1;G.__dataInvalid=!1;G.__data={};G.__dataPending=null;G.__dataOld=null;G.__dataInstanceProps=null;G.__dataCounter=0;G.__serializing=!1;G._initializeProperties();return G};
_.S(t,X);t.createProperties=function(G){var y=this.prototype,w;for(w in G)w in y||y._createPropertyAccessor(w)};
t.attributeNameForProperty=function(G){return G.toLowerCase()};
t.typeForProperty=function(){};
t.prototype._createPropertyAccessor=function(G,y){this._addPropertyToAttributeMap(G);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[G]||(this.__dataHasAccessor[G]=!0,this._definePropertyAccessor(G,y))};
t.prototype._addPropertyToAttributeMap=function(G){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var y=this.__dataAttributes[G];y||(y=this.constructor.attributeNameForProperty(G),this.__dataAttributes[y]=G);return y};
t.prototype._definePropertyAccessor=function(G,y){Object.defineProperty(this,G,{get:function(){return this.__data[G]},
set:y?function(){}:function(w){this._setPendingProperty(G,w,!0)&&this._invalidateProperties()}})};
t.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
t.prototype._initializeProperties=function(){for(var G in this.__dataHasAccessor)this.hasOwnProperty(G)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[G]=this[G],delete this[G])};
t.prototype._initializeInstanceProperties=function(G){Object.assign(this,G)};
t.prototype._setProperty=function(G,y){this._setPendingProperty(G,y)&&this._invalidateProperties()};
t.prototype._getProperty=function(G){return this.__data[G]};
t.prototype._setPendingProperty=function(G,y){var w=this.__data[G],z=this._shouldPropertyChange(G,y,w);z&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||G in this.__dataOld||(this.__dataOld[G]=w),this.__data[G]=y,this.__dataPending[G]=y);return z};
t.prototype._isPropertyPending=function(G){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(G))};
t.prototype._invalidateProperties=function(){var G=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,fl.run(function(){G.__dataInvalid&&(G.__dataInvalid=!1,G._flushProperties())}))};
t.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
t.prototype._flushProperties=function(){this.__dataCounter++;var G=this.__data,y=this.__dataPending,w=this.__dataOld;this._shouldPropertiesChange(G,y,w)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(G,y,w));this.__dataCounter--};
t.prototype._shouldPropertiesChange=function(G,y){return!!y};
t.prototype._propertiesChanged=function(){};
t.prototype._shouldPropertyChange=function(G,y,w){return w!==y&&(w===w||y===y)};
t.prototype.attributeChangedCallback=function(G,y,w,z){y!==w&&this._attributeToProperty(G,w);X.prototype.attributeChangedCallback&&X.prototype.attributeChangedCallback.call(this,G,y,w,z)};
t.prototype._attributeToProperty=function(G,y,w){if(!this.__serializing){var z=this.__dataAttributes;G=z&&z[G]||G;this[G]=this._deserializeValue(y,w||this.constructor.typeForProperty(G))}};
t.prototype._propertyToAttribute=function(G,y,w){this.__serializing=!0;w=arguments.length<3?this[G]:w;this._valueToNodeAttribute(this,w,y||this.constructor.attributeNameForProperty(G));this.__serializing=!1};
t.prototype._valueToNodeAttribute=function(G,y,w){y=this._serializeValue(y);if(w==="class"||w==="name"||w==="slot")G=(0,_.cq)(G);y===void 0?G.removeAttribute(w):G.setAttribute(w,y===""&&window.trustedTypes?window.trustedTypes.emptyScript:y)};
t.prototype._serializeValue=function(G){switch(typeof G){case "boolean":return G?"":void 0;default:return G!=null?G.toString():void 0}};
t.prototype._deserializeValue=function(G,y){switch(y){case Boolean:return G!==null;case Number:return Number(G);default:return G}};
return t});var l04=0,jDJ=[];var xYB=dx(function(X){function t(z){z=Object.getPrototypeOf(z);return z.prototype instanceof w?z:null}
function G(z){if(!z.hasOwnProperty("__ownProperties")){var B=null;if(z.hasOwnProperty("properties")){var V=z.properties;if(V){B={};for(var b in V){var e=V[b];B[b]=typeof e==="function"?{type:e}:e}}}z.__ownProperties=B}return z.__ownProperties}
var y=a0q(X),w=function(){return y.apply(this,arguments)||this};
_.S(w,y);w.finalize=function(){if(!this.hasOwnProperty("__finalized")){var z=t(this);z&&z.finalize();this.__finalized=!0;this._finalizeClass()}};
w._finalizeClass=function(){var z=G(this);z&&this.createProperties(z)};
w.typeForProperty=function(z){return(z=this._properties[z])&&z.type};
w.prototype._initializeProperties=function(){l04++;this.constructor.finalize();y.prototype._initializeProperties.call(this)};
w.prototype.connectedCallback=function(){y.prototype.connectedCallback&&y.prototype.connectedCallback.call(this);this._enableProperties()};
w.prototype.disconnectedCallback=function(){y.prototype.disconnectedCallback&&y.prototype.disconnectedCallback.call(this)};
_.ke.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var z=this;if(!this.hasOwnProperty("__observedAttributes")){gyf(this.prototype);var B=this._properties;this.__observedAttributes=B?Object.keys(B).map(function(V){return z.prototype._addPropertyToAttributeMap(V)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var z=t(this);this.__properties=Object.assign({},z&&z._properties,G(this))}return this.__properties}}});
return w});var FMh={},T26=/-[a-z]/g,A4l=/([A-Z])/g;for(var f0e={},MQq=HTMLElement.prototype;MQq;){for(var XKh=Object.getOwnPropertyNames(MQq),$QJ=0;$QJ<XKh.length;$QJ++)f0e[XKh[$QJ]]=!0;MQq=Object.getPrototypeOf(MQq)}var t7t=window.trustedTypes?function(X){return trustedTypes.isHTML(X)||trustedTypes.isScript(X)||trustedTypes.isScriptURL(X)}:function(){return!1},GGJ=dx(function(X){var t=a0q(X);
X=function(){return t.apply(this,arguments)||this};
_.S(X,t);X.createPropertiesForAttributes=function(){for(var G=this.observedAttributes,y=0;y<G.length;y++)this.prototype._createPropertyAccessor(Ds(G[y]))};
X.attributeNameForProperty=function(G){return Si(G)};
X.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);t.prototype._initializeProperties.call(this)};
X.prototype._initializeProtoProperties=function(G){for(var y in G)this._setProperty(y,G[y])};
X.prototype._ensureAttribute=function(G,y){this.hasAttribute(G)||this._valueToNodeAttribute(this,y,G)};
X.prototype._serializeValue=function(G){switch(typeof G){case "object":if(G instanceof Date)return G.toString();if(G){if(t7t(G))return G;try{return JSON.stringify(G)}catch(y){return""}}default:return t.prototype._serializeValue.call(this,G)}};
X.prototype._deserializeValue=function(G,y){switch(y){case Object:try{var w=JSON.parse(G)}catch(z){w=G}break;case Array:try{w=JSON.parse(G)}catch(z){w=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+G)}break;case Date:w=isNaN(G)?String(G):Number(G);w=new Date(w);break;default:w=t.prototype._deserializeValue.call(this,G,y)}return w};
X.prototype._definePropertyAccessor=function(G,y){if(!f0e[G]){var w=this[G];w!==void 0&&(this.__data?this._setPendingProperty(G,w):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[G]=w))}t.prototype._definePropertyAccessor.call(this,G,y)};
X.prototype._hasAccessor=function(G){return this.__dataHasAccessor&&this.__dataHasAccessor[G]};
X.prototype._isPropertyPending=function(G){return!!(this.__dataPending&&G in this.__dataPending)};
return X});var ygq={"dom-if":!0,"dom-repeat":!0},wKR=!1,z7Y=!1,HgS=function(){var X=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(t){return t}});
return function(t,G,y){G=G.getAttribute(y);X&&y.startsWith("on-")?t.setAttribute(y,X.createScript(G,y)):t.setAttribute(y,G)}}(),o0q=dx(function(X){var t=function(){return X.apply(this,arguments)||this};
_.S(t,X);t._parseTemplate=function(G,y){if(!G._templateInfo){var w=G._templateInfo={};w.nodeInfoList=[];w.nestedTemplate=!!y;w.stripWhiteSpace=y&&y.stripWhiteSpace||G.hasAttribute&&G.hasAttribute("strip-whitespace");this._parseTemplateContent(G,w,{parent:null})}return G._templateInfo};
t._parseTemplateContent=function(G,y,w){return this._parseTemplateNode(G.content,y,w)};
t._parseTemplateNode=function(G,y,w){var z=!1;G.localName!="template"||G.hasAttribute("preserve-content")?G.localName==="slot"&&(y.hasInsertionPoint=!0):z=this._parseTemplateNestedTemplate(G,y,w)||z;if(!wKR){wKR=!0;var B=document.createElement("textarea");B.placeholder="a";z7Y=B.placeholder===B.textContent}z7Y&&G.localName==="textarea"&&G.placeholder&&G.placeholder===G.textContent&&(G.textContent=null);G.firstChild&&this._parseTemplateChildNodes(G,y,w);G.hasAttributes&&G.hasAttributes()&&(z=this._parseTemplateNodeAttributes(G,
y,w)||z);return z||w.noted};
t._parseTemplateChildNodes=function(G,y,w){if(G.localName!=="script"&&G.localName!=="style")for(var z=G.firstChild,B=0,V;z;z=V){if(z.localName=="template"){var b=z.getAttribute("is");if(b&&ygq[b])for(V=z,V.removeAttribute("is"),z=V.ownerDocument.createElement(b),V.parentNode.replaceChild(z,V),z.appendChild(V);V.attributes.length;)b=V.attributes[0].name,HgS(z,V,b),V.removeAttribute(b)}V=z.nextSibling;if(z.nodeType===Node.TEXT_NODE){for(b=V;b&&b.nodeType===Node.TEXT_NODE;)z.textContent+=b.textContent,
V=b.nextSibling,G.removeChild(b),b=V;if(y.stripWhiteSpace&&!z.textContent.trim()){G.removeChild(z);continue}}b={parentIndex:B,parentInfo:w};this._parseTemplateNode(z,y,b)&&(b.infoIndex=y.nodeInfoList.push(b)-1);z.parentNode&&B++}};
t._parseTemplateNestedTemplate=function(G,y,w){y=this._parseTemplate(G,y);(y.content=G.content.ownerDocument.createDocumentFragment()).appendChild(G.content);w.templateInfo=y;return!0};
t._parseTemplateNodeAttributes=function(G,y,w){for(var z=!1,B=Array.from(G.attributes),V=B.length-1,b;b=B[V];V--)z=this._parseTemplateNodeAttribute(G,y,w,b.name,b.value)||z;return z};
t._parseTemplateNodeAttribute=function(G,y,w,z,B){return z.slice(0,3)==="on-"?(G.removeAttribute(z),w.events=w.events||[],w.events.push({name:z.slice(3),value:B}),!0):z==="id"?(w.id=B,!0):!1};
t._contentForTemplate=function(G){var y=G._templateInfo;return y&&y.content||G.content};
t.prototype._stampTemplate=function(G,y){G&&!G.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(G);y=y||this.constructor._parseTemplate(G);var w=y.nodeInfoList;G=document.importNode(y.content||G.content,!0);G.__noInsertionPoint=!y.hasInsertionPoint;var z=G.nodeList=Array(w.length);G.$={};for(var B=0,V=w.length,b=void 0;B<V&&(b=w[B]);B++){var e=z[B]=YeA(G,b);b.id&&(G.$[b.id]=e);var g=e,F=b,T=y;F.templateInfo&&(g._templateInfo=F.templateInfo,g._parentTemplateInfo=
T);if(b.events&&b.events.length)for(g=0,F=b.events,T=void 0;g<F.length&&(T=F[g]);g++)this._addMethodEventListenerToNode(e,T.name,T.value,this)}return G};
t.prototype._addMethodEventListenerToNode=function(G,y,w,z){w=sDA(z||G,w);this._addEventListenerToNode(G,y,w);return w};
t.prototype._addEventListenerToNode=function(G,y,w){G.addEventListener(y,w)};
t.prototype._removeEventListenerFromNode=function(G,y,w){G.removeEventListener(y,w)};
return t});var IO=0,rS=[],Jgq={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},B9B=/[A-Z]/,n0J=function(X,t,G,y,w){var z=w?Zs(X):X;if(t=t[z])for(z=0;z<t.length;z++){var B=t[z];if(B.info.lastRun!==IO&&(!w||C7G(X,B.trigger))){B.info.lastRun=IO;B=B.info;for(var V=G,b=y,e=0,g=V.length-1,F=-1;e<=g;){var T=e+g>>1,D=b.get(V[T].methodInfo)-b.get(B.methodInfo);if(D<0)e=T+1;else if(D>0)g=T-1;else{F=T;break}}F<
0&&(F=g+1);V.splice(F,0,B)}}},Rps=[],V7t=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"),jt=dx(function(X){var t=o0q(GGJ(X));
X=function(){var G=t.call(this)||this;G.__isPropertyEffectsClient=!0;return G};
_.S(X,t);X.prototype._initializeProperties=function(){t.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};
X.prototype._registerHost=function(){if(et.length){var G=et[et.length-1];G._enqueueClient(this);this.__dataHost=G}};
X.prototype._initializeProtoProperties=function(G){this.__data=Object.create(G);this.__dataPending=Object.create(G);this.__dataOld={}};
X.prototype._initializeInstanceProperties=function(G){var y=this.__readOnly,w;for(w in G)y&&y[w]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[w]=this.__dataPending[w]=G[w])};
X.prototype._addPropertyEffect=function(G,y,w){this._createPropertyAccessor(G,y=="__readOnly");var z=qew(this,y,!0)[G];z||(z=this[y][G]=[]);z.push(w)};
X.prototype._removePropertyEffect=function(G,y,w){G=qew(this,y,!0)[G];w=G.indexOf(w);w>=0&&G.splice(w,1)};
X.prototype._hasPropertyEffect=function(G,y){y=this[y];return!(!y||!y[G])};
X.prototype._hasReadOnlyEffect=function(G){return this._hasPropertyEffect(G,"__readOnly")};
X.prototype._hasNotifyEffect=function(G){return this._hasPropertyEffect(G,"__notifyEffects")};
X.prototype._hasReflectEffect=function(G){return this._hasPropertyEffect(G,"__reflectEffects")};
X.prototype._hasComputedEffect=function(G){return this._hasPropertyEffect(G,"__computeEffects")};
X.prototype._setPendingPropertyOrPath=function(G,y,w,z){if(z||Zs(Array.isArray(G)?G[0]:G)!==G){if(!z&&(z=QN(this,G),G=ZyE(this,G,y),!G||!t.prototype._shouldPropertyChange.call(this,G,y,z)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(G,y,w)){if(w=this.__dataLinkedPaths)for(var B in w)z=w[B],Kl(B,G)?(z=OA(B,z,G),this._setPendingPropertyOrPath(z,y,!0,!0)):Kl(z,G)&&(z=OA(z,B,G),this._setPendingPropertyOrPath(z,y,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[G])return this._setPendingProperty(G,
y,w);this[G]=y}return!1};
X.prototype._setUnmanagedPropertyToNode=function(G,y,w){if(w!==G[y]||typeof w=="object")y==="className"&&(G=(0,_.cq)(G)),G[y]=w};
X.prototype._setPendingProperty=function(G,y,w){var z=this.__dataHasPaths&&ha(G);if(this._shouldPropertyChange(G,y,(z?this.__dataTemp:this.__data)[G])){this.__dataPending||(this.__dataPending={},this.__dataOld={});G in this.__dataOld||(this.__dataOld[G]=this.__data[G]);z?this.__dataTemp[G]=y:this.__data[G]=y;this.__dataPending[G]=y;if(z||this.__notifyEffects&&this.__notifyEffects[G])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[G]=w;return!0}return!1};
X.prototype._setProperty=function(G,y){this._setPendingProperty(G,y,!0)&&this._invalidateProperties()};
X.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
X.prototype._enqueueClient=function(G){this.__dataPendingClients=this.__dataPendingClients||[];G!==this&&this.__dataPendingClients.push(G)};
X.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
X.prototype.__enableOrFlushClients=function(){var G=this.__dataPendingClients;if(G){this.__dataPendingClients=null;for(var y=0;y<G.length;y++){var w=G[y];w.__dataEnabled?w.__dataPending&&w._flushProperties():w._enableProperties()}}};
X.prototype._readyClients=function(){this.__enableOrFlushClients()};
X.prototype.setProperties=function(G,y){for(var w in G)!y&&this.__readOnly&&this.__readOnly[w]||this._setPendingPropertyOrPath(w,G[w],!0);this._invalidateProperties()};
X.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
X.prototype._propertiesChanged=function(G,y,w){G=this.__dataHasPaths;this.__dataHasPaths=!1;var z;if(z=this.__computeEffects)if(Nkt){IO++;var B=WMY(this),V=[],b;for(b in y)n0J(b,z,V,B,G);for(;b=V.shift();)pvw(this,"",y,w,b)&&n0J(b.methodInfo,z,V,B,G);Object.assign(w,this.__dataOld);Object.assign(y,this.__dataPending);this.__dataPending=null}else for(B=y;Wq(this,z,B,w,G);)Object.assign(w,this.__dataOld),Object.assign(y,this.__dataPending),B=this.__dataPending,this.__dataPending=null;z=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(y,w,G);this._flushClients();Wq(this,this.__reflectEffects,y,w,G);Wq(this,this.__observeEffects,y,w,G);if(z){B=this.__notifyEffects;V=IO++;for(var e in z)if(z[e]){if(b=B){var g=B;b=V;var F=e,T=y,D=w,h=G,u=!1,W=h?Zs(F):F;if(g=g[W]){W=0;for(var c=g.length,P=void 0;W<c&&(P=g[W]);W++)P.info&&P.info.lastRun===b||h&&!C7G(F,P.trigger)||(P.info&&(P.info.lastRun=b),P.fn(this,F,T,D,P.info,h,void 0),u=!0)}b=u}if(b)var l=!0;else{if(b=G)b=e,F=y,T=Zs(b),T!==
b?(T=Si(T)+"-changed",OyY(this,T,F[b],b),b=!0):b=!1;b&&(l=!0)}}var R;l&&(R=this.__dataHost)&&R._invalidateProperties&&R._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
X.prototype._propagatePropertyChanges=function(G,y,w){this.__propagateEffects&&Wq(this,this.__propagateEffects,G,y,w);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,G,y,w)};
X.prototype._runEffectsForTemplate=function(G,y,w,z){var B=this,V=function(b,e){Wq(B,G.propertyEffects,b,w,e,G.nodeList);for(var g=G.firstChild;g;g=g.nextSibling)B._runEffectsForTemplate(g,b,w,e)};
G.runEffects?G.runEffects(V,y,z):V(y,z)};
X.prototype.linkPaths=function(G,y){G=uC(G);y=uC(y);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[G]=y};
X.prototype.unlinkPaths=function(G){G=uC(G);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[G]};
X.prototype.notifySplices=function(G,y){var w={path:""};G=QN(this,G,w);a7_(this,G,w.path,y)};
X.prototype.get=function(G,y){return QN(y||this,G)};
X.prototype.set=function(G,y,w){w?ZyE(w,G,y):this.__readOnly&&this.__readOnly[G]||this._setPendingPropertyOrPath(G,y,!0)&&this._invalidateProperties()};
X.prototype.push=function(G){var y=_.f1.apply(1,arguments),w={path:""},z=QN(this,G,w),B=z.length,V=z.push.apply(z,_.RY(y));y.length&&Pq(this,z,w.path,B,y.length,[]);return V};
X.prototype.pop=function(G){var y={path:""};G=QN(this,G,y);var w=!!G.length,z=G.pop();w&&Pq(this,G,y.path,G.length,0,[z]);return z};
X.prototype.splice=function(G,y,w){var z=_.f1.apply(3,arguments),B={path:""},V=QN(this,G,B);y<0?y=V.length-Math.floor(-y):y&&(y=Math.floor(y));var b=arguments.length===2?V.splice(y):V.splice.apply(V,[y,w].concat(_.RY(z)));(z.length||b.length)&&Pq(this,V,B.path,y,z.length,b);return b};
X.prototype.shift=function(G){var y={path:""};G=QN(this,G,y);var w=!!G.length,z=G.shift();w&&Pq(this,G,y.path,0,0,[z]);return z};
X.prototype.unshift=function(G){var y=_.f1.apply(1,arguments),w={path:""},z=QN(this,G,w),B=z.unshift.apply(z,_.RY(y));y.length&&Pq(this,z,w.path,0,y.length,[]);return B};
X.prototype.notifyPath=function(G,y){if(arguments.length==1){var w={path:""};y=QN(this,G,w);w=w.path}else w=Array.isArray(G)?uC(G):G;this._setPendingPropertyOrPath(w,y,!0,!0)&&this._invalidateProperties()};
X.prototype._createReadOnlyProperty=function(G,y){this._addPropertyEffect(G,"__readOnly");y&&(this["_set"+(G[0].toUpperCase()+G.substring(1))]=function(w){this._setProperty(G,w)})};
X.prototype._createPropertyObserver=function(G,y,w){var z={property:G,method:y,dynamicFn:!!w};this._addPropertyEffect(G,"__observeEffects",{fn:KMh,info:z,trigger:{name:G}});w&&this._addPropertyEffect(y,"__observeEffects",{fn:KMh,info:z,trigger:{name:y}})};
X.prototype._createMethodObserver=function(G,y){var w=LMh(G);if(!w)throw Error("zd`"+G);UsE(this,w,"__observeEffects",c4s,null,y)};
X.prototype._createNotifyingProperty=function(G){this._addPropertyEffect(G,"__notifyEffects",{fn:u7_,info:{eventName:Si(G)+"-changed",property:G}})};
X.prototype._createReflectedProperty=function(G){var y=this.constructor.attributeNameForProperty(G);y[0]==="-"?console.warn("Property "+G+" cannot be reflected to attribute "+y+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(G,"__reflectEffects",{fn:QDE,info:{attrName:y}})};
X.prototype._createComputedProperty=function(G,y,w){var z=LMh(y);if(!z)throw Error("Ad`"+y);y=UsE(this,z,"__computeEffects",pvw,G,w);qew(this,"__computeInfo")[G]=y};
X.prototype._marshalArgs=function(G,y,w){for(var z=this.__data,B=[],V=0,b=G.length;V<b;V++){var e=G[V],g=e.name,F=e.structured,T=e.wildcard,D=e.value;e.literal||(T?(e=Kl(g,y),F=vyG(z,w,e?y:g),D={path:e?y:g,value:F,base:e?QN(z,g):F}):D=F?vyG(z,w,g):z[g]);if(N_&&!this._overrideLegacyUndefined&&D===void 0&&G.length>1)return rS;B[V]=D}return B};
X.addPropertyEffect=function(G,y,w){this.prototype._addPropertyEffect(G,y,w)};
X.createPropertyObserver=function(G,y,w){this.prototype._createPropertyObserver(G,y,w)};
X.createMethodObserver=function(G,y){this.prototype._createMethodObserver(G,y)};
X.createNotifyingProperty=function(G){this.prototype._createNotifyingProperty(G)};
X.createReadOnlyProperty=function(G,y){this.prototype._createReadOnlyProperty(G,y)};
X.createReflectedProperty=function(G){this.prototype._createReflectedProperty(G)};
X.createComputedProperty=function(G,y,w){this.prototype._createComputedProperty(G,y,w)};
X.bindTemplate=function(G){return this.prototype._bindTemplate(G)};
X.prototype._bindTemplate=function(G,y){var w=this.constructor._parseTemplate(G),z=this.__preBoundTemplateInfo==w;if(!z)for(var B in w.propertyEffects)this._createPropertyAccessor(B);y?(w=Object.create(w),w.wasPreBound=z,this.__templateInfo?(G=G._parentTemplateInfo||this.__templateInfo,y=G.lastChild,w.parent=G,G.lastChild=w,(w.previousSibling=y)?y.nextSibling=w:G.firstChild=w):this.__templateInfo=w):this.__preBoundTemplateInfo=w;return w};
X._addTemplatePropertyEffect=function(G,y,w){(G.hostProps=G.hostProps||{})[y]=!0;G=G.propertyEffects=G.propertyEffects||{};(G[y]=G[y]||[]).push(w)};
X.prototype._stampTemplate=function(G,y){y=y||this._bindTemplate(G,!0);et.push(this);G=t.prototype._stampTemplate.call(this,G,y);et.pop();y.nodeList=G.nodeList;if(!y.wasPreBound)for(var w=y.childNodes=[],z=G.firstChild;z;z=z.nextSibling)w.push(z);G.templateInfo=y;w=y.nodeList;z=y.nodeInfoList;if(z.length)for(var B=0;B<z.length;B++){var V=w[B],b=z[B].bindings;if(b)for(var e=0;e<b.length;e++){var g=b[e],F=V,T=g;if(T.isCompound){for(var D=F.__dataCompoundStorage||(F.__dataCompoundStorage={}),h=T.parts,
u=Array(h.length),W=0;W<h.length;W++)u[W]=h[W].literal;h=T.target;D[h]=u;T.literal&&T.kind=="property"&&(h==="className"&&(F=(0,_.cq)(F)),F[h]=T.literal)}EyJ(V,this,g)}V.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(y,this.__data,null,!1),this._flushClients());return G};
X.prototype._removeBoundDom=function(G){G=G.templateInfo;var y=G.previousSibling,w=G.nextSibling,z=G.parent;y?y.nextSibling=w:z&&(z.firstChild=w);w?w.previousSibling=y:z&&(z.lastChild=y);G.nextSibling=G.previousSibling=null;G=G.childNodes;for(y=0;y<G.length;y++)w=G[y],(0,_.cq)((0,_.cq)(w).parentNode).removeChild(w)};
X._parseTemplateNode=function(G,y,w){var z=t._parseTemplateNode.call(this,G,y,w);if(G.nodeType===Node.TEXT_NODE){var B=this._parseBindings(G.textContent,y);B&&(G.textContent=msY(B)||" ",P7h(this,y,w,"text","textContent",B),z=!0)}return z};
X._parseTemplateNodeAttribute=function(G,y,w,z,B){var V=this._parseBindings(B,y);if(V){B=z;var b="property";B9B.test(z)?b="attribute":z[z.length-1]=="$"&&(z=z.slice(0,-1),b="attribute");var e=msY(V);e&&b=="attribute"&&(z=="class"&&G.hasAttribute("class")&&(e+=" "+G.getAttribute(z)),G.setAttribute(z,e));b=="attribute"&&B=="disable-upgrade$"&&G.setAttribute(z,"");G.localName==="input"&&B==="value"&&G.setAttribute(B,"");G.removeAttribute(B);b==="property"&&(z=Ds(z));P7h(this,y,w,b,z,V,e);return!0}return t._parseTemplateNodeAttribute.call(this,
G,y,w,z,B)};
X._parseTemplateNestedTemplate=function(G,y,w){var z=t._parseTemplateNestedTemplate.call(this,G,y,w),B=G.parentNode,V=w.templateInfo,b=B.localName==="dom-if",e=B.localName==="dom-repeat";BB&&(b||e)&&(B.removeChild(G),w=w.parentInfo,w.templateInfo=V,w.noted=!0,z=!1);G=V.hostProps;if(nm&&b)G&&(y.hostProps=Object.assign(y.hostProps||{},G),BB||(w.parentInfo.noted=!0));else for(var g in G)P7h(this,y,w,"property","_host_"+g,[{mode:"{",source:g,dependencies:[g],hostProp:!0}]);return z};
X._parseBindings=function(G,y){for(var w=[],z=0,B;(B=V7t.exec(G))!==null;){B.index>z&&w.push({literal:G.slice(z,B.index)});z=B[1][0];var V=!!B[2];B=B[3].trim();var b=!1,e="",g=-1;z=="{"&&(g=B.indexOf("::"))>0&&(e=B.substring(g+2),B=B.substring(0,g),b=!0);g=LMh(B);var F=[];if(g){var T=g,D=T.args;T=T.methodName;for(var h=0;h<D.length;h++){var u=D[h];u.literal||F.push(u)}if((D=y.dynamicFns)&&D[T]||g.static)F.push(T),g.dynamicFn=!0}else F.push(B);w.push({source:B,mode:z,negate:V,customEvent:b,signature:g,
dependencies:F,event:e});z=V7t.lastIndex}z&&z<G.length&&(G=G.substring(z))&&w.push({literal:G});return w.length?w:null};
X._evaluateBinding=function(G,y,w,z,B,V){G=y.signature?c4s(G,w,z,B,y.signature):w!=y.source?QN(G,y.source):V&&ha(w)?QN(G,w):G.__data[w];y.negate&&(G=!G);return G};
_.ke.Object.defineProperties(X.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Jgq}}});
return X}),et=[];var bgz=window.ShadyCSS&&window.ShadyCSS.cssBuild,gx=dx(function(X){function t(y,w,z,B){if(!bgz){for(var V=w.content.querySelectorAll("style"),b=MhV(w),e=XaE(z),g=w.content.firstElementChild,F=0;F<e.length;F++){var T=e[F];T.textContent=y._processStyleText(T.textContent,B);w.content.insertBefore(T,g)}for(g=e=0;g<b.length;g++)F=b[g],T=V[e],T!==F?(F=F.cloneNode(!0),T.parentNode.insertBefore(F,T)):e++,F.textContent=y._processStyleText(F.textContent,B)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(w,
z);if(EtR&&bgz&&Wx4&&(w=w.content.querySelectorAll("style"))){var D="";Array.from(w).forEach(function(h){D+=h.textContent;h.parentNode.removeChild(h)});
y._styleSheet=new CSSStyleSheet;y._styleSheet.replaceSync(D)}}
var G=xYB(jt(X));X=function(){return G.call(this)||this};
_.S(X,G);X._finalizeClass=function(){G._finalizeClass.call(this);var y;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(y=this.__ownObservers)&&this.createObservers(y,this._properties);this._prepareTemplate()};
X._prepareTemplate=function(){var y=this.template;y&&(typeof y==="string"?(console.error("template getter must return HTMLTemplateElement"),y=null):Xm||(y=y.cloneNode(!0)));this.prototype._template=y};
X.createProperties=function(y){for(var w in y){var z=this.prototype,B=w,V=y[w],b=y;V.computed&&(V.readOnly=!0);V.computed&&(z._hasReadOnlyEffect(B)?console.warn("Cannot redefine computed property '"+B+"'."):z._createComputedProperty(B,V.computed,b));V.readOnly&&!z._hasReadOnlyEffect(B)?z._createReadOnlyProperty(B,!V.computed):V.readOnly===!1&&z._hasReadOnlyEffect(B)&&console.warn("Cannot make readOnly property '"+B+"' non-readOnly.");V.reflectToAttribute&&!z._hasReflectEffect(B)?z._createReflectedProperty(B):
V.reflectToAttribute===!1&&z._hasReflectEffect(B)&&console.warn("Cannot make reflected property '"+B+"' non-reflected.");V.notify&&!z._hasNotifyEffect(B)?z._createNotifyingProperty(B):V.notify===!1&&z._hasNotifyEffect(B)&&console.warn("Cannot make notify property '"+B+"' non-notify.");V.observer&&z._createPropertyObserver(B,V.observer,b[V.observer]);z._addPropertyToAttributeMap(B)}};
X.createObservers=function(y,w){for(var z=this.prototype,B=0;B<y.length;B++)z._createMethodObserver(y[B],w)};
X.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);G.prototype._initializeProperties.call(this);this.rootPath=cEo;this.importPath=this.constructor.importPath;var y=this.constructor;if(!y.hasOwnProperty("__propertyDefaults")){y.__propertyDefaults=null;var w=y._properties,z;for(z in w){var B=w[z];"value"in B&&(y.__propertyDefaults=y.__propertyDefaults||{},y.__propertyDefaults[z]=B)}}if(y=y.__propertyDefaults)for(var V in y)w=y[V],
this._canApplyPropertyDefault(V)&&(w=typeof w.value=="function"?w.value.call(this):w.value,this._hasAccessor(V)?this._setPendingProperty(V,w,!0):this[V]=w)};
X.prototype._canApplyPropertyDefault=function(y){return!this.hasOwnProperty(y)};
X._processStyleText=function(y,w){return Vhs(y,w)};
X._finalizeTemplate=function(y){var w=this.prototype._template;if(w&&!w.__polymerFinalized){w.__polymerFinalized=!0;var z=this.importPath;z=z?_.Y5(z):"";t(this,w,y,z);this.prototype._bindTemplate(w)}};
X.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);G.prototype.connectedCallback.call(this)};
X.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);G.prototype.ready.call(this)};
X.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));G.prototype._readyClients.call(this)};
X.prototype._attachDom=function(y){var w=(0,_.cq)(this);if(w.attachShadow)return y?(w.shadowRoot||(w.attachShadow({mode:"open",shadyUpgradeFragment:y}),w.shadowRoot.appendChild(y),this.constructor._styleSheet&&(w.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),rEt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(w.shadowRoot),w.shadowRoot):null;throw Error("Cd");};
X.prototype.updateStyles=function(y){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,y)};
X.prototype.resolveUrl=function(y,w){!w&&this.importPath&&(w=_.Y5(this.importPath));return _.Y5(y,w)};
X._parseTemplateContent=function(y,w,z){w.dynamicFns=w.dynamicFns||this._properties;return G._parseTemplateContent.call(this,y,w,z)};
X._addTemplatePropertyEffect=function(y,w,z){!y8||w in this._properties||z.info.part.signature&&z.info.part.signature.static||z.info.part.hostProp||y.nestedTemplate||console.warn("Property '"+w+"' used in template but not declared in 'properties'; attribute will not be observed.");return G._addTemplatePropertyEffect.call(this,y,w,z)};
_.ke.Object.defineProperties(X,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var y=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof y==="function"&&(y=y());if(y===void 0){if(y=this.hasOwnProperty("is")){y=this.is;var w=null;if(y&&(!wu||pPR)&&(w=EA.import(y,"template"),wu&&!w))throw Error("Bd`"+y);y=w}y=y||Object.getPrototypeOf(this.prototype).constructor.template}this._template=y}return this._template},
set:function(y){this._template=y}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var y=this.importMeta;y?this._importPath=byY(y.url):this._importPath=(y=EA.import(this.is))&&y.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return X});var kG4=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(X){return X}}),HVl=function(X,t){dQS(X,t);
this.value=t.reduce(function(G,y,w){return G+olh(y)+X[w+1]},X[0]).toString()},dQS;
HVl.prototype.toString=function(){return this.value};
_.e7B=function(X){var t=_.f1.apply(1,arguments);dQS(X,t);var G=document.createElement("template");t=t.reduce(function(y,w,z){if(w instanceof HTMLTemplateElement)w=w.innerHTML;else if(w instanceof HVl)w=olh(w);else throw Error("Ed`"+w);return y+w+X[z+1]},X[0]);
kG4&&(t=kG4.createHTML(t));G.innerHTML=t;return G};
dQS=function(X,t){if(!Array.isArray(X)||!Array.isArray(X.raw)||t.length!==X.length-1)throw new TypeError("Fd");};var FL=gx(HTMLElement);var j$J=dx(function(X){var t=gx(X);X=function(){var G=t.call(this)||this;G.__lastItems=null;G.__lastMulti=null;G.__selectedMap=null;return G};
_.S(X,t);X.prototype.__updateSelection=function(G,y){var w=y.path;w=="items"?(y=y.base||[],w=this.__lastItems,G!==this.__lastMulti&&this.clearSelection(),w&&(w=zCh(y,w),this.__applySplices(w)),this.__lastItems=y,this.__lastMulti=G):y.path=="items.splices"?this.__applySplices(y.value.indexSplices):(G=w.slice(6),y=parseInt(G,10),G.indexOf(".")<0&&G==y&&this.__deselectChangedIdx(y))};
X.prototype.__applySplices=function(G){for(var y=this,w=this.__selectedMap,z={},B=0;B<G.length;z={s$jscomp$108:void 0},B++){z.s$jscomp$108=G[B];w.forEach(function(g){return function(F,T){F<g.s$jscomp$108.index||(F>=g.s$jscomp$108.index+g.s$jscomp$108.removed.length?w.set(T,F+g.s$jscomp$108.addedCount-g.s$jscomp$108.removed.length):w.set(T,-1))}}(z));
for(var V=0;V<z.s$jscomp$108.addedCount;V++){var b=z.s$jscomp$108.index+V;w.has(this.items[b])&&w.set(this.items[b],b)}}this.__updateLinks();var e=0;w.forEach(function(g,F){g<0?(y.multi?y.splice("selected",e,1):y.selected=y.selectedItem=null,w.delete(F)):e++})};
X.prototype.__updateLinks=function(){var G=this;this.__dataLinkedPaths={};if(this.multi){var y=0;this.__selectedMap.forEach(function(w){w>=0&&G.linkPaths("items."+w,"selected."+y++)})}else this.__selectedMap.forEach(function(w){G.linkPaths("selected","items."+w);
G.linkPaths("selectedItem","items."+w)})};
X.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
X.prototype.isSelected=function(G){return this.__selectedMap.has(G)};
X.prototype.isIndexSelected=function(G){return this.isSelected(this.items[G])};
X.prototype.__deselectChangedIdx=function(G){var y=this,w=this.__selectedIndexForItemIndex(G);if(w>=0){var z=0;this.__selectedMap.forEach(function(B,V){w==z++&&y.deselect(V)})}};
X.prototype.__selectedIndexForItemIndex=function(G){if(G=this.__dataLinkedPaths["items."+G])return parseInt(G.slice(9),10)};
X.prototype.deselect=function(G){var y=this.__selectedMap.get(G);if(y>=0){this.__selectedMap.delete(G);var w;this.multi&&(w=this.__selectedIndexForItemIndex(y));this.__updateLinks();this.multi?this.splice("selected",w,1):this.selected=this.selectedItem=null}};
X.prototype.deselectIndex=function(G){this.deselect(this.items[G])};
X.prototype.select=function(G){this.selectIndex(this.items.indexOf(G))};
X.prototype.selectIndex=function(G){var y=this.items[G];this.isSelected(y)?this.toggle&&this.deselectIndex(G):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(y,G),this.__updateLinks(),this.multi?this.push("selected",y):this.selected=this.selectedItem=y)};
_.ke.Object.defineProperties(X,{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 X}),g04=j$J(FL),Tv=function(){return g04.apply(this,arguments)||this};
_.S(Tv,g04);_.ke.Object.defineProperties(Tv,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Tv.is,Tv);var FCz=window.Polymer;window.Polymer=function(X){return window.Polymer._polymerFn(X)};
FCz&&Object.assign(Polymer,FCz);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:Vhs,resolveUrl:_.Y5,pathFromUrl:byY};Polymer.DomModule=EA;Polymer.Async={timeOut:_.kC,animationFrame:_.aL,idlePeriod:Lxz,microTask:fl};Polymer.dedupingMixin=dx;Polymer.wrap=_.cq;Polymer.PropertiesChanged=a0q;Polymer.telemetry={instanceCount:l04,incrementInstanceCount:function(){l04++},
registrations:jDJ,register:gyf,dumpRegistrations:function(){jDJ.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=xYB;Polymer.CaseMap={dashToCamelCase:Ds,camelToDashCase:Si};Polymer.PropertyAccessors=GGJ;Polymer.TemplateStamp=o0q;Polymer.Path={isPath:ha,root:Zs,isAncestor:Ds0,isDescendant:Kl,translate:OA,matches:Sef,normalize:uC,split:hpE,get:QN,set:ZyE,isDeep:ha};Polymer.Settings={useShadow:$e,useNativeCSSProperties:KxY,useNativeCustomElements:OqJ,get rootPath(){return cEo},setRootPath:function(X){cEo=X},
get sanitizeDOMValue(){return pl},setSanitizeDOMValue:function(X){pl=X},
get passiveTouchGestures(){return Ai6},setPassiveTouchGestures:function(X){Ai6=X},
get strictTemplatePolicy(){return wu},setStrictTemplatePolicy:function(X){wu=X},
get allowTemplateFromDomModule(){return pPR},setAllowTemplateFromDomModule:function(X){pPR=X},
get legacyOptimizations(){return Xm},setLegacyOptimizations:function(X){Xm=X},
get syncInitialRender(){return rEt},setSyncInitialRender:function(X){rEt=X},
get legacyUndefined(){return N_},setLegacyUndefined:function(X){N_=X},
get legacyWarnings(){return y8},setLegacyWarnings:function(X){y8=X},
get orderedComputed(){return Nkt},setOrderedComputed:function(X){Nkt=X},
get fastDomIf(){return nm},setFastDomIf:function(X){nm=X},
get removeNestedTemplates(){return BB},setRemoveNestedTemplates:function(X){BB=X},
get suppressTemplateNotifications(){return Vo},setSuppressTemplateNotifications:Vo};Polymer.rootPath!==void 0&&(cEo=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(pl=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Ai6=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(wu=Polymer.strictTemplatePolicy);pPR=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Xm=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(rEt=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(N_=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(y8=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(Nkt=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(nm=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(BB=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Vo=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return pl},
set:function(X){pl=X}});Polymer.PropertyEffects=jt;Polymer.StyleGather={stylesFromModules:f7l,stylesFromModule:xsv,stylesFromTemplate:MhV,stylesFromModuleImports:XaE,cssFromModules:twG,cssFromModule:$MV,cssFromTemplate:GCJ,cssFromModuleImports:function(X){return(X=EA.import(X))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(X):""}};Polymer.ElementMixin=gx;Polymer.updateStyles=function(X){window.ShadyCSS&&window.ShadyCSS.styleDocument(X)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:zCh};Polymer.html=_.e7B;Polymer.htmlLiteral=function(X){return new HVl(X,_.f1.apply(1,arguments))};Polymer.Element=FL;Polymer.ArraySelectorMixin=j$J;Polymer.ArraySelector=Tv;var T9q=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Agq=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,EEY=/@media\s(.*)/;var VwG=null,nlf=window.HTMLImports&&window.HTMLImports.whenReady||null,bVw;var YGh=null,Az=null,YC=function(){this.customStyles=[];this.enqueued=!1;kCl(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},s$h=function(X){!X.enqueued&&Az&&(X.enqueued=!0,kCl(Az))};
YC.prototype.addCustomStyle=function(X){X.__seenByShadyCSS||(X.__seenByShadyCSS=!0,this.customStyles.push(X),s$h(this))};
YC.prototype.getStyleForCustomStyle=function(X){if(X.__shadyCSSCachedStyle)return X.__shadyCSSCachedStyle;var t;X.getStyle?t=X.getStyle():t=X;return t};
YC.prototype.processStyles=function(){for(var X=this.customStyles,t=0;t<X.length;t++){var G=X[t];if(!G.__shadyCSSCachedStyle){var y=this.getStyleForCustomStyle(G);y&&(y=y.__appliedElement||y,YGh&&YGh(y),G.__shadyCSSCachedStyle=y)}}return X};
YC.prototype.addCustomStyle=YC.prototype.addCustomStyle;YC.prototype.getStyleForCustomStyle=YC.prototype.getStyleForCustomStyle;YC.prototype.processStyles=YC.prototype.processStyles;Object.defineProperties(YC.prototype,{transformCallback:{get:function(){return YGh},
set:function(X){YGh=X}},
validateCallback:{get:function(){return Az},
set:function(X){var t=!1;Az||(t=!0);Az=X;t&&s$h(this)}}});var eCs=!(window.ShadyDOM&&window.ShadyDOM.inUse),dM_,bw;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(bw=window.ShadyCSS.cssBuild);var DQe=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?dM_=window.ShadyCSS.nativeCss:window.ShadyCSS?(jAE(window.ShadyCSS),window.ShadyCSS=void 0):jAE(window.WebComponents&&window.WebComponents.flags);var rwV=dM_;var SGP=new YC;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(X,t){SGP.processStyles();JiY(X,t)},
styleElement:function(){SGP.processStyles()},
styleDocument:function(X){SGP.processStyles();JiY(document.body,X)},
getComputedStyleValue:function(X,t){return BPE(X,t)},
flushCustomStyles:function(){},
nativeCss:rwV,nativeShadow:eCs,cssBuild:bw,disableRuntime:DQe});window.ShadyCSS.CustomStyleInterface=SGP;var h7h=window.ShadyCSS.CustomStyleInterface,s_=function(){var X=HTMLElement.call(this)||this;X._style=null;h7h.addCustomStyle(X);return X};
_.S(s_,HTMLElement);s_.prototype.getStyle=function(){if(this._style)return this._style;var X=this.querySelector("style");if(!X)return null;this._style=X;var t=X.getAttribute("include");t&&(X.removeAttribute("include"),X.textContent=twG(t)+X.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
s_.prototype.getStyle=s_.prototype.getStyle;window.customElements.define("custom-style",s_);Polymer.CustomStyle=s_;var DZ=function(){this._timer=this._callback=this._asyncModule=null},St,qGY;
DZ.prototype.setConfig=function(X,t){var G=this;this._asyncModule=X;this._callback=t;this._timer=this._asyncModule.run(function(){G._timer=null;St.delete(G);G._callback()})};
DZ.prototype.cancel=function(){this.isActive()&&(Zge(this),St.delete(this))};
var Zge=function(X){X.isActive()&&(X._asyncModule.cancel(X._timer),X._timer=null)};
DZ.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
DZ.prototype.isActive=function(){return this._timer!=null};
_.hz=function(X,t,G){X instanceof DZ?Zge(X):X=new DZ;X.setConfig(t,G);return X};
St=new Set;_.ZZ=function(X){St.add(X)};
qGY=function(){var X=!!St.size;St.forEach(function(t){try{t.flush()}catch(G){setTimeout(function(){throw G;})}});
return X};var Fhw=typeof document.head.style.touchAction==="string",glv=["mousedown","mousemove","mouseup","click"],q5f=[0,1,4,2],CAB;try{CAB=(new MouseEvent("test",{buttons:1})).buttons===1}catch(X){CAB=!1}var ZVA=CAB,TPs=!1;(function(){try{var X=Object.defineProperty({},"passive",{get:function(){TPs=!0}});
window.addEventListener("test",null,X);window.removeEventListener("test",null,X)}catch(t){}})();
var sAf=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),DM6=[],KCP={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},PWf={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},S5J=function(X){var t=X.sourceCapabilities;if(!t||t.firesTouchEvents)if(X.__polymerGesturesHandled={skip:!0},X.type==="click"){t=!1;for(var G=ucV(X),y=0;y<G.length;y++){if(G[y].nodeType===Node.ELEMENT_NODE)if(G[y].localName==="label")DM6.push(G[y]);
else if(KCP[G[y].localName]){var w=G[y];var z=Array.prototype.slice.call(w.labels||[]);if(!z.length){z=[];try{var B=w.getRootNode();if(w.id){var V=B.querySelectorAll("label[for = '"+w.id+"']");for(w=0;w<V.length;w++)z.push(V[w])}}catch(b){}}for(w=0;w<z.length;w++)t=t||DM6.indexOf(z[w])>-1}if(G[y]===Ogh)return}t||(X.preventDefault(),X.stopPropagation())}},Ogh=null,qD=null,Iwl=0,WhY=0,QAs=-1,cis=!1;
document.addEventListener("touchend",function(X){qD||hCl(!0);Ogh=ucV(X)[0];qD=_.hz(qD,_.kC.after(2500),function(){hCl();qD=Ogh=null})},TPs?{passive:!0}:!1);
var ucV=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(X){return X.composedPath&&X.composedPath()||[]},vq={},iC=[];
paG({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){RO(this.info)},
mousedown:function(X){if(mX(X)){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X),G=this;KhJ(this.info,function(y){mX(y)||(M_("up",t,y),RO(G.info))},function(y){mX(y)&&M_("up",t,y);
RO(G.info)});
M_("down",t,X)}},
touchstart:function(X){M_("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X),X.changedTouches[0],X)},
touchend:function(X){M_("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X),X.changedTouches[0],X)}});
paG({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(X){this.moves.length>2&&this.moves.shift();this.moves.push(X)},
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;RO(this.info)},
mousedown:function(X){if(mX(X)){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X),G=this,y=function(w){var z=w.clientX,B=w.clientY;riV(G.info,z,B)&&(G.info.state=G.info.started?w.type==="mouseup"?"end":"track":"start",G.info.state==="start"&&Ll("tap"),G.info.addMove({x:z,y:B}),mX(w)||(G.info.state="end",RO(G.info)),t&&NPJ(G.info,t,w),G.info.started=!0)};
KhJ(this.info,y,function(w){G.info.started&&y(w);RO(G.info)});
this.info.x=X.clientX;this.info.y=X.clientY}},
touchstart:function(X){X=X.changedTouches[0];this.info.x=X.clientX;this.info.y=X.clientY},
touchmove:function(X){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X);X=X.changedTouches[0];var G=X.clientX,y=X.clientY;riV(this.info,G,y)&&(this.info.state==="start"&&Ll("tap"),this.info.addMove({x:G,y:y}),NPJ(this.info,t,X),this.info.state="track",this.info.started=!0)},
touchend:function(X){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X);X=X.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:X.clientX,y:X.clientY}),NPJ(this.info,t,X))}});
paG({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(X){mX(X)&&(this.info.x=X.clientX,this.info.y=X.clientY)},
click:function(X){mX(X)&&ElA(this.info,X)},
touchstart:function(X){X=X.changedTouches[0];this.info.x=X.clientX;this.info.y=X.clientY},
touchend:function(X){ElA(this.info,X.changedTouches[0],X)}});var uVo=dx(function(X){var t=function(){return X.apply(this,arguments)||this};
_.S(t,X);t.prototype._addEventListenerToNode=function(G,y,w){aO(G,y,w)||X.prototype._addEventListenerToNode.call(this,G,y,w)};
t.prototype._removeEventListenerFromNode=function(G,y,w){lC(G,y,w)||X.prototype._removeEventListenerFromNode.call(this,G,y,w)};
return t});var Cm=dx(function(X){var t=function(){return X.apply(this,arguments)||this};
_.S(t,X);t.prototype._shouldPropertyChange=function(G,y,w){return UMh(this,G,y,w,!0)};
return t}),Q$h=dx(function(X){var t=function(){return X.apply(this,arguments)||this};
_.S(t,X);t.prototype._shouldPropertyChange=function(G,y,w){return UMh(this,G,y,w,this.mutableData)};
_.ke.Object.defineProperties(t,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return t});
Cm._mutablePropertyChange=UMh;var mMA=!1;var IlR=uVo(Q$h(jt(HTMLElement))),Km=function(){var X=IlR.call(this)||this;if(wu)throw Error("Hd");X.root=null;X.$=null;X.__children=null;return X};
_.S(Km,IlR);_.H=Km.prototype;_.H.attributeChangedCallback=function(){this.mutableData=!0};
_.H.connectedCallback=function(){RCs()||(this.style.display="none");this.render()};
_.H.disconnectedCallback=function(){this.__removeChildren()};
_.H.__insertChildren=function(){(0,_.cq)((0,_.cq)(this).parentNode).insertBefore(this.root,this)};
_.H.__removeChildren=function(){if(this.__children)for(var X=0;X<this.__children.length;X++)this.root.appendChild(this.__children[X])};
_.H.render=function(){var X=this;if(!this.__children){var t=t||this.querySelector("template");if(!t){var G=new MutationObserver(function(){if(t=X.querySelector("template"))G.disconnect(),X.render();else throw Error("Id");});
G.observe(this,{childList:!0});return}this.root=this._stampTemplate(t);this.$=this.root.$;this.__children=[];for(var y=this.root.firstChild;y;y=y.nextSibling)this.__children[this.__children.length]=y;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.ke.Object.defineProperties(Km,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Km);Polymer.Debouncer=DZ;Polymer.Gestures={gestures:vq,recognizers:iC,deepTargetFind:OVl,addListener:aO,removeListener:lC,register:paG,setTouchAction:_.x5,prevent:Ll,resetMouseCanceller:function(){qD&&qD.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:aO,remove:lC};Polymer.GestureEventListeners=uVo;Polymer.MutableData=Cm;Polymer.OptionalMutableData=Q$h;Polymer.DomBind=Km;_.O_=function(){do{var X=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var t=qGY()}while(X||t)};var iVJ=null;Lh_.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Lh_,writable:!0}});var $es=jt(Lh_),XHh=Cm($es),WCP=jt(function(){}),tL=function(X){var t=WCP.call(this)||this;
t._configureProperties(X);t.root=t._stampTemplate(t.__dataHost);var G=[];t.children=G;for(var y=t.root.firstChild;y;y=y.nextSibling)G.push(y),y.__templatizeInstance=t;t.__templatizeOwner&&t.__templatizeOwner.__hideTemplateChildren__&&t._showHideChildren(!0);G=t.__templatizeOptions;(X&&G.instanceProps||!G.instanceProps)&&t._enableProperties();return t};
_.S(tL,WCP);_.H=tL.prototype;_.H._configureProperties=function(X){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var G in X)this._setPendingProperty(G,X[G])};
_.H.forwardHostProp=function(X,t){this._setPendingPropertyOrPath(X,t,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.H._addEventListenerToNode=function(X,t,G){var y=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(X,t,function(z){z.model=y;G(z)});
else{var w=this.__dataHost.__dataHost;w&&w._addEventListenerToNode(X,t,G)}};
_.H._showHideChildren=function(X){awE(X,this.children)};
_.H._setUnmanagedPropertyToNode=function(X,t,G){X.__hideTemplateChildren__&&X.nodeType==Node.TEXT_NODE&&t=="textContent"?X.__polymerTextContent__=G:WCP.prototype._setUnmanagedPropertyToNode.call(this,X,t,G)};
_.H.dispatchEvent=function(){return!0};
_.ke.Object.defineProperties(tL.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var X=this.__parentModel;if(!X){var t;X=this;do X=X.__dataHost.__dataHost;while((t=X.__templatizeOptions)&&!t.parentModel);this.__parentModel=X}return X}}});
var xMs=Cm(tL);var uy=function(){var X=FL.call(this)||this;X.__renderDebouncer=null;X._lastIf=!1;X.__hideTemplateChildren__=!1;return X};
_.S(uy,FL);_.H=uy.prototype;_.H.__debounceRender=function(){var X=this;this.__renderDebouncer=_.hz(this.__renderDebouncer,fl,function(){return X.__render()});
_.ZZ(this.__renderDebouncer)};
_.H.disconnectedCallback=function(){FL.prototype.disconnectedCallback.call(this);var X=(0,_.cq)(this).parentNode;X&&(X.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.cq)(X).host)||this.__teardownInstance()};
_.H.connectedCallback=function(){FL.prototype.connectedCallback.call(this);RCs()||(this.style.display="none");this.if&&this.__debounceRender()};
_.H.__ensureTemplate=function(){var X=this;if(!this.__template){var t=this._templateInfo?this:(0,_.cq)(this).querySelector("template");if(!t){var G=new MutationObserver(function(){if((0,_.cq)(X).querySelector("template"))G.disconnect(),X.__render();else throw Error("Ld");});
G.observe(this,{childList:!0});return!1}this.__template=t}return!0};
_.H.__ensureInstance=function(){var X=(0,_.cq)(this).parentNode;if(this.__hasInstance()){var t=this.__getInstanceNodes();if(t&&t.length&&(0,_.cq)(this).previousSibling!==t[t.length-1])for(var G=0,y=void 0;G<t.length&&(y=t[G]);G++)(0,_.cq)(X).insertBefore(y,this)}else{if(!X||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(X)}return!0};
_.H.render=function(){_.O_()};
_.H.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Vo&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.H.__hasInstance=function(){};
_.H.__getInstanceNodes=function(){};
_.H.__createAndInsertInstance=function(){};
_.H.__teardownInstance=function(){};
_.H._showHideChildren=function(){};
_.ke.Object.defineProperties(uy,{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:uy.prototype.__debounceRender},restamp:{type:Boolean,observer:uy.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var cg4=function(){var X=uy.call(this)||this;X.__instance=null;X.__syncInfo=null;return X};
_.S(cg4,uy);_.H=cg4.prototype;_.H.__hasInstance=function(){return!!this.__instance};
_.H.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.H.__createAndInsertInstance=function(X){var t=this,G=this.__dataHost||this;if(wu&&!this.__dataHost)throw Error("Jd");var y=G._bindTemplate(this.__template,!0);y.runEffects=function(w,z,B){var V=t.__syncInfo;if(t.if)V&&(t.__syncInfo=null,t._showHideChildren(),z=Object.assign(V.changedProps,z)),w(z,B);else if(t.__instance)if(V||(V=t.__syncInfo={runEffects:w,changedProps:{}}),B)for(var b in z)w=Zs(b),V.changedProps[w]=t.__dataHost[w];else Object.assign(V.changedProps,z)};
this.__instance=G._stampTemplate(this.__template,y);(0,_.cq)(X).insertBefore(this.__instance,this)};
_.H.__syncHostProperties=function(){var X=this.__syncInfo;X&&(this.__syncInfo=null,X.runEffects(X.changedProps,!1))};
_.H.__teardownInstance=function(){var X=this.__dataHost||this;this.__instance&&(X._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.H._showHideChildren=function(){var X=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==X&&(this.__instance.__hidden=X,awE(X,this.__instance.templateInfo.childNodes));X||this.__syncHostProperties()};
var pKo=function(){var X=uy.call(this)||this;X.__ctor=null;X.__instance=null;X.__invalidProps=null;return X};
_.S(pKo,uy);_.H=pKo.prototype;_.H.__hasInstance=function(){return!!this.__instance};
_.H.__getInstanceNodes=function(){return this.__instance.children};
_.H.__createAndInsertInstance=function(X){this.__ctor||(this.__ctor=Gp(this.__template,this,{mutableData:!0,forwardHostProp:function(t,G){this.__instance&&(this.if?this.__instance.forwardHostProp(t,G):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Zs(t)]=!0))}}));
this.__instance=new this.__ctor;(0,_.cq)(X).insertBefore(this.__instance.root,this)};
_.H.__teardownInstance=function(){if(this.__instance){var X=this.__instance.children;if(X&&X.length){var t=(0,_.cq)(X[0]).parentNode;if(t){t=(0,_.cq)(t);for(var G=0,y=void 0;G<X.length&&(y=X[G]);G++)t.removeChild(y)}}this.__instance=this.__invalidProps=null}};
_.H.__syncHostProperties=function(){var X=this.__invalidProps;if(X){this.__invalidProps=null;for(var t in X)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}};
_.H._showHideChildren=function(){var X=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==X&&(this.__instance.__hidden=X,this.__instance._showHideChildren(X));X||this.__syncHostProperties()};
_.fd=nm?cg4:pKo;customElements.define(_.fd.is,_.fd);Polymer.enqueueDebouncer=_.ZZ;Polymer.flush=_.O_;Polymer.Templatize={templatize:Gp,modelForElement:H9V};Polymer.TemplateInstanceBase=tL;Polymer.DomIf=_.fd;var rgY=Q$h(FL),x3=function(){var X=rgY.call(this)||this;X.__instances=[];X.__renderDebouncer=null;X.__itemsIdxToInstIdx={};X.__chunkCount=null;X.__renderStartTime=null;X.__itemsArrayChanged=!1;X.__shouldMeasureChunk=!1;X.__shouldContinueChunking=!1;X.__chunkingId=0;X.__sortFn=null;X.__filterFn=null;X.__observePaths=null;X.__ctor=null;X.__isDetached=!0;X.template=null;return X};
_.S(x3,rgY);_.H=x3.prototype;_.H.disconnectedCallback=function(){rgY.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var X=0;X<this.__instances.length;X++)this.__detachInstance(X);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.H.connectedCallback=function(){rgY.prototype.connectedCallback.call(this);RCs()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var X=(0,_.cq)((0,_.cq)(this).parentNode),t=0;t<this.__instances.length;t++)this.__attachInstance(t,X);this.__chunkingId&&this.__render()}};
_.H.__ensureTemplatized=function(){var X=this;if(!this.__ctor){var t=this.template=this._templateInfo?this:this.querySelector("template");if(!t){var G=new MutationObserver(function(){if(X.querySelector("template"))G.disconnect(),X.__render();else throw Error("Md");});
G.observe(this,{childList:!0});return!1}var y={};y[this.as]=!0;y[this.indexAs]=!0;y[this.itemsIndexAs]=!0;this.__ctor=Gp(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:y,forwardHostProp:function(w,z){for(var B=this.__instances,V=0,b=void 0;V<B.length&&(b=B[V]);V++)b.forwardHostProp(w,z)},
notifyInstanceProp:function(w,z,B){Sef(this.as,z)&&(w=w[this.itemsIndexAs],z==this.as&&(this.items[w]=B),z=OA(this.as,"items."+w,z),this.notifyPath(z,B))}})}return!0};
_.H.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.H.__functionFromPropertyValue=function(X){if(typeof X==="string"){var t=this.__getMethodHost();return function(){return t[X].apply(t,arguments)}}return X};
_.H.__sortChanged=function(X){this.__sortFn=this.__functionFromPropertyValue(X);this.items&&this.__debounceRender(this.__render)};
_.H.__filterChanged=function(X){this.__filterFn=this.__functionFromPropertyValue(X);this.items&&this.__debounceRender(this.__render)};
_.H.__computeFrameTime=function(X){return Math.ceil(1E3/X)};
_.H.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.H.__handleObservedPaths=function(X){if(this.__sortFn||this.__filterFn)if(!X)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var t=this.__observePaths,G=0;G<t.length;G++)X.indexOf(t[G])===0&&this.__debounceRender(this.__render,this.delay)};
_.H.__itemsChanged=function(X){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(X.path,X.value)||(X.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.H.__debounceRender=function(X,t){t=t===void 0?0:t;this.__renderDebouncer=_.hz(this.__renderDebouncer,t>0?_.kC.after(t):fl,X.bind(this));_.ZZ(this.__renderDebouncer)};
_.H.render=function(){this.__debounceRender(this.__render);_.O_()};
_.H.__render=function(){var X=this;if(this.__ensureTemplatized()){var t=this.items||[],G=this.__sortAndFilterItems(t),y=this.__calculateLimit(G.length);this.__updateInstances(t,y,G);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){X.__chunkingId=null;X.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Vo&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.H.__sortAndFilterItems=function(X){for(var t=this,G=Array(X.length),y=0;y<X.length;y++)G[y]=y;this.__filterFn&&(G=G.filter(function(w,z,B){return t.__filterFn(X[w],z,B)}));
this.__sortFn&&G.sort(function(w,z){return t.__sortFn(X[w],X[z])});
return G};
_.H.__calculateLimit=function(X){var t=X,G=this.__instances.length;if(this.initialCount){var y;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(X,this.initialCount),this.__chunkCount=(y=Math.max(t-G,0))||1):(y=Math.min(Math.max(X-G,0),this.__chunkCount),t=Math.min(G+y,X));this.__shouldMeasureChunk=y===this.__chunkCount;this.__shouldContinueChunking=t<X;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return t};
_.H.__continueChunking=function(){if(this.__shouldMeasureChunk){var X=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/X*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.H.__updateInstances=function(X,t,G){var y=this.__itemsIdxToInstIdx={},w;for(w=0;w<t;w++){var z=this.__instances[w],B=G[w],V=X[B];y[B]=w;z?(z._setPendingProperty(this.as,V),z._setPendingProperty(this.indexAs,w),z._setPendingProperty(this.itemsIndexAs,B),z._flushProperties()):this.__insertInstance(V,w,B)}for(X=this.__instances.length-1;X>=w;X--)this.__detachAndRemoveInstance(X)};
_.H.__detachInstance=function(X){X=this.__instances[X];for(var t=(0,_.cq)(X.root),G=0;G<X.children.length;G++)t.appendChild(X.children[G]);return X};
_.H.__attachInstance=function(X,t){t.insertBefore(this.__instances[X].root,this)};
_.H.__detachAndRemoveInstance=function(X){this.__detachInstance(X);this.__instances.splice(X,1)};
_.H.__stampInstance=function(X,t,G){var y={};y[this.as]=X;y[this.indexAs]=t;y[this.itemsIndexAs]=G;return new this.__ctor(y)};
_.H.__insertInstance=function(X,t,G){X=this.__stampInstance(X,t,G);G=(G=this.__instances[t+1])?G.children[0]:this;(0,_.cq)((0,_.cq)(this).parentNode).insertBefore(X.root,G);return this.__instances[t]=X};
_.H._showHideChildren=function(X){for(var t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(X)};
_.H.__handleItemPath=function(X,t){var G=X.slice(6),y=G.indexOf(".");X=y<0?G:G.substring(0,y);if(X==parseInt(X,10)){G=y<0?"":G.substring(y+1);this.__handleObservedPaths(G);if(X=this.__instances[this.__itemsIdxToInstIdx[X]])X._setPendingPropertyOrPath(this.as+(G?"."+G:""),t,!1,!0),X._flushProperties();return!0}};
_.H.itemForElement=function(X){return(X=this.modelForElement(X))&&X[this.as]};
_.H.indexForElement=function(X){return(X=this.modelForElement(X))&&X[this.indexAs]};
_.H.modelForElement=function(X){return H9V(this.template,X)};
_.ke.Object.defineProperties(x3,{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:x3.prototype.__sortChanged},filter:{type:Function,observer:x3.prototype.__filterChanged},observe:{type:String,observer:x3.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Vo,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.*)"]}}});
x3.prototype._setRenderedItemCount=function(){};
customElements.define(x3.is,x3);Polymer.DomRepeat=x3;var N9q=function(X,t){var G=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=X;this.callback=t;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){G._schedule()};
this.connect();this._schedule()},PAe=function(X){var t=(0,_.cq)(X);
if(zp(X))return t.assignedNodes({flatten:!0});X=[];for(var G=0;G<t.childNodes.length;G++){var y=t.childNodes[G];zp(y)?X.push.apply(X,_.RY((0,_.cq)(y).assignedNodes({flatten:!0}))):X.push(y)}return X};
_.H=N9q.prototype;_.H.connect=function(){var X=this;zp(this._target)?this._listenSlots([this._target]):(0,_.cq)(this._target).children&&(this._listenSlots((0,_.cq)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(t){X._processMutations(t)}):(this._nativeChildrenObserver=new MutationObserver(function(t){X._processMutations(t)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.H.disconnect=function(){zp(this._target)?this._unlistenSlots([this._target]):(0,_.cq)(this._target).children&&(this._unlistenSlots((0,_.cq)(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};
_.H._schedule=function(){var X=this;this._scheduled||(this._scheduled=!0,fl.run(function(){return X.flush()}))};
_.H._processMutations=function(X){this._processSlotMutations(X);this.flush()};
_.H._processSlotMutations=function(X){if(X)for(var t=0;t<X.length;t++){var G=X[t];G.addedNodes&&this._listenSlots(G.addedNodes);G.removedNodes&&this._unlistenSlots(G.removedNodes)}};
_.H.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 X={target:this._target,addedNodes:[],removedNodes:[]},t=PAe(this._target),G=zCh(t,this._effectiveNodes),y=0,w=void 0;y<G.length&&(w=G[y]);y++)for(var z=0,B=void 0;z<w.removed.length&&(B=w.removed[z]);z++)X.removedNodes.push(B);
y=0;for(w=void 0;y<G.length&&(w=G[y]);y++)for(z=w.index;z<w.index+w.addedCount;z++)X.addedNodes.push(t[z]);this._effectiveNodes=t;t=!1;if(X.addedNodes.length||X.removedNodes.length)t=!0,this.callback.call(this._target,X);return t};
_.H._listenSlots=function(X){for(var t=0;t<X.length;t++){var G=X[t];zp(G)&&G.addEventListener("slotchange",this._boundSchedule)}};
_.H._unlistenSlots=function(X){for(var t=0;t<X.length;t++){var G=X[t];zp(G)&&G.removeEventListener("slotchange",this._boundSchedule)}};var Qo=Element.prototype,E04=Qo.matches||Qo.matchesSelector||Qo.mozMatchesSelector||Qo.msMatchesSelector||Qo.oMatchesSelector||Qo.webkitMatchesSelector,UQz=function(X,t){return E04.call(X,t)},Hs=function(X){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(X);
this.node=X},LCq;
_.H=Hs.prototype;_.H.observeNodes=function(X){return new N9q(this.node,X)};
_.H.unobserveNodes=function(X){X.disconnect()};
_.H.notifyObserver=function(){};
_.H.deepContains=function(X){if((0,_.cq)(this.node).contains(X))return!0;var t=X;for(X=X.ownerDocument;t&&t!==X&&t!==this.node;)t=(0,_.cq)(t).parentNode||(0,_.cq)(t).host;return t===this.node};
_.H.getOwnerRoot=function(){return(0,_.cq)(this.node).getRootNode()};
_.H.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.cq)(this.node).assignedNodes({flatten:!0}):[]};
_.H.getDestinationInsertionPoints=function(){for(var X=[],t=(0,_.cq)(this.node).assignedSlot;t;)X.push(t),t=(0,_.cq)(t).assignedSlot;return X};
_.H.importNode=function(X,t){return(0,_.cq)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(X,t)};
_.H.getEffectiveChildNodes=function(){return PAe(this.node)};
_.H.queryDistributedElements=function(X){for(var t=this.getEffectiveChildNodes(),G=[],y=0,w=t.length,z=void 0;y<w&&(z=t[y]);y++)z.nodeType===Node.ELEMENT_NODE&&UQz(z,X)&&G.push(z);return G};
_.ke.Object.defineProperties(Hs.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var X=this.node;return X._activeElement!==void 0?X._activeElement:X.activeElement}}});
var IZ=function(X){this.event=X};
_.ke.Object.defineProperties(IZ.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 mQt=Hs;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var R7Y=window.ShadyDOM.Wrapper,ig4=function(){return R7Y.apply(this,arguments)||this};
_.S(ig4,R7Y);Object.getOwnPropertyNames(Hs.prototype).forEach(function(X){X!="activeElement"&&X!="constructor"&&(ig4.prototype[X]=Hs.prototype[X])});
Jww(ig4.prototype,["classList"]);mQt=ig4;Object.defineProperties(IZ.prototype,{localTarget:{get:function(){var X=this.event.currentTarget;X=X&&_.Es(X).getOwnerRoot();for(var t=this.path,G=0;G<t.length;G++){var y=t[G];if(_.Es(y).getOwnerRoot()===X)return y}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else oEA(),Jww(Hs.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),B1J();LCq=mQt;_.Es=function(X){X=X||document;if(X instanceof mQt)return X;if(X instanceof IZ)return X;var t=X.__domApi;t||(X instanceof Event?t=new IZ(X):t=new mQt(X),X.__domApi=t);return t};var v0P=/:host\(:dir\((ltr|rtl)\)\)/g,alJ=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,llo=/:dir\((?:ltr|rtl)\)/,xQq=!(!window.ShadyDOM||!window.ShadyDOM.inUse),JL=[],WB=null,o4="",flR=dx(function(X){xQq||WB||(o4=document.documentElement.getAttribute("dir"),WB=new MutationObserver(nEh),WB.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var t=GGJ(X);X=function(){var G=t.call(this)||this;G.__autoDirOptOut=!1;return G};
_.S(X,t);X._processStyleText=function(G,y){G=t._processStyleText.call(this,G,y);!xQq&&llo.test(G)&&(G=this._replaceDirInCssText(G),this.__activateDir=!0);return G};
X._replaceDirInCssText=function(G){G=G.replace(v0P,':host([dir="$1"])');return G=G.replace(alJ,':host([dir="$2"]) $1')};
X.prototype.ready=function(){t.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
X.prototype.connectedCallback=function(){t.prototype.connectedCallback&&t.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(WB&&WB.takeRecords().length&&nEh(),JL.push(this),this.__autoDirOptOut||this.setAttribute("dir",o4))};
X.prototype.disconnectedCallback=function(){t.prototype.disconnectedCallback&&t.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var G=JL.indexOf(this);G>-1&&JL.splice(G,1)}};
X.__activateDir=!1;return X});var M74=function(X){for(;X;){var t=Object.getOwnPropertyDescriptor(X,"observedAttributes");if(t)return t.get;X=Object.getPrototypeOf(X.prototype).constructor}return function(){return[]}};
dx(function(X){var t=gx(X),G=M74(t);X=function(){return t.call(this)||this};
_.S(X,t);X.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:t.prototype._initializeProperties.call(this)};
X.prototype._enableProperties=function(){this.__isUpgradeDisabled||t.prototype._enableProperties.call(this)};
X.prototype._canApplyPropertyDefault=function(y){return t.prototype._canApplyPropertyDefault.call(this,y)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(y))};
X.prototype.attributeChangedCallback=function(y,w,z,B){y=="disable-upgrade"?this.__isUpgradeDisabled&&z==null&&(t.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.cq)(this).isConnected&&t.prototype.connectedCallback.call(this)):t.prototype.attributeChangedCallback.call(this,y,w,z,B)};
X.prototype.connectedCallback=function(){this.__isUpgradeDisabled||t.prototype.connectedCallback.call(this)};
X.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||t.prototype.disconnectedCallback.call(this)};
_.ke.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return G.call(this).concat("disable-upgrade")}}});
return X});var Bs=!1,b9J=[],nE=[];var jQV=window.ShadyDOM,gEh=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",T1Y):document.readyState==="interactive"||document.readyState==="complete"?T1Y():window.addEventListener("DOMContentLoaded",T1Y);var sQG=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=""},Aws=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Yx6=/@import[^;]*;/gim,CzY=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,KZh=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,O90=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,ubA=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Z9E=/^@[^\s]*keyframes/,
h9J=/\s+/g;var QQA={};var cwY=Promise.resolve();var XyY=new Set;var $re=/;\s*/m,tlP=/^\s*(initial)|(inherit)\s*$/,G84=/\s*!important/,ypB=function(){this._map={}};
ypB.prototype.set=function(X,t){X=X.trim();this._map[X]={properties:t,dependants:{}}};
ypB.prototype.get=function(X){X=X.trim();return this._map[X]||null};
var wy4=null,cB=function(){this._measureElement=this._currentElement=null;this._map=new ypB};
_.H=cB.prototype;_.H.detectMixin=function(X){X=Agq.test(X)||T9q.test(X);Agq.lastIndex=0;T9q.lastIndex=0;return X};
_.H.transformTemplate=function(X,t){if(X._gatheredStyle===void 0){var G=[];for(var y=X.content.querySelectorAll("style"),w=0;w<y.length;w++){var z=y[w];if(z.hasAttribute("shady-unscoped")){if(!eCs){var B=z.textContent;if(!XyY.has(B)){XyY.add(B);var V=document.createElement("style");V.setAttribute("shady-unscoped","");V.textContent=B;document.head.appendChild(V)}z.parentNode.removeChild(z)}}else G.push(z.textContent),z.parentNode.removeChild(z)}(G=G.join("").trim())?(y=document.createElement("style"),
y.textContent=G,X.content.insertBefore(y,X.content.firstChild),G=y):G=null;X._gatheredStyle=G}return(X=X._gatheredStyle)?this.JSC$11141_transformStyle(X,t):null};
_.H.JSC$11141_transformStyle=function(X,t){t=t===void 0?"":t;var G=PzE(X);this.transformRules(G,t);X.textContent=N1V(G);return G};
_.H.transformCustomStyle=function(X){var t=this,G=PzE(X);Ue0(G,function(y){y.selector===":root"&&(y.selector="html");t.transformRule(y)});
X.textContent=N1V(G);return G};
_.H.transformRules=function(X,t){var G=this;this._currentElement=t;Ue0(X,function(y){G.transformRule(y)});
this._currentElement=null};
_.H.transformRule=function(X){X.cssText=zlo(this,X.parsedCssText,X);X.selector===":root"&&(X.selector=":host > *")};
var zlo=function(X,t,G){t=t.replace(T9q,function(y,w,z,B){return X._produceCssProperties(y,w,z,B,G)});
return X._consumeCssProperties(t,G)};
_.H=cB.prototype;_.H._getInitialValueForProperty=function(X){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(X)};
_.H._fallbacksFromPreviousRules=function(X){for(var t=this,G=X;G.parent;)G=G.parent;var y={},w=!1;Ue0(G,function(z){(w=w||z===X)||z.selector===X.selector&&Object.assign(y,t._cssTextToMap(z.parsedCssText))});
return y};
_.H._consumeCssProperties=function(X,t){for(var G;G=Agq.exec(X);){var y=G[0],w=G[1];G=G.index;var z=G+y.indexOf("@apply"),B=G+y.length;y=X.slice(0,z);X=X.slice(B);z=t?this._fallbacksFromPreviousRules(t):{};Object.assign(z,this._cssTextToMap(y));w=this._atApplyToCssProperties(w,z);X=y+w+X;Agq.lastIndex=G+w.length}return X};
_.H._atApplyToCssProperties=function(X,t){X=X.replace($re,"");var G=[],y=this._map.get(X);y||(this._map.set(X,{}),y=this._map.get(X));if(y){this._currentElement&&(y.dependants[this._currentElement]=!0);var w,z=y.properties;for(w in z){var B=t&&t[w];y=[w,": var(",X,"_-_",w];B&&y.push(",",B.replace(G84,""));y.push(")");G84.test(z[w])&&y.push(" !important");G.push(y.join(""))}}return G.join("; ")};
_.H._replaceInitialOrInherit=function(X,t){var G=tlP.exec(t);G&&(t=G[1]?this._getInitialValueForProperty(X):"apply-shim-inherit");return t};
_.H._cssTextToMap=function(X,t){t=t===void 0?!1:t;X=X.split(";");for(var G,y,w={},z=0;z<X.length;z++)if(G=X[z])y=G.split(":"),y.length>1&&(G=y[0].trim(),y=y.slice(1).join(":"),t&&(y=this._replaceInitialOrInherit(G,y)),w[G]=y);return w};
_.H._invalidateMixinEntry=function(X){if(wy4)for(var t in X.dependants)t!==this._currentElement&&wy4(t)};
_.H._produceCssProperties=function(X,t,G,y,w){var z=this;G&&mes(G,function(h,u){u&&z._map.get(u)&&(y="@apply "+u+";")});
if(!y)return X;var B=this._consumeCssProperties(""+y,w);w=X.slice(0,X.indexOf("--"));var V=B=this._cssTextToMap(B,!0),b=this._map.get(t),e=b&&b.properties;e?V=Object.assign(Object.create(e),B):this._map.set(t,V);var g=[],F,T=!1;for(F in V){var D=B[F];D===void 0&&(D="initial");!e||F in e||(T=!0);g.push(t+"_-_"+F+": "+D)}T&&this._invalidateMixinEntry(b);b&&(b.properties=V);G&&(w=X+";"+w);return w+g.join("; ")+";"};
cB.prototype.detectMixin=cB.prototype.detectMixin;cB.prototype.transformStyle=cB.prototype.JSC$11141_transformStyle;cB.prototype.transformCustomStyle=cB.prototype.transformCustomStyle;cB.prototype.transformRules=cB.prototype.transformRules;cB.prototype.transformRule=cB.prototype.transformRule;cB.prototype.transformTemplate=cB.prototype.transformTemplate;cB.prototype._separator="_-_";Object.defineProperty(cB.prototype,"invalidCallback",{get:function(){return wy4},
set:function(X){wy4=X}});var pm=new cB,Hpq=function(){this.customStyleInterface=null;pm.invalidCallback=I_h},rx=function(X){!X.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(X.customStyleInterface=window.ShadyCSS.CustomStyleInterface,X.customStyleInterface.transformCallback=function(t){pm.transformCustomStyle(t)},X.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){X.customStyleInterface.enqueued&&X.flushCustomStyles()})})};
_.H=Hpq.prototype;_.H.prepareTemplate=function(X,t){rx(this);R9_(X)===""&&(QQA[t]=X,t=pm.transformTemplate(X,t),X._styleAst=t)};
_.H.flushCustomStyles=function(){rx(this);if(this.customStyleInterface){var X=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var t=0;t<X.length;t++){var G=this.customStyleInterface.getStyleForCustomStyle(X[t]);G&&pm.transformCustomStyle(G)}this.customStyleInterface.enqueued=!1}}};
_.H.styleSubtree=function(X,t){rx(this);t&&JiY(X,t);if(X.shadowRoot)for(this.styleElement(X),X=X.shadowRoot.children||X.shadowRoot.childNodes,t=0;t<X.length;t++)this.styleSubtree(X[t]);else for(X=X.children||X.childNodes,t=0;t<X.length;t++)this.styleSubtree(X[t])};
_.H.styleElement=function(X){rx(this);var t=X.localName,G;t?t.indexOf("-")>-1?G=t:G=X.getAttribute&&X.getAttribute("is")||"":G=X.is;t=QQA[G];if(!(t&&R9_(t)!==""||!t||WZG(t))){if(WZG(t)||t._applyShimValidatingVersion!==t._applyShimNextVersion)this.prepareTemplate(t,G),pH6(t);if(X=X.shadowRoot)if(X=X.querySelector("style"))X.__cssRules=t._styleAst,X.textContent=N1V(t._styleAst)}};
_.H.styleDocument=function(X){rx(this);this.styleSubtree(document.body,X)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var ND=new Hpq,o1R=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(X,t){ND.flushCustomStyles();ND.prepareTemplate(X,t)},
prepareTemplateStyles:function(X,t,G){window.ShadyCSS.prepareTemplate(X,t,G)},
prepareTemplateDom:function(){},
styleSubtree:function(X,t){ND.flushCustomStyles();ND.styleSubtree(X,t)},
styleElement:function(X){ND.flushCustomStyles();ND.styleElement(X)},
styleDocument:function(X){ND.flushCustomStyles();ND.styleDocument(X)},
getComputedStyleValue:function(X,t){return BPE(X,t)},
flushCustomStyles:function(){ND.flushCustomStyles()},
nativeCss:rwV,nativeShadow:eCs,cssBuild:bw,disableRuntime:DQe};o1R&&(window.ShadyCSS.CustomStyleInterface=o1R)}window.ShadyCSS.ApplyShim=pm;var JpY;JpY=window.ShadyCSS;_.PB=dx(function(X){X=uVo(gx(X));var t=bgz?X:flR(X),G=M74(t),y={x:"pan-x",y:"pan-y",none:"none",all:"auto"};X=function(){return t.call(this)||this};
_.S(X,t);X.prototype.created=function(){};
X.prototype.__attributeReaction=function(w,z,B){(this.__dataAttributes&&this.__dataAttributes[w]||w==="disable-upgrade")&&this.attributeChangedCallback(w,z,B,null)};
X.prototype.setAttribute=function(w,z){if(Pse&&!this._legacyForceObservedAttributes){var B=this.getAttribute(w);t.prototype.setAttribute.call(this,w,z);this.__attributeReaction(w,B,String(z))}else t.prototype.setAttribute.call(this,w,z)};
X.prototype.removeAttribute=function(w){if(Pse&&!this._legacyForceObservedAttributes){var z=this.getAttribute(w);t.prototype.removeAttribute.call(this,w);this.__attributeReaction(w,z,null)}else t.prototype.removeAttribute.call(this,w)};
X.prototype._enableProperties=function(){this.__isUpgradeDisabled||t.prototype._enableProperties.call(this)};
X.prototype._canApplyPropertyDefault=function(w){return t.prototype._canApplyPropertyDefault.call(this,w)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(w))};
X.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(t.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
X.prototype.attached=function(){};
X.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(t.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
X.prototype.detached=function(){};
X.prototype.attributeChangedCallback=function(w,z,B,V){z!==B&&(w=="disable-upgrade"?this.__isUpgradeDisabled&&B==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.cq)(this).isConnected&&this.connectedCallback()):(t.prototype.attributeChangedCallback.call(this,w,z,B,V),this.attributeChanged(w,z,B)))};
X.prototype.attributeChanged=function(){};
X.prototype._initializeProperties=function(){if(Xm&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var w=Object.getPrototypeOf(this);w.hasOwnProperty("__hasRegisterFinished")||(this._registered(),w.__hasRegisterFinished=!0);t.prototype._initializeProperties.call(this);this.root=this;this.created();Pse&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
X.prototype._takeAttributes=function(){for(var w=this.attributes,z=0,B=w.length;z<B;z++){var V=w[z];this.__attributeReaction(V.name,null,V.value)}};
X.prototype._registered=function(){};
X.prototype.ready=function(){this._ensureAttributes();t.prototype.ready.call(this)};
X.prototype._ensureAttributes=function(){};
X.prototype._applyListeners=function(){};
X.prototype.serialize=function(w){return this._serializeValue(w)};
X.prototype.deserialize=function(w,z){return this._deserializeValue(w,z)};
X.prototype.reflectPropertyToAttribute=function(w,z,B){this._propertyToAttribute(w,z,B)};
X.prototype.serializeValueToAttribute=function(w,z,B){this._valueToNodeAttribute(B||this,w,z)};
X.prototype.extend=function(w,z){if(!w||!z)return w||z;for(var B=Object.getOwnPropertyNames(z),V=0,b=void 0;V<B.length&&(b=B[V]);V++){var e=Object.getOwnPropertyDescriptor(z,b);e&&Object.defineProperty(w,b,e)}return w};
X.prototype.mixin=function(w,z){for(var B in z)w[B]=z[B];return w};
X.prototype.chainObject=function(w,z){w&&z&&w!==z&&(w.__proto__=z);return w};
X.prototype.instanceTemplate=function(w){w=this.constructor._contentForTemplate(w);return document.importNode(w,!0)};
X.prototype.fire=function(w,z,B){B=B||{};z=z===null||z===void 0?{}:z;w=new Event(w,{bubbles:B.bubbles===void 0?!0:B.bubbles,cancelable:!!B.cancelable,composed:B.composed===void 0?!0:B.composed});w.detail=z;(0,_.cq)(B.node||this).dispatchEvent(w);return w};
X.prototype.listen=function(w,z,B){w=w||this;var V=this.__boundListeners||(this.__boundListeners=new WeakMap),b=V.get(w);b||(b={},V.set(w,b));V=z+B;b[V]||(b[V]=this._addMethodEventListenerToNode(w,z,B,this))};
X.prototype.unlisten=function(w,z,B){w=w||this;var V=this.__boundListeners&&this.__boundListeners.get(w);B=z+B;var b=V&&V[B];b&&(this._removeEventListenerFromNode(w,z,b),V[B]=null)};
X.prototype.setScrollDirection=function(w,z){_.x5(z||this,y[w]||"auto")};
X.prototype.$$=function(w){return this.root.querySelector(w)};
X.prototype.distributeContent=function(){var w=_.Es(this);window.ShadyDOM&&w.shadowRoot&&ShadyDOM.flush()};
X.prototype.getEffectiveChildNodes=function(){return _.Es(this).getEffectiveChildNodes()};
X.prototype.queryDistributedElements=function(w){return _.Es(this).queryDistributedElements(w)};
X.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(w){return w.nodeType===Node.ELEMENT_NODE})};
X.prototype.getEffectiveTextContent=function(){for(var w=this.getEffectiveChildNodes(),z=[],B=0,V;V=w[B];B++)V.nodeType!==Node.COMMENT_NODE&&z.push(V.textContent);return z.join("")};
X.prototype.queryEffectiveChildren=function(w){return(w=this.queryDistributedElements(w))&&w[0]};
X.prototype.queryAllEffectiveChildren=function(w){return this.queryDistributedElements(w)};
X.prototype.getContentChildNodes=function(w){return(w=this.root.querySelector(w||"slot"))?_.Es(w).getDistributedNodes():[]};
X.prototype.getContentChildren=function(w){return this.getContentChildNodes(w).filter(function(z){return z.nodeType===Node.ELEMENT_NODE})};
X.prototype.isLightDescendant=function(w){return this!==w&&(0,_.cq)(this).contains(w)&&(0,_.cq)(this).getRootNode()===(0,_.cq)(w).getRootNode()};
X.prototype.isLocalDescendant=function(w){return this.root===(0,_.cq)(w).getRootNode()};
X.prototype.scopeSubtree=function(w,z){return FZf(w,z===void 0?!1:z)};
X.prototype.getComputedStyleValue=function(w){return JpY.getComputedStyleValue(this,w)};
X.prototype.debounce=function(w,z,B){this._debouncers=this._debouncers||{};return this._debouncers[w]=_.hz(this._debouncers[w],B>0?_.kC.after(B):fl,z.bind(this))};
X.prototype.isDebouncerActive=function(w){this._debouncers=this._debouncers||{};w=this._debouncers[w];return!(!w||!w.isActive())};
X.prototype.flushDebouncer=function(w){this._debouncers=this._debouncers||{};(w=this._debouncers[w])&&w.flush()};
X.prototype.cancelDebouncer=function(w){this._debouncers=this._debouncers||{};(w=this._debouncers[w])&&w.cancel()};
X.prototype.async=function(w,z){return z>0?_.kC.run(w.bind(this),z):~fl.run(w.bind(this))};
X.prototype.cancelAsync=function(w){w<0?fl.cancel(~w):_.kC.cancel(w)};
X.prototype.create=function(w,z){w=document.createElement(w);if(z)if(w.setProperties)w.setProperties(z);else for(var B in z)w[B]=z[B];return w};
X.prototype.elementMatches=function(w,z){return UQz(z||this,w)};
X.prototype.toggleAttribute=function(w,z){var B=this;arguments.length===3&&(B=arguments[2]);arguments.length==1&&(z=!B.hasAttribute(w));if(z)return(0,_.cq)(B).setAttribute(w,""),!0;(0,_.cq)(B).removeAttribute(w);return!1};
X.prototype.toggleClass=function(w,z,B){B=B||this;arguments.length==1&&(z=!B.classList.contains(w));z?B.classList.add(w):B.classList.remove(w)};
X.prototype.transform=function(w,z){z=z||this;z.style.webkitTransform=w;z.style.transform=w};
X.prototype.translate3d=function(w,z,B,V){this.transform("translate3d("+w+","+z+","+B+")",V||this)};
X.prototype.arrayDelete=function(w,z){if(Array.isArray(w)){if(z=w.indexOf(z),z>=0)return w.splice(z,1)}else if(z=QN(this,w).indexOf(z),z>=0)return this.splice(w,z,1);return null};
X.prototype._logger=function(w,z){Array.isArray(z)&&z.length===1&&Array.isArray(z[0])&&(z=z[0]);switch(w){case "log":case "warn":case "error":console[w].apply(console,_.RY(z))}};
X.prototype._log=function(){this._logger("log",_.f1.apply(0,arguments))};
X.prototype._warn=function(){this._logger("warn",_.f1.apply(0,arguments))};
X.prototype._error=function(){this._logger("error",_.f1.apply(0,arguments))};
X.prototype._logf=function(w){return["[%s::%s]",this.is,w].concat(_.RY(_.f1.apply(1,arguments)))};
_.ke.Object.defineProperties(X.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var w=(0,_.cq)(this).getRootNode();return w instanceof DocumentFragment?w.host:w}}});
_.ke.Object.defineProperties(X,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Pse&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],gyf(this.prototype)),this.__observedAttributes):G.call(this).concat("disable-upgrade")}}});
X.prototype.is="";return X});Polymer.FlattenedNodesObserver=N9q;Polymer.DomApi=LCq;Polymer.EventApi=IZ;Polymer.dom=_.Es;Polymer.dom.matchesSelector=UQz;Polymer.dom.flush=_.O_;Polymer.dom.addDebouncer=_.ZZ;Polymer.DirMixin=flR;Polymer.RenderStatus={beforeNextRender:_.e9_,afterNextRender:_.V8,flush:function(){for(;b9J.length||nE.length;)V$0(b9J),V$0(nE);Bs=!1}};Polymer.LegacyElementMixin=_.PB;var BVY;BVY=Cm._mutablePropertyChange;var n1S={properties:{mutableData:Boolean},_shouldPropertyChange:function(X,t,G){return BVY(this,X,t,G,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(X,t,G){return BVY(this,X,t,G,!0)}};
Polymer.OptionalMutableDataBehavior=n1S;var i9l={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},xe6={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},l_Y=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},xe6),VlY=(0,_.PB)(HTMLElement),ceV=function(X,t){X||console.warn("Polymer.Class requires `info` argument");t=t?t(VlY):VlY;t=f_l(X,t,X.behaviors);t.is=t.prototype.is=
X.is;return t};Polymer.Class=ceV;Polymer.mixinBehaviors=function(X,t){return f_l({},(0,_.PB)(t),X)};
Polymer.GenerateClassFromInfo=f_l;_.le=function(X){var t=typeof X==="function"?X:_.le.Class(X);X._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=X._legacyForceObservedAttributes);customElements.define(t.is,t);return t};
_.le.Class=ceV;Polymer._polymerFn=_.le;var bpe=window.onLegacyPolymerFunctionDefinedCallback;bpe&&bpe();var reE={templatize:function(X,t){this._templatizerTemplate=X;this.ctor=Gp(X,this,{mutableData:!!t,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(X){return new this.ctor(X)},
modelForElement:function(X){return H9V(this._templatizerTemplate,X)}};Polymer.Templatizer=reE;_.E_=(0,_.PB)(HTMLElement).prototype;Polymer.Base=_.E_;var XIY=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.du=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.S(_.du,PolymerFakeBaseClass);var eb=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.S(eb,PolymerFakeBaseClass);var $FJ=Symbol("Nd"),JlV=[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 k8z=k8z||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},dre;(function(X){function t(R,L,x){var w6=l.get(R);if(!w6){if(!x)return;w6=new c;l.set(R,w6)}R=w6.get(L);if(!R){if(!x)return;R=new c;w6.set(L,R)}return R}
function G(R,L,x){if(y(R,L,x))return!0;L=T(L);return L!==null?G(R,L,x):!1}
function y(R,L,x){L=t(L,x,!1);return L===void 0?!1:!!L.has(R)}
function w(R,L,x){if(y(R,L,x))return z(R,L,x);L=T(L);if(L!==null)return w(R,L,x)}
function z(R,L,x){L=t(L,x,!1);if(L!==void 0)return L.get(R)}
function B(R,L){var x=V(R,L);R=T(R);if(R===null)return x;var w6=B(R,L);if(w6.length<=0)return x;if(x.length<=0)return w6;L=new P;R=[];x=_.J(x);for(var BY=x.next();!BY.done;BY=x.next())BY=BY.value,L.has(BY)||(L.add(BY),R.push(BY));x=_.J(w6);for(w6=x.next();!w6.done;w6=x.next())w6=w6.value,L.has(w6)||(L.add(w6),R.push(w6));return R}
function V(R,L){R=t(R,L,!1);var x=[];R&&R.forEach(function(w6,BY){return x.push(BY)});
return x}
function b(R){return R===void 0}
function e(R){return typeof R==="object"?R!==null:typeof R==="function"}
function g(R){return typeof R==="function"}
function F(R){return typeof R==="symbol"?R:String(R)}
function T(R){var L=Object.getPrototypeOf(R);if(typeof R!=="function"||R===W||L!==W)return L;var x=Object.getPrototypeOf(R.prototype);if(x==null||x===Object.prototype)return L;x=x.constructor;return typeof x!=="function"||x===R?L:x}
function D(){function R(){this._keys=[];this._values=[];this._cache=L}
var L={};R.prototype={get size(){return this._keys.length},has:function(x){return x===this._cache?!0:this._find(x)>=0?(this._cache=x,!0):!1},
get:function(x){var w6=this._find(x);if(w6>=0)return this._cache=x,this._values[w6]},
set:function(x,w6){this.delete(x);this._keys.push(x);this._values.push(w6);this._cache=x;return this},
delete:function(x){x=this._find(x);return x>=0?(this._keys.splice(x,1),this._values.splice(x,1),this._cache=L,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=L},
forEach:function(x){for(var w6=this.size,BY=0;BY<w6;++BY){var kJ=this._keys[BY],Ss=this._values[BY];this._cache=kJ;x.call(this,Ss,kJ,this)}},
_find:function(x){for(var w6=this._keys,BY=w6.length,kJ=0;kJ<BY;++kJ)if(w6[kJ]===x)return kJ;return-1}};
return R}
function h(){function R(){this._map=new c}
R.prototype={get size(){return this._map.length},has:function(L){return this._map.has(L)},
add:function(L){this._map.set(L,L);return this},
delete:function(L){return this._map.delete(L)},
clear:function(){this._map.clear()},
forEach:function(L,x){this._map.forEach(L,x)}};
return R}
function u(){function R(){this._key=x()}
function L(Fv,Uh){for(var cY=0;cY<Uh;++cY)Fv[cY]=Math.random()*255|0}
function x(){do{if(BY)var Fv=BY.randomBytes(16);else typeof Uint8Array==="function"?(Fv=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Fv):L(Fv,16)):(Fv=Array(16),L(Fv,16));Fv[6]=Fv[6]&79|64;Fv[8]=Fv[8]&191|128;for(var Uh="",cY=0;cY<16;++cY){var f_=Fv[cY];if(cY===4||cY===6||cY===8)Uh+="-";f_<16&&(Uh+="0");Uh+=f_.toString(16).toLowerCase()}Fv="@@WeakMap@@"+Uh}while(kJ.call(Ss,Fv));Ss[Fv]=!0;return Fv}
function w6(Fv,Uh){if(!kJ.call(Fv,C_)){if(!Uh)return;Object.defineProperty(Fv,C_,{value:Object.create(null)})}return Fv[C_]}
var BY=typeof global!=="undefined"&&typeof k8z==="object"&&typeof require==="function"&&require("crypto"),kJ=Object.prototype.hasOwnProperty,Ss={},C_=x();R.prototype={has:function(Fv){return(Fv=w6(Fv,!1))?this._key in Fv:!1},
get:function(Fv){if(Fv=w6(Fv,!1))return Fv[this._key]},
set:function(Fv,Uh){w6(Fv,!0)[this._key]=Uh;return this},
delete:function(Fv){return(Fv=w6(Fv,!1))&&this._key in Fv?delete Fv[this._key]:!1},
clear:function(){this._key=x()}};
return R}
var W=Object.getPrototypeOf(Function),c=typeof Map==="function"?Map:D(),P=typeof Set==="function"?Set:h(),l=new (typeof WeakMap==="function"?WeakMap:u());X.decorate=function(R,L,x,w6){if(b(w6)){if(b(x)){if(!Array.isArray(R))throw new TypeError;if(!g(L))throw new TypeError;for(x=R.length-1;x>=0;--x)if(w6=(0,R[x])(L),!b(w6)){if(!g(w6))throw new TypeError;L=w6}return L}if(!Array.isArray(R))throw new TypeError;if(!e(L))throw new TypeError;x=F(x);for(w6=R.length-1;w6>=0;--w6)(0,R[w6])(L,x)}else{if(Array.isArray(R))if(e(L)){if(b(x))throw new TypeError;
if(!e(w6))throw new TypeError;}else throw new TypeError;else throw new TypeError;x=F(x);for(var BY=R.length-1;BY>=0;--BY){var kJ=(0,R[BY])(L,x,w6);if(!b(kJ)){if(!e(kJ))throw new TypeError;w6=kJ}}return w6}};
X.metadata=function(R,L){return function(x,w6){if(b(w6)){if(!g(x))throw new TypeError;t(x,void 0,!0).set(R,L)}else{if(!e(x))throw new TypeError;w6=F(w6);t(x,w6,!0).set(R,L)}}};
X.defineMetadata=function(R,L){var x;if(e(L))b(x)||(x=F(x));else throw new TypeError;t(L,x,!0).set("parameters",R)};
X.hasMetadata=function(R,L,x){if(e(L))b(x)||(x=F(x));else throw new TypeError;return G(R,L,x)};
X.hasOwnMetadata=function(R,L,x){if(e(L))b(x)||(x=F(x));else throw new TypeError;return y(R,L,x)};
X.getMetadata=function(R,L,x){if(e(L))b(x)||(x=F(x));else throw new TypeError;return w(R,L,x)};
X.getOwnMetadata=function(R,L,x){if(e(L))b(x)||(x=F(x));else throw new TypeError;return z(R,L,x)};
X.getMetadataKeys=function(R,L){if(e(R))b(L)||(L=F(L));else throw new TypeError;return B(R,L)};
X.getOwnMetadataKeys=function(R,L){if(e(R))b(L)||(L=F(L));else throw new TypeError;return V(R,L)};
X.deleteMetadata=function(R,L,x){if(e(L))b(x)||(x=F(x));else throw new TypeError;var w6=t(L,x,!1);if(!b(w6)){if(!w6.delete(R))return!1;if(w6.size>0)return!0;R=l.get(L);R.delete(x);if(R.size>0)return!0;l.delete(L);return!0}};
(function(R){if(typeof R.Reflect!=="undefined"){if(R.Reflect!==X)for(var L in X)R.Reflect[L]=X[L]}else R.Reflect=X})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(dre||(dre={}));var elR=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
elR.prototype.addEventListener=function(X,t,G){this.target.addEventListener(X,t,G)};
elR.prototype.removeEventListener=function(X,t,G){this.target.removeEventListener(X,t,G)};
elR.prototype.dispatchEvent=function(X){if(this.onabort&&X.type==="abort")this.onabort(X);return this.target.dispatchEvent(X)};var jcq=function(){this.signal=new elR};
jcq.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var X=document.createEvent("Event");X.initEvent("abort",!1,!1);this.signal.dispatchEvent(X)}};var AVV=self;var g1P=[0,_.BI,_.V7,_.BI];var FT4=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(FT4,_.eB);var TV4=_.ZY(FT4,[0,_.Gfs,_.bM,g1P,_.V7,_.da]);_.sx(_.jb,_.po);_.H=_.jb.prototype;_.H.start=function(){this.stop();this.usingListeners_=!1;var X=ApR(this),t=Y8h(this);X&&!t&&this.JSC$11190_win_.mozRequestAnimationFrame?(this.JSC$11190_id_=_.vj(this.JSC$11190_win_,"MozBeforePaint",this.callback_),this.JSC$11190_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11190_id_=X&&t?X.call(this.JSC$11190_win_,this.callback_):this.JSC$11190_win_.setTimeout(kB4(this.callback_),20)};
_.H.stop=function(){if(this.isActive()){var X=ApR(this),t=Y8h(this);X&&!t&&this.JSC$11190_win_.mozRequestAnimationFrame?RL(this.JSC$11190_id_):X&&t?t.call(this.JSC$11190_win_,this.JSC$11190_id_):this.JSC$11190_win_.clearTimeout(this.JSC$11190_id_)}this.JSC$11190_id_=null};
_.H.fire=function(){this.stop();this.JSC$11192_doAction_()};
_.H.isActive=function(){return this.JSC$11190_id_!=null};
_.H.JSC$11192_doAction_=function(){this.usingListeners_&&this.JSC$11190_id_&&RL(this.JSC$11190_id_);this.JSC$11190_id_=null;this.JSC$11190_listener_.call(this.handler_,_.YE())};
_.H.disposeInternal=function(){this.stop();_.jb.superClass_.disposeInternal.call(this)};
var ApR=function(X){X=X.JSC$11190_win_;return X.requestAnimationFrame||X.webkitRequestAnimationFrame||X.mozRequestAnimationFrame||X.oRequestAnimationFrame||X.msRequestAnimationFrame||null},Y8h=function(X){X=X.JSC$11190_win_;
return X.cancelAnimationFrame||X.cancelRequestAnimationFrame||X.webkitCancelRequestAnimationFrame||X.mozCancelRequestAnimationFrame||X.oCancelRequestAnimationFrame||X.msCancelRequestAnimationFrame||null};_.d2=function(X,t,G){_.po.call(this);this.JSC$11193_listener_=G!=null?X.bind(G):X;this.JSC$11193_interval_=t;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11193_timer_=null};
_.S(_.d2,_.po);_.H=_.d2.prototype;_.H.fire=function(X){this.args_=arguments;this.JSC$11193_timer_||this.pauseCount_?this.shouldFire_=!0:scR(this)};
_.H.stop=function(){this.JSC$11193_timer_&&(_.tA.clearTimeout(this.JSC$11193_timer_),this.JSC$11193_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.H.pause=function(){this.pauseCount_++};
_.H.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11193_timer_||(this.shouldFire_=!1,scR(this))};
_.H.disposeInternal=function(){_.po.prototype.disposeInternal.call(this);this.stop()};
var scR=function(X){X.JSC$11193_timer_=ii(function(){X.JSC$11193_timer_=null;X.shouldFire_&&!X.pauseCount_&&(X.shouldFire_=!1,scR(X))},X.JSC$11193_interval_);
var t=X.args_;X.args_=null;X.JSC$11193_listener_.apply(null,t)};var DrS=function(X,t){this.childIterator_=X[_.tA.Symbol.iterator]();this.mapFn_=t};
DrS.prototype[Symbol.iterator]=function(){return this};
DrS.prototype.next=function(){var X=this.childIterator_.next();return{value:X.done?void 0:this.mapFn_.call(void 0,X.value),done:X.done}};
var S8z=function(X,t){return new DrS(X,t)};var hlq={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 tRV=function(X){var t=Zp4(X);if(!t)throw Error("Rd`"+X);return t},Zp4=function(X){var t={};
X=String(X);var G=X.charAt(0)=="#"?X:"#"+X;if(q8q.test(G))return t.hex=lIV(G),t.type="hex",t;G=zhA(X);return G.length?(t.hex=rVh(G[0],G[1],G[2]),t.type="rgb",t):hlq&&(X=hlq[X.toLowerCase()])?(t.hex=X,t.type="named",t):null},Cuq=/#(.)(.)(.)/,lIV=function(X){if(!q8q.test(X))throw Error("Td`"+X);
X.length==4&&(X=X.replace(Cuq,"#$1$1$2$2$3$3"));return X.toLowerCase()},GSh=function(X){X=lIV(X);
X=parseInt(X.slice(1),16);return[X>>16,X>>8&255,X&255]},rVh=function(X,t,G){X=Number(X);
t=Number(t);G=Number(G);if(X!=(X&255)||t!=(t&255)||G!=(G&255))throw Error("Ud`"+X+"`"+t+"`"+G);t=X<<16|t<<8|G;return X<16?"#"+(16777216|t).toString(16).slice(1):"#"+t.toString(16)},q8q=/^#(?:[0-9a-f]{3}){1,2}$/i,KTz=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,zhA=function(X){var t=X.match(KTz);
if(t){X=Number(t[1]);var G=Number(t[2]);t=Number(t[3]);if(X>=0&&X<=255&&G>=0&&G<=255&&t>=0&&t<=255)return[X,G,t]}return[]};var Opz={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},Ee=Opz;Ee=Opz;var gkG,u04,QcB;gkG=function(X,t){switch(t){case 1:return X%4!=0||X%100==0&&X%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
u04=function(X,t,G,y,w){X=new Date(X,t,G);w=w||0;return X.valueOf()+(((y!==void 0?y:3)-w+7)%7-((X.getDay()+6)%7-w+7)%7)*864E5};
_.U_=function(X,t,G){typeof X==="number"?(this.date=QcB(X,t||0,G||1),Idh(this,G||1)):_.$h(X)?(this.date=QcB(X.getFullYear(),X.getMonth(),X.getDate()),Idh(this,X.getDate())):(this.date=new Date(_.YE()),X=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Idh(this,X))};
QcB=function(X,t,G){t=new Date(X,t,G);X>=0&&X<100&&t.setFullYear(t.getFullYear()-1900);return t};
_.H=_.U_.prototype;_.H.firstDayOfWeek_=Ee.FIRSTDAYOFWEEK;_.H.firstWeekCutOffDay_=Ee.FIRSTWEEKCUTOFFDAY;_.H.clone=function(){var X=new _.U_(this.date);X.firstDayOfWeek_=this.firstDayOfWeek_;X.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return X};
_.H.getFullYear=function(){return this.date.getFullYear()};
_.H.getYear=function(){return this.getFullYear()};
_.H.getMonth=function(){return this.date.getMonth()};
_.H.getDate=function(){return this.date.getDate()};
_.H.getTime=function(){return this.date.getTime()};
_.H.getDay=function(){return this.date.getDay()};
_.H.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.H.getUTCMonth=function(){return this.date.getUTCMonth()};
_.H.getUTCDate=function(){return this.date.getUTCDate()};
_.H.getUTCDay=function(){return this.date.getDay()};
_.H.getUTCHours=function(){return this.date.getUTCHours()};
_.H.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.H.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.H.set=function(X){this.date=new Date(X.getFullYear(),X.getMonth(),X.getDate())};
_.H.setFullYear=function(X){this.date.setFullYear(X)};
_.H.setYear=function(X){this.setFullYear(X)};
_.H.setMonth=function(X){this.date.setMonth(X)};
_.H.setDate=function(X){this.date.setDate(X)};
_.H.setTime=function(X){this.date.setTime(X)};
_.H.setUTCFullYear=function(X){this.date.setUTCFullYear(X)};
_.H.setUTCMonth=function(X){this.date.setUTCMonth(X)};
_.H.setUTCDate=function(X){this.date.setUTCDate(X)};
_.H.add=function(X){if(X.years||X.months){var t=this.getMonth()+X.months+X.years*12,G=this.getYear()+Math.floor(t/12);t%=12;t<0&&(t+=12);var y=Math.min(gkG(G,t),this.getDate());this.setDate(1);this.setFullYear(G);this.setMonth(t);this.setDate(y)}X.days&&(G=this.getYear(),t=G>=0&&G<=99?-1900:0,X=new Date((new Date(G,this.getMonth(),this.getDate(),12)).getTime()+X.days*864E5),this.setDate(1),this.setFullYear(X.getFullYear()+t),this.setMonth(X.getMonth()),this.setDate(X.getDate()),Idh(this,X.getDate()))};
_.H.JSC$11206_toIsoString=function(X){var t=this.getFullYear(),G=t<0?"-":t>=1E4?"+":"";return[G+_.s1(Math.abs(t),G?6:4),_.s1(this.getMonth()+1,2),_.s1(this.getDate(),2)].join(X?"-":"")};
_.H.equals=function(X){return!(!X||this.getYear()!=X.getYear()||this.getMonth()!=X.getMonth()||this.getDate()!=X.getDate())};
_.H.toString=function(){return this.JSC$11206_toIsoString()};
var Idh=function(X,t){X.getDate()!=t&&X.date.setUTCHours(X.date.getUTCHours()+(X.getDate()<t?1:-1))};
_.U_.prototype.valueOf=function(){return this.date.valueOf()};var RZ=function(X,t,G,y,w){this.reversed=!!t;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!G;X&&mo(this,X,y);this.depth=w!=void 0?w:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.sx(RZ,Sa);var mo=function(X,t,G,y){if(X.node=t)X.tagType=typeof G==="number"?G:X.node.nodeType!=1?0:X.reversed?-1:1;typeof y==="number"&&(X.depth=y)};
_.H=RZ.prototype;_.H.JSC$11221_copyFrom=function(X){this.node=X.node;this.tagType=X.tagType;this.depth=X.depth;this.reversed=X.reversed;this.constrained=X.constrained};
_.H.clone=function(){return new RZ(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.H.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return h8;var X=this.node;var t=this.reversed?-1:1;if(this.tagType==t){var G=this.reversed?X.lastChild:X.firstChild;G?mo(this,G):mo(this,X,t*-1)}else(G=this.reversed?X.previousSibling:X.nextSibling)?mo(this,G):mo(this,X.parentNode,t*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(X=this.node)?Z4(X):h8};
_.H.equals=function(X){return X.node==this.node&&(!this.node||X.tagType==this.tagType)};
_.H.splice=function(X){var t=this.node,G=this.reversed?1:-1;this.tagType==G&&(this.tagType=G*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;RZ.prototype.next.call(this);this.reversed=!this.reversed;G=_.xJ(arguments[0])?arguments[0]:arguments;for(var y=G.length-1;y>=0;y--)_.fN(G[y],t);_.uf(t)};var WT4=function(){},iy=function(X){for(var t=[],G=X.getTextRangeCount(),y=0;y<G;y++)t.push(X.getTextRange(y));
return t};
WT4.prototype.isReversed=function(){return!1};
WT4.prototype.getWindow=function(){return v1(_.aH(this.JSC$11223_getStartNode()))};
var cp4=function(X,t){RZ.call(this,X,t,!0)};
_.sx(cp4,RZ);var Lm=function(X,t,G,y,w){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!w;if(X){this.startNode_=X;this.startOffset_=t;this.endNode_=G;this.endOffset_=y;if(X.nodeType==1&&X.tagName!="BR")if(X=X.childNodes,t=X[t])this.startNode_=t,this.startOffset_=0;else{X.length&&(this.startNode_=_.WY(X));var z=!0}G.nodeType==1&&((this.endNode_=G.childNodes[y])?this.endOffset_=0:this.endNode_=G)}RZ.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);z&&this.next()};
_.sx(Lm,cp4);_.H=Lm.prototype;_.H.JSC$11229_getStartNode=function(){return this.startNode_};
_.H.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)};
_.H.next=function(){return this.isLast()?h8:Lm.superClass_.next.call(this)};
_.H.JSC$11221_copyFrom=function(X){this.startNode_=X.startNode_;this.endNode_=X.endNode_;this.startOffset_=X.startOffset_;this.endOffset_=X.endOffset_;this.isReversed_=X.isReversed_;Lm.superClass_.JSC$11221_copyFrom.call(this,X)};
_.H.clone=function(){var X=new Lm(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);X.JSC$11221_copyFrom(this);return X};var py4=function(){};
py4.prototype.__iterator__=function(){return new Lm(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var vB=function(X){this.range_=X};
_.sx(vB,py4);var rp4=function(X){var t=_.aH(X).createRange();if(X.nodeType==3)t.setStart(X,0),t.setEnd(X,X.length);else if(am(X)||X.nodeType==3){for(var G,y=X;(G=y.firstChild)&&(am(G)||G.nodeType==3);)y=G;t.setStart(y,0);for(y=X;(G=y.lastChild)&&(am(G)||G.nodeType==3);)y=G;t.setEnd(y,y.nodeType==1?y.childNodes.length:y.length)}else G=X.parentNode,X=Array.prototype.indexOf.call(G.childNodes,X),t.setStart(G,X),t.setEnd(G,X+1);return t},NVP=function(X,t,G,y){var w=_.aH(X).createRange();
w.setStart(X,t);w.setEnd(G,y);return w};
_.H=vB.prototype;_.H.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.H.getContainer=function(){return this.range_.commonAncestorContainer};
_.H.compareBrowserRangeEndpoints=function(X,t,G){return this.range_.compareBoundaryPoints(G==1?t==1?_.tA.Range.START_TO_START:_.tA.Range.START_TO_END:t==1?_.tA.Range.END_TO_START:_.tA.Range.END_TO_END,X)};
_.H.isCollapsed=function(){return this.range_.collapsed};
_.H.select=function(X){this.selectInternal(v1(_.aH(this.range_.startContainer)).getSelection(),X)};
_.H.selectInternal=function(X){X.removeAllRanges();X.addRange(this.range_)};
_.H.insertNode=function(X,t){var G=this.range_.cloneRange();G.collapse(t);G.insertNode(X);G.detach();return X};
_.H.collapse=function(X){this.range_.collapse(X)};_.sx(gu,vB);gu.prototype.selectInternal=function(X,t){!t||this.isCollapsed()?gu.superClass_.selectInternal.call(this,X,t):(X.collapse(this.range_.endContainer,this.range_.endOffset),X.extend(this.range_.startContainer,this.range_.startOffset))};_.sx(Fm,vB);Fm.prototype.compareBrowserRangeEndpoints=function(X,t,G){return Fm.superClass_.compareBrowserRangeEndpoints.call(this,X,t,G)};
Fm.prototype.selectInternal=function(X,t){t?X.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):X.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Puq=function(X){return _.C9?new Fm(X):_.qe?new gu(X):new vB(X)};var aZ=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},E1R;
_.sx(aZ,WT4);E1R=function(X,t){var G=new aZ;G.browserRangeWrapper_=X;G.isReversed_=!!t;return G};
_.Urq=function(X){X=_.C9?new Fm(rp4(X)):_.qe?new gu(rp4(X)):new vB(rp4(X));return E1R(X)};
_.ly=function(X,t,G,y){var w=new aZ;w.isReversed_=mrR(X,t,G,y);if(_.kA(X)&&!am(X)){var z=X.parentNode;t=Array.prototype.indexOf.call(z.childNodes,X);X=z}_.kA(G)&&!am(G)&&(z=G.parentNode,y=Array.prototype.indexOf.call(z.childNodes,G),G=z);w.isReversed_?(w.startNode_=G,w.startOffset_=y,w.endNode_=X,w.endOffset_=t):(w.startNode_=X,w.startOffset_=t,w.endNode_=G,w.endOffset_=y);return w};
_.H=aZ.prototype;_.H.clone=function(){var X=new aZ;X.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();X.startNode_=this.startNode_;X.startOffset_=this.startOffset_;X.endNode_=this.endNode_;X.endOffset_=this.endOffset_;X.isReversed_=this.isReversed_;return X};
_.H.JSC$11223_getType=function(){return"text"};
_.H.getBrowserRangeObject=function(){return xC(this).range_};
_.H.getTextRangeCount=function(){return 1};
_.H.getTextRange=function(){return this};
var xC=function(X){var t;if(!(t=X.browserRangeWrapper_)){t=X.JSC$11223_getStartNode();var G=X.JSC$11223_getStartOffset(),y=X.JSC$11223_getEndNode(),w=X.JSC$11223_getEndOffset();t=_.C9?new Fm(NVP(t,G,y,w)):_.qe?new gu(NVP(t,G,y,w)):new vB(NVP(t,G,y,w));t=X.browserRangeWrapper_=t}return t};
_.H=aZ.prototype;_.H.getContainer=function(){return xC(this).getContainer()};
_.H.JSC$11223_getStartNode=function(){return this.startNode_||(this.startNode_=xC(this).range_.startContainer)};
_.H.JSC$11223_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=xC(this).range_.startOffset};
_.H.JSC$11223_getEndNode=function(){return this.endNode_||(this.endNode_=xC(this).range_.endContainer)};
_.H.JSC$11223_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=xC(this).range_.endOffset};
_.H.isReversed=function(){return this.isReversed_};
_.H.JSC$11223_containsRange=function(X,t){if(X.JSC$11223_getType()=="text"){var G=xC(this);X=xC(X);t=t&&!X.isCollapsed();X=X.range_;G=t?G.compareBrowserRangeEndpoints(X,0,1)>=0&&G.compareBrowserRangeEndpoints(X,1,0)<=0:G.compareBrowserRangeEndpoints(X,0,0)>=0&&G.compareBrowserRangeEndpoints(X,1,1)<=0}else G=!1;return G};
_.H.isCollapsed=function(){return xC(this).isCollapsed()};
_.H.JSC$11223_getText=function(){return xC(this).range_.toString()};
_.H.__iterator__=function(){return new Lm(this.JSC$11223_getStartNode(),this.JSC$11223_getStartOffset(),this.JSC$11223_getEndNode(),this.JSC$11223_getEndOffset())};
_.H.select=function(){xC(this).select(this.isReversed_)};
_.H.JSC$11223_removeContents=function(){var X=xC(this).range_;X.extractContents();if(X.startContainer.hasChildNodes()&&(X=X.startContainer.childNodes[X.startOffset])){var t=X.previousSibling;Vqe(X)==""&&_.uf(X);t&&Vqe(t)==""&&_.uf(t)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.H.insertNode=function(X,t){X=xC(this).insertNode(X,t);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return X};
_.H.collapse=function(X){X=this.isReversed()?!X:X;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(X);X?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Rlq=function(){};
_.sx(Rlq,WT4);Rlq.prototype.JSC$11223_containsRange=function(X,t){var G=iy(this);X=iy(X);return(t?nh:_.NbV)(X,function(y){return nh(G,function(w){return w.JSC$11223_containsRange(y,t)})})};
Rlq.prototype.insertNode=function(X,t){t?_.xo(X,this.JSC$11223_getStartNode()):_.fN(X,this.JSC$11223_getEndNode());return X};var ipo,LTB=pD().JSC$9254_document_.documentElement;ipo=LTB.requestFullscreen?"fullscreenchange":LTB.webkitRequestFullscreen?"webkitfullscreenchange":LTB.mozRequestFullScreen?"mozfullscreenchange":LTB.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var v1t=function(){var X=pD().JSC$9254_document_;return!!(X.webkitIsFullScreen||X.mozFullScreen||X.msFullscreenElement||X.fullscreenElement)};var fm=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.sx(fm,Rlq);_.H=fm.prototype;_.H.clone=function(){var X=new fm;X.browserRanges_=_.aV(this.browserRanges_);return X};
_.H.JSC$11223_getType=function(){return"mutli"};
_.H.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.H.getTextRangeCount=function(){return this.browserRanges_.length};
_.H.getTextRange=function(X){this.ranges_[X]||(this.ranges_[X]=E1R(Puq(this.browserRanges_[X])));return this.ranges_[X]};
_.H.getContainer=function(){if(!this.container_){for(var X=[],t=this.getTextRangeCount(),G=0;G<t;G++)X.push(this.getTextRange(G).getContainer());this.container_=w4o.apply(null,X)}return this.container_};
var MD=function(X){X.sortedRanges_||(X.sortedRanges_=iy(X),X.sortedRanges_.sort(function(t,G){var y=t.JSC$11223_getStartNode();t=t.JSC$11223_getStartOffset();var w=G.JSC$11223_getStartNode();G=G.JSC$11223_getStartOffset();return y==w&&t==G?0:mrR(y,t,w,G)?1:-1}));
return X.sortedRanges_};
_.H=fm.prototype;_.H.JSC$11223_getStartNode=function(){return MD(this)[0].JSC$11223_getStartNode()};
_.H.JSC$11223_getStartOffset=function(){return MD(this)[0].JSC$11223_getStartOffset()};
_.H.JSC$11223_getEndNode=function(){return _.WY(MD(this)).JSC$11223_getEndNode()};
_.H.JSC$11223_getEndOffset=function(){return _.WY(MD(this)).JSC$11223_getEndOffset()};
_.H.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.H.JSC$11223_getText=function(){return iy(this).map(function(X){return X.JSC$11223_getText()}).join("")};
_.H.__iterator__=function(){return new XX(this)};
_.H.select=function(){var X=this.getWindow().getSelection();X.removeAllRanges();for(var t=this.getTextRangeCount(),G=0;G<t;G++)X.addRange(this.getTextRange(G).getBrowserRangeObject())};
_.H.JSC$11223_removeContents=function(){iy(this).forEach(function(X){X.JSC$11223_removeContents()})};
_.H.collapse=function(X){if(!this.isCollapsed()){var t=X?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;t.collapse(X);this.ranges_=[t];this.sortedRanges_=[t];this.browserRanges_=[t.getBrowserRangeObject()]}};
var XX=function(X){this.iterators_=null;this.currentIdx_=0;X&&(this.iterators_=MD(X).map(function(t){return _.BSP(t)}));
RZ.call(this,X?this.JSC$11229_getStartNode():null,!1,!0)};
_.sx(XX,cp4);_.H=XX.prototype;_.H.JSC$11229_getStartNode=function(){return this.iterators_[0].JSC$11229_getStartNode()};
_.H.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.H.next=function(){for(;this.currentIdx_<this.iterators_.length;){var X=this.iterators_[this.currentIdx_],t=X.next();if(t.done)this.currentIdx_++;else return mo(this,X.node,X.tagType,X.depth),t}return h8};
_.H.JSC$11221_copyFrom=function(X){this.iterators_=_.aV(X.iterators_);XX.superClass_.JSC$11221_copyFrom.call(this,X)};
_.H.clone=function(){var X=new XX(null);X.JSC$11221_copyFrom(this);return X};var adP,mrR;_.cv=function(){var X=window.getSelection();return X&&adP(X)};
adP=function(X){var t=!1;if(X.createRange)try{var G=X.createRange()}catch(w){return null}else if(X.rangeCount){if(X.rangeCount>1){G=new fm;t=X.rangeCount;for(var y=0;y<t;y++)G.browserRanges_.push(X.getRangeAt(y));return G}G=X.getRangeAt(0);t=mrR(X.anchorNode,X.anchorOffset,X.focusNode,X.focusOffset)}else return null;return E1R(Puq(G),t)};
_.$r=function(X,t){return _.ly(X,t,X,t)};
_.t0=function(X,t,G,y){return _.ly(X,t,G,y)};
mrR=function(X,t,G,y){if(X==G)return y<t;var w;if(X.nodeType==1&&t)if(w=X.childNodes[t])X=w,t=0;else if(_.Ml(X,G))return!0;if(G.nodeType==1&&y)if(w=G.childNodes[y])G=w,y=0;else if(_.Ml(G,X))return!1;return(yQP(X,G)||t-y)>0};var G_=function(){_.P6.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.rT)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.rT)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.rT)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.rT)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.rT)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.rT)(this.dispatchProgressEvent_,this)};
_.sx(G_,_.P6);G_.prototype.abort=function(){try{this.reader_.abort()}catch(X){throw new bhP(X,"aborting read");}};
G_.prototype.getError=function(){return this.reader_.error&&new bhP(this.reader_.error,"reading file")};
G_.prototype.dispatchProgressEvent_=function(X){this.dispatchEvent(new k5S(X,this))};
G_.prototype.disposeInternal=function(){G_.superClass_.disposeInternal.call(this);delete this.reader_};
var xr4=function(X){var t=new G_,G=ldB(t);t.reader_.readAsArrayBuffer(X);return G},fdB=function(X){var t=new G_,G=ldB(t);
t.reader_.readAsDataURL(X);return G},ldB=function(X){var t=new Be;
X.listen("loadend",_.WP(function(G,y){var w=y.reader_.result,z=y.getError();w==null||z?G.errback(z):G.callback(w);y.dispose()},t,X));
return t};var yC=function(){_.P6.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11263_eventHandler_=new _.AL(this);this.JSC$11263_isInitialized_=!1};
_.sx(yC,_.P6);var Ml4=new _.I8("d"),XWR=new _.I8("beforedragstart"),$Sq=new _.I8("dragstart"),tme=new _.I8("beforedragmove"),Gqe=new _.I8("dragmove"),ybq=new _.I8("beforedragend"),wWR=new _.I8("dragend"),z2e=new _.I8("e");yC.prototype.isDragging=function(){return!!this.JSC$11263_dragger_};
var HdJ=function(X,t){t.dlgGrowthDirection_=0;t.dlgDragHoverClass_=void 0;t.dlgDragPermission=0;X.dragLists_.push(t)},o3B=function(X,t){X.getHandleForDragItem_=t};
yC.prototype.init=function(){if(!this.JSC$11263_isInitialized_){for(var X=this.dragLists_.length,t=0;t<X;t++)for(var G=_.MF(this.dragLists_[t]),y=G.length,w=0;w<y;++w){var z=G[w],B=this.getHandleForDragItem_(z),V=_.GB(B);this.dragItemForHandle_[V]=z;this.dragItemHoverClasses_&&(this.JSC$11263_eventHandler_.listen(z,"mouseover",this.handleDragItemMouseover_),this.JSC$11263_eventHandler_.listen(z,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11263_eventHandler_.listen(B,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11263_eventHandler_.listen(B,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(z);this.JSC$11263_eventHandler_.listen(B,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11263_isInitialized_=!0}};
yC.prototype.disposeInternal=function(){this.JSC$11263_eventHandler_.dispose();for(var X=this.dragLists_.length,t=0;t<X;t++){var G=this.dragLists_[t];G.dlgGrowthDirection_=void 0;G.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;JbJ(this);yC.superClass_.disposeInternal.call(this)};
var Btz=function(X,t){for(var G=X.dragLists_.length,y=0;y<G;y++){var w=X.dragLists_[y];w.dlgBounds_=dF0(w)}G=X.dragItems_.length;for(y=0;y<G;y++)w=X.dragItems_[y],w!=t&&(w.dlgBounds_=dF0(w))};
_.H=yC.prototype;
_.H.handlePotentialDragStart_=function(X){var t=_.GB(X.currentTarget);t=this.dragItemForHandle_[t];if(t.parentElement.dlgDragPermission!=2){this.currDragItem_=t;a:{t=this.currDragItem_;for(var G=t.cloneNode(!0),y=Qs("TEXTAREA",t),w=Qs("TEXTAREA",G),z=0;z<y.length;z++)w[z].value=y[z].value;switch(t.tagName){case "TR":t=_.LN("TABLE",null,_.LN("TBODY",null,G));break a;case "TD":case "TH":t=_.LN("TABLE",null,_.LN("TBODY",null,_.LN("TR",null,G)));break a;case "TEXTAREA":G.value=t.value;default:t=G;break a}t=
void 0}this.draggerEl_=t;this.draggerElClasses_&&o6(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.aH(this.currDragItem_).body.appendChild(this.draggerEl_);G=_.lG(this.currDragItem_);t=this.draggerEl_;y=_.lG(t);if(G instanceof _.LD){var B=G.y;G=G.x}yI(t,t.offsetLeft+(G-y.x),t.offsetTop+(Number(B)-y.y));this.JSC$11263_dragger_=new _.t8(this.draggerEl_);_.VDe(this.JSC$11263_dragger_,this.hysteresisDistance_);
_.vj(this.JSC$11263_dragger_,"start",this.handleDragStart_,!1,this);_.vj(this.JSC$11263_dragger_,"end",this.handleDragEnd_,!1,this);_.vj(this.JSC$11263_dragger_,"earlycancel",this.JSC$11265_cleanup_,!1,this);this.dispatchEvent(new w_(Ml4,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_));this.JSC$11263_dragger_.startDrag(X)}};
_.H.handleDragStart_=function(X){if(this.dispatchEvent(new w_(XWR,this,X.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.$Rq(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?o6(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var t=gV4(this.draggerEl_);this.draggerEl_.halfWidth=t.width/2;this.draggerEl_.halfHeight=t.height/2;t=this.draggerEl_.getBoundingClientRect();
var G=X.clientY,y=bbS(this.JSC$11263_dragger_,X.clientX);if(y>t.right){var w=this.currDragItem_.getBoundingClientRect();this.JSC$11263_dragger_.deltaX=y-(y-w.left)/w.width*t.width}G=kx4(this.JSC$11263_dragger_,G);G>t.bottom&&(this.JSC$11263_dragger_.deltaY+=G-t.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Btz(this,this.currDragItem_);this.currDragItem_.style.display="";_.vj(this.JSC$11263_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new w_($Sq,
this,X.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_))}else X.preventDefault(),this.JSC$11265_cleanup_()};
_.H.handleDragMove_=function(X){var t=_.lG(this.draggerEl_);t=new _.LD(t.x+this.draggerEl_.halfWidth,t.y+this.draggerEl_.halfHeight);a:{var G=null;if(this.currDragItem_.style.display!="none"){G=this.currDragItem_.parentNode;var y=dF0(G);if(n3h(t,y))break a}y=this.dragLists_.length;for(var w=0;w<y;w++){var z=this.dragLists_[w];if(z!=G&&n3h(t,z.dlgBounds_)){G=z;break a}}G=null}if(G){if(G==null)throw Error("Vd");y=0;w=!1;z=void 0;switch(G.dlgGrowthDirection_){case 0:y=t.y;var B=Vm4;var V=bdR;break;case 4:w=
!0;case 2:y=t.x;B=kqe;V=bdR;break;case 5:w=!0;case 3:y=t.x,B=dS4,V=e2J}for(var b=null,e,g=_.MF(G),F=g.length,T=0;T<F;T++){var D=g[T];if(D!=this.currDragItem_){var h=B(D.dlgBounds_);if(w){var u=jk4(D,t);z===void 0&&(z=u);V(y,h)&&(e==void 0||u<z||u==z&&(V(h,e)||h==e))&&(b=D,e=h);u<z&&(z=u)}else V(y,h)&&(e==void 0||V(h,e))&&(b=D,e=h)}}B=b!==null&&jk4(b,t)>z?null:b}else B=null;if(!this.dispatchEvent(new w_(tme,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_,t,G,B)))return!1;if(G&&G.dlgDragPermission!=
1)this.currDragItem_.parentNode==G&&_.$Rq(this.currDragItem_)==B||G.insertBefore(this.currDragItem_,B),this.currDragItem_.style.display="",G.dlgDragHoverClass_&&_.Fx(G,G.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",V=this.dragLists_.length,e=0;e<V;e++)y=this.dragLists_[e],y.dlgDragHoverClass_&&_.j_(y,y.dlgDragHoverClass_);G!=this.currHoverList_&&(this.currHoverList_=G,Btz(this,this.currDragItem_));this.dispatchEvent(new w_(Gqe,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_,
t,G,B));return!1};
_.H.JSC$11265_cleanup_=function(){JbJ(this);this.JSC$11263_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var X=this.dragLists_.length,t=0;t<X;t++)this.dragLists_[t].dlgBounds_=null;X=this.dragItems_.length;for(t=0;t<X;t++)this.dragItems_[t].dlgBounds_=null};
_.H.handleDragEnd_=function(X){if(!this.dispatchEvent(new w_(ybq,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_)))return!1;JbJ(this);this.dispatchEvent(new w_(wWR,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_));this.JSC$11265_cleanup_();return!0};
var JbJ=function(X){_.Vs(X.JSC$11263_dragger_);var t=X.draggerEl_&&X.draggerEl_.parentElement;X.draggerEl_&&_.uf(X.draggerEl_);X.currDragItem_&&X.currDragItem_.style.display=="none"&&(X.origList_.insertBefore(X.currDragItem_,X.origNextItem_),X.currDragItem_.style.display="");X.currDragItemClasses_&&X.currDragItem_?Bh4(X.currDragItem_,X.currDragItemClasses_||[]):X.currDragItem_&&(X.currDragItem_.style.visibility="");for(var G=X.dragLists_.length,y=0;y<G;y++){var w=X.dragLists_[y];w.dlgDragHoverClass_&&
_.j_(w,w.dlgDragHoverClass_)}t&&X.dispatchEvent(new w_(z2e,X,null,X.currDragItem_,X.draggerEl_,X.JSC$11263_dragger_))};
_.H=yC.prototype;_.H.getHandleForDragItem_=function(X){return X};
_.H.handleDragItemMouseover_=function(X){o6(X.currentTarget,this.dragItemHoverClasses_||[])};
_.H.handleDragItemMouseout_=function(X){Bh4(X.currentTarget,this.dragItemHoverClasses_||[])};
_.H.handleDragItemHandleMouseover_=function(X){o6(X.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.H.handleDragItemHandleMouseout_=function(X){Bh4(X.currentTarget,this.dragItemHandleHoverClasses_||[])};
var n3h=function(X,t){return X.x>t.left&&X.x<t.left+t.width&&X.y>t.top&&X.y<t.top+t.height},jk4=function(X,t){X=X.dlgBounds_;
return Math.abs(t.y-(X.top+(X.height-1)/2))},Vm4=function(X){return X.top+X.height-1},kqe=function(X){return X.left+X.width-1},dS4=function(X){return X.left||0},bdR=function(X,t){return X<t},e2J=function(X,t){return X>t},w_=function(X,t,G,y,w,z){_.W6.call(this,X);
this.event=G;this.currDragItem=y;this.draggerEl=w;this.JSC$11267_dragger=z};
_.sx(w_,_.W6);_.sx(Ye,_.po);var g3Y=new _.LD(0,0);Ye.prototype.JSC$11271_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Ye.prototype.JSC$11271_onMouseMove=function(X){var t=this.containerIsActuallyContent_?g3Y:c1(pD(this.containerNode_)),G=this.horizontalScrolling_?this.calculateScrollDelta(X.clientX+t.x,this.scrollBounds_.left,this.scrollBounds_.width):0,y=this.calculateScrollDelta(X.clientY+t.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=G;this.scrollDelta_.y=y;!(G=!G&&!y)&&(G=this.constrainScroll_)&&(G=X.clientX+t.x,X=X.clientY+t.y,t=this.containerBounds_,G=!(t.left<=G&&t.left+t.width>=
G&&t.top<=X&&t.top+t.height>=X));G?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Ye.prototype.calculateScrollDelta=function(X,t,G){var y=0;X<t?y=-8:X>t+G&&(y=8);return y};
Ye.prototype.disposeInternal=function(){Ye.superClass_.disposeInternal.call(this);this.JSC$11269_eventHandler_.dispose();this.scrollTimer_.dispose()};var F_Y={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"}}},z_=F_Y;z_=F_Y;var H3={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 Ttq=function(){},Jp=function(X){if(typeof X=="number"){var t=new Ttq;
t.standardOffset_=X;var G=X;if(G==0)G="Etc/GMT";else{var y=["Etc/GMT",G<0?"-":"+"];G=Math.abs(G);y.push(Math.floor(G/60)%100);G%=60;G!=0&&y.push(":",_.s1(G,2));G=y.join("")}t.timeZoneId_=G;G=X;G==0?G="UTC":(y=["UTC",G<0?"+":"-"],G=Math.abs(G),y.push(Math.floor(G/60)%100),G%=60,G!=0&&y.push(":",G),G=y.join(""));X=Abt(X);t.tzNames_=[G,G];t.tzNamesExt_={STD_LONG_NAME_GMT:X,STD_GENERIC_LOCATION:X};t.transitions_=[];return t}t=new Ttq;t.timeZoneId_=X.id;t.standardOffset_=-X.std_offset;t.tzNames_=X.names;
t.tzNamesExt_=X.names_ext;t.transitions_=X.transitions;return t},Abt=function(X){var t=["GMT"];
t.push(X<=0?"+":"-");X=Math.abs(X);t.push(_.s1(Math.floor(X/60)%100,2),":",_.s1(X%60,2));return t.join("")},Y0Y=function(X,t){t=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes())/36E5;
for(var G=0;G<X.transitions_.length&&t>=X.transitions_[G];)G+=2;return G==0?0:X.transitions_[G-1]},skq=function(X,t){X=X.standardOffset_-Y0Y(X,t);
return X===-1440?0:X};var By=function(X,t){this.patternParts_=[];this.JSC$11282_dateTimeSymbols_=t||Ee;typeof X=="number"?DSz(this,X):S0q(this,X)},h2t=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],ox=function(X){return X.getHours?X.getHours():0},S0q=function(X,t){for(J_J&&(t=t.replace(/\u200f/g,""));t;){for(var G=t,y=0;y<h2t.length;++y){var w=t.match(h2t[y]);
if(w){var z=w[0];t=t.substring(z.length);y==0&&(z=="''"?z="'":(z=z.substring(1,w[1]=="'"?z.length-1:z.length),z=z.replace(/''/g,"'")));X.patternParts_.push({text:z,type:y});break}}if(G===t)throw Error("Wd`"+t);}};
By.prototype.format=function(X,t){if(!X)throw Error("Xd");var G=t?(X.getTimezoneOffset()-skq(t,X))*6E4:0,y=G?new Date(X.getTime()+G):X,w=y;t&&y.getTimezoneOffset()!=X.getTimezoneOffset()&&(y=new Date(y.getTime()+(y.getTimezoneOffset()-X.getTimezoneOffset())*6E4),w=new Date(X.getTime()+(G+(G>0?-864E5:864E5))));G=[];for(var z=0;z<this.patternParts_.length;++z){var B=this.patternParts_[z].text;1==this.patternParts_[z].type?G.push(Zdo(this,B,X,y,w,t)):G.push(B)}return G.join("")};
var DSz=function(X,t){if(t<4)var G=X.JSC$11282_dateTimeSymbols_.DATEFORMATS[t];else if(t<8)G=X.JSC$11282_dateTimeSymbols_.TIMEFORMATS[t-4];else if(t<12)G=X.JSC$11282_dateTimeSymbols_.DATETIMEFORMATS[t-8],G=G.replace("{1}",X.JSC$11282_dateTimeSymbols_.DATEFORMATS[t-8]),G=G.replace("{0}",X.JSC$11282_dateTimeSymbols_.TIMEFORMATS[t-8]);else if(t===12)G=X.JSC$11282_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(t===13)G=X.JSC$11282_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{DSz(X,10);return}S0q(X,G)},J0=function(X,t){t=String(t);
X=X.JSC$11282_dateTimeSymbols_||Ee;if(X.ZERODIGIT!==void 0&&!o6h){for(var G=[],y=0;y<t.length;y++){var w=t.charCodeAt(y);G.push(48<=w&&w<=57?String.fromCharCode(X.ZERODIGIT+w-48):t.charAt(y))}t=G.join("")}return t},o6h=!1,J_J=!1,CeY=function(X,t,G,y){G=G.getFullYear();
G<=0&&y&&(G=1-G);return J0(X,q0B(G,t))},q0B=function(X,t){t==2&&(X%=100);
X<0&&t++;return _.s1(X,t)},B3=function(X){if(!(X.getHours&&X.getSeconds&&X.getMinutes))throw Error("Yd");
},K_h=function(X,t){B3(t);
t=ox(t);return X.JSC$11282_dateTimeSymbols_.AMPMS[t>=12&&t<24?1:0]},Zdo=function(X,t,G,y,w,z){var B=t.length;
switch(t.charAt(0)){case "G":return G=y.getFullYear()>0?1:0,B>=4?X.JSC$11282_dateTimeSymbols_.ERANAMES[G]:X.JSC$11282_dateTimeSymbols_.ERAS[G];case "y":return CeY(X,B,y,!0);case "Y":return G=(new Date(u04(y.getFullYear(),y.getMonth(),y.getDate(),X.JSC$11282_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,X.JSC$11282_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),B==2&&(G%=100),J0(X,q0B(G,B));case "u":return CeY(X,B,y,!1);case "M":a:switch(G=y.getMonth(),B){case 5:B=X.JSC$11282_dateTimeSymbols_.NARROWMONTHS[G];
break a;case 4:B=X.JSC$11282_dateTimeSymbols_.MONTHS[G];break a;case 3:B=X.JSC$11282_dateTimeSymbols_.SHORTMONTHS[G];break a;default:B=J0(X,_.s1(G+1,B))}return B;case "k":return B3(w),J0(X,_.s1(ox(w)||24,B));case "S":return J0(X,(w.getMilliseconds()/1E3).toFixed(Math.min(3,B)).slice(2)+(B>3?_.s1(0,B-3):""));case "E":return G=y.getDay(),B>=4?X.JSC$11282_dateTimeSymbols_.WEEKDAYS[G]:X.JSC$11282_dateTimeSymbols_.SHORTWEEKDAYS[G];case "a":return K_h(X,w);case "b":return K_h(X,w);case "B":return K_h(X,
w);case "h":return B3(w),J0(X,_.s1(ox(w)%12||12,B));case "K":return B3(w),J0(X,_.s1(ox(w)%12,B));case "H":return B3(w),J0(X,_.s1(ox(w),B));case "c":a:switch(G=y.getDay(),B){case 5:B=X.JSC$11282_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[G];break a;case 4:B=X.JSC$11282_dateTimeSymbols_.STANDALONEWEEKDAYS[G];break a;case 3:B=X.JSC$11282_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[G];break a;default:B=J0(X,_.s1(G,1))}return B;case "L":a:switch(G=y.getMonth(),B){case 5:B=X.JSC$11282_dateTimeSymbols_.STANDALONENARROWMONTHS[G];
break a;case 4:B=X.JSC$11282_dateTimeSymbols_.STANDALONEMONTHS[G];break a;case 3:B=X.JSC$11282_dateTimeSymbols_.STANDALONESHORTMONTHS[G];break a;default:B=J0(X,_.s1(G+1,B))}return B;case "Q":return G=Math.floor(y.getMonth()/3),B<4?X.JSC$11282_dateTimeSymbols_.SHORTQUARTERS[G]:X.JSC$11282_dateTimeSymbols_.QUARTERS[G];case "d":return J0(X,_.s1(y.getDate(),B));case "m":return B3(w),J0(X,_.s1(w.getMinutes?w.getMinutes():0,B));case "s":return B3(w),J0(X,_.s1(w.getSeconds(),B));case "v":return(z||Jp(G.getTimezoneOffset())).timeZoneId_;
case "V":return X=z||Jp(G.getTimezoneOffset()),B<=2?X.timeZoneId_:Y0Y(X,G)>0?X.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?X.tzNamesExt_.DST_GENERIC_LOCATION:X.tzNamesExt_.DST_GENERIC_LOCATION:X.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?X.tzNamesExt_.STD_GENERIC_LOCATION:X.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return G=u04(w.getFullYear(),w.getMonth(),w.getDate(),X.JSC$11282_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,X.JSC$11282_dateTimeSymbols_.FIRSTDAYOFWEEK),J0(X,_.s1(Math.floor(Math.round((G-(new Date((new Date(G)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,B));case "z":return X=z||Jp(G.getTimezoneOffset()),B<4?X.tzNames_[Y0Y(X,G)>0?2:0]:X.tzNames_[Y0Y(X,G)>0?3:1];case "Z":return t=z||Jp(G.getTimezoneOffset()),B<4?(B=-skq(t,G),X=[B<0?"-":"+"],B=Math.abs(B),X.push(_.s1(Math.floor(B/60)%100,2),_.s1(B%60,2)),B=X.join("")):B=J0(X,Abt(skq(t,G))),B;default:return""}};var OdP=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,uDJ=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,m50=function(X){this.patternParts_=[];this.JSC$11291_dateTimeSymbols_=Ee;if(typeof X=="number"){X>11&&(X=10);if(X<4)var t=this.JSC$11291_dateTimeSymbols_.DATEFORMATS[X];else X<8?t=this.JSC$11291_dateTimeSymbols_.TIMEFORMATS[X-4]:(t=this.JSC$11291_dateTimeSymbols_.DATETIMEFORMATS[X-8],t=t.replace("{1}",this.JSC$11291_dateTimeSymbols_.DATEFORMATS[X-8]),t=t.replace("{0}",this.JSC$11291_dateTimeSymbols_.TIMEFORMATS[X-
8]));QkB(this,t)}else QkB(this,X)},QkB=function(X,t){for(var G=!1,y="",w=0;w<t.length;w++){var z=t.charAt(w);
if(OdP.test(z))for(y.length>0&&(X.patternParts_.push({text:y,count:0,abutStart:!1,numeric:!1}),y=""),X.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});w<t.length-1&&t.charAt(w+1)==" ";)w++;else if(G)z=="'"?w+1<t.length&&t.charAt(w+1)=="'"?(y+="'",w++):G=!1:y+=z;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(z)>=0){y.length>0&&(X.patternParts_.push({text:y,count:0,abutStart:!1,numeric:!1}),y="");for(var B=t.charAt(w),V=w+1;V<t.length&&t.charAt(V)==B;)V++;B=V-w;B<=0?V=!1:(V="MydhHmsSDkK".indexOf(z),
V=V>0||V==0&&B<3);X.patternParts_.push({text:z,count:B,abutStart:!1,numeric:V});w+=B-1}else z=="'"?w+1<t.length&&t.charAt(w+1)=="'"?(y+="'",w++):G=!0:y+=z}y.length>0&&X.patternParts_.push({text:y,count:0,abutStart:!1,numeric:!1});t=!1;for(G=0;G<X.patternParts_.length;G++)X.patternParts_[G].numeric?!t&&G+1<X.patternParts_.length&&X.patternParts_[G+1].numeric&&(t=!0,X.patternParts_[G].abutStart=!0):t=!1};
m50.prototype.parse=function(X,t,G){var y=!1,w=!1;G&&(y=G.predictive||!1,w=G.validate||!1);if(y)for(G=0;G<this.patternParts_.length;G++){var z=this.patternParts_[G];if(z.count>0&&("abBhHkKm".indexOf(z.text.charAt(0))<0||z.count>2||z.abutStart))throw Error("Zd`"+z.text.charAt(0));}z=new Ikh;G=[0];z.dayPeriodIndex=-1;for(var B=0;B<this.patternParts_.length&&!(y&&G[0]>=X.length);B++){if(this.patternParts_[B].count==0){a:{var V=X;var b=G,e=this.patternParts_[B],g=y;if(e.text.match(OdP)!=null){if(e=b[0],
W_q(V,b),b[0]>e){V=!0;break a}}else{if(V.indexOf(e.text,b[0])==b[0]){b[0]+=e.text.length;V=!0;break a}if(g&&e.text.indexOf(V.substring(b[0]))==0){b[0]+=V.length-b[0];V=!0;break a}}V=!1}if(V)continue;return 0}if(this.patternParts_[B].abutStart){a:{b=X;e=G;g=B;var F=e[0],T=0;for(V=g;V<this.patternParts_.length;V++){var D=this.patternParts_[V],h=D.count;if(h===0)break;if(V==g&&(h-=T,T++,h==0)){V=0;break a}var u=V>g&&D.numeric,W=e[0];if(!cbS(this,b,e,D,h,z,!1)||u&&e[0]-W<h)V=g-1,e[0]=F}V-=g}if(V<=0)return 0;
B+=V-1}else if(!cbS(this,X,G,this.patternParts_[B],0,z,y))return 0}a:{X=w;if(t==null)throw Error("$d");z.era!=void 0&&z.year!=void 0&&z.era==0&&z.year>0&&(z.year=-(z.year-1));z.year!=void 0&&t.setFullYear(z.year);y=t.getDate();t.setDate(1);z.month!=void 0&&t.setMonth(z.month);z.day!=void 0?t.setDate(z.day):(w=gkG(t.getFullYear(),t.getMonth()),t.setDate(y>w?w:y));typeof t.setHours==="function"&&(z.hours==void 0&&(z.hours=t.getHours()),z.hours<12&&(z.ampm!=void 0&&z.ampm>0?z.hours+=12:z.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(z.dayPeriodName)||["night1","night2"].includes(z.dayPeriodName)&&z.hours>=6)&&(z.hours+=12)),t.setHours(z.hours));typeof t.setMinutes==="function"&&z.minutes!=void 0&&t.setMinutes(z.minutes);typeof t.setSeconds==="function"&&z.seconds!=void 0&&t.setSeconds(z.seconds);typeof t.setMilliseconds==="function"&&z.milliseconds!=void 0&&t.setMilliseconds(z.milliseconds);if(X&&(z.year&&z.year!=t.getFullYear()||z.month&&z.month!=
t.getMonth()||z.day&&z.day!=t.getDate()||z.hours&&z.hours>=24||z.minutes&&z.minutes>=60||z.seconds&&z.seconds>=60||z.milliseconds&&z.milliseconds>=1E3))t=!1;else{z.tzOffset!=void 0&&t.setTime(t.getTime()+(z.tzOffset-t.getTimezoneOffset())*60*1E3);z.ambiguousYear&&(X=new Date,X.setFullYear(X.getFullYear()-80),t.getTime()<X.getTime()&&t.setFullYear(X.getFullYear()+100));if(z.dayOfWeek!=void 0)if(z.day==void 0)z=(7+z.dayOfWeek-t.getDay())%7,z>3&&(z-=7),X=t.getMonth(),t.setDate(t.getDate()+z),t.getMonth()!=
X&&t.setDate(t.getDate()+(z>0?-7:7));else if(z.dayOfWeek!=t.getDay()){t=!1;break a}t=!0}}return t?G[0]:0};
var cbS=function(X,t,G,y,w,z,B){W_q(t,G);if(y.numeric&&w>0&&G[0]+w>t.length)return!1;switch(y.text.charAt(0)){case "G":return nB(t,G,[X.JSC$11291_dateTimeSymbols_.ERAS],function(V){return z.era=V}),!0;
case "M":case "L":return pWe(X,t,G,w,y,z);case "E":return nB(t,G,[X.JSC$11291_dateTimeSymbols_.WEEKDAYS,X.JSC$11291_dateTimeSymbols_.SHORTWEEKDAYS],function(V){return z.dayOfWeek=V});
case "B":case "b":return w=[],X=[[].concat(X.JSC$11291_dateTimeSymbols_.AMPMS)],w.push("isAm"),w.push("isPm"),t=nB(t,G,X,function(V){return z.dayPeriodIndex=V},B),z.dayPeriodName=w[z.dayPeriodIndex],B?t:!0;
case "a":return t=nB(t,G,[X.JSC$11291_dateTimeSymbols_.AMPMS],function(V){return z.ampm=V},B),B?t:!0;
case "y":return rbz(X,t,G,y,w,z);case "Q":return nB(t,G,[X.JSC$11291_dateTimeSymbols_.QUARTERS,X.JSC$11291_dateTimeSymbols_.SHORTQUARTERS],function(V){z.month=V*3;z.day=1});
case "d":return VC(X,t,G,y,w,function(V){z.day=V}),!0;
case "S":return Nte(X,t,G,w,z);case "h":case "K":case "H":case "k":return t=VC(X,t,G,y,w,function(V){z.hours=y.text.charAt(0)==="h"&&V===12?0:V},B),B?t:!0;
case "m":return t=VC(X,t,G,y,w,function(V){z.minutes=V},B),B?t:!0;
case "s":return VC(X,t,G,y,w,function(V){z.seconds=V}),!0;
case "z":case "Z":case "v":return Pee(X,t,G,z);default:return!1}},rbz=function(X,t,G,y,w,z){var B=G[0];
w=bS(X,t,G,w);w===null&&(w=bS(X,t,G,0,!0));if(w===null)return!1;w>=0&&G[0]-B==2&&y.count==2?(X=w,t=(new Date).getFullYear()-80,G=t%100,z.ambiguousYear=X==G,X+=Math.floor(t/100)*100+(X<G?100:0),z.year=X):z.year=w;return!0},pWe=function(X,t,G,y,w,z){return w.numeric&&VC(X,t,G,w,y,function(B){z.month=B-1})?!0:nB(t,G,[X.JSC$11291_dateTimeSymbols_.MONTHS,
X.JSC$11291_dateTimeSymbols_.STANDALONEMONTHS,X.JSC$11291_dateTimeSymbols_.SHORTMONTHS,X.JSC$11291_dateTimeSymbols_.STANDALONESHORTMONTHS],function(B){z.month=B})},Nte=function(X,t,G,y,w){var z=G[0];
X=bS(X,t,G,y);if(X===null)return!1;G=G[0]-z;w.milliseconds=G<3?X*Math.pow(10,3-G):Math.round(X/Math.pow(10,G-3));return!0},Pee=function(X,t,G,y){t.indexOf("GMT",G[0])==G[0]&&(G[0]+=3);
if(G[0]>=t.length)return y.tzOffset=0,!0;var w=G[0],z=bS(X,t,G,0,!0);if(z===null)return!1;if(G[0]<t.length&&t.charAt(G[0])==":"){var B=z*60;G[0]++;z=bS(X,t,G,0);if(z===null)return!1;B+=z}else B=z,B=B<24&&G[0]-w<=3?B*60:B%100+B/100*60;y.tzOffset=-B;return!0},VC=function(X,t,G,y,w,z,B){B=B||!1;
var V=G[0];X=bS(X,t,G,w);if(X===null)return!1;if(B&&G[0]-V<y.count){if(G[0]<t.length)return!1;X*=Math.pow(10,y.count-(G[0]-V))}z(X);return!0},nB=function(X,t,G,y,w){w=w||!1;
for(var z,B=0;B<G.length;B++){z=t;for(var V=G[B],b=w,e=0,g=null,F=X.substring(z[0]).toLowerCase(),T=0;T<V.length;T++){var D=V[T].toLowerCase();if(b&&D.indexOf(F)==0){e=F.length;g=T;break}V[T].length>e&&F.indexOf(D)==0&&(e=V[T].length,g=T)}g!==null&&(z[0]+=e);z=g;if(z!==null)return y(z),!0}return!1},W_q=function(X,t){(X=X.substring(t[0]).match(uDJ))&&(t[0]+=X[0].length)},bS=function(X,t,G,y,w){t=y>0?t.substring(0,G[0]+y):t;
w=w||!1;if(X.JSC$11291_dateTimeSymbols_.ZERODIGIT){y=[];for(var z=G[0];z<t.length;z++){var B=t.charCodeAt(z)-X.JSC$11291_dateTimeSymbols_.ZERODIGIT;y.push(0<=B&&B<=9?String.fromCharCode(B+48):t.charAt(z))}t=y.join("")}else t=t.substring(G[0]);X=t.match(new RegExp("^"+(w?"[+-]?":"")+"\\d+"));if(!X)return null;G[0]+=X[0].length;return parseInt(X[0],10)},Ikh=function(){};
Ikh.prototype.ambiguousYear=!1;_.E34={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 US4={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"},mSz=US4,R2q=US4;R2q=mSz=US4;var L_z,kr,eI,kWf,d_,id4;
_.z8=function(X,t,G,y){var w;if(w=t){a:if(t&&t.length===3){for(w=0;w<3;w++){var z=t[w];if(z<"A"||z>"Z"&&z<"a"||z>"z"){w=!1;break a}}w=!0}else w=!1;w=!w}if(w)throw new TypeError("ae");this.intlCurrencyCode_=t?t.toUpperCase():null;this.currencyStyle_=G||0;this.overrideNumberFormatSymbols_=y||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_=kr(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof X==="number")switch(X){case 1:d_(this,kr(this).DECIMAL_PATTERN);break;case 2:d_(this,kr(this).SCIENTIFIC_PATTERN);break;case 3:d_(this,kr(this).PERCENT_PATTERN);break;case 4:X=kr(this).CURRENCY_PATTERN;t=["0"];if(G=
H3[eI(this)]){G=G[0]&7;if(G>0)for(t.push("."),y=0;y<G;y++)t.push("0");X=X.replace(/0.00/g,t.join(""))}d_(this,X);break;case 5:id4(this,1);break;case 6:id4(this,2);break;default:throw Error("de");}else d_(this,X)};
L_z=!1;kr=function(X){return X.overrideNumberFormatSymbols_||(L_z?R2q:mSz)};
eI=function(X){return X.intlCurrencyCode_||kr(X).DEF_CURRENCY_CODE};
kWf=function(X,t){if(t>308)throw Error("ce`"+t);X.maximumFractionDigits_=t;return X};
d_=function(X,t){var G=[0];X.positivePrefix_=v3q(X,t,G);for(var y=G[0],w=-1,z=0,B=0,V=0,b=-1,e=t.length,g=!0;G[0]<e&&g;G[0]++)switch(t.charAt(G[0])){case "#":B>0?V++:z++;b>=0&&w<0&&b++;break;case "0":if(V>0)throw Error("je`"+t);B++;b>=0&&w<0&&b++;break;case ",":b>0&&X.groupingArray_.push(b);b=0;break;case ".":if(w>=0)throw Error("ke`"+t);w=z+B+V;break;case "E":if(X.useExponentialNotation_)throw Error("le`"+t);X.useExponentialNotation_=!0;X.minExponentDigits_=0;G[0]+1<e&&t.charAt(G[0]+1)=="+"&&(G[0]++,
X.useSignForPositiveExponent_=!0);for(;G[0]+1<e&&t.charAt(G[0]+1)=="0";)G[0]++,X.minExponentDigits_++;if(z+B<1||X.minExponentDigits_<1)throw Error("me`"+t);g=!1;break;default:G[0]--,g=!1}B==0&&z>0&&w>=0&&(B=w,B==0&&B++,V=z-B,z=B-1,B=1);if(w<0&&V>0||w>=0&&(w<z||w>z+B)||b==0)throw Error("ne`"+t);V=z+B+V;X.maximumFractionDigits_=w>=0?V-w:0;w>=0&&(X.minimumFractionDigits_=z+B-w,X.minimumFractionDigits_<0&&(X.minimumFractionDigits_=0));X.minimumIntegerDigits_=(w>=0?w:V)-z;X.useExponentialNotation_&&(X.maximumIntegerDigits_=
z+X.minimumIntegerDigits_,X.maximumFractionDigits_==0&&X.minimumIntegerDigits_==0&&(X.minimumIntegerDigits_=1));X.groupingArray_.push(Math.max(0,b));X.decimalSeparatorAlwaysShown_=w==0||w==V;y=G[0]-y;X.positiveSuffix_=v3q(X,t,G);G[0]<t.length&&t.charAt(G[0])==";"?(G[0]++,X.multiplier_!=1&&(X.negativePercentSignExpected_=!0),X.negativePrefix_=v3q(X,t,G),G[0]+=y,X.negativeSuffix_=v3q(X,t,G)):(X.negativePrefix_+=X.positivePrefix_,X.negativeSuffix_+=X.positiveSuffix_)};
id4=function(X,t){X.compactStyle_=t;d_(X,kr(X).DECIMAL_PATTERN);X.minimumFractionDigits_=0;kWf(X,2);if(X.minimumFractionDigits_>0)throw Error("be");X.significantDigits_=2};
_.z8.prototype.parse=function(X,t){t=t||[0];if(this.compactStyle_!==0)throw Error("ee");X=X.replace(/ |\u202f/g,"\u00a0");var G=X.indexOf(this.positivePrefix_,t[0])==t[0],y=X.indexOf(this.negativePrefix_,t[0])==t[0];G&&y&&(this.positivePrefix_.length>this.negativePrefix_.length?y=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(G=!1));G?t[0]+=this.positivePrefix_.length:y&&(t[0]+=this.negativePrefix_.length);if(X.indexOf(kr(this).INFINITY,t[0])==t[0]){t[0]+=kr(this).INFINITY.length;var w=
Infinity}else{w=X;var z=!1,B=!1,V=!1,b=-1,e=1,g=kr(this).DECIMAL_SEP,F=kr(this).GROUP_SEP,T=kr(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");F=F.replace(/\u202f/g,"\u00a0");for(var D="";t[0]<w.length;t[0]++){var h=w.charAt(t[0]),u=ako(this,h);if(u>=0&&u<=9)D+=u,V=!0;else if(h==g.charAt(0)){if(z||B)break;D+=".";z=!0}else if(h==F.charAt(0)&&("\u00a0"!=F.charAt(0)||t[0]+1<w.length&&ako(this,w.charAt(t[0]+1))>=0)){if(z||B)break}else if(h==T.charAt(0)){if(B)break;D+="E";B=!0;b=t[0]}else if(h==
"+"||h=="-"){if(V&&b!=t[0]-1)break;D+=h}else if(this.multiplier_==1&&h==kr(this).PERCENT.charAt(0)){if(e!=1)break;e=100;if(V){t[0]++;break}}else if(this.multiplier_==1&&h==kr(this).PERMILL.charAt(0)){if(e!=1)break;e=1E3;if(V){t[0]++;break}}else break}this.multiplier_!=1&&(e=this.multiplier_);w=parseFloat(D)/e}if(G){if(X.indexOf(this.positiveSuffix_,t[0])!=t[0])return NaN;t[0]+=this.positiveSuffix_.length}else if(y){if(X.indexOf(this.negativeSuffix_,t[0])!=t[0])return NaN;t[0]+=this.negativeSuffix_.length}return y?
-w:w};
_.z8.prototype.format=function(X){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(X))return kr(this).NAN;var t=[];var G=X;if(this.compactStyle_==0)G=jI;else{G=Math.abs(G);var y=lkh(this,G<=1?0:xSY(G)).divisorBase;G=lkh(this,y+xSY(fkq(this,g_(G,-y)).intValue))}X=g_(X,-G.divisorBase);(y=X<0||X==0&&1/X<0)?G.negative_prefix?t.push(G.negative_prefix):(t.push(G.prefix),t.push(this.negativePrefix_)):(t.push(G.prefix),t.push(this.positivePrefix_));if(isFinite(X))if(X*=
y?-1:1,X*=this.multiplier_,this.useExponentialNotation_){var w=X;if(w==0)Mmq(this,w,this.minimumIntegerDigits_,t),XjJ(this,0,t);else{var z=Math.floor(Math.log(w)/Math.log(10)+2E-15);w=g_(w,-z);var B=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(B=z%this.maximumIntegerDigits_,B<0&&(B=this.maximumIntegerDigits_+B),w=g_(w,B),z-=B,B=1):this.minimumIntegerDigits_<1?(z++,w=g_(w,-1)):(z-=this.minimumIntegerDigits_-1,w=g_(w,this.minimumIntegerDigits_-
1));Mmq(this,w,B,t);XjJ(this,z,t)}}else Mmq(this,X,this.minimumIntegerDigits_,t);else t.push(kr(this).INFINITY);y?G.negative_suffix?t.push(G.negative_suffix):(isFinite(X)&&t.push(G.suffix),t.push(this.negativeSuffix_)):(isFinite(X)&&t.push(G.suffix),t.push(this.positiveSuffix_));return t.join("")};
var fkq=function(X,t){var G=g_(t,X.maximumFractionDigits_);X.significantDigits_>0&&(G=$iJ(G,X.significantDigits_,X.maximumFractionDigits_));G=Math.round(G);if(isFinite(G)){var y=Math.floor(g_(G,-X.maximumFractionDigits_));G=Math.floor(G-g_(y,X.maximumFractionDigits_));if(G<0||G>=g_(1,X.maximumFractionDigits_))y=Math.round(t),G=0}else y=t,G=0;return{intValue:y,fracValue:G}},Mmq=function(X,t,G,y){if(X.minimumFractionDigits_>X.maximumFractionDigits_)throw Error("ge");
y||(y=[]);t=fkq(X,t);var w=t.intValue,z=t.fracValue,B=X.minimumFractionDigits_>0||z>0||!1;t=X.minimumFractionDigits_;B&&(t=X.minimumFractionDigits_);for(var V="",b=w;b>1E20;)V="0"+V,b=Math.round(g_(b,-1));V=b+V;var e=kr(X).DECIMAL_SEP;b=kr(X).ZERO_DIGIT.codePointAt(0);var g=V.length,F=0;if(w>0||G>0){for(w=g;w<G;w++)y.push(String.fromCodePoint(b));if(X.groupingArray_.length>=2)for(G=1;G<X.groupingArray_.length;G++)F+=X.groupingArray_[G];G=g-F;if(G>0){w=X.groupingArray_;F=g=0;for(var T,D=kr(X).GROUP_SEP,
h=V.length,u=0;u<h;u++)if(y.push(String.fromCodePoint(b+Number(V.charAt(u)))),h-u>1)if(T=w[F],u<G){var W=G-u;(T===1||T>0&&W%T===1)&&y.push(D)}else F<w.length&&(u===G?F+=1:T===u-G-g+1&&(y.push(D),g+=T,F+=1))}else{G=V;V=X.groupingArray_;w=kr(X).GROUP_SEP;T=G.length;D=[];for(g=V.length-1;g>=0&&T>0;g--){F=V[g];for(h=0;h<F&&T-h-1>=0;h++)D.push(String.fromCodePoint(b+Number(G.charAt(T-h-1))));T-=F;T>0&&D.push(w)}y.push.apply(y,D.reverse())}}else B||y.push(String.fromCodePoint(b));(X.decimalSeparatorAlwaysShown_||
B)&&y.push(e);z=String(z);B=z.split("e+");B.length==2&&(z=String($iJ(parseFloat(B[0]),X.significantDigits_,1)),z=z.replace(".",""),z+=(0,_.pYS)("0",parseInt(B[1],10)-z.length+1));X.maximumFractionDigits_+1>z.length&&(z="1"+(0,_.pYS)("0",X.maximumFractionDigits_-z.length)+z);for(X=z.length;z.charAt(X-1)=="0"&&X>t+1;)X--;for(t=1;t<X;t++)y.push(String.fromCodePoint(b+Number(z.charAt(t))))},XjJ=function(X,t,G){G.push(kr(X).EXP_SYMBOL);
t<0?(t=-t,G.push(kr(X).MINUS_SIGN)):X.useSignForPositiveExponent_&&G.push(kr(X).PLUS_SIGN);t=""+t;for(var y=kr(X).ZERO_DIGIT,w=t.length;w<X.minExponentDigits_;w++)G.push(y);X=y.codePointAt(0)-txR;for(y=0;y<t.length;y++)G.push(String.fromCodePoint(X+t.codePointAt(y)))},ako=function(X,t){t=t.codePointAt(0);
if(48<=t&&t<58)return t-48;X=kr(X).ZERO_DIGIT.codePointAt(0);return X<=t&&t<X+10?t-X:-1},txR="0".codePointAt(0),v3q=function(X,t,G){for(var y="",w=!1,z=t.length;G[0]<z;G[0]++){var B=t.charAt(G[0]);
if(B=="'")G[0]+1<z&&t.charAt(G[0]+1)=="'"?(G[0]++,y+="'"):w=!w;else if(w)y+=B;else switch(B){case "#":case "0":case ",":case ".":case ";":return y;case "\u00a4":if(G[0]+1<z&&t.charAt(G[0]+1)=="\u00a4")G[0]++,y+=eI(X);else switch(X.currencyStyle_){case 0:B=eI(X);y+=B in H3?H3[B][1]:B;break;case 2:B=eI(X);var V=H3[B];y+=V?B==V[1]?B:B+" "+V[1]:B;break;case 1:B=eI(X),y+=B in H3?H3[B][2]:B}break;case "%":if(!X.negativePercentSignExpected_&&X.multiplier_!=1)throw Error("he");if(X.negativePercentSignExpected_&&
X.multiplier_!=100)throw Error("ie");X.multiplier_=100;X.negativePercentSignExpected_=!1;y+=kr(X).PERCENT;break;case "\u2030":if(!X.negativePercentSignExpected_&&X.multiplier_!=1)throw Error("he");if(X.negativePercentSignExpected_&&X.multiplier_!=1E3)throw Error("ie");X.multiplier_=1E3;X.negativePercentSignExpected_=!1;y+=kr(X).PERMILL;break;default:y+=B}}return y},jI={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},lkh=function(X,t){X=X.compactStyle_==1?z_.COMPACT_DECIMAL_SHORT_PATTERN:z_.COMPACT_DECIMAL_LONG_PATTERN;X==null&&(X=z_.COMPACT_DECIMAL_SHORT_PATTERN);if(t<3)return jI;t=Math.min(14,t);var G=X[g_(1,t)];for(--t;!G&&t>=3;)G=X[g_(1,t)],t--;if(!G)return jI;G=G.other;var y=X="",w=G.indexOf(";");w>=0&&(G=G.substring(0,w),w=G.substring(w+1))&&(y=/([^0]*)(0+)(.*)/.exec(w),X=y[1],y=y[3]);return G&&G!="0"?(G=/([^0]*)(0+)(.*)/.exec(G))?{divisorBase:t+
1-(G[2].length-1),negative_prefix:X,negative_suffix:y,prefix:G[1],suffix:G[3]}:jI:jI},xSY=function(X){if(!isFinite(X))return X>0?X:0;
for(var t=0;(X/=10)>=1;)t++;return t},g_=function(X,t){if(!X||!isFinite(X)||t==0)return X;
X=String(X).split("e");return parseFloat(X[0]+"e"+(parseInt(X[1]||0,10)+t))},GOB=function(X,t){return X&&isFinite(X)?g_(Math.round(g_(X,t)),-t):X},$iJ=function(X,t,G){if(!X)return X;
t=t-xSY(X)-1;return t<-G?GOB(X,-G):GOB(X,t)};var ymz=function(X){return X%10==1&&X%100!=11?"one":X%10==2&&X%100!=12?"two":X%10==3&&X%100!=13?"few":"other"},wje=ymz;
wje=ymz;var zjP;zjP=function(X,t){var G=X|0;if(void 0===t){t=Math;var y=t.min,w=X+"",z=w.indexOf(".");t=y.call(t,z===-1?0:w.length-z-1,3)}y=Math.pow(10,t);X={v:t,f:(X*y|0)%y};return G==1&&X.v==0?"one":"other"};
_.np=zjP;_.np=zjP;var Hzq,oFS,JmJ,nFt,VxB;_.BX4=function(X){this.JSC$11334_pattern_=X;this.parsedPattern_=this.literals_=this.initialLiterals_=null;X=mSz;var t=z_;if(Hzq!==X||oFS!==t)Hzq=X,oFS=t,JmJ=new _.z8(1);this.numberFormatter_=JmJ};
Hzq=null;oFS=null;JmJ=null;nFt=RegExp("'([{}#].*?)'","g");VxB=RegExp("''","g");
_.BX4.prototype.format=function(X){if(this.JSC$11334_pattern_){this.initialLiterals_=[];var t=bz4(this,this.JSC$11334_pattern_);this.parsedPattern_=kOz(this,t);this.JSC$11334_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.aV(this.initialLiterals_),t=[],diY(this,this.parsedPattern_,X,!1,t),X=t.join("");this.literals_.length>0;)X=X.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else X="";return X};
var diY=function(X,t,G,y,w){for(var z=0;z<t.length;z++)switch(t[z].type){case 4:w.push(t[z].value);break;case 3:var B=t[z].value;var V=X,b=w,e=G[B];e===void 0?b.push("Undefined parameter - "+B):(V.literals_.push(e),b.push(V.buildPlaceholder_(V.literals_)));break;case 2:B=t[z].value;V=X;b=G;e=y;var g=w,F=B.argumentIndex;b[F]===void 0?g.push("Undefined parameter - "+F):(F=B[b[F]],F===void 0&&(F=B.other),diY(V,F,b,e,g));break;case 0:B=t[z].value;ejq(X,B,G,_.np,y,w);break;case 1:B=t[z].value,ejq(X,B,
G,wje,y,w)}},ejq=function(X,t,G,y,w,z){var B=t.argumentIndex,V=t.argumentOffset,b=+G[B];
isNaN(b)?z.push("Undefined or invalid parameter - "+B):(V=b-V,B=t[G[B]],B===void 0&&(y=y(Math.abs(V)),B=t[y],B===void 0&&(B=t.other)),t=[],diY(X,B,G,w,t),G=t.join(""),w?z.push(G):(X=X.numberFormatter_.format(V),z.push(G.replace(/#/g,X))))},bz4=function(X,t){var G=X.initialLiterals_,y=X.buildPlaceholder_.bind(X);
t=t.replace(VxB,function(){G.push("'");return y(G)});
return t=t.replace(nFt,function(w,z){G.push(z);return y(G)})},jLR=function(X){var t=0,G=[],y=[],w=/[{}]/g;
w.lastIndex=0;for(var z;z=w.exec(X);){var B=z.index;z[0]=="}"?(G.pop(),G.length==0&&(z={type:1},z.value=X.substring(t,B),y.push(z),t=B+1)):(G.length==0&&(t=X.substring(t,B),t!=""&&y.push({type:0,value:t}),t=B+1),G.push("{"))}X=X.substring(t);X!=""&&y.push({type:0,value:X});return y},gFP=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,Ffq=/^\s*(\w+)\s*,\s*selectordinal\s*,/,TXe=/^\s*(\w+)\s*,\s*select\s*,/,kOz=function(X,t){var G=[];
t=jLR(t);for(var y=0;y<t.length;y++){var w={};if(0==t[y].type)w.type=4,w.value=t[y].value;else if(1==t[y].type){var z=t[y].value;switch(gFP.test(z)?0:Ffq.test(z)?1:TXe.test(z)?2:/^\s*\w+\s*/.test(z)?3:5){case 2:w.type=2;w.value=Am4(X,t[y].value);break;case 0:w.type=0;w.value=YVt(X,t[y].value);break;case 1:w.type=1;w.value=sLB(X,t[y].value);break;case 3:w.type=3,w.value=t[y].value}}G.push(w)}return G},Am4=function(X,t){var G="";
t=t.replace(TXe,function(V,b){G=b;return""});
var y={};y.argumentIndex=G;t=jLR(t);for(var w=0;w<t.length;){var z=t[w].value;w++;var B=void 0;1==t[w].type&&(B=kOz(X,t[w].value));y[z.replace(/\s/g,"")]=B;w++}return y},YVt=function(X,t){var G="",y=0;
t=t.replace(gFP,function(b,e,g){G=e;g&&(y=parseInt(g,10));return""});
var w={};w.argumentIndex=G;w.argumentOffset=y;t=jLR(t);for(var z=0;z<t.length;){var B=t[z].value;z++;var V=void 0;1==t[z].type&&(V=kOz(X,t[z].value));w[B.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=V;z++}return w},sLB=function(X,t){var G="";
t=t.replace(Ffq,function(V,b){G=b;return""});
var y={};y.argumentIndex=G;y.argumentOffset=0;t=jLR(t);for(var w=0;w<t.length;){var z=t[w].value;w++;var B=void 0;1==t[w].type&&(B=kOz(X,t[w].value));y[z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=B;w++}return y};
_.BX4.prototype.buildPlaceholder_=function(X){return"\ufddf_"+(X.length-1).toString(10)+"_"};var DiJ;
DiJ={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 VTV=function(){this.rdtfSymbols_=SVP||DiJ;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
VTV.prototype.format=function(X,t){a:{t=hj4(this,t);switch(this.style_){case 2:if(t.NARROW!=void 0){t=t.NARROW;break a}case 1:if(t.SHORT!=void 0){t=t.SHORT;break a}default:t=t.LONG;break a}t=void 0}if(!this.alwaysNumeric_&&t&&t.R&&t.R[""+X])X=t.R[""+X];else if(t){var G=Math.abs(X);X=(new _.BX4("{N,plural,"+(X>0||X==0&&1/X==Infinity?t.F:t.P)+"}")).format({N:G})}else X="";return X};
var hj4=function(X,t){switch(t){default:case 0:return X.rdtfSymbols_.YEAR;case 1:return X.rdtfSymbols_.QUARTER;case 2:return X.rdtfSymbols_.MONTH;case 3:return X.rdtfSymbols_.WEEK;case 4:return X.rdtfSymbols_.DAY;case 5:return X.rdtfSymbols_.HOUR;case 6:return X.rdtfSymbols_.MINUTE;case 7:return X.rdtfSymbols_.SECOND}};var Zzz=function(X,t,G,y,w,z,B,V){this.x0=X;this.y0=t;this.x1=G;this.y1=y;this.x2=w;this.y2=z;this.x3=B;this.y3=V};
Zzz.prototype.clone=function(){return new Zzz(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Zzz.prototype.equals=function(X){return this.x0==X.x0&&this.y0==X.y0&&this.x1==X.x1&&this.y1==X.y1&&this.x2==X.x2&&this.y2==X.y2&&this.x3==X.x3&&this.y3==X.y3};
var qVS=function(X,t){if(t==0)return X.x0;if(t==1)return X.x3;var G=U1(X.x0,X.x1,t),y=U1(X.x1,X.x2,t);X=U1(X.x2,X.x3,t);G=U1(G,y,t);y=U1(y,X,t);return U1(G,y,t)},C$q=function(X,t){var G=(t-X.x0)/(X.x3-X.x0);
if(G<=0)return 0;if(G>=1)return 1;for(var y=0,w=1,z=0,B=0;B<8;B++){z=qVS(X,G);var V=(qVS(X,G+1E-6)-z)/1E-6;if(Math.abs(z-t)<1E-6)return G;if(Math.abs(V)<1E-6)break;else z<t?y=G:w=G,G-=(z-t)/V}for(B=0;Math.abs(z-t)>1E-6&&B<8;B++)z<t?(y=G,G=(G+w)/2):(w=G,G=(G+y)/2),z=qVS(X,G);return G};var FX=function(){_.P6.call(this);this.JSC$11355_name_="closure_frame"+Kfe++;this.iframesForDisposal_=[];Ozq[this.JSC$11355_name_]=this},T_;
_.sx(FX,_.P6);var Ozq={},Kfe=0,uph=function(X,t){var G=pD(X);RKq(t,function(y,w){Array.isArray(y)||(y=[y]);_.zA(y,function(z){z=G.JSC$9256_createDom("INPUT",{type:"hidden",name:w,value:z});X.appendChild(z)})})};
_.H=FX.prototype;_.H.JSC$11357_form_=null;_.H.JSC$11357_iframe_=null;_.H.iframeName_=null;_.H.nextIframeId_=0;_.H.JSC$11357_active_=!1;_.H.complete_=!1;_.H.success_=!1;_.H.lastContent_=null;_.H.JSC$11357_lastErrorCode_=0;_.H.iframeDisposalTimer_=null;
_.H.send=function(X,t,G,y){if(this.JSC$11357_active_)throw Error("oe");X=new _.Vf(X);t=t?t.toUpperCase():"GET";G&&_.ZM(X);T_||(T_=_.LN("FORM"),T_.acceptCharset="utf-8",G=T_.style,G.position="absolute",G.visibility="hidden",G.top=G.left="-10px",G.width=G.height="10px",G.overflow="hidden",document.body.appendChild(T_));this.JSC$11357_form_=T_;t=="GET"&&uph(this.JSC$11357_form_,X.JSC$9962_queryData_);y&&uph(this.JSC$11357_form_,y);G=X.toString();G=Qu0(G);y=this.JSC$11357_form_;G=_.Mx(Ui(G));G!==void 0&&
(y.action=G);this.JSC$11357_form_.method=t;QLq(this);Iv4(this)};
_.H.abort=function(X){if(this.JSC$11357_active_){var t=A0(this);if(t)if(pU(t))t.removeAllListeners(void 0);else if(t=rY(t)){var G=0,y;for(y in t.listeners)for(var w=t.listeners[y].concat(),z=0;z<w.length;++z)RL(w[z])&&++G}this.success_=this.JSC$11357_active_=this.complete_=!1;this.JSC$11357_lastErrorCode_=X||7;this.dispatchEvent("abort");Wft(this)}};
_.H.disposeInternal=function(){this.JSC$11357_active_&&this.abort();FX.superClass_.disposeInternal.call(this);this.JSC$11357_iframe_&&cmB(this);Iv4(this);this.JSC$11357_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11357_form_=null;this.JSC$11357_lastErrorCode_=0;delete Ozq[this.JSC$11355_name_]};
_.H.isComplete=function(){return this.complete_};
_.H.isSuccess=function(){return this.success_};
_.H.isActive=function(){return this.JSC$11357_active_};
_.H.getResponseText=function(){return this.lastContent_};
_.H.getLastError=function(){return _.Ywz(this.JSC$11357_lastErrorCode_)};
var QLq=function(X){X.JSC$11357_active_=!0;X.complete_=!1;X.JSC$11357_lastErrorCode_=0;X.iframeName_=X.JSC$11355_name_+"_"+(X.nextIframeId_++).toString(36);X.JSC$11357_iframe_=pD(X.JSC$11357_form_).JSC$9256_createDom("IFRAME",{name:X.iframeName_,id:X.iframeName_});var t=X.JSC$11357_iframe_.style;t.visibility="hidden";t.width=t.height="10px";t.display="none";_.C9?t.marginTop=t.marginLeft="-10px":(t.position="absolute",t.top=t.left="-10px");pD(X.JSC$11357_form_).JSC$9254_document_.body.appendChild(X.JSC$11357_iframe_);
t=X.iframeName_+"_inner";var G=zvh(X.JSC$11357_iframe_);if(document.baseURI){var y=OW(t);y='<head><base href="'+OW(document.baseURI)+'"></head><body><iframe id="'+y+'" name="'+y+'"></iframe>';y=tI(y)}else y=OW(t),y=tI('<body><iframe id="'+y+'" name="'+y+'"></iframe>');G.write(yb(y));_.vj(G.getElementById(t),"load",X.onIframeLoaded_,!1,X);y=Qs("TEXTAREA",X.JSC$11357_form_);for(var w=0,z=y.length;w<z;w++){var B=y[w].value;Vqe(y[w])!=B&&(_.XA(y[w],B),y[w].value=B)}y=G.importNode(X.JSC$11357_form_,!0);
y.target=t;y.action=X.JSC$11357_form_.action;G.body.appendChild(y);w=Qs("SELECT",X.JSC$11357_form_);z=Qs("SELECT",y);B=0;for(var V=w.length;B<V;B++)for(var b=Qs("OPTION",w[B]),e=Qs("OPTION",z[B]),g=0,F=b.length;g<F;g++)e[g].selected=b[g].selected;w=Qs("INPUT",X.JSC$11357_form_);z=Qs("INPUT",y);B=0;for(V=w.length;B<V;B++)if(w[B].type=="file"&&w[B].value!=z[B].value){X.JSC$11357_form_.target=t;y=X.JSC$11357_form_;break}try{X.errorHandled_=!1,y.submit(),G.close(),_.qe&&setTimeout(X.testForFirefoxSilentError_.bind(X),
250)}catch(T){_.No(G.getElementById(t),"load",X.onIframeLoaded_,!1,X),G.close(),Yr(X,2)}};
FX.prototype.onIframeLoaded_=function(){_.No(A0(this),"load",this.onIframeLoaded_,!1,this);try{var X=this.JSC$11357_iframe_?zvh(A0(this)):null;this.complete_=!0;this.JSC$11357_active_=!1;try{var t=X.body;this.lastContent_=t.textContent||t.innerText}catch(w){var G=1}var y;G||typeof this.errorChecker_!="function"||(y=this.errorChecker_(X))&&(G=4);G?Yr(this,G):(this.success_=!0,this.JSC$11357_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Wft(this))}catch(w){Yr(this,1)}};
var Yr=function(X,t){X.errorHandled_||(X.success_=!1,X.JSC$11357_active_=!1,X.complete_=!0,X.JSC$11357_lastErrorCode_=t,X.dispatchEvent("complete"),X.dispatchEvent("error"),Wft(X),X.errorHandled_=!0)},Wft=function(X){cmB(X);
Iv4(X);X.JSC$11357_form_=null;X.dispatchEvent("ready")},cmB=function(X){var t=X.JSC$11357_iframe_;
t&&(t.onreadystatechange=null,t.onload=null,t.onerror=null,X.iframesForDisposal_.push(t));X.iframeDisposalTimer_&&(clearTimeout(X.iframeDisposalTimer_),X.iframeDisposalTimer_=null);_.qe?X.iframeDisposalTimer_=setTimeout(X.disposeIframes_.bind(X),2E3):X.disposeIframes_();X.JSC$11357_iframe_=null;X.iframeName_=null};
FX.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var X=this.iframesForDisposal_.pop();_.uf(X)}};
var Iv4=function(X){X.JSC$11357_form_&&X.JSC$11357_form_==T_&&_.lM(X.JSC$11357_form_)},A0=function(X){return X.JSC$11357_iframe_?zvh(X.JSC$11357_iframe_).getElementById(X.iframeName_+"_inner"):null};
FX.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11357_active_){var X=this.JSC$11357_iframe_?zvh(A0(this)):null;X&&!vbA(X,"documentUri")?(_.No(A0(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Yr(this,3):Yr(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.sC=function(X){return X=="\r"||X=="\n"||X==" "||X=="\t"};var pjS;_.Db=function(X){this.errorMessage_=null;this.result_=[];this.JSC$11359_buffer_="";this.stack_=[];this.JSC$11359_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!X||!X.deliverMessageAsRawString)};
pjS={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};_.Db.prototype.isInputValid=function(){return this.streamState_!=3};
_.Db.prototype.done=function(){return this.streamState_===2};
var SI=function(X,t,G){X.streamState_=3;X.errorMessage_="The stream is broken @"+X.JSC$11359_pos_+"/"+G+". With input:\n"+t;throw Error(X.errorMessage_);};
_.Db.prototype.acceptsBinaryInput=function(){return!1};
_.Db.prototype.parse=function(X){function t(){for(;T<X.length;)if(_.sC(X[T]))T++,z.JSC$11359_pos_++;else break;return T<e}
function G(){for(var h;;){h=X[T++];if(!h)break;z.JSC$11359_pos_++;switch(z.state_){case b.INIT:h==="{"?z.state_=b.OBJECT_OPEN:h==="["?z.state_=b.ARRAY_OPEN:_.sC(h)||SI(z,X,T);continue;case b.KEY_START:case b.OBJECT_OPEN:if(_.sC(h))continue;if(z.state_===b.KEY_START)B.push(b.KEY_END);else if(h==="}"){w("{}");z.state_=y();continue}else B.push(b.OBJECT_END);h==='"'?z.state_=b.STRING:SI(z,X,T);continue;case b.KEY_END:case b.OBJECT_END:if(_.sC(h))continue;h===":"?(z.state_===b.OBJECT_END&&(B.push(b.OBJECT_END),
z.depth_++),z.state_=b.VALUE):h==="}"?(z.depth_--,w(),z.state_=y()):h===","?(z.state_===b.OBJECT_END&&B.push(b.OBJECT_END),z.state_=b.KEY_START):SI(z,X,T);continue;case b.ARRAY_OPEN:case b.VALUE:if(_.sC(h))continue;if(z.state_===b.ARRAY_OPEN)if(z.depth_++,z.state_=b.VALUE,h==="]"){z.depth_--;if(z.depth_===0){z.state_=b.ARRAY_END;return}w("[]");z.state_=y();continue}else B.push(b.ARRAY_END);h==='"'?z.state_=b.STRING:h==="{"?z.state_=b.OBJECT_OPEN:h==="["?z.state_=b.ARRAY_OPEN:h==="t"?z.state_=b.TRUE1:
h==="f"?z.state_=b.FALSE1:h==="n"?z.state_=b.NULL1:h!=="-"&&("0123456789".indexOf(h)!==-1?z.state_=b.NUM_DIGIT:SI(z,X,T));continue;case b.ARRAY_END:if(h===",")B.push(b.ARRAY_END),z.state_=b.VALUE,z.depth_===1&&(F=T);else if(h==="]"){z.depth_--;if(z.depth_===0)return;w();z.state_=y()}else if(_.sC(h))continue;else SI(z,X,T);continue;case b.STRING:var u=T;a:for(;;){for(;z.unicodeCount_>0;)if(h=X[T++],z.unicodeCount_===4?z.unicodeCount_=0:z.unicodeCount_++,!h)break a;if(h==='"'&&!z.slashed_){z.state_=
y();break}if(h==="\\"&&!z.slashed_&&(z.slashed_=!0,h=X[T++],!h))break;if(z.slashed_)if(z.slashed_=!1,h==="u"&&(z.unicodeCount_=1),h=X[T++])continue;else break;V.lastIndex=T;h=V.exec(X);if(!h){T=X.length+1;break}T=h.index+1;h=X[h.index];if(!h)break}z.JSC$11359_pos_+=T-u;continue;case b.TRUE1:if(!h)continue;h==="r"?z.state_=b.TRUE2:SI(z,X,T);continue;case b.TRUE2:if(!h)continue;h==="u"?z.state_=b.TRUE3:SI(z,X,T);continue;case b.TRUE3:if(!h)continue;h==="e"?z.state_=y():SI(z,X,T);continue;case b.FALSE1:if(!h)continue;
h==="a"?z.state_=b.FALSE2:SI(z,X,T);continue;case b.FALSE2:if(!h)continue;h==="l"?z.state_=b.FALSE3:SI(z,X,T);continue;case b.FALSE3:if(!h)continue;h==="s"?z.state_=b.FALSE4:SI(z,X,T);continue;case b.FALSE4:if(!h)continue;h==="e"?z.state_=y():SI(z,X,T);continue;case b.NULL1:if(!h)continue;h==="u"?z.state_=b.NULL2:SI(z,X,T);continue;case b.NULL2:if(!h)continue;h==="l"?z.state_=b.NULL3:SI(z,X,T);continue;case b.NULL3:if(!h)continue;h==="l"?z.state_=y():SI(z,X,T);continue;case b.NUM_DECIMAL_POINT:h===
"."?z.state_=b.NUM_DIGIT:SI(z,X,T);continue;case b.NUM_DIGIT:if("0123456789.eE+-".indexOf(h)!==-1)continue;else T--,z.JSC$11359_pos_--,z.state_=y();continue;default:SI(z,X,T)}}}
function y(){var h=B.pop();return h!=null?h:b.VALUE}
function w(h){z.depth_>1||(h||(h=F===-1?z.JSC$11359_buffer_+X.substring(g,T):X.substring(F,T)),z.deliverMessageAsRawString_?z.result_.push(h):z.result_.push(JSON.parse(h)),F=T)}
for(var z=this,B=z.stack_,V=z.stringInputPattern_,b=pjS,e=X.length,g=0,F=-1,T=0;T<e;)switch(z.streamState_){case 3:return SI(z,X,T),null;case 2:return t()&&SI(z,X,T),null;case 0:if(t()){var D=X[T++];z.JSC$11359_pos_++;if(D==="["){z.streamState_=1;g=T;z.state_=b.ARRAY_OPEN;continue}else SI(z,X,T)}return null;case 1:return G(),z.depth_===0&&z.state_==b.ARRAY_END?(z.streamState_=2,z.JSC$11359_buffer_=X.substring(T)):z.JSC$11359_buffer_=F===-1?z.JSC$11359_buffer_+X.substring(g):X.substring(F),z.result_.length>
0?(D=z.result_,z.result_=[],D):null}return null};_.sx(_.ss,Ec);DO.prototype.getValue=function(){return this.JSC$11367_value_};
DO.prototype.clone=function(){return new DO(this.JSC$11367_key_,this.JSC$11367_value_)};var h0=function(X){this.nodes_=[];if(X)a:{if(X instanceof h0){var t=X.getKeys();X=X.getValues();if(this.getCount()<=0){for(var G=this.nodes_,y=0;y<t.length;y++)G.push(new DO(t[y],X[y]));break a}}else t=_.RH.getKeys(X),X=_.RH.getValues(X);for(G=0;G<t.length;G++)this.insert(t[G],X[G])}};
_.H=h0.prototype;_.H.insert=function(X,t){var G=this.nodes_;G.push(new DO(X,t));X=G.length-1;t=this.nodes_;for(G=t[X];X>0;){var y=X-1>>1;if(t[y].JSC$11367_key_>G.JSC$11367_key_)t[X]=t[y],X=y;else break}t[X]=G};
_.H.remove=function(){var X=this.nodes_,t=X.length,G=X[0];if(!(t<=0)){if(t==1)X.length=0;else{X[0]=X.pop();X=0;t=this.nodes_;for(var y=t.length,w=t[X];X<y>>1;){var z=X*2+1,B=X*2+2;z=B<y&&t[B].JSC$11367_key_<t[z].JSC$11367_key_?B:z;if(t[z].JSC$11367_key_>w.JSC$11367_key_)break;t[X]=t[z];X=z}t[X]=w}return G.getValue()}};
_.H.peek=function(){var X=this.nodes_;if(X.length!=0)return X[0].getValue()};
_.H.getValues=function(){for(var X=this.nodes_,t=[],G=X.length,y=0;y<G;y++)t.push(X[y].getValue());return t};
_.H.getKeys=function(){for(var X=this.nodes_,t=[],G=X.length,y=0;y<G;y++)t.push(X[y].JSC$11367_key_);return t};
_.H.containsValue=function(X){return this.nodes_.some(function(t){return t.getValue()==X})};
_.H.containsKey=function(X){return this.nodes_.some(function(t){return t.JSC$11367_key_==X})};
_.H.clone=function(){return new h0(this)};
_.H.getCount=function(){return this.nodes_.length};
_.H.isEmpty=function(){return this.nodes_.length===0};
_.H.clear=function(){this.nodes_.length=0};_.Zb=function(X,t){this.JSC$11373_map_={};this.JSC$11373_keys_=[];this.version_=this.size=0;var G=arguments.length;if(G>1){if(G%2)throw Error("ka");for(var y=0;y<G;y+=2)this.set(arguments[y],arguments[y+1])}else X&&this.addAll(X)};
_.H=_.Zb.prototype;_.H.getCount=function(){return this.size};
_.H.getValues=function(){qN(this);for(var X=[],t=0;t<this.JSC$11373_keys_.length;t++)X.push(this.JSC$11373_map_[this.JSC$11373_keys_[t]]);return X};
_.H.getKeys=function(){qN(this);return this.JSC$11373_keys_.concat()};
_.H.containsKey=function(X){return this.has(X)};
_.H.has=function(X){return CB(this.JSC$11373_map_,X)};
_.H.containsValue=function(X){for(var t=0;t<this.JSC$11373_keys_.length;t++){var G=this.JSC$11373_keys_[t];if(CB(this.JSC$11373_map_,G)&&this.JSC$11373_map_[G]==X)return!0}return!1};
_.H.equals=function(X,t){if(this===X)return!0;if(this.size!=X.getCount())return!1;t=t||rme;qN(this);for(var G,y=0;G=this.JSC$11373_keys_[y];y++)if(!t(this.get(G),X.get(G)))return!1;return!0};
var rme=function(X,t){return X===t};
_.Zb.prototype.isEmpty=function(){return this.size==0};
_.Zb.prototype.clear=function(){this.JSC$11373_map_={};this.version_=this.size=this.JSC$11373_keys_.length=0};
_.Zb.prototype.remove=function(X){return this.delete(X)};
_.Zb.prototype.delete=function(X){return CB(this.JSC$11373_map_,X)?(delete this.JSC$11373_map_[X],--this.size,this.version_++,this.JSC$11373_keys_.length>2*this.size&&qN(this),!0):!1};
var qN=function(X){if(X.size!=X.JSC$11373_keys_.length){for(var t=0,G=0;t<X.JSC$11373_keys_.length;){var y=X.JSC$11373_keys_[t];CB(X.JSC$11373_map_,y)&&(X.JSC$11373_keys_[G++]=y);t++}X.JSC$11373_keys_.length=G}if(X.size!=X.JSC$11373_keys_.length){t={};for(y=G=0;G<X.JSC$11373_keys_.length;){var w=X.JSC$11373_keys_[G];CB(t,w)||(X.JSC$11373_keys_[y++]=w,t[w]=1);G++}X.JSC$11373_keys_.length=y}};
_.H=_.Zb.prototype;_.H.get=function(X,t){return CB(this.JSC$11373_map_,X)?this.JSC$11373_map_[X]:t};
_.H.set=function(X,t){CB(this.JSC$11373_map_,X)||(this.size+=1,this.JSC$11373_keys_.push(X),this.version_++);this.JSC$11373_map_[X]=t};
_.H.addAll=function(X){if(X instanceof _.Zb)for(var t=X.getKeys(),G=0;G<t.length;G++)this.set(t[G],X.get(t[G]));else for(t in X)this.set(t,X[t])};
_.H.forEach=function(X,t){for(var G=this.getKeys(),y=0;y<G.length;y++){var w=G[y],z=this.get(w);X.call(t,z,w,this)}};
_.H.clone=function(){return new _.Zb(this)};
_.H.transpose=function(){for(var X=new _.Zb,t=0;t<this.JSC$11373_keys_.length;t++){var G=this.JSC$11373_keys_[t];X.set(this.JSC$11373_map_[G],G)}return X};
_.H.keys=function(){return n5R(this.__iterator__(!0)).toEs6()};
_.H.values=function(){return n5R(this.__iterator__(!1)).toEs6()};
_.H.entries=function(){var X=this;return S8z(this.keys(),function(t){return[t,X.get(t)]})};
_.H.__iterator__=function(X){qN(this);var t=0,G=this.version_,y=this,w=new Sa;w.next=function(){if(G!=y.version_)throw Error("pe");if(t>=y.JSC$11373_keys_.length)return h8;var z=y.JSC$11373_keys_[t++];return Z4(X?z:y.JSC$11373_map_[z])};
return w};
var CB=function(X,t){return Object.prototype.hasOwnProperty.call(X,t)};var P$q=function(){this.JSC$11376_map_=new _.Zb;this.JSC$11376_head_=new NX4("");this.JSC$11376_head_.next=this.JSC$11376_head_.prev=this.JSC$11376_head_},EFB=function(X,t){if(t=X.JSC$11376_map_.get(t))t.remove(),X.insert_(t);
return t};
_.H=P$q.prototype;_.H.get=function(X,t){return(X=EFB(this,X))?X.value:t};
_.H.set=function(X,t){var G=EFB(this,X);G?G.value=t:(G=new NX4(X,t),this.JSC$11376_map_.set(X,G),this.insert_(G))};
_.H.peek=function(){return this.JSC$11376_head_.next.value};
_.H.shift=function(){return Uiq(this,this.JSC$11376_head_.next)};
_.H.pop=function(){return Uiq(this,this.JSC$11376_head_.prev)};
_.H.remove=function(X){return(X=this.JSC$11376_map_.get(X))?(this.removeNode(X),!0):!1};
_.H.removeNode=function(X){X.remove();this.JSC$11376_map_.remove(X.key)};
_.H.getCount=function(){return this.JSC$11376_map_.getCount()};
_.H.isEmpty=function(){return this.JSC$11376_map_.isEmpty()};
_.H.getKeys=function(){return this.map(function(X,t){return t})};
_.H.getValues=function(){return this.map(function(X){return X})};
_.H.contains=function(X){return this.some(function(t){return t==X})};
_.H.containsKey=function(X){return this.JSC$11376_map_.containsKey(X)};
_.H.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11376_head_.prev)};
_.H.forEach=function(X,t){for(var G=this.JSC$11376_head_.next;G!=this.JSC$11376_head_;G=G.next)X.call(t,G.value,G.key,this)};
_.H.map=function(X,t){for(var G=[],y=this.JSC$11376_head_.next;y!=this.JSC$11376_head_;y=y.next)G.push(X.call(t,y.value,y.key,this));return G};
_.H.some=function(X,t){for(var G=this.JSC$11376_head_.next;G!=this.JSC$11376_head_;G=G.next)if(X.call(t,G.value,G.key,this))return!0;return!1};
_.H.every=function(X,t){for(var G=this.JSC$11376_head_.next;G!=this.JSC$11376_head_;G=G.next)if(!X.call(t,G.value,G.key,this))return!1;return!0};
_.H.insert_=function(X){X.next=this.JSC$11376_head_.next;X.prev=this.JSC$11376_head_;this.JSC$11376_head_.next=X;for(X.next.prev=X;this.getCount()>100;)this.removeNode(this.JSC$11376_head_.prev)};
var Uiq=function(X,t){X.JSC$11376_head_!=t&&X.removeNode(t);return t.value},NX4=function(X,t){this.key=X;
this.value=t};
NX4.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var miP=function(){h0.apply(this,arguments)};
_.S(miP,h0);miP.prototype.enqueue=function(X,t){this.insert(X,t)};var RjY=function(){var X=Error();X.name="SecurityError";throw X;},exl=function(){return{get opener(){return null},
get closed(){return!0},get location(){RjY()},get document(){RjY()},postMessage:function(){},
close:function(){},
focus:function(){}}};var jmv={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 Tal={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 izt={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(Tal).join("|");var LfJ=function(){function X(V){V.substr(-1)!==";"&&(V+=";");return B(V)}
for(var t=Object.keys(izt).sort(FPY),G=Object.keys(Tal).sort(FPY),y=0,w=0;y<G.length;y++)t[w]===G[y]?(G[y]+=";?",w++):G[y]+=";";var z=new RegExp("&(?:"+G.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),B=AlY();return function(V){return String(V).replace(z,X)}}();/*

 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 vFe={};var avS=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"),lvq=/[\\&]/,xie=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),fvq=RegExp('[&<>"]',"g"),Mxt=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Xlq=function(X){return X.charCodeAt(0)===92?X.charAt(1):LfJ(X)},$Ie=function(X){return lvq.test(X)?X.replace(xie,Xlq):X},t_4=function(X){try{var t,G="";
if(typeof w!=="string"){var y=w;var w=";/?:@&=+$,-_.!~*'()#"}typeof y==="undefined"&&(y=!0);var z,B=vFe[w];if(B)var V=B;else{B=vFe[w]=[];for(z=0;z<128;z++){var b=String.fromCharCode(z);/^[0-9a-z]$/i.test(b)?B.push(b):B.push("%"+("0"+z.toString(16).toUpperCase()).slice(-2))}for(z=0;z<w.length;z++)B[w.charCodeAt(z)]=w[z];V=B}var e=0;for(t=X.length;e<t;e++){var g=X.charCodeAt(e);if(y&&g===37&&e+2<t&&/^[0-9a-f]{2}$/i.test(X.slice(e+1,e+3)))G+=X.slice(e,e+3),e+=2;else if(g<128)G+=V[g];else if(g>=55296&&
g<=57343){if(g>=55296&&g<=56319&&e+1<t){var F=X.charCodeAt(e+1);if(F>=56320&&F<=57343){G+=encodeURIComponent(X[e]+X[e+1]);e++;continue}}G+="%EF%BF%BD"}else G+=encodeURIComponent(X[e])}return G}catch(T){return X}},G7Y=function(X){switch(X){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return X}},KB=function(X,t){return fvq.test(X)?t?X.replace(Mxt,G7Y):X.replace(fvq,G7Y):X};/*

 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 OC;if(String.fromCodePoint)OC=function(X){try{return String.fromCodePoint(X)}catch(t){if(t instanceof RangeError)return String.fromCharCode(65533);throw t;}};
else{var yHo=String.fromCharCode,wle=Math.floor;OC=function(){var X=[],t=-1,G=arguments.length;if(!G)return"";for(var y="";++t<G;){var w=Number(arguments[t]);if(!isFinite(w)||w<0||w>1114111||wle(w)!==w)return String.fromCharCode(65533);if(w<=65535)X.push(w);else{w-=65536;var z=(w>>10)+55296;w=w%1024+56320;X.push(z,w)}if(t+1===G||X.length>16384)y+=yHo.apply(null,X),X.length=0}return y}};var zVz=function(X){this.root=this.current=X;this.entering=!0};
zVz.prototype.next=function(){var X=this.current,t=this.entering;if(X===null)return null;a:switch(X._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 G=!0;break a;default:G=!1}t&&G?X._firstChild?(this.current=X._firstChild,this.entering=!0):this.entering=!1:X===this.root?this.current=null:X._next===null?(this.current=
X._parent,this.entering=!1):(this.current=X._next,this.entering=!0);return{entering:t,node:X}};
var q8=function(X,t){this._type=X;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=t;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};
q8.prototype.appendChild=function(X){X.unlink();X._parent=this;this._lastChild?(this._lastChild._next=X,X._prev=this._lastChild):this._firstChild=X;this._lastChild=X};
q8.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 HXh=function(X,t){t.unlink();t._next=X._next;t._next&&(t._next._prev=t);t._prev=X;X._next=t;t._parent=X._parent;t._next||(t._parent._lastChild=t)};
q8.prototype.insertBefore=function(X){X.unlink();X._prev=this._prev;X._prev&&(X._prev._next=X);X._next=this;this._prev=X;X._parent=this._parent;X._prev||(X._parent._firstChild=X)};
_.ke.Object.defineProperties(q8.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(X){this._literal=X}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(X){this._destination=X}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(X){this._title=X}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(X){this._info=X}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(X){this._level=X}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(X){this._listData.type=X}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(X){this._listData.tight=X}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(X){this._listData.start=X}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(X){this._onEnter=X}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(X){this._onExit=X}}});var Y1s=/[ \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,
sml={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 oIJ=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]/),
JHo=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Br4=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),nIY=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),V_h=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),bX4=/`+/,k7o=/^`+/,dIJ=/\.\.\./g,eVY=/--+/g,jiY=/^<([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])?)*)>/,
gIh=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,FwY=/^ *(?:\n *)?/,Trq=/^[ \t\n\x0b\x0c\x0d]/,AHt=/[ \t\n\x0b\x0c\x0d]+/g,Ydq=/^\s/,sio=/ *$/,DIP=/^ */,Sdo=/^ *(?:\n|$)/,hVq=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),ZX4=/^[^\n`\[\]\\!<&*_'"]+/m,uS=function(X){var t=new q8("text");t._literal=X;return t},QC=function(X){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=X||{}};
QC.prototype.match=function(X){X=X.exec(this.subject.slice(this.pos));if(X===null)return null;this.pos+=X.index+X[0].length;return X[0]};
QC.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Ix=function(X){X.match(FwY);return!0},qdq=function(X,t,G){var y=0;
var w=X.pos;if(t===39||t===34)y++,X.pos++;else for(;X.peek()===t;)y++,X.pos++;if(y===0)y=null;else{var z=w===0?"\n":X.subject.charAt(w-1);var B=X.peek();B=B===-1?"\n":OC(B);var V=Ydq.test(B);B=oIJ.test(B);var b=Ydq.test(z);var e=oIJ.test(z);z=!V&&!(B&&!b&&!e);V=!b&&!(e&&!V&&!B);t===95?(b=z&&(!V||e),B=V&&(!z||B)):(b=t===39||t===34?z&&!V:z,B=V);X.pos=w;y={numdelims:y,can_open:b,can_close:B}}if(!y)return!1;w=y.numdelims;B=X.pos;X.pos+=w;B=t===39?"\u2019":t===34?"\u201c":X.subject.slice(B,X.pos);B=uS(B);
G.appendChild(B);X.delimiters={cc:t,numdelims:w,origdelims:w,node:B,previous:X.delimiters,next:null,can_open:y.can_open,can_close:y.can_close};X.delimiters.previous!==null&&(X.delimiters.previous.next=X.delimiters);return!0},Cpe=function(X,t){t.previous!==null&&(t.previous.next=t.next);
t.next===null?X.delimiters=t.previous:t.next.previous=t.previous},Kwq=function(X,t){var G,y,w=[],z=!1;
w[95]=t;w[42]=t;w[39]=t;w[34]=t;for(G=X.delimiters;G!==null&&G.previous!==t;)G=G.previous;for(;G!==null;){var B=G.cc;if(G.can_close){var V=G.previous;for(y=!1;V!==null&&V!==t&&V!==w[B];){z=(G.can_open||V.can_close)&&(V.origdelims+G.origdelims)%3===0;if(V.cc===G.cc&&V.can_open&&!z){y=!0;break}V=V.previous}var b=G;if(B===42||B===95)if(y){var e=G.numdelims>=2&&V.numdelims>=2?2:1;var g=V.node;var F=G.node;V.numdelims-=e;G.numdelims-=e;g._literal=g._literal.slice(0,g._literal.length-e);F._literal=F._literal.slice(0,
F._literal.length-e);var T=new q8(e===1?"emph":"strong");for(e=g._next;e&&e!==F;){var D=e._next;e.unlink();T.appendChild(e);e=D}HXh(g,T);e=V;D=G;e.next!==D&&(e.next=D,D.previous=e);V.numdelims===0&&(g.unlink(),Cpe(X,V));G.numdelims===0&&(F.unlink(),V=G.next,Cpe(X,G),G=V)}else G=G.next;else B===39?(G.node._literal="\u2019",y&&(V.node._literal="\u2018"),G=G.next):B===34&&(G.node._literal="\u201d",y&&(V.node.literal="\u201c"),G=G.next);y||z||(w[B]=b.previous,b.can_open||Cpe(X,b))}else G=G.next}for(;X.delimiters!==
null&&X.delimiters!==t;)Cpe(X,X.delimiters)},OXh=function(X){X=X.match(JHo);
return X===null?null:$Ie(X.substr(1,X.length-2))},uxq=function(X){var t=X.match(Br4);
if(t===null){t=X.pos;for(var G=0,y;(y=X.peek())!==-1;)if(y===92)X.pos+=1,X.peek()!==-1&&(X.pos+=1);else if(y===40)X.pos+=1,G+=1;else if(y===41)if(G<1)break;else X.pos+=1,--G;else if(Trq.exec(OC(y))!==null)break;else X.pos+=1;t=X.subject.substr(t,X.pos-t);return t_4($Ie(t))}return t_4($Ie(t.substr(1,t.length-2)))},Qih=function(X){X=X.match(hVq);
return X===null||X.length>1001?0:X.length},IWP=function(X,t,G,y){X.brackets!==null&&(X.brackets.bracketAfter=!0);
X.brackets={node:t,previous:X.brackets,previousDelimiter:X.delimiters,index:G,image:y,active:!0}},WwP=function(X,t){var G;
return(G=X.match(ZX4))?(X.options.smart?t.appendChild(uS(G.replace(dIJ,"\u2026").replace(eVY,function(y){var w=0,z=0;y.length%3===0?z=y.length/3:y.length%2===0?w=y.length/2:y.length%3===2?(w=1,z=(y.length-2)/3):(w=2,z=(y.length-4)/3);y="";var B;for(B=0;B<z;B++)y+="\u2014";for(B=0;B<w;B++)y+="\u2013";return y}))):t.appendChild(uS(G)),!0):!1},cHR=function(X,t,G){X.subject=t;
X.pos=0;t=X.pos;var y=Qih(X);if(y===0)return 0;var w=X.subject.substr(0,y);if(X.peek()===58)X.pos++;else return X.pos=t,0;Ix(X);y=uxq(X);if(y===null||y.length===0)return X.pos=t,0;var z=X.pos;Ix(X);var B=OXh(X);B===null&&(B="",X.pos=z);var V=!0;X.match(Sdo)===null&&(B===""?V=!1:(B="",X.pos=z,V=X.match(Sdo)!==null));if(!V)return X.pos=t,0;w=DFl(w);if(w==="")return X.pos=t,0;G[w]||(G[w]={destination:y,title:B});return X.pos-t},plz=function(X,t){var G,y=X.peek();
if(y===-1)return!1;switch(y){case 10:X.pos+=1;if((G=t._lastChild)&&G.type==="text"&&G._literal[G._literal.length-1]===" "){var w=G._literal[G._literal.length-2]===" ";G._literal=G._literal.replace(sio,"");t.appendChild(new q8(w?"linebreak":"softbreak"))}else t.appendChild(new q8("softbreak"));X.match(DIP);G=!0;break;case 92:G=X.subject;X.pos+=1;X.peek()===10?(X.pos+=1,G=new q8("linebreak"),t.appendChild(G)):nIY.test(G.charAt(X.pos))?(t.appendChild(uS(G.charAt(X.pos))),X.pos+=1):t.appendChild(uS("\\"));
G=!0;break;case 96:a:if(G=X.match(k7o),G===null)G=!1;else{w=X.pos;for(var z;(z=X.match(bX4))!==null;)if(z===G){z=new q8("code");z._literal=X.subject.slice(w,X.pos-G.length).trim().replace(AHt," ");t.appendChild(z);G=!0;break a}X.pos=w;t.appendChild(uS(G));G=!0}break;case 42:case 95:G=qdq(X,y,t);break;case 39:case 34:G=X.options.smart&&qdq(X,y,t);break;case 91:G=X.pos;X.pos+=1;w=uS("[");t.appendChild(w);IWP(X,w,G,!1);G=!0;break;case 33:G=X.pos;X.pos+=1;X.peek()===91?(X.pos+=1,w=uS("!["),t.appendChild(w),
IWP(X,w,G+1,!0)):t.appendChild(uS("!"));G=!0;break;case 93:var B,V=!1,b;X.pos+=1;var e=X.pos;w=X.brackets;if(w===null)t.appendChild(uS("]"));else if(w.active){G=w.image;var g=X.pos;X.peek()===40&&(X.pos++,Ix(X)&&(z=uxq(X))!==null&&Ix(X)&&(Trq.test(X.subject.charAt(X.pos-1))&&(B=OXh(X)),1)&&Ix(X)&&X.peek()===41?(X.pos+=1,V=!0):X.pos=g);if(!V){var F=X.pos,T=Qih(X);T>2?b=X.subject.slice(F,F+T):w.bracketAfter||(b=X.subject.slice(w.index,e));T===0&&(X.pos=g);b&&(b=X.refmap[DFl(b)])&&(z=b.destination,B=
b.title,V=!0)}if(V){e=new q8(G?"image":"link");e._destination=z;e._title=B||"";for(z=w.node._next;z;)B=z._next,z.unlink(),e.appendChild(z),z=B;t.appendChild(e);Kwq(X,w.previousDelimiter);X.brackets=X.brackets.previous;w.node.unlink();if(!G)for(w=X.brackets;w!==null;)w.image||(w.active=!1),w=w.previous}else X.brackets=X.brackets.previous,X.pos=e,t.appendChild(uS("]"))}else t.appendChild(uS("]")),X.brackets=X.brackets.previous;G=!0;break;case 60:(G=X.match(jiY))?(G=G.slice(1,G.length-1),w=new q8("link"),
w._destination=t_4("mailto:"+G),w._title="",w.appendChild(uS(G)),t.appendChild(w),G=!0):(G=X.match(gIh))?(G=G.slice(1,G.length-1),w=new q8("link"),w._destination=t_4(G),w._title="",w.appendChild(uS(G)),t.appendChild(w),G=!0):G=!1;G||(G=X.match(avS),G===null?G=!1:(w=new q8("html_inline"),w._literal=G,t.appendChild(w),G=!0));break;case 38:(G=X.match(V_h))?(t.appendChild(uS(LfJ(G))),G=!0):G=!1;break;default:G=WwP(X,t)}G||(X.pos+=1,t.appendChild(uS(OC(y))));return!0};
QC.prototype.parseInlines=function(X){this.subject=X._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;plz(this,X););X._string_content=null;Kwq(this,null)};
QC.prototype.parse=QC.prototype.parseInlines;var rHq=[/./,/^<(?: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")],Nr4=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],PpP=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,EIq=/^[#`~*+_=<>0-9-\|]|\|/,UIS=/[^ \t\f\v\r\n]/,mIB=/^[*+-]/,RVt=/^(\d{1,9})([.)])/,iXt=/^#{1,6}(?:[ \t]+|$)/,LwS=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,vIB=/^(?:`{3,}|~{3,})(?= *$)/,aWo=/^(?:=+|-+)[ \t]*$/,lW4=/\r\n|\n|\r/,hsh=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,ZNs=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,xIS={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(X){return X!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(X,t){for(X=t._firstChild;X;){if(S1G(X)&&X._next){t._listData.tight=!1;break}for(var G=X._firstChild;G;){if(S1G(G)&&(X._next||G._next)){t._listData.tight=!1;break}G=G._next}X=X._next}},
canContain:function(X){return X==="item"},
acceptsLines:!1},block_quote:{continue:function(X){var t=X.currentLine;if(X.indented||hL(t,X.nextNonspace)!==62)return 1;W3(X);c3(X,1,!1);Sb(hL(t,X.offset))&&c3(X,1,!0);return 0},
finalize:function(){},
canContain:function(X){return X!=="item"},
acceptsLines:!1},item:{continue:function(X,t){if(X.blank){if(t._firstChild==null)return 1;W3(X)}else if(X.indent>=t._listData.markerOffset+t._listData.padding)c3(X,t._listData.markerOffset+t._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(X){return X!=="item"&&!q1s(X)},
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(X,t){var G=X.currentLine,y=X.indent;if(t._isFenced){if((y=y<=3&&G.charAt(X.nextNonspace)===t._fenceChar&&G.slice(X.nextNonspace).match(vIB))&&y[0].length>=t._fenceLength)return X.finalize(t,X.lineNumber),2;for(t=t._fenceOffset;t>0&&Sb(hL(G,X.offset));)c3(X,1,!0),t--}else if(y>=4)c3(X,4,!0);else if(X.blank)W3(X);else return 1;return 0},
finalize:function(X,t){if(t._isFenced){var G=t._string_content,y=G.indexOf("\n");X=G.slice(0,y);G=G.slice(y+1);t.info=$Ie(X.trim());t._literal=G}else t._literal=t._string_content.replace(/(\n *)+$/,"\n");t._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(X,t){return!X.blank||t._htmlBlockType!==6&&t._htmlBlockType!==7?0:1},
finalize:function(X,t){t._literal=t._string_content.replace(/(\n *)+$/,"");t._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(X){return X.blank?1:0},
finalize:function(X,t){for(var G,y=!1;hL(t._string_content,0)===91&&(G=cHR(X.inlineParser,t._string_content,X.refmap));)t._string_content=t._string_content.slice(G),y=!0;y&&!UIS.test(t._string_content)&&t.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(X){return ZO(X.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(X){return X=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(X,t){if(!t._rowIsDelimiter){X=t._isHeader?"th":"td";for(var G=t._parent._tableColumns,y=t._string_content,w=0,z="",B,V=t._sourcepos[0][0];w<y.length;){switch(y[w]){case "|":B&&(B._string_content=z.trim(),z="",B=null,G--,G<=0&&(w=y.length));break;default:if(!B){B=new q8(X,[[V,w],[V,w]]);var b=t._parent._columnAlignment,e=t._parent._tableColumns-G;b&&e<=b.length&&e>=0&&(B._alignment=b[e]);t.appendChild(B)}z+=y[w];B._sourcepos[1][1]=w}w++}B&&(B._string_content=z.trim());t._string_content=
""}},
canContain:function(X){return X!=="row"},
acceptsLines:!1}},fWe=[function(X){if(X.indented||hL(X.currentLine,X.nextNonspace)!==62)return 0;W3(X);c3(X,1,!1);Sb(hL(X.currentLine,X.offset))&&c3(X,1,!0);pB(X);X.addChild("block_quote",X.nextNonspace);return 1},
function(X){var t;if(!X.indented&&(t=X.currentLine.slice(X.nextNonspace).match(iXt))){W3(X);c3(X,t[0].length,!1);pB(X);var G=X.addChild("heading",X.nextNonspace);G.level=t[0].trim().length;G._string_content=X.currentLine.slice(X.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");c3(X,X.currentLine.length-X.offset);return 2}return 0},
function(X){var t;if(!X.indented&&(t=X.currentLine.slice(X.nextNonspace).match(LwS))){var G=t[0].length;pB(X);var y=X.addChild("code_block",X.nextNonspace);y._isFenced=!0;y._fenceLength=G;y._fenceChar=t[0][0];y._fenceOffset=X.indent;W3(X);c3(X,G,!1);return 2}return 0},
function(X,t){if(!X.indented&&hL(X.currentLine,X.nextNonspace)===60){var G=X.currentLine.slice(X.nextNonspace),y;for(y=1;y<=7;y++)if(rHq[y].test(G)&&(y<7||t.type!=="paragraph"))return pB(X),X.addChild("html_block",X.offset)._htmlBlockType=y,2}return 0},
function(X,t){var G;if(!X.indented&&t.type==="paragraph"&&(G=X.currentLine.slice(X.nextNonspace).match(aWo))){pB(X);var y=new q8("heading",t.sourcepos);y.level=G[0][0]==="="?1:2;y._string_content=t._string_content;HXh(t,y);t.unlink();X.tip=y;c3(X,X.currentLine.length-X.offset,!1);return 2}return 0},
function(X){return!X.indented&&PpP.test(X.currentLine.slice(X.nextNonspace))?(pB(X),X.addChild("thematic_break",X.nextNonspace),c3(X,X.currentLine.length-X.offset,!1),2):0},
function(X,t){var G,y;if(!(y=X.indented&&t.type!=="list")){a:{var w=t,z=X.currentLine.slice(X.nextNonspace);y={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:X.indent};if(G=z.match(mIB))y.type="bullet",y.bulletChar=G[0][0];else{if(!(G=z.match(RVt))||w.type==="paragraph"&&G[1]!=="1"){G=null;break a}y.type="ordered";y.start=parseInt(G[1],10);y.delimiter=G[2]}var B=hL(X.currentLine,X.nextNonspace+G[0].length);if(B!==-1&&B!==9&&B!==32||w.type==="paragraph"&&!X.currentLine.slice(X.nextNonspace+
G[0].length).match(UIS))G=null;else{W3(X);c3(X,G[0].length,!0);w=X.column;z=X.offset;do c3(X,1,!0),B=hL(X.currentLine,X.offset);while(X.column-w<5&&Sb(B));B=hL(X.currentLine,X.offset)===-1;var V=X.column-w;V>=5||V<1||B?(y.padding=G[0].length+1,X.column=w,X.offset=z,Sb(hL(X.currentLine,X.offset))&&c3(X,1,!0)):y.padding=G[0].length+V;G=y}}y=!G}if(y)return 0;pB(X);(y=X.tip.type!=="list")||(t=t._listData,y=!(t.type===G.type&&t.delimiter===G.delimiter&&t.bulletChar===G.bulletChar));y&&(t=X.addChild("list",
X.nextNonspace),t._listData=G);t=X.addChild("item",X.nextNonspace);t._listData=G;return 1},
function(X){var t;return((t=X.options.shouldParseIndentAsCodeBlock)!=null?t:1)&&X.indented&&X.tip.type!=="paragraph"&&!X.blank?(c3(X,4,!0),pB(X),X.addChild("code_block",X.offset),2):0},
function(X,t){var G=ZO(X.currentLine),y=ZO(X.lookahead);if(G!==0&&y<0&&Math.abs(G)==Math.abs(y)&&!q1s(t.type)){pB(X);t=X.addChild("table",X.nextNonspace);t._tableRows=1;t._tableColumns=Math.abs(G);G=X.lookahead;if(ZNs.test(G)){y=[];for(var w=0,z=!1,B=0,V=void 0;w<G.length;){var b=B>=3;switch(G[w]){case "-":B++;break;case "|":z&&(y.push(V),V=void 0,B=0);z=!0;break;case ":":V||b||(V="left"),!V&&b&&(V="right"),V==="left"&&b&&(V="center")}w++}G=y}else G=void 0;t._columnAlignment=G;t=X.addChild("row",
X.nextNonspace);t._isHeader=!0;c3(X,X.currentLine.length-X.offset,!1);t._string_content=X.currentLine;return 1}return 0},
function(X,t){if(t.type=="table"&&ZO(X.currentLine)!==0){pB(X);var G=t;t=X.addChild("row",X.nextNonspace);ZO(X.currentLine)<0?t._rowIsDelimiter=!0:G._tableRows+=1;c3(X,X.currentLine.length-X.offset,!1);t._string_content=X.currentLine;return 2}return 0}],KJl=function(){var X={shouldParseIndentAsCodeBlock:!1};
X=X===void 0?{}:X;this.lastMatchedContainer=this.doc=CMl();this.refmap={};this.lastLineLength=0;this.inlineParser=new QC(X);this.options=X;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=xIS;this.blockStarts=fWe},M_q=function(X){X.partiallyConsumedTab&&(X.offset+=1,X.tip._string_content+=" ".repeat(4-X.column%
4));
X.tip._string_content+=X.currentLine.slice(X.offset)+"\n"};
KJl.prototype.addChild=function(X,t){for(;!this.blocks[this.tip.type].canContain(X);)this.finalize(this.tip,this.lineNumber-1);X=new q8(X,[[this.lineNumber,t+1],[0,0]]);X._string_content="";this.tip.appendChild(X);return this.tip=X};
var pB=function(X){if(!X.allClosed){for(;X.oldtip!==X.lastMatchedContainer;){var t=X.oldtip._parent;X.finalize(X.oldtip,X.lineNumber-1);X.oldtip=t}X.allClosed=!0}},c3=function(X,t,G){for(var y=X.currentLine,w,z;t>0&&(z=y[X.offset]);)z==="\t"?(w=4-X.column%4,G?(X.partiallyConsumedTab=w>t,w=w>t?t:w,X.column+=w,X.offset+=X.partiallyConsumedTab?0:1,t-=w):(X.partiallyConsumedTab=!1,X.column+=w,X.offset+=1,--t)):(X.partiallyConsumedTab=!1,X.offset+=1,X.column+=1,--t)},W3=function(X){X.offset=X.nextNonspace;
X.column=X.nextNonspaceColumn;X.partiallyConsumedTab=!1},XkB=function(X){for(var t=X.currentLine,G=X.offset,y=X.column,w;(w=t.charAt(G))!=="";)if(w===" ")G++,y++;
else if(w==="\t")G++,y+=4-y%4;else break;X.blank=w==="\n"||w==="\r"||w==="";X.nextNonspace=G;X.nextNonspaceColumn=y;X.indent=X.nextNonspaceColumn-X.column;X.indented=X.indent>=4};
KJl.prototype.finalize=function(X,t){var G=X._parent;X._open=!1;X.sourcepos[1]=[t,this.lastLineLength];this.blocks[X.type].finalize(this,X);this.tip=G};
KJl.prototype.parse=function(X){this.tip=this.doc=CMl();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!X)return this.doc;this.options.time&&console.time("preparing input");var t=X.split(lW4),G=t.length;X.charCodeAt(X.length-1)===10&&--G;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(X=0;X<G;X++)a:{var y=void 0,w=t[X],z=t[X+1],B=!0,V=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;w.indexOf("\x00")!==-1&&(w=w.replace(/\0/g,"\ufffd"));this.currentLine=w;for(this.lookahead=z;(y=V._lastChild)&&y._open;){V=y;XkB(this);switch(this.blocks[V.type].continue(this,V)){case 0:break;case 1:B=!1;break;case 2:this.lastLineLength=w.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!B){V=V._parent;break}}this.allClosed=V===this.oldtip;this.lastMatchedContainer=
V;y=V.type!=="paragraph"&&xIS[V.type].acceptsLines;z=this.blockStarts;for(B=z.length;!y;){XkB(this);if(!this.indented&&!EIq.test(w.slice(this.nextNonspace))){W3(this);break}for(var b=0;b<B;){var e=z[b](this,V);if(e===1){V=this.tip;break}else if(e===2){V=this.tip;y=!0;break}else b++}if(b===B){W3(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){pB(this);this.blank&&V.lastChild&&(V.lastChild._lastLineBlank=!0);y=V.type;z=this.blank&&!(y==="block_quote"||y==="code_block"&&V._isFenced||
y==="item"&&!V._firstChild&&V.sourcepos[0][0]===this.lineNumber);for(B=V;B;)B._lastLineBlank=z,B=B._parent;this.blocks[y].acceptsLines?(M_q(this),y==="html_block"&&V._htmlBlockType>=1&&V._htmlBlockType<=5&&Nr4[V._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(V,this.lineNumber)):this.offset<w.length&&!this.blank&&(this.addChild("paragraph",this.offset),W3(this),M_q(this))}else M_q(this);this.lastLineLength=w.length}for(;this.tip;)this.finalize(this.tip,G);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");w=new zVz(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;G=w.next();)t=G.node,X=t.type,G.entering||X!=="paragraph"&&X!=="heading"&&X!=="th"&&X!="td"||this.inlineParser.parse(t);this.options.time&&console.timeEnd("inline parsing");return this.doc};KPh.prototype.render=function(X){X=new zVz(X);var t;this.buffer="";for(this.lastOut="\n";t=X.next();){var G=t.node.type;if(this[G])this[G](t.node,t.entering)}return this.buffer};
KPh.prototype.out=function(X){r_(this,X)};
var r_=function(X,t){X.buffer+=t;X.lastOut=t};
KPh.prototype.cr=function(){this.lastOut!=="\n"&&r_(this,"\n")};var $7z=/^javascript:|vbscript:|file:|data:/i,teS=/^data:image\/(?:png|gif|jpeg|webp)/i,Gz4=function(X){return $7z.test(X)&&!teS.test(X)};
CE.prototype=Object.create(KPh.prototype);_.H=CE.prototype;_.H.text=function(X){this.out(X.literal)};
_.H.html_inline=function(X){this.options.safe?r_(this,"\x3c!-- raw HTML omitted --\x3e"):r_(this,X.literal)};
_.H.html_block=function(X){this.cr();this.options.safe?r_(this,"\x3c!-- raw HTML omitted --\x3e"):r_(this,X.literal);this.cr()};
_.H.softbreak=function(){r_(this,this.options.softbreak)};
_.H.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.H.link=function(X,t){var G=this.attrs(X);t?(this.options.safe&&Gz4(X.destination)||G.push(["href",KB(X.destination,!0)]),X.title&&G.push(["title",KB(X.title,!0)]),this.tag("a",G)):this.tag("/a")};
_.H.image=function(X,t){t?(this.disableTags===0&&(this.options.safe&&Gz4(X.destination)?r_(this,'<img src="" alt="'):r_(this,'<img src="'+KB(X.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(X.title&&r_(this,'" title="'+KB(X.title,!0)),r_(this,'" />')))};
_.H.emph=function(X,t){this.tag(t?"em":"/em")};
_.H.strong=function(X,t){this.tag(t?"strong":"/strong")};
_.H.paragraph=function(X,t){var G=X.parent.parent;X=this.attrs(X);G!==null&&G.type==="list"&&G.listTight||(t?(this.cr(),this.tag("p",X)):(this.tag("/p"),this.cr()))};
_.H.heading=function(X,t){var G="h"+X.level;X=this.attrs(X);t?(this.cr(),this.tag(G,X)):(this.tag("/"+G),this.cr())};
_.H.code=function(X){this.tag("code");this.out(X.literal);this.tag("/code")};
_.H.code_block=function(X){var t=X.info?X.info.split(/\s+/):[],G=this.attrs(X);t.length>0&&t[0].length>0&&G.push(["class","language-"+KB(t[0],!0)]);this.cr();this.tag("pre");this.tag("code",G);this.out(X.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.H.thematic_break=function(X){X=this.attrs(X);this.cr();this.tag("hr",X,!0);this.cr()};
_.H.block_quote=function(X,t){X=this.attrs(X);t?(this.cr(),this.tag("blockquote",X)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.H.list=function(X,t){var G=X.listType==="bullet"?"ul":"ol",y=this.attrs(X);t?(X=X.listStart,X!==null&&X!==1&&y.push(["start",X.toString()]),this.cr(),this.tag(G,y)):(this.cr(),this.tag("/"+G));this.cr()};
_.H.item=function(X,t){X=this.attrs(X);t?this.tag("li",X):(this.tag("/li"),this.cr())};
_.H.custom_inline=function(X,t){t&&X.onEnter?r_(this,X.onEnter):!t&&X.onExit&&r_(this,X.onExit)};
_.H.custom_block=function(X,t){this.cr();t&&X.onEnter?r_(this,X.onEnter):!t&&X.onExit&&r_(this,X.onExit);this.cr()};
_.H.table=function(X,t){X=this.attrs(X);t?(this.cr(),this.tag("table",X)):(this.tag("/table"),this.cr())};
_.H.row=function(X,t){X._rowIsDelimiter||(X=this.attrs(X),t?this.tag("tr",X):this.tag("/tr"))};
_.H.td=function(X,t){var G=this.attrs(X);X._alignment&&G.push(["align",X._alignment]);t?this.tag("td",G):this.tag("/td")};
_.H.th=function(X,t){var G=this.attrs(X);X._alignment&&G.push(["align",X._alignment]);t?this.tag("th",G):this.tag("/th")};
_.H.out=function(X){r_(this,KB(X,!1))};
_.H.tag=function(X,t,G){if(!(this.disableTags>0)){this.buffer+="<"+X;if(t&&t.length>0){X=0;for(var y;(y=t[X])!==void 0;)this.buffer+=" "+y[0]+'="'+y[1]+'"',X++}G&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.H.attrs=function(X){var t=[];this.options.sourcepos&&(X=X.sourcepos)&&t.push(["data-sourcepos",String(X[0][0])+":"+String(X[0][1])+"-"+String(X[1][0])+":"+String(X[1][1])]);return t};
CE.prototype.text=CE.prototype.text;CE.prototype.html_inline=CE.prototype.html_inline;CE.prototype.html_block=CE.prototype.html_block;CE.prototype.softbreak=CE.prototype.softbreak;CE.prototype.linebreak=CE.prototype.linebreak;CE.prototype.link=CE.prototype.link;CE.prototype.image=CE.prototype.image;CE.prototype.emph=CE.prototype.emph;CE.prototype.strong=CE.prototype.strong;CE.prototype.paragraph=CE.prototype.paragraph;CE.prototype.heading=CE.prototype.heading;CE.prototype.code=CE.prototype.code;
CE.prototype.code_block=CE.prototype.code_block;CE.prototype.thematic_break=CE.prototype.thematic_break;CE.prototype.block_quote=CE.prototype.block_quote;CE.prototype.list=CE.prototype.list;CE.prototype.item=CE.prototype.item;CE.prototype.custom_inline=CE.prototype.custom_inline;CE.prototype.custom_block=CE.prototype.custom_block;CE.prototype.table=CE.prototype.table;CE.prototype.row=CE.prototype.row;CE.prototype.td=CE.prototype.td;CE.prototype.th=CE.prototype.th;CE.prototype.out=CE.prototype.out;
CE.prototype.tag=CE.prototype.tag;CE.prototype.attrs=CE.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 yS4,wk4,wcV;(function(){function X(I,Q){return I<Q?-1:I>Q?1:I>=Q?0:NaN}
function t(I){return function(Q,r){return X(I(Q),r)}}
function G(){for(var I=0,Q=arguments.length,r={},f;I<Q;++I){if(!(f=arguments[I]+"")||f in r)throw Error("re`"+f);r[f]=[]}return new y(r)}
function y(I){this._=I}
function w(I,Q){return I.trim().split(/^|\s+/).map(function(r){var f="",oV=r.indexOf(".");oV>=0&&(f=r.slice(oV+1),r=r.slice(0,oV));if(r&&!Q.hasOwnProperty(r))throw Error("se`"+r);return{type:r,name:f}})}
function z(I,Q,r){for(var f=0,oV=I.length;f<oV;++f)if(I[f].name===Q){I[f]=MaR;I=I.slice(0,f).concat(I.slice(f+1));break}r!=null&&I.push({name:Q,value:r});return I}
function B(I){var Q=I,r=Q.indexOf(":");r>=0&&(Q=I.slice(0,r))!=="xmlns"&&(I=I.slice(r+1));return Zw.hasOwnProperty(Q)?{space:Zw[Q],local:I}:I}
function V(I){return function(){var Q=this.ownerDocument,r=this.namespaceURI;return r==="http://www.w3.org/1999/xhtml"&&Q.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?Q.createElement(I):Q.createElementNS(r,I)}}
function b(I){return function(){return this.ownerDocument.createElementNS(I.space,I.local)}}
function e(I){I=B(I);return(I.local?b:V)(I)}
function g(){}
function F(I){return I==null?g:function(){return this.querySelector(I)}}
function T(I){return Array(I.length)}
function D(I,Q){this.ownerDocument=I.ownerDocument;this.namespaceURI=I.namespaceURI;this._next=null;this._parent=I;this.__data__=Q}
function h(I){return function(){return I}}
function u(I,Q,r,f,oV,js){for(var YJ=0,ul,tq=Q.length,Mw=js.length;YJ<Mw;++YJ)(ul=Q[YJ])?(ul.__data__=js[YJ],f[YJ]=ul):r[YJ]=new D(I,js[YJ]);for(;YJ<tq;++YJ)if(ul=Q[YJ])oV[YJ]=ul}
function W(I,Q,r,f,oV,js,YJ){var ul,tq,Mw={},wo=Q.length,eY=js.length,xh=Array(wo),sR;for(ul=0;ul<wo;++ul)if(tq=Q[ul])xh[ul]=sR="$"+YJ.call(tq,tq.__data__,ul,Q),sR in Mw?oV[ul]=tq:Mw[sR]=tq;for(ul=0;ul<eY;++ul)sR="$"+YJ.call(I,js[ul],ul,js),(tq=Mw[sR])?(f[ul]=tq,tq.__data__=js[ul],Mw[sR]=null):r[ul]=new D(I,js[ul]);for(ul=0;ul<wo;++ul)(tq=Q[ul])&&Mw[xh[ul]]===tq&&(oV[ul]=tq)}
function c(I,Q){return I<Q?-1:I>Q?1:I>=Q?0:NaN}
function P(I){return function(){this.removeAttribute(I)}}
function l(I){return function(){this.removeAttributeNS(I.space,I.local)}}
function R(I,Q){return function(){this.setAttribute(I,Q)}}
function L(I,Q){return function(){this.setAttributeNS(I.space,I.local,Q)}}
function x(I,Q){return function(){var r=Q.apply(this,arguments);r==null?this.removeAttribute(I):this.setAttribute(I,r)}}
function w6(I,Q){return function(){var r=Q.apply(this,arguments);r==null?this.removeAttributeNS(I.space,I.local):this.setAttributeNS(I.space,I.local,r)}}
function BY(I){return function(){this.style.removeProperty(I)}}
function kJ(I,Q,r){return function(){this.style.setProperty(I,Q,r)}}
function Ss(I,Q,r){return function(){var f=Q.apply(this,arguments);f==null?this.style.removeProperty(I):this.style.setProperty(I,f,r)}}
function C_(I,Q){return I.style.getPropertyValue(Q)||(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView).getComputedStyle(I,null).getPropertyValue(Q)}
function Fv(I){return function(){delete this[I]}}
function Uh(I,Q){return function(){this[I]=Q}}
function cY(I,Q){return function(){var r=Q.apply(this,arguments);r==null?delete this[I]:this[I]=r}}
function f_(){this.textContent=""}
function sq(I){return function(){this.textContent=I}}
function oq(I){return function(){var Q=I.apply(this,arguments);this.textContent=Q==null?"":Q}}
function ll(){this.innerHTML=""}
function go(I){return function(){this.innerHTML=I}}
function kh(I){return function(){var Q=I.apply(this,arguments);this.innerHTML=Q==null?"":Q}}
function Aq(){return null}
function OR(){var I=this.parentNode;I&&I.removeChild(this)}
function Mz(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function HY(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function yR(I,Q,r){I=hq(I,Q,r);return function(f){var oV=f.relatedTarget;oV&&(oV===this||oV.compareDocumentPosition(this)&8)||I.call(this,f)}}
function hq(I,Q,r){return function(){I.call(this,this.__data__,Q,r)}}
function gi(I){return I.trim().split(/^|\s+/).map(function(Q){var r="",f=Q.indexOf(".");f>=0&&(r=Q.slice(f+1),Q=Q.slice(0,f));return{type:Q,name:r}})}
function TB(I){return function(){var Q=this.__on;if(Q){for(var r=0,f=-1,oV=Q.length,js;r<oV;++r)(js=Q[r],I.type&&js.type!==I.type||js.name!==I.name)?Q[++f]=js:this.removeEventListener(js.type,js.listener,js.capture);++f?Q.length=f:delete this.__on}}}
function Uq(I,Q,r){var f=bct.hasOwnProperty(I.type)?yR:hq;return function(oV,js,YJ){oV=this.__on;var ul;js=f(Q,js,YJ);if(oV){YJ=0;for(var tq=oV.length;YJ<tq;++YJ)if((ul=oV[YJ]).type===I.type&&ul.name===I.name){this.removeEventListener(ul.type,ul.listener,ul.capture);this.addEventListener(ul.type,ul.listener=js,ul.capture=r);ul.value=Q;return}}this.addEventListener(I.type,js,r);ul={type:I.type,name:I.name,value:Q,listener:js,capture:r};oV?oV.push(ul):this.__on=[ul]}}
function Gc(I,Q,r){var f=I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView,oV=f.CustomEvent;typeof oV==="function"?oV=new oV(Q,r):(oV=f.document.createEvent("Event"),r?(oV.initEvent(Q,r.bubbles,r.cancelable),oV.detail=r.detail):oV.initEvent(Q,!1,!1));I.dispatchEvent(oV)}
function XH(I,Q){return function(){return Gc(this,I,Q)}}
function n4(I,Q){return function(){return Gc(this,I,Q.apply(this,arguments))}}
function lJ(I,Q){this._groups=I;this._parents=Q}
function kV(){return new lJ([[document.documentElement]],XBR)}
function ZP(){this._="@"+(++$DH).toString(36)}
function K4(I,Q,r){I.prototype=Q.prototype=r;r.constructor=I}
function Tr(I,Q){I=Object.create(I.prototype);for(var r in Q)I[r]=Q[r];return I}
function nL(){}
function nT(I){var Q;I=(I+"").trim().toLowerCase();return(Q=ttR.exec(I))?(Q=parseInt(Q[1],16),new GY(Q>>8&15|Q>>4&240,Q>>4&15|Q&240,(Q&15)<<4|Q&15,1)):(Q=Gvq.exec(I))?ZA(parseInt(Q[1],16)):(Q=yzr.exec(I))?new GY(Q[1],Q[2],Q[3],1):(Q=wB2.exec(I))?new GY(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,1):(Q=zrH.exec(I))?MY(Q[1],Q[2],Q[3],Q[4]):(Q=Hma.exec(I))?MY(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,Q[4]):(Q=oCV.exec(I))?nY(Q[1],Q[2]/100,Q[3]/100,1):(Q=JzN.exec(I))?nY(Q[1],Q[2]/100,Q[3]/100,Q[4]):k4h.hasOwnProperty(I)?
ZA(k4h[I]):I==="transparent"?new GY(NaN,NaN,NaN,0):null}
function ZA(I){return new GY(I>>16&255,I>>8&255,I&255,1)}
function MY(I,Q,r,f){f<=0&&(I=Q=r=NaN);return new GY(I,Q,r,f)}
function vS(I){I instanceof nL||(I=nT(I));if(!I)return new GY;I=I.rgb();return new GY(I.r,I.g,I.b,I.opacity)}
function c4(I,Q,r,f){return arguments.length===1?vS(I):new GY(I,Q,r,f==null?1:f)}
function GY(I,Q,r,f){this.r=+I;this.g=+Q;this.b=+r;this.opacity=+f}
function yW(I){I=Math.max(0,Math.min(255,Math.round(I)||0));return(I<16?"0":"")+I.toString(16)}
function nY(I,Q,r,f){f<=0?I=Q=r=NaN:r<=0||r>=1?I=Q=NaN:Q<=0&&(I=NaN);return new W0(I,Q,r,f)}
function zl(I){if(I instanceof W0)return new W0(I.h,I.s,I.l,I.opacity);I instanceof nL||(I=nT(I));if(!I)return new W0;if(I instanceof W0)return I;I=I.rgb();var Q=I.r/255,r=I.g/255,f=I.b/255,oV=Math.min(Q,r,f),js=Math.max(Q,r,f),YJ=NaN,ul=js-oV,tq=(js+oV)/2;ul?(YJ=Q===js?(r-f)/ul+(r<f)*6:r===js?(f-Q)/ul+2:(Q-r)/ul+4,ul/=tq<.5?js+oV:2-js-oV,YJ*=60):ul=tq>0&&tq<1?0:YJ;return new W0(YJ,ul,tq,I.opacity)}
function Wx(I,Q,r,f){return arguments.length===1?zl(I):new W0(I,Q,r,f==null?1:f)}
function W0(I,Q,r,f){this.h=+I;this.s=+Q;this.l=+r;this.opacity=+f}
function Vr(I,Q,r){return(I<60?Q+(r-Q)*I/60:I<180?r:I<240?Q+(r-Q)*(240-I)/60:Q)*255}
function em(I){if(I instanceof Df)return new Df(I.l,I.a,I.b,I.opacity);if(I instanceof DP){if(isNaN(I.h))return new Df(I.l,0,0,I.opacity);var Q=I.h*dPJ;return new Df(I.l,Math.cos(Q)*I.c,Math.sin(Q)*I.c,I.opacity)}I instanceof GY||(I=vS(I));var r=B4(I.r),f=B4(I.g),oV=B4(I.b);Q=p_(.2225045*r+.7168786*f+.0606169*oV);if(r===f&&f===oV)var js=r=Q;else js=p_((.4360747*r+.3850649*f+.1430804*oV)/.96422),r=p_((.0139322*r+.0971045*f+.7141733*oV)/.82521);return new Df(116*Q-16,500*(js-Q),200*(Q-r),I.opacity)}
function Df(I,Q,r,f){this.l=+I;this.a=+Q;this.b=+r;this.opacity=+f}
function p_(I){return I>Bxq?Math.pow(I,1/3):I/eOo+j9q}
function mE(I){return I>fx?I*I*I:eOo*(I-j9q)}
function Yh(I){return 255*(I<=.0031308?12.92*I:1.055*Math.pow(I,1/2.4)-.055)}
function B4(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}
function u_(I){if(I instanceof DP)return new DP(I.h,I.c,I.l,I.opacity);I instanceof Df||(I=em(I));if(I.a===0&&I.b===0)return new DP(NaN,0,I.l,I.opacity);var Q=Math.atan2(I.b,I.a)*gnS;return new DP(Q<0?Q+360:Q,Math.sqrt(I.a*I.a+I.b*I.b),I.l,I.opacity)}
function AQ(I,Q,r,f){return arguments.length===1?u_(I):new DP(I,Q,r,f==null?1:f)}
function DP(I,Q,r,f){this.h=+I;this.c=+Q;this.l=+r;this.opacity=+f}
function F4(I,Q,r,f){if(arguments.length===1){var oV=I;if(oV instanceof CT)oV=new CT(oV.h,oV.s,oV.l,oV.opacity);else{oV instanceof GY||(oV=vS(oV));var js=oV.g/255,YJ=oV.b/255,ul=(FYq*YJ+oV.r/255*-1.7884503806-3.5172982438*js)/(FYq+-1.7884503806-3.5172982438);YJ-=ul;var tq=(1.97294*(js-ul)- -.29227*YJ)/-.90649;YJ=(js=Math.sqrt(tq*tq+YJ*YJ)/(1.97294*ul*(1-ul)))?Math.atan2(tq,YJ)*gnS-120:NaN;oV=new CT(YJ<0?YJ+360:YJ,js,ul,oV.opacity)}}else oV=new CT(I,Q,r,f==null?1:f);return oV}
function CT(I,Q,r,f){this.h=+I;this.s=+Q;this.l=+r;this.opacity=+f}
function Fk(I,Q,r,f,oV){var js=I*I,YJ=js*I;return((1-3*I+3*js-YJ)*Q+(4-6*js+3*YJ)*r+(1+3*I+3*js-3*YJ)*f+YJ*oV)/6}
function VR(I){return function(){return I}}
function s6(I,Q){return function(r){return I+r*Q}}
function oS(I,Q,r){return I=Math.pow(I,r),Q=Math.pow(Q,r)-I,r=1/r,function(f){return Math.pow(I+f*Q,r)}}
function p1(I,Q){var r=Q-I;return r?s6(I,r>180||r<-180?r-360*Math.round(r/360):r):VR(isNaN(I)?Q:I)}
function qV(I){return(I=+I)===1?G5:function(Q,r){return r-Q?oS(Q,r,I):VR(isNaN(Q)?r:Q)}}
function G5(I,Q){var r=Q-I;return r?s6(I,r):VR(isNaN(I)?Q:I)}
function kl(I){return function(Q){var r=Q.length,f=Array(r),oV=Array(r),js=Array(r),YJ;for(YJ=0;YJ<r;++YJ){var ul=c4(Q[YJ]);f[YJ]=ul.r||0;oV[YJ]=ul.g||0;js[YJ]=ul.b||0}f=I(f);oV=I(oV);js=I(js);ul.opacity=1;return function(tq){ul.r=f(tq);ul.g=oV(tq);ul.b=js(tq);return ul+""}}}
function il(I,Q){return I=+I,Q-=I,function(r){return I+Q*r}}
function oN(I){return function(){return I}}
function RN(I){return function(Q){return I(Q)+""}}
function pT(I,Q){var r=r_0.lastIndex=Nvf.lastIndex=0,f,oV,js,YJ=-1,ul=[],tq=[];I+="";for(Q+="";(f=r_0.exec(I))&&(oV=Nvf.exec(Q));)(js=oV.index)>r&&(js=Q.slice(r,js),ul[YJ]?ul[YJ]+=js:ul[++YJ]=js),(f=f[0])===(oV=oV[0])?ul[YJ]?ul[YJ]+=oV:ul[++YJ]=oV:(ul[++YJ]=null,tq.push({i:YJ,x:il(f,oV)})),r=Nvf.lastIndex;r<Q.length&&(js=Q.slice(r),ul[YJ]?ul[YJ]+=js:ul[++YJ]=js);return ul.length<2?tq[0]?RN(tq[0].x):oN(Q):(Q=tq.length,function(Mw){for(var wo=0,eY;wo<Q;++wo)ul[(eY=tq[wo]).i]=eY.x(Mw);return ul.join("")})}
function bG(I,Q,r,f,oV,js){var YJ,ul,tq;if(YJ=Math.sqrt(I*I+Q*Q))I/=YJ,Q/=YJ;if(tq=I*r+Q*f)r-=I*tq,f-=Q*tq;if(ul=Math.sqrt(r*r+f*f))r/=ul,f/=ul,tq/=ul;I*f<Q*r&&(I=-I,Q=-Q,tq=-tq,YJ=-YJ);return{translateX:oV,translateY:js,rotate:Math.atan2(Q,I)*Tzo,skewX:Math.atan(tq)*Tzo,scaleX:YJ,scaleY:ul}}
function H1(I,Q,r,f){function oV(Mw){return Mw.length?Mw.pop()+" ":""}
function js(Mw,wo,eY,xh,sR,Yg){Mw!==eY||wo!==xh?(sR=sR.push("translate(",null,Q,null,r),Yg.push({i:sR-4,x:il(Mw,eY)},{i:sR-2,x:il(wo,xh)})):(eY||xh)&&sR.push("translate("+eY+Q+xh+r)}
function YJ(Mw,wo,eY,xh){Mw!==wo?(Mw-wo>180?wo+=360:wo-Mw>180&&(Mw+=360),xh.push({i:eY.push(oV(eY)+"rotate(",null,f)-2,x:il(Mw,wo)})):wo&&eY.push(oV(eY)+"rotate("+wo+f)}
function ul(Mw,wo,eY,xh){Mw!==wo?xh.push({i:eY.push(oV(eY)+"skewX(",null,f)-2,x:il(Mw,wo)}):wo&&eY.push(oV(eY)+"skewX("+wo+f)}
function tq(Mw,wo,eY,xh,sR,Yg){Mw!==eY||wo!==xh?(sR=sR.push(oV(sR)+"scale(",null,",",null,")"),Yg.push({i:sR-4,x:il(Mw,eY)},{i:sR-2,x:il(wo,xh)})):eY===1&&xh===1||sR.push(oV(sR)+"scale("+eY+","+xh+")")}
return function(Mw,wo){var eY=[],xh=[];Mw=I(Mw);wo=I(wo);js(Mw.translateX,Mw.translateY,wo.translateX,wo.translateY,eY,xh);YJ(Mw.rotate,wo.rotate,eY,xh);ul(Mw.skewX,wo.skewX,eY,xh);tq(Mw.scaleX,Mw.scaleY,wo.scaleX,wo.scaleY,eY,xh);Mw=wo=null;return function(sR){for(var Yg=-1,P$=xh.length,Dx;++Yg<P$;)eY[(Dx=xh[Yg]).i]=Dx.x(sR);return eY.join("")}}}
function TY(I){return function(Q,r){var f=I((Q=Wx(Q)).h,(r=Wx(r)).h),oV=G5(Q.s,r.s),js=G5(Q.l,r.l),YJ=G5(Q.opacity,r.opacity);return function(ul){Q.h=f(ul);Q.s=oV(ul);Q.l=js(ul);Q.opacity=YJ(ul);return Q+""}}}
function jm(I){return function(Q,r){var f=I((Q=AQ(Q)).h,(r=AQ(r)).h),oV=G5(Q.c,r.c),js=G5(Q.l,r.l),YJ=G5(Q.opacity,r.opacity);return function(ul){Q.h=f(ul);Q.c=oV(ul);Q.l=js(ul);Q.opacity=YJ(ul);return Q+""}}}
function xE(I){return function f(r){function oV(js,YJ){var ul=I((js=F4(js)).h,(YJ=F4(YJ)).h),tq=G5(js.s,YJ.s),Mw=G5(js.l,YJ.l),wo=G5(js.opacity,YJ.opacity);return function(eY){js.h=ul(eY);js.s=tq(eY);js.l=Mw(Math.pow(eY,r));js.opacity=wo(eY);return js+""}}
r=+r;oV.gamma=f;return oV}(1)}
function GH(){return hX||(APh(IYA),hX=X1.now()+wxY)}
function IYA(){hX=0}
function yV(){this._call=this._time=this._next=null}
function $i(I,Q,r){var f=new yV;f.restart(I,Q,r);return f}
function tn(){hX=(zZ0=X1.now())+wxY;Mc=$p=0;try{GH();++Mc;for(var I=Hsv,Q;I;)(Q=hX-I._time)>=0&&I._call.call(null,Q),I=I._next;--Mc}finally{Mc=0;I=Hsv;for(var r=Infinity;I;)if(I._call){r>I._time&&(r=I._time);var f=I;I=I._next}else Q=I._next,I._next=null,I=f?f._next=Q:Hsv=Q;tN=f;Gn(r);hX=0}}
function es0(){var I=X1.now(),Q=I-zZ0;Q>1E3&&(wxY-=Q,zZ0=I)}
function Gn(I){Mc||($p&&($p=clearTimeout($p)),I-hX>24?(I<Infinity&&($p=setTimeout(tn,I-X1.now()-wxY)),Gk&&(Gk=clearInterval(Gk))):(Gk||(zZ0=X1.now(),Gk=setInterval(es0,1E3)),Mc=1,APh(tn)))}
function YER(I,Q,r){var f=new yV;Q=Q==null?0:+Q;f.restart(function(oV){f.stop();I(oV+Q)},Q,r);
return f}
function Pjs(I,Q,r,f,oV,js){var YJ=I.__transition;if(!YJ)I.__transition={};else if(r in YJ)return;nCR(I,r,{name:Q,index:f,group:oV,on:VtR,tween:bmH,time:js.time,delay:js.delay,duration:js.duration,ease:js.ease,timer:null,state:0})}
function E6A(I,Q){I=AJ(I,Q);if(I.state>0)throw Error("te");return I}
function Zm(I,Q){I=AJ(I,Q);if(I.state>2)throw Error("ue");return I}
function AJ(I,Q){I=I.__transition;if(!I||!(I=I[Q]))throw Error("ve");return I}
function nCR(I,Q,r){function f(tq){var Mw,wo;if(r.state!==1)return js();for(xh in YJ){var eY=YJ[xh];if(eY.name===r.name){if(eY.state===3)return YER(f);eY.state===4?(eY.state=6,eY.timer.stop(),eY.on.call("interrupt",I,I.__data__,eY.index,eY.group),delete YJ[xh]):+xh<Q&&(eY.state=6,eY.timer.stop(),delete YJ[xh])}}YER(function(){r.state===3&&(r.state=4,r.timer.restart(oV,r.delay,r.time),oV(tq))});
r.state=2;r.on.call("start",I,I.__data__,r.index,r.group);if(r.state===2){r.state=3;ul=Array(wo=r.tween.length);var xh=0;for(Mw=-1;xh<wo;++xh)if(eY=r.tween[xh].value.call(I,I.__data__,r.index,r.group))ul[++Mw]=eY;ul.length=Mw+1}}
function oV(tq){tq=tq<r.duration?r.ease.call(null,tq/r.duration):(r.timer.restart(js),r.state=5,1);for(var Mw=-1,wo=ul.length;++Mw<wo;)ul[Mw].call(null,tq);r.state===5&&(r.on.call("end",I,I.__data__,r.index,r.group),js())}
function js(){r.state=6;r.timer.stop();delete YJ[Q];for(var tq in YJ)return;delete I.__transition}
var YJ=I.__transition,ul;YJ[Q]=r;r.timer=$i(function(tq){r.state=1;r.timer.restart(f,r.delay,r.time);r.delay<=tq&&f(tq-r.delay)},0,r.time)}
function kvv(I,Q){var r,f;return function(){var oV=Zm(this,I),js=oV.tween;if(js!==r){f=r=js;js=0;for(var YJ=f.length;js<YJ;++js)if(f[js].name===Q){f=f.slice();f.splice(js,1);break}}oV.tween=f}}
function dDr(I,Q,r){var f,oV;if(typeof r!=="function")throw Error();return function(){var js=Zm(this,I),YJ=js.tween;if(YJ!==f){oV=(f=YJ).slice();YJ={name:Q,value:r};for(var ul=0,tq=oV.length;ul<tq;++ul)if(oV[ul].name===Q){oV[ul]=YJ;break}ul===tq&&oV.push(YJ)}js.tween=oV}}
function UWv(I,Q,r){var f=I._id;I.each(function(){var oV=Zm(this,f);(oV.value||(oV.value={}))[Q]=r.apply(this,arguments)});
return function(oV){return AJ(oV,f).value[Q]}}
function s9q(I,Q){var r;return(typeof Q==="number"?il:Q instanceof nT?DPP:(r=nT(Q))?(Q=r,DPP):pT)(I,Q)}
function erH(I){return function(){this.removeAttribute(I)}}
function jZB(I){return function(){this.removeAttributeNS(I.space,I.local)}}
function gCQ(I,Q,r){var f,oV;return function(){var js=this.getAttribute(I);return js===r?null:js===f?oV:oV=Q(f=js,r)}}
function Fo2(I,Q,r){var f,oV;return function(){var js=this.getAttributeNS(I.space,I.local);return js===r?null:js===f?oV:oV=Q(f=js,r)}}
function TxT(I,Q,r){var f,oV,js;return function(){var YJ=r(this);if(YJ==null)return void this.removeAttribute(I);var ul=this.getAttribute(I);return ul===YJ?null:ul===f&&YJ===oV?js:js=Q(f=ul,oV=YJ)}}
function Aza(I,Q,r){var f,oV,js;return function(){var YJ=r(this);if(YJ==null)return void this.removeAttributeNS(I.space,I.local);var ul=this.getAttributeNS(I.space,I.local);return ul===YJ?null:ul===f&&YJ===oV?js:js=Q(f=ul,oV=YJ)}}
function Y_i(I,Q){function r(){var f=this,oV=Q.apply(f,arguments);return oV&&function(js){f.setAttributeNS(I.space,I.local,oV(js))}}
r._value=Q;return r}
function sZ2(I,Q){function r(){var f=this,oV=Q.apply(f,arguments);return oV&&function(js){f.setAttribute(I,oV(js))}}
r._value=Q;return r}
function DD4(I,Q){return function(){E6A(this,I).delay=+Q.apply(this,arguments)}}
function S_4(I,Q){return Q=+Q,function(){E6A(this,I).delay=Q}}
function hrV(I,Q){return function(){Zm(this,I).duration=+Q.apply(this,arguments)}}
function ZmH(I,Q){return Q=+Q,function(){Zm(this,I).duration=Q}}
function q_V(I,Q){if(typeof Q!=="function")throw Error();return function(){Zm(this,I).ease=Q}}
function Cy4(I){return(I+"").trim().split(/^|\s+/).every(function(Q){var r=Q.indexOf(".");r>=0&&(Q=Q.slice(0,r));return!Q||Q==="start"})}
function Koq(I,Q,r){var f,oV,js=Cy4(Q)?E6A:Zm;return function(){var YJ=js(this,I),ul=YJ.on;if(ul!==f)(oV=(f=ul).copy()).on(Q,r);YJ.on=oV}}
function OmV(I){return function(){var Q=this.parentNode,r;for(r in this.__transition)if(+r!==I)return;Q&&Q.removeChild(this)}}
function uLV(I,Q){var r,f,oV;return function(){var js=C_(this,I),YJ=(this.style.removeProperty(I),C_(this,I));return js===YJ?null:js===r&&YJ===f?oV:oV=Q(r=js,f=YJ)}}
function QZH(I){return function(){this.style.removeProperty(I)}}
function IZr(I,Q,r){var f,oV;return function(){var js=C_(this,I);return js===r?null:js===f?oV:oV=Q(f=js,r)}}
function WoH(I,Q,r){var f,oV,js;return function(){var YJ=C_(this,I),ul=r(this);ul==null&&(ul=(this.style.removeProperty(I),C_(this,I)));return YJ===ul?null:YJ===f&&ul===oV?js:js=Q(f=YJ,oV=ul)}}
function cz2(I,Q,r){function f(){var oV=this,js=Q.apply(oV,arguments);return js&&function(YJ){oV.style.setProperty(I,js(YJ),r)}}
f._value=Q;return f}
function pB2(I){return function(){this.textContent=I}}
function rzR(I){return function(){var Q=I(this);this.textContent=Q==null?"":Q}}
function Ob(I,Q,r,f){this._groups=I;this._parents=Q;this._name=r;this._id=f}
function mW0(I){return{type:I}}
function RTv(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function oxv(){}
function SEq(I,Q){var r=new oxv;if(I instanceof oxv)I.each(function(YJ,ul){r.set(ul,YJ)});
else if(Array.isArray(I)){var f=-1,oV=I.length,js;if(Q==null)for(;++f<oV;)r.set(f,I[f]);else for(;++f<oV;)r.set(Q(js=I[f],f,I),js)}else if(I)for(f in I)r.set(f,I[f]);return r}
function Jt0(){}
function hO4(I){return function(Q){for(var r={},f=0;f<I.length;f++)r[I[f]]=Q[f]||"";return r}}
function Nx2(I,Q){var r=hO4(I);return function(f,oV){return Q(r(f),oV,I)}}
function PyN(I){var Q=Object.create(null),r=[];I.forEach(function(f){for(var oV in f)oV in Q||r.push(Q[oV]=oV)});
return r}
function Zco(I){function Q(YJ,ul){function tq(){if(Yg)return iuV;if(P$)return P$=!1,qEJ;var E9,Nt=eY,bA;if(YJ.charCodeAt(Nt)===34){for(;eY++<wo&&YJ.charCodeAt(eY)!==34||YJ.charCodeAt(++eY)===34;);(E9=eY)>=wo?Yg=!0:(bA=YJ.charCodeAt(eY++))===10?P$=!0:bA===13&&(P$=!0,YJ.charCodeAt(eY)===10&&++eY);return YJ.slice(Nt+1,E9-1).replace(/""/g,'"')}for(;eY<wo;){if((bA=YJ.charCodeAt(E9=eY++))===10)P$=!0;else if(bA===13)P$=!0,YJ.charCodeAt(eY)===10&&++eY;else if(bA!==js)continue;return YJ.slice(Nt,E9)}return Yg=
!0,YJ.slice(Nt,wo)}
var Mw=[],wo=YJ.length,eY=0,xh=0,sR,Yg=wo<=0,P$=!1;YJ.charCodeAt(wo-1)===10&&--wo;for(YJ.charCodeAt(wo-1)===13&&--wo;(sR=tq())!==iuV;){for(var Dx=[];sR!==qEJ&&sR!==iuV;)Dx.push(sR),sR=tq();ul&&(Dx=ul(Dx,xh++))==null||Mw.push(Dx)}return Mw}
function r(YJ){return YJ.map(f).join(I)}
function f(YJ){return YJ==null?"":oV.test(YJ)?'"'+YJ.replace(/"/g,'""')+'"':YJ}
var oV=new RegExp('["'+I+"\n\r]"),js=I.charCodeAt(0);return{parse:function(YJ,ul){var tq,Mw;YJ=Q(YJ,function(wo,eY){if(tq)return tq(wo,eY-1);Mw=wo;tq=ul?Nx2(wo,ul):hO4(wo)});
YJ.columns=Mw||[];return YJ},
parseRows:Q,format:function(YJ,ul){ul==null&&(ul=PyN(YJ));return[ul.map(f).join(I)].concat(YJ.map(function(tq){return ul.map(function(Mw){return f(tq[Mw])}).join(I)})).join("\n")},
formatRows:function(YJ){return YJ.map(r).join("\n")}}}
function EC2(I){if(!I.ok)throw Error("we`"+I.status+"`"+I.statusText);return I.text()}
function Cg4(I){return function(Q,r,f){arguments.length===2&&typeof r==="function"&&(f=r,r=void 0);return fetch(Q,r).then(EC2).then(function(oV){return I(oV,f)})}}
function KYJ(I,Q,r,f){if(isNaN(Q)||isNaN(r))return I;var oV,js=I._root;f={data:f};var YJ=I._x0,ul=I._y0,tq=I._x1,Mw=I._y1,wo,eY,xh,sR,Yg;if(!js)return I._root=f,I;for(;js.length;)if((xh=Q>=(wo=(YJ+tq)/2))?YJ=wo:tq=wo,(sR=r>=(eY=(ul+Mw)/2))?ul=eY:Mw=eY,oV=js,!(js=js[Yg=sR<<1|xh]))return oV[Yg]=f,I;var P$=+I._x.call(null,js.data);var Dx=+I._y.call(null,js.data);if(Q===P$&&r===Dx)return f.next=js,oV?oV[Yg]=f:I._root=f,I;do oV=oV?oV[Yg]=Array(4):I._root=Array(4),(xh=Q>=(wo=(YJ+tq)/2))?YJ=wo:tq=wo,(sR=
r>=(eY=(ul+Mw)/2))?ul=eY:Mw=eY;while((Yg=sR<<1|xh)===(xh=(Dx>=eY)<<1|P$>=wo));return oV[xh]=js,oV[Yg]=f,I}
function ue(I,Q,r,f,oV){this.node=I;this.x0=Q;this.y0=r;this.x1=f;this.y1=oV}
function UDV(I){return I[0]}
function mDH(I){return I[1]}
function L4Y(I,Q,r,f,oV,js){this._x=I;this._y=Q;this._x0=r;this._y0=f;this._x1=oV;this._y1=js;this._root=void 0}
function OcB(I){for(var Q={data:I.data},r=Q;I=I.next;)r=r.next={data:I.data};return Q}
function BwV(I,Q){if((Q=(I=Q?I.toExponential(Q-1):I.toExponential()).indexOf("e"))<0)return null;var r=I.slice(0,Q);return[r.length>1?r[0]+r.slice(2):r,+I.slice(Q+1)]}
function RrQ(I){return I=BwV(Math.abs(I)),I?I[1]:NaN}
function imi(I,Q){return function(r,f){for(var oV=r.length,js=[],YJ=0,ul=I[0],tq=0;oV>0&&ul>0;){tq+ul+1>f&&(ul=Math.max(1,f-tq));js.push(r.substring(oV-=ul,oV+ul));if((tq+=ul+1)>f)break;ul=I[YJ=(YJ+1)%I.length]}return js.reverse().join(Q)}}
function Loa(I){return function(Q){return Q.replace(/[0-9]/g,function(r){return I[+r]})}}
function v6E(I){return new aGf(I)}
function aGf(I){if(!(Q=vCa.exec(I)))throw Error("xe`"+I);var Q;this.fill=Q[1]||" ";this.align=Q[2]||">";this.sign=Q[3]||"-";this.symbol=Q[4]||"";this.zero=!!Q[5];this.width=Q[6]&&+Q[6];this.comma=!!Q[7];this.precision=Q[8]&&+Q[8].slice(1);this.trim=!!Q[9];this.type=Q[10]||""}
function ust(I,Q){Q=BwV(I,Q);if(!Q)return I+"";I=Q[0];Q=Q[1];return Q<0?"0."+Array(-Q).join("0")+I:I.length>Q+1?I.slice(0,Q+1)+"."+I.slice(Q+1):I+Array(Q-I.length+2).join("0")}
function Q9B(I){return I}
function aZ2(I){function Q(ul){function tq(aj){var wj=bA,ri=N7,jB,oj;if(Nt==="c")ri=Pm(aj)+ri,aj="";else{aj=+aj;var hQ=aj<0;aj=Pm(Math.abs(aj),Dx);if(E9){var Ua=aj.length,q_=1,U9=-1;a:for(;q_<Ua;++q_)switch(aj[q_]){case ".":U9=jB=q_;break;case "0":U9===0&&(U9=q_);jB=q_;break;default:if(!+aj[q_])break a;U9>0&&(U9=0)}aj=U9>0?aj.slice(0,U9)+aj.slice(jB+1):aj}hQ&&+aj===0&&(hQ=!1);wj=(hQ?eY==="("?eY:"-":eY==="-"||eY==="("?"":eY)+wj;ri=(Nt==="s"?IBz[8+WY4/3]:"")+ri+(hQ&&eY==="("?")":"");if(Fo)for(hQ=-1,
jB=aj.length;++hQ<jB;)if(oj=aj.charCodeAt(hQ),48>oj||oj>57){ri=(oj===46?oV+aj.slice(hQ+1):aj.slice(hQ))+ri;aj=aj.slice(0,hQ);break}}P$&&!sR&&(aj=r(aj,Infinity));oj=wj.length+aj.length+ri.length;hQ=oj<Yg?Array(Yg-oj+1).join(Mw):"";P$&&sR&&(aj=r(hQ+aj,hQ.length?Yg-ri.length:Infinity),hQ="");switch(wo){case "<":aj=wj+aj+ri+hQ;break;case "=":aj=wj+hQ+aj+ri;break;case "^":aj=hQ.slice(0,oj=hQ.length>>1)+wj+aj+ri+hQ.slice(oj);break;default:aj=hQ+wj+aj+ri}return js(aj)}
ul=v6E(ul);var Mw=ul.fill,wo=ul.align,eY=ul.sign,xh=ul.symbol,sR=ul.zero,Yg=ul.width,P$=ul.comma,Dx=ul.precision,E9=ul.trim,Nt=ul.type;Nt==="n"?(P$=!0,Nt="g"):cPB[Nt]||(Dx==null&&(Dx=12),E9=!0,Nt="g");if(sR||Mw==="0"&&wo==="=")sR=!0,Mw="0",wo="=";var bA=xh==="$"?f[0]:xh==="#"&&/[boxX]/.test(Nt)?"0"+Nt.toLowerCase():"",N7=xh==="$"?f[1]:/[%p]/.test(Nt)?YJ:"",Pm=cPB[Nt],Fo=/[defgprs%]/.test(Nt);Dx=Dx==null?6:/[gprs]/.test(Nt)?Math.max(1,Math.min(21,Dx)):Math.max(0,Math.min(20,Dx));tq.toString=function(){return ul+
""};
return tq}
var r=I.grouping&&I.thousands?imi(I.grouping,I.thousands):Q9B,f=I.currency,oV=I.decimal,js=I.numerals?Loa(I.numerals):Q9B,YJ=I.percent||"%";return{format:Q,formatPrefix:function(ul,tq){var Mw=Q((ul=v6E(ul),ul.type="f",ul));ul=Math.max(-8,Math.min(8,Math.floor(RrQ(tq)/3)))*3;var wo=Math.pow(10,-ul),eY=IBz[8+ul/3];return function(xh){return Mw(wo*xh)+eY}}}}
function eU(){this.reset()}
function pFq(I,Q,r){var f=I.s=Q+r,oV=f-Q;I.t=Q-(f-oV)+(r-oV)}
function nxw(I){return I>1?qM:I<-1?-qM:Math.asin(I)}
function lZQ(){}
function rP4(I){var Q=I[0];I=I[1];var r=CV(I);return[r*CV(Q),r*gV(Q),gV(I)]}
function Nzo(I,Q){return[I[1]*Q[2]-I[2]*Q[1],I[2]*Q[0]-I[0]*Q[2],I[0]*Q[1]-I[1]*Q[0]]}
function PgJ(I){var Q=VHl(I[0]*I[0]+I[1]*I[1]+I[2]*I[2]);I[0]/=Q;I[1]/=Q;I[2]/=Q}
function xD4(){var I=[],Q;return{point:function(r,f){Q.push([r,f])},
lineStart:function(){I.push(Q=[])},
lineEnd:lZQ,rejoin:function(){I.length>1&&I.push(I.pop().concat(I.shift()))},
result:function(){var r=I;I=[];Q=null;return r}}}
function bs_(I,Q,r,f){this.x=I;this.z=Q;this.o=r;this.e=f;this.v=!1;this.n=this.p=null}
function fZr(I,Q,r,f,oV){var js=[],YJ=[];I.forEach(function(eY){if(!((xh=eY.length-1)<=0)){var xh,sR=eY[0],Yg=eY[xh],P$=sR;if(uR(P$[0]-Yg[0])<1E-6&&uR(P$[1]-Yg[1])<1E-6){oV.lineStart();for(ul=0;ul<xh;++ul)oV.point((sR=eY[ul])[0],sR[1]);oV.lineEnd()}else js.push(xh=new bs_(sR,eY,null,!0)),YJ.push(xh.o=new bs_(sR,null,xh,!1)),js.push(xh=new bs_(Yg,eY,null,!1)),YJ.push(xh.o=new bs_(Yg,null,xh,!0))}});
if(js.length){YJ.sort(Q);Enh(js);Enh(YJ);var ul=0;for(I=YJ.length;ul<I;++ul)YJ[ul].e=r=!r;r=js[0];for(var tq;;){for(var Mw=r,wo=!0;Mw.v;)if((Mw=Mw.n)===r)return;Q=Mw.z;oV.lineStart();do{Mw.v=Mw.o.v=!0;if(Mw.e){if(wo)for(ul=0,I=Q.length;ul<I;++ul)oV.point((tq=Q[ul])[0],tq[1]);else f(Mw.x,Mw.n.x,1,oV);Mw=Mw.n}else{if(wo)for(Q=Mw.p.z,ul=Q.length-1;ul>=0;--ul)oV.point((tq=Q[ul])[0],tq[1]);else f(Mw.x,Mw.p.x,-1,oV);Mw=Mw.p}Mw=Mw.o;Q=Mw.z;wo=!wo}while(!Mw.v);oV.lineEnd()}}}
function Enh(I){if(Q=I.length){for(var Q,r=0,f=I[0],oV;++r<Q;)f.n=oV=I[r],oV.p=f,f=oV;f.n=oV=I[0];oV.p=f}}
function MtH(I){return I.length>1}
function X3a(I,Q){return((I=I.x)[0]<0?I[1]-qM-1E-6:qM-I[1])-((Q=Q.x)[0]<0?Q[1]-qM-1E-6:qM-Q[1])}
function lGh(){}
function UPS(I){return function(Q,r){var f=CV(Q),oV=CV(r);f=I(f*oV);return[f*oV*gV(Q),f*gV(r)]}}
function yd(I){return function(Q,r){var f=VHl(Q*Q+r*r),oV=I(f),js=gV(oV);oV=CV(oV);return[mPh(Q*js,f*oV),nxw(f&&r*js/f)]}}
function $NB(I){var Q=0,r=I.children,f=r&&r.length;if(f)for(;--f>=0;)Q+=r[f].value;else Q=1;I.value=Q}
function ROP(I,Q){var r=new wU(I);I=+I.value&&(r.value=I.value);var f,oV=[r],js,YJ,ul,tq;for(Q==null&&(Q=tIT);f=oV.pop();)if(I&&(f.value=+f.data.value),(YJ=Q(f.data))&&(tq=YJ.length))for(f.children=Array(tq),ul=tq-1;ul>=0;--ul)oV.push(js=f.children[ul]=new wU(YJ[ul])),js.parent=f,js.depth=f.depth+1;return r.eachBefore(G_i)}
function tIT(I){return I.children}
function y0H(I){I.data=I.data.data}
function G_i(I){var Q=0;do I.height=Q;while((I=I.parent)&&I.height<++Q)}
function wU(I){this.data=I;this.depth=this.height=0;this.parent=null}
function zi(I,Q,r,f){function oV(js){return I(js=new Date(+js)),js}
oV.floor=oV;oV.ceil=function(js){return I(js=new Date(js-1)),Q(js,1),I(js),js};
oV.round=function(js){var YJ=oV(js),ul=oV.ceil(js);return js-YJ<ul-js?YJ:ul};
oV.offset=function(js,YJ){return Q(js=new Date(+js),YJ==null?1:Math.floor(YJ)),js};
oV.range=function(js,YJ,ul){var tq=[],Mw;js=oV.ceil(js);ul=ul==null?1:Math.floor(ul);if(!(js<YJ&&ul>0))return tq;do tq.push(Mw=new Date(+js)),Q(js,ul),I(js);while(Mw<js&&js<YJ);return tq};
oV.filter=function(js){return zi(function(YJ){if(YJ>=YJ)for(;I(YJ),!js(YJ);)YJ.setTime(YJ-1)},function(YJ,ul){if(YJ>=YJ)if(ul<0)for(;++ul<=0;)for(;Q(YJ,-1),!js(YJ););
else for(;--ul>=0;)for(;Q(YJ,1),!js(YJ););})};
r&&(oV.count=function(js,YJ){xWw.setTime(+js);fGE.setTime(+YJ);I(xWw);I(fGE);return Math.floor(r(xWw,fGE))},oV.every=function(js){js=Math.floor(js);
return isFinite(js)&&js>0?js>1?oV.filter(f?function(YJ){return f(YJ)%js===0}:function(YJ){return oV.count(0,YJ)%js===0}):oV:null});
return oV}
function qK(I){return zi(function(Q){Q.setDate(Q.getDate()-(Q.getDay()+7-I)%7);Q.setHours(0,0,0,0)},function(Q,r){Q.setDate(Q.getDate()+r*7)},function(Q,r){return(r-Q-(r.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/6048E5})}
function Ck(I){return zi(function(Q){Q.setUTCDate(Q.getUTCDate()-(Q.getUTCDay()+7-I)%7);Q.setUTCHours(0,0,0,0)},function(Q,r){Q.setUTCDate(Q.getUTCDate()+r*7)},function(Q,r){return(r-Q)/6048E5})}
function w3R(I){if(0<=I.y&&I.y<100){var Q=new Date(-1,I.m,I.d,I.H,I.M,I.S,I.L);Q.setFullYear(I.y);return Q}return new Date(I.y,I.m,I.d,I.H,I.M,I.S,I.L)}
function kA6(I){if(0<=I.y&&I.y<100){var Q=new Date(Date.UTC(-1,I.m,I.d,I.H,I.M,I.S,I.L));Q.setUTCFullYear(I.y);return Q}return new Date(Date.UTC(I.y,I.m,I.d,I.H,I.M,I.S,I.L))}
function zk(I){return{y:I,m:0,d:1,H:0,M:0,S:0,L:0}}
function zFQ(I){function Q(ri,jB){return function(oj){var hQ=[],Ua=-1,q_=0,U9=ri.length,ou,GQ;for(oj instanceof Date||(oj=new Date(+oj));++Ua<U9;)if(ri.charCodeAt(Ua)===37){hQ.push(ri.slice(q_,Ua));(q_=ico[ou=ri.charAt(++Ua)])!=null?ou=ri.charAt(++Ua):q_=ou==="e"?" ":"0";if(GQ=jB[ou])ou=GQ(oj,q_);hQ.push(ou);q_=Ua+1}hQ.push(ri.slice(q_,Ua));return hQ.join("")}}
function r(ri,jB){return function(oj){var hQ=zk(1900);if(f(hQ,ri,oj,0)!=oj.length)return null;if("Q"in hQ)return new Date(hQ.Q);"p"in hQ&&(hQ.H=hQ.H%12+hQ.p*12);if("V"in hQ){if(hQ.V<1||hQ.V>53)return null;"w"in hQ||(hQ.w=1);if("Z"in hQ){oj=kA6(zk(hQ.y));var Ua=oj.getUTCDay();oj=Ua>4||Ua===0?MTl.ceil(oj):MTl(oj);oj=LYh.offset(oj,(hQ.V-1)*7);hQ.y=oj.getUTCFullYear();hQ.m=oj.getUTCMonth();hQ.d=oj.getUTCDate()+(hQ.w+6)%7}else oj=jB(zk(hQ.y)),Ua=oj.getDay(),oj=Ua>4||Ua===0?XrV.ceil(oj):XrV(oj),oj=vne.offset(oj,
(hQ.V-1)*7),hQ.y=oj.getFullYear(),hQ.m=oj.getMonth(),hQ.d=oj.getDate()+(hQ.w+6)%7}else if("W"in hQ||"U"in hQ)"w"in hQ||(hQ.w="u"in hQ?hQ.u%7:"W"in hQ?1:0),Ua="Z"in hQ?kA6(zk(hQ.y)).getUTCDay():jB(zk(hQ.y)).getDay(),hQ.m=0,hQ.d="W"in hQ?(hQ.w+6)%7+hQ.W*7-(Ua+5)%7:hQ.w+hQ.U*7-(Ua+6)%7;return"Z"in hQ?(hQ.H+=hQ.Z/100|0,hQ.M+=hQ.Z%100,kA6(hQ)):jB(hQ)}}
function f(ri,jB,oj,hQ){for(var Ua=0,q_=jB.length,U9=oj.length,ou;Ua<q_;){if(hQ>=U9)return-1;ou=jB.charCodeAt(Ua++);if(ou===37){if(ou=jB.charAt(Ua++),ou=wj[ou in ico?jB.charAt(Ua++):ou],!ou||(hQ=ou(ri,oj,hQ))<0)return-1}else if(ou!=oj.charCodeAt(hQ++))return-1}return hQ}
var oV=I.dateTime,js=I.date,YJ=I.time,ul=I.periods,tq=I.days,Mw=I.shortDays,wo=I.months,eY=I.shortMonths,xh=Hd(ul),sR=oB(ul),Yg=Hd(tq),P$=oB(tq),Dx=Hd(Mw),E9=oB(Mw),Nt=Hd(wo),bA=oB(wo),N7=Hd(eY),Pm=oB(eY),Fo={a:function(ri){return Mw[ri.getDay()]},
A:function(ri){return tq[ri.getDay()]},
b:function(ri){return eY[ri.getMonth()]},
B:function(ri){return wo[ri.getMonth()]},
c:null,d:aBt,e:aBt,f:HBR,H:ori,I:J0N,j:B_N,L:lBo,m:nrN,M:VIB,p:function(ri){return ul[+(ri.getHours()>=12)]},
Q:xPh,s:fBY,S:bB2,u:k_Q,U:dNH,V:eFq,w:jxa,W:grN,x:null,X:null,y:FQr,Y:T_N,Z:A0B,"%":MOz},aj={a:function(ri){return Mw[ri.getUTCDay()]},
A:function(ri){return tq[ri.getUTCDay()]},
b:function(ri){return eY[ri.getUTCMonth()]},
B:function(ri){return wo[ri.getUTCMonth()]},
c:null,d:XNq,e:XNq,f:YCR,H:sxi,I:DNH,j:SCq,L:$WP,m:hFB,M:ZBB,p:function(ri){return ul[+(ri.getUTCHours()>=12)]},
Q:xPh,s:fBY,S:qCi,u:CSB,U:KQV,V:OBv,w:uXr,W:Qxv,x:null,X:null,y:IbT,Y:WQH,Z:c0r,"%":MOz},wj={a:function(ri,jB,oj){return(jB=Dx.exec(jB.slice(oj)))?(ri.w=E9[jB[0].toLowerCase()],oj+jB[0].length):-1},
A:function(ri,jB,oj){return(jB=Yg.exec(jB.slice(oj)))?(ri.w=P$[jB[0].toLowerCase()],oj+jB[0].length):-1},
b:function(ri,jB,oj){return(jB=N7.exec(jB.slice(oj)))?(ri.m=Pm[jB[0].toLowerCase()],oj+jB[0].length):-1},
B:function(ri,jB,oj){return(jB=Nt.exec(jB.slice(oj)))?(ri.m=bA[jB[0].toLowerCase()],oj+jB[0].length):-1},
c:function(ri,jB,oj){return f(ri,oV,jB,oj)},
d:tTq,e:tTq,f:p3v,H:GmR,I:GmR,j:r0V,L:N_H,m:PSV,M:ErQ,p:function(ri,jB,oj){return(jB=xh.exec(jB.slice(oj)))?(ri.p=sR[jB[0].toLowerCase()],oj+jB[0].length):-1},
Q:UNH,s:mNi,S:RFv,u:iBa,U:LQV,V:vra,w:aba,W:lba,x:function(ri,jB,oj){return f(ri,js,jB,oj)},
X:function(ri,jB,oj){return f(ri,YJ,jB,oj)},
y:xNT,Y:fbR,Z:MI2,"%":XMQ};Fo.x=Q(js,Fo);Fo.X=Q(YJ,Fo);Fo.c=Q(oV,Fo);aj.x=Q(js,aj);aj.X=Q(YJ,aj);aj.c=Q(oV,aj);return{format:function(ri){var jB=Q(ri,Fo);jB.toString=function(){return ri};
return jB},
parse:function(ri){var jB=r(ri,w3R);jB.toString=function(){return ri};
return jB},
utcFormat:function(ri){var jB=Q(ri,aj);jB.toString=function(){return ri};
return jB},
utcParse:function(ri){var jB=r(ri,kA6);jB.toString=function(){return ri};
return jB}}}
function eg(I,Q,r){var f=I<0?"-":"";I=(f?-I:I)+"";var oV=I.length;return f+(oV<r?Array(r-oV+1).join(Q)+I:I)}
function $0r(I){return I.replace(tfR,"\\$&")}
function Hd(I){return new RegExp("^(?:"+I.map($0r).join("|")+")","i")}
function oB(I){for(var Q={},r=-1,f=I.length;++r<f;)Q[I[r].toLowerCase()]=r;return Q}
function aba(I,Q,r){return(Q=k0.exec(Q.slice(r,r+1)))?(I.w=+Q[0],r+Q[0].length):-1}
function iBa(I,Q,r){return(Q=k0.exec(Q.slice(r,r+1)))?(I.u=+Q[0],r+Q[0].length):-1}
function LQV(I,Q,r){return(Q=k0.exec(Q.slice(r,r+2)))?(I.U=+Q[0],r+Q[0].length):-1}
function vra(I,Q,r){return(Q=k0.exec(Q.slice(r,r+2)))?(I.V=+Q[0],r+Q[0].length):-1}
function lba(I,Q,r){return(Q=k0.exec(Q.slice(r,r+2)))?(I.W=+Q[0],r+Q[0].length):-1}
function fbR(I,Q,r){return(Q=k0.exec(Q.slice(r,r+4)))?(I.y=+Q[0],r+Q[0].length):-1}
function xNT(I,Q,r){return(Q=k0.exec(Q.slice(r,r+2)))?(I.y=+Q[0]+(+Q[0]>68?1900:2E3),r+Q[0].length):-1}
function MI2(I,Q,r){return(Q=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Q.slice(r,r+6)))?(I.Z=Q[1]?0:-(Q[2]+(Q[3]||"00")),r+Q[0].length):-1}
function PSV(I,Q,r){return(Q=k0.exec(Q.slice(r,r+2)))?(I.m=Q[0]-1,r+Q[0].length):-1}
function tTq(I,Q,r){return(Q=k0.exec(Q.slice(r,r+2)))?(I.d=+Q[0],r+Q[0].length):-1}
function r0V(I,Q,r){return(Q=k0.exec(Q.slice(r,r+3)))?(I.m=0,I.d=+Q[0],r+Q[0].length):-1}
function GmR(I,Q,r){return(Q=k0.exec(Q.slice(r,r+2)))?(I.H=+Q[0],r+Q[0].length):-1}
function ErQ(I,Q,r){return(Q=k0.exec(Q.slice(r,r+2)))?(I.M=+Q[0],r+Q[0].length):-1}
function RFv(I,Q,r){return(Q=k0.exec(Q.slice(r,r+2)))?(I.S=+Q[0],r+Q[0].length):-1}
function N_H(I,Q,r){return(Q=k0.exec(Q.slice(r,r+3)))?(I.L=+Q[0],r+Q[0].length):-1}
function p3v(I,Q,r){return(Q=k0.exec(Q.slice(r,r+6)))?(I.L=Math.floor(Q[0]/1E3),r+Q[0].length):-1}
function XMQ(I,Q,r){return(I=GQr.exec(Q.slice(r,r+1)))?r+I[0].length:-1}
function UNH(I,Q,r){return(Q=k0.exec(Q.slice(r)))?(I.Q=+Q[0],r+Q[0].length):-1}
function mNi(I,Q,r){return(Q=k0.exec(Q.slice(r)))?(I.Q=+Q[0]*1E3,r+Q[0].length):-1}
function aBt(I,Q){return eg(I.getDate(),Q,2)}
function ori(I,Q){return eg(I.getHours(),Q,2)}
function J0N(I,Q){return eg(I.getHours()%12||12,Q,2)}
function B_N(I,Q){return eg(1+vne.count(Xw(I),I),Q,3)}
function lBo(I,Q){return eg(I.getMilliseconds(),Q,3)}
function HBR(I,Q){return lBo(I,Q)+"000"}
function nrN(I,Q){return eg(I.getMonth()+1,Q,2)}
function VIB(I,Q){return eg(I.getMinutes(),Q,2)}
function bB2(I,Q){return eg(I.getSeconds(),Q,2)}
function k_Q(I){I=I.getDay();return I===0?7:I}
function dNH(I,Q){return eg(yZH.count(Xw(I),I),Q,2)}
function eFq(I,Q){var r=I.getDay();I=r>=4||r===0?$4w(I):$4w.ceil(I);return eg($4w.count(Xw(I),I)+(Xw(I).getDay()===4),Q,2)}
function jxa(I){return I.getDay()}
function grN(I,Q){return eg(XrV.count(Xw(I),I),Q,2)}
function FQr(I,Q){return eg(I.getFullYear()%100,Q,2)}
function T_N(I,Q){return eg(I.getFullYear()%1E4,Q,4)}
function A0B(I){I=I.getTimezoneOffset();return(I>0?"-":(I*=-1,"+"))+eg(I/60|0,"0",2)+eg(I%60,"0",2)}
function XNq(I,Q){return eg(I.getUTCDate(),Q,2)}
function sxi(I,Q){return eg(I.getUTCHours(),Q,2)}
function DNH(I,Q){return eg(I.getUTCHours()%12||12,Q,2)}
function SCq(I,Q){return eg(1+LYh.count($c(I),I),Q,3)}
function $WP(I,Q){return eg(I.getUTCMilliseconds(),Q,3)}
function YCR(I,Q){return $WP(I,Q)+"000"}
function hFB(I,Q){return eg(I.getUTCMonth()+1,Q,2)}
function ZBB(I,Q){return eg(I.getUTCMinutes(),Q,2)}
function qCi(I,Q){return eg(I.getUTCSeconds(),Q,2)}
function CSB(I){I=I.getUTCDay();return I===0?7:I}
function KQV(I,Q){return eg(wMa.count($c(I),I),Q,2)}
function OBv(I,Q){var r=I.getUTCDay();I=r>=4||r===0?tVG(I):tVG.ceil(I);return eg(tVG.count($c(I),I)+($c(I).getUTCDay()===4),Q,2)}
function uXr(I){return I.getUTCDay()}
function Qxv(I,Q){return eg(MTl.count($c(I),I),Q,2)}
function IbT(I,Q){return eg(I.getUTCFullYear()%100,Q,2)}
function WQH(I,Q){return eg(I.getUTCFullYear()%1E4,Q,4)}
function c0r(){return"+0000"}
function MOz(){return"%"}
function xPh(I){return+I}
function fBY(I){return Math.floor(+I/1E3)}
function kT(I){for(var Q=I.length/6|0,r=Array(Q),f=0;f<Q;)r[f]="#"+I.slice(f*6,++f*6);return r}
function m6(I){return zUH(I[I.length-1])}
function dJs(I){var Q=I.length;return function(r){return I[Math.max(0,Math.min(Q-1,Math.floor(r*Q)))]}}
function y_o(I){this._context=I}
function wNh(I){this._curve=I}
function zTR(I,Q,r){var f=I._x1-I._x0;Q-=I._x1;var oV=(I._y1-I._y0)/(f||Q<0&&-0);I=(r-I._y1)/(Q||f<0&&-0);return((oV<0?-1:1)+(I<0?-1:1))*Math.min(Math.abs(oV),Math.abs(I),.5*Math.abs((oV*Q+I*f)/(f+Q)))||0}
function HuB(I,Q){var r=I._x1-I._x0;return r?(3*(I._y1-I._y0)/r-Q)/2:Q}
function Gws(I,Q,r){var f=I._x0,oV=I._x1,js=I._y1,YJ=(oV-f)/3;I._context.bezierCurveTo(f+YJ,I._y0+YJ*Q,oV-YJ,js-YJ*r,oV,js)}
function yCv(I){this._context=I}
function o6q(I){this._context=I}
function JN(I,Q,r){this.k=I;this.x=Q;this.y=r}
(function(I){I.length===1&&(I=t(I));return{left:function(Q,r,f,oV){f==null&&(f=0);oV==null&&(oV=Q.length);for(;f<oV;){var js=f+oV>>>1;I(Q[js],r)<0?f=js+1:oV=js}return f},
right:function(Q,r,f,oV){f==null&&(f=0);oV==null&&(oV=Q.length);for(;f<oV;){var js=f+oV>>>1;I(Q[js],r)>0?oV=js:f=js+1}return f}}})(X);
var MaR={value:function(){}};
y.prototype=G.prototype={constructor:y,on:function(I,Q){var r=this._,f=w(I+"",r),oV,js=-1,YJ=f.length;if(arguments.length<2)for(;++js<YJ;){var ul;if(ul=oV=(I=f[js]).type){a:{ul=r[oV];for(var tq=0,Mw=ul.length;tq<Mw;++tq)if((oV=ul[tq]).name===I.name){oV=oV.value;break a}oV=void 0}ul=oV}if(ul)return oV}else{if(Q!=null&&typeof Q!=="function")throw Error("ye`"+Q);for(;++js<YJ;)if(oV=(I=f[js]).type)r[oV]=z(r[oV],I.name,Q);else if(Q==null)for(oV in r)r[oV]=z(r[oV],I.name,null);return this}},
copy:function(){var I={},Q=this._,r;for(r in Q)I[r]=Q[r].slice();return new y(I)},
call:function(I,Q){if((oV=arguments.length-2)>0)for(var r=Array(oV),f=0,oV,js;f<oV;++f)r[f]=arguments[f+2];if(!this._.hasOwnProperty(I))throw Error("se`"+I);js=this._[I];f=0;for(oV=js.length;f<oV;++f)js[f].value.apply(Q,r)},
apply:function(I,Q,r){if(!this._.hasOwnProperty(I))throw Error("se`"+I);I=this._[I];for(var f=0,oV=I.length;f<oV;++f)I[f].value.apply(Q,r)}};
var Zw={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/"},J_h=function(I){return function(){return this.matches(I)}};
if(typeof document!=="undefined"){var Bd=document.documentElement;if(!Bd.matches){var Heq=Bd.webkitMatchesSelector||Bd.msMatchesSelector||Bd.mozMatchesSelector||Bd.oMatchesSelector;J_h=function(I){return function(){return Heq.call(this,I)}}}}var Bv4=J_h;
D.prototype={constructor:D,appendChild:function(I){return this._parent.insertBefore(I,this._next)},
insertBefore:function(I,Q){return this._parent.insertBefore(I,Q)},
querySelector:function(I){return this._parent.querySelector(I)},
querySelectorAll:function(I){return this._parent.querySelectorAll(I)}};
var bct={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(bct={mouseenter:"mouseover",mouseleave:"mouseout"}));var XBR=[null];lJ.prototype=kV.prototype={constructor:lJ,select:function(I){typeof I!=="function"&&(I=F(I));for(var Q=this._groups,r=Q.length,f=Array(r),oV=0;oV<r;++oV)for(var js=Q[oV],YJ=js.length,ul=f[oV]=Array(YJ),tq,Mw,wo=0;wo<YJ;++wo)(tq=js[wo])&&(Mw=I.call(tq,tq.__data__,wo,js))&&("__data__"in tq&&(Mw.__data__=tq.__data__),ul[wo]=Mw);return new lJ(f,this._parents)},
filter:function(I){typeof I!=="function"&&(I=Bv4(I));for(var Q=this._groups,r=Q.length,f=Array(r),oV=0;oV<r;++oV)for(var js=Q[oV],YJ=js.length,ul=f[oV]=[],tq,Mw=0;Mw<YJ;++Mw)(tq=js[Mw])&&I.call(tq,tq.__data__,Mw,js)&&ul.push(tq);return new lJ(f,this._parents)},
data:function(I,Q){if(!I)return sR=Array(this.size()),Mw=-1,this.each(function(Nt){sR[++Mw]=Nt}),sR;
var r=Q?W:u,f=this._parents,oV=this._groups;typeof I!=="function"&&(I=h(I));for(var js=oV.length,YJ=Array(js),ul=Array(js),tq=Array(js),Mw=0;Mw<js;++Mw){var wo=f[Mw],eY=oV[Mw],xh=eY.length,sR=I.call(wo,wo&&wo.__data__,Mw,f),Yg=sR.length,P$=ul[Mw]=Array(Yg),Dx=YJ[Mw]=Array(Yg);xh=tq[Mw]=Array(xh);r(wo,eY,P$,Dx,xh,sR,Q);eY=wo=0;for(var E9;wo<Yg;++wo)if(xh=P$[wo]){for(wo>=eY&&(eY=wo+1);!(E9=Dx[eY])&&++eY<Yg;);xh._next=E9||null}}YJ=new lJ(YJ,f);YJ._enter=ul;YJ._exit=tq;return YJ},
enter:function(){return new lJ(this._enter||this._groups.map(T),this._parents)},
exit:function(){return new lJ(this._exit||this._groups.map(T),this._parents)},
merge:function(I){var Q=this._groups;I=I._groups;for(var r=Q.length,f=Math.min(r,I.length),oV=Array(r),js=0;js<f;++js)for(var YJ=Q[js],ul=I[js],tq=YJ.length,Mw=oV[js]=Array(tq),wo,eY=0;eY<tq;++eY)if(wo=YJ[eY]||ul[eY])Mw[eY]=wo;for(;js<r;++js)oV[js]=Q[js];return new lJ(oV,this._parents)},
order:function(){for(var I=this._groups,Q=-1,r=I.length;++Q<r;)for(var f=I[Q],oV=f.length-1,js=f[oV],YJ;--oV>=0;)if(YJ=f[oV])js&&js!==YJ.nextSibling&&js.parentNode.insertBefore(YJ,js),js=YJ;return this},
sort:function(I){function Q(eY,xh){return eY&&xh?I(eY.__data__,xh.__data__):!eY-!xh}
I||(I=c);for(var r=this._groups,f=r.length,oV=Array(f),js=0;js<f;++js){for(var YJ=r[js],ul=YJ.length,tq=oV[js]=Array(ul),Mw,wo=0;wo<ul;++wo)if(Mw=YJ[wo])tq[wo]=Mw;tq.sort(Q)}return(new lJ(oV,this._parents)).order()},
call:function(){var I=arguments[0];arguments[0]=this;I.apply(null,arguments);return this},
nodes:function(){var I=Array(this.size()),Q=-1;this.each(function(){I[++Q]=this});
return I},
node:function(){for(var I=this._groups,Q=0,r=I.length;Q<r;++Q)for(var f=I[Q],oV=0,js=f.length;oV<js;++oV){var YJ=f[oV];if(YJ)return YJ}return null},
size:function(){var I=0;this.each(function(){++I});
return I},
empty:function(){return!this.node()},
each:function(I){for(var Q=this._groups,r=0,f=Q.length;r<f;++r)for(var oV=Q[r],js=0,YJ=oV.length,ul;js<YJ;++js)(ul=oV[js])&&I.call(ul,ul.__data__,js,oV);return this},
attr:function(I,Q){var r=B(I);if(arguments.length<2){var f=this.node();return r.local?f.getAttributeNS(r.space,r.local):f.getAttribute(r)}return this.each((Q==null?r.local?l:P:typeof Q==="function"?r.local?w6:x:r.local?L:R)(r,Q))},
style:function(I,Q,r){return arguments.length>1?this.each((Q==null?BY:typeof Q==="function"?Ss:kJ)(I,Q,r==null?"":r)):C_(this.node(),I)},
property:function(I,Q){return arguments.length>1?this.each((Q==null?Fv:typeof Q==="function"?cY:Uh)(I,Q)):this.node()[I]},
text:function(I){return arguments.length?this.each(I==null?f_:(typeof I==="function"?oq:sq)(I)):this.node().textContent},
html:function(I){return arguments.length?this.each(I==null?ll:(typeof I==="function"?kh:go)(I)):this.node().innerHTML},
append:function(I){var Q=typeof I==="function"?I:e(I);return this.select(function(){return this.appendChild(Q.apply(this,arguments))})},
insert:function(I,Q){var r=typeof I==="function"?I:e(I),f=Q==null?Aq:typeof Q==="function"?Q:F(Q);return this.select(function(){return this.insertBefore(r.apply(this,arguments),f.apply(this,arguments)||null)})},
remove:function(){return this.each(OR)},
clone:function(I){return this.select(I?HY:Mz)},
datum:function(I){return arguments.length?this.property("__data__",I):this.node().__data__},
on:function(I,Q,r){var f=gi(I+""),oV=f.length,js;if(arguments.length<2){var YJ=this.node().__on;if(YJ)for(var ul=0,tq=YJ.length,Mw;ul<tq;++ul){var wo=0;for(Mw=YJ[ul];wo<oV;++wo)if((js=f[wo]).type===Mw.type&&js.name===Mw.name)return Mw.value}}else{YJ=Q?Uq:TB;r==null&&(r=!1);for(wo=0;wo<oV;++wo)this.each(YJ(f[wo],Q,r));return this}},
dispatch:function(I,Q){return this.each((typeof Q==="function"?n4:XH)(I,Q))}};
var $DH=0;ZP.prototype=function(){return new ZP}.prototype={constructor:ZP,
get:function(I){for(var Q=this._;!(Q in I);)if(!(I=I.parentNode))return;return I[Q]},
set:function(I,Q){return I[this._]=Q},
remove:function(I){return this._ in I&&delete I[this._]},
toString:function(){return this._}};
var tx=1/.7,ttR=/^#([0-9a-f]{3})$/,Gvq=/^#([0-9a-f]{6})$/,yzr=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),wB2=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),zrH=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Hma=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*\\)$"),
oCV=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),JzN=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*\\)$"),k4h={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};
K4(nL,nT,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
K4(GY,c4,Tr(nL,{brighter:function(I){I=I==null?tx:Math.pow(tx,I);return new GY(this.r*I,this.g*I,this.b*I,this.opacity)},
darker:function(I){I=I==null?.7:Math.pow(.7,I);return new GY(this.r*I,this.g*I,this.b*I,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+yW(this.r)+yW(this.g)+yW(this.b)},
toString:function(){var I=this.opacity;I=isNaN(I)?1:Math.max(0,Math.min(1,I));return(I===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(I===1?")":", "+I+")")}}));
K4(W0,Wx,Tr(nL,{brighter:function(I){I=I==null?tx:Math.pow(tx,I);return new W0(this.h,this.s,this.l*I,this.opacity)},
darker:function(I){I=I==null?.7:Math.pow(.7,I);return new W0(this.h,this.s,this.l*I,this.opacity)},
rgb:function(){var I=this.h%360+(this.h<0)*360,Q=this.l,r=Q+(Q<.5?Q:1-Q)*(isNaN(I)||isNaN(this.s)?0:this.s);Q=2*Q-r;return new GY(Vr(I>=240?I-240:I+120,Q,r),Vr(I,Q,r),Vr(I<120?I+240:I-120,Q,r),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var dPJ=Math.PI/180,gnS=180/Math.PI,j9q=4/29,fx=6/29,eOo=3*fx*fx,Bxq=fx*fx*fx;K4(Df,function(I,Q,r,f){return arguments.length===1?em(I):new Df(I,Q,r,f==null?1:f)},Tr(nL,{brighter:function(I){return new Df(this.l+18*(I==null?1:I),this.a,this.b,this.opacity)},
darker:function(I){return new Df(this.l-18*(I==null?1:I),this.a,this.b,this.opacity)},
rgb:function(){var I=(this.l+16)/116,Q=isNaN(this.a)?I:I+this.a/500,r=isNaN(this.b)?I:I-this.b/200;Q=.96422*mE(Q);I=1*mE(I);r=.82521*mE(r);return new GY(Yh(3.1338561*Q-1.6168667*I-.4906146*r),Yh(-.9787684*Q+1.9161415*I+.033454*r),Yh(.0719453*Q-.2289914*I+1.4052427*r),this.opacity)}}));
K4(DP,AQ,Tr(nL,{brighter:function(I){return new DP(this.h,this.c,this.l+18*(I==null?1:I),this.opacity)},
darker:function(I){return new DP(this.h,this.c,this.l-18*(I==null?1:I),this.opacity)},
rgb:function(){return em(this).rgb()}}));
var FYq=1.78277*-.29227-.1347134789;K4(CT,F4,Tr(nL,{brighter:function(I){I=I==null?tx:Math.pow(tx,I);return new CT(this.h,this.s,this.l*I,this.opacity)},
darker:function(I){I=I==null?.7:Math.pow(.7,I);return new CT(this.h,this.s,this.l*I,this.opacity)},
rgb:function(){var I=isNaN(this.h)?0:(this.h+120)*dPJ,Q=+this.l,r=isNaN(this.s)?0:this.s*Q*(1-Q),f=Math.cos(I);I=Math.sin(I);return new GY(255*(Q+r*(-.14861*f+1.78277*I)),255*(Q+r*(-.29227*f+-.90649*I)),255*(Q+1.97294*f*r),this.opacity)}}));
var DPP=function r(Q){function f(js,YJ){var ul=oV((js=c4(js)).r,(YJ=c4(YJ)).r),tq=oV(js.g,YJ.g),Mw=oV(js.b,YJ.b),wo=G5(js.opacity,YJ.opacity);return function(eY){js.r=ul(eY);js.g=tq(eY);js.b=Mw(eY);js.opacity=wo(eY);return js+""}}
var oV=qV(Q);f.gamma=r;return f}(1),zUH=kl(function(Q){var r=Q.length-1;
return function(f){var oV=f<=0?f=0:f>=1?(f=1,r-1):Math.floor(f*r),js=Q[oV],YJ=Q[oV+1];return Fk((f-oV/r)*r,oV>0?Q[oV-1]:2*js-YJ,js,YJ,oV<r-1?Q[oV+2]:2*YJ-js)}});
kl(function(Q){var r=Q.length;return function(f){var oV=Math.floor(((f%=1)<0?++f:f)*r);return Fk((f-oV/r)*r,Q[(oV+r-1)%r],Q[oV%r],Q[(oV+1)%r],Q[(oV+2)%r])}});
var r_0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nvf=new RegExp(r_0.source,"g"),Tzo=180/Math.PI,wrE={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},nI,zos,n64,eZ_,o_H=H1(function(Q){if(Q==="none")return wrE;nI||(nI=document.createElement("DIV"),zos=document.documentElement,n64=document.defaultView);nI.style.transform=Q;Q=n64.getComputedStyle(zos.appendChild(nI),null).getPropertyValue("transform");zos.removeChild(nI);Q=Q.slice(7,-1).split(",");return bG(+Q[0],+Q[1],+Q[2],+Q[3],
+Q[4],+Q[5])},"px, ","px)","deg)"),JZi=H1(function(Q){if(Q==null)return wrE;
eZ_||(eZ_=document.createElementNS("http://www.w3.org/2000/svg","g"));eZ_.setAttribute("transform",Q);if(!(Q=eZ_.transform.baseVal.consolidate()))return wrE;Q=Q.matrix;return bG(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)},", ",")",")");
TY(p1);TY(G5);jm(p1);jm(G5);xE(p1);var Hvf=xE(G5),Mc=0,$p=0,Gk=0,Hsv,tN,zZ0=0,hX=0,wxY=0,X1=typeof performance==="object"&&performance.now?performance:Date,APh=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};
yV.prototype=$i.prototype={constructor:yV,restart:function(Q,r,f){if(typeof Q!=="function")throw new TypeError("ze");f=(f==null?GH():+f)+(r==null?0:+r);this._next||tN===this||(tN?tN._next=this:Hsv=this,tN=this);this._call=Q;this._time=f;Gn()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Gn())}};
var VtR=G("start","end","interrupt"),bmH=[],BBT=kV.prototype.constructor,VTq=0,Gd=kV.prototype;Ob.prototype=function(Q){return kV().transition(Q)}.prototype={constructor:Ob,
select:function(Q){var r=this._name,f=this._id;typeof Q!=="function"&&(Q=F(Q));for(var oV=this._groups,js=oV.length,YJ=Array(js),ul=0;ul<js;++ul)for(var tq=oV[ul],Mw=tq.length,wo=YJ[ul]=Array(Mw),eY,xh,sR=0;sR<Mw;++sR)(eY=tq[sR])&&(xh=Q.call(eY,eY.__data__,sR,tq))&&("__data__"in eY&&(xh.__data__=eY.__data__),wo[sR]=xh,Pjs(wo[sR],r,f,sR,wo,AJ(eY,f)));return new Ob(YJ,this._parents,r,f)},
filter:function(Q){typeof Q!=="function"&&(Q=Bv4(Q));for(var r=this._groups,f=r.length,oV=Array(f),js=0;js<f;++js)for(var YJ=r[js],ul=YJ.length,tq=oV[js]=[],Mw,wo=0;wo<ul;++wo)(Mw=YJ[wo])&&Q.call(Mw,Mw.__data__,wo,YJ)&&tq.push(Mw);return new Ob(oV,this._parents,this._name,this._id)},
merge:function(Q){if(Q._id!==this._id)throw Error();var r=this._groups;Q=Q._groups;for(var f=r.length,oV=Math.min(f,Q.length),js=Array(f),YJ=0;YJ<oV;++YJ)for(var ul=r[YJ],tq=Q[YJ],Mw=ul.length,wo=js[YJ]=Array(Mw),eY,xh=0;xh<Mw;++xh)if(eY=ul[xh]||tq[xh])wo[xh]=eY;for(;YJ<f;++YJ)js[YJ]=r[YJ];return new Ob(js,this._parents,this._name,this._id)},
selection:function(){return new BBT(this._groups,this._parents)},
transition:function(){for(var Q=this._name,r=this._id,f=++VTq,oV=this._groups,js=oV.length,YJ=0;YJ<js;++YJ)for(var ul=oV[YJ],tq=ul.length,Mw,wo=0;wo<tq;++wo)if(Mw=ul[wo]){var eY=AJ(Mw,r);Pjs(Mw,Q,f,wo,ul,{time:eY.time+eY.delay+eY.duration,delay:0,duration:eY.duration,ease:eY.ease})}return new Ob(oV,this._parents,Q,f)},
call:Gd.call,nodes:Gd.nodes,node:Gd.node,size:Gd.size,empty:Gd.empty,each:Gd.each,on:function(Q,r){var f=this._id;return arguments.length<2?AJ(this.node(),f).on.on(Q):this.each(Koq(f,Q,r))},
attr:function(Q,r){var f=B(Q),oV=f==="transform"?JZi:s9q;return this.attrTween(Q,typeof r==="function"?(f.local?Aza:TxT)(f,oV,UWv(this,"attr."+Q,r)):r==null?(f.local?jZB:erH)(f):(f.local?Fo2:gCQ)(f,oV,r+""))},
attrTween:function(Q,r){var f="attr."+Q;if(arguments.length<2)return(f=this.tween(f))&&f._value;if(r==null)return this.tween(f,null);if(typeof r!=="function")throw Error();var oV=B(Q);return this.tween(f,(oV.local?Y_i:sZ2)(oV,r))},
style:function(Q,r,f){var oV=Q==="transform"?o_H:s9q;return r==null?this.styleTween(Q,uLV(Q,oV)).on("end.style."+Q,QZH(Q)):this.styleTween(Q,typeof r==="function"?WoH(Q,oV,UWv(this,"style."+Q,r)):IZr(Q,oV,r+""),f)},
styleTween:function(Q,r,f){var oV="style."+Q;if(arguments.length<2)return(oV=this.tween(oV))&&oV._value;if(r==null)return this.tween(oV,null);if(typeof r!=="function")throw Error();return this.tween(oV,cz2(Q,r,f==null?"":f))},
text:function(Q){return this.tween("text",typeof Q==="function"?rzR(UWv(this,"text",Q)):pB2(Q==null?"":Q+""))},
remove:function(){return this.on("end.remove",OmV(this._id))},
tween:function(Q,r){var f=this._id;if(arguments.length<2){f=AJ(this.node(),f).tween;for(var oV=0,js=f.length,YJ;oV<js;++oV)if((YJ=f[oV]).name===Q)return YJ.value;return null}return this.each((r==null?kvv:dDr)(f,Q,r))},
delay:function(Q){var r=this._id;return arguments.length?this.each((typeof Q==="function"?DD4:S_4)(r,Q)):AJ(this.node(),r).delay},
duration:function(Q){var r=this._id;return arguments.length?this.each((typeof Q==="function"?hrV:ZmH)(r,Q)):AJ(this.node(),r).duration},
ease:function(Q){var r=this._id;return arguments.length?this.each(q_V(r,Q)):AJ(this.node(),r).ease}};
var oZv={time:null,delay:0,duration:250,ease:function(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}};
kV.prototype.transition=function(Q){var r;if(Q instanceof Ob){var f=Q._id;Q=Q._name}else f=++VTq,(r=oZv).time=GH(),Q=Q==null?null:Q+"";for(var oV=this._groups,js=oV.length,YJ=0;YJ<js;++YJ)for(var ul=oV[YJ],tq=ul.length,Mw,wo=0;wo<tq;++wo)if(Mw=ul[wo]){var eY=Mw,xh=Q,sR=f,Yg=wo,P$=ul,Dx;if(!(Dx=r))a:{Dx=void 0;for(var E9=f;!(Dx=Mw.__transition)||!(Dx=Dx[E9]);)if(!(Mw=Mw.parentNode)){Dx=(oZv.time=GH(),oZv);break a}}Pjs(eY,xh,sR,Yg,P$,Dx)}return new Ob(oV,this._parents,Q,f)};
["e","w"].map(mW0);["n","s"].map(mW0);"n e s w nw ne se sw".split(" ").map(mW0);RTv.prototype=function(){return new RTv}.prototype={constructor:RTv,
moveTo:function(Q,r){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+r)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(Q,r){this._+="L"+(this._x1=+Q)+","+(this._y1=+r)},
bezierCurveTo:function(Q,r,f,oV,js,YJ){this._+="C"+ +Q+","+ +r+","+ +f+","+ +oV+","+(this._x1=+js)+","+(this._y1=+YJ)},
rect:function(Q,r,f,oV){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+r)+"h"+ +f+"v"+ +oV+"h"+-f+"Z"},
toString:function(){return this._}};
oxv.prototype=SEq.prototype={constructor:oxv,has:function(Q){return" "+Q in this},
get:function(Q){return this[" "+Q]},
set:function(Q,r){this[" "+Q]=r;return this},
remove:function(Q){Q=" "+Q;return Q in this&&delete this[Q]},
clear:function(){for(var Q in this)Q[0]===" "&&delete this[Q]},
keys:function(){var Q=[],r;for(r in this)r[0]===" "&&Q.push(r.slice(1));return Q},
values:function(){var Q=[],r;for(r in this)r[0]===" "&&Q.push(this[r]);return Q},
entries:function(){var Q=[],r;for(r in this)r[0]===" "&&Q.push({key:r.slice(1),value:this[r]});return Q},
size:function(){var Q=0,r;for(r in this)r[0]===" "&&++Q;return Q},
empty:function(){for(var Q in this)if(Q[0]===" ")return!1;return!0},
each:function(Q){for(var r in this)r[0]===" "&&Q(this[r],r.slice(1),this)}};
var Kk=SEq.prototype;Jt0.prototype=function(Q,r){var f=new Jt0;if(Q instanceof Jt0)Q.each(function(YJ){f.add(YJ)});
else if(Q){var oV=-1,js=Q.length;if(r==null)for(;++oV<js;)f.add(Q[oV]);else for(;++oV<js;)f.add(r(Q[oV],oV,Q))}return f}.prototype={constructor:Jt0,
has:Kk.has,add:function(Q){this[" "+Q]=Q;return this},
remove:Kk.remove,clear:Kk.clear,values:Kk.keys,size:Kk.size,empty:Kk.empty,each:Kk.each};var qEJ={},iuV={},n_B=Zco(",").parse,VfQ=Zco("\t").parse;Cg4(n_B);Cg4(VfQ);var QY=function(Q,r,f){r=new L4Y(r==null?UDV:r,f==null?mDH:f,NaN,NaN,NaN,NaN);return Q==null?r:r.addAll(Q)}.prototype=L4Y.prototype;
QY.copy=function(){var Q=new L4Y(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root,f,oV;if(!r)return Q;if(!r.length)return Q._root=OcB(r),Q;for(f=[{source:r,target:Q._root=Array(4)}];r=f.pop();)for(var js=0;js<4;++js)if(oV=r.source[js])oV.length?f.push({source:oV,target:r.target[js]=Array(4)}):r.target[js]=OcB(oV);return Q};
QY.add=function(Q){var r=+this._x.call(null,Q),f=+this._y.call(null,Q);return KYJ(this.cover(r,f),r,f,Q)};
QY.addAll=function(Q){var r,f,oV=Q.length,js,YJ,ul=Array(oV),tq=Array(oV),Mw=Infinity,wo=Infinity,eY=-Infinity,xh=-Infinity;for(f=0;f<oV;++f)isNaN(js=+this._x.call(null,r=Q[f]))||isNaN(YJ=+this._y.call(null,r))||(ul[f]=js,tq[f]=YJ,js<Mw&&(Mw=js),js>eY&&(eY=js),YJ<wo&&(wo=YJ),YJ>xh&&(xh=YJ));eY<Mw&&(Mw=this._x0,eY=this._x1);xh<wo&&(wo=this._y0,xh=this._y1);this.cover(Mw,wo).cover(eY,xh);for(f=0;f<oV;++f)KYJ(this,ul[f],tq[f],Q[f]);return this};
QY.cover=function(Q,r){if(isNaN(Q=+Q)||isNaN(r=+r))return this;var f=this._x0,oV=this._y0,js=this._x1,YJ=this._y1;if(isNaN(f))js=(f=Math.floor(Q))+1,YJ=(oV=Math.floor(r))+1;else if(f>Q||Q>js||oV>r||r>YJ){var ul=js-f,tq=this._root,Mw;switch(Mw=(r<(oV+YJ)/2)<<1|Q<(f+js)/2){case 0:do{var wo=Array(4);wo[Mw]=tq;tq=wo}while(ul*=2,js=f+ul,YJ=oV+ul,Q>js||r>YJ);break;case 1:do wo=Array(4),wo[Mw]=tq,tq=wo;while(ul*=2,f=js-ul,YJ=oV+ul,f>Q||r>YJ);break;case 2:do wo=Array(4),wo[Mw]=tq,tq=wo;while(ul*=2,js=f+ul,
oV=YJ-ul,Q>js||oV>r);break;case 3:do wo=Array(4),wo[Mw]=tq,tq=wo;while(ul*=2,f=js-ul,oV=YJ-ul,f>Q||oV>r)}this._root&&this._root.length&&(this._root=tq)}else return this;this._x0=f;this._y0=oV;this._x1=js;this._y1=YJ;return this};
QY.data=function(){var Q=[];this.visit(function(r){if(!r.length){do Q.push(r.data);while(r=r.next)}});
return Q};
QY.extent=function(Q){return arguments.length?this.cover(+Q[0][0],+Q[0][1]).cover(+Q[1][0],+Q[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
QY.find=function(Q,r,f){var oV=this._x0,js=this._y0,YJ,ul,tq,Mw,wo=this._x1,eY=this._y1,xh=[],sR=this._root,Yg;sR&&xh.push(new ue(sR,oV,js,wo,eY));f==null?f=Infinity:(oV=Q-f,js=r-f,wo=Q+f,eY=r+f,f*=f);for(;Yg=xh.pop();)if(!(!(sR=Yg.node)||(YJ=Yg.x0)>wo||(ul=Yg.y0)>eY||(tq=Yg.x1)<oV||(Mw=Yg.y1)<js))if(sR.length){Yg=(YJ+tq)/2;var P$=(ul+Mw)/2;xh.push(new ue(sR[3],Yg,P$,tq,Mw),new ue(sR[2],YJ,P$,Yg,Mw),new ue(sR[1],Yg,ul,tq,P$),new ue(sR[0],YJ,ul,Yg,P$));if(sR=(r>=P$)<<1|Q>=Yg)Yg=xh[xh.length-1],xh[xh.length-
1]=xh[xh.length-1-sR],xh[xh.length-1-sR]=Yg}else if(Yg=Q-+this._x.call(null,sR.data),P$=r-+this._y.call(null,sR.data),Yg=Yg*Yg+P$*P$,Yg<f){var Dx=Math.sqrt(f=Yg);oV=Q-Dx;js=r-Dx;wo=Q+Dx;eY=r+Dx;Dx=sR.data}return Dx};
QY.remove=function(Q){if(isNaN(Mw=+this._x.call(null,Q))||isNaN(wo=+this._y.call(null,Q)))return this;var r,f=this._root,oV,js=this._x0,YJ=this._y0,ul=this._x1,tq=this._y1,Mw,wo,eY,xh,sR,Yg,P$;if(!f)return this;if(f.length)for(;;){(sR=Mw>=(eY=(js+ul)/2))?js=eY:ul=eY;(Yg=wo>=(xh=(YJ+tq)/2))?YJ=xh:tq=xh;if(!(r=f,f=f[P$=Yg<<1|sR]))return this;if(!f.length)break;if(r[P$+1&3]||r[P$+2&3]||r[P$+3&3]){var Dx=r;var E9=P$}}for(;f.data!==Q;)if(!(oV=f,f=f.next))return this;(Q=f.next)&&delete f.next;if(oV)return Q?
oV.next=Q:delete oV.next,this;if(!r)return this._root=Q,this;Q?r[P$]=Q:delete r[P$];(f=r[0]||r[1]||r[2]||r[3])&&f===(r[3]||r[2]||r[1]||r[0])&&!f.length&&(Dx?Dx[E9]=f:this._root=f);return this};
QY.removeAll=function(Q){for(var r=0,f=Q.length;r<f;++r)this.remove(Q[r]);return this};
QY.root=function(){return this._root};
QY.size=function(){var Q=0;this.visit(function(r){if(!r.length){do++Q;while(r=r.next)}});
return Q};
QY.visit=function(Q){var r=[],f,oV=this._root,js,YJ,ul,tq,Mw;for(oV&&r.push(new ue(oV,this._x0,this._y0,this._x1,this._y1));f=r.pop();)if(!Q(oV=f.node,YJ=f.x0,ul=f.y0,tq=f.x1,Mw=f.y1)&&oV.length){f=(YJ+tq)/2;var wo=(ul+Mw)/2;(js=oV[3])&&r.push(new ue(js,f,wo,tq,Mw));(js=oV[2])&&r.push(new ue(js,YJ,wo,f,Mw));(js=oV[1])&&r.push(new ue(js,f,ul,tq,wo));(js=oV[0])&&r.push(new ue(js,YJ,ul,f,wo))}};
QY.visitAfter=function(Q){var r=[],f=[],oV;for(this._root&&r.push(new ue(this._root,this._x0,this._y0,this._x1,this._y1));oV=r.pop();){var js=oV.node;if(js.length){var YJ,ul=oV.x0,tq=oV.y0,Mw=oV.x1,wo=oV.y1,eY=(ul+Mw)/2,xh=(tq+wo)/2;(YJ=js[0])&&r.push(new ue(YJ,ul,tq,eY,xh));(YJ=js[1])&&r.push(new ue(YJ,eY,tq,Mw,xh));(YJ=js[2])&&r.push(new ue(YJ,ul,xh,eY,wo));(YJ=js[3])&&r.push(new ue(YJ,eY,xh,Mw,wo))}f.push(oV)}for(;oV=f.pop();)Q(oV.node,oV.x0,oV.y0,oV.x1,oV.y1);return this};
QY.x=function(Q){return arguments.length?(this._x=Q,this):this._x};
QY.y=function(Q){return arguments.length?(this._y=Q,this):this._y};
var vCa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;v6E.prototype=aGf.prototype;aGf.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 WY4,cPB={"%":function(Q,r){return(Q*100).toFixed(r)},
b:function(Q){return Math.round(Q).toString(2)},
c:function(Q){return Q+""},
d:function(Q){return Math.round(Q).toString(10)},
e:function(Q,r){return Q.toExponential(r)},
f:function(Q,r){return Q.toFixed(r)},
g:function(Q,r){return Q.toPrecision(r)},
o:function(Q){return Math.round(Q).toString(8)},
p:function(Q,r){return ust(Q*100,r)},
r:ust,s:function(Q,r){var f=BwV(Q,r);if(!f)return Q+"";var oV=f[0];f=f[1];f=f-(WY4=Math.max(-8,Math.min(8,Math.floor(f/3)))*3)+1;var js=oV.length;return f===js?oV:f>js?oV+Array(f-js+1).join("0"):f>0?oV.slice(0,f)+"."+oV.slice(f):"0."+Array(1-f).join("0")+BwV(Q,Math.max(0,r+f-1))[0]},
X:function(Q){return Math.round(Q).toString(16).toUpperCase()},
x:function(Q){return Math.round(Q).toString(16)}},IBz="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),bei;
(function(Q){return bei=aZ2(Q)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});eU.prototype={constructor:eU,reset:function(){this.s=this.t=0},
add:function(Q){pFq(juE,Q,this.t);pFq(this,juE.s,this.s);this.s?this.t+=juE.t:this.s=juE.t},
valueOf:function(){return this.s}};
var juE=new eU,Cl=Math.PI,qM=Cl/2,buR=Cl/4,kQR=Cl*2,JCv=Cl/180,uR=Math.abs,BGG=Math.atan,mPh=Math.atan2,CV=Math.cos,gV=Math.sin,VHl=Math.sqrt;new eU;new eU;new eU;var nZv=new eU;(function(Q,r,f,oV){return function(js){function YJ(Pm,Fo){Q(Pm,Fo)&&js.point(Pm,Fo)}
function ul(Pm,Fo){sR.point(Pm,Fo)}
function tq(){N7.point=ul;sR.lineStart()}
function Mw(){N7.point=YJ;sR.lineEnd()}
function wo(Pm,Fo){bA.push([Pm,Fo]);P$.point(Pm,Fo)}
function eY(){P$.lineStart();bA=[]}
function xh(){wo(bA[0][0],bA[0][1]);P$.lineEnd();var Pm=P$.clean(),Fo=Yg.result(),aj=Fo.length,wj;bA.pop();E9.push(bA);bA=null;if(aj)if(Pm&1){if(aj=Fo[0],(Fo=aj.length-1)>0){Dx||(js.polygonStart(),Dx=!0);js.lineStart();for(Pm=0;Pm<Fo;++Pm)js.point((wj=aj[Pm])[0],wj[1]);js.lineEnd()}}else aj>1&&Pm&2&&Fo.push(Fo.pop().concat(Fo.shift())),Nt.push(Fo.filter(MtH))}
var sR=r(js),Yg=xD4(),P$=r(Yg),Dx=!1,E9,Nt,bA,N7={point:YJ,lineStart:tq,lineEnd:Mw,polygonStart:function(){N7.point=wo;N7.lineStart=eY;N7.lineEnd=xh;Nt=[];E9=[]},
polygonEnd:function(){N7.point=YJ;N7.lineStart=tq;N7.lineEnd=Mw;var Pm=Nt,Fo=Pm.length;var aj=-1;for(var wj=0,ri,jB;++aj<Fo;)wj+=Pm[aj].length;for(ri=Array(wj);--Fo>=0;)for(jB=Pm[Fo],aj=jB.length;--aj>=0;)ri[--wj]=jB[aj];Nt=ri;Pm=E9;Fo=oV[0];wj=oV[1];var oj=gV(wj);aj=[gV(Fo),-CV(Fo),0];jB=ri=0;nZv.reset();oj===1?wj=qM+1E-6:oj===-1&&(wj=-qM-1E-6);oj=0;for(var hQ=Pm.length;oj<hQ;++oj)if(q_=(Ua=Pm[oj]).length){var Ua,q_,U9=Ua[q_-1],ou=U9[0],GQ=U9[1]/2+buR,gx_=gV(GQ),kmR=CV(GQ);for(GQ=0;GQ<q_;++GQ,ou=
VVv,gx_=dWe,kmR=Vd,U9=FU0){var FU0=Ua[GQ],VVv=FU0[0];Vd=FU0[1]/2+buR;var dWe=gV(Vd),Vd=CV(Vd),y$=VVv-ou,bv0=y$>=0?1:-1,kwh=bv0*y$,Tww=kwh>Cl;gx_*=dWe;nZv.add(mPh(gx_*bv0*gV(kwh),kmR*Vd+gx_*CV(kwh)));ri+=Tww?y$+bv0*kQR:y$;Tww^ou>=Fo^VVv>=Fo&&(U9=Nzo(rP4(U9),rP4(FU0)),PgJ(U9),ou=Nzo(aj,U9),PgJ(ou),ou=(Tww^y$>=0?-1:1)*nxw(ou[2]),wj>ou||wj===ou&&(U9[0]||U9[1]))&&(jB+=Tww^y$>=0?1:-1)}}Pm=(ri<-1E-6||ri<1E-6&&nZv<-1E-6)^jB&1;Nt.length?(Dx||(js.polygonStart(),Dx=!0),fZr(Nt,X3a,Pm,f,js)):Pm&&(Dx||(js.polygonStart(),
Dx=!0),js.lineStart(),f(null,null,1,js),js.lineEnd());Dx&&(js.polygonEnd(),Dx=!1);Nt=E9=null},
sphere:function(){js.polygonStart();js.lineStart();f(null,null,1,js);js.lineEnd();js.polygonEnd()}};
return N7}})(function(){return!0},function(Q){var r=NaN,f=NaN,oV=NaN,js;
return{lineStart:function(){Q.lineStart();js=1},
point:function(YJ,ul){var tq=YJ>0?Cl:-Cl,Mw=uR(YJ-r);if(uR(Mw-Cl)<1E-6)Q.point(r,f=(f+ul)/2>0?qM:-qM),Q.point(oV,f),Q.lineEnd(),Q.lineStart(),Q.point(tq,f),Q.point(YJ,f),js=0;else if(oV!==tq&&Mw>=Cl){uR(r-oV)<1E-6&&(r-=oV*1E-6);uR(YJ-tq)<1E-6&&(YJ-=tq*1E-6);Mw=r;var wo=f,eY=YJ,xh,sR,Yg=gV(Mw-eY);f=uR(Yg)>1E-6?BGG((gV(wo)*(sR=CV(ul))*gV(eY)-gV(ul)*(xh=CV(wo))*gV(Mw))/(xh*sR*Yg)):(wo+ul)/2;Q.point(oV,f);Q.lineEnd();Q.lineStart();Q.point(tq,f);js=0}Q.point(r=YJ,f=ul);oV=tq},
lineEnd:function(){Q.lineEnd();r=f=NaN},
clean:function(){return 2-js}}},function(Q,r,f,oV){Q==null?(f*=qM,oV.point(-Cl,f),oV.point(0,f),oV.point(Cl,f),oV.point(Cl,0),oV.point(Cl,-f),oV.point(0,-f),oV.point(-Cl,-f),oV.point(-Cl,0),oV.point(-Cl,f)):uR(Q[0]-r[0])>1E-6?(Q=Q[0]<r[0]?Cl:-Cl,f=f*Q/2,oV.point(-Q,f),oV.point(0,f),oV.point(Q,f)):oV.point(r[0],r[1])},[-Cl,
-qM]);new eU;new eU;new eU;new eU;lGh.prototype={constructor:lGh,point:function(Q,r){this.stream.point(Q,r)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
CV(30*JCv);(function(Q){return function(r){var f=new lGh,oV;for(oV in Q)f[oV]=Q[oV];f.stream=r;return f}})({point:function(Q,r){this.stream.point(Q*JCv,r*JCv)}});
UPS(function(Q){return VHl(2/(1+Q))}).invert=yd(function(Q){return 2*nxw(Q/2)});
UPS(function(Q){return(Q=Q>1?0:Q<-1?Cl:Math.acos(Q))&&Q/gV(Q)}).invert=yd(function(Q){return Q});
VHl(3);yd(BGG);yd(nxw);yd(function(Q){return 2*BGG(Q)});
wU.prototype=ROP.prototype={constructor:wU,count:function(){return this.eachAfter($NB)},
each:function(Q){var r,f=[this],oV;do{var js=f.reverse();for(f=[];r=js.pop();)if(Q(r),r=r.children){var YJ=0;for(oV=r.length;YJ<oV;++YJ)f.push(r[YJ])}}while(f.length);return this},
eachAfter:function(Q){for(var r,f=[this],oV=[],js,YJ;r=f.pop();)if(oV.push(r),r=r.children)for(js=0,YJ=r.length;js<YJ;++js)f.push(r[js]);for(;r=oV.pop();)Q(r);return this},
eachBefore:function(Q){for(var r,f=[this],oV;r=f.pop();)if(Q(r),r=r.children)for(oV=r.length-1;oV>=0;--oV)f.push(r[oV]);return this},
sum:function(Q){return this.eachAfter(function(r){for(var f=+Q(r.data)||0,oV=r.children,js=oV&&oV.length;--js>=0;)f+=oV[js].value;r.value=f})},
sort:function(Q){return this.eachBefore(function(r){r.children&&r.children.sort(Q)})},
path:function(Q){var r=this;var f=r;var oV=Q;if(f!==oV){var js=f.ancestors(),YJ=oV.ancestors(),ul=null;f=js.pop();for(oV=YJ.pop();f===oV;)ul=f,f=js.pop(),oV=YJ.pop();f=ul}for(oV=[r];r!==f;)r=r.parent,oV.push(r);for(r=oV.length;Q!==f;)oV.splice(r,0,Q),Q=Q.parent;return oV},
ancestors:function(){for(var Q=this,r=[Q];Q=Q.parent;)r.push(Q);return r},
links:function(){var Q=this,r=[];Q.each(function(f){f!==Q&&r.push({source:f.parent,target:f})});
return r},
copy:function(){return ROP(this).eachBefore(y0H)}};
(function(Q,r){this._=Q;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=r}).prototype=Object.create(wU.prototype);
var xWw=new Date,fGE=new Date,eT4=zi(function(){},function(Q,r){Q.setTime(+Q+r)},function(Q,r){return r-Q});
eT4.every=function(Q){Q=Math.floor(Q);return isFinite(Q)&&Q>0?Q>1?zi(function(r){r.setTime(Math.floor(r/Q)*Q)},function(r,f){r.setTime(+r+f*Q)},function(r,f){return(f-r)/Q}):eT4:null};
zi(function(Q){Q.setTime(Math.floor(Q/1E3)*1E3)},function(Q,r){Q.setTime(+Q+r*1E3)},function(Q,r){return(r-Q)/1E3},function(Q){return Q.getUTCSeconds()});
zi(function(Q){Q.setTime(Math.floor(Q/6E4)*6E4)},function(Q,r){Q.setTime(+Q+r*6E4)},function(Q,r){return(r-Q)/6E4},function(Q){return Q.getMinutes()});
zi(function(Q){var r=Q.getTimezoneOffset()*6E4%36E5;r<0&&(r+=36E5);Q.setTime(Math.floor((+Q-r)/36E5)*36E5+r)},function(Q,r){Q.setTime(+Q+r*36E5)},function(Q,r){return(r-Q)/36E5},function(Q){return Q.getHours()});
var vne=zi(function(Q){Q.setHours(0,0,0,0)},function(Q,r){Q.setDate(Q.getDate()+r)},function(Q,r){return(r-Q-(r.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/864E5},function(Q){return Q.getDate()-1}),yZH=qK(0),XrV=qK(1);
qK(2);qK(3);var $4w=qK(4);qK(5);qK(6);zi(function(Q){Q.setDate(1);Q.setHours(0,0,0,0)},function(Q,r){Q.setMonth(Q.getMonth()+r)},function(Q,r){return r.getMonth()-Q.getMonth()+(r.getFullYear()-Q.getFullYear())*12},function(Q){return Q.getMonth()});
var Xw=zi(function(Q){Q.setMonth(0,1);Q.setHours(0,0,0,0)},function(Q,r){Q.setFullYear(Q.getFullYear()+r)},function(Q,r){return r.getFullYear()-Q.getFullYear()},function(Q){return Q.getFullYear()});
Xw.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?zi(function(r){r.setFullYear(Math.floor(r.getFullYear()/Q)*Q);r.setMonth(0,1);r.setHours(0,0,0,0)},function(r,f){r.setFullYear(r.getFullYear()+f*Q)}):null};
zi(function(Q){Q.setUTCSeconds(0,0)},function(Q,r){Q.setTime(+Q+r*6E4)},function(Q,r){return(r-Q)/6E4},function(Q){return Q.getUTCMinutes()});
zi(function(Q){Q.setUTCMinutes(0,0,0)},function(Q,r){Q.setTime(+Q+r*36E5)},function(Q,r){return(r-Q)/36E5},function(Q){return Q.getUTCHours()});
var LYh=zi(function(Q){Q.setUTCHours(0,0,0,0)},function(Q,r){Q.setUTCDate(Q.getUTCDate()+r)},function(Q,r){return(r-Q)/864E5},function(Q){return Q.getUTCDate()-1}),wMa=Ck(0),MTl=Ck(1);
Ck(2);Ck(3);var tVG=Ck(4);Ck(5);Ck(6);zi(function(Q){Q.setUTCDate(1);Q.setUTCHours(0,0,0,0)},function(Q,r){Q.setUTCMonth(Q.getUTCMonth()+r)},function(Q,r){return r.getUTCMonth()-Q.getUTCMonth()+(r.getUTCFullYear()-Q.getUTCFullYear())*12},function(Q){return Q.getUTCMonth()});
var $c=zi(function(Q){Q.setUTCMonth(0,1);Q.setUTCHours(0,0,0,0)},function(Q,r){Q.setUTCFullYear(Q.getUTCFullYear()+r)},function(Q,r){return r.getUTCFullYear()-Q.getUTCFullYear()},function(Q){return Q.getUTCFullYear()});
$c.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?zi(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/Q)*Q);r.setUTCMonth(0,1);r.setUTCHours(0,0,0,0)},function(r,f){r.setUTCFullYear(r.getUTCFullYear()+f*Q)}):null};
var ico={"-":"",_:" ",0:"0"},k0=/^\s*\d+/,GQr=/^%/,tfR=/[\\^$*+?|[\]().{}]/g,AtG;(function(Q){AtG=zFQ(Q);yS4=AtG.utcFormat;wk4=AtG.utcParse;return AtG})({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||yS4("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||wk4("%Y-%m-%dT%H:%M:%S.%LZ");kT("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
kT("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");kT("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");kT("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");kT("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");kT("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");kT("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
kT("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");kT("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");kT("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");kT("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");kT("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var d0r=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(kT);m6(d0r);var eUq=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(kT);m6(eUq);var jMH=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(kT);m6(jMH);var g_H=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(kT);
m6(g_H);var F24=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(kT);m6(F24);var TB2=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(kT);m6(TB2);var AZ4=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(kT);m6(AZ4);var Yti=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(kT);m6(Yti);var sMV=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(kT);m6(sMV);var D0i=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(kT);m6(D0i);var Stv=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(kT);m6(Stv);var hUR=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(kT);m6(hUR);var ZeR=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(kT);m6(ZeR);var qtr=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(kT);m6(qtr);var CYQ=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(kT);m6(CYQ);var K2q=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(kT);m6(K2q);var OeR=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(kT);m6(OeR);var ueN=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(kT);m6(ueN);var QMq=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(kT);m6(QMq);var I9V=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(kT);m6(I9V);var W2R=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(kT);m6(W2R);var cZa=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(kT);m6(cZa);var pM2=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(kT);m6(pM2);var rZH=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(kT);m6(rZH);var NBH=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(kT);m6(NBH);var PYq=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(kT);m6(PYq);var E_q=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(kT);m6(E_q);Hvf(F4(300,.5,0),F4(-240,.5,1));Hvf(F4(-100,.75,.35),F4(80,1.5,.8));Hvf(F4(260,.75,.35),F4(80,1.5,.8));F4();c4();dJs(kT("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
dJs(kT("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
dJs(kT("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
dJs(kT("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
y_o.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(Q,r){Q=+Q;r=+r;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,r):this._context.moveTo(Q,r);break;case 1:this._point=2;default:this._context.lineTo(Q,r)}}};
(function(Q){function r(f){return new wNh(Q(f))}
r._curve=Q;return r})(function(Q){return new y_o(Q)});
wNh.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(Q,r){this._curve.point(r*Math.sin(Q),r*-Math.cos(Q))}};
yCv.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:Gws(this,this._t0,HuB(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(Q,r){var f=NaN;Q=+Q;r=+r;if(Q!==this._x1||r!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,r):this._context.moveTo(Q,r);break;case 1:this._point=2;break;case 2:this._point=3;Gws(this,HuB(this,f=zTR(this,Q,r)),f);break;default:Gws(this,this._t0,f=zTR(this,Q,r))}this._x0=this._x1;this._x1=Q;this._y0=this._y1;this._y1=r;this._t0=f}}};
(function(Q){this._context=new o6q(Q)}.prototype=Object.create(yCv.prototype)).point=function(Q,r){yCv.prototype.point.call(this,r,Q)};
o6q.prototype={moveTo:function(Q,r){this._context.moveTo(r,Q)},
closePath:function(){this._context.closePath()},
lineTo:function(Q,r){this._context.lineTo(r,Q)},
bezierCurveTo:function(Q,r,f,oV,js,YJ){this._context.bezierCurveTo(r,Q,oV,f,YJ,js)}};
JN.prototype={constructor:JN,scale:function(Q){return Q===1?this:new JN(this.k*Q,this.x,this.y)},
translate:function(Q,r){return Q===0&r===0?this:new JN(this.k,this.x+this.k*Q,this.y+this.k*r)},
apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},
invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new JN(1,0,0);wcV=nT;Zw.svg=Zw.svg;Zw.xhtml=Zw.xhtml;Zw.xlink=Zw.xlink;Zw.xml=Zw.xml;Zw.xmlns=Zw.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 zIz="hammer_"+(Math.random()*1E6|0),H5J=function(){var X=document||document;if(!X[zIz]){var t=function(){(function(G,y,w,z){function B(Df,p_,mE){return setTimeout(T(Df,mE),p_)}
function V(Df,p_,mE){return Array.isArray(Df)?(b(Df,mE[p_],mE),!0):!1}
function b(Df,p_,mE){var Yh;if(Df)if(Df.forEach)Df.forEach(p_,mE);else if(Df.length!==z){var B4=0;for(Yh=Df.length;B4<Yh;B4++)p_.call(mE,Df[B4],B4,Df)}else for(B4 in Df)Df.hasOwnProperty(B4)&&p_.call(mE,Df[B4],B4,Df)}
function e(Df,p_,mE){for(var Yh=Object.keys(p_),B4=0,u_=Yh.length;B4<u_;B4++)if(!mE||mE&&Df[Yh[B4]]===z)Df[Yh[B4]]=p_[Yh[B4]];return Df}
function g(Df,p_){return e(Df,p_,!0)}
function F(Df,p_,mE){p_=p_.prototype;var Yh=Df.prototype=Object.create(p_);Yh.constructor=Df;Yh._super=p_;mE&&e(Yh,mE)}
function T(Df,p_){return function(){return Df.apply(p_,arguments)}}
function D(Df,p_){return typeof Df=="function"?Df.apply(p_?p_[0]||z:z,p_):Df}
function h(Df,p_,mE){b(W(p_),function(Yh){Df.addEventListener(Yh,mE,!1)})}
function u(Df,p_,mE){b(W(p_),function(Yh){Df.removeEventListener(Yh,mE,!1)})}
function W(Df){return Df.trim().split(/\s+/g)}
function c(Df,p_,mE){if(Df.indexOf&&!mE)return Df.indexOf(p_);for(var Yh=0,B4=Df.length;Yh<B4;Yh++)if(mE&&Df[Yh][mE]==p_||!mE&&Df[Yh]===p_)return Yh;return-1}
function P(Df,p_,mE){for(var Yh=[],B4=[],u_=0,AQ=Df.length;u_<AQ;u_++){var DP=p_?Df[u_][p_]:Df[u_];c(B4,DP)<0&&Yh.push(Df[u_]);B4[u_]=DP}mE&&(Yh=p_?Yh.sort(function(F4,CT){return F4[p_]>CT[p_]}):Yh.sort());
return Yh}
function l(Df,p_){for(var mE,Yh=p_[0].toUpperCase()+p_.slice(1),B4=0,u_=n4.length;B4<u_;B4++)if(mE=(mE=n4[B4])?mE+Yh:p_,mE in Df)return mE;return z}
function R(Df,p_){var mE=this;this.manager=Df;this.callback=p_;this.element=Df.element;this.target=Df.options.inputTarget;this.domHandler=function(Yh){D(Df.options.enable,[Df])&&mE.handler(Yh)};
this.evEl&&h(this.element,this.evEl,this.domHandler);this.evTarget&&h(this.target,this.evTarget,this.domHandler);this.evWin&&h(G,this.evWin,this.domHandler)}
function L(Df){var p_;ZA?p_=Uh:MY?p_=cY:nT?p_=f_:p_=Fv;return new p_(Df,x)}
function x(Df,p_,mE){var Yh=mE.pointers.length,B4=mE.changedPointers.length,u_=p_&1&&Yh-B4===0;mE.isFirst=!!u_;mE.isFinal=!!(p_&12&&Yh-B4===0);u_&&(Df.session={});mE.eventType=p_;p_=Df.session;Yh=mE.pointers;B4=Yh.length;p_.firstInput||(p_.firstInput=w6(mE));B4>1&&!p_.firstMultiple?p_.firstMultiple=w6(mE):B4===1&&(p_.firstMultiple=!1);u_=p_.firstInput;var AQ=(B4=p_.firstMultiple)?B4.center:u_.center,DP=mE.center=BY(Yh);mE.timeStamp=K4();mE.deltaTime=mE.timeStamp-u_.timeStamp;mE.angle=C_(AQ,DP);mE.distance=
Ss(AQ,DP);u_=mE.center;AQ=p_.offsetDelta||{};DP=p_.prevDelta||{};var F4=p_.prevInput||{};if(mE.eventType===1||F4.eventType===4)DP=p_.prevDelta={x:F4.deltaX||0,y:F4.deltaY||0},AQ=p_.offsetDelta={x:u_.x,y:u_.y};mE.deltaX=DP.x+(u_.x-AQ.x);mE.deltaY=DP.y+(u_.y-AQ.y);mE.offsetDirection=kJ(mE.deltaX,mE.deltaY);B4?(u_=B4.pointers,u_=Ss(Yh[0],Yh[1],c4)/Ss(u_[0],u_[1],c4)):u_=1;mE.scale=u_;B4?(B4=B4.pointers,Yh=C_(Yh[1],Yh[0],c4)-C_(B4[1],B4[0],c4)):Yh=0;mE.rotation=Yh;AQ=p_.lastInterval||mE;Yh=mE.timeStamp-
AQ.timeStamp;mE.eventType!=8&&(Yh>25||AQ.velocity===z)?(u_=AQ.deltaX-mE.deltaX,AQ=AQ.deltaY-mE.deltaY,DP=u_/Yh||0,F4=AQ/Yh||0,Yh=DP,B4=F4,DP=ZP(DP)>ZP(F4)?DP:F4,u_=kJ(u_,AQ),p_.lastInterval=mE):(DP=AQ.velocity,Yh=AQ.velocityX,B4=AQ.velocityY,u_=AQ.direction);mE.velocity=DP;mE.velocityX=Yh;mE.velocityY=B4;mE.direction=u_;p_=Df.element;a:{for(Yh=mE.srcEvent.target;Yh;){if(Yh==p_){Yh=!0;break a}Yh=Yh.parentNode}Yh=!1}Yh&&(p_=mE.srcEvent.target);mE.target=p_;Df.emit("hammer.input",mE);Df.recognize(mE);
Df.session.prevInput=mE}
function w6(Df){for(var p_=[],mE=0;mE<Df.pointers.length;mE++)p_[mE]={clientX:kV(Df.pointers[mE].clientX),clientY:kV(Df.pointers[mE].clientY)};return{timeStamp:K4(),pointers:p_,center:BY(p_),deltaX:Df.deltaX,deltaY:Df.deltaY}}
function BY(Df){var p_=Df.length;if(p_===1)return{x:kV(Df[0].clientX),y:kV(Df[0].clientY)};for(var mE=0,Yh=0,B4=0;B4<p_;B4++)mE+=Df[B4].clientX,Yh+=Df[B4].clientY;return{x:kV(mE/p_),y:kV(Yh/p_)}}
function kJ(Df,p_){return Df===p_?1:ZP(Df)>=ZP(p_)?Df>0?2:4:p_>0?8:16}
function Ss(Df,p_,mE){mE||(mE=vS);var Yh=p_[mE[0]]-Df[mE[0]];Df=p_[mE[1]]-Df[mE[1]];return Math.sqrt(Yh*Yh+Df*Df)}
function C_(Df,p_,mE){mE||(mE=vS);return Math.atan2(p_[mE[1]]-Df[mE[1]],p_[mE[0]]-Df[mE[0]])*180/Math.PI}
function Fv(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;R.apply(this,arguments)}
function Uh(){this.evEl=zl;this.evWin=Wx;R.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function cY(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};R.apply(this,arguments)}
function f_(){R.apply(this,arguments);var Df=T(this.handler,this);this.touch=new cY(this.manager,Df);this.mouse=new Fv(this.manager,Df)}
function sq(Df,p_){this.manager=Df;this.set(p_)}
function oq(Df){if(Df.indexOf("none")>-1)return"none";var p_=Df.indexOf("pan-x")>-1,mE=Df.indexOf("pan-y")>-1;return p_&&mE?"pan-x pan-y":p_||mE?p_?"pan-x":"pan-y":Df.indexOf("manipulation")>-1?"manipulation":"auto"}
function ll(Df){this.id=Tr++;this.manager=null;this.options=g(Df||{},this.defaults);Df=this.options.enable;this.options.enable=Df===z?!0:Df;this.state=1;this.simultaneous={};this.requireFail=[]}
function go(Df){return Df==16?"down":Df==8?"up":Df==2?"left":Df==4?"right":""}
function kh(Df,p_){return(p_=p_.manager)?p_.get(Df):Df}
function Aq(){ll.apply(this,arguments)}
function OR(){Aq.apply(this,arguments);this.pY=this.pX=null}
function Mz(){Aq.apply(this,arguments)}
function HY(){ll.apply(this,arguments);this._input=this._timer=null}
function yR(){Aq.apply(this,arguments)}
function hq(){Aq.apply(this,arguments)}
function gi(){ll.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function TB(Df,p_){p_=p_||{};var mE=p_.recognizers;p_.recognizers=mE===z?TB.defaults.preset:mE;return new Uq(Df,p_)}
function Uq(Df,p_){p_=p_||{};this.options=g(p_,TB.defaults);this.options.inputTarget=this.options.inputTarget||Df;this.handlers={};this.session={};this.recognizers=[];this.element=Df;this.input=L(this);this.touchAction=new sq(this,this.options.touchAction);Gc(this,!0);b(p_.recognizers,function(mE){var Yh=this.add(new mE[0](mE[1]));mE[2]&&Yh.recognizeWith(mE[2]);mE[3]&&Yh.requireFailure(mE[2])},this)}
function Gc(Df,p_){var mE=Df.element;b(Df.options.cssProps,function(Yh,B4){mE.style[l(mE.style,B4)]=p_?Yh:""})}
function XH(Df,p_){var mE=y.createEvent("Event");mE.initEvent(Df,!0,!0);mE.gesture=p_;p_.target.dispatchEvent(mE)}
var n4=" webkit moz MS ms o".split(" "),lJ=y.createElement("div"),kV=Math.round,ZP=Math.abs,K4=Date.now,Tr=1,nL=/mobile|tablet|ip(ad|hone|od)|android/i,nT="ontouchstart"in G,ZA=l(G,"PointerEvent")!==z,MY=nT&&nL.test(navigator.userAgent),vS=["x","y"],c4=["clientX","clientY"];R.prototype={handler:function(){},
destroy:function(){this.evEl&&u(this.element,this.evEl,this.domHandler);this.evTarget&&u(this.target,this.evTarget,this.domHandler);this.evWin&&u(G,this.evWin,this.domHandler)}};
var GY={mousedown:1,mousemove:2,mouseup:4};F(Fv,R,{handler:function(Df){var p_=GY[Df.type];p_&1&&Df.button===0&&(this.pressed=!0);p_&2&&Df.which!==1&&(p_=4);this.pressed&&this.allow&&(p_&4&&(this.pressed=!1),this.callback(this.manager,p_,{pointers:[Df],changedPointers:[Df],pointerType:"mouse",srcEvent:Df}))}});
var yW={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nY={2:"touch",3:"pen",4:"mouse",5:"kinect"},zl="pointerdown",Wx="pointermove pointerup pointercancel";G.MSPointerEvent&&(zl="MSPointerDown",Wx="MSPointerMove MSPointerUp MSPointerCancel");F(Uh,R,{handler:function(Df){var p_=this.store,mE=!1,Yh=Df.type.toLowerCase().replace("ms","");Yh=yW[Yh];var B4=nY[Df.pointerType]||Df.pointerType;Yh&1&&(Df.button===0||B4=="touch")?p_.push(Df):Yh&12&&(mE=!0);var u_=c(p_,Df.pointerId,"pointerId");
u_<0||(p_[u_]=Df,this.callback(this.manager,Yh,{pointers:p_,changedPointers:[Df],pointerType:B4,srcEvent:Df}),mE&&p_.splice(u_,1))}});
var W0={touchstart:1,touchmove:2,touchend:4,touchcancel:8};F(cY,R,{handler:function(Df){var p_=W0[Df.type];var mE=Array.prototype.slice.call(Df.touches,0);var Yh=this.targetIds;if(p_&3&&mE.length===1)Yh[mE[0].identifier]=!0,Yh=[mE,mE];else{var B4,u_=Array.prototype.slice.call(Df.targetTouches,0),AQ=Array.prototype.slice.call(Df.changedTouches,0),DP=[];if(p_===1)for(mE=0,B4=u_.length;mE<B4;mE++)Yh[u_[mE].identifier]=!0;mE=0;for(B4=AQ.length;mE<B4;mE++)Yh[AQ[mE].identifier]&&DP.push(AQ[mE]),p_&12&&
delete Yh[AQ[mE].identifier];Yh=DP.length?[P(u_.concat(DP),"identifier",!0),DP]:void 0}Yh&&this.callback(this.manager,p_,{pointers:Yh[0],changedPointers:Yh[1],pointerType:"touch",srcEvent:Df})}});
F(f_,R,{handler:function(Df,p_,mE){var Yh=mE.pointerType=="mouse";if(mE.pointerType=="touch")this.mouse.allow=!1;else if(Yh&&!this.mouse.allow)return;p_&12&&(this.mouse.allow=!0);this.callback(Df,p_,mE)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Vr=l(lJ.style,"touchAction"),em=Vr!==z;sq.prototype={set:function(Df){Df=="compute"&&(Df=this.compute());em&&(this.manager.element.style[Vr]=Df);this.actions=Df.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Df=[];b(this.manager.recognizers,function(p_){D(p_.options.enable,[p_])&&(Df=Df.concat(p_.getTouchAction()))});
return oq(Df.join(" "))},
preventDefaults:function(Df){if(!em){var p_=Df.srcEvent;Df=Df.offsetDirection;if(this.manager.session.prevented)p_.preventDefault();else{var mE=this.actions,Yh=mE.indexOf("none")>-1,B4=mE.indexOf("pan-y")>-1;mE=mE.indexOf("pan-x")>-1;if(Yh||B4&&mE||B4&&Df&6||mE&&Df&24)return this.preventSrc(p_)}}},
preventSrc:function(Df){this.manager.session.prevented=!0;Df.preventDefault()}};
ll.prototype={defaults:{},set:function(Df){e(this.options,Df);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Df){if(V(Df,"recognizeWith",this))return this;var p_=this.simultaneous;Df=kh(Df,this);p_[Df.id]||(p_[Df.id]=Df,Df.recognizeWith(this));return this},
dropRecognizeWith:function(Df){if(V(Df,"dropRecognizeWith",this))return this;Df=kh(Df,this);delete this.simultaneous[Df.id];return this},
requireFailure:function(Df){if(V(Df,"requireFailure",this))return this;var p_=this.requireFail;Df=kh(Df,this);c(p_,Df)===-1&&(p_.push(Df),Df.requireFailure(this));return this},
dropRequireFailure:function(Df){if(V(Df,"dropRequireFailure",this))return this;Df=kh(Df,this);Df=c(this.requireFail,Df);Df>-1&&this.requireFail.splice(Df,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Df){return!!this.simultaneous[Df.id]},
emit:function(Df){function p_(B4){mE.manager.emit(mE.options.event+(B4?Yh&16?"cancel":Yh&8?"end":Yh&4?"move":Yh&2?"start":"":""),Df)}
var mE=this,Yh=this.state;Yh<8&&p_(!0);p_();Yh>=8&&p_(!0)},
tryEmit:function(Df){if(this.canEmit())return this.emit(Df);this.state=32},
canEmit:function(){for(var Df=0;Df<this.requireFail.length;Df++)if(!(this.requireFail[Df].state&33))return!1;return!0},
recognize:function(Df){Df=e({},Df);D(this.options.enable,[this,Df])?(this.state&56&&(this.state=1),this.state=this.process(Df),this.state&30&&this.tryEmit(Df)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
F(Aq,ll,{defaults:{pointers:1},attrTest:function(Df){var p_=this.options.pointers;return p_===0||Df.pointers.length===p_},
process:function(Df){var p_=this.state,mE=Df.eventType,Yh=p_&6;Df=this.attrTest(Df);return Yh&&(mE&8||!Df)?p_|16:Yh||Df?mE&4?p_|8:p_&2?p_|4:2:32}});
F(OR,Aq,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Df=this.options.direction;if(Df===30)return["none"];var p_=[];Df&6&&p_.push("pan-y");Df&24&&p_.push("pan-x");return p_},
directionTest:function(Df){var p_=this.options,mE=!0,Yh=Df.distance,B4=Df.direction,u_=Df.deltaX,AQ=Df.deltaY;B4&p_.direction||(p_.direction&6?(B4=u_===0?1:u_<0?2:4,mE=u_!=this.pX,Yh=Math.abs(Df.deltaX)):(B4=AQ===0?1:AQ<0?8:16,mE=AQ!=this.pY,Yh=Math.abs(Df.deltaY)));Df.direction=B4;return mE&&Yh>p_.threshold&&B4&p_.direction},
attrTest:function(Df){return Aq.prototype.attrTest.call(this,Df)&&(this.state&2||!(this.state&2)&&this.directionTest(Df))},
emit:function(Df){this.pX=Df.deltaX;this.pY=Df.deltaY;var p_=go(Df.direction);p_&&this.manager.emit(this.options.event+p_,Df);this._super.emit.call(this,Df)}});
F(Mz,Aq,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Df){return this._super.attrTest.call(this,Df)&&(Math.abs(Df.scale-1)>this.options.threshold||this.state&2)},
emit:function(Df){this._super.emit.call(this,Df);Df.scale!==1&&this.manager.emit(this.options.event+(Df.scale<1?"in":"out"),Df)}});
F(HY,ll,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Df){var p_=this.options,mE=Df.pointers.length===p_.pointers,Yh=Df.distance<p_.threshold,B4=Df.deltaTime>p_.time;this._input=Df;if(!Yh||!mE||Df.eventType&12&&!B4)this.reset();else if(Df.eventType&1)this.reset(),this._timer=B(function(){this.state=8;this.tryEmit()},p_.time,this);
else if(Df.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Df){this.state===8&&(Df&&Df.eventType&4?this.manager.emit(this.options.event+"up",Df):(this._input.timeStamp=K4(),this.manager.emit(this.options.event,this._input)))}});
F(yR,Aq,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Df){return this._super.attrTest.call(this,Df)&&(Math.abs(Df.rotation)>this.options.threshold||this.state&2)}});
F(hq,Aq,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return OR.prototype.getTouchAction.call(this)},
attrTest:function(Df){var p_=this.options.direction;if(p_&30)var mE=Df.velocity;else p_&6?mE=Df.velocityX:p_&24&&(mE=Df.velocityY);return this._super.attrTest.call(this,Df)&&p_&Df.direction&&ZP(mE)>this.options.velocity&&Df.eventType&4},
emit:function(Df){var p_=go(Df.direction);p_&&this.manager.emit(this.options.event+p_,Df);this.manager.emit(this.options.event,Df)}});
F(gi,ll,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Df){var p_=this.options,mE=Df.pointers.length===p_.pointers,Yh=Df.distance<p_.threshold,B4=Df.deltaTime<p_.time;this.reset();if(Df.eventType&1&&this.count===0)return this.failTimeout();if(Yh&&B4&&mE){if(Df.eventType!=4)return this.failTimeout();mE=this.pTime?Df.timeStamp-this.pTime<p_.interval:!0;Yh=!this.pCenter||Ss(this.pCenter,Df.center)<p_.posThreshold;this.pTime=Df.timeStamp;this.pCenter=Df.center;Yh&&mE?this.count+=1:this.count=1;this._input=Df;if(this.count%p_.taps===0)return this.hasRequireFailures()?
(this._timer=B(function(){this.state=8;this.tryEmit()},p_.interval,this),2):8}return 32},
failTimeout:function(){this._timer=B(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))}});
TB.VERSION="2.0.2";TB.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[yR,{enable:!1}],[Mz,{enable:!1},["rotate"]],[hq,{direction:6}],[OR,{direction:6},["swipe"]],[gi],[gi,{event:"doubletap",taps:2},["tap"]],[HY]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Uq.prototype={set:function(Df){e(this.options,Df);return this},
stop:function(Df){this.session.stopped=Df?2:1},
recognize:function(Df){var p_=this.session;if(!p_.stopped){this.touchAction.preventDefaults(Df);var mE=this.recognizers,Yh=p_.curRecognizer;if(!Yh||Yh&&Yh.state&8)Yh=p_.curRecognizer=null;for(var B4=0,u_=mE.length;B4<u_;B4++){var AQ=mE[B4];p_.stopped===2||Yh&&AQ!=Yh&&!AQ.canRecognizeWith(Yh)?AQ.reset():AQ.recognize(Df);!Yh&&AQ.state&14&&(Yh=p_.curRecognizer=AQ)}}},
get:function(Df){if(Df instanceof ll)return Df;for(var p_=this.recognizers,mE=0;mE<p_.length;mE++)if(p_[mE].options.event==Df)return p_[mE];return null},
add:function(Df){if(V(Df,"add",this))return this;var p_=this.get(Df.options.event);p_&&this.remove(p_);this.recognizers.push(Df);Df.manager=this;this.touchAction.update();return Df},
remove:function(Df){if(V(Df,"remove",this))return this;var p_=this.recognizers;Df=this.get(Df);p_.splice(c(p_,Df),1);this.touchAction.update();return this},
on:function(Df,p_){var mE=this.handlers;b(W(Df),function(Yh){mE[Yh]=mE[Yh]||[];mE[Yh].push(p_)});
return this},
off:function(Df,p_){var mE=this.handlers;b(W(Df),function(Yh){p_?mE[Yh].splice(c(mE[Yh],p_),1):delete mE[Yh]});
return this},
emit:function(Df,p_){this.options.domEvents&&XH(Df,p_);var mE=this.handlers[Df]&&this.handlers[Df].slice();if(mE&&mE.length){p_.type=Df;p_.preventDefault=function(){p_.srcEvent.preventDefault()};
Df=0;for(var Yh=mE.length;Df<Yh;Df++)mE[Df](p_)}},
destroy:function(){this.element&&Gc(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
e(TB,{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:Uq,Input:R,TouchAction:sq,Recognizer:ll,AttrRecognizer:Aq,Tap:gi,Pan:OR,Swipe:hq,Pinch:Mz,Rotate:yR,Press:HY,on:h,off:u,each:b,merge:g,extend:e,inherit:F,bindFn:T,prefixed:l});
G[w]=TB})(window,document,"Hammer");
return window.Hammer}.call({});
t.DOCUMENT=X;X[zIz]=t}return X[zIz]};/*

 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 oWh=function(X,t){if(X.length!==t.length)return!1;for(var G=0;G<X.length;++G)if(X[G]!==t[G])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var JSo=_.J(["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"]),B5t=JSo.next();!B5t.done;B5t=JSo.next()){var nWh=B5t.value,Veq=document.createElement("link");Veq.rel="stylesheet";Veq.href=nWh;document.head.appendChild(Veq)};var cl0,rlJ,PM0,QmG,pIJ,IFh,ONs,uyw;cl0={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};rlJ={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:"*"};PM0={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};QmG=/[a-z0-9*]/;pIJ=/U\+/;IFh=/^arrow/;ONs=/^space(bar)?/;uyw=/^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(X,t){this._imperativeKeyBindings[X]=t;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(X,t){t=UFv(t);for(var G=0;G<t.length;++G)if(NaV(t[G],X))return!0;return!1},
_collectKeyBindings:function(){var X=this.behaviors.map(function(t){return t.keyBindings});
X.indexOf(this.keyBindings)===-1&&X.push(this.keyBindings);return X},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(G){for(var y in G)this._addKeyBinding(y,G[y])},this);
for(var X in this._imperativeKeyBindings)this._addKeyBinding(X,this._imperativeKeyBindings[X]);for(var t in this._keyBindings)this._keyBindings[t].sort(function(G,y){G=G[0].hasModifiers;return G===y[0].hasModifiers?0:G?-1:1})},
_addKeyBinding:function(X,t){UFv(X).forEach(function(G){this._keyBindings[G.event]=this._keyBindings[G.event]||[];this._keyBindings[G.event].push([G,t])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(X){var t=this._onKeyBindingEvent.bind(this,this._keyBindings[X]);this._boundKeyHandlers.push([this.keyEventTarget,X,t]);this.keyEventTarget.addEventListener(X,t)},this)},
_unlistenKeyEventListeners:function(){for(var X,t,G;this._boundKeyHandlers.length;)X=this._boundKeyHandlers.pop(),t=X[0],G=X[1],X=X[2],t.removeEventListener(G,X)},
_onKeyBindingEvent:function(X,t){this.stopKeyboardEventPropagation&&t.stopPropagation();if(!t.defaultPrevented)for(var G=0;G<X.length;G++){var y=X[G][0],w=X[G][1];if(NaV(y,t)&&(this._triggerKeyHandler(y,w,t),t.defaultPrevented))break}},
_triggerKeyHandler:function(X,t,G){var y=Object.create(X);y.keyboardEvent=G;X=new CustomEvent(X.event,{detail:y,cancelable:!0});this[t].call(this,X);X.defaultPrevented&&G.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
*/
_.le({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(X){this.keyEventTarget=X},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(X){this.fire("keys-pressed",X.detail,{})}});_.P3={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(X){this._setFocused(X.type==="focus")},
_disabledChanged:function(X){this.setAttribute("aria-disabled",X?"true":"false");this.style.pointerEvents=X?"none":"";X?(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 EC={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(X){this._detectKeyboardFocus(X);X||this._setPressed(!1)},
_detectKeyboardFocus:function(X){this._setReceivedFocusFromKeyboard(!this.pointerDown&&X)},
_userActivate:function(X){this.active!==X&&(this.active=X,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(X){X=X.detail.keyboardEvent;var t=_.Es(X).localTarget;this.isLightDescendant(t)||(X.preventDefault(),X.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(X){X=_.Es(X.detail.keyboardEvent).localTarget;this.isLightDescendant(X)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(X,t){t&&t!=X&&this.hasAttribute(t)&&this.removeAttribute(t)},
_activeChanged:function(X){this.toggles?this.setAttribute(this.ariaActiveAttribute,X?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},b54=[_.NN,
EC];_.UC={IronButtonState:b54,IronButtonStateImpl:EC};_.mQ={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Rx=function(X){_.Rx[" "](X);this.type=X&&X.type||"default";this.key=X&&X.key;X&&"value"in X&&(this.value=X.value)};
_.Rx.prototype.byKey=function(X){this.key=X;return this.value};
_.ke.Object.defineProperties(_.Rx.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var X=this.type,t=this.key;if(X&&t)return iS[X]&&iS[X][t]},
set:function(X){var t=this.type,G=this.key;t&&G&&(t=iS[t]=iS[t]||{},X==null?delete t[G]:t[G]=X)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var X=iS[this.type];return X?Object.keys(X).map(function(t){return iS[this.type][t]},this):[]}}});
_.Rx[" "]=function(){};
var iS={};_.le({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(X,t,G){X=new _.Rx({type:X,key:t});G!==void 0&&G!==X.value?X.value=G:this.value!==X.value&&(this.value=X.value);return X},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(X){X&&(this.value=this)},
byKey:function(X){return(new _.Rx({type:this.type,key:X})).value}});var kzq;kzq=null;_.LB={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){kzq=new _.Rx({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return kzq&&kzq.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(X){this.invalid=X===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(X);return!this.invalid},
_getValidity:function(X){return this.hasValidator()?this._validator.validate(X):!0}};var d7J={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"}},eI4=[_.mQ,
_.LB,d7J];_.le({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 _.Rx({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(X){return this.name+":"+X},this)},
applyIcon:function(X,t){this.removeIcon(X);if(t=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(X))){var G=_.Es(X.root||X);G.insertBefore(t,G.childNodes[0]);return X._svgIcon=t}return null},
removeIcon:function(X){X._svgIcon&&(_.Es(X.root||X).removeChild(X._svgIcon),X._svgIcon=null)},
_targetIsRTL:function(X){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(X&&X.nodeType!==Node.ELEMENT_NODE&&(X=X.host),this.__targetIsRTL=X&&window.getComputedStyle(X).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 X=Object.create(null);_.Es(this).querySelectorAll("[id]").forEach(function(t){X[t.id]=t});
return X},
_cloneIcon:function(X,t){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[X],this.size,t)},
_prepareSvgClone:function(X,t,G){if(X){X=X.cloneNode(!0);var y=document.createElementNS("http://www.w3.org/2000/svg","svg");t=X.getAttribute("viewBox")||"0 0 "+t+" "+t;var w="pointer-events: none; display: block; width: 100%; height: 100%;";G&&X.hasAttribute("mirror-in-rtl")&&(w+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");y.setAttribute("viewBox",t);y.setAttribute("preserveAspectRatio","xMidYMid meet");y.setAttribute("focusable","false");y.style&&(y.style.cssText=
w);y.appendChild(X).removeAttribute("id");return y}return null}});var jsS=function(X){this.multi=!1;this.selection=[];this.selectCallback=X};
_.H=jsS.prototype;_.H.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.H.clear=function(X){this.selection.slice().forEach(function(t){(!X||X.indexOf(t)<0)&&this.setItemSelected(t,!1)},this)};
_.H.isSelected=function(X){return this.selection.indexOf(X)>=0};
_.H.setItemSelected=function(X,t){if(X!=null&&t!==this.isSelected(X)){if(t)this.selection.push(X);else{var G=this.selection.indexOf(X);G>=0&&this.selection.splice(G,1)}this.selectCallback&&this.selectCallback(X,t)}};
_.H.select=function(X){this.multi?this.toggle(X):this.get()!==X&&(this.setItemSelected(this.get(),!1),this.setItemSelected(X,!0))};
_.H.toggle=function(X){this.setItemSelected(X,!this.isSelected(X))};_.nz={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 jsS(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Es(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(X){return this.items?this.items.indexOf(X):-1},
select:function(X){this.selected=X},
selectPrevious:function(){var X=this.items.length,t=X-1;this.selected!==void 0&&(t=(Number(this._valueToIndex(this.selected))-1+X)%X);this.selected=this._indexToValue(t)},
selectNext:function(){var X=0;this.selected!==void 0&&(X=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(X)},
selectIndex:function(X){this.select(this._indexToValue(X))},
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(X){this.listen(this,X,"_activateHandler")},
_removeListener:function(X){this.unlisten(this,X,"_activateHandler")},
_activateEventChanged:function(X,t){this._removeListener(t);this._addListener(X)},
_updateItems:function(){var X=_.Es(this).queryDistributedElements(this.selectable||"*");X=Array.prototype.filter.call(X,this._bindFilterItem);this._setItems(X)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var X=this._valueToItem(this.selected);X?this._selection.select(X):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(X){return!this._excludedLocalNames[X.localName]},
_valueToItem:function(X){return X==null?null:this.items[this._valueToIndex(X)]},
_valueToIndex:function(X){if(this.attrForSelected)for(var t=0,G;G=this.items[t];t++){if(this._valueForItem(G)==X)return t}else return Number(X)},
_indexToValue:function(X){if(this.attrForSelected){if(X=this.items[X])return this._valueForItem(X)}else return X},
_valueForItem:function(X){if(!X)return null;if(!this.attrForSelected)return X=this.indexOf(X),X===-1?null:X;var t=X[Ds(this.attrForSelected)];return t!=void 0?t:X.getAttribute(this.attrForSelected)},
_applySelection:function(X,t){this.selectedClass&&this.toggleClass(this.selectedClass,t,X);this.selectedAttribute&&this.toggleAttribute.call(X,this.selectedAttribute,t);this._selectionChange();this.fire("iron-"+(t?"select":"deselect"),{item:X})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(X){return _.Es(X).observeNodes(function(t){this._updateItems();this._updateSelected();this.fire("iron-items-changed",t,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(X){X=X.target;for(var t=this.items;X&&X!=this;){var G=t.indexOf(X);if(G>=0){t=this._indexToValue(G);this._itemActivate(t,X);break}X=X.parentNode}},
_itemActivate:function(X,t){this.fire("iron-activate",{selected:X,item:t},{cancelable:!0}).defaultPrevented||this.select(X)}};var gW4={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(X){this.multi?this._toggleSelected(X):this.selected=X},
multiChanged:function(X){this._selection.multi=X;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(X){return this._indexToValue(this.indexOf(X))},this).filter(function(X){return X!=null},this)):_.nz._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(X){X=X||[];X=(this._valuesToItems(X)||[]).filter(function(G){return G!==null&&G!==void 0});
this._selection.clear(X);for(var t=0;t<X.length;t++)this._selection.setItemSelected(X[t],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var X=this._selection.get();this.multi?(this._setSelectedItems(X),this._setSelectedItem(X.length?X[0]:null)):X!==null&&X!==void 0?(this._setSelectedItems([X]),this._setSelectedItem(X)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(X){var t=this.selectedValues.indexOf(X);t<0?this.push("selectedValues",X):this.splice("selectedValues",t,1)},
_valuesToItems:function(X){return X==null?null:X.map(function(t){return this._valueToItem(t)},this)}},FAq=[_.nz,
gW4];var T5R;
_.v3={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(X){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var t=this._valueToItem(X);t&&t.hasAttribute("disabled")||(this._setFocusedItem(t),gW4.select.apply(this,arguments))},
_resetTabindices:function(){var X=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(t){t.setAttribute("tabindex",t===X?"0":"-1");t.setAttribute("aria-selected",this._selection.isSelected(t))},this)},
_updateMultiselectable:function(X){X?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(X){if(this._MODIFIER_KEYS.indexOf(X.key)===-1){this.cancelDebouncer("_clearSearchText");var t=this._searchText||"";t+=(X.key&&X.key.length==1?X.key:String.fromCharCode(X.keyCode)).toLocaleLowerCase();X=t.length;for(var G=0,y;y=this.items[G];G++)if(!y.hasAttribute("disabled")){var w=this.attrForItemTitle||"textContent";w=(y[w]||y.getAttribute(w)||"").trim();if(!(w.length<X)&&w.slice(0,X).toLocaleLowerCase()==t){this._setFocusedItem(y);break}}this._searchText=t;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var X=this.items.length,t=Number(this.indexOf(this.focusedItem)),G=1;G<X+1;G++){var y=this.items[(t-G+X)%X];if(!y.hasAttribute("disabled")){var w=_.Es(y).getOwnerRoot()||document;this._setFocusedItem(y);if(_.Es(w).activeElement==y)break}}},
_focusNext:function(){for(var X=this.items.length,t=Number(this.indexOf(this.focusedItem)),G=1;G<X+1;G++){var y=this.items[(t+G)%X];if(!y.hasAttribute("disabled")){var w=_.Es(y).getOwnerRoot()||document;this._setFocusedItem(y);if(_.Es(w).activeElement==y)break}}},
_applySelection:function(X,t){t?X.setAttribute("aria-selected","true"):X.setAttribute("aria-selected","false");_.nz._applySelection.apply(this,arguments)},
_focusedItemChanged:function(X,t){t&&t.setAttribute("tabindex","-1");!X||X.hasAttribute("disabled")||this.disabled||(X.setAttribute("tabindex","0"),X.focus())},
_onIronItemsChanged:function(X){X.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var X=this.getAttribute("tabindex");_.v3._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",X);_.v3._shiftTabPressed=!1},1)},
_onFocus:function(X){!_.v3._shiftTabPressed&&(X=_.Es(X).rootTarget,X===this||typeof X.tabIndex==="undefined"||this.isLightDescendant(X))&&(this._defaultFocusAsync=this.async(function(){var t=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);t?this._setFocusedItem(t):this.items[0]&&this._focusNext()}))},
_onUpKey:function(X){this._focusPrevious();X.detail.keyboardEvent.preventDefault()},
_onDownKey:function(X){this._focusNext();X.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var X=this.focusedItem;X&&X.blur()},
_onKeydown:function(X){this.keyboardEventMatchesKeys(X,"up down esc")||this._focusWithKeyboardEvent(X);X.stopPropagation()},
_activateHandler:function(X){_.nz._activateHandler.call(this,X);X.stopPropagation()},
_disabledChanged:function(X){X?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};T5R=[FAq,_.NN,_.v3];_.ASJ={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(X){this.focusedItem&&(this.focusedItem.click(),X.detail.keyboardEvent.preventDefault())},
_onDownKey:function(X){this.focusedItem&&(this.focusedItem.click(),X.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(X){return X.ctrlKey||X.shiftKey||X.altKey||X.metaKey},
_onLeftKey:function(X){this._isSpecialKey(X.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),X.detail.keyboardEvent.preventDefault())},
_onRightKey:function(X){this._isSpecialKey(X.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),X.detail.keyboardEvent.preventDefault())},
_onKeydown:function(X){this.keyboardEventMatchesKeys(X,"up down left right esc")||this._focusWithKeyboardEvent(X)}};
_.YWq=[T5R,_.ASJ];var ssq;ssq=new Set;_.ax={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):(ssq.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(X){this.resizerShouldNotify(X)&&this._notifyDescendant(X)},this),this._fireResize())},
assignParentResizable:function(X){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=X)&&X._interestedResizables.indexOf(this)===-1&&(X._interestedResizables.push(this),X._subscribeIronResize(this))},
stopResizeNotificationsFor:function(X){var t=this._interestedResizables.indexOf(X);t>-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(X))},
_subscribeIronResize:function(X){X.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(X){X.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(X){this._notifyingDescendant?X.stopPropagation():$e||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(X){var t=_.Es(X).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),X.stopPropagation())},
_parentResizableChanged:function(X){X&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(X){this.isAttached&&(this._notifyingDescendant=!0,X.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var X=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function G(){document.removeEventListener("readystatechange",G);X()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(t){t!==this&&t._findParent()},this):(ssq.forEach(function(t){t!==this&&t._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?ssq.delete(this):ssq.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
*/
_.D7z={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(X,t){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);t&&(X==="document"?this.scrollTarget=this._doc:typeof X==="string"?this.scrollTarget=(t=this.domHost)&&t.$?t.$[X]:_.Es(this.ownerDocument).querySelector("#"+X):this._isValidScrollTarget()&&(this._oldScrollTarget=X,this._toggleScrollListener(this._shouldHaveListener,X)))},
_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(X){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,X):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
X)},set _scrollLeft(X){this.scrollTarget===this._doc?window.scrollTo(X,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=X)},scroll:function(X,t){if(typeof X==="object"){var G=X.left;t=X.top}else G=X;G=G||0;t=t||0;this.scrollTarget===this._doc?window.scrollTo(G,t):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=G,this.scrollTarget.scrollTop=t)},
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(X,t){t=t===this._doc?window:t;X?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),t.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(t.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(X){this._shouldHaveListener=X;this._toggleScrollListener(X,this.scrollTarget)}};_.le({is:"iron-selector",_template:null,behaviors:[FAq]});var lS={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(X){if(X.timing)for(var t in X.timing)this.animationTiming[t]=X.timing[t];return this.animationTiming},
setPrefixedProperty:function(X,t,G){for(var y={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[t],w,z=0;w=y[z];z++)X.style[w]=G;X.style[t]=G},
complete:function(){}};_.le({is:"fade-in-animation",_template:null,behaviors:[lS],configure:function(X){return this._effect=new KeyframeEffect(X.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(X))}});_.le({is:"fade-out-animation",_template:null,behaviors:[lS],configure:function(X){return this._effect=new KeyframeEffect(X.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(X))}});var SW4=[{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(X,t){for(var G in t)X[G]=t[G]},
_cloneConfig:function(X){var t={isClone:!0};this._copyProperties(t,X);return t},
_getAnimationConfigRecursive:function(X,t,G){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 y=X?this.animationConfig[X]:this.animationConfig;Array.isArray(y)||(y=[y]);if(y)for(var w,z=0;w=y[z];z++)if(w.animatable)w.animatable._getAnimationConfigRecursive(w.type||X,t,G);else if(w.id){var B=t[w.id];
B?(B.isClone||(t[w.id]=this._cloneConfig(B),B=t[w.id]),this._copyProperties(B,w)):t[w.id]=w}else G.push(w)}},
getAnimationConfig:function(X){var t={},G=[];this._getAnimationConfigRecursive(X,t,G);for(var y in t)G.push(t[y]);return G}},
{_configureAnimations:function(X){var t=[],G=[];if(X.length>0)for(var y,w=0;y=X[w];w++){var z=document.createElement(y.name);if(z.isNeonAnimation){var B=null;z.configure||(z.configure=function(){return null});
B=z.configure(y);G.push({result:B,config:y})}else console.warn(this.is+":",y.name,"not found!")}for(X=0;X<G.length;X++){B=G[X].result;y=G[X].config;try{typeof B.cancel!="function"&&(B=document.timeline.play(B))}catch(V){B=null,console.warn("Couldnt play","(",y.name,").",V)}B&&t.push({neonAnimation:z,config:y,animation:B})}return t},
_shouldComplete:function(X){for(var t=!0,G=0;G<X.length;G++)if(X[G].animation.playState!="finished"){t=!1;break}return t},
_complete:function(X){for(var t=0;t<X.length;t++)X[t].neonAnimation.complete(X[t].config);for(t=0;t<X.length;t++)X[t].animation.cancel()},
playAnimation:function(X,t){var G=this.getAnimationConfig(X);if(G){this._active=this._active||{};this._active[X]&&(this._complete(this._active[X]),delete this._active[X]);var y=this._configureAnimations(G);if(y.length==0)this.fire("neon-animation-finish",t,{bubbles:!1});else for(this._active[X]=y,G=0;G<y.length;G++)y[G].animation.onfinish=function(){this._shouldComplete(y)&&(this._complete(y),delete this._active[X],this.fire("neon-animation-finish",t,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var X in this._active){var t=this._active[X],G;for(G in t)t[G].animation&&t[G].animation.cancel&&t[G].animation.cancel()}this._active={}}}];var KE=function(X,t){X=Error.call(this,X);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.arg=t;this.name=this.constructor.name;this.constructor=KE;this.__proto__=KE.prototype};
_.S(KE,Error);var hIJ=dx(function(X){var t=function(){return X.apply(this,arguments)||this};
_.S(t,X);t.prototype._marshalArgs=function(G,y,w){y=X.prototype._marshalArgs.call(this,G,y,w);if(this._legacyUndefinedCheck&&y.length>1)for(w=0;w<y.length;w++)if(y[w]===void 0||G[w].wildcard&&y[w].base===void 0)throw G=G[w].name,new KE("Argument '"+G+"' is undefined.",G);return y};
t.prototype._addPropertyEffect=function(G,y,w){return X.prototype._addPropertyEffect.call(this,G,y,mF6(w,w&&w.info&&w.info.methodName))};
t._addTemplatePropertyEffect=function(G,y,w){return X._addTemplatePropertyEffect.call(this,G,y,mF6(w))};
return t}),Z5q=_.le.Class;
_.le.Class=function(X,t){return Z5q(X,function(G){return t?t(hIJ(G)):hIJ(G)})};
var qWY=dx(function(X){var t=hIJ(X);X=function(){return t.apply(this,arguments)||this};
_.S(X,t);_.ke.Object.defineProperties(X.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return X}),CX4=Gp.mixin;
Gp.mixin=CX4?function(X){return qWY(CX4(X))}:qWY;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.xr=_.UC.IronButtonState;var p5h=Xm;/*

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 O54;_.KAz="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");O54=function(){var X=[],t;var G=G||_.KAz.length;for(t=0;t<8;t++)X[t]=_.KAz[0|Math.random()*G];return X.join("")};var vo0=function(){return Math.random().toString(36).substring(7).split("").join(".")},LPY="@@redux/INIT"+vo0(),xFl="@@redux/REPLACE"+vo0();var fFw=typeof Symbol==="function"&&Symbol.observable||"@@observable";var uaY=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Qst="top right bottom left width height size weight".split(" "),IRP=typeof MutationObserver!=="undefined",WAB=uaY&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,cSh=function(){this.mutationEventsAdded_=this.JSC$11632_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=MUw(this.refresh.bind(this))},pk4=function(X,
t){var G=X.observers_;
t=G.indexOf(t);~t&&G.splice(t,1);!G.length&&X.JSC$11632_connected_&&uaY&&X.JSC$11632_connected_&&(document.removeEventListener("transitionend",X.onTransitionEnd_),window.removeEventListener("resize",X.refresh),X.mutationsObserver_&&(X.mutationsObserver_.disconnect(),WAB&&(HTMLElement.prototype.attachShadow=WAB)),X.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",X.refresh),X.mutationsObserver_=null,X.mutationEventsAdded_=!1,X.JSC$11632_connected_=!1)};
cSh.prototype.refresh=function(){rS4(this)&&this.refresh()};
var rS4=function(X){X=X.observers_.filter(function(t){return N5q(t),t.activeObservations_.length>0});
X.forEach(function(t){return PXq(t)});
return X.length>0},EWS=function(X){if(uaY&&!X.JSC$11632_connected_){document.addEventListener("transitionend",X.onTransitionEnd_);
window.addEventListener("resize",X.refresh);if(IRP){X.mutationsObserver_=new MutationObserver(X.refresh);var t={attributes:!0,childList:!0,characterData:!0,subtree:!0};X.mutationsObserver_.observe(document,t);WAB&&(function w(y){var z=y.shadowRoot;z&&(X.mutationsObserver_.observe(z,t),w(z));for(y=y.firstElementChild;y;)w(y),y=y.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var y=WAB.apply(this,_.f1.apply(0,arguments));
X.mutationsObserver_.observe(y,t);return y})}else document.addEventListener("DOMSubtreeModified",X.refresh),X.mutationEventsAdded_=!0;
X.JSC$11632_connected_=!0}};
cSh.prototype.onTransitionEnd_=function(X){var t=X.propertyName===void 0?"":X.propertyName;Qst.some(function(G){return!!~t.indexOf(G)})&&this.refresh()};
var U7t=null;var m7q=function(X,t){for(var G=_.J(Object.keys(t)),y=G.next();!y.done;y=G.next())y=y.value,Object.defineProperty(X,y,{value:t[y],enumerable:!1,writable:!1,configurable:!0})};var fB=function(X){var t;return(X==null?void 0:(t=X.ownerDocument)==null?void 0:t.defaultView)||globalThis};var RIe={x:0,y:0,width:0,height:0},i54=typeof SVGGraphicsElement!=="undefined"?function(X){return X instanceof fB(X).SVGGraphicsElement}:function(X){return X instanceof fB(X).SVGElement&&typeof X.getBBox==="function"};var LAS=function(X){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=X};
LAS.prototype.isActive=function(){var X=this.target;if(uaY)if(i54(X)){var t=X.getBBox();t={x:0,y:0,width:t.width,height:t.height}}else{var G=X.clientWidth,y=X.clientHeight;if(G||y){var w=fB(X).getComputedStyle(X);t=uw(w["padding-top"]);var z=uw(w["padding-left"]),B=z+uw(w["padding-right"]),V=t+uw(w["padding-bottom"]),b=uw(w.width),e=uw(w.height);w.boxSizing==="border-box"&&(Math.round(b+B)!==G&&(b-=X6G(w,"left","right")+B),Math.round(e+V)!==y&&(e-=X6G(w,"top","bottom")+V));X!==fB(X).document.documentElement&&
(X=Math.round(b+B)-G,y=Math.round(e+V)-y,Math.abs(X)!==1&&(b-=X),Math.abs(y)!==1&&(e-=y));t={x:z,y:t,width:b,height:e}}else t=RIe}else t=RIe;this.contentRect_=t;return t.width!==this.broadcastWidth||t.height!==this.broadcastHeight};var vWP=function(X,t){var G=t.x;var y=t.y;var w=t.width;t=t.height;var z=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);m7q(z,{x:G,y:y,width:w,height:t,top:y,right:G+w,bottom:t+y,left:G});m7q(this,{target:X,contentRect:z})};var aRt=function(X,t){var G=U7t;this.activeObservations_=[];this.observations_=new Map;if(typeof X!=="function")throw new TypeError("Qe");this.callback_=X;this.controller_=G;this.callbackCtx_=t};
aRt.prototype.observe=function(X){if(X===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(X instanceof fB(X).Element))throw new TypeError("Se");var t=this.observations_;t.has(X)||(t.set(X,new LAS(X)),X=this.controller_,~X.observers_.indexOf(this)||X.observers_.push(this),X.JSC$11632_connected_||EWS(X),this.controller_.refresh())}};
aRt.prototype.unobserve=function(X){if(X===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(X instanceof fB(X).Element))throw new TypeError("Se");var t=this.observations_;t.has(X)&&(t.delete(X),t.size||pk4(this.controller_,this))}};
aRt.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();pk4(this.controller_,this)};
var N5q=function(X){X.activeObservations_.splice(0);X.observations_.forEach(function(t){t.isActive()&&X.activeObservations_.push(t)})},PXq=function(X){if(X.activeObservations_.length>0){var t=X.callbackCtx_,G=X.activeObservations_.map(function(y){var w=y.target,z=y.contentRect_;
y.broadcastWidth=z.width;y.broadcastHeight=z.height;return new vWP(w,z)});
X.callback_.call(t,G,t);X.activeObservations_.splice(0)}};var MN=function(X){if(!(this instanceof MN))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");U7t||(U7t=new cSh);this.observer_=new aRt(X,this)};
MN.prototype.observe=function(X){this.observer_.observe(X)};
MN.prototype.unobserve=function(X){this.observer_.unobserve(X)};
MN.prototype.disconnect=function(){this.observer_.disconnect()};var mHf=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:MN;var o90="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(" "),HUA={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},zHA=null,$o_=null;var Jyw={},BYw=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 j8J={text:1},bUs={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var lRq=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,x74={CONSTANT:{isUnwrappable:function(X){return X instanceof $5},
unwrap:Ehe},JAVASCRIPT:{isUnwrappable:function(X){return X instanceof _.oY},
unwrap:LNV},HTML:{isUnwrappable:function(X){return X instanceof $w},
unwrap:function(X){return yb(X)}},
RESOURCE_URL:{isUnwrappable:function(X){return X instanceof ct},
unwrap:_.Nx},STRING:{isUnwrappable:function(X){return X instanceof Object},
unwrap:function(X){return String(X)}},
STYLE:{isUnwrappable:function(X){return typeof X==="string"},
unwrap:function(X){return X}},
URL:{isUnwrappable:function(X){return mN(X)},
unwrap:_.Rj}},fRh={CONSTANT:g9A,JAVASCRIPT:g9A,HTML:function(X){X=X instanceof $w?X:tI(String(X).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return yb(X)},
RESOURCE_URL:g9A,STRING:String,STYLE:g9A,URL:function(X,t){X=lRq.test(X)?X:void 0;return X===void 0?t:X}};var CiV=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,F9s=/[\t\n\f\r ]+/,AyY=/[\t\n\f\r ,]+/g,s86=function(X,t,G){return G},cs={},MeY=function(){var X=function(){var y={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",y):y}(),t=X.createHTML(""),G=X.createScript("");
X=X.createScriptURL("");return{INNOCUOUS_STRING:t,INNOCUOUS_SCRIPT:G,INNOCUOUS_URL:X}}(),Ws=MeY.INNOCUOUS_STRING,qHf=MeY.INNOCUOUS_SCRIPT,ZU6=MeY.INNOCUOUS_URL;var Xve=function(X){var t=K96(X);return function(G,y,w,z){return z?t(z,y,w,G):Ws}}({reportHandler:function(X,t){if(X)try{throw Error(t);
}catch(G){_.xA(G)}},
safeTypesBridge:function(X,t,G){var y=x74[t];return y.isUnwrappable(X)&&(y=y.unwrap(X,G),y!==G)?y:(0,fRh[t])(String(X),G)},
allowedIdentifierPrefixes:[""]});if(pl!==void 0)throw Error("Ue");pl=Xve;if(pl!==Xve)throw Error("Ve");pE("Injectable",[]);var GTE=pE("Inject",[["token",void 0]]),wes=pE("Optional",[]);pE("Injectable",[]);var z4h=pE("Self",[]),HG_=pE("SkipSelf",[]);pE("Host",[]);var $sq={},the=function(){};
the.prototype.resolve=function(){throw Error("Xe");};
the.prototype.addProvider=function(){throw Error("Xe");};var $gV=Function;var GFq=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,y4h=function(){this._reflect=window.Reflect};
_.H=y4h.prototype;_.H.factory=function(X){return function(){return new (Function.prototype.bind.apply(X,[null].concat(_.RY(_.f1.apply(0,arguments)))))}};
_.H._zipTypesAndAnnotations=function(X,t){var G=typeof X==="undefined"?Array(t.length):Array(X.length);for(var y=0;y<G.length;y++)G[y]=typeof X==="undefined"?[]:X[y]!=Object?[X[y]]:[],t&&uA_(t[y])&&(G[y]=G[y].concat(t[y]));return G};
_.H._ownParameters=function(X,t){if(GFq.exec(X.toString()))return null;if(X.parameters&&X.parameters!==t.parameters)return X.parameters;var G=X.ctorParameters;return G&&G!==t.ctorParameters?(t=typeof G==="function"?G():G,X=t.map(function(y){return y&&y.type}),t=t.map(function(y){return y&&IaJ(y.decorators)}),this._zipTypesAndAnnotations(X,t)):uA_(this._reflect)&&uA_(this._reflect.getOwnMetadata)&&(t=this._reflect.getOwnMetadata("parameters",X),(G=this._reflect.getOwnMetadata("design:paramtypes",X))||
t)?this._zipTypesAndAnnotations(G,t):Array(X.length).fill(void 0)};
_.H.parameters=function(X){if(!X.prototype)return[];var t=Object.getPrototypeOf(X.prototype).constructor;(X=this._ownParameters(X,t))||t===Object||(X=this.parameters(t));return X||[]};
_.H._ownAnnotations=function(X,t){if(X.annotations&&X.annotations!==t.annotations)return X=X.annotations,typeof X==="function"&&X.annotations&&(X=X.annotations),X;if(X.decorators&&X.decorators!==t.decorators)return IaJ(X.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",X)};
_.H.annotations=function(X){var t=Object.getPrototypeOf(X.prototype).constructor;X=this._ownAnnotations(X,t)||[];return(t!==Object?this.annotations(t):[]).concat(X)};
_.H._ownPropMetadata=function(X,t){if(X.propMetadata&&X.propMetadata!==t.propMetadata)return X=X.propMetadata,typeof X==="function"&&X.propMetadata&&(X=X.propMetadata),X;if(X.propDecorators&&X.propDecorators!==t.propDecorators){var G=X.propDecorators,y={};Object.keys(G).forEach(function(w){y[w]=IaJ(G[w])});
return y}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",X)};
_.H.propMetadata=function(X){var t=Object.getPrototypeOf(X.prototype).constructor,G={};if(t!==Object){var y=this.propMetadata(t);Object.keys(y).forEach(function(z){G[z]=y[z]})}var w=this._ownPropMetadata(X,t);
w&&Object.keys(w).forEach(function(z){var B=[];G.hasOwnProperty(z)&&B.push.apply(B,_.RY(G[z]));B.push.apply(B,_.RY(w[z]));G[z]=B});
return G};
_.H.getter=function(X){return function(t){return t[X]}};
_.H.setter=function(X){return function(t,G){return t[X]=G}};
_.H.method=function(X){return function(t,G){if(!t[X])throw Error("Ye`"+X);return t[X].apply(t,G)}};var wv4=function(){};var zpq=function(X){this.reflectionCapabilities=X};
_.S(zpq,wv4);_.H=zpq.prototype;_.H.factory=function(X){return this.reflectionCapabilities.factory(X)};
_.H.parameters=function(X){return this.reflectionCapabilities.parameters(X)};
_.H.annotations=function(X){return this.reflectionCapabilities.annotations(X)};
_.H.propMetadata=function(X){return this.reflectionCapabilities.propMetadata(X)};
_.H.getter=function(X){return this.reflectionCapabilities.getter(X)};
_.H.setter=function(X){return this.reflectionCapabilities.setter(X)};
_.H.method=function(X){return this.reflectionCapabilities.method(X)};var moV=new zpq(new y4h);var Xe=function(X,t){this.token=X;this.id=t;if(X===void 0||X===null)throw Error("cf");};
_.ke.Object.defineProperties(Xe.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return ru(this.token)}}});
_.ke.Object.defineProperties(Xe,{JSC$11674_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Ps.JSC$11678_numberOfKeys}}});
var HyY=function(){this._allKeys=new Map};
HyY.prototype.get=function(X){if(X instanceof Xe)return X;if(this._allKeys.has(X))return this._allKeys.get(X);var t=new Xe(X,Xe.JSC$11674_numberOfKeys);this._allKeys.set(X,t);return t};
_.ke.Object.defineProperties(HyY.prototype,{JSC$11678_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Ps=new HyY;var oP0=function(X,t,G){this.key=X;this.optional=t;this.visibility=G},iU_=function(X){return new oP0(X,!1,null)},v9J=[],xoE=function(X,t,G){this.key=X;
this.resolvedFactories=t;this.multiProvider=G},aal=function(X,t,G,y){this.factory=X;
this.dependencies=t;this.providerClass=G;this.providerValue=y};var $_={},tZ=function(X,t){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=t===void 0?null:t;X=_.J(X);for(t=X.next();!t.done;t=X.next())this.addProvider(t.value)};
_.H=tZ.prototype;_.H.addProvider=function(X){this.keyIdToIndex.set(X.key.id,this.keyIds.length);this.providers.push(X);this.keyIds.push(X.key.id);this.objs.push($_)};
_.H.resolve=function(X,t){t=t===void 0?$sq:t;return this._getByKey(Ps.get(N8(X)),null,t)};
_.H._new=function(X){if(this.constructedKeyIds[X.key.id])throw Pif(this,X.key);this.constructedKeyIds[X.key.id]=!0;return this._instantiateProvider(X)};
_.H._instantiateProvider=function(X){if(X.multiProvider){for(var t=Array(X.resolvedFactories.length),G=0;G<X.resolvedFactories.length;++G)t[G]=this._instantiate(X,X.resolvedFactories[G]);return t}return this._instantiate(X,X.resolvedFactories[0])};
_.H._instantiate=function(X,t){var G=this,y=t.factory;try{var w=t.dependencies.map(function(B){return G._getByReflectiveDependency(B)})}catch(B){throw B.addKey&&B.addKey(this,X.key),B;
}try{var z=y.apply(null,_.RY(w))}catch(B){throw E9V(this,B,X.key);}return z};
_.H._getByReflectiveDependency=function(X){return this._getByKey(X.key,X.visibility,X.optional?null:$sq)};
_.H._getByKey=function(X,t,G){return X===oy4?this:t instanceof z4h?this._getByKeySelf(X,G):this._getByKeyDefault(X,G,t)};
_.H._getObjByKeyId=function(X){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===X)return this.objs[t]===$_&&(this.objs[t]=this._new(this.providers[t])),this.objs[t];return $_};
_.H._throwOrNull=function(X,t){if(t!==$sq)return t;throw NYJ(this,X);};
_.H._getByKeySelf=function(X,t){var G=this._getObjByKeyId(X.id);return G!==$_?G:this._throwOrNull(X,t)};
_.H._getByKeyDefault=function(X,t,G){for(var y=G=G instanceof HG_?this.parent:this;G instanceof tZ;){var w=G._getObjByKeyId(X.id);if(w!==$_)return w;G=G.parent}w=void 0;if(G!==null)try{var z=G.resolve(X.token,t);if(z!==$_)return z}catch(B){w=B}if(!(y instanceof tZ&&BEV(X.token))){if(w)throw w;return this._throwOrNull(X,t)}for(z=y;z.parent instanceof tZ;)z=z.parent;z.addProvider(faA({provide:X.token,useClass:X.token}));return z.resolve(X.token,t)};
_.H.toString=function(){return this.displayName};
_.ke.Object.defineProperties(tZ.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+JJf(this,function(X){return' "'+X.key.displayName+'" '}).join(", ")+"])"}}});
var oy4=Ps.get(N8(the));(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 J4o=window.XRegExp;var B2R=-1,nyq=function(X){addEventListener("pageshow",function(t){t.persisted&&(B2R=t.timeStamp,X(t))},!0)};var byS=function(X,t,G){var y=VhY,w,z;return function(B){if(t.value>=0&&(B||G)){var V;if((z=t.value-((V=w)!=null?V:0))||w===void 0)w=t.value,t.delta=z,B=t.value,t.rating=B>y[1]?"poor":B>y[0]?"needs-improvement":"good",X(t)}}};var kFq=function(X){requestAnimationFrame(function(){return requestAnimationFrame(function(){return X()})})};var dsR=function(){var X=performance.getEntriesByType("navigation")[0];if(X&&X.responseStart>0&&X.responseStart<performance.now())return X};var epS=function(){var X,t;return(t=(X=dsR())==null?void 0:X.activationStart)!=null?t:0};var jDh=function(){var X=X===void 0?-1:X;var t=dsR(),G="navigate";B2R>=0?G="back-forward-cache":t&&(document.prerendering||epS()>0?G="prerender":document.wasDiscarded?G="restore":t.type&&(G=t.type.replace(/_/g,"-")));return{name:"LCP",value:X,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:G}};var V2l=new WeakMap;var gyP=function(X){var t=t===void 0?{}:t;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var G=new PerformanceObserver(function(y){Promise.resolve().then(function(){X(y.getEntries())})});
G.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},t));return G}}catch(y){}};var FMq=function(X){var t=!1;return function(){t||(X(),t=!0)}};var ye=-1,T2o=function(X){document.visibilityState==="hidden"&&ye>-1&&(ye=X.type==="visibilitychange"?X.timeStamp:0,removeEventListener("visibilitychange",T2o,!0),removeEventListener("prerenderingchange",T2o,!0))},A4J=function(){addEventListener("visibilitychange",T2o,!0);
addEventListener("prerenderingchange",T2o,!0)},Yeq=function(){if(ye<0){var X=epS(),t,G;
ye=(G=document.prerendering?void 0:(t=globalThis.performance.getEntriesByType("visibility-state").filter(function(y){return y.name==="hidden"&&y.startTime>X})[0])==null?void 0:t.startTime)!=null?G:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
A4J();nyq(function(){setTimeout(function(){ye=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;A4J()})})}return{get firstHiddenTime(){return ye}}};var sDq=function(X){document.prerendering?addEventListener("prerenderingchange",function(){return X()},!0):X()};var DsR=function(X){var t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?X():(X=FMq(X),document.addEventListener("visibilitychange",X,{once:!0}),t(function(){X();document.removeEventListener("visibilitychange",X)}))};var nPs=function(){};
nPs.prototype._processEntry=function(X){var t;(t=this._onBeforeProcessingEntry)==null||t.call(this,X)};var VhY=[2500,4E3],Myl=function(X){var t=t===void 0?{}:t;sDq(function(){var G=Yeq(),y=jDh(),w=bGV(t),z=function(F){t.reportAllChanges||(F=F.slice(-1));F=_.J(F);for(var T=F.next();!T.done;T=F.next())T=T.value,w._processEntry(T),T.startTime<G.firstHiddenTime&&(y.value=Math.max(T.startTime-epS(),0),y.entries=[T],V())},B=gyP(z);
if(B){var V=byS(X,y,t.reportAllChanges);for(var b=FMq(function(){z(B.takeRecords());B.disconnect();V(!0)}),e=_.J(["keydown",
"click","visibilitychange"]),g=e.next();!g.done;g=e.next())addEventListener(g.value,function(){return DsR(b)},{capture:!0,
once:!0});nyq(function(F){y=jDh();V=byS(X,y,t.reportAllChanges);kFq(function(){y.value=performance.now()-F.timeStamp;V(!0)})})}})};var SeP;var hpt;_.m=function(){return hpt!==void 0?hpt:hpt=document.createElement("template")};
document.head.appendChild(_.m().content);var Zyt;_.le({_template:function(){if(Zyt!==void 0)return Zyt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
var t=X.content,G=t.insertBefore;SeP===void 0&&(SeP=document.createElement("template"));var y=SeP;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return Zyt=X},
is:"tp-yt-app-toolbar"});var qez;var C7e;_.wB=function(){};
_.wB=_.le({_template:function(){if(C7e!==void 0)return C7e;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;qez===void 0&&(qez=document.createElement("template"));var y=qez;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return C7e=X},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.wB.instance||(_.wB.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(X){this._text===X&&(X+="\u00a0");this._text="";this.async(function(){this._text=X},this.timeout)},
_onIronAnnounce:function(X){X.detail&&X.detail.text&&this.announce(X.detail.text)}});
_.wB.instance=null;_.wB.requestAvailability=function(){_.wB.instance||(_.wB.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.wB.instance):document.addEventListener("load",function(){document.body.appendChild(_.wB.instance)})};var KMq;var OyS;/*

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

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 zQ,r4h,N2t;zQ=Element.prototype;r4h=zQ.matches||zQ.matchesSelector||zQ.mozMatchesSelector||zQ.msMatchesSelector||zQ.oMatchesSelector||zQ.webkitMatchesSelector;N2t=function(){};
_.Eyh=function(X){var t=P7q,G=[];return t._collectTabbableNodes(X,G)?t._sortByTabIndex(G):G};
_.H=N2t.prototype;_.H._normalizedTabIndex=function(X){return(r4h.call(X,"input, select, textarea, button, object")?r4h.call(X,":not([disabled])"):r4h.call(X,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(X=X.getAttribute("tabindex")||0,Number(X)):-1};
_.H._collectTabbableNodes=function(X,t){if(X.nodeType!==Node.ELEMENT_NODE||!this._isVisible(X))return!1;var G=this._normalizedTabIndex(X),y=G>0;G>=0&&t.push(X);if(X.localName==="content"||X.localName==="slot")G=_.Es(X).getDistributedNodes();else{var w;G=((w=_.Es(X).shadowRoot)!=null?w:_.Es(X.root||X)).children}for(X=0;X<G.length;X++)y=this._collectTabbableNodes(G[X],t)||y;return y};
_.H._isVisible=function(X){var t=X.style;return t.visibility!=="hidden"&&t.display!=="none"?(t=window.getComputedStyle(X),t.visibility!=="hidden"&&t.display!=="none"):!1};
_.H._sortByTabIndex=function(X){var t=X.length;if(t<2)return X;var G=Math.ceil(t/2);t=this._sortByTabIndex(X.slice(0,G));X=this._sortByTabIndex(X.slice(G));return this._mergeSortByTabIndex(t,X)};
_.H._mergeSortByTabIndex=function(X,t){for(var G=[];X.length>0&&t.length>0;)this._hasLowerTabOrder(X[0],t[0])?G.push(t.shift()):G.push(X.shift());return G.concat(X,t)};
_.H._hasLowerTabOrder=function(X,t){X=Math.max(X.tabIndex,0);t=Math.max(t.tabIndex,0);return X===0||t===0?t>X:X>t};
var P7q=new N2t;var Ust;var msS;_.le({_template:function(){if(msS!==void 0)return msS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Ust===void 0&&(Ust=document.createElement("template"));var y=Ust;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return msS=X},
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&&_.Es(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Es(this.parentNode).removeChild(this)},
_onTransitionend:function(X){X&&X.target===this&&this.complete()},
_openedChanged:function(X){X?this.prepare():(X=window.getComputedStyle(this),X.transitionDuration!=="0s"&&X.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 HM=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;aO(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)};
HM.prototype._bringOverlayAtIndexToFront=function(X){var t=this._overlays[X];if(t){var G=this._overlays.length-1,y=this._overlays[G];y&&this._shouldBeBehindOverlay(t,y)&&G--;if(!(X>=G)){y=Math.max(this._getZ(_.RpY(this)),this._minimumZ);for(this._getZ(t)<=y&&this._applyOverlayZ(t,y);X<G;)this._overlays[X]=this._overlays[X+1],X++;this._overlays[G]=t}}};
HM.prototype.addOverlay=function(X){var t=this._overlays.indexOf(X);if(t>=0)this._bringOverlayAtIndexToFront(t);else{t=this._overlays.length;var G=this._overlays[t-1],y=Math.max(this._getZ(G),this._minimumZ),w=this._getZ(X);G&&this._shouldBeBehindOverlay(X,G)&&(this._applyOverlayZ(G,y),t--,y=Math.max(this._getZ(this._overlays[t-1]),this._minimumZ));w<=y&&this._applyOverlayZ(X,y);this._overlays.splice(t,0,X)}this.trackBackdrop()};
HM.prototype.removeOverlay=function(X){X=this._overlays.indexOf(X);X!==-1&&(this._overlays.splice(X,1),this.trackBackdrop())};
_.RpY=function(X){return X._overlays[X._overlays.length-1]};
_.H=HM.prototype;_.H.trackBackdrop=function(){var X=this._overlayWithBackdrop();if(X||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(X)-1,this.backdropElement.opened=!!X,this.backdropElement.prepare()};
_.H._overlayWithBackdrop=function(){for(var X=this._overlays.length-1;X>=0;X--)if(this._overlays[X].withBackdrop)return this._overlays[X]};
_.H._getZ=function(X){var t=this._minimumZ;if(X){var G,y,w=Number(((G=X.hostElement)!=null?G:X).style.zIndex||window.getComputedStyle((y=X.hostElement)!=null?y:X).zIndex);w===w&&(t=w)}return t};
_.H._setZ=function(X,t){var G;((G=X.hostElement)!=null?G:X).style.zIndex=t};
_.H._applyOverlayZ=function(X,t){this._setZ(X,t+2)};
_.H._overlayInPath=function(X){X=X||[];for(var t=0;t<X.length;t++){var G=void 0;if(((G=X[t].polymerController)!=null?G:X[t])._manager===this)return X[t]}};
_.H._onCaptureClick=function(X){var t=this._overlays.length-1;if(t!==-1)for(var G=_.Es(X).path,y,w;(y=this._overlays[t])&&this._overlayInPath(G)!==((w=y.hostElement)!=null?w:y);)if(y._onCaptureClick(X),y.allowClickThrough)t--;else break};
_.H._onCaptureFocus=function(X){var t=_.RpY(this);t&&t._onCaptureFocus(X)};
_.H._onCaptureKeyDown=function(X){var t=_.RpY(this);t&&(_.NN.keyboardEventMatchesKeys(X,"esc")?t._onCaptureEsc(X):_.NN.keyboardEventMatchesKeys(X,"tab")&&t._onCaptureTab(X))};
_.H._shouldBeBehindOverlay=function(X,t){return!X.alwaysOnTop&&t.alwaysOnTop&&!t.contains(X)};
_.ke.Object.defineProperties(HM.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 X=document.activeElement;X&&X instanceof Element!==!1||(X=document.body);for(;X.root&&_.Es(X.root).activeElement;)X=_.Es(X.root).activeElement;return X}}});
_.oM=new HM;var kTV=0,dgh=0,e4h=null,j6l=[],Us=["wheel","mousewheel","DOMMouseScroll"],gPl;_.A("web_no_lock_on_touchstart_killswitch")&&(Us.push("touchstart"),Us.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;_.JZ={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:_.oM},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var X;return this._focusedChild||_.Es((X=this.hostElement)!=null?X:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var X;return _.Eyh((X=this.hostElement)!=null?X: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 X;this._observer=_.Es((X=this.hostElement)!=null?X:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var X;_.Es((X=this.hostElement)!=null?X:this).unobserveNodes(this._observer)}this._observer=null;for(var t in this.__rafs)this.__rafs[t]!==null&&cancelAnimationFrame(this.__rafs[t]);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(X){this.fire("iron-overlay-canceled",X,{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 X;((X=this.hostElement)!=null?X:this).style.outline="none";var t;((t=this.hostElement)!=null?t:this).style.display="none"}},
_openedChanged:function(X){if(X){var t;((t=this.hostElement)!=null?t:this).removeAttribute("aria-hidden")}else{var G;((G=this.hostElement)!=null?G: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 X;if(this.withBackdrop&&!((X=this.hostElement)!=null?X:this).hasAttribute("tabindex")){var t;((t=this.hostElement)!=null?t:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var G;((G=this.hostElement)!=null?G: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 X;((X=this.hostElement)!=null?X:this).style.display="none";var t;((t=this.hostElement)!=null?t:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var X,t;((X=this.hostElement)!=null?X:this).style.transition=((t=this.hostElement)!=null?t:this).style.webkitTransition="none";var G,y;((G=this.hostElement)!=null?G:this).style.transform=((y=this.hostElement)!=null?y:this).style.webkitTransform="none";var w;((w=this.hostElement)!=null?w:this).style.display=""},
_finishPositioning:function(){var X;((X=this.hostElement)!=null?X:this).style.display="none";this.scrollTop=this.scrollTop;var t,G;((t=this.hostElement)!=null?t:this).style.transition=((G=this.hostElement)!=null?G:this).style.webkitTransition="";var y,w;((y=this.hostElement)!=null?y:this).style.transform=((w=this.hostElement)!=null?w:this).style.webkitTransform="";var z;((z=this.hostElement)!=null?z:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var X=this._manager.deepActiveElement,t;if(!(t=X===document.body))a:{for(;X;X=X.assignedSlot||X.parentNode||X.host)if(X===this){t=!0;break a}t=!1}t&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(X){this.noCancelOnOutsideClick||this.cancel(X)},
_onCaptureFocus:function(X){if(this.withBackdrop){var t=_.Es(X).path;t.indexOf(this)===-1?(X.stopPropagation(),this._applyFocus()):this._focusedChild=t[0]}},
_onCaptureEsc:function(X){this.noCancelOnEscKey||this.cancel(X)},
_onCaptureTab:function(X){if(this.withBackdrop){this.__ensureFirstLastFocusables();var t=X.shiftKey,G=t?this.__firstFocusableNode:this.__lastFocusableNode;t=t?this.__lastFocusableNode:this.__firstFocusableNode;if(G===t)G=!0;else{var y=this._manager.deepActiveElement;G=y===G||y===this}G&&(X.preventDefault(),this._focusedChild=t,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 X=this._focusableNodes;this.__firstFocusableNode=X[0];this.__lastFocusableNode=X[X.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(X,t){var G=this.__rafs;G[X]!==null&&cancelAnimationFrame(G[X]);G[X]=requestAnimationFrame(function(){G[X]=null;t.call(this)}.bind(this))},
__updateScrollObservers:function(X,t,G){X&&t&&this.__isValidScrollAction(G)?(G==="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),gPl=_._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()):(X=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),X!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(X,1),gPl=_._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($e)for(var X=this;X;)X.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&X.host&&this.__rootNodes.push(X),X=X.host||X.assignedSlot||X.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(t){t.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(X){X.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(X){return X==="lock"||X==="refit"||X==="cancel"},
__onCaptureScroll:function(X){if(!(this.__isAnimating||_.Es(X).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(X)}},
__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)}};
_.BM=[pvz,_.ax,_.JZ];_.le({_template:function(){if(WMS!==void 0)return WMS;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;I7h===void 0&&(I7h=document.createElement("template"));var y=I7h;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return WMS=X},
is:"tp-yt-iron-dropdown",behaviors:[_.P3,_.NN,_.BM,SW4],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 X=_.Es(this.$.content).getDistributedNodes(),t=0,G=X.length;t<G;t++)if(X[t].nodeType===Node.ELEMENT_NODE)return X[t]},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(),_.JZ._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.JZ._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.JZ._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var X=this.containedElement,t=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),G=0;G<t.length;G++)t[G].node=X;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(X){this._readied&&(X?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var X=this.focusTarget||this.containedElement;X&&this.opened&&!this.noAutoFocus?X.focus():_.JZ._applyFocus.apply(this,arguments)}});var iyz;var LMq;/*

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 vye=new _.Rx({type:"iconset"});
_.le({_template:function(){if(LMq!==void 0)return LMq;var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;iyz===void 0&&(iyz=document.createElement("template"));
var y=iyz;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return LMq=X},
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(X){X=(X||"").split(":");this._iconName=X.pop();this._iconsetName=X.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&&_.Es(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=vye.byKey(this._iconsetName)){var X=this._iconset.applyIcon(this,this._iconName,this.theme);X&&X.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,_.Es(this.root).appendChild(this._img)}});var a74;var l7o;_.le({_template:function(){if(l7o!==void 0)return l7o;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
var t=X.content,G=t.insertBefore;a74===void 0&&(a74=document.createElement("template"));var y=a74;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return l7o=X},
is:"tp-yt-iron-input",behaviors:[_.LB],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(){_.wB.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Es(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Es(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 X=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":X=/[0-9.,e-]/}return X},_bindValueChanged:function(X,t){t&&(X===void 0?t.value=null:X!==t.value&&(this.inputElement.value=X),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:X}))},
_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(X){var t=X.keyCode==19||X.keyCode==20||X.keyCode==45||X.keyCode==46||X.keyCode==144||X.keyCode==145||X.keyCode>32&&X.keyCode<41||X.keyCode>111&&X.keyCode<124;return!(X.keyCode==8||X.keyCode==9||X.keyCode==13||X.keyCode==27)&&!(X.charCode==0&&t)},
_onKeypress:function(X){if(this.allowedPattern||this.inputElement.type==="number"){var t=this._patternRegExp;if(t&&!(X.metaKey||X.ctrlKey||X.altKey)){this._patternAlreadyChecked=!0;var G=String.fromCharCode(X.charCode);this._isPrintable(X)&&!t.test(G)&&(X.preventDefault(),this._announceInvalidCharacter("Invalid character "+G+" not entered."))}}},
_checkPatternValidity:function(){var X=this._patternRegExp;if(!X)return!0;for(var t=0;t<this.inputElement.value.length;t++)if(!X.test(this.inputElement.value[t]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var X=this.inputElement.checkValidity();X&&(this.required&&this.bindValue===""?X=!1:this.hasValidator()&&(X=_.LB.validate.call(this,this.bindValue)));this.invalid=!X;this.fire("iron-input-validate");return X},
_announceInvalidCharacter:function(X){this.fire("iron-announce",{text:X})},
_computeValue:function(X){return X}});var xs4;var f7J;var Mhq=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Xat=Mhq&&Mhq[1]>=8;
_.le({_template:function(){if(f7J!==void 0)return f7J;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;xs4===void 0&&(xs4=document.createElement("template"));var y=xs4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return f7J=X},
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:[reE,_.ax,_.D7z,n1S],_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 _.Es(_.Es(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var X=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,X-this._physicalCount)},set _virtualStart(X){X=this._clamp(X,0,this._maxVirtualStart);this.grid&&(X-=X%this._itemsPerRow);this._virtualStartVal=X},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(X){X%=this._physicalCount;X<0&&(X=this._physicalCount+X);this.grid&&(X-=X%this._itemsPerRow);this._physicalStartVal=X},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(X){this._physicalCountVal=X},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 X=this._firstVisibleIndexVal;if(X==null){var t=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
X=this._iterateItems(function(G,y){t+=this._getPhysicalSizeIncrement(G);if(t>this._scrollPosition)return this.grid?y-y%this._itemsPerRow:y;if(this.grid&&this._virtualCount-1===y)return y-y%this._itemsPerRow})||0}return X},
get lastVisibleIndex(){var X=this._lastVisibleIndexVal;if(X==null){if(this.grid)X=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var t=this._physicalTop+this._scrollOffset;this._iterateItems(function(G,y){t<this._scrollBottom&&(X=y);t+=this._getPhysicalSizeIncrement(G)})}this._lastVisibleIndexVal=X}return X},
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,_.aL);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(X){this.style.webkitOverflowScrolling=X===this?"touch":"";this.style.overflowY=X===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.aL)},
updateViewportBoundaries:function(){var X=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(X["padding-top"],10);this._isRTL=X.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var X=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),t=X-this._scrollPosition,G=t>=0;this._scrollPosition=X;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(t)>this._physicalSize&&this._physicalSize>0?(t-=this._scrollOffset,G=Math.round(t/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=G,this._physicalStart+=G,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(X=this._getReusables(G),G?(this._physicalTop=X.physicalTop,this._virtualStart+=X.indexes.length,this._physicalStart+=X.indexes.length):(this._virtualStart=this._virtualStart-X.indexes.length,this._physicalStart=this._physicalStart-X.indexes.length),this._update(X.indexes,G?null:X.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),fl))},
_getReusables:function(X){var t=[],G=this._hiddenContentSize*this._ratio,y=this._virtualStart,w=this._virtualEnd,z=this._physicalCount,B=this._physicalTop+this._scrollOffset;var V=this._physicalBottom+this._scrollOffset;var b=this._scrollPosition,e=this._scrollBottom;if(X){var g=this._physicalStart;V=b-B}else g=this._physicalEnd,V-=e;for(;;){var F=this._getPhysicalSizeIncrement(g);V-=F;if(t.length>=z||V<=G)break;if(X){if(w+t.length+1>=this._virtualCount)break;if(B+F>=b-this._scrollOffset)break;t.push(g);
B+=F;g=(g+1)%z}else{if(y-t.length<=0)break;if(B+this._physicalSize-F<=e)break;t.push(g);B-=F;g=g===0?z-1:g-1}}return{indexes:t,physicalTop:B-this._scrollOffset}},
_update:function(X,t){if(!(X&&X.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(X);this._updateMetrics(X);if(t)for(;t.length;)X=t.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(X);this._positionItems();this._updateScrollerSize()}},
_createPool:function(X){this._ensureTemplatized();var t,G=Array(X);for(t=0;t<X;t++){var y=this.stamp(null);G[t]=y.root.querySelector("*");this._itemsParent.appendChild(y.root)}return G},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(X){X=this._clamp(this._physicalCount+X,3,this._virtualCount-this._virtualStart);X=this._convertIndexToCompleteRow(X);if(this.grid){var t=X%this._itemsPerRow;t&&X-t<=this._physicalCount&&(X+=this._itemsPerRow);X-=t}X-=this._physicalCount;t=Math.round(this._physicalCount*.5);if(!(X<0)){if(X>0){t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(X));for(var G=0;G<X;G++)this._physicalSizes.push(0);this._physicalCount+=X;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=X);this._update();this._templateCost=(window.performance.now()-t)/X;t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Lxz):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,t),fl))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var X=this._getReusables(!0);this._physicalTop=X.physicalTop;this._virtualStart+=X.indexes.length;this._physicalStart+=X.indexes.length;this._update(X.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 X={__key__:!0};X[this.as]=!0;X[this.indexAs]=!0;X[this.selectedAs]=!0;X.tabIndex=!0;this._instanceProps=X;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(X,t){typeof t!=="undefined"&&(this.notifyResize(),_.O_(),X&&this._updateGridMetrics())},
_itemsChanged:function(X){if(X.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,
_.aL);else if(X.path==="items.splices"){this._adjustVirtualIndex(X.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(X.value.indexSplices.some(function(G){return G.addedCount>0||G.removed.length>0})){var t=this._getActiveElement();
this.contains(t)&&t.blur()}X=X.value.indexSplices.some(function(G){return G.index+G.addedCount>=this._virtualStart&&G.index<=this._virtualEnd},this);
this._isClientFull()&&!X||this._debounce("_render",this._render,_.aL)}else X.path!=="items.length"&&this._forwardItemPath(X.path,X.value)},
_forwardItemPath:function(X,t){X=X.slice(6);var G=X.indexOf(".");G===-1&&(G=X.length);var y,w=this.modelForElement(this._offscreenFocusedItem),z=parseInt(X.substring(0,G),10);if(y=this._isIndexRendered(z)){var B=this._getPhysicalIndex(z);var V=this.modelForElement(this._physicalItems[B])}else w&&(V=w);V&&V[this.indexAs]===z&&(X=X.substring(G+1),X=this.as+(X?"."+X:""),V._setPendingPropertyOrPath(X,t,!1,!0),V._flushProperties&&V._flushProperties(),y&&(this._updateMetrics([B]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(X){X.forEach(function(t){t.removed.forEach(this._removeItem,this);t.index<this._virtualStart&&(t=Math.max(t.addedCount-t.removed.length,t.index-this._virtualStart),this._virtualStart+=t,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=t))},this)},
_removeItem:function(X){this.$.selector.deselect(X);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===X&&this._removeFocusedItem()},
_iterateItems:function(X,t){var G,y;if(arguments.length===2&&t)for(y=0;y<t.length;y++){var w=t[y];var z=this._computeVidx(w);if((G=X.call(this,w,z))!=null)return G}else{w=this._physicalStart;for(z=this._virtualStart;w<this._physicalCount;w++,z++)if((G=X.call(this,w,z))!=null)return G;for(w=0;w<this._physicalStart;w++,z++)if((G=X.call(this,w,z))!=null)return G}},
_computeVidx:function(X){return X>=this._physicalStart?this._virtualStart+(X-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+X},
_assignModels:function(X){this._iterateItems(function(t,G){var y=this._physicalItems[t],w=this.items&&this.items[G];if(w!=null){var z=this.modelForElement(y);z.__key__=null;this._forwardProperty(z,this.as,w);this._forwardProperty(z,this.selectedAs,this.$.selector.isSelected(w));this._forwardProperty(z,this.indexAs,G);this._forwardProperty(z,"tabIndex",this._focusedVirtualIndex===G?0:-1);this._physicalIndexForKey[z.__key__]=t;z._flushProperties&&z._flushProperties(!0);y.removeAttribute("hidden")}else y.setAttribute("hidden",
"")},X)},
_updateMetrics:function(X){_.O_();var t=0,G=0,y=this._physicalAverageCount,w=this._physicalAverage;this._iterateItems(function(z){G+=this._physicalSizes[z];this._physicalSizes[z]=this._physicalItems[z].offsetHeight;t+=this._physicalSizes[z];this._physicalAverageCount+=this._physicalSizes[z]?1:0},X);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(G=this._itemsPerRow===1?G:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+t-G,this._itemsPerRow=1);this._physicalAverageCount!==y&&(this._physicalAverage=Math.round((w*y+t)/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 X=this._physicalTop;if(this.grid){var t=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(G,y){var w=Math.floor(y%this._itemsPerRow*this._itemWidth+t);this._isRTL&&(w*=-1);this.translate3d(w+"px",X+"px",0,this._physicalItems[G]);this._shouldRenderNextRow(y)&&(X+=this._rowHeight)})}else this._iterateItems(function(G){this.translate3d(0,X+"px",0,this._physicalItems[G]);
X+=this._physicalSizes[G]})},
_getPhysicalSizeIncrement:function(X){return this.grid?this._computeVidx(X)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[X]},
_shouldRenderNextRow:function(X){return X%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var X=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(X!==0){this._physicalTop=this._physicalTop-X;var t=this._scrollPosition;!Xat&&t>0&&this._resetScrollPosition(t-X)}},
_resetScrollPosition:function(X){this.scrollTarget&&X>=0&&(this._scrollPosition=this._scrollTop=X)},
_updateScrollerSize:function(X){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((X=(X=(X=X||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(X){return this.scrollToIndex(this.items.indexOf(X))},
scrollToIndex:function(X){if(!(typeof X!=="number"||X<0||X>this.items.length-1)&&(_.O_(),this._physicalCount!==0)){X=this._clamp(X,0,this._virtualCount-1);if(!this._isIndexRendered(X)||X>=this._maxVirtualStart)this._virtualStart=this.grid?X-this._itemsPerRow*2:X-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var t=this._physicalStart,G=this._virtualStart,y=0,w=this._hiddenContentSize;G<X&&
y<=w;)y+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,G++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+y);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)},_.aL)},
selectItem:function(X){return this.selectIndex(this.items.indexOf(X))},
selectIndex:function(X){if(!(X<0||X>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(X)){var t=this.modelForElement(this._physicalItems[this._getPhysicalIndex(X)]);t&&(t[this.selectedAs]=!0);this.updateSizeForIndex(X)}this.$.selector.selectIndex(X)}},
deselectItem:function(X){return this.deselectIndex(this.items.indexOf(X))},
deselectIndex:function(X){X<0||X>=this._virtualCount||(this._isIndexRendered(X)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(X)])[this.selectedAs]=!1,this.updateSizeForIndex(X)),this.$.selector.deselectIndex(X))},
toggleSelectionForItem:function(X){return this.toggleSelectionForIndex(this.items.indexOf(X))},
toggleSelectionForIndex:function(X){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(X):this.$.selector.isSelected(this.items[X]))?this.deselectIndex(X):this.selectIndex(X)},
clearSelection:function(){this._iterateItems(function(X){this.modelForElement(this._physicalItems[X])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(X){(X?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(X){var t=this.modelForElement(X.target);if(t){var G=_.Es(X).path[0];X=this._getActiveElement();var y=this._physicalItems[this._getPhysicalIndex(t[this.indexAs])];if(G.localName!=="input"&&G.localName!=="button"&&G.localName!=="select"){G=t.tabIndex;t.tabIndex=-100;var w=X?X.tabIndex:-1;t.tabIndex=G;X&&y!==X&&y.contains(X)&&w!==-100||this.toggleSelectionForItem(t[this.as])}}},
_multiSelectionChanged:function(X){this.clearSelection();this.$.selector.multi=X},
updateSizeForItem:function(X){return this.updateSizeForIndex(this.items.indexOf(X))},
updateSizeForIndex:function(X){if(!this._isIndexRendered(X))return null;this._updateMetrics([this._getPhysicalIndex(X)]);this._positionItems();return null},
_manageFocus:function(){var X=this._focusedVirtualIndex;X>=0&&X<this._virtualCount?this._isIndexRendered(X)?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(X){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(X/this._itemsPerRow)*this._itemsPerRow:X},
_isIndexRendered:function(X){return X>=this._virtualStart&&X<=this._virtualEnd},
_isIndexVisible:function(X){return X>=this.firstVisibleIndex&&X<=this.lastVisibleIndex},
_getPhysicalIndex:function(X){return(this._physicalStart+(X-this._virtualStart))%this._physicalCount},
focusItem:function(X){this._focusPhysicalItem(X)},
_focusPhysicalItem:function(X){if(!(X<0||X>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(X)||this.scrollToIndex(X);var t=this._physicalItems[this._getPhysicalIndex(X)],G=this.modelForElement(t),y;G.tabIndex=-100;t.tabIndex===-100&&(y=t);y||(y=_.Es(t).querySelector('[tabindex="-100"]'));G.tabIndex=0;this._focusedVirtualIndex=X;y&&y.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 X=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var t=this.stamp(null);this._focusBackfillItem=t.root.querySelector("*");this._itemsParent.appendChild(t.root)}this._offscreenFocusedItem=this._physicalItems[X];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[X]=this._focusBackfillItem;this._focusedPhysicalIndex=X;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var X=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),t=this._physicalItems[X];if(t){var G=this.modelForElement(t),y=this.modelForElement(this._offscreenFocusedItem);G[this.as]===y[this.as]?(this._focusBackfillItem=t,G.tabIndex=-1,this._physicalItems[X]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(X){X=this.modelForElement(X.target);var t=this.modelForElement(this._focusedItem),G=this._offscreenFocusedItem!==null,y=this._focusedVirtualIndex;X&&(t===X?this._isIndexVisible(y)||this.scrollToIndex(y):(this._restoreFocusedItem(),t&&(t.tabIndex=-1),X.tabIndex=0,this._focusedVirtualIndex=y=X[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(y),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],G&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(X){switch(X.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&X.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&&X.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(X)}},
_clamp:function(X,t,G){return Math.min(G,Math.max(t,X))},
_debounce:function(X,t,G){this._debouncers=this._debouncers||{};this._debouncers[X]=_.hz(this._debouncers[X],G,t.bind(this));_.ZZ(this._debouncers[X])},
_forwardProperty:function(X,t,G){X._setPendingProperty(t,G)},
_forwardHostPropV2:function(X,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&this.modelForElement(G).forwardHostProp(X,t)},this)},
_notifyInstancePropV2:function(X,t,G){Sef(this.as,t)&&(X=X[this.indexAs],t==this.as&&(this.items[X]=G),this.notifyPath(OA(this.as,"items."+X,t),G))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(X,t,G){t.indexOf(this.as+".")===0&&this.notifyPath("items."+X.__key__+"."+t.slice(this.as.length+1),G)},
_forwardParentPath:function(X,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&this.modelForElement(G).notifyPath(X,t)},this)},
_forwardParentProp:function(X,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&(this.modelForElement(G)[X]=t)},this)},
_getActiveElement:function(){var X=this._itemsParent.node.domHost;return _.Es(X?X.root:document).activeElement},
_scrollTargetChanged:function(X,t){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(t)if(X==="document")this.scrollTarget=this._doc;else if(typeof X==="string"){var G,y;this.scrollTarget=(t=(y=(G=this.domHost)==null?void 0:G.polymerController)!=null?y:this.domHost)&&t.$?t.$[X]:_.Es(this.ownerDocument).querySelector("#"+X)}else this._isValidScrollTarget()&&(this._oldScrollTarget=X,this._toggleScrollListener(this._shouldHaveListener,X))}});var $MB;var twe;var GCh=function(X,t,G,y){X-=G;t-=y;return Math.sqrt(X*X+t*t)},yi4=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
Fpv.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var TEJ=function(X){X.maxRadius=0;X.mouseDownStart=0;X.mouseUpStart=0;X.xStart=0;X.yStart=0;X.xEnd=0;X.yEnd=0;X.containerMetrics=new Fpv(X.element)};
AJA.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var X=yi4()-this.mouseDownStart;this.mouseUpStart&&(X-=this.mouseUpElapsed);return X},get mouseUpElapsed(){return this.mouseUpStart?yi4()-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 X=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(X*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-X/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var X=this.radius/(this.containerMetrics.size/2);var t=this.xNow-this.containerMetrics.width/2;var G=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+t+"px, "+G+"px)";this.waveContainer.style.transform="translate3d("+t+"px, "+G+"px, 0)";this.wave.style.webkitTransform="scale("+X+","+X+")";this.wave.style.transform="scale3d("+X+","+X+",1)"},
downAction:function(X){var t=this.containerMetrics.width/2,G=this.containerMetrics.height/2;TEJ(this);this.mouseDownStart=yi4();this.center?(this.xStart=t,this.yStart=G):(this.xStart=X?X.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=X?X.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=t,this.yEnd=G);X=this.containerMetrics;t=this.xStart;G=this.yStart;this.maxRadius=Math.max(GCh(t,G,0,0),GCh(t,G,
X.width,0),GCh(t,G,0,X.height),GCh(t,G,X.width,X.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=yi4())},
remove:function(){_.Es(_.Es(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.le({_template:function(){if(twe!==void 0)return twe;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;$MB===void 0&&($MB=document.createElement("template"));var y=$MB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return twe=X},
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(){_.Es(this).parentNode.nodeType==11?this.keyEventTarget=_.Es(this).getOwnerRoot().host:this.keyEventTarget=_.Es(this).parentNode;var X=this.keyEventTarget;this.listen(X,"up","uiUpAction");this.listen(X,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(X){X.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var X=0;X<this.ripples.length;++X)if(!this.ripples[X].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(X){this.noink||this.downAction(X)},
downAction:function(X){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(X),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(X){this.noink||this.upAction(X)},
upAction:function(X){this.holdDown||(this.ripples.forEach(function(t){t.upAction(X)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var X=0;X<this.ripples.length;++X){var t=this.ripples[X];t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var X=new AJA(this);_.Es(this.$.waves).appendChild(X.waveContainer);this.$.background.style.backgroundColor=X.color;this.ripples.push(X);this._setAnimating(!0);return X},
removeRipple:function(X){var t=this.ripples.indexOf(X);t<0||(this.ripples.splice(t,1),X.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var X;for(X=0;X<this.ripples.length;++X){var t=this.ripples[X];t.draw();this.$.background.style.opacity=t.outerOpacity;t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t)}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(X,t){t!==void 0&&(X?this.downAction():this.upAction())}});var ne={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(X){EC._downHandler.call(this,X);this.pressed&&this.ensureRipple(X)},
ensureRipple:function(X){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var t=this._rippleContainer||this.root;t&&_.Es(t).appendChild(this._ripple);if(X){t=_.Es(this._rippleContainer||this);var G=_.Es(X).rootTarget;t.deepContains(G)&&this._ripple.uiDownAction(X)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(X){this.hasRipple()&&(this._ripple.noink=X)}};var wat={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 X=1;this.disabled?X=0:this.active||this.pressed?X=4:this.receivedFocusFromKeyboard&&(X=3);this._setElevation(X)},
_computeKeyboardClass:function(X){this.toggleClass("keyboard-focus",X)},
_spaceKeyDownHandler:function(X){EC._spaceKeyDownHandler.call(this,X);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(X){EC._spaceKeyUpHandler.call(this,X);this.hasRipple()&&this._ripple.uiUpAction()}},zCq=[b54,
_.P3,ne,wat];_.HVJ={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(X){X&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=X)},
_createRipple:function(){var X=ne._createRipple();X.id="ink";X.setAttribute("center","");X.classList.add("circle");return X}};
_.olq=[b54,_.P3,ne,_.HVJ];_.JiS=[_.olq,eI4,{_checkedChanged:function(){d7J._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){ne._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var BPt;var nlP;var Vwe=function(){};
_.H=Vwe.prototype;_.H.registered=function(){};
_.H.addOwnKeyBinding=function(){};
_.H.removeOwnKeyBindings=function(){};
_.H.keyboardEventMatchesKeys=function(){};
_.H._collectKeyBindings=function(){};
_.H._prepKeyBindings=function(){};
_.H._addKeyBinding=function(){};
_.H._resetKeyEventListeners=function(){};
_.H._listenKeyEventListeners=function(){};
_.H._unlistenKeyEventListeners=function(){};
_.H._onKeyBindingEvent=function(){};
_.H._triggerKeyHandler=function(){};
_.H._tapHandler=function(){};
_.H._focusChanged=function(){};
_.H._detectKeyboardFocus=function(){};
_.H._userActivate=function(){};
_.H._upHandler=function(){};
_.H._asyncClick=function(){};
_.H._pressedChanged=function(){};
_.H._ariaActiveAttributeChanged=function(){};
_.H._activeChanged=function(){};
_.H._controlStateChanged=function(){};
_.H._changedButtonState=function(){};
_.H._focusBlurHandler=function(){};
_.H._disabledChanged=function(){};
_.H._changedControlState=function(){};
_.H._buttonStateChanged=function(){};
_.H._downHandler=function(){};
_.H.ensureRipple=function(){};
_.H.getRipple=function(){};
_.H.hasRipple=function(){};
_.H._createRipple=function(){};
_.H._noinkChanged=function(){};
_.H._computeKeyboardClass=function(){};
_.H._spaceKeyDownHandler=function(){};
_.H._spaceKeyUpHandler=function(){};
_.H._setPressed=function(){};
_.H._setPointerDown=function(){};
_.H._setReceivedFocusFromKeyboard=function(){};
_.H._setFocused=function(){};
_.H._setElevation=function(){};
Vwe=_.le({_template:function(){if(nlP!==void 0)return nlP;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
var t=X.content,G=t.insertBefore;BPt===void 0&&(BPt=document.createElement("template"));var y=BPt;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return nlP=X},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[zCq],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?wat._calculateElevation.apply(this):this._setElevation(0)}});var bVz;var kCJ;var dM4={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(X){_.A("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(X)},
_onDialogClickWrapped:function(X){_.A("dialog_behavior_no_tap_killswitch")||this._onDialogClick(X)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(X,t){t&&(X?(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(X){X?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(X){this.closingReason=this.closingReason||{};this.closingReason.confirmed=X},
_onDialogClick:function(X){for(var t=_.Es(X).path,G=0,y,w=t.indexOf((y=this.hostElement)!=null?y:this);G<w;G++)if(y=t[G],y.hasAttribute&&(y.hasAttribute("dialog-dismiss")||y.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(y.hasAttribute("dialog-confirm"));this.close();X.stopPropagation();break}}},eCY=[_.BM,
dM4];var jAt=document.createElement("template");_.Z(jAt,'<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(jAt.content);var gl4=document.createElement("template");_.Z(gl4,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(gl4.content);_.le({_template:function(){if(kCJ!==void 0)return kCJ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
var t=X.content,G=t.insertBefore;bVz===void 0&&(bVz=document.createElement("template"));var y=bVz;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return kCJ=X},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[eCY,SW4],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 Fhz;var TPY;_.le({_template:function(){if(TPY!==void 0)return TPY;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Fhz===void 0&&(Fhz=document.createElement("template"));var y=Fhz;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return TPY=X},
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 X,t,G;if(((X=window.ShadyDOM)==null?void 0:X.noPatch)!==!0&&((t=window.ShadyDOM)==null?void 0:t.noPatch)!=="on-demand"||((G=this.__shady_parentNode)==null?void 0:G.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(dM4)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Aio=_.Vc(['<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>']),Y5S=_.e7B(Aio);Y5S.setAttribute("style","display: none;");document.head.appendChild(Y5S.content);var sAP;var DMo;var S5h;var hCJ;_.le({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[lS],configure:function(X){var t=X.node,G=t.getBoundingClientRect().height;return this._effect=new KeyframeEffect(t,[{height:G/2+"px"},{height:G+"px"}],this.timingFromConfig(X))}});
_.le({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[lS],configure:function(X){var t=X.node,G=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:G/2+"px"},{width:G+"px"}],this.timingFromConfig(X))}});
_.le({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[lS],configure:function(X){var t=X.node,G=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:G+"px"},{width:G-G/20+"px"}],this.timingFromConfig(X))}});
_.le({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[lS],configure:function(X){var t=X.node,G=t.getBoundingClientRect().height;this.setPrefixedProperty(t,"transformOrigin","0 0");return this._effect=new KeyframeEffect(t,[{height:G+"px",transform:"translateY(0)"},{height:G/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(X))}});var Ve={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},ZVq=function(){};
_.H=ZVq.prototype;_.H.registered=function(){};
_.H.addOwnKeyBinding=function(){};
_.H.removeOwnKeyBindings=function(){};
_.H.keyboardEventMatchesKeys=function(){};
_.H._collectKeyBindings=function(){};
_.H._prepKeyBindings=function(){};
_.H._addKeyBinding=function(){};
_.H._resetKeyEventListeners=function(){};
_.H._listenKeyEventListeners=function(){};
_.H._unlistenKeyEventListeners=function(){};
_.H._onKeyBindingEvent=function(){};
_.H._triggerKeyHandler=function(){};
_.H._focusBlurHandler=function(){};
_.H._changedControlState=function(){};
_.H._setFocused=function(){};
ZVq=_.le({_template:function(){if(hCJ!==void 0)return hCJ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;S5h===void 0&&(S5h=document.createElement("template"));var y=S5h;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return hCJ=X},
is:"tp-yt-paper-menu-button",behaviors:[_.NN,_.P3],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:Ve.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Ve.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:Ve.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 X=_.Es(this.$.content).getDistributedNodes(),t=0,G=X.length;t<G;t++)if(X[t].nodeType===Node.ELEMENT_NODE)return X[t]},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(X,t){X?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):t!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(X){_.P3._disabledChanged.apply(this,arguments);X&&this.opened&&this.close()},
__onIronOverlayCanceled:function(X){var t=this.$.trigger;_.Es(X.detail).path.indexOf(t)>-1&&X.preventDefault()}});
Object.keys(Ve).forEach(function(X){ZVq[X]=Ve[X]});var q5P=_.UC.IronButtonState,CWq=(0,_.PB)(HTMLElement);
_.le({_template:function(){if(DMo!==void 0)return DMo;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;sAP===void 0&&(sAP=document.createElement("template"));var y=sAP;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return DMo=X},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[q5P,_.P3,ne,_.mQ,_.LB],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(X){var t=(0,_.cq)(this);t.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:X});t.shadowRoot.appendChild(X);return CWq.prototype._attachDom.call(this,X)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var X=this.contentElement;X&&X.selectedItem&&this._setSelectedItem(X.selectedItem)},
get contentElement(){for(var X=_.Es(this.$.content).getDistributedNodes(),t=0,G=X.length;t<G;t++)if(X[t].nodeType===Node.ELEMENT_NODE)return X[t]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(X){this._setSelectedItem(X.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(X){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X)===this&&this.open()},
_selectedItemChanged:function(X){var t="";X?t=X.label||X.getAttribute("label")||X.textContent.trim():t="";this.value=t;this._setSelectedItemLabel(t)},
_computeMenuVerticalOffset:function(X,t){return t?t:X?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var X=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",X)},
_computeLabelClass:function(X,t,G){var y="label";if(X)G&&(y+=" label-is-hidden");else if(G||t)y+=" label-is-floating";return y},
_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 Khh;var OVJ;_.le({is:"tp-yt-paper-icon-button",_template:function(){if(OVJ!==void 0)return OVJ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Khh===void 0&&(Khh=document.createElement("template"));var y=Khh;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return OVJ=X},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.olq],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(X,t){var G=this.getAttribute("aria-label");G&&t!=G||this.setAttribute("aria-label",X)}});var ucq;var QAY;_.bY=[b54,_.P3,{hostAttributes:{role:"option",tabindex:"0"}}];_.le({_template:function(){if(QAY!==void 0)return QAY;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;ucq===void 0&&(ucq=document.createElement("template"));var y=ucq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return QAY=X},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.bY]});var IwJ;var WhS;var ciY={attached:function(){this.fire("addon-attached")},
update:function(){}};var pae=1,riB=1,NPh=1,PWP=[_.P3,_.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();!FL&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(X,t){X?X=X+" "+t:X=t;return X},
_onAddonAttached:function(X){X=_.Es(X).rootTarget;if(X.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,X.id);else{var t="paper-input-add-on-"+riB++;X.id=t;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(X){_.P3._focusBlurHandler.call(this,X);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var X=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",X);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(X){try{var t=this.inputElement.selectionStart;this.value=X;this.inputElement.selectionStart=t;this.inputElement.selectionEnd=t}catch(G){this.value=X}},
_computeAlwaysFloatLabel:function(X,t){return t||X},
_updateAriaLabelledBy:function(){var X=_.Es(this.root).querySelector("label");if(X){if(X.id)var t=X.id;else t="paper-input-label-"+pae++,X.id=t;this._ariaLabelledBy=t}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+NPh++)},
_onChange:function(X){this.shadowRoot&&this.fire(X.type,{sourceEvent:X},{node:this,bubbles:X.bubbles,cancelable:X.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var X=document.activeElement;X instanceof HTMLElement&&X!==document.body&&X!==document.documentElement||this._focusableElement.focus()}}}];var Elq;var UMq;_.le({_template:function(){if(UMq!==void 0)return UMq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Elq===void 0&&(Elq=document.createElement("template"));var y=Elq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return UMq=X},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[ciY],properties:{_charCounterStr:{type:String,value:"0"}},update:function(X){if(X.inputElement){X.value=X.value||"";var t=X.value.toString().length.toString();X.inputElement.hasAttribute("maxlength")&&(t+="/"+X.inputElement.getAttribute("maxlength"));this._charCounterStr=t}}});var mMq;var RCY;_.le({_template:function(){if(RCY!==void 0)return RCY;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;mMq===void 0&&(mMq=document.createElement("template"));var y=mMq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return RCY=X},
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 Ds(this.attrForValue)},get _inputElement(){return _.Es(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(X){this._addons||(this._addons=[]);X=X.target;this._addons.indexOf(X)===-1&&(this._addons.push(X),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(X){this._handleValueAndAutoValidate(X.target)},
_onValueChanged:function(X){var t=X.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,t.value===void 0||t.value===""))return;this._handleValueAndAutoValidate(X.target)},
_handleValue:function(X){var t=this._inputElementValue;t||t===0||X.type==="number"&&!X.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:X,value:t,invalid:this.invalid})},
_handleValueAndAutoValidate:function(X){this.autoValidate&&X&&(this.invalid=!(X.validate?X.validate(this._inputElementValue):X.checkValidity()));this._handleValue(X)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(X){if(this._addons)for(var t,G=0;t=this._addons[G];G++)t.update(X)},
_computeInputContentClass:function(X,t,G,y,w){var z="input-content";X?(w&&(z+=" label-is-hidden"),y&&!this.noUnfloatedLabelError&&(z+=" is-invalid")):(X=this.querySelector("label"),t||w?(z+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",y?z+=" is-invalid":G&&(z+=" label-is-highlighted")):(X&&(this.$.labelAndInputContainer.style.position="relative"),y&&!this.noUnfloatedLabelError&&(z+=" is-invalid")));G&&(z+=" focused");return z},
_computeUnderlineClass:function(X,t){var G="underline";t?G+=" is-invalid":X&&(G+=" is-highlighted");return G},
_computeAddOnContentClass:function(X,t){var G="add-on-content";t?G+=" is-invalid":X&&(G+=" is-highlighted");return G}});var iVh;var Lh4;_.le({_template:function(){if(Lh4!==void 0)return Lh4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;iVh===void 0&&(iVh=document.createElement("template"));var y=iVh;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return Lh4=X},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[ciY],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(X){this._setInvalid(X.invalid)}});_.le({is:"tp-yt-paper-input",_template:function(){if(WhS!==void 0)return WhS;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;IwJ===void 0&&(IwJ=document.createElement("template"));var y=IwJ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return WhS=X},
behaviors:[PWP,_.mQ],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 vlo;var awt;_.le({_template:function(){if(awt!==void 0)return awt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=
X.content,G=t.insertBefore;vlo===void 0&&(vlo=document.createElement("template"));var y=vlo;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return awt=X},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.bY]});var lwS;var xMY;_.le({_template:function(){if(xMY!==void 0)return xMY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
var t=X.content,G=t.insertBefore;lwS===void 0&&(lwS=document.createElement("template"));var y=lwS;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return xMY=X},
is:"tp-yt-paper-item-body"});var fwR;var Mw4;var XHq=function(){};
_.H=XHq.prototype;_.H.indexOf=function(){};
_.H.selectPrevious=function(){};
_.H.selectNext=function(){};
_.H.selectIndex=function(){};
_.H.forceSynchronousItemUpdate=function(){};
_.H._checkFallback=function(){};
_.H._addListener=function(){};
_.H._removeListener=function(){};
_.H._activateEventChanged=function(){};
_.H._updateItems=function(){};
_.H._selectSelected=function(){};
_.H._filterItem=function(){};
_.H._valueToItem=function(){};
_.H._valueToIndex=function(){};
_.H._indexToValue=function(){};
_.H._valueForItem=function(){};
_.H._observeItems=function(){};
_.H._itemActivate=function(){};
_.H.multiChanged=function(){};
_.H._updateAttrForSelected=function(){};
_.H._updateSelected=function(){};
_.H._selectMulti=function(){};
_.H._selectionChange=function(){};
_.H._toggleSelected=function(){};
_.H._valuesToItems=function(){};
_.H.registered=function(){};
_.H.addOwnKeyBinding=function(){};
_.H.removeOwnKeyBindings=function(){};
_.H.keyboardEventMatchesKeys=function(){};
_.H._collectKeyBindings=function(){};
_.H._prepKeyBindings=function(){};
_.H._addKeyBinding=function(){};
_.H._resetKeyEventListeners=function(){};
_.H._listenKeyEventListeners=function(){};
_.H._unlistenKeyEventListeners=function(){};
_.H._onKeyBindingEvent=function(){};
_.H._triggerKeyHandler=function(){};
_.H.select=function(){};
_.H._resetTabindices=function(){};
_.H._updateMultiselectable=function(){};
_.H._focusWithKeyboardEvent=function(){};
_.H._clearSearchText=function(){};
_.H._focusPrevious=function(){};
_.H._focusNext=function(){};
_.H._applySelection=function(){};
_.H._focusedItemChanged=function(){};
_.H._onIronItemsChanged=function(){};
_.H._onShiftTabDown=function(){};
_.H._onFocus=function(){};
_.H._onUpKey=function(){};
_.H._onDownKey=function(){};
_.H._onEscKey=function(){};
_.H._onKeydown=function(){};
_.H._activateHandler=function(){};
_.H._disabledChanged=function(){};
_.H._setSelectedItem=function(){};
_.H._setItems=function(){};
_.H._setSelectedItems=function(){};
_.H._setFocusedItem=function(){};
XHq=_.le({_template:function(){if(Mw4!==void 0)return Mw4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
var t=X.content,G=t.insertBefore;fwR===void 0&&(fwR=document.createElement("template"));var y=fwR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return Mw4=X},
is:"tp-yt-paper-listbox",behaviors:[T5R],hostAttributes:{role:"listbox"}});var $eY;var t$B;var G2P={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(X,t){return[X||t?"active":"",t?"cooldown":""].join(" ")},
__activeChanged:function(X,t){this.__setAriaHidden(!X);this.__coolingDown=!X&&t},
__altChanged:function(X){this.setAttribute("aria-label",X||"loading")},
__setAriaHidden:function(X){X?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.le({_template:function(){if(t$B!==void 0)return t$B;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;$eY===void 0&&($eY=document.createElement("template"));var y=$eY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return t$B=X},
is:"tp-yt-paper-spinner",behaviors:[G2P]});var ywt;var wHq;_.le({_template:function(){if(wHq!==void 0)return wHq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;ywt===void 0&&(ywt=document.createElement("template"));var y=ywt;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return wHq=X},
is:"tp-yt-paper-spinner-lite",behaviors:[G2P]});var z94;var H9q;_.le({_template:function(){if(H9q!==void 0)return H9q;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;z94===void 0&&(z94=document.createElement("template"));var y=z94;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return H9q=X},
is:"tp-yt-paper-tab",behaviors:[_.P3,_.UC.IronButtonState,ne],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 X=_.Es(this).parentNode;return!!X&&!!X.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(X){if(this.link){var t=this.queryEffectiveChildren("a");t&&X.target!==t&&t.click()}}});var oEq;var Jwz;var B1h=_.Vc(['<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>']),nEq=_.e7B(B1h);document.head.appendChild(nEq.content);_.le({_template:function(){if(Jwz!==void 0)return Jwz;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;oEq===void 0&&(oEq=document.createElement("template"));var y=oEq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return Jwz=X},
is:"tp-yt-paper-tabs",behaviors:[_.ax,_.YWq],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(X){_.Es(this).querySelectorAll("tp-yt-paper-tab").forEach(X?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(X){X.setAttribute("noink","")},
_removeNoinkAttribute:function(X){X.removeAttribute("noink")},
_computeScrollButtonClass:function(X,t,G,y){return!t||G?"hidden":X?y?"hidden":"not-visible":""},
_computeTabsContentClass:function(X,t){var G="tabs-content";X&&(G+=" scrollable");if(!X||t)G+=" fit-container";return G},
_computeSelectionBarClass:function(X,t){var G="selection-bar";X?G+=" hidden":t&&(G+=" align-bottom");return G},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(X){return""+X},
_onIronSelect:function(X){this._tabChanged(X.detail.item,this._previousTab);this._previousTab=X.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.v3._activateHandler.apply(this,arguments)},
_scheduleActivation:function(X,t){this._pendingActivationItem=X;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,t)},
_delayedActivationHandler:function(){var X=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;X.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(X){X.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(X,t){this.scrollable&&this._affectScroll(t&&-t.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(X){this.$.tabsContainer.scrollLeft+=X;X=this.$.tabsContainer.scrollLeft;this._leftHidden=X===0||this.hideScrollButtons;this._rightHidden=X===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(X,t){if(X){var G=this.$.tabsContent.getBoundingClientRect(),y=G.width,w=X.getBoundingClientRect();G=w.left-G.left;this._pos={width:this._calcPercent(w.width,y),left:this._calcPercent(G,y)};if(this.noSlide||t==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var z=t.getBoundingClientRect();t=this.items.indexOf(t);X=this.items.indexOf(X);this.$.selectionBar.classList.add("expand");
X=t<X;this._isRTL&&(X=!X);X?this._positionBar(this._calcPercent(w.left+w.width-z.left,y)-5,this._left):this._positionBar(this._calcPercent(z.left+z.width-w.left,y)-5,this._calcPercent(G,y)+5);this.scrollable&&this._scrollToSelectedIfNeeded(w.width,G)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(X,t){t-=this.$.tabsContainer.scrollLeft;t<0?this.$.tabsContainer.scrollLeft+=t:(t+=X-this.$.tabsContainer.offsetWidth,t>0&&(this.$.tabsContainer.scrollLeft+=t))},
_calcPercent:function(X,t){return 100*X/t},
_positionBar:function(X,t){X=X||0;t=t||0;this._width=X;this._left=t;this.transform("translateX("+t+"%) scaleX("+X/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var X=this.$.selectionBar.classList;X.contains("expand")?(X.remove("expand"),X.add("contract"),this._positionBar(this._pos.width,this._pos.left)):X.contains("contract")&&X.remove("contract")}});var V$R;var b9h;_.le({_template:function(){if(b9h!==void 0)return b9h;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;V$R===void 0&&(V$R=document.createElement("template"));var y=V$R;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return b9h=X},
is:"tp-yt-paper-textarea",behaviors:[PWP,_.mQ],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(X){this.$.input.textarea.selectionStart=X},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(X){this.$.input.textarea.selectionEnd=X},_ariaLabelledByChanged:function(X){this._focusableElement.setAttribute("aria-labelledby",X)},
_ariaDescribedByChanged:function(X){this._focusableElement.setAttribute("aria-describedby",X)},
get _focusableElement(){return this.inputElement.textarea}});var k2q;var deJ;/*

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 e94=function(){};
_.H=e94.prototype;_.H.addOwnKeyBinding=function(){};
_.H.removeOwnKeyBindings=function(){};
_.H.keyboardEventMatchesKeys=function(){};
_.H._collectKeyBindings=function(){};
_.H._prepKeyBindings=function(){};
_.H._addKeyBinding=function(){};
_.H._resetKeyEventListeners=function(){};
_.H._listenKeyEventListeners=function(){};
_.H._unlistenKeyEventListeners=function(){};
_.H._onKeyBindingEvent=function(){};
_.H._triggerKeyHandler=function(){};
_.H._tapHandler=function(){};
_.H._focusChanged=function(){};
_.H._detectKeyboardFocus=function(){};
_.H._userActivate=function(){};
_.H._upHandler=function(){};
_.H._spaceKeyDownHandler=function(){};
_.H._spaceKeyUpHandler=function(){};
_.H._asyncClick=function(){};
_.H._pressedChanged=function(){};
_.H._ariaActiveAttributeChanged=function(){};
_.H._activeChanged=function(){};
_.H._controlStateChanged=function(){};
_.H._changedButtonState=function(){};
_.H._focusBlurHandler=function(){};
_.H._disabledChanged=function(){};
_.H._changedControlState=function(){};
_.H._downHandler=function(){};
_.H.ensureRipple=function(){};
_.H.getRipple=function(){};
_.H.hasRipple=function(){};
_.H._noinkChanged=function(){};
_.H._focusedChanged=function(){};
_.H.registered=function(){};
_.H._invalidChanged=function(){};
_.H.hasValidator=function(){};
_.H.validate=function(){};
_.H._getValidity=function(){};
_.H._requiredChanged=function(){};
_.H._valueChanged=function(){};
_.H._checkedChanged=function(){};
_.H._buttonStateChanged=function(){};
_.H._setPressed=function(){};
_.H._setPointerDown=function(){};
_.H._setReceivedFocusFromKeyboard=function(){};
_.H._setFocused=function(){};
e94=_.le({is:"tp-yt-paper-toggle-button",_template:function(){if(deJ!==void 0)return deJ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;k2q===void 0&&(k2q=document.createElement("template"));var y=k2q;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return deJ=X},
behaviors:[_.JiS],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");_.V8(this,function(){_.x5(this,"pan-y")})},
_ontrack:function(X){X=X.detail;X.state==="start"?this._trackStart(X):X.state==="track"?this._trackMove(X):X.state==="end"&&this._trackEnd(X)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(X){X=X.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+X:X)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+X:X));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 X=ne._createRipple();X.id="ink";X.setAttribute("recenters","");X.classList.add("circle","toggle-ink");return X}});var jQB;var gEq;_.le({_template:function(){if(gEq!==void 0)return gEq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;jQB===void 0&&(jQB=document.createElement("template"));var y=jQB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return gEq=X},
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 X=_.Es(this).parentNode,t=_.Es(this).getOwnerRoot(),G;this.for?G=_.Es(t).querySelector("#"+this.for):G=X.nodeType==Node.DOCUMENT_FRAGMENT_NODE?t.host:X;return G},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(X){X==="entry"?this.show():X==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Es(this).textContent.trim()===""){for(var X=!0,t=_.Es(this).getEffectiveChildNodes(),G=0;G<t.length;G++)if(t[G].textContent.trim()!==""){X=!1;break}if(X)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 X=this.offset;this.marginTop!=14&&this.offset==14&&(X=this.marginTop);var t=this.offsetParent.getBoundingClientRect(),G=this._target.getBoundingClientRect(),y=this.getBoundingClientRect(),w=(G.width-y.width)/2,z=(G.height-y.height)/2,B=G.left-t.left,V=G.top-t.top;switch(this.position){case "top":var b=B+w;var e=V-y.height-X;break;case "bottom":b=B+w;e=V+G.height+X;break;case "left":b=B-y.width-X;e=V+z;break;case "right":b=B+G.width+
X,e=V+z}this.fitToVisibleBounds?(t.left+b+y.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,b)+"px",this.style.right="auto"),t.top+e+y.height>window.innerHeight?(this.style.bottom=t.height+"px",this.style.top="auto"):(this.style.top=Math.max(-t.top,e)+"px",this.style.bottom="auto")):(this.style.left=b+"px",this.style.top=e+"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(X){X!==500&&this.updateStyles({"--paper-tooltip-delay-in":X+"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(X){if(X==="entry"&&this.animationEntry!=="")return this.animationEntry;if(X==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[X]&&typeof this.animationConfig[X][0].name==="string"){if(this.animationConfig[X][0].timing&&this.animationConfig[X][0].timing.delay&&this.animationConfig[X][0].timing.delay!==0){var t=this.animationConfig[X][0].timing.delay;X==="entry"?this.updateStyles({"--paper-tooltip-delay-in":t+"ms"}):X==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":t+
"ms"})}return this.animationConfig[X][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 FZP=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(FZP,_.eB);var T1S=_.ZY(FZP,[0,_.da]);var k_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(k_,_.eB);var AwY=[3,4],Yxo=[5,6];var sQe=[0,AwY,Yxo,_.ng4,-1,_.ko,_.VBR,-1,y5_,wEG];var DeB=_.ZY(k_,sQe),Sxz=_.qx(sQe);var h9h=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(h9h,_.eB);var Z9t=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Z9t,_.eB);var qx4=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(qx4,_.eB);var CzS=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(CzS,_.eB);var KZq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(KZq,_.eB);var dB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(dB,_.eB);dB.prototype.getSource=function(){return _.lz(this,1)};
dB.prototype.getMessage=function(){return _.aQ(this,4)};
dB.prototype.getData=function(){return _.Co(this,KZq,8)};var O9R=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(O9R,_.eB);var ef=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ef,_.eB);var jf=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(jf,_.eB);var gB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(gB,_.eB);gB.prototype.getUrl=function(){return _.aQ(this,1)};
gB.prototype.setUrl=function(X){return _.rp(this,1,X)};
gB.prototype.hasUrl=function(){return _.W4(_.cH(this,1))!=null};var ubq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ubq,_.eB);var QQq=[3];var I_q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(I_q,_.eB);var Fe=function(X){var t=new I_q;return _.AG(t,2,X)};
I_q.prototype.getLanguage=function(){return Me(this,4,TQ)};
var WZe=function(X){var t=Fe(1);return _.QW(t,6,TQ,X)},TQ=[3,
4,5,6];var cwS=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(cwS,_.eB);var AZ=function(X){var t=new cwS;return _.AG(t,1,X)},Y_=function(X,t){return _.QW(X,2,pHo,t)},pHo=[2,
3,4,5];var rwq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(rwq,_.eB);var st=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(st,_.eB);var N1B=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(N1B,_.eB);var Pzt=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Pzt,_.eB);var EES=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(EES,_.eB);var UeR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(UeR,_.eB);var meY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(meY,_.eB);var D9=function(X){return _.Co(X,jf,5)};var R94=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(R94,_.eB);R94.prototype.getValue=function(){return L9(this,1)};var i9J=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(i9J,_.eB);var Sf=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Sf,_.eB);Sf.prototype.getMetadata=function(){return _.Xy(this,EES,7,hZ)};
Sf.prototype.hasMetadata=function(){return _.r1(this,EES,7,hZ)};
var LZB=_.DxE(Sf),hZ=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Z9=function(X){this.JSC$11899_name_=X;this.files_=[];this.directories_=[];this.directoryMap_={}};
Z9.prototype.getName=function(){return this.JSC$11899_name_};var Ce=function(X,t){this.callback_=t;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Z9("");vE4(this,X,this.rootDirectory_);q0(this)},vE4=function(X,t,G){for(var y=0;y<t.length;y++){var w=t[y];
w.isFile?(X.fileOps_++,w.file((0,_.rT)(X.handleFileSuccess_,X,G),(0,_.rT)(X.handleFileError_,X))):X.unscannedDirectories_.push(new a_R(w,G))}},q0=function(X){if(X.unscannedDirectories_.length>0&&X.directoryOps_<5&&!X.hasError_){X.directoryOps_++;
var t=X.unscannedDirectories_.shift(),G=t.entry,y=new Z9(G.name);t=t.parent;t.directoryMap_[y.getName()]=y;t.directories_.push(y);G=G.createReader();G.readEntries((0,_.rT)(X.handleDirectorySuccess_,X,G,y),(0,_.rT)(X.handleDirectoryError_,X))}X.directoryOps_!=0||X.fileOps_!=0||X.unscannedDirectories_.length!=0&&!X.hasError_||X.callback_(X.rootDirectory_.files_,X.rootDirectory_.directories_,X.hasError_)};
Ce.prototype.handleDirectorySuccess_=function(X,t,G){vE4(this,G,t);G.length==0?(this.directoryOps_--,q0(this)):X.readEntries((0,_.rT)(this.handleDirectorySuccess_,this,X,t),(0,_.rT)(this.handleDirectoryError_,this))};
Ce.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;q0(this)};
Ce.prototype.handleFileSuccess_=function(X,t){X.files_.push(t);this.fileOps_--;q0(this)};
Ce.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;q0(this)};
var a_R=function(X,t){this.entry=X;this.parent=t};var Ke=function(X){_.P6.call(this);_.vj(X,"drop",this.onObjectsDropped_,!1,this);_.vj(X,"dragenter",this.onFilesDragged_,!1,this);_.vj(X,"dragover",this.onFilesDragged_,!1,this);_.vj(X,"dragleave",this.onDragLeave_,!1,this);_.vj(X,"dragend",this.onDragLeave_,!1,this)};
_.sx(Ke,_.P6);var l_S=function(X,t){_.W6.call(this,"f");this.files=X;this.directories=t};
_.sx(l_S,_.W6);var xeo=function(){_.W6.call(this,"h")};
_.sx(xeo,_.W6);var f_J=function(){_.W6.call(this,"i")};
_.sx(f_J,_.W6);var M$S=function(){_.W6.call(this,"g")};
_.sx(M$S,_.W6);Ke.prototype.onObjectsDropped_=function(X){var t=this;X.preventDefault();var G=X.event_.dataTransfer;if((X=G&&G.items)&&X.length>0&&X[0].webkitGetAsEntry){G=[];for(var y=[],w=0;w<X.length;w++){var z=X[w].webkitGetAsEntry();z?G.push(z):y.push(X[w])}new Ce(G,function(B,V,b){b?t.dispatchEvent(new M$S("Error occurred while reading from the file system.")):t.dispatchEvent(new l_S(B,V,y))})}else(X=G&&G.files)&&this.dispatchEvent(new l_S(Array.from(X),[]))};
Ke.prototype.onFilesDragged_=function(X){X.type==="dragenter"&&this.dispatchEvent(new xeo);X.preventDefault()};
Ke.prototype.onDragLeave_=function(){this.dispatchEvent(new f_J)};var XIS=function(X,t){this.JSC$11922_name_=X;this.inputElement_=t};
XIS.prototype.getName=function(){return this.JSC$11922_name_};
XIS.prototype.getInputElement=function(){return this.inputElement_};var Ot=function(X,t,G){t=t===void 0?"single_file":t;G=G===void 0?[]:G;_.P6.call(this);this.overlayTarget_=X;this.parentOverlay_=X!=null?X.parentNode:_.OF("scotty-overlay-parent");this.selectorType_=t;this.acceptTypes_=G;this.overlay_=$Fh(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.S(Ot,_.P6);
var $Fh=function(X,t,G,y){var w=document.createElement("input");w.setAttribute("type","file");w.setAttribute("name","Filedata");_.vj(w,"change",X.onFilesSelected_,!1,X);G==="multiple_file"&&(w.multiple="true");G==="single_directory"&&(w.webkitdirectory="true");y.length>0&&w.setAttribute("accept",y.join(","));w.style.position="absolute";w.style.overflow="hidden";w.style.height="0px";w.style.width="0px";w.style.opacity="0";w.setAttribute("aria-hidden","true");w.setAttribute("tabIndex",-1);if(X.overlayTarget_!=
null)return w.style.height=t.offsetHeight+"px",w.style.width=t.offsetWidth+"px",X.parentOverlay_&&(X.parentOverlay_.style.position="relative"),_.fN(w,t),yI(w,new _.LD(t.offsetLeft,t.offsetTop)),w;X.parentOverlay_.appendChild(w);return w};
Ot.prototype.click=function(){this.overlay_.click()};
Ot.prototype.onFilesSelected_=function(X){a:{try{var t=(new XMLHttpRequest).upload!==void 0;break a}catch(e){}t=!1}if(t){var G;X=Array.from((G=X.target.files)!=null?G:[]);G=[];if(this.selectorType_==="single_directory"&&(_.C9||bt||_.qe)){G=new Z9("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(t=0;t<X.length;t++)for(var y=X[t],w=y.webkitRelativePath.split("/"),z=G,B=0;B<w.length;B++){var V=w[B];if(B==w.length-1){V!="."&&z.files_.push(y);break}var b=z.directoryMap_[V];b==void 0&&(V=
b=new Z9(V),z.directoryMap_[V.getName()]=V,z.directories_.push(V));z=b}G=G.directories_}this.dispatchEvent(new tU4(X,G,null))}else X=X.target.value,X.match(/^c:\\fakepath\\/i)&&(X=X.substring(12)),this.dispatchEvent(new tU4([],[],new XIS(X,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=$Fh(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var tU4=function(X,t){_.W6.call(this,"j");this.files=X;this.directories=t};
_.S(tU4,_.W6);var G1t=function(X){this.uploadUrl_=X};var ylq=function(){_.P6.call(this)};
_.sx(ylq,_.P6);var uY=function(X){_.W6.call(this,X)};
_.sx(uY,_.W6);var Qe=function(X){_.W6.call(this,X)};
_.sx(Qe,_.W6);var wIP=function(X,t,G,y,w){_.P6.call(this);G=document.createElement("form");G.setAttribute("method",t);G.setAttribute("enctype","multipart/form-data");G.setAttribute("encoding","multipart/form-data");t=document.createElement("input");t.setAttribute("type","hidden");t.setAttribute("name","metadata");t.setAttribute("value",w);G.appendChild(t);G.appendChild(y);this.JSC$11939_form_=G;X=new _.Vf(X);_.yA(X,"upload_protocol","multipart");this.JSC$11939_url_=X.toString();this.JSC$11939_request_=new FX;this.state_=
"Ready";this.JSC$11939_errorDescription_=null;this.JSC$11939_eventHandler_=new _.AL(this);_.h6(this,this.JSC$11939_eventHandler_);this.JSC$11939_eventHandler_.listen(this.JSC$11939_request_,"success",this.onTransferSuccess_);this.JSC$11939_eventHandler_.listen(this.JSC$11939_request_,"error",this.onTransferError_)};
_.S(wIP,ylq);_.H=wIP.prototype;_.H.run=function(){this.state_="Transferring";var X=this.JSC$11939_request_,t=this.JSC$11939_form_;if(X.JSC$11357_active_)throw Error("oe");var G=new _.Vf(this.JSC$11939_url_||t.action);X.JSC$11357_form_=t;t=X.JSC$11357_form_;G=_.Mx(G.toString());G!==void 0&&(t.action=G);QLq(X)};
_.H.getResponseCode=function(){return null};
_.H.getResponseText=function(){return this.JSC$11939_request_&&this.JSC$11939_request_.getResponseText()||null};
_.H.JSC$29119_getErrorDescription=function(){return this.JSC$11939_errorDescription_};
_.H.cancel=function(){this.JSC$11939_request_&&this.JSC$11939_request_.abort();this.state_="Cancelled";this.dispatchEvent(new uY("o"))};
_.H.pause=function(){};
_.H.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new uY("l"))};
_.H.onTransferError_=function(){this.JSC$11939_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new uY("n"))};var IM=function(){_.a8.call(this)};
_.S(IM,_.a8);IM.prototype.createXhr=function(){var X=_.a8.prototype.createXhr.call(this);X.upload&&(X.upload.onprogress=(0,_.rT)(this.onProgress_,this));return X};
IM.prototype.onProgress_=function(X){this.dispatchEvent(X)};var zsP=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},ooJ=function(X,t){var G=X.attempt_+1;
if(X.maxAttempts_>0&&G>X.maxAttempts_)return!1;G==0?t():X.delayCallId_=ii(function(){X.delayCallId_=null;t()},HNS(X),X);
X.attempt_=G;return!0};
zsP.prototype.reset=function(){this.delayCallId_&&_.tA.clearTimeout(this.delayCallId_);this.attempt_=-1};
var HNS=function(X){var t=250*Math.pow(2,X.attempt_);X.maxDelayMs_>=0&&(t=Math.min(t,X.maxDelayMs_));return t};var s6J=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var WM=function(){_.P6.call(this);this.JSC$11949_request_=this.state_=null;this.JSC$11949_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11949_bytesTransferred_=0;this.retryIterator_=new zsP;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11949_errorDescription_=null;this.JSC$11949_eventHandler_=new _.AL(this);_.h6(this,this.JSC$11949_eventHandler_);this.JSC$11949_url_=this.blob_=null;this.JSC$11949_method_=void 0;this.chunkSize_=this.JSC$11949_metadata_=
this.JSC$11949_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11949_responseText_=this.JSC$11949_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.sx(WM,ylq);_.H=WM.prototype;_.H.run=function(){cM(this)};
_.H.getResponseCode=function(){return this.JSC$11949_responseCode_};
_.H.getResponseText=function(){return this.JSC$11949_responseText_};
_.H.JSC$29119_getErrorDescription=function(){return this.JSC$11949_errorDescription_};
_.H.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11949_eventHandler_.removeAll();this.JSC$11949_request_&&this.JSC$11949_request_.abort();this.retryIterator_.reset();var X=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(X==="Upload"||X==="Query")X=new IM,X.JSC$9725_withCredentials_=this.JSC$11949_withCredentials_,X.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11949_bytesTransferred_=
0;this.dispatchEvent(new uY("o"))}};
_.H.pause=function(){this.pauseRequested_=!0};
var cM=function(X){var t=X.state_;X.pauseRequested_?(X.pauseRequested_=!1,X.stateAfterUnpausing_=t,X.state_="Paused"):ooJ(X.retryIterator_,function(){switch(X.state_){case "Start":X.JSC$11949_request_=new IM;var G=_.RH.clone(X.JSC$11949_headers_);X.blob_.size!=null&&(G["Content-Length"]=X.blob_.size);G=DgV(G);G["X-Goog-Upload-Protocol"]="resumable";G["X-Goog-Upload-Command"]="start";X.JSC$11949_eventHandler_.removeAll();X.JSC$11949_eventHandler_.listen(X.JSC$11949_request_,"complete",X.onStartComplete_);
X.JSC$11949_request_.JSC$9725_withCredentials_=X.JSC$11949_withCredentials_;X.JSC$11949_request_.send(X.JSC$11949_url_,X.JSC$11949_method_,X.JSC$11949_metadata_,G);X.lastCommandResponseCode_=null;X.dispatchEvent(new Qe("q"));break;case "Upload":G=X.transferHandle_.uploadUrl_;var y=X.blob_.size;if(ePz()){var w=X.chunkSize_;var z=X.offset_+w>=y;y=djo(X.blob_,X.offset_,z?y:X.offset_+w)}else X.offset_=0,y=X.blob_,z=!0;X.JSC$11949_request_=new IM;X.JSC$11949_request_.JSC$9725_withCredentials_=X.JSC$11949_withCredentials_;
X.JSC$11949_eventHandler_.removeAll();X.JSC$11949_eventHandler_.listen(X.JSC$11949_request_,"progress",X.onUploadProgress_);w=(0,_.rT)(X.JSC$11951_onUploadComplete_,X,X.offset_+y.size,z);X.JSC$11949_eventHandler_.listen(X.JSC$11949_request_,"complete",w);X.lastCommandResponseCode_=null;X.dispatchEvent(new Qe("q"));z=Object.assign({},X.JSC$11949_headers_||{},{"X-Goog-Upload-Command":"upload"+(z?", finalize":""),"X-Goog-Upload-Offset":X.offset_});X.JSC$11949_request_.send(G,"POST",y,z);break;case "Query":X.JSC$11949_request_=
new IM;X.JSC$11949_eventHandler_.removeAll();X.JSC$11949_eventHandler_.listen(X.JSC$11949_request_,"complete",X.onQueryComplete_);G=Object.assign({},X.JSC$11949_headers_||{},{"X-Goog-Upload-Command":"query"});X.JSC$11949_request_.send(X.transferHandle_.uploadUrl_,"POST","",G);X.lastCommandResponseCode_=null;X.dispatchEvent(new Qe("q"));break;default:throw Error("df");}})||pe(X,"Transfer encountered too many consecutive failures.")},pe=function(X,t){X.state_="Error";
X.JSC$11949_errorDescription_=t;X.dispatchEvent(new uY("n"))};
WM.prototype.onStartComplete_=function(X){var t=X.target;this.lastCommandResponseCode_=t.getStatus();this.dispatchEvent(new Qe("r"));if(Jlq(t))Baz(this,t);else if(noo(t)){X=o5(X.target.getAllResponseHeaders());for(var G in X)_.y0(G.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new uY("m"));G=mq(X,"X-Goog-Upload-URL");X=(X=mq(X,"X-Goog-Upload-Chunk-Granularity"))?parseInt(X,10):1;G===void 0||isNaN(X)||X<=0?pe(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
X)*X,this.transferHandle_=new G1t(G),this.dispatchEvent(new uY("p")),this.state_="Upload",this.retryIterator_.reset(),cM(this))}else cM(this)};
WM.prototype.onUploadProgress_=function(X){this.JSC$11949_bytesTransferred_=this.offset_+X.loaded;this.dispatchEvent(new uY("k"))};
WM.prototype.JSC$11951_onUploadComplete_=function(X,t,G){var y=this,w,z;return _.n(function(B){switch(B.nextAddress){case 1:w=G.target;y.lastCommandResponseCode_=w.getStatus();y.dispatchEvent(new Qe("r"));if(VUt(w)||w.getStatus()==404)return y.JSC$11949_bytesTransferred_=X,Baz(y,w),B.return();if(noo(w)){B.jumpTo(2);break}if(!(z=y.detectCorruptedBlobEnabled_)){B.jumpTo(3);break}return B.yield(bNY(y),4);case 4:z=B.yieldResult;case 3:if(z)return pe(y,"Blob has been modified or corrupted."),B.return();
y.requireUploadRequestModification_=w.getStatus()==400;y.state_="Query";cM(y);return B.return();case 2:if(t)return pe(y,"Got a non-final success response after issuing a finalize command."),B.return();y.JSC$11949_bytesTransferred_=X;y.offset_=X;y.retryIterator_.reset();cM(y);return B.return()}})};
WM.prototype.onQueryComplete_=function(X){var t=X.target;this.lastCommandResponseCode_=t.getStatus();this.dispatchEvent(new Qe("r"));Jlq(t)?(t.getStatus()===200&&(this.JSC$11949_bytesTransferred_=this.blob_.size),Baz(this,t)):noo(t)?(X=o5(X.target.getAllResponseHeaders()),X=parseInt(mq(X,"X-Goog-Upload-Size-Received"),10),isNaN(X)?pe(this,"Server did not respond with current offset."):X<this.offset_?pe(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
X+"."):this.requireUploadRequestModification_&&this.offset_===X?pe(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<X&&this.retryIterator_.reset(),this.offset_=this.JSC$11949_bytesTransferred_=X,this.state_="Upload",cM(this))):cM(this)};
var Baz=function(X,t){X.JSC$11949_responseCode_=t.getStatus();var G=o5(t.getAllResponseHeaders());Sp0(G);X.JSC$11949_responseText_=t.getResponseText();X.state_="Response received";X.dispatchEvent(new uY("l"))},noo=function(X){var t=X.getStatus();
X=o5(X.getAllResponseHeaders());X=mq(X,"X-Goog-Upload-Status");return t===200&&X==="active"},VUt=function(X){X=o5(X.getAllResponseHeaders());
return mq(X,"X-Goog-Upload-Status")==="final"},Jlq=function(X){if(VUt(X))return!0;
X=X.getStatus();return X>=400&&X<500},bNY=function(X){var t;
return _.n(function(G){if(G.nextAddress==1){if(!X.blob_||X.originalBlobSize_<=0)return G.return(!1);if(X.blob_.size!==X.originalBlobSize_)return G.return(!0);_.CL(G,2);if(t=djo(X.blob_,0,1)){var y=G.yield,w=new G_,z=ldB(w);w.reader_.readAsBinaryString(t);G=y.call(G,z,4)}else G=G.return(!0);return G}if(G.nextAddress!=2)return G.return(X.blob_.size!==X.originalBlobSize_);_.IY(G);return G.return(!0)})};var k1q=function(X,t,G,y,w,z){_.P6.call(this);this.payload_=y;this.JSC$11952_url_=X;this.JSC$11952_method_=t;this.JSC$11952_headers_=G;this.JSC$11952_metadata_=w;this.encoding_=z||"binary";X=new _.U_;this.boundary_="uploader-"+$H()+"-"+X.JSC$11206_toIsoString();this.JSC$11952_responseText_=this.JSC$11952_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11952_errorDescription_=null;this.JSC$11952_eventHandler_=new _.AL(this);_.h6(this,this.JSC$11952_eventHandler_)};
_.S(k1q,ylq);_.H=k1q.prototype;
_.H.run=function(){var X=_.RH.clone(this.JSC$11952_headers_);this.payload_.length!=null&&(X["Content-Length"]=this.payload_.length);X=DgV(X);X["X-Goog-Upload-Protocol"]="multipart";X["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new IM;this.JSC$11952_eventHandler_.removeAll();this.JSC$11952_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11952_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11952_url_,this.JSC$11952_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11952_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",X)};
_.H.getResponseCode=function(){return this.JSC$11952_responseCode_};
_.H.getResponseText=function(){return this.JSC$11952_responseText_};
_.H.JSC$29119_getErrorDescription=function(){return this.JSC$11952_errorDescription_};
_.H.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11952_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new uY("o")))};
_.H.pause=function(){};
_.H.onTransferProgress_=function(){this.dispatchEvent(new uY("k"))};
_.H.onTransferComplete_=function(X){var t=X.target.getStatus();t===void 0||t===-1?(this.JSC$11952_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new uY("n"))):(this.JSC$11952_responseCode_=t,X=X.target,t=o5(X.getAllResponseHeaders()),Sp0(t),this.JSC$11952_responseText_=X.getResponseText(),this.state_="Complete",this.dispatchEvent(new uY("l")))};_.dFR=function(X,t,G,y){y=y===void 0?!1:y;if(G instanceof XIS)return new wIP(X,"POST",t,G.getInputElement(),"");if(typeof G==="string"||G instanceof String)return new k1q(X,"POST",t,G,"");var w=new WM(void 0);w.JSC$11949_url_=X;w.JSC$11949_method_="POST";w.JSC$11949_headers_=t;w.blob_=G;w.originalBlobSize_=G.size;w.JSC$11949_metadata_="";y&&(w.JSC$11949_withCredentials_=y);w.state_="Start";return w};var rB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(rB,_.eB);_.H=rB.prototype;_.H.getEnableSsEngine=function(){return _.iz(this,2)};
_.H.getEnableAwr=function(){return _.iz(this,3)};
_.H.getAlohaAutoGaRollout=function(){return _.iz(this,5)};
_.H.getEnableConfigurator=function(){return _.iz(this,6)};
_.H.getEnableMweb=function(){return _.iz(this,7)};
var jm4=function(){var X=esR();return _.iw(X,7,!0)};
rB.prototype.getEnableCtlConsentCheckbox=function(){return _.iz(this,8)};
rB.prototype.getEnableIframe=function(){return _.iz(this,9)};
var esR=function(){var X=new rB;X=_.iw(X,5,!0);X=_.iw(X,2,!0);X=_.iw(X,4,!1);X=_.iw(X,8,!0);return _.iw(X,9,!0)};
rB.prototype.getEnableScreenshotNudge=function(){return _.iz(this,10)};
var go4=function(){var X=jm4();return _.iw(X,10,!0)};
rB.prototype.getEnableWebStartupConfigEndpoint=function(){return _.iz(this,11)};
rB.prototype.getEnableJunkNudge=function(){return _.iz(this,12)};
var R4w=function(){var X=go4();return _.iw(X,12,!0)};
_.H=rB.prototype;_.H.getEnableConfiguratorLocale=function(){return _.iz(this,13)};
_.H.getEnableTinyNoPointer=function(){return _.iz(this,14)};
_.H.getEnableSupportSessionLogging=function(){return _.iz(this,15)};
_.H.getEnableFileUploadForScreenshot=function(){return _.iz(this,16)};
_.H.getEnableDirectDeflectionForSingleCategory=function(){return _.iz(this,17)};
_.H.getEnableImageSanitization=function(){return _.iz(this,18)};
_.H.getEnableAlohaBinarySplit=function(){return _.iz(this,19)};
_.H.getEnableDbFeedbackIntents=function(){return _.iz(this,20)};
_.H.getEnableMarkMandatoryFieldsWithRequired=function(){return _.iz(this,21)};
_.H.getEnableFeedbackCategoryCustomUi=function(){return _.iz(this,22)};
_.H.getEnableRealtimeCtl=function(){return _.iz(this,23)};var mgv=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(mgv,_.eB);var h40=[/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 qpV="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 CEG=_.Vc(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),KpA=_.Vc(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var uS_,Wpl,Q6E,cJY;var FPS,TaJ;
FPS=function(X,t,G){X.timeOfStartCall=(new Date).getTime();var y=G||_.tA,w=y.document,z=X.nonce||_.H$(y.document);z&&!X.nonce&&(X.nonce=z);if(X.flow=="help"){var B=_.GA("document.location.href",y);!X.helpCenterContext&&B&&(X.helpCenterContext=B.substring(0,1200));B=!0;if(t&&JSON&&JSON.stringify){var V=JSON.stringify(t);(B=V.length<=1200)&&(X.psdJson=V)}B||(t={invalidPsd:!0})}t=[X,t,G];y.GOOGLE_FEEDBACK_START_ARGUMENTS=t;G=X.feedbackServerUri||"//www.google.com/tools/feedback";if(B=y.GOOGLE_FEEDBACK_START)B.apply(y,t);
else{y=G+"/load.js?";for(var b in X)t=X[b],t==null||_.$h(t)||(y+=encodeURIComponent(b)+"="+encodeURIComponent(t)+"&");X=pD(w).createElement("SCRIPT");z&&X.setAttribute("nonce",z);_.Vb(X,_.rN(y));w.body.appendChild(X)}};
TaJ=function(X,t,G,y){var w,z;_.n(function(B){w=G||_.tA;var V=X.serverEnvironment==="DEV",b=G||_.tA;b=X.nonce||_.H$(b.document);V={integrationKeys:{productId:X.productId,feedbackBucket:X.bucket,triggerId:X.triggerId},callbacks:{onClose:X.callback,onLoad:X.onLoadCallback},formContent:{locale:X.locale,disableScreenshot:X.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:X.abuseLink,additionalDataConsent:X.additionalDataConsent},initializationData:{isLocalServer:V,nonce:b,useNightlyRelease:V,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:X.feedbackServerUri,colorScheme:X.colorScheme},extraData:{productVersion:X.productVersion,authUser:X.authuser,configuratorId:X.configuratorId,customZIndex:X.customZIndex,tinyNoPointer:X.tinyNoPointer,
allowNonLoggedInFeedback:X.allowNonLoggedInFeedback,enableAnonymousFeedback:X.enableAnonymousFeedback}};t&&(b=new Map(Object.entries(t)),V.extraData.productSpecificData=b);z=V;return B.yield(PE_(z,y,w),0)})};
_.AlS=function(X,t,G){try{if(X.flow==="help"){var y=X.helpCenterPath.replace(/^\//,"");_.zc(G||window,"https://support.google.com/"+y)}else X.flow==="submit"?FPS(X,t,G):iG0(X.productId,X.feedbackServerUri).then(function(w){w=_.Co(w,rB,1);var z=!SME||(w==null?void 0:w.getEnableMweb()),B=!X.tinyNoPointer||(w==null?void 0:w.getEnableTinyNoPointer());!w||w.getAlohaAutoGaRollout()&&z&&B?TaJ(X,t,G,w):FPS(X,t,G)},function(w){w&&w.name!=="DuplicateFormError"&&FPS(X,t,G)})}catch(w){TaJ(X,t,G,null)}};
_.dl("userfeedback.api.startFeedback",_.AlS);var Lp0=/https?:\/\/\S+\.\S+/,vP0=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],aMs=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var RyA=function(X){var t=X.split(""),G=[-263237435,15,t,function(y,w,z){var B=w.length;z.forEach(function(V,b,e){this.push(e[b]=w[(w.indexOf(V)-w.indexOf(this[b])+b+B--)%w.length])},y.split(""))},
function(y,w){y=(y%w.length+w.length)%w.length;w.splice(-y).reverse().forEach(function(z){w.unshift(z)})},
"response",function(){for(var y=64,w=[];++y-w.length-32;){switch(y){case 58:y-=14;case 91:case 92:case 93:continue;case 123:y=47;case 94:case 95:case 96:continue;case 46:y=95}w.push(String.fromCharCode(y))}return w},
null,12,1540023973,65941107,null,t,function(y,w){for(y=(y%w.length+w.length)%w.length;y--;)w.unshift(w.pop())},
695603893,function(y){for(var w=y.length;w;)y.push(y.splice(--w,1)[0])},
"'[;'[(",function(y,w){y.push(w)},
null,function(y,w,z,B,V){return w(z,B,V)},
"continuation",t,function(y,w){if(y.length!=0){w=(w%y.length+y.length)%y.length;var z=y[0];y[0]=y[w];y[w]=z}},
function(){for(var y=64,w=[];++y-w.length-32;){switch(y){case 91:y=44;continue;case 123:y=65;break;case 65:y-=18;continue;case 58:y=96;continue;case 46:y=95}w.push(String.fromCharCode(y))}return w},
'"),/]];'];G[7]=G;G[11]=G;G[18]=G;try{(((0,G[15])(G[21]),G[22])(G[11],G[9]),G[22])(G[new Date("1970-01-01T04:30:12.000+04:30")/1E3],G[1]),((0,G[22])(G[11],G[23]),G[4])(G[10],G[18]),(0,G[20])(G[21],G[14])<<(0,G[17])(G[18],G[1]),(0,G[4])(G[8],G[21]),(0,G[19])((0,G[19])((0,G[17])(G[7],G[9]),G[3],G[20],(0,G[6])(),G[2]),G[3],G[5],(0,G[15])(),G[2])}catch(y){return"aTlOUOubTO4AP____8P_"+X}return t.join("")};_.Y1Y=new _.ja("runAttestationCommand");var smJ=new _.ja("verifyCommand");_.N0=new _.ja("accessibilityContext");var DFJ=new _.ja("accessibilityData");var S1e=new _.ja("profileCardCommand");var TF6=new _.ja("signInEndpoint");var F1h=new _.ja("signOutEndpoint");var ZNY;_.hsq=new _.ja("accountItemSectionRenderer");ZNY=new _.ja("accountItemRenderer");_.q1Y=new _.ja("saveCommandToSessionStorageAction");var CMJ=new _.ja("crossAccountChannelTransferEndpoint");var d30=new _.ja("getAccountMenuEndpoint");_.eqf=new _.ja("getAccountSwitcherEndpoint");var kds=new _.ja("getAccountsListEndpoint");var KPq=new _.ja("getAccountsListInnertubeEndpoint");_.PM=new _.ja("addToToastAction");var ONY=new _.ja("hideEnclosingAction");_.Et=new _.ja("replaceEnclosingAction");var uyz=new _.ja("buttonRefreshAction");var Qme=new _.ja("adsControlFlowOpportunityReceivedCommand");var IFq=new _.ja("openAdAllowlistInstructionCommand");var WPq=new _.ja("videoMastheadAdPrimaryVideoRenderer");var clR=new _.ja("displayAdRenderer");var Qhh=new _.ja("instreamVideoAdRenderer");_.pIh=new _.ja("inFeedAdLayoutRenderer");var rlh=new _.ja("sequenceItemInPlayerAdLayoutRenderer");_.NaB=new _.ja("adSlotRenderer");var PMR=new _.ja("adAvatarViewModel");var Eoz=new _.ja("adBadgeViewModel");var UF4=new _.ja("adImageViewModel");var B7V=new _.ja("reelsAdCardButtonedViewModel");var mFo=new _.ja("reelsPlayerOverlayLayoutViewModel");var RsJ=new _.ja("showSchedulingPanelCommand");var iNJ=new _.ja("backstageCommentsRenderer");var LPS=new _.ja("backstageImageRenderer");var voR=new _.ja("backstagePostRenderer");var aFB=new _.ja("backstageZeroStateRenderer");var lFR=new _.ja("postRenderer");var xFJ=new _.ja("sharedPostRenderer");var fFz=new _.ja("createBackstagePostEndpoint");var MUz=new _.ja("getPostVideoPreviewEndpoint");var X6e=new _.ja("updateBackstagePostEndpoint");var $o4=new _.ja("filterChipTransformCommand");var toS=new _.ja("insertRichSectionCommand");var GNv=new _.ja("talkToRecsDeselectCommand");var G$R=new _.ja("talkToRecsNextCommand");var tvA=new _.ja("talkToRecsSelectCommand");var yyJ=new _.ja("talkToRecsUpdateTextCommand");_.pp=new _.ja("browseEndpoint");_.w64=new _.ja("confirmDialogEndpoint");var zHq=new _.ja("expandOnHoverCardRenderer");var HUq=new _.ja("lumiereShelfDetailsRenderer");var o9R=new _.ja("revealBusinessEmailCommand");var Jyz=new _.ja("validateChannelHandleCommand");var BYz=new _.ja("channelCreationFormEndpoint");var n9q=new _.ja("aboutChannelViewModel");var Vot=new _.ja("channelThumbnailWithLinkRenderer");var bUY=new _.ja("channelCreationServiceEndpoint");var k$B=new _.ja("updateChannelPageSettingsEndpoint");var Ut=function(X){this.delegate=X},m2=function(){Ut.apply(this,arguments)};
_.S(m2,Ut);_.ke.Object.defineProperties(m2.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(X){this.delegate.entityMetadata=X}}});var doB=function(){m2.apply(this,arguments)};
_.S(doB,m2);doB.prototype.getAssociations=function(){return[]};
doB.prototype.getTypeName=function(){return"channelHandle"};var T$V=new _.ja("webThumbnailDetailsExtensionData");var Unv=new _.ja("commandContext");var eH4=new _.ja("addVideoLinkAction");var j8h=new _.ja("banAuthorAction");var g9q=new _.ja("createCommentAction");var F9Y=new _.ja("createCommentReplyAction");var TYq=new _.ja("createPollAction");var AyS=new _.ja("hideIdentityChipAction");var YHz=new _.ja("openUpdateCommentDialogAction");var s8o=new _.ja("pinCommentAction");var Doh=new _.ja("removeCommentAction");var SHz=new _.ja("unpinCommentAction");var RM=new _.ja("updateBackstagePollAction");var hHt=new _.ja("updateCommentVoteAction");var ZUo=new _.ja("commentThreadRenderer");var qHP=function(){m2.apply(this,arguments)};
_.S(qHP,m2);qHP.prototype.getAssociations=function(){return[]};
qHP.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var CiB=function(){m2.apply(this,arguments)};
_.S(CiB,m2);CiB.prototype.getAssociations=function(){return[]};
CiB.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.K9o=new _.ja("commentDialogRenderer");var OU4=new _.ja("reloadCommentsCommand");var uA4=new _.ja("updateCommentsSettingsEndpoint");var Q8J=new _.ja("commentViewModel");var Iah=new _.ja("triStateButtonViewModel");var W9S=new _.ja("voiceReplyContainerViewModel");_.Cq=new _.ja("commandExecutorCommand");var tH=new _.ja("emoji");var cyS=new _.ja("updateCreatorChannelInnertubeCommand");_.p6e=new _.ja("appendContinuationItemsAction");_.ryq=new _.ja("changeEngagementPanelVisibilityAction");_.Hk=new _.ja("continuationCommand");var NYh=new _.ja("hideReportedCommentAction");var PiP=new _.ja("listMutationCommand");_.iY=new _.ja("openPopupAction");var E9B=new _.ja("persistSubscriptionsDisplayPreferencesCommand");var lat;_.Uoz=new _.ja("playlistRemoveVideosAction");_.moq=new _.ja("updatePlaylistAction");_.RHq=new _.ja("addToPlaylistCommand");_.iU4=new _.ja("endPlaylistCommand");_.L9J=new _.ja("recoverPlaylistCommand");_.v9h=new _.ja("refreshPlaylistCommand");_.aaJ=new _.ja("refreshFormCommand");lat=new _.ja("openOnePickAddVideoModalCommand");_.YJV=new _.ja("reloadContinuationItemsCommand");_.xot=new _.ja("scrollToEngagementPanelCommand");var faq=new _.ja("selectCountryCommand");var Moe=new _.ja("showReloadUiCommand");var XeR=new _.ja("undoFeedbackAction");var $gq=new _.ja("updateButtonAction");var t24=new _.ja("updateSubscribeButtonAction");var GTt=new _.ja("updateToggleAction");var yJt=new _.ja("webNativeShareCommand");_.jQ=new _.ja("webCommandMetadata");_.Le=new _.ja("webHandleServiceEndpointExtension");var bAV=new _.ja("webNavigationEndpointData");var weY=new _.ja("copyLinkCommand");var z4q=new _.ja("playlistVotingRefreshPopupCommand");var HG4=new _.ja("selectChipCommand");var oPR=new _.ja("setCookieCommand");var JJP=new _.ja("setLocalStorageCommand");var BEB=new _.ja("setPrefStorageEntryCommand");var kTB;_.nPY=new _.ja("settingsUpdateCheckboxCommand");_.V2J=new _.ja("settingsUpdateTextCommand");_.bGq=new _.ja("settingsUpdateOptionsCommand");kTB=new _.ja("settingsUpdateSwitchCommand");_.dgq=new _.ja("settingsUpdateConnectedAppRendererCommand");var e4q=new _.ja("updateTextInputFormFieldRendererCommand");var j6J=new _.ja("updateToggleButtonStateCommand");var gPJ=new _.ja("updateUrlParamCommand");var Fp4=new _.ja("webSubmitFormCommand");var TEh=new _.ja("channelSwitcherPageRenderer"),AJq=new _.ja("updateChannelSwitcherPageAction");_.Fc=new _.ja("continuationItemRenderer");_.vM=new _.ja("richItemRenderer");var Ypq=new _.ja("richSectionRenderer");_.s6h=new _.ja("richShelfRenderer");_.Dgq=new _.ja("metadataBadgeRenderer");_.SpR=new _.ja("multiPageMenuNotificationSectionRenderer");_.h4R=new _.ja("playlistLoopButtonStateRenderer");var ZGS=new _.ja("claimLegacyYoutubeChannelEndpoint");var qpq=new _.ja("getNotificationMenuEndpoint");var CEe=new _.ja("getSearchInVideoCommand");_.Kpq=new _.ja("getTranscriptEndpoint");_.Ol=new _.ja("signalServiceEndpoint");var OGJ=new _.ja("verifyAgeEndpoint");var vmA=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(vmA,_.eB);vmA.prototype.getPath=function(){return _.aQ(this,1)};
vmA.prototype.getValue=function(){return _.aQ(this,2)};var uS4=[0,_.V7,-1];var Q6t=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Q6t,_.eB);var Lzw=_.ZY(Q6t,[0,_.bM,uS4]);var IMh=new _.ja("dismissalEndpoint");var WpJ=new _.ja("elementsCommand");_.yL=new _.ja("innertubeCommand");var cJS=new _.ja("multipleInlinePlaybackCommand");var xk_=new _.ja("loggingDirectives");var peY=new _.ja("acknowledgeChannelTouStrikeCommand");var rJB=function(){m2.apply(this,arguments)};
_.S(rJB,m2);rJB.prototype.getAssociations=function(){return[]};
rJB.prototype.getTypeName=function(){return"booleanEntity"};var NEo=function(){m2.apply(this,arguments)};
_.S(NEo,m2);NEo.prototype.getAssociations=function(){return[]};
NEo.prototype.getTypeName=function(){return"stringEntity"};var je=new _.ja("entityBatchUpdate");_.PE4=new _.ja("entityUpdateCommand");var EPq=function(){m2.apply(this,arguments)};
_.S(EPq,m2);EPq.prototype.getAssociations=function(){var X=[];this.delegate.alternateChannel&&X.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&X.push.apply(X,_.RY(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&X.push(this.delegate.oneofChannelEntity);return[].concat(_.RY(new Set(X)))};
EPq.prototype.getTypeName=function(){return"fakeChannel"};var Ugh=function(){m2.apply(this,arguments)};
_.S(Ugh,m2);Ugh.prototype.getAssociations=function(){var X=[];this.delegate.entryCollection&&X.push(this.delegate.entryCollection);return[].concat(_.RY(new Set(X)))};
Ugh.prototype.getTypeName=function(){return"fakePlaylist"};
var mg4=function(){m2.apply(this,arguments)};
_.S(mg4,m2);mg4.prototype.getAssociations=function(){var X=[];this.delegate.parentPlaylist&&X.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var t=_.J(this.delegate.entries),G=t.next();!G.done;G=t.next())X.push.apply(X,_.RY((new R4z(G.value)).getAssociations()));return[].concat(_.RY(new Set(X)))};
mg4.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var R4z=function(){Ut.apply(this,arguments)};
_.S(R4z,Ut);R4z.prototype.getAssociations=function(){var X=[];this.delegate.video&&X.push(this.delegate.video);return[].concat(_.RY(new Set(X)))};var iGR=function(){m2.apply(this,arguments)};
_.S(iGR,m2);iGR.prototype.getAssociations=function(){var X=[];this.delegate.descriptionEntity&&X.push(this.delegate.descriptionEntity);this.delegate.creators&&X.push.apply(X,_.RY(this.delegate.creators));this.delegate.theBiggestFan&&X.push(this.delegate.theBiggestFan);return[].concat(_.RY(new Set(X)))};
iGR.prototype.getTypeName=function(){return"fakeVideo"};
var LpR=function(){m2.apply(this,arguments)};
_.S(LpR,m2);LpR.prototype.getAssociations=function(){return[]};
LpR.prototype.getTypeName=function(){return"fakeVideoDescription"};var vPR=new _.ja("fantasyRosterViewModel");var aMY=new _.ja("addFollowUpSurveyCommand");var lMY=new _.ja("getSurveyCommand");var xgS=new _.ja("ratingSurveyOptionRenderer");_.fV=new _.ja("feedbackEndpoint");var fMP=new _.ja("reportHistoryTableCellRenderer"),M2t=new _.ja("reportHistoryTableTextCellRenderer"),XZJ=new _.ja("reportHistoryTableReasonCellRenderer");_.$TB=new _.ja("flagEndpoint");var taq=new _.ja("getFlowCommand");var GuS=new _.ja("submitFormWithValidationFlowCommand");var y8q=function(){m2.apply(this,arguments)};
_.S(y8q,m2);y8q.prototype.getAssociations=function(){return[]};
y8q.prototype.getTypeName=function(){return"flowStateEntity"};var wZq=new _.ja("flowFormState");var zmo=new _.ja("gameCardRenderer");var HPB=new _.ja("accountLinkingStateChangedCommand");var oX4=function(){m2.apply(this,arguments)};
_.S(oX4,m2);oX4.prototype.getAssociations=function(){return[]};
oX4.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var J8R=new _.ja("changeMiniAppPlayStateCommand");var BAY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(BAY,_.eB);var aM=[1,2,3];var nXq=[0,aM,MJw,_.XEV,iSA];var VaJ=_.ZY(BAY,nXq),bPt=_.qx(nXq);var kuJ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(kuJ,_.eB);var dTJ=[0,_.Jl,_.V7];var emt=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(emt,_.eB);var jE4=[0,_.V7,_.Jl,-1];var lY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(lY,_.eB);var gXY=_.qx([0,1,dTJ,_.da,jE4]);var FnS=new _.ja("miniAppScoreChallengeViewModel");var TAP=new _.ja("miniGameCardViewModel");var A8Y=new _.ja("teaserCardViewModel");var Yyz=function(){m2.apply(this,arguments)};
_.S(Yyz,m2);Yyz.prototype.getAssociations=function(){return[]};
Yyz.prototype.getTypeName=function(){return"logoEntity"};_.sES=new _.ja("feedbackItemRenderer");var DTh=function(){m2.apply(this,arguments)};
_.S(DTh,m2);DTh.prototype.getAssociations=function(){return[]};
DTh.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.Syo=new _.ja("playerInterstitialRenderer");var hmt=new _.ja("getKidsBlocklistPickerCommand");_.ZPR=new _.ja("updateKidsBlacklistEndpoint");_.wP=new _.ja("likeEndpoint");var qyR,CkJ,Kn4;qyR=new _.ja("addChatItemAction");CkJ=new _.ja("removeChatItemAction");Kn4=new _.ja("markChatItemAsDeletedAction");_.OPh=new _.ja("setLiveChatCollapsedStateAction");var uBq=function(){m2.apply(this,arguments)};
_.S(uBq,m2);uBq.prototype.getAssociations=function(){return[]};
uBq.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var QEq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(QEq,_.eB);var I4t=_.ZY(QEq,[0,1,_.Jl]);var Wnq=new _.ja("liveChatEndpoint");var c8t=new _.ja("liveChatItemContextMenuEndpoint");var pZq=new _.ja("liveChatReplayEndpoint");_.r84=new _.ja("emojiPickerRenderer");var NAh=new _.ja("liveChatAuthorBadgeViewModel");var Pkq=new _.ja("deleteLiveChatMessageCommand");var EX4=new _.ja("liveChatActionEndpoint");var UTq=new _.ja("createLiveChatPollEndpoint");var mTq=new _.ja("manageLiveChatUserEndpoint");var RmR=new _.ja("moderateLiveChatEndpoint");_.iPt=new _.ja("sendLiveChatMessageEndpoint");var Lnz=new _.ja("sendLiveChatVoteEndpoint");var vXR=new _.ja("clearLocationCommand");var a4R=new _.ja("resolveLocationCommand");var l4R=new _.ja("interactionLoggingCommandMetadata");var xTo=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(xTo,_.eB);var f4h=function(X,t){return _.Yb(X,1,t)};var Maq=[0,_.nN];var XBq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(XBq,_.eB);var $DP=function(X,t){return I7(X,1,xTo,t)};XBq.prototype.JSC$12046_serializeBinary=sjE([0,_.bM,Maq]);var emE={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 ttq={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"},
GvY={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 pYY={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"};_.pc6=new _.ja("logFlowLoggingEventCommand");_.EV=new _.ja("loggingContext");var yzB=new _.ja("captionLanguageSelectActionCommand");var wBJ=new _.ja("showCaptionLanguageSelectActionCommand");var zr4=new _.ja("dismissDialogEndpoint");var Hmt=new _.ja("hideItemSectionVideosByIdCommand");var oCh=new _.ja("showMiniplayerCommand");var Jzq=function(){m2.apply(this,arguments)};
_.S(Jzq,m2);Jzq.prototype.getAssociations=function(){return[]};
Jzq.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var BxY=function(){m2.apply(this,arguments)};
_.S(BxY,m2);BxY.prototype.getAssociations=function(){return[]};
BxY.prototype.getTypeName=function(){return"downloadStatusEntity"};var nCq=function(){m2.apply(this,arguments)};
_.S(nCq,m2);nCq.prototype.getAssociations=function(){return[]};
nCq.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var Vtz=function(){m2.apply(this,arguments)};
_.S(Vtz,m2);Vtz.prototype.getAssociations=function(){var X=[];this.delegate.downloadsList&&X.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&X.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&X.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&X.push(this.delegate.refresh);return[].concat(_.RY(new Set(X)))};
Vtz.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var bm4=function(){m2.apply(this,arguments)};
_.S(bm4,m2);bm4.prototype.getAssociations=function(){var X=[];this.delegate.refresh&&X.push(this.delegate.refresh);if(this.delegate.downloads)for(var t=_.J(this.delegate.downloads),G=t.next();!G.done;G=t.next())X.push.apply(X,_.RY((new kve(G.value)).getAssociations()));return[].concat(_.RY(new Set(X)))};
bm4.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var kve=function(){Ut.apply(this,arguments)};
_.S(kve,Ut);kve.prototype.getAssociations=function(){var X=[];this.delegate.video&&X.push(this.delegate.video);this.delegate.playlist&&X.push(this.delegate.playlist);this.delegate.videoItem&&X.push(this.delegate.videoItem);this.delegate.playlistItem&&X.push(this.delegate.playlistItem);return[].concat(_.RY(new Set(X)))};var dDB=function(){m2.apply(this,arguments)};
_.S(dDB,m2);dDB.prototype.getAssociations=function(){var X=[];this.delegate.localImageEntities&&X.push.apply(X,_.RY(this.delegate.localImageEntities));return[].concat(_.RY(new Set(X)))};
dDB.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var erP=function(){m2.apply(this,arguments)};
_.S(erP,m2);erP.prototype.getAssociations=function(){var X=[];this.delegate.playbackData&&X.push(this.delegate.playbackData);this.delegate.localImageEntities&&X.push.apply(X,_.RY(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&X.push(this.delegate.videoDownloadContextEntity);return[].concat(_.RY(new Set(X)))};
erP.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var jZR=function(){m2.apply(this,arguments)};
_.S(jZR,m2);jZR.prototype.getAssociations=function(){return[]};
jZR.prototype.getTypeName=function(){return"offlineabilityEntity"};var gCq=function(){m2.apply(this,arguments)};
_.S(gCq,m2);gCq.prototype.getAssociations=function(){var X=[];this.delegate.fakeChildren&&X.push.apply(X,_.RY(this.delegate.fakeChildren));return[].concat(_.RY(new Set(X)))};
gCq.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var FoJ=function(){m2.apply(this,arguments)};
_.S(FoJ,m2);FoJ.prototype.getAssociations=function(){var X=[];this.delegate.video&&X.push(this.delegate.video);this.delegate.playbackData&&X.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&X.push(this.delegate.offlineVideoPolicy);return[].concat(_.RY(new Set(X)))};
FoJ.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var Tx4=function(){m2.apply(this,arguments)};
_.S(Tx4,m2);Tx4.prototype.getAssociations=function(){return[]};
Tx4.prototype.getTypeName=function(){return"continuationTokenEntity"};var Azt=function(){m2.apply(this,arguments)};
_.S(Azt,m2);Azt.prototype.getAssociations=function(){var X=[];this.delegate.channelOwner&&X.push(this.delegate.channelOwner);this.delegate.videos&&X.push.apply(X,_.RY(this.delegate.videos));this.delegate.collaboratorChannels&&X.push.apply(X,_.RY(this.delegate.collaboratorChannels));this.delegate.downloadState&&X.push(this.delegate.downloadState);this.delegate.refresh&&X.push(this.delegate.refresh);return[].concat(_.RY(new Set(X)))};
Azt.prototype.getTypeName=function(){return"mainPlaylistEntity"};var Y_o=function(){m2.apply(this,arguments)};
_.S(Y_o,m2);Y_o.prototype.getAssociations=function(){var X=[];this.delegate.video&&X.push(this.delegate.video);this.delegate.channelContributor&&X.push(this.delegate.channelContributor);return[].concat(_.RY(new Set(X)))};
Y_o.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var sZJ=function(){Ut.apply(this,arguments)};
_.S(sZJ,Ut);sZJ.prototype.getAssociations=function(){var X=[];this.delegate.recommendedVideoMetadata&&X.push.apply(X,_.RY((new DDS(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.RY(new Set(X)))};
var DDS=function(){Ut.apply(this,arguments)};
_.S(DDS,Ut);DDS.prototype.getAssociations=function(){var X=[];this.delegate.localImageEntities&&X.push.apply(X,_.RY(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&X.push(this.delegate.videoDownloadContextEntity);return[].concat(_.RY(new Set(X)))};var S_S=function(){Ut.apply(this,arguments)};
_.S(S_S,Ut);S_S.prototype.getAssociations=function(){var X=[];this.delegate.playbackPosition&&X.push(this.delegate.playbackPosition);return[].concat(_.RY(new Set(X)))};var hrh=function(){m2.apply(this,arguments)};
_.S(hrh,m2);hrh.prototype.getAssociations=function(){var X=[];this.delegate.owner&&X.push(this.delegate.owner);this.delegate.downloadState&&X.push(this.delegate.downloadState);this.delegate.userState&&X.push.apply(X,_.RY((new S_S(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&X.push.apply(X,_.RY((new sZJ(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.RY(new Set(X)))};
hrh.prototype.getTypeName=function(){return"mainVideoEntity"};var Zm4=function(){m2.apply(this,arguments)};
_.S(Zm4,m2);Zm4.prototype.getAssociations=function(){var X=[];this.delegate.userChannelDetails&&X.push(this.delegate.userChannelDetails);return[].concat(_.RY(new Set(X)))};
Zm4.prototype.getTypeName=function(){return"ytMainChannelEntity"};var q_h=function(){m2.apply(this,arguments)};
_.S(q_h,m2);q_h.prototype.getAssociations=function(){var X=[];this.delegate.channelOwner&&X.push(this.delegate.channelOwner);this.delegate.playbackPosition&&X.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&X.push.apply(X,_.RY(this.delegate.localImageEntities));this.delegate.downloadStatus&&X.push(this.delegate.downloadStatus);return[].concat(_.RY(new Set(X)))};
q_h.prototype.getTypeName=function(){return"ytMainVideoEntity"};var nnf=new _.ja("downloadsPageSmartDownloadsOptInBannerParams");var dPl=new _.ja("downloadsPageUpsellBannerParams");var CyS=function(){m2.apply(this,arguments)};
_.S(CyS,m2);CyS.prototype.getAssociations=function(){return[]};
CyS.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var KoY=function(){m2.apply(this,arguments)};
_.S(KoY,m2);KoY.prototype.getAssociations=function(){return[]};
KoY.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var Omh=function(){m2.apply(this,arguments)};
_.S(Omh,m2);Omh.prototype.getAssociations=function(){return[]};
Omh.prototype.getTypeName=function(){return"macroMarkerEntity"};var uLh=function(){m2.apply(this,arguments)};
_.S(uLh,m2);uLh.prototype.getAssociations=function(){return[]};
uLh.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var QZ4=function(){m2.apply(this,arguments)};
_.S(QZ4,m2);QZ4.prototype.getAssociations=function(){return[]};
QZ4.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var IZB=function(){m2.apply(this,arguments)};
_.S(IZB,m2);IZB.prototype.getAssociations=function(){return[]};
IZB.prototype.getTypeName=function(){return"playerStateEntity"};var Wo4=function(){m2.apply(this,arguments)};
_.S(Wo4,m2);Wo4.prototype.getAssociations=function(){return[]};
Wo4.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var czJ=function(){m2.apply(this,arguments)};
_.S(czJ,m2);czJ.prototype.getAssociations=function(){return[]};
czJ.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var pBJ=function(){m2.apply(this,arguments)};
_.S(pBJ,m2);pBJ.prototype.getAssociations=function(){return[]};
pBJ.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.x_=new _.ja("dislikeButtonViewModel");_.fe=new _.ja("likeButtonViewModel");var rzq=new _.ja("videoSummaryContentViewModel");var NxJ=new _.ja("videoSummaryParagraphViewModel");var Pyq=new _.ja("changeTimelyActionVisibilityCommand");var ECJ=new _.ja("hideEngagementPanelEndpoint");var UDh=new _.ja("refreshPanelEndpoint");var mD4=new _.ja("scrollToSectionEndpoint");var Rrq=new _.ja("seekToVideoTimestampCommand");_.xl=new _.ja("showEngagementPanelEndpoint");var imo=new _.ja("showTransientPlayerScrimOverlayCommand");var Lot=new _.ja("toggleEngagementPanelCommand");_.vCt=new _.ja("createBroadcastCommand");var aZJ=new _.ja("metadataUpdateCommand");var lZq=function(){m2.apply(this,arguments)};
_.S(lZq,m2);lZq.prototype.getAssociations=function(){return[]};
lZq.prototype.getTypeName=function(){return"featuredProductsEntity"};var xDS=function(){m2.apply(this,arguments)};
_.S(xDS,m2);xDS.prototype.getAssociations=function(){return[]};
xDS.prototype.getTypeName=function(){return"pinnedProductEntity"};var fZB=function(){m2.apply(this,arguments)};
_.S(fZB,m2);fZB.prototype.getAssociations=function(){return[]};
fZB.prototype.getTypeName=function(){return"trendingOfferEntity"};_.MtP=new _.ja("merchandiseShelfRenderer");var X3t=new _.ja("gridMovieRenderer");_.$NR=new _.ja("movieRenderer");var tI4=function(){m2.apply(this,arguments)};
_.S(tI4,m2);tI4.prototype.getAssociations=function(){var X=[];this.delegate.trackDownloadMetadatas&&X.push.apply(X,_.RY(this.delegate.trackDownloadMetadatas));return[].concat(_.RY(new Set(X)))};
tI4.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var G_o=function(){m2.apply(this,arguments)};
_.S(G_o,m2);
G_o.prototype.getAssociations=function(){var X=[];this.delegate.downloadedTracks&&X.push.apply(X,_.RY(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&X.push.apply(X,_.RY(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&X.push.apply(X,_.RY(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&X.push.apply(X,_.RY(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&X.push.apply(X,_.RY(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
X.push.apply(X,_.RY(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&X.push.apply(X,_.RY(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&X.push.apply(X,_.RY(this.delegate.metadataOnlyTracks));return[].concat(_.RY(new Set(X)))};
G_o.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var y04=function(){m2.apply(this,arguments)};
_.S(y04,m2);y04.prototype.getAssociations=function(){var X=[];this.delegate.trackDownloadMetadatas&&X.push.apply(X,_.RY(this.delegate.trackDownloadMetadatas));return[].concat(_.RY(new Set(X)))};
y04.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var w3z=function(){m2.apply(this,arguments)};
_.S(w3z,m2);w3z.prototype.getAssociations=function(){var X=[];this.delegate.playbackData&&X.push(this.delegate.playbackData);this.delegate.localImageEntities&&X.push.apply(X,_.RY(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&X.push(this.delegate.videoDownloadContextEntity);return[].concat(_.RY(new Set(X)))};
w3z.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var zFq=function(){m2.apply(this,arguments)};
_.S(zFq,m2);
zFq.prototype.getAssociations=function(){var X=[];this.delegate.musicLibraryStatusEntity&&X.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&X.push.apply(X,_.RY(this.delegate.primaryArtists));this.delegate.details&&X.push(this.delegate.details);this.delegate.userDetails&&X.push(this.delegate.userDetails);this.delegate.tracks&&X.push.apply(X,_.RY(this.delegate.tracks));this.delegate.share&&X.push(this.delegate.share);this.delegate.downloadMetadata&&X.push(this.delegate.downloadMetadata);this.delegate.refresh&&
X.push(this.delegate.refresh);return[].concat(_.RY(new Set(X)))};
zFq.prototype.getTypeName=function(){return"musicAlbumRelease"};
var HBq=function(){m2.apply(this,arguments)};
_.S(HBq,m2);HBq.prototype.getAssociations=function(){var X=[];this.delegate.albumRelease&&X.push(this.delegate.albumRelease);this.delegate.tracks&&X.push.apply(X,_.RY(this.delegate.tracks));return[].concat(_.RY(new Set(X)))};
HBq.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var oro=function(){m2.apply(this,arguments)};
_.S(oro,m2);oro.prototype.getAssociations=function(){var X=[];this.delegate.albumRelease&&X.push(this.delegate.albumRelease);return[].concat(_.RY(new Set(X)))};
oro.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var J0q=function(){m2.apply(this,arguments)};
_.S(J0q,m2);J0q.prototype.getAssociations=function(){var X=[];this.delegate.details&&X.push(this.delegate.details);this.delegate.userDetails&&X.push(this.delegate.userDetails);return[].concat(_.RY(new Set(X)))};
J0q.prototype.getTypeName=function(){return"musicArtist"};
var B_q=function(){m2.apply(this,arguments)};
_.S(B_q,m2);B_q.prototype.getAssociations=function(){var X=[];this.delegate.parentArtist&&X.push(this.delegate.parentArtist);return[].concat(_.RY(new Set(X)))};
B_q.prototype.getTypeName=function(){return"musicArtistDetail"};
var nrq=function(){m2.apply(this,arguments)};
_.S(nrq,m2);nrq.prototype.getAssociations=function(){var X=[];this.delegate.parentArtist&&X.push(this.delegate.parentArtist);return[].concat(_.RY(new Set(X)))};
nrq.prototype.getTypeName=function(){return"musicArtistUserDetail"};var VIR=function(){m2.apply(this,arguments)};
_.S(VIR,m2);VIR.prototype.getAssociations=function(){return[]};
VIR.prototype.getTypeName=function(){return"musicLibraryEdit"};var bBJ=function(){m2.apply(this,arguments)};
_.S(bBJ,m2);bBJ.prototype.getAssociations=function(){return[]};
bBJ.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var k_q=function(){m2.apply(this,arguments)};
_.S(k_q,m2);
k_q.prototype.getAssociations=function(){var X=[];this.delegate.tracks&&X.push.apply(X,_.RY(this.delegate.tracks));this.delegate.refresh&&X.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&X.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&X.push(this.delegate.details);this.delegate.downloadMetadata&&X.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&X.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&X.push(this.delegate.userDetails);this.delegate.entryCollection&&
X.push(this.delegate.entryCollection);this.delegate.share&&X.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&X.push.apply(X,_.RY((new dN4(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.RY(new Set(X)))};
k_q.prototype.getTypeName=function(){return"musicPlaylist"};
var dN4=function(){Ut.apply(this,arguments)};
_.S(dN4,Ut);dN4.prototype.getAssociations=function(){var X=[];this.delegate.creatorEntity&&X.push(this.delegate.creatorEntity);return[].concat(_.RY(new Set(X)))};var eFY=function(){m2.apply(this,arguments)};
_.S(eFY,m2);eFY.prototype.getAssociations=function(){return[]};
eFY.prototype.getTypeName=function(){return"musicShare"};var jxt=function(){m2.apply(this,arguments)};
_.S(jxt,m2);
jxt.prototype.getAssociations=function(){var X=[];this.delegate.musicLibraryStatusEntity&&X.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&X.push.apply(X,_.RY(this.delegate.artists));this.delegate.audioModeVersion&&X.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&X.push(this.delegate.videoModeVersion);this.delegate.userDetails&&X.push(this.delegate.userDetails);this.delegate.details&&X.push(this.delegate.details);this.delegate.albumRelease&&X.push(this.delegate.albumRelease);this.delegate.share&&
X.push(this.delegate.share);this.delegate.libraryEdit&&X.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&X.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&X.push(this.delegate.playbackPosition);this.delegate.lyrics&&X.push(this.delegate.lyrics);return[].concat(_.RY(new Set(X)))};
jxt.prototype.getTypeName=function(){return"musicTrack"};
var grq=function(){m2.apply(this,arguments)};
_.S(grq,m2);grq.prototype.getAssociations=function(){var X=[];this.delegate.parentTrack&&X.push(this.delegate.parentTrack);return[].concat(_.RY(new Set(X)))};
grq.prototype.getTypeName=function(){return"musicTrackDetail"};
var FQB=function(){m2.apply(this,arguments)};
_.S(FQB,m2);FQB.prototype.getAssociations=function(){var X=[];this.delegate.parentTrack&&X.push(this.delegate.parentTrack);return[].concat(_.RY(new Set(X)))};
FQB.prototype.getTypeName=function(){return"musicTrackUserDetail"};var ew=new _.ja("musicResponsiveListItemRenderer");var hqv=new _.ja("addToPlaylistEndpoint");var T_q=new _.ja("captionPickerEndpoint");var A0R=new _.ja("suggestStats");var YCq=new _.ja("backstageImageUploadEndpoint");var sxo=new _.ja("createBackstagePostDialogEndpoint");_.DNP=new _.ja("createCommentReplyDialogEndpoint");_.SCY=new _.ja("updateCommentDialogEndpoint");_.hFR=new _.ja("updateCommentReplyDialogEndpoint");var ZBR=new _.ja("menuEndpoint");var B3l=new _.ja("modalEndpoint");var qCo=new _.ja("playlistEditorEndpoint");var CSR=new _.ja("copyTextEndpoint");var KQh,OBe;KQh=new _.ja("shareEndpoint");OBe=new _.ja("shareEntityEndpoint");_.uXB=new _.ja("shareEntityServiceEndpoint");_.chA=new _.ja("userFeedbackEndpoint");_.nq=new _.ja("watchEndpoint");var Rww=new _.ja("watchPlaylistEndpoint");var Qxe=new _.ja("addUpcomingEventReminderEndpoint");_.M0=new _.ja("getCommentsFromInboxCommand");var Ib4=new _.ja("notificationOptOutEndpoint");var WQP=new _.ja("recordNotificationInteractionsEndpoint");var c0B=new _.ja("removeUpcomingEventReminderEndpoint");var D3f=new _.ja("getDownloadActionCommand");_.p3e=new _.ja("offlineOrchestrationActionCommand");var r0h=function(){m2.apply(this,arguments)};
_.S(r0h,m2);r0h.prototype.getAssociations=function(){return[]};
r0h.prototype.getTypeName=function(){return"captionTrack"};var N_4=function(){m2.apply(this,arguments)};
_.S(N_4,m2);N_4.prototype.getAssociations=function(){return[]};
N_4.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var PSh=function(){m2.apply(this,arguments)};
_.S(PSh,m2);PSh.prototype.getAssociations=function(){return[]};
PSh.prototype.getTypeName=function(){return"offlineVideoPolicy"};var Erq=function(){m2.apply(this,arguments)};
_.S(Erq,m2);Erq.prototype.getAssociations=function(){return[]};
Erq.prototype.getTypeName=function(){return"offlineVideoStreams"};var UN4=function(){m2.apply(this,arguments)};
_.S(UN4,m2);UN4.prototype.getAssociations=function(){var X=[];this.delegate.transfer&&X.push(this.delegate.transfer);this.delegate.adsPlaybackData&&X.push.apply(X,_.RY(this.delegate.adsPlaybackData));this.delegate.drmLicense&&X.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&X.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&X.push(this.delegate.videoDownloadContextEntity);return[].concat(_.RY(new Set(X)))};
UN4.prototype.getTypeName=function(){return"playbackData"};var mNo=function(){m2.apply(this,arguments)};
_.S(mNo,m2);mNo.prototype.getAssociations=function(){return[]};
mNo.prototype.getTypeName=function(){return"refresh"};var RFe=function(){m2.apply(this,arguments)};
_.S(RFe,m2);RFe.prototype.getAssociations=function(){var X=[];this.delegate.offlineVideoStreams&&X.push.apply(X,_.RY(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&X.push.apply(X,_.RY(this.delegate.captionTrack));return[].concat(_.RY(new Set(X)))};
RFe.prototype.getTypeName=function(){return"transfer"};var iBt=function(){m2.apply(this,arguments)};
_.S(iBt,m2);iBt.prototype.getAssociations=function(){return[]};
iBt.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var LQh=new _.ja("showMoreDrawerCommand");var vrt=new _.ja("updateEngagementPanelContentCommand");var abt=new _.ja("getPdgBuyFlowCommand");var lbt=new _.ja("liveChatPurchaseMessageEndpoint");var xN4=new _.ja("openSuperStickerBuyFlowCommand");var fbq=new _.ja("updatePdgFeatureEnablementCommand");var MIJ=function(){m2.apply(this,arguments)};
_.S(MIJ,m2);MIJ.prototype.getAssociations=function(){return[]};
MIJ.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var XMq=function(){m2.apply(this,arguments)};
_.S(XMq,m2);XMq.prototype.getAssociations=function(){return[]};
XMq.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.$0B=new _.ja("pdgCommentChipRenderer");_.tfz=new _.ja("permissionRoleBottomBarRenderer");_.GQB=new _.ja("updatePermissionRoleCommand");var yZ4=new _.ja("prefetchWatchCommand");var wMt=new _.ja("updatePlayerErrorMessageCommand");var j1A=new _.ja("toggleCaptionsVisibilityCommand");_.zU4=new _.ja("quickActionsViewModel");var HeY=new _.ja("playerResponse");var o_4=new _.ja("playlistRenderer");_.JZo=new _.ja("playlistVideoListRenderer");_.Xs=new _.ja("playlistEditEndpoint");var BB4=new _.ja("createImagePollCommand");var n_R=new _.ja("createQuizCommand");var Vfq=new _.ja("quizRenderer");var beo=new _.ja("uploadedVideoRenderer");var kQq=new _.ja("decorateMessageEndpoint");var d0B=new _.ja("lpOfferCardOptionViewModel");var eUY=new _.ja("sfvAudioItemPlaybackCommand");var jM4=function(){m2.apply(this,arguments)};
_.S(jM4,m2);jM4.prototype.getAssociations=function(){return[]};
jM4.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.$n=new _.ja("reelNonVideoContentEndpoint");_.E8=new _.ja("reelWatchEndpoint");_.tP=new _.ja("reelItemRenderer");_.g_4=new _.ja("reelMetapanelViewModel");_.F2S=new _.ja("reelNonVideoContentRenderer");_.TBJ=new _.ja("reelPlayerOverlayRenderer");var AZS=new _.ja("shortsLockupViewModel");var Yto=new _.ja("sponsorButtonViewModel");var sMh=new _.ja("reelItemWatchResponse");var D0o=new _.ja("textBadgeRenderer");_.G4=new _.ja("buttonRenderer");_.yq=new _.ja("toggleButtonRenderer");var Gnh=new _.ja("switchButtonViewModel");_.Ste=new _.ja("confirmDialogRenderer");var hUz;hUz=new _.ja("menuRenderer");_.Zeq=new _.ja("menuFlexibleItemRenderer");var qtB=new _.ja("pollRenderer");_.CYq=new _.ja("backgroundPromoRenderer");var Oez;_.K2Y=new _.ja("chipCloudRenderer");Oez=new _.ja("chipCloudChipRenderer");var ueq=new _.ja("dropdownRenderer");var QMY=new _.ja("gridVideoRenderer");_.I9h=new _.ja("itemSectionRenderer");_.W2q=new _.ja("messageRenderer");var cZt=new _.ja("sortFilterHeaderRenderer");_.wz=new _.ja("videoRenderer");var pMJ=new _.ja("resolveUrlCommandMetadata");var rZ4=function(){m2.apply(this,arguments)};
_.S(rZ4,m2);rZ4.prototype.getAssociations=function(){return[]};
rZ4.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.NB4=new _.ja("getAnswerCommand");_.rV=new _.ja("searchEndpoint");var PYY=new _.ja("genAiRichTextViewModel");var s16=new _.ja("overviewAnswerViewModel");var E_Y=new _.ja("addToPlaylistServiceEndpoint");var U0S=new _.ja("clearSearchHistoryEndpoint");var m0e=new _.ja("clearWatchHistoryEndpoint");var RUq=new _.ja("webSerializedServiceEndpointExtension");_.iez=new _.ja("createCommentEndpoint");var L2e=new _.ja("createCommentReplyEndpoint");var v_P=new _.ja("performCommentActionEndpoint");var a9o=new _.ja("updateCommentEndpoint");var l9z=new _.ja("updateCommentReplyEndpoint");_.z4=new _.ja("createPlaylistServiceEndpoint");var x0q=new _.ja("deletePlaylistEndpoint");var f9q=new _.ja("deleteVideoEndpoint");var SJY=new _.ja("getReportFormEndpoint");var Mfz=new _.ja("modifyChannelNotificationPreferenceEndpoint");var E8V;_.p5=new _.ja("offlinePlaylistEndpoint");E8V={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 Uav;_.ck=new _.ja("offlineVideoEndpoint");Uav={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 XF4=new _.ja("pingingEndpoint");_.$Po=new _.ja("selectActiveIdentityEndpoint");var tOS=new _.ja("setSettingEndpoint");var yUV=new _.ja("undoFeedbackEndpoint");var G4t=new _.ja("unsubscribeEndpoint");_.yPR=new _.ja("updatedMetadataEndpoint");var wFS=function(){m2.apply(this,arguments)};
_.S(wFS,m2);wFS.prototype.getAssociations=function(){return[]};
wFS.prototype.getTypeName=function(){return"settingEntity"};_.zOq=new _.ja("updateLocalAppSettingCommand");var Hc4=new _.ja("saveImageToDeviceEndpoint");var ono=new _.ja("shareImageCommand");var JPe=new _.ja("sharingProviderDataCommand");var Bzq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Bzq,_.eB);var nnP=[0,_.V7,-1];Bzq.prototype.JSC$12247_serializeBinary=sjE(nnP);var VOo=_.qx(nnP);var jIR=new _.ja("userMentionSuggestionRenderer");var g6Y=new _.ja("liveChatTunnelCommand");var F4B=new _.ja("showSponsorshipsGiftOfferDialogCommand");var TvJ=new _.ja("sponsorshipsScrollableShelfViewModel");var A_o=new _.ja("updateUpcomingEventReminderButtonStateCommand");var Y2t=new _.ja("upcomingEventReminderButtonStateRenderer");var sIe=new _.ja("subscribeEndpoint");var DWB=new _.ja("registerTasksCommand");var S2B=new _.ja("hideSnackbarCommand");var hTt=new _.ja("showDialogCommand");_.UW=new _.ja("showSheetCommand");var Zu4=new _.ja("showSnackbarCommand");var q2q=function(){m2.apply(this,arguments)};
_.S(q2q,m2);q2q.prototype.getAssociations=function(){return[]};
q2q.prototype.getTypeName=function(){return"chipEntity"};var Cjh=function(){m2.apply(this,arguments)};
_.S(Cjh,m2);Cjh.prototype.getAssociations=function(){return[]};
Cjh.prototype.getTypeName=function(){return"dismissState"};_.Hv=new _.ja("avatarViewModel");var K4q=new _.ja("badgeViewModel");_.vk=new _.ja("buttonViewModel");_.HF=new _.ja("chipViewModel");var kn6=new _.ja("collectionThumbnailViewModel");var Ouo=new _.ja("contentPreviewImageViewModel");var uNB=new _.ja("decoratedAvatarViewModel");var iKs=new _.ja("downloadButtonViewModel");_.JTl=new _.ja("engagementBarViewModel");_.QIt=new _.ja("imageBannerViewModel");var IGq=new _.ja("lockupContentMetadataRowExtension");var W4Y=new _.ja("lockupMetadataViewModel");_.c_S=new _.ja("lockupViewModel");var pN4=new _.ja("avatarStackViewModel");_.r_R=new _.ja("contentMetadataViewModel");var NvP=function(){m2.apply(this,arguments)};
_.S(NvP,m2);NvP.prototype.getAssociations=function(){return[]};
NvP.prototype.getTypeName=function(){return"pageHeaderEntity"};_.PjY=new _.ja("pageHeaderViewModel");var E6q=new _.ja("snackbarViewModel");var UW4=new _.ja("thumbnailHoverOverlayToggleActionsViewModel");_.as=new _.ja("toggleButtonViewModel");var mWR=function(){m2.apply(this,arguments)};
_.S(mWR,m2);mWR.prototype.getAssociations=function(){return[]};
mWR.prototype.getTypeName=function(){return"votingEntity"};_.Bcf=new _.ja("votingViewModel");var RT4=new _.ja("sectionHeaderViewModel");var iuB=new _.ja("notifyDropdownOptionSelectedCommand");var OK_=new _.ja("listViewModel");_.mA=new _.ja("listItemViewModel");var bOV=new _.ja("toggleableListItemViewModel");var L4S=new _.ja("dialogHeaderViewModel");var v6t=function(){m2.apply(this,arguments)};
_.S(v6t,m2);v6t.prototype.getAssociations=function(){return[]};
v6t.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var aGP=function(){m2.apply(this,arguments)};
_.S(aGP,m2);aGP.prototype.getAssociations=function(){return[]};
aGP.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var lGq=function(){m2.apply(this,arguments)};
_.S(lGq,m2);lGq.prototype.getAssociations=function(){return[]};
lGq.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.xWz=new _.ja("transcriptSubmitCaptionCorrectionCommand");var fGt=function(){m2.apply(this,arguments)};
_.S(fGt,m2);fGt.prototype.getAssociations=function(){return[]};
fGt.prototype.getTypeName=function(){return"buttonEntity"};var fI_=new _.ja("unpluggedStringRunImage");var MTJ=new _.ja("tabViewModel");var Xrq=new _.ja("tabbedViewModel");var $4z=function(){m2.apply(this,arguments)};
_.S($4z,m2);$4z.prototype.getAssociations=function(){return[]};
$4z.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.tVe=new _.ja("updateDescriptionAction");var GwY=new _.ja("updateToggleButtonTextAction");_.yC4=new _.ja("autoplaySwitchButtonRenderer");var Xb;_.wrt=new _.ja("multiMarkersPlayerBarRenderer");Xb=new _.ja("chapterRenderer");var zoY=new _.ja("heatMarkerRenderer");var e_h=new _.ja("heatmapRenderer");var HvP=new _.ja("smartSkipPlayerScrimOverlayRenderer");var oZ4=new _.ja("timedMarkerDecorationRenderer");var vi6=new _.ja("postWebToNativeMessageCommand");var JC4=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(JC4,_.eB);JC4.prototype.getMethodName=function(){return _.aQ(this,1)};var BGe=_.ZY(JC4,[0,_.V7,-2]);var nZ4=new _.ja("whitelistEditEndpoint");var VV4=new _.ja("clearUrlParamCommand");var bvR=new _.ja("commerceActionCommand");_.kwq=new _.ja("getPaymentInstrumentsParamsCommand");var d44=new _.ja("getPaymentsClientTokenCommand");var eoP=new _.ja("googlePaymentBillingCommand");var j3o=new _.ja("googlePaymentPurchaseManagerCommand");_.gZo=new _.ja("logGtmCommand");var FVY=new _.ja("updateCardItemOnClickCommand");_.TG4=new _.ja("ypcPauseSubscriptionCommand");_.ACY=new _.ja("ypcResumeSubscriptionCommand");var Ybh=function(){m2.apply(this,arguments)};
_.S(Ybh,m2);Ybh.prototype.getAssociations=function(){return[]};
Ybh.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var s34=function(){m2.apply(this,arguments)};
_.S(s34,m2);s34.prototype.getAssociations=function(){return[]};
s34.prototype.getTypeName=function(){return"commerceCartListEntity"};var D4q=function(){m2.apply(this,arguments)};
_.S(D4q,m2);D4q.prototype.getAssociations=function(){return[]};
D4q.prototype.getTypeName=function(){return"iconBadgeEntity"};var SbP=function(){m2.apply(this,arguments)};
_.S(SbP,m2);SbP.prototype.getAssociations=function(){return[]};
SbP.prototype.getTypeName=function(){return"pdpStateEntity"};var hoB=function(){m2.apply(this,arguments)};
_.S(hoB,m2);hoB.prototype.getAssociations=function(){return[]};
hoB.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var pJV=new _.ja("ypcOffersEndpoint");var Zv4=new _.ja("cardItemRenderer"),qbq=new _.ja("cardItemTextRenderer");var CRq=new _.ja("commerceCartItemQuantityPickerRenderer");var KVR=new _.ja("linkCardRenderer");var EiY=new _.ja("quantityIncrementerButtonViewModel");var OvR=new _.ja("quantityIncrementerViewModel");var uPo=new _.ja("themedImageViewModel");_.Q3P=new _.ja("ypcCancelRecurrenceEndpoint");var I8R=new _.ja("ypcCompleteTransactionEndpoint");_.WVo=new _.ja("ypcGetCartEndpoint");_.Yy=new _.ja("ypcGetOffersEndpoint");_.o9=new _.ja("ypcHandleTransactionEndpoint");var cCt=new _.ja("ypcLogWalletAnalyticDataEndpoint");_.prY=new _.ja("ypcRedeemCodeEndpoint");var rCt=new _.ja("ypcUpdateFopEndpoint");Y_(AZ(1),Fe(4));Qff((new MessageChannel).port2);var NGq=function(){this.register=new Map},gXs=function(X,t,G){X=X+"_"+t;
JP.register.has(X)?G=JP.register.get(X):(G=G(),JP.register.set(X,G));return G},PRB=function(X){X=_.J(X.register.values());
for(var t=X.next();!t.done;t=X.next())_.Q6(t.value,"ABORTED")};
NGq.prototype.clear=function(){PRB(this);this.register.clear()};
var JP=new NGq;var fMf=Date.now().toString();var $TV=XZl();var J80={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 EZR;EZR=1;_.vs=function(X){this.veData=X};
_.i$=function(X){return new _.vs({trackingParams:X})};
_.ai=function(X,t,G,y,w,z){var B=EZR++;return new _.vs({veType:X,veCounter:B,elementIndex:G,dataElement:t,youtubeData:y,jspbYoutubeData:w,loggingDirectives:z})};
_.H=_.vs.prototype;
_.H.getAsJson=function(){var X={};this.veData.trackingParams!==void 0?X.trackingParams=this.veData.trackingParams:(X.veType=this.veData.veType,this.veData.veCounter!==void 0&&(X.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(X.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(X.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(X.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(X.isCounterfactual=!0);
return X};
_.H.getAsJspb=function(){var X=new $_e;this.veData.trackingParams!==void 0?X.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.$o(X,2,this.veData.veType),this.veData.veCounter!==void 0&&_.$o(X,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.$o(X,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Yb(X,5,!0));if(this.veData.dataElement!==void 0){var t=this.veData.dataElement.getAsJspb();_.Oi(X,7,t)}this.veData.youtubeData!==void 0&&_.Oi(X,8,this.veData.jspbYoutubeData);
return X};
_.H.toString=function(){return JSON.stringify(this.getAsJson())};
_.H.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.H.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.dl("yt_logging_screen.getRootVeType",zm6);_.dl("yt_logging_screen.getCurrentCsn",_.lw);_.dl("yt_logging_screen.getCttAuthInfo",xe);_.dl("yt_logging_screen.setCurrentScreen",_.fE);var U4J=function(){this.events=new Map},m4S=function(X){var t=[];
X=_.J(X.events.values());for(var G=X.next();!G.done;G=X.next())t.push(G.value);return t};
U4J.prototype.clear=function(){this.events.clear()};var ivP=function(){this.logTransport=new Rot;this.loggedEventRegister=new U4J;this.unloggedEventRegister=new U4J;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12304_flushTimer=new _.Tp(this.flushInterval);this.JSC$12304_flushTimer.listen("tick",this.flush,!1,this)};
ivP.prototype.flush=function(){if(this.eventsCount){var X={loggedEvents:m4S(this.loggedEventRegister),unloggedEvents:m4S(this.unloggedEventRegister)};if(_.A("export_player_version_to_ytconfig")){var t;(t=_.Md("PLAYER_CLIENT_VERSION"))?(t=t.split("-")[0].replace(/\./g,""),t=isNaN(Number(t))?"0":t):t="";var G=_.Md("PLAYER_CLIENT_VERSION");if(G){G=G.split("-");var y="";G.length>1&&(y=G[G.length-1]);G=xgY(y.startsWith("canary_experiment")?"canary":y.startsWith("canary_control")?"control":"none")}else G=
"CLIENT_CANARY_STATE_UNKNOWN";X.dimensions={playerClientVersion:t,playerCanaryState:G}}this.logTransport.flush(X);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12304_flushTimer.enabled&&this.JSC$12304_flushTimer.stop()}};
var LV4=function(X){BF==null&&(BF=new ivP);var t=BF;var G=t.loggedEventRegister;X.dimensions=X.dimensions||{};X.dimensions.csn=_.lw()||"";var y=Val(X.dimensions).join(";");if(X.records!=null)if(G.events.has(y)){var w;(w=G.events.get(y).records)==null||w.push.apply(w,_.RY(X.records))}else G.events.set(y,X);t.JSC$12304_flushTimer.enabled||t.JSC$12304_flushTimer.start();t.eventsCount++;t.eventsCount>=100&&t.flush()};var Rot=function(){};
Rot.prototype.flush=function(X,t){_.A("enable_client_sli_logging")&&_.a7("sliEventBatch",X,{sendIsolatedPayload:!!t})};var BF;var a8h;a8h=function(X){var t=vZe;X=X===void 0?{}:X;t=t.name;var G=jE_("SUCCESS");LV4({dimensions:X,records:[{name:t,state:"SLI_STATE_END",status:G}]})};
_.FnY=function(X,t,G,y){this.name=X;this.sliId=t;this.timeoutMs=G;this.statusOnTimeout=y;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.FnY.prototype.getId=function(){return this.sliId};
_.uW=function(X,t){t=t===void 0?{}:t;X.ongoing||(X.ongoing=!0,X.dimensions=t,X.logSliId=O54(),LV4({dimensions:X.dimensions,records:[{name:X.name,state:"SLI_STATE_START",sliId:X.logSliId}]}),X.timeoutMs>0&&(X.timeoutHandle=setTimeout(function(){_.Q6(X,X.statusOnTimeout)},X.timeoutMs)))};
_.Q6=function(X,t){X.ongoing&&(X.timeoutMs>0&&clearTimeout(X.timeoutHandle),X.ongoing=!1,t={dimensions:X.dimensions,records:[{name:X.name,status:jE_(t),state:"SLI_STATE_END",sliId:X.logSliId}]},JP.register.delete(X.name+"_"+X.sliId),LV4(t))};var vZe=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var l84=function(){m2.apply(this,arguments)};
_.S(l84,m2);l84.prototype.getAssociations=function(){return[]};
l84.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var pX6=new _.ja("highlightTextDecoratorColorMapExtension");var W86=new _.ja("styleRunColorMapExtension");var hmE=_.Vc(["data-"]),Ckl={};var OPJ={};var nc=function(X){this.wrappedPromise_=X===void 0?null:X;this.state_=0;this.JSC$12336_value_=null};
nc.prototype.then=function(X,t,G){return this.wrappedPromise_?this.wrappedPromise_.then(X,t,G):this.state_===1&&X?(X=X.call(G,this.JSC$12336_value_))&&typeof X.then==="function"?X:_.Vq(X):this.state_===2&&t?(X=t.call(G,this.JSC$12336_value_))&&typeof X.then==="function"?X:_.x4R(X):this};
nc.prototype.getValue=function(){return this.JSC$12336_value_};
nc.prototype.isRejected=function(){return this.state_==2};
xB4(nc);_.x4R=function(X){var t=new nc;X=X===void 0?null:X;t.state_=2;t.JSC$12336_value_=X===void 0?null:X;return t};
_.Vq=function(X){var t=new nc;X=X===void 0?null:X;t.state_=1;t.JSC$12336_value_=X===void 0?null:X;return t};var Lnw="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var f8q=["load","abort","error"],bg=function(X,t,G){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12356_maxAspectRatio_=X;this.disableAnimation_=t===void 0?!1:t;this.disableExifRotation_=G===void 0?!1:G;this.JSC$12356_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12356_reject_=this.resolve_=null};
bg.prototype.transform=function(X){var t=this;this.mime_=X.type;VT(fdB(X),this.dataUrlRead_,this.readError_,this);VT(xr4(X.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(G,y){t.resolve_=G;t.JSC$12356_reject_=y})};
bg.prototype.dataUrlRead_=function(X){this.dataUrl_=X;this.angle_!=null&&MV4(this)};
bg.prototype.exifRead_=function(X){if(this.disableExifRotation_)this.angle_=0;else{a:if(X=new DataView(X),X.byteLength<2||X.getUint16(0)!==65496)X=-2;else{for(var t=2,G=X.byteLength;t<G;){var y=X.getUint16(t),w=X.getUint16(t+2);if(y===65505){t+=4;y=X.getUint32(t);w=X.getUint16(t+4);if(y!==1165519206||w!==0)break;t+=6;y=X.getUint16(t)===18761;t+=X.getUint32(t+4,y);w=X.getUint16(t,y);t+=2;for(var z=0;z<w;z++){if(X.getUint16(t,y)===274){t+=8;X=X.getUint16(t,y);break a}t+=12}}else if(y>>8!==255)break;
else t+=w+2}X=-1}switch(X){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&&MV4(this)};
bg.prototype.readError_=function(){this.JSC$12356_reject_()};
var MV4=function(X){mf(X.JSC$12356_image_,f8q,X.completeTransform_,!1,X);X.JSC$12356_image_.src=_.l_(X.dataUrl_).toString();X.JSC$12356_image_.src!=vt.toString()&&X.JSC$12356_image_.src.substr(0,11)==="data:image/"||X.JSC$12356_reject_()};
bg.prototype.completeTransform_=function(){if(this.JSC$12356_image_.src!=vt.toString()){var X=_.l_(this.dataUrl_),t=this.JSC$12356_image_.naturalHeight?this.JSC$12356_image_.naturalWidth/this.JSC$12356_image_.naturalHeight:null;this.invalidAspectRatio=t>this.JSC$12356_maxAspectRatio_||t<1/this.JSC$12356_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var G=this.JSC$12356_image_.naturalWidth,y=this.JSC$12356_image_.naturalHeight,w=t=0,z=this.JSC$12356_image_.naturalHeight?this.JSC$12356_image_.naturalWidth/
this.JSC$12356_image_.naturalHeight:null;z>this.JSC$12356_maxAspectRatio_?(G=this.JSC$12356_maxAspectRatio_*y,t=(G-this.JSC$12356_image_.naturalWidth)/2,this.cropped=!0):z<1/this.JSC$12356_maxAspectRatio_?(y=this.JSC$12356_maxAspectRatio_*G,w=(y-this.JSC$12356_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)z=G,G=y,y=z,z=t,t=w,w=z;switch(this.angle_){case 90:w-=G;break;case 180:t-=G;w-=y;break;case 270:t-=
y}this.cropped||this.angle_%360!==0?(X=document.createElement("canvas"),X.width=G||1,X.height=y||1,this.JSC$12356_image_.naturalWidth&&this.JSC$12356_image_.naturalHeight&&(G=X.getContext("2d"),G.rotate(Math.PI/180*this.angle_),G.drawImage(this.JSC$12356_image_,t,w,this.JSC$12356_image_.naturalWidth,this.JSC$12356_image_.naturalHeight)),this.transformedData=_.l_(X.toDataURL(this.mime_))):this.transformedData=X}else this.transformedData=X;this.resolve_(this)}};var kn=function(X,t){_.W6.call(this,X);this.value=t};
_.S(kn,_.W6);
var dz=function(X,t,G,y,w,z,B){B=B===void 0?!1:B;_.P6.call(this);var V=this;this.JSC$12361_url_=X;this.channelId_=t;this.maxFileSizeMb_=G;this.JSC$12361_maxAspectRatio_=y;this.dropZoneEl_=w;this.rejectInvalidAspectRatio_=B;this.selectButtonEl_=z;this.JSC$12361_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Ke(this.dropZoneEl_);this.selectOverlay_=new Ot(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12361_image_=this.transfer_=null;this.handler_=new _.AL(this);_.h6(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(z,"click",function(){V.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.S(dz,_.P6);dz.prototype.disposeInternal=function(){for(var X=this.selectButtonEl_.nextSibling;X&&X.parentNode&&X.tagName=="INPUT";)X.parentNode.removeChild(X),X=this.selectButtonEl_.nextSibling;this.cancel();_.P6.prototype.disposeInternal.call(this)};
dz.prototype.uploadPromise=function(){if(this.JSC$12361_image_==null)return null;this.uploadPromise_||XCt(this);return this.uploadPromise_};
dz.prototype.cancel=function(){$Ze(this);this.JSC$12361_image_=null};
var $Ze=function(X){X.transfer_&&X.transfer_.cancel();X.transfer_=null;X.uploadPromise_=null;X.resolve_=null;X.JSC$12361_reject_=null},XCt=function(X){$Ze(X);
X.transfer_=_.dFR(X.JSC$12361_url_,{"X-YouTube-ChannelId":X.channelId_},X.JSC$12361_image_);X.handler_.listenOnce(X.transfer_,"l",X.JSC$12363_onUploadComplete_);X.handler_.listenOnce(X.transfer_,"n",X.onUploadError_);X.transfer_.run();X.uploadPromise_=new Promise(function(t,G){X.resolve_=t;X.JSC$12361_reject_=G})};
_.H=dz.prototype;_.H.onChange_=function(X){X.files.length&&(this.JSC$12361_image_=X.files[0],this.JSC$12361_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12361_image_=null,this.dispatchEvent(new kn("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(XCt(this),(new bg(this.JSC$12361_maxAspectRatio_)).transform(this.JSC$12361_image_).then((0,_.rT)(this.onPreview_,this),(0,_.rT)(this.onPreviewError_,this))))};
_.H.onPreview_=function(X){if(X.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12361_image_=null),this.dispatchEvent(new kn("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;X.cropped&&this.dispatchEvent(new kn("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new kn("yt.comments.ImageUploadOverlay.CHANGE_EVENT",X.transformedData))};
_.H.onPreviewError_=function(){this.JSC$12361_image_=null;this.dispatchEvent(new kn("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.H.onHover_=function(X){X.stopPropagation();X.preventDefault();if(X.type==="dragover")X=!0;else if(X.type==="dragleave")X=!1;else return;this.dispatchEvent(new kn("yt.comments.ImageUploadOverlay.HOVER_EVENT",X))};
_.H.JSC$12363_onUploadComplete_=function(){var X=(0,_.AKo)(this.transfer_.getResponseText());this.resolve_(X.encryptedBlobId)};
_.H.onUploadError_=function(){this.JSC$12361_reject_();$Ze(this)};var tC4=function(X){X=X||{};var t={},G={};this.url=X.url||"";this.args=X.args||_.RH.clone(t);this.assets=X.assets||{};this.attrs=X.attrs||_.RH.clone(G);this.fallback=X.fallback||null;this.fallbackMessage=X.fallbackMessage||null;this.html5=!!X.html5;this.disable=X.disable||{};this.loaded=!!X.loaded;this.messages=X.messages||{}};
tC4.prototype.clone=function(){var X=new tC4,t;for(t in this)if(this.hasOwnProperty(t)){var G=this[t];_.JQ(G)=="object"?X[t]=_.RH.clone(G):X[t]=G}return X};var GK4,yBR,wCq,dP,HrR,oQh,JB4,BQq,nQq,VCh,bre,kKJ,dZP,ew4,jhe,gQq,FkR,TQe,ABB,Y$q,shS,DZq,S$4,hwq,Zrt,q$h,CVS,Kkq,OrJ,wLs,uWo,Qhq,Ieq,Wk4,cBz,pCB,rBo,NQq,PVq,EQe,yTJ,UZq,mZB,Rwz,irY,Lkq,vQq,ae4,xZR,feB,MCB,XVP,$E4,tG4,GZJ,yV4,eO,wVS,zkY,H8o,ojq,JVq,Bb4,njP,VG4,b8B,kZR,dEh,ek4,jJS,gjP,FDB,Tbz,AVB,YIP,tLl,sJ4,DEJ,SIS,hkh,Z8P,qIq,CaY,KDP,O8e,uKq,QJq,IzB,WDq,cVo,pVe,rVq,NbB,PaJ,EjS,UEq,mEq,RkS,i8Y,LDS,vjq;GK4=["account/accounts_list"];yBR=["acknowledge_channel_tou_strike"];wCq=["notification/add_upcoming_event_reminder"];
_.zwe=["att/get"];dP=["browse","music/browse","unplugged/browse"];HrR=["channel/claim_legacy_youtube_channel"];oQh=["history/clear_search_history"];JB4=["history/clear_watch_history"];BQq=["comment/perform_comment_action"];nQq=["comment/get_comment_replies"];VCh=["ypc/commerce_action"];bre=["backstage/create_post"];kKJ=["live/create_broadcast"];dZP=["channel/create_channel"];ew4=["comment/create_comment_reply"];jhe=["comment/create_comment"];gQq=["live_chat/create_poll"];FkR=["playlist/create"];
TQe=["decorate_message"];ABB=["live_chat/delete_message"];Y$q=["playlist/delete"];shS=["video/delete"];DZq=["like/dislike"];S$4=["dismissal/dismiss"];hwq=["flag/flag"];Zrt=["flow"];q$h=["account/account_menu"];CVS=["playlist/get_add_to_playlist"];Kkq=["get_answer"];OrJ=["channel/get_channel_creation_form"];wLs=["offline/get_download_action"];uWo=["kids/get_kids_blocklist_picker"];Qhq=["live_chat/get_item_context_menu"];Ieq=["live_chat/get_live_chat_message_buy_flow"];Wk4=["live_chat/get_live_chat_replay"];
cBz=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];pCB=["live_chat/get_live_chat_super_sticker_buy_flow"];rBo=["notification/get_notification_menu"];NQq=["playlist/get_settings_editor"];PVq=["backstage/get_post_video_preview"];EQe=["account/get_profile_card"];yTJ=["share/get_share_panel"];UZq=["share/get_sharing_provider_data"];mZB=["get_survey"];Rwz=["notification/get_unseen_count"];irY=["get_user_mention_suggestions"];Lkq=["get_watch"];vQq=["guide"];
ae4=["feedback"];xZR=["kids/update_blacklist"];feB=["like/like"];MCB=["live_chat/live_chat_action"];XVP=["live_chat/manage_user"];$E4=["video_manager/metadata_update"];tG4=["live_chat/moderate"];GZJ=["notification/modify_channel_preference"];yV4=["notification/opt_out"];eO=["get_panel","get_posts_by_host_panel"];wVS=["player"];zkY=["browse/edit_playlist"];H8o=["notification/record_interactions"];ojq=["reel/reel_item_watch"];JVq=["reel/reel_watch_sequence"];Bb4=["like/removelike"];njP=["notification/remove_upcoming_event_reminder"];
VG4=["flag/get_form"];b8B=["miniapp/report_value"];kZR=["navigation/resolve_url"];dEh=["channel/reveal_business_email"];ek4=["in_video/search"];jJS=["search","sfv/search","unplugged/search"];gjP=["live_chat/send_message"];FDB=["live_chat/send_live_chat_vote"];Tbz=["account/set_setting"];AVB=["submit_caption_correction"];YIP=["subscription/subscribe"];tLl=["get_transcript"];sJ4=["resolve_location","unplugged/resolve_location"];DEJ=["subscription/unsubscribe"];SIS=["backstage/update_post"];hkh=["channel_edit/update_channel_page_settings"];
Z8P=["comment/update_comment_reply"];qIq=["comment/update_comment"];CaY=["comment/update_comments_settings"];KDP=["creator/update_creator_channel"];O8e=["pdg/update_enablement"];uKq=["updated_metadata"];QJq=["channel_edit/validate_channel_handle"];IzB=["verify_age"];WDq=["next","unplugged/watch_next"];cVo=["whitelist/edit"];pVe=["ypc/cancel_recurrence"];rVq=["ypc/complete_transaction"];NbB=["ypc/get_cart"];PaJ=["ypc/get_fix_instrument_params"];EjS=["ypc/get_offers"];UEq=["ypc/get_payment_instruments_params"];
mEq=["ypc/handle_transaction"];RkS=["ypc/log_payment_server_analytics"];i8Y=["ypc/pause_subscription"];LDS=["ypc/redeem_code"];vjq=["ypc/resume_subscription"];var azq=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,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,139723,
139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,
190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,
17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var us=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.dl("yt.msgs_",us);var jO=new _.FB("ACTION_ROUTER_TOKEN");_.gz=function(){this.autonavState_=_.A("kevlar_is_pupi_enabled")?2:zrv()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.gz.prototype.getState=function(){return this.autonavState_};
_.gz.prototype.pause=function(X){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=X):this.autonavState_==1&&(this.disabledAutonavPauseReason_=X)};
_.gz.prototype.setState=function(X,t,G){t&&(this.autoplayChangedByUser=!0);t=this.autonavState_===3||X===3;this.autonavState_!=X&&(this.autonavState_=X,X!=3&&_.HmE(X==2),X=_.A("kevlar_is_pupi_enabled")?G||t:!0,_.Hq.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,X,G))};
_.gz.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Aw(_.gz);var Fs=function(){this.hasRun=!1};var T4={},gCA=(T4.auto_search="LATENCY_ACTION_AUTO_SEARCH",T4.ad_to_ad="LATENCY_ACTION_AD_TO_AD",T4.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",T4.app_startup="LATENCY_ACTION_APP_STARTUP",T4.browse="LATENCY_ACTION_BROWSE",T4.cast_splash="LATENCY_ACTION_CAST_SPLASH",T4.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",T4.channels="LATENCY_ACTION_CHANNELS",T4.chips="LATENCY_ACTION_CHIPS",T4.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",T4.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
T4.editor="LATENCY_ACTION_EDITOR",T4.embed="LATENCY_ACTION_EMBED",T4.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",T4.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",T4.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",T4.explore="LATENCY_ACTION_EXPLORE",T4.favorites="LATENCY_ACTION_FAVORITES",T4.home="LATENCY_ACTION_HOME",T4.inboarding="LATENCY_ACTION_INBOARDING",T4.landing="LATENCY_ACTION_LANDING",T4.learning="LATENCY_ACTION_LEARNING",
T4.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",T4.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",T4.library="LATENCY_ACTION_LIBRARY",T4.live="LATENCY_ACTION_LIVE",T4.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",T4.management="LATENCY_ACTION_MANAGEMENT",T4.mini_app="LATENCY_ACTION_MINI_APP_PLAY",T4.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",T4.onboarding="LATENCY_ACTION_ONBOARDING",T4.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
T4.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",T4.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",T4.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",T4.prebuffer="LATENCY_ACTION_PREBUFFER",T4.prefetch="LATENCY_ACTION_PREFETCH",T4.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",T4.profile_switcher="LATENCY_ACTION_LOGIN",T4.projects="LATENCY_ACTION_PROJECTS",T4.reel_watch="LATENCY_ACTION_REEL_WATCH",T4.results="LATENCY_ACTION_RESULTS",T4.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
T4.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",T4.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",T4.review="LATENCY_ACTION_REVIEW",T4.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",T4.search_ui="LATENCY_ACTION_SEARCH_UI",T4.search_suggest="LATENCY_ACTION_SUGGEST",T4.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",T4.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",T4.seek="LATENCY_ACTION_PLAYER_SEEK",T4.settings="LATENCY_ACTION_SETTINGS",T4.store="LATENCY_ACTION_STORE",
T4.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",T4.tenx="LATENCY_ACTION_TENX",T4.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",T4.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",T4.watch="LATENCY_ACTION_WATCH",T4.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",T4["watch,watch7"]="LATENCY_ACTION_WATCH",T4["watch,watch7_html5"]="LATENCY_ACTION_WATCH",T4["watch,watch7ad"]="LATENCY_ACTION_WATCH",T4["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",T4.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
T4.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",T4.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",T4.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",T4.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",T4.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",T4.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",T4.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",T4),QZv=0;var Nxl=function(X,t){mn.call(this,1,arguments);this.timer=t};
_.S(Nxl,mn);var rzh=new xr_("aft-recorded",Nxl);var Y_6=_.tA.ytLoggingGelSequenceIdObj_||{};_.dl("ytLoggingGelSequenceIdObj_",Y_6);var AP=_.tA.ytLoggingLatencyUsageStats_||{};_.dl("ytLoggingLatencyUsageStats_",AP);var Yn=function(){this.cleanupJob=0},S_Y=function(){Yn.instance||(Yn.instance=new Yn);
return Yn.instance};
_.H=Yn.prototype;_.H.baseline=function(X,t,G){sE(this,"baseline_"+X)||_.a7("latencyActionBaselined",{clientActionNonce:X},{timestamp:t,cttAuthInfo:G})};
_.H.tick=function(X,t,G,y){sE(this,"tick_"+X+"_"+t)||_.a7("latencyActionTicked",{tickName:X,clientActionNonce:t},{timestamp:G,cttAuthInfo:y})};
_.H.info=function(X,t,G){var y=Object.keys(X).join("");sE(this,"info_"+y+"_"+t)||(X=Object.assign({},X),X.clientActionNonce=t,_.a7("latencyActionInfo",X,{cttAuthInfo:G}))};
_.H.jspbInfo=function(X,t,G){for(var y="",w=0;w<v4(X).length;w++)v4(X)[w]!==void 0&&(y=w===0?y.concat(""+w):y.concat("_"+w));sE(this,"info_"+y+"_"+t)||(_.rp(X,2,t),t={cttAuthInfo:G},G=_.A("jspb_sparse_encoded_pivot")?new Nj([{}]):new Nj,_.QW(G,7,j4S,X),sZl("latencyActionInfo",G,t))};
_.H.span=function(X,t,G){var y=Object.keys(X).join("");sE(this,"span_"+y+"_"+t)||(X.clientActionNonce=t,_.a7("latencyActionSpan",X,{cttAuthInfo:G}))};
var sE=function(X,t){AP[t]=AP[t]||{count:0};var G=AP[t];G.count++;G.time=(0,_.gl)();X.cleanupJob||(X.cleanupJob=_.PO(_.vz,function(){var y=(0,_.gl)(),w;for(w in AP)AP[w]&&y-AP[w].time>6E4&&delete AP[w];X&&(X.cleanupJob=0)},5E3));
return G.count>5?(G.count===6&&Math.random()*1E5<1&&(G=new _.NJ("CSI data exceeded logging limit with key",t.split("_")),t.indexOf("plev")>=0||_.Mj(G)),!0):!1};var lzB,xEq;lzB=window;xEq=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.El=lzB.performance||lzB.mozPerformance||lzB.msPerformance||lzB.webkitPerformance||new xEq;var pBl=!1,Zmv=!1,PyV=(0,_.rT)(_.El.clearResourceTimings||_.El.webkitClearResourceTimings||_.El.mozClearResourceTimings||_.El.msClearResourceTimings||_.El.oClearResourceTimings||_.ra,_.El);var fzq=window;fzq.ytcsi&&(fzq.ytcsi.infoGel=_.vP,fzq.ytcsi.tick=_.ls);var Mtf=function(X){mn.call(this,1,arguments);this.csn=X};
_.S(Mtf,mn);var tmG=new xr_("screen-created",Mtf),dNv=[],fZV=k_A,eFs=0,tg=new Map,X3E=new Map,$N0=new Map;var Q_f=Symbol("vf"),e7=new WeakMap;var DB=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},UV=function(){DB.instance||(DB.instance=new DB);
return DB.instance};
_.H=DB.prototype;_.H.setClient=function(X){this.client=X};
_.H.JSC$12442_newScreen=function(){this.clear();this.csn=_.lw()};
_.H.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.H.reportShown=function(X,t,G){var y=this.JSC$12442_getTrackingParams(X),w=X.visualElement?X.visualElement:y;t=this.shownElements.has(w);var z=this.visibleState.get(w);this.shownElements.add(w);this.visibleState.set(w,!0);X.impressionLog&&!t&&X.impressionLog();if(y||X.visualElement)if(G=MGt(this,X,G))if(w=X7t(this,X),SO(this,X)||w){y=X.visualElement?X.visualElement:_.i$(y);var B=X.interactionLoggingClientData;w||t?SO(this,X)&4?z||J0V(this.client,G,y,B):SO(this,X)&1&&!t&&zFA(this.client,G,y,B):zFA(this.client,
G,y,B)}};
_.H.reportHidden=function(X,t,G){var y=this.JSC$12442_getTrackingParams(X),w=X.visualElement?X.visualElement:y;t=this.hiddenElements.has(w);var z=this.visibleState.get(w);this.hiddenElements.add(w);this.visibleState.set(w,!1);if(z===!1)return!0;if(!y&&!X.visualElement)return!1;G=MGt(this,X,G);if(!G||!SO(this,X)&&X7t(this,X))return!1;y=X.visualElement?X.visualElement:_.i$(y);SO(this,X)&8?B_V(this.client,G,y):SO(this,X)&2&&!t&&(X=this.client,t=$0({cttAuthInfo:xe(G)||void 0},G),y={csn:G,ve:y.getAsJson(),
eventType:2},G==="UNDEFINED_CSN"?y1("visualElementHidden",t,y):X?Lh("visualElementHidden",y,X,t):_.a7("visualElementHidden",y,t));return!0};
_.H.JSC$12442_getTrackingParams=function(X){var t=this.getData(X),G,y;if(_.A("il_use_view_model_logging_context")&&(t==null?0:(G=t.context)==null?0:(y=G.loggingContext)==null?0:y.loggingDirectives))return t.context.loggingContext.loggingDirectives.trackingParams||"";var w,z;if(t==null?0:(w=t.rendererContext)==null?0:(z=w.loggingContext)==null?0:z.loggingDirectives)return t.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(t==null?0:t.loggingDirectives)return t.loggingDirectives.trackingParams||
"";var B;return((B=X.veContainer)==null?0:B.trackingParams)?X.veContainer.trackingParams:(t==null?void 0:t.trackingParams)||""};
_.H.JSC$12442_elementShouldLogGesture=function(X,t){X=this.getData(X);return!!((Math.floor(Number(X&&X.loggingDirectives&&X.loggingDirectives.gestures&&X.loggingDirectives.gestures.types||""))||0)&t)};
_.H.JSC$12442_getNearestParentVe=function(X){var t=this.JSC$12442_getTrackingParams(X);return X.visualElement?X.visualElement:t?_.i$(t):X.parentElement?this.JSC$12442_getNearestParentVe(X.parentElement):null};
var MGt=function(X,t,G){var y=_.lw(G);return X.csn===null||y===X.csn||G?y:(X=new _.NJ("VisibilityLogger called before newScreen",{caller:t.tagName,previous_csn:X.csn,current_csn:y}),_.Mj(X),null)};
DB.prototype.getData=function(X){var t,G=X.data||((t=X.props)==null?void 0:t.data);if(!G||X.isWebComponentWrapper){var y;G=(y=e7.get(X))==null?void 0:y[Q_f]}return G};
var X7t=function(X,t){var G;return!((G=X.getData(t))==null||!G.loggingDirectives)},SO=function(X,t){X=X.getData(t);
return Math.floor(Number(X&&X.loggingDirectives&&X.loggingDirectives.visibility&&X.loggingDirectives.visibility.types||""))||1};var hP;hP=function(){};
_.rX=function(){hP.instance||(hP.instance=new hP);return hP.instance};
hP.prototype.setClient=function(X){_.tt(UV().setClient).bind(UV())(X)};
_.$h4=function(){_.rX();_.tt(UV().JSC$12442_newScreen).bind(UV())()};
hP.prototype.clear=function(){_.tt(UV().clear).bind(UV())()};
hP.prototype.reportShown=function(X,t,G){_.tt(UV().reportShown).bind(UV())(X,t,G)};
hP.prototype.reportHidden=function(X,t,G){return _.tt(UV().reportHidden).bind(UV())(X,t,G)};
var QoG=function(X,t){return _.tt(UV().JSC$12442_getTrackingParams).bind(UV())(t)},IQf=function(X,t){return _.tt(UV().JSC$12442_getNearestParentVe).bind(UV())(t)};var ZB,t94;ZB=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};
_.Pj=function(){ZB.instance||(ZB.instance=new ZB);return ZB.instance};
ZB.prototype.setClient=function(X){this.client=X};
t94=function(X,t,G){G=G===void 0?{}:G;_.tt(function(){var y,w,z,B=((y=_.Y(t==null?void 0:t.commandMetadata,_.jQ))==null?void 0:y.rootVe)||((w=_.Y(t==null?void 0:t.commandMetadata,l4R))==null?void 0:(z=w.screenVisualElement)==null?void 0:z.uiType);if(B){y=_.Y(t==null?void 0:t.commandMetadata,pMJ);if(y==null?0:y.parentTrackingParams){var V=_.i$(y.parentTrackingParams);if(y.parentCsn)var b=y.parentCsn}else G.clickedVisualElement?V=G.clickedVisualElement:t.clickTrackingParams&&(V=_.i$(t.clickTrackingParams));
a:{y=_.Y(t,_.nq);w=_.Y(t,Rww);if(y){if(w=oCJ(y,"VIDEO")){y={token:w,videoId:y.videoId};break a}}else if(w&&(y=oCJ(w,"PLAYLIST"))){y={token:y,playlistId:w.playlistId};break a}y=void 0}G=Object.assign({},{cttAuthInfo:y,parentCsn:b},G);if(_.A("expectation_logging")){var e;G.loggingExpectations=((e=_.Y(t==null?void 0:t.commandMetadata,l4R))==null?void 0:e.loggingExpectations)||void 0}_.qP(X,B,V,G)}else _.Mj(new _.NJ("Error: Trying to create a new screen without a rootVeType",t))})()};
_.qP=function(X,t,G,y){y=y===void 0?{}:y;_.tt(function(){azq.includes(t)||(_.Mj(new _.NJ("createClientScreen() called with a non-page VE",t)),t=83769);y.isHistoryNavigation||(X.forwardHistoryStack=[],X.backHistoryStack.push({rootVe:t,key:y.key||""}));X.graftQueue=[];X.stateChangedQueue=[];y.dataPromises?GPe(X,t,G,y):yD4(X,t,G,y)})()};
_.w7o=function(X,t,G){G=G===void 0?0:G;_.tt(function(){t.then(function(y){X.pendingScreenCreation.has(G)&&X.pendingScreenFn&&X.pendingScreenFn();var w=_.lw(G),z=_.a4(G);if(w&&z){var B={automatedLogEventSource:3},V;(y==null?0:(V=y.response)==null?0:V.trackingParams)&&GG(X.client,w,z,_.i$(y.response.trackingParams),!1,B);var b;(y==null?0:(b=y.playerResponse)==null?0:b.trackingParams)&&GG(X.client,w,z,_.i$(y.playerResponse.trackingParams),!1,B)}})})()};
ZB.prototype.graftServerVe=function(X,t,G){var y=this;return _.tt(function(){var w=_.i$(X);_.Cc(y,w,t,G);return w})()};
_.WHE=function(X,t,G,y){return _.A("enable_client_ve_spec")&&t.clientVeSpec?(t=_.ai(t.clientVeSpec.uiType,void 0,t.clientVeSpec.elementIndex,t.clientVeSpec.clientYoutubeData,void 0,t),_.Cc(X,t,G,y)?t:null):t.trackingParams?X.graftServerVe(t.trackingParams,G,y):null};
_.Ni=function(X,t,G,y){return _.tt(function(){if(!t.veType)return _.fh(new _.NJ("Error: Trying to graft a client VE without a veType.")),null;if(t.visibilityTypes){var w=t.visibilityTypes.reduce(function(z,B){return z|B});
w={visibility:{types:String(w)}}}w=_.ai(t.veType,t.visualElement,t.elementIndex,t.clientYouTubeData,void 0,w);return _.Cc(X,w,G,y)?w:null})()};
_.Cc=function(X,t,G,y){y=y===void 0?0:y;return _.tt(function(){if(X.pendingScreenCreation.has(y))return X.graftQueue.push([t,G]),!0;var w=_.lw(y),z=G||_.a4(y);if(w&&z){if(_.A("combine_ve_grafts")){var B=X.cachedVisualElements.get(z.toString());B?B.push(t):(X.cachedRootVisualElements.set(z.toString(),z),X.cachedVisualElements.set(z.toString(),[t]));X.attachTimeout||(X.attachTimeout=_.PO(_.vz,function(){zDS(X,w)},1200))}else GG(X.client,w,z,t);
return!0}return!1})()};
_.Kc=function(X,t,G){G=G===void 0?0:G;var y=X.recurringGrafts.get(G)||new Map;if(_.A("smarter_ve_dedupping"))for(var w=Array.from(y.keys()),z=0;z<w.length;z++){var B=void 0,V=void 0;var b=t;var e=w[z];e.isClientVe()&&b.isClientVe()?(B=b.getAsJson(),V=e.getAsJson(),b=B.veType!==V.veType||B.elementIndex!==V.elementIndex||B.dataElement!==V.dataElement||b.getLoggingDirectives()!==e.getLoggingDirectives()?!1:!0):b=e.veData.trackingParams!==void 0&&b.veData.trackingParams!==void 0?((V=b.veData)==null?void 0:
V.trackingParams)===((B=e.veData)==null?void 0:B.trackingParams):!1;if(b)return}else if(y.has(t))return;y.set(t,void 0);X.recurringGrafts.set(G,y);_.lw(G)==="UNDEFINED_CSN"||X.pendingScreenCreation.has(G)||_.Cc(X,t,void 0,G)};
_.OE=function(X,t,G,y){y=_.lw(y===void 0?0:y);if(!y)return!1;VI0(X.client,y,t,G);return!0};
_.ug=function(X,t,G,y){if(!t)return!1;y=_.lw(y===void 0?0:y);if(!y)return!1;VI0(X.client,y,_.i$(t),G);return!0};
_.n5=function(X,t){var G=t.getScreenLayer&&t.getScreenLayer();if(t.visualElement)return _.OE(X,t.visualElement,void 0,G);t=QoG(_.rX(),t);return _.ug(X,t,void 0,G)};
ZB.prototype.clickCommand=function(X,t,G){return _.ug(this,X.clickTrackingParams,t,G===void 0?0:G)};
ZB.prototype.stateChanged=function(X,t,G){this.visualElementStateChanged(_.i$(X),t,G===void 0?0:G)};
ZB.prototype.visualElementStateChanged=function(X,t,G){G=G===void 0?0:G;G===0&&this.pendingScreenCreation.has(G)?this.stateChangedQueue.push([X,t]):this.logStateChanged(X,t,G)};
ZB.prototype.logStateChanged=function(X,t,G){G=G===void 0?0:G;var y=_.lw(G);X=X||_.a4(G);return y&&X?(bBl(this.client,y,X,t),!0):!1};
var GPe=function(X,t,G,y){y=y===void 0?{}:y;X.pendingScreenCreation.add(y.layer||0);X.pendingScreenFn=function(){yD4(X,t,G,y);var B=_.a4(y.layer);if(B){for(var V=_.J(X.graftQueue),b=V.next();!b.done;b=V.next())b=b.value,_.Cc(X,b[0],b[1]||B,y.layer);B=_.J(X.stateChangedQueue);for(V=B.next();!V.done;V=B.next())V=V.value,X.logStateChanged(V[0],V[1])}};
G||_.lw(y.layer)||X.pendingScreenFn();if(y.dataPromises)for(var w=_.J(y.dataPromises),z=w.next();!z.done;z=w.next())_.w7o(X,z.value,y.layer);else _.xA(Error("wf"))},yD4=function(X,t,G,y){y=y===void 0?{}:y;
var w=void 0;y.layer||(y.layer=0);w=y.parentLayer!==void 0?y.parentLayer:y.layer;var z=_.lw(w);w=_.a4(w);var B=G||w,V;B&&(y.parentCsn!==void 0?V={clientScreenNonce:y.parentCsn,visualElement:B}:z&&z!=="UNDEFINED_CSN"&&(V={clientScreenNonce:z,visualElement:B}));var b,e=_.Md("EVENT_ID");z==="UNDEFINED_CSN"&&e&&(b={servletData:{serializedServletEventId:e}});_.A("combine_ve_grafts")&&z&&zDS(X,z);_.A("no_client_ve_attach_unless_shown")&&B&&z&&w3w(B,z);try{var g=_.tI_(X.client,t,V,y.csnToClone,y.cttAuthInfo,
b,y.implicitGestureType,void 0,y.loggingExpectations)}catch(D){_.XE(D,{rootVeType:t,rootVe:w,parentVisualElement:G,currentCsn:z,parentEl:V,csnToClone:y.csnToClone});_.xA(D);return}_.fE(g,t,y.layer,y.cttAuthInfo);z&&z!=="UNDEFINED_CSN"&&w&&!BAs(z)&&B_V(X.client,z,w,!0);X.backHistoryStack[X.backHistoryStack.length-1]&&!X.backHistoryStack[X.backHistoryStack.length-1].csn&&(X.backHistoryStack[X.backHistoryStack.length-1].csn=g||"");_.vP({clientScreenNonce:g});_.$h4();var F=_.a4(y.layer);z&&z!=="UNDEFINED_CSN"&&
F&&(_.A("web_mark_root_visible")||_.A("music_web_mark_root_visible"))&&_.HK(g,F);X.pendingScreenCreation.delete(y.layer||0);X.pendingScreenFn=void 0;var T;(T=X.recurringGrafts.get(y.layer))==null||T.forEach(function(D,h){D?_.Cc(X,h,D,y.layer):F&&_.Cc(X,h,F,y.layer)});
HZ4(X)},HZ4=function(X){for(var t=0;t<X.afterNewScreenOneOffJobs.length;t++){var G=X.afterNewScreenOneOffJobs[t];
try{G()}catch(y){_.xA(y)}}for(t=X.afterNewScreenOneOffJobs.length=0;t<X.afterNewScreenRecurringJobs.length;t++){G=X.afterNewScreenRecurringJobs[t];try{G()}catch(y){_.xA(y)}}},zDS=function(X,t){if(t===void 0)for(var G=oXv(),y=0;y<G.length;y++)G[y]!==void 0&&zDS(X,G[y]);
else X.cachedVisualElements.forEach(function(w,z){(z=X.cachedRootVisualElements.get(z))&&G_6(X.client,t,z,w)}),X.cachedVisualElements.clear(),X.cachedRootVisualElements.clear(),X.attachTimeout=void 0};var Qq=function(X){X=X===void 0?{layer:0}:X;this.hasRun=!1;this.createScreenConfig=X;X={};this.tb2=(X.response=!1,X.playerResponse=!1,X)};
_.S(Qq,Fs);Qq.prototype.validate=function(X){return!(!X.data||!X.data.response&&!X.data.playerResponse)};
Qq.prototype.handle=function(X){var t=_.Pj(),G=this.createScreenConfig.layer;X.data.response&&X.data.response.trackingParams&&!this.tb2.response&&(t.graftServerVe(X.data.response.trackingParams,void 0,G),this.tb2.response=!0);X.data.playerResponse&&X.data.playerResponse.trackingParams&&!this.tb2.playerResponse&&(t.graftServerVe(X.data.playerResponse.trackingParams,void 0,G),this.tb2.playerResponse=!0)};var I9=function(){this.vG=_.d5();this.zQ=[];this.hbQ=0};
I9.prototype.processChunk=function(X){if(X){for(var t=_.J(this.zQ),G=t.next();!G.done;G=t.next())G=G.value,G.validate(X)&&(G.handle(X),G.hasRun=!0);_.ls("np"+this.hbQ);this.hbQ++}};var j7;var wfJ,oKz,nKz;_.Wj=function(X,t,G,y,w,z,B){B=B===void 0?[]:B;this.buildCommandPayload=X;this.navigate=t;this.handleServiceRequest=G;this.sendAction=y;this.JSC$12484_screenManager=w;this.commandResolverMap=z;this.autoLogResolverAllowlist=B;this.pendingCommands=new Set;this.isTracingEnabled=!1;oKz(this)};
wfJ=function(X,t,G){var y=R50,w=iC6,z=_.Pj(),B=JDY;G=G===void 0?[]:G;_.Wj.instance=new _.Wj(X,t,y,w,z,B,G)};
oKz=function(X){if(!X.isTracingEnabled&&grV("command")){var t=X.resolveCommand;X.resolveCommand=function(G,y){a:{for(w in G)if(Object.prototype.hasOwnProperty.call(G,w)){var w={commandType:w};break a}w={}}return A00("command",w,t.bind(this,G,y))};
X.isTracingEnabled=!0}};
nKz=function(X,t,G){if(!X.commandResolverMap)return!1;var y=SCs(t,X.commandResolverMap);return y?((X.autoLogResolverAllowlist.some(function(w){return!!_.Y(t,w)})||(G==null?0:G.forceClickLogging))&&BKq(X,t,G),y instanceof Promise?y.then(function(w){w.resolve(t,G)}):y.resolve(t,G),!0):!1};
_.Wj.prototype.resolveCommand=function(X,t){var G=this,y=V9q(X);if(nKz(this,X,t))return!0;if(y)return bZq(this,X,t);if(!this.buildCommandPayload)return YCh(X,"Unhandled command by buildCommandPayload"),!1;var w=this.buildCommandPayload(X,t);if(t==null?0:t.commandController)w.commandController=t.commandController;if(w.type===0){if(!this.navigate)return sx6(X,"navigate"),!1;if(!kPo(w.command))return YCh(X,"Page requests need to specify a url"),!1;_.A("logging_avoid_blocking_during_navigation")&&_.rHA().transition("application_navigating");
X=this.navigate(w)||[];yKq(X).then(function(){G.pendingCommands.delete(w.command)});
return!0}if(w.type===1){if(!this.handleServiceRequest)return sx6(X,"handleServiceRequest"),!1;(t==null?0:t.forceClickLogging)&&BKq(this,w.command,t);X=this.handleServiceRequest(w);yKq(X).then(function(){G.pendingCommands.delete(w.command)});
return!0}if(w.type===2){if(!this.sendAction)return sx6(X,"sendAction"),!1;BKq(this,w.command,t);this.sendAction(w);return!0}return!1};
var BKq=function(X,t,G){if((G==null||!G.disableClickTracking)&&X.JSC$12484_screenManager)if(t.clickTrackingParams&&_.A("log_click_with_layer_from_element_in_command_handler")){var y;G=G==null?void 0:(y=G.form)==null?void 0:y.element;X.JSC$12484_screenManager.clickCommand(t,null,G&&G.getScreenLayer&&G.getScreenLayer())}else t.clickTrackingParams?X.JSC$12484_screenManager.clickCommand(t):!_.A("disable_clicked_visual_element_in_command_handler")&&(G==null?0:G.clickedVisualElement)&&_.OE(X.JSC$12484_screenManager,
G.clickedVisualElement)},V9q=function(X){var t=!!_.Y(X,_.Cq),G;
X=((G=_.Y(X,_.Ol))==null?void 0:G.signal)==="CLIENT_SIGNAL";return t||X},bZq=function(X,t,G){var y=_.Y(t,_.Cq);
if(y)var w=(y==null?void 0:y.commands)||[];else{var z;if(((z=_.Y(t,_.Ol))==null?void 0:z.signal)==="CLIENT_SIGNAL"){var B;w=((B=_.Y(t,_.Ol))==null?void 0:B.actions)||[]}}if(w){t=_.J(w);for(w=t.next();!w.done;w=t.next()){w=w.value;try{X.resolveCommand(w,G)}catch(V){V instanceof Error&&_.xA(V)}}return!0}YCh(t,"Could not handle the meta command");return!1},kPo=function(X){var t;
return!((t=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null||!t.url)};var WF=function(){Fs.apply(this,arguments)};
_.S(WF,Fs);WF.prototype.validate=function(X){var t,G;return!this.hasRun&&!!((t=X.data.response)==null?0:(G=t.onResponseReceivedEndpoints)==null?0:G.length)};
WF.prototype.handle=function(X){var t=_.Wj.instance;X=_.J(X.data.response.onResponseReceivedEndpoints);for(var G=X.next();!G.done;G=X.next())t.resolveCommand(G.value)};var dhS,eDB,jl4;
dhS=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=_.qY();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.cF=function(){eDB||(eDB=new dhS);return eDB};
jl4=function(){var X=_.cF();X.miniplayerButtonActivation=!1;X.userActivation=!1;X.playlistWatchPageActivation=!1;X.productDetailsPageActivation=!1;X.miniAppPageActivation=!1;X.playablesDestPageActivation=!1;X.lockupActivation=!1;X.showMiniplayerCommandActivation=!1;X.playlistSuggestionsShelfActivation=!1;X.mediaSessionPipActivation=!1;X.watchPipActivation=!1;X.watchWhileActivation=!1;X.shortsPipActivation=!1};
_.gK4=function(){var X=_.cF(),t=X.mediaSessionPipActivation,G=X.watchPipActivation,y=X.watchWhileActivation,w=X.playlistWatchPageActivation,z=X.lockupActivation,B=X.showMiniplayerCommandActivation,V=X.navigatingAwayFromWatchDeletedVideo,b=X.shortsPipActivation,e=X.playlistSuggestionsShelfActivation,g=X.productDetailsPageActivation,F=X.miniAppPageActivation,T=X.playablesDestPageActivation;return!X.miniplayerButtonActivation&&!w&&!e&&!g&&!F&&!T&&!z&&!B&&!t&&!G&&!y&&!b||V};var wGf;_.pc=FV("FEwhat_to_watch","/",3854);_.zn_=FV("FEdownloads","/feed/downloads",42352);wGf=FV("FEmusic_offline","browse/FEmusic_offline",42352);var k1=function(X,t){t=t===void 0?[]:t;var G=G===void 0?[]:G;t=Rsl.apply(null,[iNl.apply(null,_.RY(t))].concat(_.RY(G)));this.store=lF0(X,void 0,t)};
k1.prototype.getState=function(){return this.store.getState()};
k1.prototype.dispatch=function(X){return this.store.dispatch(X)};
k1.prototype.subscribe=function(X){return this.store.subscribe(X)};
k1.prototype.replaceReducer=function(X){return this.store.replaceReducer(X)};
k1.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.rz=function(X,t,G){var y=t(X.getState());return X.subscribe(function(){var w=t(X.getState());if(w!==y){var z=y;y=w;G(w,z)}})};var eUs;_.EW=function(X,t,G){return _.Dl({type:"REPLACE_ENTITY",payload:{entityPayload:G,entityType:X,key:t}})};
eUs=function(X){return _.Dl({type:"REPLACE_ENTITIES",payload:X})};
_.Xc=function(X,t,G,y){return _.Dl({type:"UPDATE_ENTITY",payload:{entityPayload:G,entityType:X,key:t,mergeOption:y}})};var r0J=function(X){var t=this;X=X===void 0?[]:X;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;X.forEach(function(G){t.append(G)})};
_.H=r0J.prototype;_.H.getLength=function(){return this.totalLength};
_.H.append=function(X){var t=this.arrays.length===0?!1:(t=this.arrays[this.arrays.length-1])&&t.buffer===X.buffer&&t.byteOffset+t.length===X.byteOffset;t?(t=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(t.buffer,t.byteOffset,t.length+X.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(X);this.totalLength+=X.length};
_.H.split=function(X){for(var t=new r0J,G=new r0J,y=_.J(this.arrays),w=y.next();!w.done;w=y.next())w=w.value,X>=w.length?(t.append(w),X-=w.length):X?(t.append(new Uint8Array(w.buffer,w.byteOffset,X)),G.append(new Uint8Array(w.buffer,w.byteOffset+X,w.length-X)),X=0):G.append(w);return{headView:t,tailView:G}};
_.H.extract=function(X,t){return this.split(X).tailView.split(t).headView};
_.H.isFocused=function(X){return X>=this.arrayPos&&X<this.arrayPos+this.arrays[this.arrayIdx].length};
_.H.focus=function(X){if(!this.isFocused(X))for(X<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=X&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var FlJ=function(X,t){X.focus(t);return X.arrays[X.arrayIdx][t-X.arrayPos]};(function(){var X=function(y){return new Uint8Array(y)},t=function(y){for(var w=new Uint8Array(y.length),z=0;z<y.length;z++)w[z]=y[z];
return w},G=new Uint8Array([1]);
return G.length===1&&G[0]===1?X:t})();
var uXV=Array(1024),OBG=window.TextDecoder?new TextDecoder:void 0,Ib_=window.TextEncoder?new TextEncoder:void 0;var p3G=function(X){this.arrayView=X;this.pos=0;this.pendingTagAndType=-1},S7=function(X){var t=FlJ(X.arrayView,X.pos);
++X.pos;if(t<128)return t;for(var G=t&127,y=1;t>=128;)t=FlJ(X.arrayView,X.pos),++X.pos,y*=128,G+=(t&127)*y;return G},N_v=function(X,t){var G=X.pendingTagAndType;
for(X.pendingTagAndType=-1;X.pos+1<=X.arrayView.totalLength;){G<0&&(G=S7(X));var y=G>>3,w=G&7;if(y===t)return!0;if(y>t){X.pendingTagAndType=G;break}G=-1;switch(w){case 0:S7(X);break;case 1:X.pos+=8;break;case 2:y=S7(X);X.pos+=y;break;case 5:X.pos+=4}}return!1};var ErA=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=c0V(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},qQ=function(X,t){t=X.pos+t;
if(!(X.buf.length>=t)){for(var G=X.buf.length*2;G<t;)G*=2;X.buf=c0V(G,X.wasm,X.buf.subarray(0,X.pos));X.view=new DataView(X.buf.buffer,X.buf.byteOffset,X.buf.byteLength)}},Zl=function(X,t){if(t>268435455){qQ(X,4);
for(var G=t&1073741823,y=0;y<4;y++)X.view.setUint8(X.pos,G&127|128),G>>=7,X.pos+=1;t=Math.floor(t/268435456)}for(qQ(X,4);t>127;)X.view.setUint8(X.pos,t&127|128),t>>=7,X.pos+=1;X.view.setUint8(X.pos,t);X.pos+=1};for(var UNv={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},PSJ={},TKq=_.J(Object.entries(UNv)),ADq=TKq.next();!ADq.done;ADq=TKq.next()){var YKR=_.J(ADq.value),slh=YKR.next().value,DhJ=YKR.next().value,SKq=slh,hDP=DhJ;hDP&&(PSJ[hDP]=SKq)};var RFG=function(X,t){X=X===void 0?{}:X;switch(t.type){case "ENTITY_LOADED":return t.payload.reduce(function(y,w){var z,B=(z=w.options)==null?void 0:z.persistenceOption;if(B&&B!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&B!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return y;if(!w.entityKey)return _.xA(Error("Af")),y;if(w.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!w.payload)return w=new _.NJ("REPLACE entity mutation is missing a payload",{entityKey:w.entityKey}),_.xA(w),y;var V=(0,_.RH.getAnyKey)(w.payload);
return LQJ(y,V,w.entityKey,w.payload[V])}if(w.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{w=w.entityKey;try{var b=_.hg(w).entityType;V=LQJ(y,b,w);break a}catch(F){if(F instanceof Error){w=new _.NJ("Failed to deserialize entity key",{entityKey:w,originalMessage:F.message});_.xA(w);V=y;break a}throw F;}V=void 0}return V}if(w.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!w.payload)return w=new _.NJ("UPDATE entity mutation is missing a payload",{entityKey:w.entityKey}),_.xA(w),y;V=(0,_.RH.getAnyKey)(w.payload);
var e,g;return vrE(y,V,w.entityKey,w.payload[V],(e=w.fieldMask)==null?void 0:(g=e.mergeOptions)==null?void 0:g.repeatedFieldsMergeOption)}return y},X);
case "REPLACE_ENTITY":var G=t.payload;return LQJ(X,G.entityType,G.key,G.entityPayload);case "REPLACE_ENTITIES":return Object.keys(t.payload).reduce(function(y,w){var z=t.payload[w];return Object.keys(z).reduce(function(B,V){return LQJ(B,w,V,z[V])},y)},X);
case "UPDATE_ENTITY":return G=t.payload,vrE(X,G.entityType,G.key,G.entityPayload,G.mergeOption);default:return X}};var abE;var ZZo=!1,NP,PF,EE,UE,mY,qKq=function(X){_.po.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!ZZo){var t,G=new Uint8Array(256),y=new Uint8Array(256);var w=1;for(t=0;t<256;t++)G[w]=t,y[t]=w,w^=w<<1^(w>>7&&283);NP=new Uint8Array(256);PF=OG(256);EE=OG(256);UE=OG(256);mY=OG(256);for(var z=0;z<256;z++){w=z?y[255^G[z]]:0;w^=w<<1^w<<2^w<<3^w<<4;w=w&255^w>>>8^99;NP[z]=w;t=w<<1^(w>>7&&283);var B=t^w;PF[z]=t<<24|w<<16|w<<8|B;EE[z]=B<<24|PF[z]>>>8;UE[z]=w<<24|EE[z]>>>
8;mY[z]=w<<24|UE[z]>>>8}ZZo=!0}w=OG(44);for(G=0;G<4;G++)w[G]=X[4*G]<<24|X[4*G+1]<<16|X[4*G+2]<<8|X[4*G+3];for(y=1;G<44;G++)X=w[G-1],G%4||(X=(NP[X>>16&255]^y)<<24|NP[X>>8&255]<<16|NP[X&255]<<8|NP[X>>>24],y=y<<1^(y>>7&&283)),w[G]=w[G-4]^X;this.key=w};
_.S(qKq,_.po);
qKq.prototype.encrypt=function(X){var t=X.length;X=new Uint8Array(X.buffer.slice(X.byteOffset,X.byteOffset+t));for(var G=this.cipherBlock,y=0;y<t&&this.blockOffset<16;)X[y++]^=G[this.blockOffset++];for(var w=t-(t-y)%16;y<w;)CDo(this),X[y++]^=G[0],X[y++]^=G[1],X[y++]^=G[2],X[y++]^=G[3],X[y++]^=G[4],X[y++]^=G[5],X[y++]^=G[6],X[y++]^=G[7],X[y++]^=G[8],X[y++]^=G[9],X[y++]^=G[10],X[y++]^=G[11],X[y++]^=G[12],X[y++]^=G[13],X[y++]^=G[14],X[y++]^=G[15];if(y<t)for(CDo(this),this.blockOffset=0;y<t;)X[y++]^=
G[this.blockOffset++];return X};
var CDo=function(X){for(var t=X.key,G=X.counter[0]^t[0],y=X.counter[1]^t[1],w=X.counter[2]^t[2],z=X.counter[3]^t[3],B=3;B>=0&&!(X.counter[B]=-~X.counter[B]);B--);for(var V,b,e=4;e<40;)B=PF[G>>>24]^EE[y>>16&255]^UE[w>>8&255]^mY[z&255]^t[e++],V=PF[y>>>24]^EE[w>>16&255]^UE[z>>8&255]^mY[G&255]^t[e++],b=PF[w>>>24]^EE[z>>16&255]^UE[G>>8&255]^mY[y&255]^t[e++],z=PF[z>>>24]^EE[G>>16&255]^UE[y>>8&255]^mY[w&255]^t[e++],G=B,y=V,w=b;X=X.cipherBlock;B=t[40];X[0]=NP[G>>>24]^B>>>24;X[1]=NP[y>>16&255]^B>>16&255;X[2]=
NP[w>>8&255]^B>>8&255;X[3]=NP[z&255]^B&255;B=t[41];X[4]=NP[y>>>24]^B>>>24;X[5]=NP[w>>16&255]^B>>16&255;X[6]=NP[z>>8&255]^B>>8&255;X[7]=NP[G&255]^B&255;B=t[42];X[8]=NP[w>>>24]^B>>>24;X[9]=NP[z>>16&255]^B>>16&255;X[10]=NP[G>>8&255]^B>>8&255;X[11]=NP[y&255]^B&255;B=t[43];X[12]=NP[z>>>24]^B>>>24;X[13]=NP[G>>16&255]^B>>16&255;X[14]=NP[y>>8&255]^B>>8&255;X[15]=NP[w&255]^B&255};var Klq=!1;(function(){var X=function(y){return new Uint8Array(y)},t=function(y){for(var w=new Uint8Array(y.length),z=0;z<y.length;z++)w[z]=y[z];
return w},G=new Uint8Array([1]);
return G.length===1&&G[0]===1?X:t})();
var R9;var Qlq=function(X){a:{if(!Klq&&!bt){if(R9){var t=R9;break a}R9=(t=window.crypto)==null?void 0:t.subtle;var G,y,w;if(((G=R9)==null?0:G.importKey)&&((y=R9)==null?0:y.sign)&&((w=R9)==null?0:w.encrypt)){t=R9;break a}R9=void 0}t=void 0}t&&(this.nativeEncryptor=new OZR(X,t));this.encryptorPolyfill=new u9Y(X)};
Qlq.prototype.encrypt=function(X,t){var G=this,y;return _.n(function(w){switch(w.nextAddress){case 1:if(!G.nativeEncryptor){w.jumpTo(2);break}_.CL(w,3);return w.yield(G.nativeEncryptor.encrypt(X,t),5);case 5:return w.return(w.yieldResult);case 3:y=_.IY(w),_.Mj(y),Klq=!0,G.nativeEncryptor=void 0;case 2:return w.return(G.encryptorPolyfill.encrypt(X,t))}})};
Qlq.prototype.decrypt=function(X,t){return this.encrypt(X,t)};
var OZR=function(X,t){this.JSC$12557_aesKey=X;this.subtleCrypto=t};
OZR.prototype.encrypt=function(X,t){var G=this,y;return _.n(function(w){if(w.nextAddress==1)return _.CL(w,2),w.yield(Inq(G,X,t),4);if(w.nextAddress!=2)return w.return(w.yieldResult);y=_.IY(w);_.Mj(y);Klq=!0;throw y;})};
var Inq=function(X,t,G){var y,w;return _.n(function(z){switch(z.nextAddress){case 1:if(X.cryptoKey){z.jumpTo(2);break}return z.yield(X.subtleCrypto.importKey("raw",X.JSC$12557_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:X.cryptoKey=z.yieldResult;case 2:return y={name:"AES-CTR",counter:G,length:128},z.yield(X.subtleCrypto.encrypt(y,X.cryptoKey,t),4);case 4:return w=z.yieldResult,z.return(new Uint8Array(w))}})},u9Y=function(X){this.JSC$12560_aesKey=X};
u9Y.prototype.encrypt=function(X,t){this.encryptor||(this.encryptor=new qKq(this.JSC$12560_aesKey));for(var G=this.encryptor,y=0;y<4;y++)G.counter[y]=t[y*4]<<24|t[y*4+1]<<16|t[y*4+2]<<8|t[y*4+3];G.blockOffset=16;return this.encryptor.encrypt(X)};
u9Y.prototype.decrypt=function(X,t){return this.encrypt(X,t)};var Wl4={},fbh=jD("yt-idb-pref-storage",{objectStores:(Wl4.prefs={addedAtVersion:1},Wl4),shared:!1,upgrade:function(X,t){t(1)&&yG(tv(X,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.ig=function(X){this.token=X};
_.ig.getInstance=function(){return _.n(function(X){return X.return(new Promise(function(t){_.eD().then(function(G){G?(_.ig.instance||(_.ig.instance=new _.ig(G)),t(_.ig.instance)):t(void 0)})}))})};
_.ig.prototype.get=function(X){var t=this,G,y,w;return _.n(function(z){if(z.nextAddress==1)return z.yield(MIl(t.token),2);if(z.nextAddress!=3)return G=z.yieldResult,z.yield(G.get("prefs",X),3);y=z.yieldResult;if(!y)return z.return();w=(0,_.gl)();return y.expirationTimestampMs<=w?z.return():z.return(y.value)})};
_.ig.prototype.set=function(X,t,G){G=G===void 0?31536E3:G;var y=this,w,z,B;return _.n(function(V){if(V.nextAddress==1)return w=(0,_.gl)(),z={key:X,value:t,expirationTimestampMs:w+G*1E3},V.yield(MIl(y.token),2);B=V.yieldResult;return V.yield(B.put("prefs",z),0)})};
_.ig.prototype.remove=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(MIl(t.token),2);G=y.yieldResult;return y.yield(G.delete("prefs",X),0)})};var Lc={},cDq=(Lc.INVALID_ENCODER_VERSION="Invalid encoder version",Lc.KEY_CREATION_FAILED="Failed to create encoder key",Lc.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Lc.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Lc.WRONG_DATA_TYPE="Encoder cannot process the data type",Lc),uA=function(X,t){t=t===void 0?{}:t;_.NJ.call(this,cDq[X],Object.assign({},{name:"PESEncoderError",type:X},t));this.type=X;this.level="WARNING";Object.setPrototypeOf(this,uA.prototype)};
_.S(uA,_.NJ);var vF=function(){};
vF.prototype.encode=function(X,t){try{return this.encodeImpl(X,t)}catch(G){GQV(G,$0V)}};
vF.prototype.decode=function(X,t){try{return this.decodeImpl(X,t)}catch(G){GQV(G,tfw)}};
var p7h=function(X,t,G){var y;return _.n(function(w){if(w.nextAddress==1)return _.CL(w,2),w.yield(X.decodeAsyncImpl(t,G),4);if(w.nextAddress!=2)return w.return(w.yieldResult);y=_.IY(w);GQV(y,tfw);_.W$(w)})};
vF.prototype.decodeAsyncImpl=function(X,t){return Promise.resolve(this.decodeImpl(X,t))};var a9=function(X,t){this.aesEncryptor=X;this.aesEncryptorAsync=t};
_.S(a9,vF);a9.prototype.encodeImpl=function(X,t){t=yZv(t);X=(new TextEncoder).encode(JSON.stringify(X));return this.aesEncryptor.encrypt(X,t)};
a9.prototype.decodeImpl=function(X,t){if(!(X instanceof Uint8Array))throw XMA(1);var G=new TextDecoder;t=yZv(t);X=this.aesEncryptor.decrypt(X,t);return JSON.parse(G.decode(X))};
a9.prototype.decodeAsyncImpl=function(X,t){var G=this,y,w,z;return _.n(function(B){if(B.nextAddress==1){if(!(X instanceof Uint8Array))throw XMA(1);y=new TextDecoder;w=yZv(t);return B.yield(G.aesEncryptorAsync.decrypt(X,w),2)}z=B.yieldResult;return B.return(JSON.parse(y.decode(z)))})};var wME={accountLinkStatusEntity:oX4,booleanEntity:rJB,buttonEntity:fGt,captionTrack:r0h,channelHandle:doB,chipEntity:q2q,commerceAcquisitionClientPayloadEntity:Ybh,commerceCartListEntity:s34,contextNoteFeedEntityPayload:qHP,contextNoteUserRatingEntityPayload:CiB,continuationTokenEntity:Tx4,downloadQualityPickerEntity:Jzq,downloadsPageRefreshTokenEntity:nCq,downloadsPageViewConfigurationEntity:CyS,downloadStatusEntity:BxY,dismissState:Cjh,sfvAudioItemCurrentlyPlayingEntity:jM4,emojiFountainDataEntity:aGP,
emojiCustomizationSetEntity:v6t,fakeChannel:EPq,fakePlaylist:Ugh,fakePlaylistEntryCollection:mg4,fakeVideo:iGR,fakeVideoDescription:LpR,featuredProductsEntity:lZq,flowStateEntity:y8q,iconBadgeEntity:D4q,interstitialInteractionStateEntity:DTh,likeButtonAnimationEntity:KoY,liveChatPollStateEntity:uBq,liveViewerLeaderboardChatEntryPointStateEntity:MIJ,liveViewerLeaderboardPointsEntity:XMq,liveReactionsDataEntity:lGq,logoEntity:Yyz,macroMarkerEntity:Omh,mainDownloadsLibraryEntity:Vtz,mainDownloadsListEntity:bm4,
mainPlaylistDownloadStateEntity:dDB,mainPlaylistEntity:Azt,mainPlaylistVideoEntity:Y_o,mainVideoDownloadStateEntity:erP,mainVideoEntity:hrh,markersEngagementPanelSyncEntity:uLh,markersVisibilityOverrideEntity:QZ4,musicAlbumReleaseDetail:HBq,musicAlbumReleaseDownloadMetadataEntity:tI4,musicAlbumRelease:zFq,musicAlbumReleaseUserDetail:oro,musicArtistDetail:B_q,musicArtist:J0q,musicArtistUserDetail:nrq,musicDownloadsLibraryEntity:G_o,musicLibraryEdit:VIR,musicLibraryStatusEntity:bBJ,musicPlaylist:k_q,
musicPlaylistDownloadMetadataEntity:y04,musicShare:eFY,musicTrackDetail:grq,musicTrackDownloadMetadataEntity:w3z,musicTrack:jxt,musicTrackUserDetail:FQB,offlineOrchestrationActionWrapperEntity:N_4,offlineVideoPolicy:PSh,offlineVideoStreams:Erq,offlineabilityEntity:jZR,orchestrationWebSamplingEntity:gCq,pageHeaderEntity:NvP,pdpStateEntity:SbP,pinnedProductEntity:xDS,playbackData:UN4,playerStateEntity:IZB,quantityIncrementerEntity:hoB,refresh:mNo,saveToPlaylistListEntity:rZ4,selectedChipIndexEntityPayload:Wo4,
settingEntity:wFS,stringEntity:NEo,suggestedFeedbackChipStateEntity:czJ,transfer:RFe,trendingOfferEntity:fZB,videoDownloadContextEntity:iBt,videoOverviewAsyncDataEntity:l84,videoPlaybackPositionEntity:$4z,votingEntity:mWR,ytMainChannelEntity:Zm4,youchatPendingResponseEntity:pBJ,ytMainDownloadedVideoEntity:FoJ,ytMainVideoEntity:q_h};var rDS,PDz,pg,be6,kQh,mhq,iZJ,RDR,UhR;rDS=function(X,t){this.JSC$12579_wrapped=X;this.JSC$12579_encoderRegistry=t;this.changedKeys={}};
PDz=function(X,t){return NKJ(X.JSC$12579_encoderRegistry,t.version).decode(t.data,t.key)};
_.EKq=function(X,t,G){return X.JSC$12579_wrapped.objectStore("EntityStore").get(t).then(function(y){if(y){if(G&&y.entityType!==G)throw Error("Bf");return PDz(X,y)}})};
pg=function(X,t,G){return G?(G=G.map(function(y){return _.EKq(X,y,t)}),tG.all(G)):X.JSC$12579_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(t)).then(function(y){return y.map(function(w){return PDz(X,w)})})};
_.VfA=function(X,t,G){var y=mN6(t),w=NKJ(X.JSC$12579_encoderRegistry,1),z=Object.assign({},t);return X.JSC$12579_wrapped.objectStore("EntityStore").get(y).then(function(B){if(B){if(B.entityType!==G)throw Error("Bf");z.entityMetadata||(B=PDz(X,B),z.entityMetadata=B.entityMetadata)}}).then(function(){var B={key:y,
entityType:G,data:w.encode(z,y),version:1};return tG.all([X.JSC$12579_wrapped.objectStore("EntityStore").put(B),UhR(X,z,G)])}).then(function(){mhq(X,y,G);
return y})};
be6=function(X,t){var G=_.hg(t).entityType;return tG.all([X.JSC$12579_wrapped.objectStore("EntityStore").delete(t),RDR(X,t)]).then(function(){mhq(X,t,G)})};
kQh=function(X,t,G,y){var w=NKJ(X.JSC$12579_encoderRegistry,1);return _.EKq(X,t,y).then(function(z){if(z){z=KQJ(z,G);var B={key:t,entityType:y,data:w.encode(z,t),version:1};return tG.all([X.JSC$12579_wrapped.objectStore("EntityStore").put(B),UhR(X,z,y)])}}).then(function(){mhq(X,t,y);
return t})};
mhq=function(X,t,G){var y=X.changedKeys[G];y||(y=new Set,X.changedKeys[G]=y);y.add(t)};
iZJ=function(X,t,G){var y=mN6(t);G=zUv(G);if(!G)return tG.resolve([]);G=new G(t);X=X.JSC$12579_wrapped.objectStore("EntityAssociationStore");t=[];G=_.J(G.getAssociations());for(var w=G.next();!w.done;w=G.next())t.push(X.put({parentEntityKey:y,childEntityKey:w.value}));return tG.all(t).then(function(z){return z.map(function(B){return B[1]})})};
RDR=function(X,t){return X.JSC$12579_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(t))};
UhR=function(X,t,G){var y=mN6(t);return RDR(X,y).then(function(){return iZJ(X,t,G)})};var Llh=function(){};
_.S(Llh,vF);Llh.prototype.encodeImpl=function(X){return X};
Llh.prototype.decodeImpl=function(X){if(X instanceof Uint8Array)throw XMA(0);return X};var JZ6=function(){this.cacheMap={};this.cacheMap[0]=new Llh;if(!_.A("aes_pes_encoder_killswitch")){var X=this.cacheMap;try{var t=_.ps();var G=yZv(t);var y=new a9(new u9Y(G),new Qlq(G))}catch(w){throw X=w instanceof Error?new uA("KEY_CREATION_FAILED",{originalMessage:w.message}):new uA("KEY_CREATION_FAILED"),_.xA(X),X;}X[1]=y}},NKJ=function(X,t){t=t===void 0?0:t;
X=X.cacheMap[t];if(!X)throw t=new uA("INVALID_ENCODER_VERSION",{encoderVersion:t}),_.xA(t),t;return X};var I$=function(X,t){_.po.call(this);this.token=X;this.JSC$12593_encoderRegistry=t;this.observers=[];X=new _.tA.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.ps());X.onmessage=this.handleMessage.bind(this);this.channel=X};
_.S(I$,_.po);_.cK=function(X,t,G){var y,w,z,B;return _.n(function(V){if(V.nextAddress==1)return V.yield(xN_(X.token),2);if(V.nextAddress!=3)return y=V.yieldResult,V.yield(_.Bz(y,["EntityStore","EntityAssociationStore"],t,function(b){w=new rDS(b,X.JSC$12593_encoderRegistry);return G(w)}),3);
z=V.yieldResult;w&&(B=w.changedKeys,Object.keys(B).length>0&&(X.channel.postMessage(B),vKB(X,B)));return V.return(z)})};
I$.prototype.observe=function(X){var t=this;this.observers.push(X);return function(){var G=t.observers.indexOf(X);G>=0&&t.observers.splice(G,1)}};
var gph=function(X){var t;return _.n(function(G){if(G.nextAddress==1)return G.yield(_.cK(X,{mode:"readonly",enableRetries:!0},function(y){return y.JSC$12579_wrapped.objectStore("EntityStore").getAll()}),2);
t=G.yieldResult;return G.return(Promise.all(t.filter(function(y){return!!y}).map(function(y){var w,z;
return _.n(function(B){if(B.nextAddress==1){w=y.key;z=y.entityType;var V=B.yield;var b=p7h(NKJ(X.JSC$12593_encoderRegistry,y.version),y.data,y.key);return V.call(B,b,2)}return B.return({key:w,entityType:z,data:B.yieldResult})})})))})};
I$.prototype.handleMessage=function(X){vKB(this,X.data)};
var vKB=function(X,t){X=_.J(X.observers);for(var G=X.next();!G.done;G=X.next())G=G.value,G(t)};
I$.prototype.disposeInternal=function(){this.channel.close()};
var Hes;var lg,ln4,QMs;lg={};_.anz=(lg.mainVideoEntity="mainVideoEntityActionMetadata",lg.mainPlaylistEntity="mainPlaylistEntityActionMetadata",lg.musicTrack="musicTrackEntityActionMetadata",lg.musicPlaylist="musicPlaylistEntityActionMetadata",lg);ln4=new _.FB("DOWNLOADS_ENTITY_TYPE_MAP");_.iA=_.Cg("","downloadsPageViewConfigurationEntity");QMs=_.Cg("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.bcE=_.Cg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Cg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Cg("SMART_DOWNLOADS_ENABLED","settingEntity");_.Cg("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var F2Y=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var hUw=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var $P6={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var xn,XNA,SVP,dG_;xn=window;_.wV=xn.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.n6v=xn.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.np;XNA=xn.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Ee;SVP=xn.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||DiJ;_.xhB=xn.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.E34;dG_=xn.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||R2q;Jp({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 km0=$Wf(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(X){return X}}}),YOl=$Wf(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(X){return X}}}),wNJ=new Map;var eTv=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Bv_;var fnR=function(X){return _.Dl({type:"SET_EPHEMERAL_ACTION",payload:X})};var M9B={ephemeralAction:null};var X54={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var d4v={sharedUi:function(X,t){X=X===void 0?X54:X;switch(t.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},X,{animatedThumbnailEnabled:t.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},X,{inlinePreviewEnabled:t.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},X,{currentPageType:t.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},X,{currentPageSubType:t.payload});default:return X}},
a11y:Os({ephemeralAction:function(X,t){X=X===void 0?M9B.ephemeralAction:X;switch(t.type){case "SET_EPHEMERAL_ACTION":return t.payload;default:return X}}})};var Y2E={playlistId:"",inviteLinkURL:""};var $Lq={};var K4A=Os({continuationCommand:function(X,t){X=X===void 0?$Lq:X;switch(t.type){case "SET_CONTINUATION_COMMAND":return t.payload.continuationCommand;default:return X}}});var DWV={currentFormId:"",commandsMap:{}};var Ou6=Os({isLeaderTab:function(X,t){X=X===void 0?!0:X;switch(t.type){case "SET_IS_LEADER_TAB":var G,y;return(y=t==null?void 0:(G=t.payload)==null?void 0:G.isLeaderTab)!=null?y:X;default:return X}}});var GH4;_.t1Y=function(X){return _.Dl({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:X}})};
GH4=function(X){return _.Dl({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:X}})};var pN_=Os({isDesktopSmallWidth:function(X,t){switch(t.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return t.payload.isDesktopSmallWidth;default:return X===void 0?!1:X}},
isShortsActive:function(X,t){switch(t.type){case "SET_IS_SHORTS_ACTIVE":return t.payload.isShortsActive;default:return X===void 0?!1:X}},
isWatchWhileMode:function(X,t){switch(t.type){case "SET_IS_WATCH_WHILE_MODE":return t.payload.isWatchWhileMode;default:return X===void 0?!1:X}},
playerState:function(X,t){switch(t.type){case "SET_PLAYER_STATE":return t.payload.playerState;default:return X===void 0?-1:X}},
isFullscreen:function(X,t){switch(t.type){case "SET_IS_FULLSCREEN":return t.payload.isFullscreen;default:return X===void 0?!1:X}},
isSmallScreenSqueezeback:function(X,t){switch(t.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return t.payload.isSmallScreenSqueezeback;default:return X===void 0?!1:X}},
isShortsPipActive:function(X,t){switch(t.type){case "SET_IS_SHORTS_PIP_ACTIVE":return t.payload.isShortsPipActive;default:return X===void 0?!1:X}},
isPlaybackStarted:function(X,t){switch(t.type){case "SET_IS_PLAYBACK_STARTED":return t.payload.isPlaybackStarted;default:return X===void 0?!1:X}}});var j36=function(){return function(X){return function(t){var G=X(t);_.sl(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[t],!0);return G}}};var yeq,Qps;yeq=new _.Kp;_.q7=new _.FB("WATCH_PLAYER_PROMISE_TOKEN");_.w5t=new _.Kp;_.ziq=new _.FB("SHORTS_PLAYER_PROMISE_TOKEN");Qps=new _.FB("");var gZ6=function(){return function(X){return function(t){t.type==="ENTITY_LOADED"&&_.gw().resolve(_.q7).then(function(G){var y;(y=G.dispatchReduxAction)==null||y.call(G,t)});
return X(t)}}};var H$4={};var uNV=Os({additionalContext:function(X,t){switch(t.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var G;return(G=t.payload)!=null?G:"";default:return X===void 0?"":X}},
impersonatedChannelUrl:function(X,t){switch(t.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var G;return(G=t.payload)!=null?G:"";default:return X===void 0?"":X}},
selectedVideoIds:function(X,t){X=X===void 0?H$4:X;switch(t.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var G={};return Object.assign({},X,(G[t.payload]=!0,G));case "VIDEO_UNSELECTED":return t=t.payload,X=Object.assign({},X),delete X[t],X;default:return X}}});var QIE=Os({parentClickTrackingParams:function(X,t){switch(t.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return t.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return X===void 0?"":X}}});var oM4=function(X){return _.Dl({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:X})};var JeP={};var IGh=Os({stepStates:function(X,t){X=X===void 0?JeP:X;switch(t.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var G=X,y=t.payload,w,z,B;X={};t={selectionStates:Object.assign({},(B=(w=G[y.stepId])==null?void 0:w.selectionStates)!=null?B:{},(X[y.token]={isSelected:y.isSelected},X)),userQuery:(z=G[y.stepId])==null?void 0:z.userQuery};w={};return Object.assign({},G,(w[y.stepId]=t,w));case "TALK_TO_RECS_UPDATE_USER_QUERY":return w=X,z=t.payload,B={selectionStates:Object.assign({},
(y=(G=w[z.stepId])==null?void 0:G.selectionStates)!=null?y:{}),userQuery:{userQuery:z.userQuery,token:z.userQueryToken}},G={},Object.assign({},w,(G[z.stepId]=B,G));default:return X}}});var Bgo,nMq,b$q;Bgo=function(X){return _.Dl({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:X})};
nMq=function(X){return _.Dl({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:X})};
_.aA=function(X){return _.Dl({type:"SET_CURRENT_PAGE_TYPE",payload:X})};
_.V1Y=function(X){return _.Dl({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:X})};
b$q=function(X){return _.Dl({type:"SET_CHIP_BAR_IS_STICKY",payload:X})};var hTE={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"};_.kHo=function(X){return _.Dl({type:"SET_PLAYER_STATE",payload:{playerState:X}})};var dLq=[],ei4={width:0,height:0};var W4s=Os({isTheaterMode:function(X,t){X=X===void 0?_.A("kevlar_disable_theater_mode_persistence")?!1:_.X3("START_IN_THEATER_MODE"):X;switch(t.type){case "SET_IS_THEATER_MODE":return t.payload.isTheaterMode;default:return X}},
isWatchActive:function(X,t){switch(t.type){case "SET_IS_WATCH_ACTIVE":return t.payload.isWatchActive;default:return X===void 0?!1:X}},
isLearningJourneyActive:function(X,t){switch(t.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return t.payload.isLearningJourneyActive;default:return X===void 0?!1:X}},
isWatchFullscreen:function(X,t){switch(t.type){case "SET_IS_WATCH_FULLSCREEN":return t.payload.isWatchFullscreen;default:return X===void 0?!1:X}},
isWatchNarrowWidth:function(X,t){switch(t.type){case "SET_IS_WATCH_NARROW_WIDTH":return t.payload.isWatchNarrowWidth;default:return X===void 0?!1:X}},
isWatchRetroMode:function(X,t){switch(t.type){case "SET_IS_WATCH_RETRO_MODE":return t.payload.isWatchRetroMode;default:return X===void 0?!1:X}},
isLiveChatCollapsed:function(X,t){switch(t.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return t.payload.isLiveChatCollapsed;default:return X===void 0?!1:X}},
openEngagementPanels:function(X,t){X=X===void 0?dLq:X;var G=[].concat(_.RY(X));switch(t.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return G.push(t.payload.panelToAdd),G;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return G.splice(G.indexOf(t.payload.panelToRemove),1),G;default:return X}},
playerState:function(X,t){switch(t.type){case "SET_PLAYER_STATE":return t.payload.playerState;default:return X===void 0?-1:X}},
watchScrollTop:function(X,t){switch(t.type){case "SET_WATCH_SCROLL_TOP":return t.payload.watchScrollTop;default:return X===void 0?0:X}},
watchWindowSize:function(X,t){X=X===void 0?ei4:X;switch(t.type){case "SET_WATCH_WINDOW_SIZE":return t.payload.watchWindowSize;default:return X}}});var jyB={feedbackTokens:[]};var c_Y=Os({surveyFeedbackData:function(X,t){X=X===void 0?jyB:X;switch(t.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return t.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},X,t.payload);default:return X}}});var q2V={};var TGv=void 0;_.A("web_enable_redux_store_on_demand")||(TGv=FVs());var gMJ=function(X,t,G){var y=this;this.listId=X;this.JSC$12727_updateCallback=t;this.isOfflineVideoCallback=G;_.dV().subscribe(function(){y.handleUpdate()})};
gMJ.prototype.getPlaylistData=function(){var X=_.dV().getState().entities;if(this.listId&&this.listId!=="PPSV"){var t=m0G(X,this.listId,!0),G=_.Cg(this.listId,"mainPlaylistEntity"),y,w;X=X==null?void 0:(y=X.mainPlaylistEntity)==null?void 0:(w=y[G])==null?void 0:w.title;return ACs(t,X,this.listId)}t=_.Zeh(FYV(X));X=_.Zeh(_.Lg(X));X=t.concat(X);return ACs(X)};
gMJ.prototype.getPlaylistId=function(){return this.listId};
gMJ.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12727_updateCallback(this.listId,this.getPlaylistData(),{})};var fc=function(X,t,G,y){y=y===void 0?[]:y;this.JSC$12730_playlistNetworkManager=X;this.listId=t;this.JSC$12730_updateCallback=G;this.videoIds=y;this.pendingUpdates=[];this.currentIndex=0};
fc.prototype.JSC$12730_setCurrentIndex=function(X){this.currentIndex=X};
fc.prototype.setListId=function(X){this.listId=X};
var FiR=function(X,t){X.currentCreateRequest&&X.currentCreateRequest.cancel(t);X.currentUpdateRequest&&X.currentUpdateRequest.cancel(t);X.currentRefreshRequest&&X.currentRefreshRequest.cancel(t)};
fc.prototype.delete=function(){FiR(this,"PROXY DELETED")};
fc.prototype.addVideos=function(X,t,G){var y=this;G!==void 0?this.videoIds.splice.apply(this.videoIds,[G,0].concat(_.RY(X))):this.videoIds.push.apply(this.videoIds,_.RY(X));this.listId||this.currentCreateRequest?(X.forEach(function(w,z){w={addedVideoId:w,action:"ACTION_ADD_VIDEO"};G&&(w.addedVideoPosition=G+z);y.pendingUpdates.push(w)}),MP(this)):Tgq(this,t.onCreateListCommand)};
var Ae4=function(X,t,G,y,w){sVY(X.videoIds,t,G);t>X.currentIndex&&G<=X.currentIndex?X.JSC$12730_setCurrentIndex(X.currentIndex+1):t===X.currentIndex?X.JSC$12730_setCurrentIndex(G):t<X.currentIndex&&G>=X.currentIndex&&X.JSC$12730_setCurrentIndex(X.currentIndex-1);X.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:y,movedSetVideoIdPredecessor:w});MP(X)},Tgq=function(X,t){FiR(X,"OBSOLETE");
X.currentCreateRequest=YYo(X.JSC$12730_playlistNetworkManager,t,X.videoIds);_.R8(X.currentCreateRequest,function(){X.currentCreateRequest=void 0}).then(function(G){X.setListId(G.playlistId);
X.pendingUpdates.length>0?MP(X):syo(X)})},MP=function(X){if(X.pendingUpdates.length!==0&&(X.currentRefreshRequest&&X.currentRefreshRequest.cancel("OBSOLETE"),!X.currentUpdateRequest&&!X.currentCreateRequest)){var t=X.pendingUpdates.splice(0,X.pendingUpdates.length);
X.currentUpdateRequest=X.JSC$12730_playlistNetworkManager.updatePlaylist(X.listId,t);_.R8(X.currentUpdateRequest,function(){X.currentUpdateRequest=void 0}).then(function(){X.pendingUpdates.length>0?MP(X):syo(X)}).thenCatch(function(){X.pendingUpdates.unshift.apply(X.pendingUpdates,_.RY(t))})}},syo=function(X){X.currentRefreshRequest=_.DLB(X.JSC$12730_playlistNetworkManager,X.listId,X.currentIndex,X.videoIds[X.currentIndex]);
_.R8(X.currentRefreshRequest,function(){X.currentRefreshRequest=void 0}).then(function(t){X.JSC$12730_updateCallback(t.playlistId,t.playlistPanelRenderer,t.autoplayRenderer)})};
fc.prototype.size=function(){return this.videoIds.length};var SYq=function(X,t,G,y){y=y===void 0?[]:y;fc.call(this,X,t,G,y);this.JSC$12730_playlistNetworkManager=X;this.listId=t;this.JSC$12730_updateCallback=G;this.videoIds=y};
_.S(SYq,fc);_.XN=function(X,t,G,y,w,z,B){w=w===void 0?[]:w;B=B===void 0?Da:B;fc.call(this,X,t,G,w);this.JSC$12730_playlistNetworkManager=X;this.listId=t;this.JSC$12730_updateCallback=G;this.onAuthChange=y;this.videoIds=w;this.storage=z;this.cookieReader=B;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.CX(_.vz,this.checkLoggedInStatusChange.bind(this),1E3)};
_.S(_.XN,fc);_.H=_.XN.prototype;_.H.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.CX(_.vz,this.checkLoggedInStatusChange.bind(this),1E3)};
_.H.JSC$12730_setCurrentIndex=function(X){fc.prototype.JSC$12730_setCurrentIndex.call(this,X);this.store()};
_.H.delete=function(){_.vz.cancelJob(this.queueSapisIdJob);fc.prototype.delete.call(this)};
_.H.setListId=function(X){fc.prototype.setListId.call(this,X);this.store()};
_.H.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var hio=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Z$q=["playerResponse","videoDetails"],qYt=["response","currentVideoEndpoint","watchEndpoint","videoId"],CZ4=["response","currentVideoEndpoint","watchEndpoint","playlistId"],KiR=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],O$z=["response","contents","twoColumnWatchNextResults","playlist","playlist"],uFh=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
QyY=["response","contents","twoColumnWatchNextResults"];var $6={},hoV=($6.WEB_UNPLUGGED="^unplugged/",$6.WEB_UNPLUGGED_ONBOARDING="^unplugged/",$6.WEB_UNPLUGGED_OPS="^unplugged/",$6.WEB_UNPLUGGED_PUBLIC="^unplugged/",$6.WEB_CREATOR="^creator/",$6.WEB_KIDS="^kids/",$6.WEB_EXPERIMENTS="^experiments/",$6.WEB_MUSIC="^music/",$6.WEB_REMIX="^music/",$6.WEB_MUSIC_EMBEDDED_PLAYER="^music/",$6.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",$6);var JVh,YYo;JVh=function(X,t){this.networkManager=X;this.innertubeTransportService=t};
YYo=function(X,t,G){if(!_.Y(t,_.z4))return _.l$(Error("Ff"));_.Y(t,_.z4).videoIds=G;G={create_playlist_title:_.Qf("QUEUE",void 0,"Queue")};return D4A(_.kW(X.innertubeTransportService,t,G),YbJ)};
_.DLB=function(X,t,G,y){t={videoId:y,playlistId:t,playlistIndex:G};G=_.el(WDq);return D4A(_.t_(X.innertubeTransportService,t,G),Sbf)};
JVh.prototype.updatePlaylist=function(X,t){return D4A(_.kW(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:X,actions:t}}),s3_)};var IT4=function(X){this.storage=X},WiS;
IT4.prototype.store=function(X,t){t=t===void 0?0:t;if(this.storage&&X.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",X),this.storage.set("TLPQindex",String(t)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(G){}};
IT4.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
IT4.prototype.getPlaylistId=function(){if(!this.storage)return null;var X=null;try{X=this.storage.get("TLPQplaylist")}catch(t){}return X};var KV0=["navigationEndpoint","watchEndpoint","videoId"],CRA=["nextButtonVideo","watchEndpoint","videoId"];_.fp=new _.FB("NETWORK_TOKEN");_.AS=new _.FB("PAGE_TOKEN");_.Gm=new _.FB("PLAYLIST_TOKEN");var ceB;ceB=new _.FB("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Mr=new _.FB("INNERTUBE_TRANSPORT_TOKEN");var p5q,ya,Ngq,PZ4,ULh,mLh;p5q=new Set(["ci","cr","carml"]);ya=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12777_parkedJobs=new Map;this.parkedProcessors=new Map};
_.wv=function(){ya.instance||(ya.instance=new ya);return ya.instance};
ya.prototype.onAny=function(X){return _.ret(this,X,2)};
ya.prototype.parkOrScheduleJob=function(X,t,G,y,w){_.zm(this,G)?_.va().addJob(X,t,y):(w&&(X=Ngq(X),PZ4(this,X,t,G,w)),w=this.JSC$12777_parkedJobs.get(G),w||(this.JSC$12777_parkedJobs.set(G,[]),w=this.JSC$12777_parkedJobs.get(G)),w.push({job:X,priority:t,delay:y}))};
ya.prototype.addListener=function(X,t,G){G&&(t=Ngq(t),PZ4(this,t,0,X,G));G=this.parkedProcessors.get(X);G||(this.parkedProcessors.set(X,[]),G=this.parkedProcessors.get(X));G.push(t)};
ya.prototype.processSignal=function(X){if(!_.zm(this,X)){this.inProgressSignals.add(X);var t=this.JSC$12777_parkedJobs.get(X);if(t){t=_.J(t);for(var G=t.next();!G.done;G=t.next())G=G.value,_.va().addJob(G.job,G.priority,G.delay);this.JSC$12777_parkedJobs.delete(X)}if(t=this.parkedProcessors.get(X)){t=_.J(t);for(G=t.next();!G.done;G=t.next())G=G.value,G();this.parkedProcessors.delete(X)}this.signals.push(X);this.inProgressSignals.delete(X)}};
_.zm=function(X,t){return p5q.has(t)||_.X3("IS_HOMEPAGE_COLD")||_.X3("IS_RESULTS_PAGE_COLD")||_.X3("IS_WATCH_PAGE_COLD")?X.signals.indexOf(t)>=0:!0};
Ngq=function(X){var t=!1;return function(){t||(t=!0,X())}};
PZ4=function(X,t,G,y,w){if(EMe.has(y))_.va().addJob(t,G,w);else{var z=X.compoundSignals.get(y);z&&_.va().addJob(function(){_.zm(X,y)||(z.isTimeoutConditionSatisfied?_.va().addJob(t,G):z.timeoutConditionObservers.push(function(){_.va().addJob(t,G)}))},G,w)}};
_.ret=function(X,t,G){if(t.length>1){var y=[],w=Object.create(null);t=_.J(t);for(var z=t.next();!z.done;z=t.next())z=z.value,w[z]||(y.push(z),w[z]=!0);t=y}if(t.length===1)return t[0];z=t;y="";w=G===2?"|":"&";z.sort();z=_.J(z);for(var B=z.next();!B.done;B=z.next())y+=B.value+w;if(!X.compoundSignals.get(y)){w=0;z=[];B=_.J(t);for(var V=B.next();!V.done;V=B.next())V=V.value,w++,_.zm(X,V)||z.push(V);(G=G===2)&&w>z.length||!G&&!z.length?X.signals.push(y):ULh(X,y,G,t,z)}return y};
ULh=function(X,t,G,y,w){var z=w.length,B=function(){G||--z===0?X.processSignal(t):mLh(X,t)};
w=_.J(w);for(var V=w.next();!V.done;V=w.next())X.addListener(V.value,B);X.compoundSignals.set(t,{signals:y,isOnAny:G,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});mLh(X,t)};
mLh=function(X,t){if(!_.zm(X,t)){var G=X.compoundSignals.get(t);if(G&&!G.isTimeoutConditionSatisfied){for(var y=!1,w=0,z=0,B=_.J(G.signals),V=B.next();!V.done;V=B.next()){var b=V.value;V=!_.zm(X,b);EMe.has(b)?y=!0:(b=X.compoundSignals.get(b))?V&&!b.isTimeoutConditionSatisfied&&(z++,G.isInitialized||b.timeoutConditionObservers.push(function(){mLh(X,t)})):V&&w++}G.isInitialized=!0;
G.isOnAny?y&&(G.isTimeoutConditionSatisfied=!0):w===0&&z===0&&(G.isTimeoutConditionSatisfied=!0);if(G.isTimeoutConditionSatisfied)for(G=_.J(G.timeoutConditionObservers),y=G.next();!y.done;y=G.next())y=y.value,y()}}};
ya.prototype.processSignal=ya.prototype.processSignal;ya.prototype.parkOrScheduleJob=ya.prototype.parkOrScheduleJob;ya.prototype.onAny=ya.prototype.onAny;_.dl("ytsignals.getInstance",_.wv);ya.prototype.onAny=ya.prototype.onAny;ya.prototype.parkOrScheduleJob=ya.prototype.parkOrScheduleJob;ya.prototype.processSignal=ya.prototype.processSignal;var EMe=new Set(["eop","eocs","dl","pcl"]);_.G2=new _.FB("MINIPLAYER_SERVICE");var HN,RiY,i$t;HN=function(X,t,G){var y=_.Hq.getInstance();if(!WiS){var w=new $Ql;var z=void 0,B=_.Md("ID_TOKEN");B&&w.isAvailable()&&(z=new mU(w,"yt-queue"+B));WiS=new IT4(z)}w=WiS;z=_.wv();this.JSC$12784_actionRouter=y;this.pageManager=X;this.playlistManager=t;this.JSC$12784_playlistNetworkManager=G;this.storage=w;this.signals=z;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.oI=function(){if(!RiY){var X=_.gw(),t=X.resolve(_.jH(_.AS)),G=X.resolve(_.jH(_.fp)),y=X.resolve(_.jH(_.Gm));X=X.resolve(_.Mr);RiY=new HN(t,y,new JVh(G,X))}return RiY};
i$t=function(X,t,G){if(G){var y;if(((y=X.responsePlaylistData)==null?void 0:y.playlistId)!==G)return}X.responsePlaylistData&&(G=cCE(t,X.responsePlaylistData),X.responsePlaylistData=(0,_.RH.unsafeClone)(X.responsePlaylistData),rCE(X.responsePlaylistData,G));G=X.temporaryItems.findIndex(function(w){return w.videoId===t});
G>-1&&X.temporaryItems.splice(G,1);_.J_(X,_.BN(X,X.response?X.response.autoplayRenderer:void 0))};
_.LiY=function(X,t){if(X.responsePlaylistData){var G=prs(t,X.responsePlaylistData);rCE(X.responsePlaylistData,G);if(X.queueProxy){var y=X.queueProxy;G<0||(y.videoIds.splice(G,1),G<y.currentIndex&&y.JSC$12730_setCurrentIndex(y.currentIndex-1),y.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:t}),MP(y))}}_.J_(X,_.BN(X,X.response?X.response.autoplayRenderer:void 0))};
HN.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.J_(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
HN.prototype.setPlaylistData=function(X,t,G){this.temporaryItems=[];this.listId=X;this.responsePlaylistData=t;_.J_(this,_.BN(this,G))};
var vMt=function(X){return(X==null?0:X.playlistId)?X.playlistId:"PPSV"},aTh=function(X){return X&&X.playlistId?X.playlistId==="PPSV"?!0:E_s(_.dV().getState().entities,X.playlistId):!1};
HN.prototype.isPlayingOfflineVideo=function(){return this.response?aTh(this.response):!1};
HN.prototype.closeMiniplayer=function(X){var t=this.queueProxy&&this.queueProxy.size()<=1,G=_.gw().resolve(_.G2);if(!this.queueProxy||t)this.queueProxy&&this.clearQueue(),G.close(!0);else{G.pipController.getWindow()&&window.focus();t=this.responsePlaylistData;var y=this.temporaryItems.length+(t&&t.contents?t.contents.length:0);t=_.Qf("QUEUE_CLEARED_UNPLURALIZED")||_.Ia("QUEUE_CLEARED",y);t=_.F0(t);G=_.Qf("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");y=_.Qf("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Ia("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",y);var w=_.Qf("MINIPLAYER_CLOSE",void 0,"Close"),z=_.Qf("CANCEL",void 0,"Cancel");_.XL(this.JSC$12784_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Vl(G),dialogMessages:[_.Vl(y)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Vl(w),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
t]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Vl(z)}}}}}}],X)}};
_.BN=function(X,t){var G={},y=X.response;G.autoplayRenderer=t;if(!X.responsePlaylistData&&!X.temporaryItems.length)return!y||!y.hasRelatedVideoData&&_.A("kevlar_prefetch_data_augments_network_data")||(G.playerData={rvs:y.relatedVideoArgs,endScreenRenderer:y.endScreenRenderer}),G;G.playerData={};if(X.index===void 0)return _.xA(Error("Hf")),G;G.panel=X.responsePlaylistData?(0,_.RH.unsafeClone)(X.responsePlaylistData):{titleText:_.Vl(_.Qf("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
t=G.panel;if(t.contents)for(var w=_.J(X.temporaryItems),z=w.next();!z.done;z=w.next())t.contents.push({playlistPanelVideoRenderer:z.value});X.queueProxy&&y&&y.playingVideo&&y.playingVideoId&&!WV6(y.playingVideoId,G.panel)&&(t=y.playingVideo,w=G.panel,z=X.index,w.contents&&w.contents.splice(z===void 0?0:z,0,{playlistPanelVideoRenderer:t}));y&&y.playingVideoId&&(t=X.index,w=G.panel,t=!w.contents||t>=w.contents.length?void 0:w.contents[t].playlistPanelVideoRenderer,t&&t.videoId===y.playingVideoId||(t=
cCE(y.playingVideoId,G.panel),X.index=t!==-1?t:X.index?X.index-1:0));t=I80(X.index+1,G.panel);w=void 0;X.index>0&&(w=I80(X.index-1,G.panel));if(w||t)G.autoplayRenderer=Ov0(t,w,G.autoplayRenderer);!t&&(y==null?0:y.relatedVideoArgs)&&(G.playerData.rvs=y.relatedVideoArgs);y=y?y.playlistIndexOffset:0;X.queueProxy?EZ0(G.panel,X.index,y,Q3f,!0,!0,!0):EZ0(G.panel,X.index,y);G.playerData.playlistPanelRenderer=G.panel;return G};
HN.prototype.openToast=function(X){_.gw().resolve(_.G2).openToast(X,_.Qf("ADDED_TO_QUEUE",void 0,"Added to queue"))};
HN.prototype.isMiniplayerActive=function(){return _.gw().resolve(_.G2).isMiniplayerActive()};
_.J_=function(X,t){X.playlistManager.setAutoplayRenderer(t.autoplayRenderer||null);X.playlistManager.setPlaylistData(t.panel||null);t.playerData&&X.playlistManager.setPlayerPlaybackControlData(t.playerData)};var m4Y="#";var lTR={},xL4={},fT4={},M1B={},X8h={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:(lTR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",lTR),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:(xL4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",xL4),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:(fT4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",fT4),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:(M1B.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",M1B),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 S$v=[{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:X8h},{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:X8h}}];var dZf;_.Cp=[[["Z29rdXJmN29raW5kIzgxbQ==","N2NibmF2YWx1ZSN3bTJsemg="],"RF9TVEFSVCNhNGRiZjdrMG1zMGpBRF9QTEFDRU1FTlRfS0lO"]];
dZf=[[["cmltYXJ5I2V0azJvamk2ZTh5cA==",null,null],[null,["YWtzejh5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNvc3JsMml1","bmNtdGFkMzRzdHlsZS1zY29wZSNka2V2"],null],["bWZnN2Nmc3NtYXN0aGVhZC1hZCN4cjg2",["cmVuZGVyZXIjNjhpZjRxcndnYXhheXRkLXJpY2gtZ3JpZC0="],null],[null,["cmVuZGVyZXIjc3ZjYTZjYTZuZmRieXRkLXJpY2gtZ3JpZC0=","ODZxcDQzYTBzdHlsZS1zY29wZSNzbTd3"],null],[null,["ZGVyZXIja2E3ODZsemUyejVleXRkLWJhbm5lci1wcm9tby1yZW4=","ZjlobGx3czdzdHlsZS1zY29wZSNlbzA5"],null],[null,["dC1yZW5kZXJlciNvamt4ZWV1bTFwbDl5dGQtYWQtc2xv"],
null]],[["ZmNxM3FxdmFjdnBsYXllci1hZHMjbDU=",null,null]]];_.qr=["Z2xvYmFsQ2FsbGJhY2tzIzVhenNwbml0ZzFiaQ==","eURldGVjdGVkI3U3ODV2dHd6NGFwbG9uQWJub3JtYWxpdA==","cCMxeHQ5cWdhcGEzYWZvbkFkU2tp","ZXJfcmVzcG9uc2UjZDltMHRxZW1obDl0cmF3X3BsYXk=","b3RzI2xpYjlvNm1mNHE4YWFkU2w="];_.nu="Z2xvYmFsQ2FsbGJhY2tzIzVhenNwbml0ZzFiaQ== eURldGVjdGVkI3U3ODV2dHd6NGFwbG9uQWJub3JtYWxpdA== cCMxeHQ5cWdhcGEzYWZvbkFkU2tp ZXJfcmVzcG9uc2UjZDltMHRxZW1obDl0cmF3X3BsYXk= bXJiYnEwcXdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNjeXA5bA== ZiN2eWQ5c2VneGVmdjZhYl9zYV9l b3RzI2xpYjlvNm1mNHE4YWFkU2w=".split(" ");var Va;Va=function(X,t,G){this.tIT=X;this.isAsync=t;this.oas=G};
_.pCV=[new Va("b.f_",!1,0),new Va("j.s_",!1,2),new Va("r.s_",!1,4),new Va("e.h_",!1,6),new Va("i.s_",!0,8),new Va("s.t_",!1,10),new Va("p.h_",!1,12),new Va("s.i_",!1,14),new Va("f.i_",!1,16),new Va("a.b_",!1,18),new Va("a.o_",!1),new Va("g.o_",!1,22),new Va("p.i_",!1,24),new Va("p.m_",!1),new Va("n.k_",!0,20),new Va("i.f_",!1),new Va("a.s_",!0),new Va("m.c_",!1),new Va("n.h_",!1,26),new Va("o.p_",!1),new Va("m.p_",!0,28),new Va("o.a_",!1),new Va("d.p_",!1),new Va("e.i_",!1)].reduce(function(X,t){X[t.tIT]=
t;return X},{});var $Kh=function(){};
$Kh.prototype.flush=function(X,t){X=X===void 0?[]:X;t=t===void 0?!1:t;if(_.A("enable_client_streamz_web")){X=_.J(X);for(var G=X.next();!G.done;G=X.next())G=vgq(G.value),this.rootSpec&&_.Oi(G,2,this.rootSpec),G={serializedIncrementBatch:_.i2(G.JSC$9536_serializeBinary())},_.a7("streamzIncremented",G,{sendIsolatedPayload:t})}};
var vZG=function(){};
_.S(vZG,$Kh);var tNR=function(X){var t=new P_q;var G=new pth;G=_.rp(G,1,"botguard");X=_.rp(G,2,X);this.rootSpec=_.QW(t,1,EgB,X)};
_.S(tNR,$Kh);var Sl,GM4=new Map;var Fk0,l8_,wCA,MVv,tCv,brG,ABV,nQh;Fk0=2;l8_=2;wCA=2;MVv=2;tCv=2;brG=2;ABV=2;nQh=new Ebh;var w8q,zzq,Hkq;w8q=function(){this.ongoingFlowNonces=new Map};
_.Ql=function(){zzq||(zzq=new w8q);return zzq};
_.O8=function(X,t,G){return{eventType:{flowEventNamespace:X,flowEventType:t},metadata:G,statusCode:void 0,csn:void 0,can:void 0}};
_.NQA=function(X,t){var G=_.Ql(),y=Hkq(G,t,!0);_.uu(G,X,t,y)};
_.uu=function(X,t,G,y){X={flowNonce:y||Hkq(X,G),flowType:G,flowEventType:t.eventType};t.metadata&&(X.flowMetadata=t.metadata);t.statusCode!==void 0&&(X.flowEventStatus=t.statusCode);t.csn&&(X.csn=t.csn);t.can&&(X.can=t.can);_.a7("flowEvent",X,void 0)};
Hkq=function(X,t,G){G=G===void 0?!1:G;var y=X.ongoingFlowNonces.get(t);if(!y||G)y=LE(16),X.ongoingFlowNonces.set(t,y);return y};_.oUR=new Pfh;var mZV={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var bj=function(X,t,G,y,w,z,B){G=G===void 0?!1:G;y=y===void 0?!1:y;z=z===void 0?_.oI():z;this.hasRun=!1;this.zJR=X;this.wY0=t;this.dyY=G;this.fromHistory=y;this.previousVideoId=w;this.sF7=z;this.tempData=B;this.lEe=new _.Ulq};
_.S(bj,Fs);bj.prototype.validate=function(X){return!(!X.data.playerResponse||X.data.page!=="watch"&&X.data.page!=="learning_journey_watch"&&X.data.page!=="shorts"||this.hasRun)};
bj.prototype.handle=function(X){var t=this,G=_.Y(X.endpoint,_.nq),y=_.Y(X.endpoint,_.E8);if(_.A("kevlar_continue_playback_without_player_response")&&(G==null?0:G.videoId)&&this.previousVideoId&&(G==null?void 0:G.videoId)===this.previousVideoId&&(G==null?0:G.continuePlayback)&&!this.fromHistory)this.zJR.resolve();else{var w={};G?w.watch_endpoint=G:y&&(w.watch_endpoint=y,y.endTimeSeconds&&(w.end=y.endTimeSeconds));X.data.page==="watch"?(X.data.filler||this.dyY||(_.xt("cfg"),_.Hq.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(w,JXt(this,X.endpoint)),_.A("enable_masthead_quartile_ping_fix")&&Object.assign(w,Bfh(this)),Object.assign(w,void 0),X.data.forceExternalPlaylist&&(w.external_list=!0)):X.data.page==="shorts"?_.Hq.getInstance().triggerAction("yt-start-loading-shorts"):X.data.page==="learning_journey_watch"&&_.Hq.getInstance().triggerAction("yt-start-loading-learning-journey");if(G=this.wY0()){try{G.loadVideoWithPlayerResponse(X.data.playerResponse,w),G.getPlayerPromise().then(this.zJR.resolve)}catch(z){_.xA(z),
this.zJR.resolve()}this.hasRun=!0;G.getPlayerPromise().then(function(z){z.addEventListener("onAbnormalityDetected",function(){var B=X.data.playerResponse,V=z.getVideoData().cpn;ABV=0;_.yXe=V;if(V=cBw(B))t.lEe.increment("IN_PLAYER"),_.Ic(5),_.A("ab_st_vid_ks")?z.pauseVideo(!0):z.stopVideo(),B.playabilityStatus=Object.assign({},B.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:V}}),B.videoDetails=void 0,_.Hq.getInstance().triggerOptionalAction("yt-updated-playability-status",
B.playabilityStatus)})})}else _.Mj(Error("Kf"))}};
var JXt=function(X,t){var G=_.Y(t,_.nq);if(t&&G&&G.playlistId&&G.videoId&&(X=X.sF7,X.queueProxy?(X=X.queueProxy,G=X.listId===G.playlistId?X.attributionData.get(G.videoId):void 0):G=void 0,G))return{queue_info:G}},Bfh=function(X){var t;
if((t=X.tempData)==null?0:t.adpings)return{adpings:X.tempData.adpings}};var k6=function(X,t,G){this.hasRun=!1;this.iWI=X;this.t4l=t;this.h0X=G};
_.S(k6,Fs);k6.prototype.validate=function(X){return!!_.RH.getValueByKeys.apply(null,[X.data].concat(_.RY(QyY)))};
k6.prototype.handle=function(X){var t=this;this.iWI.promise.then(function(){var G=X.data;var y=_.RH.getValueByKeys.apply(null,[G].concat(_.RY(hio))),w=_.RH.getValueByKeys.apply(null,[G].concat(_.RY(O$z))),z=_.RH.getValueByKeys.apply(null,[G].concat(_.RY(qYt)));var B=(B=_.RH.getValueByKeys.apply(null,[G].concat(_.RY(Z$q))))?{videoId:B.videoId,thumbnail:B.thumbnail,title:B.title?_.Vl(B.title):void 0,shortBylineText:B.author?_.Vl(B.author):void 0}:void 0;var V=void 0;_.A("web_get_playlist_id_from_current_endpoint_ks")||
(V=_.RH.getValueByKeys.apply(null,[G].concat(_.RY(CZ4))));var b=_.RH.getValueByKeys.apply(null,[G].concat(_.RY(uFh))),e=_.RH.getValueByKeys.apply(null,[G].concat(_.RY(KiR))),g=!!b||!!e&&!!e.results&&e.results.length>0,F=0;w&&w.currentIndex&&w.localCurrentIndex&&(F=w.currentIndex-w.localCurrentIndex);w&&w.playlistId&&(V=w.playlistId);G={rawResponse:G,autoplayRenderer:y,hasRelatedVideoData:g,playingVideo:B,playingVideoId:z,playlistPanelRenderer:w,playlistId:V,playlistIndex:w&&w.currentIndex,relatedVideoArgs:b,
endScreenRenderer:e,playlistIndexOffset:F};a:{y=t.h0X;w=t.t4l;y.response=G;if(aTh(G))y.downloadPlaylistProxy&&y.downloadPlaylistProxy.getPlaylistId()===vMt(G)||(y.downloadPlaylistProxy=new gMJ(vMt(G),y.setPlaylistData.bind(y),y.isPlayingOfflineVideo.bind(y))),y.responsePlaylistData=y.downloadPlaylistProxy.getPlaylistData(),y.listId=vMt(G),y.index=0;else if(G.playlistPanelRenderer&&G.playlistId&&G.autoplayRenderer)G.playlistId.startsWith("TLPQ")?y.queueProxy?y.listId===G.playlistId?(y.index=G.playlistIndex,
y.responsePlaylistData=G.playlistPanelRenderer,y.queueProxy.JSC$12730_setCurrentIndex(y.index)):G.playingVideoId&&y.index!==void 0&&w.clientParams.autoSaveToQueue&&(y.index+=1,y.queueProxy.JSC$12730_setCurrentIndex(y.index),y.queueProxy.addVideos([G.playingVideoId],{},y.index)):(y.queueProxy=new _.XN(y.JSC$12784_playlistNetworkManager,G.playlistId,y.setPlaylistData.bind(y),y.clearQueue.bind(y),_.NGh(G.playlistPanelRenderer),y.storage),y.responsePlaylistData=G.playlistPanelRenderer,y.listId=G.playlistId,
y.index=G.playlistIndex):(y.index=G.playlistIndex,y.listId!==G.playlistId&&y.clearQueue(),y.responsePlaylistData=G.playlistPanelRenderer,y.listId=G.playlistId,y.playlistProxy=new SYq(y.JSC$12784_playlistNetworkManager,G.playlistId,y.setPlaylistData.bind(y),_.NGh(G.playlistPanelRenderer)));else if(!y.queueProxy)y.responsePlaylistData=void 0;else if(G.playingVideoId&&w.clientParams.autoSaveToQueue){if(y.index===void 0){_.xA(Error("Gf"));y.clearQueue();break a}y.queueProxy.videoIds.includes(G.playingVideoId)||
(y.index+=1,y.queueProxy.JSC$12730_setCurrentIndex(y.index),y.queueProxy.addVideos([G.playingVideoId],{},y.index))}_.J_(y,_.BN(y,y.response.autoplayRenderer))}})};var nUq=function(X,t){t=t===void 0?_.oI():t;I9.call(this);this.zQ.push(new k6(this.vG,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},t));this.zQ.push(new bj(this.vG,X,!1,!1));_.A("web_response_commands_chunk_processor")&&this.zQ.push(new WF)};
_.S(nUq,I9);nUq.prototype.processChunk=function(X){X&&X.data.player===void 0&&this.vG.resolve();I9.prototype.processChunk.call(this,X)};var dv=function(X,t){X=X===void 0?{layer:0}:X;this.hasRun=!1;this.createScreenConfig=X;this.mgS=t};
_.S(dv,Fs);dv.prototype.validate=function(X){return!(this.hasRun||!X.endpoint)};
dv.prototype.handle=function(X){var t=_.Pj(),G,y,w=(y=_.Y((G=X.endpoint)==null?void 0:G.commandMetadata,_.jQ))==null?void 0:y.rootVe;this.mgS&&w?_.qP(t,w,this.mgS,this.createScreenConfig):t94(t,X.endpoint,this.createScreenConfig);this.hasRun=!0};var eT=function(X,t){this.hasRun=!1;this.tm7=X;this.previousVideoId=t};
_.S(eT,Fs);eT.prototype.validate=function(X){return _.A("kevlar_continue_playback_without_player_response")&&(X=_.Y(X.endpoint,_.nq),(X==null?0:X.videoId)&&this.previousVideoId&&(X==null?void 0:X.videoId)===this.previousVideoId&&(X==null?0:X.continuePlayback))?!1:this.tm7.hbQ===0};
eT.prototype.handle=function(X){_.Hq.getInstance().triggerAction("yt-stop-old-player",X.data,!0)};var VNS=function(X){X=X===void 0?{layer:0}:X;I9.call(this);this.zQ.push(new eT(this));this.zQ.push(new dv(X));this.zQ.push(new Qq(X))};
_.S(VNS,I9);var bkq=function(){this.hasRun=this.hasRun=!1};
_.S(bkq,Fs);bkq.prototype.validate=function(X){return!this.hasRun&&!(!X.data.csn||!X.data.rootVe)};
bkq.prototype.handle=function(X){this.hasRun=!0;_.fE(X.data.csn,X.data.rootVe,3)};var kMe=function(){Fs.apply(this,arguments)};
_.S(kMe,Fs);kMe.prototype.validate=function(X){return!!X.data.preconnect};
kMe.prototype.handle=function(X){_.ls("bc");X=_.J(X.data.preconnect);for(var t=X.next();!t.done;t=X.next())t=t.value,(new Image).src=t};var dKB=function(X,t,G){G=G===void 0?{layer:0}:G;I9.call(this);this.zQ.push(new bj(this.vG,X));this.zQ.push(new dv(G));this.zQ.push(new Qq(G))};
_.S(dKB,I9);var ezq=function(X,t,G,y,w){G=G===void 0?{layer:0}:G;y=y===void 0?_.oI():y;I9.call(this);var z=!!t&&!!t.clientParams&&!!t.clientParams.miniplayer;z&&this.zQ.push(new bkq);this.zQ.push(new k6(this.vG,t,y));this.zQ.push(new kMe);var B,V;this.zQ.push(new bj(this.vG,X,z,!((B=t.clientParams)==null||!B.fromHistory),(V=t.clientParams)==null?void 0:V.previousVideoId,y,t.tempData));var b;this.zQ.push(new eT(this,(b=t.clientParams)==null?void 0:b.previousVideoId));var e;(e=t.clientParams)!=null&&e.fromHistory||
(G.layer||(G=Object.assign({},G,{layer:z?3:0})),this.zQ.push(new dv(G,w)),this.zQ.push(new Qq(G)));_.A("web_response_commands_chunk_processor")&&this.zQ.push(new WF)};
_.S(ezq,I9);var jT,FKq;jT={};
_.jTt=(jT["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},jT["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},jT["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},jT["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},jT["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},jT["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},jT["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},jT);_.gv=new _.M1("yt-edu");_.gUo=function(){this.JSC$12885_eduDisplayedThisLoad_={}};
FKq=function(X){var t=_.gUo.getInstance();var G=_.At("kevlar_tooltip_impression_cap");t=G&&parseInt(_.gv.get(X+"-impression")||0,10)>=G||_.gv.get(X+"-dismissed")?!1:(G=_.jTt[X])&&!t.JSC$12885_eduDisplayedThisLoad_[G.setKey||X]&&(G.titleText&&_.Qf(G.titleText)||G.bodyText&&_.Qf(G.bodyText))?!0:!1;if(!t)return null;t=_.jTt[X];if(!t)return null;G=t.bodyText?_.Qf(t.bodyText):void 0;var y=t.titleText?_.Qf(t.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:t.position,popup:{bubbleHintRenderer:{text:y?
_.Vl(y):void 0,detailsText:G?_.Vl(G):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Vl(_.Qf("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:X}}]}}}}}}}},{eduImpressionAction:{key:X}}]};
_.Aw(_.gUo);var PVh=!1;for(var Tfq="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),AXJ=[],FN=6;FN>=1;FN--)AXJ.push({columnCount:FN,query:FN==1?0:FN*2*107-4+32,className:"grid-"+FN+"-columns",width:FN*2*107+"px"});_.sTB=function(X){this.actionRouter_=X=X===void 0?_.Hq.getInstance():X;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.YLR(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.YLR=function(X){var t=X.miniGuideVisible_?72:0,G=X.documentWidth_-(X.guidePersistentAndVisible_?240:t);return AXJ.find(function(y){return G>y.query})};
_.Aw(_.sTB);var DKR=function(){var X=this;this.JSC$12897_keyboardInUse=!1;document.addEventListener("keydown",function(){X.onKeydown()});
document.addEventListener("mousedown",function(){X.JSC$12897_keyboardInUse=!1})},SLR;
DKR.prototype.isKeyBoardInUse=function(){return this.JSC$12897_keyboardInUse};
DKR.prototype.onKeydown=function(){this.JSC$12897_keyboardInUse=!0};var hzR,Y6;_.Tm=new _.M1("yt-mentions");_.A_=function(){};
hzR=function(X,t){return Y6(t,"drag-to-reorder-edu-displayed")};
Y6=function(X,t,G,y,w,z){G=G===void 0?"OPEN_POPUP_POSITION_TOP":G;if(t){if(_.Tm.get(t))return;_.Tm.set(t,!0,y)}if(w&&z!==void 0){t=Number(_.Tm.get(w)||0);if(t>=z)return;_.Tm.set(w,t+1)}return[{openPopupAction:{popupType:"HINT",position:G,popup:{bubbleHintRenderer:{detailsText:X,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Aw(_.A_);var ZkB,qLq,COR;ZkB=function(X,t,G,y){this.JSC$12907_taskManager_=X;this.onFulfilled_=typeof t==="function"?t:null;this.onRejected_=typeof G==="function"?G:null;this.JSC$12907_context_=y};
qLq=function(X,t){X.onFulfilled_&&_.Rs(X.JSC$12907_taskManager_,function(){X.onFulfilled_.call(X.JSC$12907_context_,t)})};
COR=function(X,t){X.onRejected_&&_.Rs(X.JSC$12907_taskManager_,function(){X.onRejected_.call(X.JSC$12907_context_,t)})};
_.s2=function(X){this.JSC$12910_taskManager_=X;this.callbacks_=[]};
_.s2.prototype.then=function(X,t,G){this.callbacks_.push(new ZkB(this.JSC$12910_taskManager_,X,t,G));return this};
_.s2.prototype.onSuccess=function(X){this.callbacks_.forEach(function(t){qLq(t,X)})};
_.s2.prototype.onFailure=function(X){this.callbacks_.forEach(function(t){COR(t,X)})};
_.s2.prototype.cancel=function(){this.callbacks_.length=0};
xB4(_.s2);_.irs=null;_.xI=new _.FB("ACTIVITY_TOKEN");var DG=function(X,t){this.serviceId=new l1h(X,t)};
DG.prototype.toString=function(){return this.serviceId.toString()};var KK4=function(){this.internalMap={}};
_.H=KK4.prototype;_.H.contains=function(X){return Object.prototype.hasOwnProperty.call(this.internalMap,X)};
_.H.get=function(X){if(this.contains(X))return this.internalMap[X]};
_.H.set=function(X,t){this.internalMap[X]=t};
_.H.getKeys=function(){return Object.keys(this.internalMap)};
_.H.remove=function(X){delete this.internalMap[X]};var ST=function(){this.mappings=new KK4;this.errorCallbacks=new Set};
ST.prototype.getModuleId=function(X){return X.serviceId.getModuleId()};
ST.prototype.get=function(X){var t=this.mappings.get(X.toString());return OkY(this,t,X)};
ST.prototype.getMultipleAsync=function(){var X=_.f1.apply(0,arguments),t=this,G=X.map(function(b){return t.getModuleId(b)}),y=X.map(function(b){return t.mappings.get(b.toString())}).filter(function(b){return b});
if(y.length===X.length)return _.qY(y.map(function(b,e){return OkY(t,b,X[e])}));
var w=mW().loadMultiple(G);y=_.m9(G.map(function(b){return w[b]}));
var z=document.hidden,B=-1,V=_.At("get_async_timeout_ms",-1);V>-1&&(B=setTimeout(function(){_.Mj(new _.NJ("Module timeout.",G,z,document.hidden))},V));
return _.R8(y.then(function(){return X.map(function(b){return OkY(t,t.mappings.get(b.toString()),b)})}).thenCatch(function(b){for(var e=_.J(t.errorCallbacks),g=e.next();!g.done;g=e.next())g=g.value,g(b);
throw b;}),function(){clearTimeout(B)})};
ST.prototype.registerService=function(X,t){this.mappings.set(X.toString(),{type:"mapping",value:t});return X};
var OkY=function(X,t,G){switch(t.type){case "mapping":return t.value;case "factory":return t=t.value(),X.mappings.set(G.toString(),{type:"mapping",value:t}),t;default:return _.zr(t)}};
ST.prototype.onLoadError=function(X){var t=this;this.errorCallbacks.add(X);return function(){t.errorCallbacks.delete(X)}};
_.h_=new ST;var xZ0=/^[a-zA-Z0-9_\-]{11}$/;var feV=_.NF(function(){var X,t;return(t=(X=window).matchMedia)==null?void 0:t.call(X,"(prefers-reduced-motion: reduce)").matches});var u$o=_.NF(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 X=_.GA("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");X||(X=_.OF("VIDEO"),_.dl("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
X));return!!(X&&X.canPlayType&&X.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var yV_=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var ZG;ZG=function(){this.tokenJars={};if(this.cookiesEnabled=_.cx()){var X=_.QQ.get("CONSISTENCY",void 0);X&&QT4(this,{encryptedTokenJarContents:X})}};
_.zks=function(){ZG.instance||(ZG.instance=new ZG);return ZG.instance};
ZG.prototype.handleResponse=function(X,t){if(!t)throw Error("Qf");var G,y;t=((G=t.innerTubeRequest.context)==null?void 0:(y=G.request)==null?void 0:y.consistencyTokenJars)||[];var w;(X=(w=X.responseContext)==null?void 0:w.consistencyTokenJar)&&this.replace(t,X)};
ZG.prototype.replace=function(X,t){X=_.J(X);for(var G=X.next();!G.done;G=X.next())delete this.tokenJars[G.value.encryptedTokenJarContents];QT4(this,t)};
var QT4=function(X,t){if(t.encryptedTokenJarContents&&(X.tokenJars[t.encryptedTokenJarContents]=t,typeof t.expirationSeconds==="string")){var G=Number(t.expirationSeconds);setTimeout(function(){delete X.tokenJars[t.encryptedTokenJarContents]},G*1E3);
X.cookiesEnabled&&_.Iu("CONSISTENCY",t.encryptedTokenJarContents,G,void 0,!0)}};var Imz,qW;Imz=window.location.hostname.split(".").slice(-2).join(".");_.lu=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var X=_.Md("LOCATION_PLAYABILITY_TOKEN");_.Md("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=WKq(this))&&(X=this.localStorage.get("yt-location-playability-token"));X&&(this.locationPlayabilityToken=X,this.mostRecentPosition=void 0)};
_.lu.getInstance=function(){qW=_.GA("yt.clientLocationService.instance");qW||(qW=new _.lu,_.dl("yt.clientLocationService.instance",qW));return qW};
_.lu.prototype.setLocationOnInnerTubeContext=function(X){X.client||(X.client={});if(this.mostRecentPosition)X.client.locationInfo||(X.client.locationInfo={}),X.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),X.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),X.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),X.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)X.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.lu.prototype.handleResponse=function(X){var t;X=(t=X.responseContext)==null?void 0:t.locationPlayabilityToken;X!==void 0&&(this.locationPlayabilityToken=X,this.mostRecentPosition=void 0,_.Md("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=WKq(this))&&this.localStorage.set("yt-location-playability-token",X,15552E3):_.Iu("YT_CL",JSON.stringify({loctok:X}),15552E3,Imz,!0))};
var WKq=function(X){return X.localStorage===void 0?new _.M1("yt-client-location"):X.localStorage};
_.lu.prototype.clearLocationPlayabilityToken=function(X){X==="TVHTML5"?(this.localStorage=WKq(this))&&this.localStorage.remove("yt-location-playability-token"):_.Lxw("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.lu.prototype.getCurrentPositionFromGeolocation=function(){var X=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Rf"));var t=!1,G=1E4;_.Md("INNERTUBE_CLIENT_NAME")==="MWEB"&&(t=!0,G=15E3);return new Promise(function(y,w){navigator.geolocation.getCurrentPosition(function(z){X.mostRecentPosition=z;y(z)},function(z){w(z)},{enableHighAccuracy:t,
maximumAge:0,timeout:G})})};
_.lu.prototype.createUnpluggedLocationInfo=function(X){var t={};X=X.coords;if(X==null?0:X.latitude)t.latitudeE7=Math.floor(X.latitude*1E7);if(X==null?0:X.longitude)t.longitudeE7=Math.floor(X.longitude*1E7);if(X==null?0:X.accuracy)t.locationRadiusMeters=Math.round(X.accuracy);return t};
_.lu.prototype.createLocationInfo=function(X){var t={};X=X.coords;if(X==null?0:X.latitude)t.latitudeE7=Math.floor(X.latitude*1E7);if(X==null?0:X.longitude)t.longitudeE7=Math.floor(X.longitude*1E7);return t};var cXq=function(){};
_.H=cXq.prototype;
_.H.JSC$12977_getRequest=function(X,t,G){t=t===void 0?{}:t;G=G===void 0?tit:G;var y=t;if(this.isNavigationCommand()){var w,z=(w=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null?void 0:w.url;y=_.H86(X.clickTrackingParams,!0,!1,z,this.JSC$12977_getClientScreen(y))}else y=_.H86(X.clickTrackingParams,!1,this.includeCsn);y={context:y};if(w=this.getExtension(X))return this.JSC$12977_buildRequest(y,w,t),w=this.getApiUrl(X),z=Object.assign({},{command:X},this.getRequestConfig(X,t)),y={input:w,requestShell:JE(w),
innerTubeRequest:y,config:z},y.config.authStrategy?y.config.authStrategy.identity=G:y.config.authStrategy={identity:G},(X=this.JSC$12977_getRequestKey(X,t))&&!y.config.requestKey&&(y.config.requestKey=X),y;X=new _.NJ("Error: Failed to create Request from Command.",X);_.xA(X)};
_.H.getApiUrl=function(X){var t=_.el(this.getApiPaths(X)),G;(X=(G=_.Y(X.commandMetadata,_.jQ))==null?void 0:G.apiUrl)&&(t=X);return c8E(Wnh(t))};
_.H.isNavigationCommand=function(){return!1};
_.H.JSC$12977_getClientScreen=function(){};
_.H.JSC$12977_getRequestKey=function(){};
_.H.getRequestConfig=function(){};
_.ke.Object.defineProperties(cXq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Cu=function(){};
_.S(Cu,cXq);Cu.prototype.JSC$12984_getStoreKey=function(){};
Cu.prototype.JSC$12977_getRequestKey=function(X,t){t=t===void 0?{}:t;return this.JSC$12984_getStoreKey(X,t)};var rXq;_.Ku=function(X,t,G){var y=G&&G>0?G:0;G=y?Date.now()+y*1E3:0;if((y=y?(0,_.p8q)():rXq())&&window.JSON){typeof t!=="string"&&(t=JSON.stringify(t,void 0));try{y.set(X,t,G)}catch(w){y.remove(X)}}};
_.O2=function(X){var t=rXq(),G=(0,_.p8q)();if(!t&&!G||!window.JSON)return null;try{var y=t.get(X)}catch(w){}if(typeof y!=="string")try{y=G.get(X)}catch(w){}if(typeof y!=="string")return null;try{y=JSON.parse(y,void 0)}catch(w){}return y};
_.uj=function(X){try{var t=rXq(),G=(0,_.p8q)();t&&t.remove(X);G&&G.remove(X)}catch(y){}};
_.p8q=_.NF(function(){try{var X=new XKJ;var t=X.isAvailable()?X:null}catch(G){return null}return t?new _.ss(t):null});
rXq=_.NF(function(){var X=new $Ql;return X.isAvailable()?new _.ss(X):null});var Dw=new _.FB("ENTITY_STATE_TOKEN"),Qa=new _.FB("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Nfq=XMLHttpRequest.prototype.fetch,PO4=Nfq&&Nfq.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!bt?!0:!1;var II=function(X){this.JSC$12989_storeWithEntities=X};
_.S(II,Cu);_.H=II.prototype;_.H.getApiPaths=function(){return wVS};
_.H.getExtension=function(X){return _.Y(X,_.nq)||_.Y(X,_.E8)||_.Y(X,yZ4)};
_.H.isNavigationCommand=function(){return!0};
_.H.JSC$12984_getStoreKey=function(X){if((_.A("kevlar_cache_on_ttl_player")||_.A("mweb_enable_shorts_innertube_player_prefetch")||_.A("mweb_use_new_history_manager")||_.A("web_shorts_prefetch_service_enabled"))&&(X=this.getExtension(X))&&X.videoId){var t={videoId:X.videoId};X.playlistId&&(t.playlistId=X.playlistId);X.playerParams&&(t.params=X.playerParams);return _.BP("player",t)}};
_.H.JSC$12977_getClientScreen=function(X){var t;return((t=X.contentPlaybackContext)==null?void 0:t.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.H.JSC$12977_buildRequest=function(X,t,G){if(_.A("enable_interstitial_entity_check")){var y=this.JSC$12989_storeWithEntities;if(t.videoId)for(var w=_.J(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),z=w.next();!z.done;z=w.next()){z=z.value;var B;var V=void 0,b=void 0,e=t.videoId,g=z;(B=y)?(e=_.Cg(e+g,"interstitialInteractionStateEntity"),B=(V=(b=_.Kg(B.getState().entities,"interstitialInteractionStateEntity",e))==null?void 0:b.primaryButtonClicked)!=null?V:!1):B=!1;if(B)switch(z){case "CONTENT_CHECK_REQUIRED":t.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":t.racyCheckOk=!0}}}t.videoId&&(X.videoId=t.videoId);t.playlistId&&(X.playlistId=t.playlistId);t.index!==void 0&&(X.playlistIndex=t.index+1);t.playerParams&&(X.params=t.playerParams);"startTimeSeconds"in t&&t.startTimeSeconds&&(_.A("enable_player_request_builder_start_time_floor")?X.startTimeSecs=Math.floor(t.startTimeSeconds):X.startTimeSecs=t.startTimeSeconds);G.contentPlaybackContext&&(X.playbackContext={contentPlaybackContext:G.contentPlaybackContext});G.prefetchPlaybackContext&&
(X.playbackContext=Object.assign({},X.playbackContext,{prefetchPlaybackContext:G.prefetchPlaybackContext}),X.context.request||(X.context.request={}),X.context.request.isPrefetch=!0);X.playbackContext||(X.playbackContext={});y=u$o();X.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!y,supportXhr:PO4};G.overrideMutedAtStart&&(X.overrideMutedAtStart=G.overrideMutedAtStart);X.racyCheckOk=!!t.racyCheckOk;X.contentCheckOk=!!t.contentCheckOk;!_.A("captions_prefs_killswitch")&&(G=(G=_.O2("yt-player-caption-language-preferences"))?
G:[],G==null?0:G.length)&&(X.captionParams={viewerSelectedCaptionLangs:G})};
_.H.getRequestConfig=function(X){X=this.JSC$12984_getStoreKey(X);var t;X&&(t={storeStrategy:{storeKey:X}});_.A("web_log_player_watch_next_ticks")&&(t=t||{},t.requestTick="ps_s",t.responseTick="ps_r");return t};
II[gA]=[Dw];var WN=function(){};
_.S(WN,Cu);_.H=WN.prototype;_.H.getApiPaths=function(){return WDq};
_.H.getExtension=function(X){return _.Y(X,_.nq)};
_.H.isNavigationCommand=function(){return!0};
_.H.JSC$12984_getStoreKey=function(X){if((X=this.getExtension(X))&&X.videoId){var t={videoId:X.videoId};X.playlistId&&(t.playlistId=X.playlistId);X.index&&(t.index=X.index);X.params&&(t.params=X.params);return _.BP("next",t)}};
_.H.JSC$12977_getClientScreen=function(X){var t;return((t=X.contentPlaybackContext)==null?void 0:t.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.H.JSC$12977_buildRequest=function(X,t,G){t.videoId&&(X.videoId=t.videoId);t.playlistId&&(X.playlistId=t.playlistId);t.params&&(X.params=t.params);t.index!==void 0&&(X.playlistIndex=t.index);X.racyCheckOk=!(!G.racyCheckOk&&!t.racyCheckOk);X.contentCheckOk=!!t.contentCheckOk;G.contentPlaybackContext&&(X.autonavState=G.contentPlaybackContext.autonavState,X.playbackContext={vis:G.contentPlaybackContext.vis,lactMilliseconds:G.contentPlaybackContext.lactMilliseconds});G.prefetchPlaybackContext&&(X.context.request||
(X.context.request={}),X.context.request.isPrefetch=!0);_.A("captions_hats_killswitch")||(t=_.cP().getFlag(65),t=t!=null?!t:!1,G=!!_.O2("yt-player-sticky-caption"),X.captionsRequested=t&&G)};
_.H.getRequestConfig=function(X){X=this.JSC$12984_getStoreKey(X);var t;X&&(t={storeStrategy:{storeKey:X}});_.A("web_log_player_watch_next_ticks")&&(t=t||{},t.requestTick="wn_s",t.responseTick="wn_r");return t};
var cN=function(){};
_.S(cN,Cu);cN.prototype.getApiPaths=function(){return WDq};
cN.prototype.getExtension=function(X){return _.Y(X,_.Hk)};
cN.prototype.JSC$12977_buildRequest=function(X,t){t.token&&(X.continuation=t.token)};var pu=function(X,t){this.playerRequestBuilder=X;this.watchNextRequestBuilder=t};
_.S(pu,Cu);pu.prototype.getApiPaths=function(){return Lkq};
pu.prototype.getExtension=function(X){return _.Y(X,_.nq)};
pu.prototype.isNavigationCommand=function(){return!0};
pu.prototype.JSC$12977_buildRequest=function(X,t,G){X.playerRequest={};this.playerRequestBuilder.JSC$12977_buildRequest(X.playerRequest,t,G);_.A("web_streaming_watch")&&(X.watchNextRequest={},this.watchNextRequestBuilder.JSC$12977_buildRequest(X.watchNextRequest,t,G))};
pu[gA]=[II,WN];var EUt;_.rv=new _.FB("SHORTS_CONTROLLER_TOKEN");EUt=new _.FB("SHORTS_STATE_STORE_TOKEN");var NW=function(X,t){var G=_.f1.apply(2,arguments);X=X===void 0?0:X;_.NJ.call(this,t,G);this.errorType=X;Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(NW,_.NJ);var UKJ,mKe,ikS,aQE,z2,k9A,lmY,amo,tFJ,MNz,fmJ;UKJ=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(X){return X+"="}).join("|"));
mKe=RegExp(".*\\?.*playnext=1.*");_.PN=function(X,t,G,y){this.watchEndpointMap=X;this.reelWatchEndpointMap=t;this.innerTubeTransportService=G;this.fetchPbj=y};
ikS=function(X,t,G){var y=_.gw().resolve(_.jH(Rzq));_.PN.instance=new _.PN(X,t,G,y)};
_.LKY=function(X,t){var G=_.At("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;var y;if((y=_.Y(t.commandMetadata,_.jQ))==null||!y.rootVe)return G&&_.Mj(Error("Tf")),!1;var w;y=(w=_.Y(t.commandMetadata,_.jQ))==null?void 0:w.url;if(!y)return G&&_.Mj(Error("Uf")),!1;if(mKe.test(y))return!0;if(UKJ.test(y))return G&&_.Mj(Error("Vf`"+y)),!1;if(_.Y(t,_.nq)){if(!(X.watchEndpointMap.watchNext&&X.watchEndpointMap.player||_.A("kevlar_fetch_initial_data_op_watch_client")))return G&&_.Mj(Error("Mf")),!1;
X=_.At("web_pbj_log_warning_rate",0);X=X>0&&Math.random()<X;_.Y(t,_.nq)?aev(t)?t=!0:(X&&_.Mj(Error("Nf")),t=!1):(X&&_.Mj(Error("Mf")),t=!1);return t}if(_.Y(t,_.E8))return leE(t);if(_.Y(t,_.$n))return!0;X=_.bX(X.innerTubeTransportService,t);!X&&G&&_.xA(Error("Wf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(t)});return X};
aQE=function(X,t,G,y,w,z){t={url:t};if(G==null?0:G.itct)t.parentTrackingParams=G.itct;var B=_.el(kZR);return _.t_(X.innerTubeTransportService,t,B).then(function(V){(V=V.endpoint)||(V=_.pc);(G==null?0:G.itct)&&V&&!V.trackingParams&&(V.trackingParams=G.itct);var b=Nr(V);return z2(X,V,G,y,b,w,z)})};
z2=function(X,t,G,y,w,z,B,V){V=V===void 0?{}:V;if(X.fetchPbj&&!_.LKY(X,t)&&!_.A("force_one_platform")){V=X.fetchPbj(t);var b=_.qY(V.then(function(R){if(!R)throw Error("Xf");B(b)||z(t,R);return R}));
return b}var e,g,F={rootVe:(e=_.Y(t.commandMetadata,_.jQ))==null?void 0:e.rootVe,url:(g=_.Y(t.commandMetadata,_.jQ))==null?void 0:g.url,endpoint:t,page:w};if(_.Y(t,_.nq)){var T,D={contentPlaybackContext:_.Rc(G,(T=_.Y(t.commandMetadata,_.jQ))==null?void 0:T.url,y)},h=_.d5();_.A("web_streaming_watch")&&window.TextDecoderStream?(V=vUP(X.innerTubeTransportService,t,D,function(R){!F.response&&R.content&&(F.response=R.content);!F.playerResponse&&R.player&&(F.playerResponse=R.player);z(t,F)}),e=pZh(t),e.length&&
(F.preconnect=e,z(t,F)),amo(V,h,F).catch(function(R){R instanceof NW&&R.errorType===2&&lmY(X,t,D,F,z,B,h)})):lmY(X,t,D,F,z,B,h);
return h.promise}if(_.Y(t,_.E8)){var u;if(((u=_.Y(t,_.E8))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var W=_.d5();_.xKP(_.gw().resolve(_.rv),t).then(function(R){fmJ(X,G,y,w,z,W,R)});
return W.promise}V=_.qY();var c;e={contentPlaybackContext:_.Rc(G,(c=_.Y(t.commandMetadata,_.jQ))==null?void 0:c.url,y)};(c=X.reelWatchEndpointMap.player)&&(c=c().JSC$12977_getRequest(t,e))&&(V=_.t_(X.innerTubeTransportService,c.innerTubeRequest,c.input,t.clickTrackingParams,c.config));c=_.qY();(g=X.reelWatchEndpointMap.reelItemWatch)&&(g=g().JSC$12977_getRequest(t))&&(c=_.t_(X.innerTubeTransportService,g.innerTubeRequest,g.input,t.clickTrackingParams,g.config));g=_.qY();(T=X.reelWatchEndpointMap.reelWatchSequence)&&
_.Y(t,_.E8).sequenceParams&&(e=T().JSC$12977_getRequest(t,e))&&(g=_.t_(X.innerTubeTransportService,e.innerTubeRequest,e.input,t.clickTrackingParams,e.config));e=_.qY(F);T=_.d5();MNz(t,e,V,c,g,z,B,T);return T.promise}var P;if(_.Y(t,Rww)&&((P=_.Y(t.commandMetadata,_.jQ))==null?0:P.url))return V=wVY(_.tW(v1().location.href),_.tW(_.Y(t.commandMetadata,_.jQ).url)).toString(),aQE(X,V,G,y,z,function(){return!1});
if(_.Y(t,_.$n))return z(t,F),_.qY(F);if(_.bX(X.innerTubeTransportService,t)){V=Object.assign({},{tempData:G,disableCache:G.disableCache},V);var l=_.kW(X.innerTubeTransportService,t,V).then(function(R){F.response=R;B(l)||z(t,F);return F});
return l}return _.qY(F)};
_.$64=function(X,t,G,y){if(_.Y(t,_.nq)||_.Y(t,_.E8)&&(_.A("mweb_enable_shorts_innertube_player_prefetch")||_.A("kevlar_enable_shorts_prefetch_in_sequence"))||_.Y(t,yZ4)&&_.A("web_enable_prefetching_videos_on_home")){var w,z={contentPlaybackContext:_.Rc(G,(w=_.Y(t.commandMetadata,_.jQ))==null?void 0:w.url,y),prefetchPlaybackContext:XVf(G)},B,V,b;if(((B=_.Y(t,_.nq))==null?void 0:(V=B.watchEndpointSupportedPrefetchConfig)==null?void 0:(b=V.prefetchHintConfig)==null?void 0:b.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(G=
X.watchEndpointMap.watchNext)if(z=G().JSC$12977_getRequest(t,z))return Promise.resolve(_.t_(X.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(F){return F}))}else if(G=X.watchEndpointMap.player)if(z=G().JSC$12977_getRequest(t,z))return Promise.resolve(_.t_(X.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(F){return F}))}else if(_.bX(X.innerTubeTransportService,t)){var e={tempData:G},g=X_t(X.innerTubeTransportService,t);
return g?new Promise(function(F,T){var D,h;return _.n(function(u){if(u.nextAddress==1)return u.yield(g,2);if(u.nextAddress!=4)return D=u.yieldResult,D.JSC$12984_getStoreKey(t,e)?u.yield(_.kW(X.innerTubeTransportService,t,e),4):(T(new _.NJ("Prefetching request builder with no store key.",t)),u.jumpTo(0));h=u.yieldResult;F(h);_.W$(u)})}):Promise.reject(new _.NJ("Prefetching unregistered request builder.",t))}return Promise.reject(new _.NJ("No request builder available to prefetch endpoint.",t))};
k9A=function(X,t){var G,y,w;if(_.Y(t,_.nq)){var z=X.watchEndpointMap.watchNext;z&&(G=z());(X=X.watchEndpointMap.player)&&(y=X())}else if(_.Y(t,_.E8))(z=X.reelWatchEndpointMap.reelItemWatch)&&(G=z()),(z=X.reelWatchEndpointMap.player)&&(y=z()),(X=X.reelWatchEndpointMap.reelWatchSequence)&&(w=X());else{a:{X=GdY(t,X.innerTubeTransportService.endpointMap);if(X!==void 0)if(typeof X.then==="function")_.xA(new _.NJ("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",t));else break a;
X=void 0}X&&(G=X)}var B,V,b;return{content:(B=G)==null?void 0:B.JSC$12984_getStoreKey(t),player:(V=y)==null?void 0:V.JSC$12984_getStoreKey(t),reelSequence:(b=w)==null?void 0:b.JSC$12984_getStoreKey(t)}};
lmY=function(X,t,G,y,w,z,B){var V=_.qY(),b=X.watchEndpointMap.player;_.A("web_streaming_player")&&(b=mT(pu));b&&(b=b().JSC$12977_getRequest(t,G))&&(V=_.t_(X.innerTubeTransportService,b.innerTubeRequest,b.input,t.clickTrackingParams,b.config));b=_.qY();var e=X.watchEndpointMap.watchNext;e&&(G=e().JSC$12977_getRequest(t,G))&&(b=_.t_(X.innerTubeTransportService,G.innerTubeRequest,G.input,t.clickTrackingParams,G.config));X=_.qY(y);tFJ(t,X,V,b,w,z,B)};
amo=function(X,t,G){return _.n(function(y){if(y.nextAddress==1)return y.yield(X,2);t.resolve(G);_.W$(y)})};
tFJ=function(X,t,G,y,w,z,B){var V,b,e,g,F;_.n(function(T){switch(T.nextAddress){case 1:return T.yield(t,2);case 2:V=T.yieldResult;if(z(B.promise))return B.resolve(V),T.return();w(X,V);b=pZh(X);if(!b.length){T.jumpTo(3);break}return T.yield(t,4);case 4:V.preconnect=b,w(X,V);case 3:return _.CL(T,5),T.yield(G,7);case 7:e=T.yieldResult;_.zx(T,6);break;case 5:return g=_.IY(T),B.reject(g),T.return();case 6:if(e===void 0)return V.reload=!0,w(X,V),B.resolve(V),T.return();if(z(B.promise))return B.resolve(V),
T.return();V.playerResponse=e;w(X,V);_.CL(T,8);return T.yield(y,10);case 10:F=T.yieldResult;_.zx(T,9);break;case 8:_.IY(T);case 9:if(F===void 0)return V.response={responseContext:{}},B.resolve(V),T.return();if(z(B.promise))return B.resolve(V),T.return();V.response=F;w(X,V);B.resolve(V);_.W$(T)}})};
MNz=function(X,t,G,y,w,z,B,V){var b,e,g,F,T,D;_.n(function(h){switch(h.nextAddress){case 1:return h.yield(t,2);case 2:b=h.yieldResult;if(B(V.promise))return V.resolve(b),h.return();z(X,b);e=pZh(X);if(!e.length){h.jumpTo(3);break}return h.yield(t,4);case 4:b.preconnect=e,z(X,b);case 3:return _.CL(h,5),h.yield(G,7);case 7:g=h.yieldResult;_.zx(h,6);break;case 5:return F=_.IY(h),V.reject(F),h.return();case 6:if(g===void 0)return b.reload=!0,z(X,b),V.resolve(b),h.return();if(B(V.promise))return V.resolve(b),
h.return();b.playerResponse=g;z(X,b);_.CL(h,8);return h.yield(y,10);case 10:T=h.yieldResult;_.zx(h,9);break;case 8:_.IY(h);case 9:if(T===void 0)return b.response={responseContext:{}},V.resolve(b),h.return();if(B(V.promise))return V.resolve(b),h.return();b.response=T;z(X,b);_.CL(h,11);return h.yield(w,13);case 13:D=h.yieldResult;_.zx(h,12);break;case 11:_.IY(h);case 12:if(B(V.promise))return V.resolve(b),h.return();b.reelWatchSequenceResponse=D;z(X,b);V.resolve(b);_.W$(h)}})};
fmJ=function(X,t,G,y,w,z,B){var V,b,e,g,F,T;_.n(function(D){if((V=B)==null||!V.replacementEndpoint)return z.reject(),D.return();b=B.replacementEndpoint;(e=_.Y(b,_.E8))?(B.sequenceContinuation&&(e.sequenceParams=B.sequenceContinuation),g=_.gw().resolve(_.rv),F=e.sequenceParams,Gbq(g,b)&&delete e.sequenceParams,T=z2(X,b,t,G,y,w,function(){return!1}),T.then(function(h){return _.n(function(u){if(u.nextAddress==1)return yYP(g,{reelWatchEndpoint:{sequenceParams:F}},h),u.yield(0,2);
z.resolve(h);_.W$(u)})})):z.reject();
_.W$(D)})};_.w_e=function(X){if(X.validatedFragments_.length==0)return null;if(!X.mergedPrefetchedData_){for(var t=[],G=_.J(X.validatedFragments_),y=G.next();!y.done;y=G.next()){y=_.J(X.fragmentConfiguration_[y.value].graftedKeys);for(var w=y.next();!w.done;w=y.next())(w=X.prefetchedData_[w.value].trackingParams)&&t.push(w)}X.mergedPrefetchedData_={};Object.assign(X.mergedPrefetchedData_,X.prefetchedData_,{clientSideGrafts:t})}return X.mergedPrefetchedData_};var zYq;_.E2=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
zYq=function(X,t,G){if(_.LkV(t))return X.prefetchCache_.get(_.vQV(t,G))};_.U2=new _.FB("NAVIGATION_TOKEN");var Hiq=function(X){var t=this;var G=G===void 0?Bbv():G;var y=y===void 0?_.gw().resolve(_.U2):y;this.onePickCommand=X;this.JSC$13087_playlistNetworkManager=G;this.navigationManager=y;this.videoPickerBuilder=_.ojh("yt-addtoplaylist");_.eZ4(JvS(BjY(oA4(this.videoPickerBuilder.setTitle(X.modalTitle).setSize(1E3).addView(VHJ()).addView(nxz())).addView("youtube"),X.selectButtonLabel)),function(w){t.handleAction(w)})};
Hiq.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
Hiq.prototype.handleAction=function(X){var t=this;if(X&&this.onePickCommand.listId&&X.action==="picked"&&X.docs){var G=[];X.docs.forEach(function(y){G.push({addedVideoId:y.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13087_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,G).then(function(){_.A("playlist_add_video_hard_reload_killswitch")?t.navigationManager.reload():oqP(t.navigationManager)})}};var JYB=function(){if(this.constructor===JYB)throw new TypeError("Yf");};
_.H=JYB.prototype;_.H.dispose=function(){};
_.H.disconnect=function(){};
_.H.reconnect=function(){};
_.H.observe=function(X,t,G){return{element:X,option:G}};
_.H.unobserveByKey=function(){};var njf=function(X,t){t=t===void 0?0:t;JYB.call(this);this.viewroot=X;this.defaultPrescanHeight=t;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),X?{root:X,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.S(njf,JYB);_.H=njf.prototype;_.H.dispose=function(){this.disconnect();this.handlers.clear()};
_.H.disconnect=function(X){this.isConnected=!1;this.pauseObservingUntilReconnect=X===void 0?!1:X;this.observer.disconnect();X=_.J(this.prescanObservers.values());for(var t=X.next();!t.done;t=X.next())t.value.disconnect()};
_.H.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var X=_.J(this.handlers),t=X.next();!t.done;t=X.next()){var G=_.J(t.value);t=G.next().value;var y=G.next().value;G=!1;y=_.J(y.keys());for(var w=y.next();!w.done;w=y.next())if((w=w.value)&&w.state==="prescan"){G=!0;break}G&&BRz(this,t).observe(t);this.observer.observe(t)}}};
_.H.handleObserveEvent=function(X){X=_.J(X);for(var t=X.next();!t.done;t=X.next()){t=t.value;var G=this.handlers.get(t.target);if(G){var y=t.isIntersecting;G=_.J(G);for(var w=G.next();!w.done;w=G.next()){var z=_.J(w.value);w=z.next().value;z=z.next().value;w&&(w.state==="visible"&&y||w.state==="hidden"&&!y)&&(z(t.target,w.state),w.calledOnce&&this.unobserveByKey({element:t.target,option:w}))}}}};
_.H.handlePrescanEvent=function(X){X=_.J(X);for(var t=X.next();!t.done;t=X.next()){t=t.value;var G=this.handlers.get(t.target);if(G&&t.isIntersecting){G=_.J(G);for(var y=G.next();!y.done;y=G.next()){var w=_.J(y.value);y=w.next().value;w=w.next().value;y&&y.state==="prescan"&&(w(t.target,y.state),y.calledOnce&&this.unobserveByKey({element:t.target,option:y}))}}}};
_.H.observe=function(X,t,G){var y=(y=this.handlers.get(X))&&y.has(G)?{element:X,option:G}:void 0;if(y)return y;y={element:X,option:G};this.handlers.has(X)||this.handlers.set(X,new Map);var w=this.handlers.get(X);w&&!w.has(G)&&w.set(G,t);this.pauseObservingUntilReconnect||(G.state==="prescan"&&BRz(this,X).observe(X),this.observer.observe(X));return y};
_.H.unobserveByKey=function(X){var t=this.handlers.get(X.element);if(t&&t.has(X.option)){t.delete(X.option);if(X&&X.option.state==="prescan")for(var G=_.J(this.prescanObservers.values()),y=G.next();!y.done;y=G.next())y.value.unobserve(X.element);t.size===0&&(this.handlers.delete(X.element),this.observer.unobserve(X.element))}};
var BRz=function(X,t){var G=X.defaultPrescanHeight;t.hasAttribute("prescan-height")&&(t=Number(t.getAttribute("prescan-height")),isNaN(t)||(G=t));if(X.prescanObservers.has(G))return X.prescanObservers.get(G);t="-0.1px -0.1px "+G+"px -0.1px";t=new IntersectionObserver(X.handlePrescanEvent.bind(X),X.viewroot?{root:X.viewroot,rootMargin:t}:{rootMargin:t});X.prescanObservers.set(G,t);return t};var nqe=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],VFt=function(){var X,t=this;this.JSC$13104_actionRouter=X=X===void 0?_.Hq.getInstance():X;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return t.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return t.visibilityObservedElementHandlerKeys}}},biY,d6o,gqS;
VFt.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.A("kevlar_use_vimio_behavior")&&_.Md("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=VGv())};
VFt.prototype.dispose=function(){this.visibilityMonitor&&_.No(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
VFt.prototype.handleVisibilityRefreshed=function(){for(var X=_.J(this.targetMap.entries()),t=X.next();!t.done;t=X.next()){var G=_.J(t.value);t=G.next().value;G=G.next().value;_.kb4(this,t,G)}};
_.jRS=function(X,t,G){d6o(X,G);var y=_.eYz(X,t);y.element=G;X.targetedElements.set(G,t);_.kb4(X,t,y)};
d6o=function(X,t){var G=X.targetedElements.get(t);if(G){var y=X.targetMap.get(G);y&&(delete y.element,X.targetMap.set(G,y));X.targetedElements.delete(t);X.visibilityObserver&&X.visibilityObservedElementHandlerKeys&&(G=X.visibilityObservedElementHandlerKeys.get(t))&&(X.visibilityObserver.unobserveByKey(G),X.visibilityObservedElementHandlerKeys.delete(t))}};
_.kb4=function(X,t,G){var y=G.action,w=G.element;w&&y&&(nqe.includes(t)||_.Md("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||X.visibilityMonitor&&X.visibilityMonitor.isNodeVisible(w)?gqS(X,t,G):X.visibilityObserver&&(X.visibilityObservedElementHandlerKeys||(X.visibilityObservedElementHandlerKeys=new WeakMap),y=X.visibilityObserver.observe(w,function(){gqS(X,t,G);X.visibilityObservedElementHandlerKeys.delete(w)},{calledOnce:!0,
state:"visible"}),X.visibilityObservedElementHandlerKeys.set(w,y)))};
gqS=function(X,t,G){var y=G.action;(G=G.element)&&y&&(_.XL(X.JSC$13104_actionRouter,[y],G),X.targetMap.delete(t),X.targetedElements.delete(G),X.triggeredTargets.add(t))};
_.eYz=function(X,t){var G=X.targetMap.get(t);G||(G={},X.targetMap.set(t,G));return G};
_.m4=function(){biY||(biY=new VFt);return biY};var F0e=document.createElement("div");F0e.style.touchAction="pan-down";var b8V=F0e.style.touchAction==="pan-down";var TR4,AYJ;TR4=function(){this.hammerFn=H5J();this.JSC$13112_screenManager=_.Pj();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.ai(83615);_.Kc(this.JSC$13112_screenManager,this.ve);kZ0()};
_.RI=function(){AYJ||(AYJ=new TR4);return AYJ};
TR4.prototype.registerTouchEvents=function(X,t,G){var y=_.f1.apply(3,arguments),w=this.hammerFn(X,{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}]]});G&&w.set({touchAction:G});this.nodeManagerMapping.set(X,w);var z=
dEJ(t);y=_.J(y);for(var B=y.next();!B.done;B=y.next()){B=B.value;if(B.includes("swipe")||B.includes("pinch")||B.includes("pan"))B.includes("swipe")?w.get("swipe").set({enable:!0,direction:z,velocity:.2}):B.includes("pinch")?w.get("pinch").set({enable:!0}):B.includes("pan")&&(w.get("pan").set({enable:!0,direction:z}),w.get("swipe").set({enable:!0,direction:z,velocity:.2}),w.get("swipe").recognizeWith("pan"));YDS(this,X,w,B)}};
var YDS=function(X,t,G,y){G.on(y,function(w){if(y.includes("pinch"))X.lastPinchTime=Date.now();else if(y.includes("swipe")&&Date.now()-X.lastPinchTime<400)return;w.pointerType!=="mouse"&&(w=y==="doubletap"?{coordinates:w.center}:y.includes("pan")?w:y.includes("swipe")?{target:w.target}:{},t.dispatchEvent(new CustomEvent(y,{bubbles:!0,composed:!0,detail:w})))})};
TR4.prototype.unregisterTouchEvents=function(X){var t=_.f1.apply(1,arguments),G=this.nodeManagerMapping.get(X);if(G){t=_.J(t);for(var y=t.next();!y.done;y=t.next())G.off(y.value);this.nodeManagerMapping.delete(X);X.style.touchAction="unset"}};var sRY=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var ek_=null;var D6J=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},IzV=function(){D6J.instance||(D6J.instance=new D6J);
return D6J.instance},WDV=function(X){var t=X.networkEvents;
X.networkEvents=[];return _.A("enable_network_monitoring")?t:[]};var SDt;SDt={};_.hYS=jD("yt-serviceworker-metadata",{objectStores:(SDt.auth={addedAtVersion:1},SDt["resource-manifest-assets"]={addedAtVersion:2},SDt),shared:!0,upgrade:function(X,t){t(1)&&tv(X,"resource-manifest-assets");t(2)&&tv(X,"auth")},
version:2});var YIf=self.location.origin+"/";sJv([/\.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\//]);sJv([/purge_shell=1/]);var ZiJ=void 0;ZiJ=ZiJ===void 0?[]:ZiJ;for(var qDt=[],CNJ=_.J(aUe),K0o=CNJ.next();!K0o.done;K0o=CNJ.next())qDt.push({key:K0o.value});for(var OiJ=_.J(ZiJ),uUz=OiJ.next();!uUz.done;uUz=OiJ.next())qDt.push(uUz.value);var QRe,XD=_.tA==null?void 0:(QRe=_.tA.performance)==null?void 0:QRe.memory,hkJ=!1,cV6={},Cas={},$3={},tb=navigator;var ij=function(X){this.JSC$13156_expiringStorage=new Ec(X)};
ij.prototype.set=function(X,t,G){G=G!==void 0?Date.now()+G:void 0;this.JSC$13156_expiringStorage.set(X,t,G)};
ij.prototype.get=function(X){return this.JSC$13156_expiringStorage.get(X)};
ij.prototype.remove=function(X){this.JSC$13156_expiringStorage.remove(X)};var RkY=_.Vc(["https://www.youtube.com/",""]),i8s=_.Vc(["https://studio.youtube.com/",""]),xEh="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",vjh=null,t9v;var Ijq=_.Vc(["https://www.youtube.com/iframe_api"]),Lu=function(){this.playerResolver_=_.d5();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.ra;this.playbackDurationSeconds_=0},W0P=function(X){var t=function(){return window.YT&&typeof window.YT.ready==="function"};
if(t())return _.qY(window.YT);var G=_.d5(),y=_.OF("SCRIPT");y.onload=y.onreadystatechange=function(){y.readyState&&y.readyState!="loaded"&&y.readyState!="complete"||(y.onload=_.ra,y.onreadystatechange=_.ra,y.onerror=_.ra,t()?G.resolve(window.YT):G.reject(new _.NJ("Failed to load the iframe player library","script.onload",y.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
y.onerror=function(w){y.onload=_.ra;y.onreadystatechange=_.ra;y.onerror=_.ra;G.reject(new _.NJ("Failed to load the iframe player library","script.onerror",w&&w.target&&w.target.src))};
_.Vb(y,_.sw(Ijq));X.insertBefore(y,X.firstChild);return G.promise},cYz=function(X,t,G){var y,w;
_.n(function(z){switch(z.nextAddress){case 1:return X.playbackEndedCallback_=G,_.CL(z,2),z.yield(W0P(t.parentElement||null),4);case 4:y=z.yieldResult;_.zx(z,3);break;case 2:return w=_.IY(z),w instanceof _.NJ&&w.args&&w.args[0]=="script.onerror"?_.Mj(w):_.xA(w),z.return();case 3:y.ready(function(){return new y.Player(t,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:X.onPlayerReady_.bind(X),onStateChange:X.onPlayerStateChange_.bind(X),
onCueRangeExit:X.onCueRangeExit_.bind(X)}})}),_.W$(z)}})};
_.H=Lu.prototype;_.H.getPlayerPromise=function(){return this.playerPromise_};
_.H.onPlayerReady_=function(X){this.playerResolver_.resolve(X.target)};
_.H.onPlayerStateChange_=function(X){if(X.data==YT.PlayerState.PLAYING){X=X.target;var t=X.getCurrentTime();X.addCueRange("playback",t,t+this.playbackDurationSeconds_)}};
_.H.onCueRangeExit_=function(X){X.data=="playback"&&(X.target.stopVideo(),this.playbackEndedCallback_())};
_.H.stopVideo=function(){this.playerPromise_.then(function(X){X.stopVideo()})};
var p_o=function(X){X.playerVars_&&X.playerPromise_.then(function(t){typeof t.cueVideoByPlayerVars!="function"?_.Mj(new _.NJ("vmh: player API not ready","cueVideoByPlayerVars",typeof t.cueVideoByPlayerVars)):t.cueVideoByPlayerVars(X.playerVars_)})};
Lu.prototype.playVideo=function(){var X=this;this.playerVars_&&this.playerPromise_.then(function(t){typeof t.loadVideoByPlayerVars!="function"?(t=new _.NJ("vmh: player API not ready","loadVideoByPlayerVars",typeof t.loadVideoByPlayerVars),_.xA(t)):t.loadVideoByPlayerVars(X.playerVars_)})};
var rYo=function(X,t,G,y,w){t&&(G===void 0&&(G=0),y===void 0&&(y=0),X.playbackDurationSeconds_=y/1E3,X.playerVars_={adformat:"17_8",videoId:t,suggestedQuality:"hd720",startSeconds:G/1E3,player_params:w})};
Lu.prototype.mute=function(){this.playerPromise_.then(function(X){X.mute()})};
Lu.prototype.unMute=function(){this.playerPromise_.then(function(X){X.unMute()})};var NRP=function(X,t){var G=tE();X||(X="unknown");t||(t="unknown");X="MAIN_APP_WEB_PAGE_TYPE_"+X.toUpperCase();X in ttq||(X="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");t="MAIN_APP_WEB_REQUEST_TYPE_"+t.toUpperCase();t in GvY||(t="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.uW(G,{mainAppWeb:{pageType:X,requestType:t,isShellLoad:_.X3("IS_SHELL_LOAD",!1)}})},PNY={start:function(){_.uW(A8s(),{mainAppWeb:_.Jb()})},
success:function(){_.Q6(A8s(),"SUCCESS")},
failure:function(){_.Q6(A8s(),"FAILURE")},
cancelled:function(){_.Q6(A8s(),"CANCELLED")}};var Eq4,U6q,BKV;Eq4=_.Vc(["/sw.js"]);U6q=_.Vc(["/sw.js?0"]);_.m6q=_.sw(Eq4);BKV=_.sw(U6q);var RYq=function(){var X=Error.apply(this,arguments);this.message=X.message;"stack"in X&&(this.stack=X.stack)};
_.S(RYq,Error);_.VY.prototype.load=function(X){this.megabloxUrl_=_.Md("YPC_MB_URL");_.Gi(this.megabloxUrl_,(0,_.rT)(function(){X&&X()},this))};
_.iJV=function(X,t,G,y,w,z,B,V,b,e,g){_.V9A(b);X.load((0,_.rT)(function(){try{var F=z?z:_.Md("HL"),T=_.Md("SESSION_INDEX");_.$Df("client",function(){$te("59",{helpCenterPath:"/youtube",locale:F,window:window}).JSC$9906_loadChatSupport({authuser:String(T)})})}catch(D){throw BW(10,g,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),w&&w(D),_.xA(D),D;
}iiJ(this,t,G,y,w,z,B,V,b,e,g)},X))};
_.VY.prototype.openFixFlowDialog=function(X,t,G,y){this.load((0,_.rT)(function(){try{L0q(this,_.GA("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(X).withIntegratorCallback(t).load(G,y)}catch(w){throw _.xA(w),w;}},this))};
var L0q=function(X,t,G,y){var w=t.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.A("enable_window_constrained_buy_flow_dialog")&&(w=w.usingPopupStyle(_.GA("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));y&&(w=w.usingCloseCallback(y));t.bootstrap.fromPaymentsUrl(X.megabloxUrl_);X=t.bootstrap.asMashupMode(w);G=G?G:_.Md("HL");X.usingGaiaIndex(_.Md("SESSION_INDEX")).usingLocale(G).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.A("enable_google_payments_buyflow_material2_style_web")?
X.usingStyle(":m2;pc=#444;ac=#065fd4"):X.usingStyle(":md;pc=#444;ac=#065fd4");return X},iiJ=function(X,t,G,y,w,z,B,V,b,e,g){try{var F=_.GA("payments.business.integration");
if(!F)throw new RYq("payments.business.integration is undefined");var T=F.standaloneContextAuthId.forUserId(),D=L0q(X,F,z,function(){kP6(!1);V&&V()});
B&&D.usingServerAnalyticsEventHandler(B);var h=D.inStandaloneContext(T).buyFlow(function(u){if(u&&(!u.integratorData||u.integratorData===""||u.error))if(u.error!=null)if(String(u.error)==="-1")_.bZh(b);else{var W=String(u.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";BW(10,g,W,u.debugCode);_.nd(W,b,u.debugCode);W=new _.NJ("PAYMENT_ERROR_MESSAGE::"+u.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+u.internalErrorDetails);
_.xA(W)}else BW(10,g,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.nd("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",b,"EMPTY_INTEGRATOR_DATA"),_.xA(Error("cg"));G&&(kP6(!1),G(u))}).withEncryptedParameters(t);
e&&h.withClientParameters(Gss(_.ia6(e)));h.load(function(){BW(24,g);_.fq("ttc",void 0,"commerce_transaction");mDv("commerce_transaction");y&&(y(),kP6(!0))},function(u){if(u==null?0:u.debugCode)var W=u==null?void 0:u.debugCode;
else if(!u||(u==null?0:u.debugCode))W="EMPTY_LOAD_FAILURE_ERROR",_.xA(Error(W));else{W="EMPTY_LOAD_FAILURE_DEBUG_CODE";var c=new _.NJ("LOAD_FAILURE:"+u.message," DEBUG_CODE:"+W);_.xA(c)}BW(10,g,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",W);_.nd("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",b,W);_.xA(u);w&&w(u)})}catch(u){throw u instanceof RYq&&(BW(10,g,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),w&&w(u)),_.xA(u),u;
}};var vq4;vq4=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.UpY=function(X,t){t=t===void 0?!1:t;X=vq4.test(X)?_.rN(X):null;!t&&window.payments||!X?(X=_.d5(),t=X.promise,X.resolve()):t=_.PF4(X,{attributes:{"data-payments-main":"",id:"payment-lib"}});return t};var aje;aje=_.Vc(["//www.googletagmanager.com/gtm.js?id=",""]);_.vN=function(X,t){_.Se(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:t}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Md("GL")}),t=_.OF("SCRIPT"),t.async=!0,_.Vb(t,_.sw(aje,X)),t.id="gtm",X=document.getElementsByTagName("script"),X.length==0?document.head.appendChild(t):(X=X[0],X.parentNode.insertBefore(t,X)))};
_.aI=function(X){if(X=JSON.parse(X))window.dataLayer=window.dataLayer||[],window.dataLayer.push(X)};var lj4,x6q;lj4=_.Vc(["https://clients2.google.com/gr/gr_sync.js"]);_.PUA=function(){};
_.PUA.prototype.init=function(){if(x6q()){var X=_.d5();X.resolve();return X.promise}return _.PF4(_.sw(lj4)).then(function(){if(!x6q())throw Error("dg");},function(){throw Error("eg");
})};
_.EdA=function(){if(!x6q())return"";var X=window.google.gr;X.init({async:{schedule:"sync"},merchantId:"youtube"});X.start();X=X.finish();return X==null?"":X};
x6q=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.O=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.S(_.O,PolymerFakeBaseClassWithoutHtml);_.PW=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.S(_.PW,PolymerFakeBaseClassWithoutHtml);var dhY=window.ShadyDOM;var ln_,vKV,fn0,M9V,$LV,t1s,lj,Dk;ln_=_.A("enable_shadydom_free_scoped_query_methods");vKV=_.A("enable_shadydom_free_scoped_node_methods");fn0=_.A("enable_shadydom_free_scoped_readonly_properties_batch_one");M9V=_.A("enable_shadydom_free_parent_node");$LV=_.A("enable_shadydom_free_children");t1s=_.A("enable_shadydom_free_last_child");lj=window.ShadyDOM;_.Cd=lj&&lj.noPatch&&lj.wrap?lj.wrap:lj?function(X){return lj.patch(X)}:function(X){return X};
Dk=function(X){if(X instanceof ShadowRoot)this.host=(0,_.Cd)(X.host),this.root=X;else if(X.$$){this.host=(0,_.Cd)(X);var t;this.root=(t=X.root)!=null?t:this.host}else if(X.polymerController){this.host=(0,_.Cd)(X);var G;this.root=(G=this.host.shadowRoot)!=null?G:this.host}else this.root=this.host=(0,_.Cd)(X)};
anw();xhV();GH_();yeA();X5v();var fj4={querySelector:function(X,t){t=jl_(t,gt(X));X=_.FD(X);return Tq(X).prototype.querySelector.call(X,t)},
querySelectorAll:function(X,t){t=jl_(t,gt(X));X=_.FD(X);return Tq(X).prototype.querySelectorAll.call(X,t)}},MFJ={appendChild:function(X,t){var G=gt(X),y=_.dt(t);
return _.iZl(_.FD(X),G?_.Y3(t,G,y):t)},
cloneNode:function(X,t){var G=_.dt(X);X=_.FD(X);t=Tq(X).prototype.cloneNode.call(X,t);return G?s0(t,G):t},
contains:function(X,t){var G=gt(X),y=_.dt(t);return G!==y?!1:LlJ(X,t)},
insertBefore:function(X,t,G){var y=gt(X),w=_.dt(t);X=_.FD(X);t=y?_.Y3(t,y,w):t;return Tq(X).prototype.insertBefore.call(X,t,G)},
removeChild:function(X,t){var G=gt(X);X=_.FD(X);t=G?s0(t,G):t;return Tq(X).prototype.removeChild.call(X,t)},
replaceChild:function(X,t,G){var y=gt(X),w=_.dt(t);t=y?_.Y3(t,y,w):w?s0(t,w):t;G=y?s0(G,y):G;X=_.FD(X);return Tq(X).prototype.replaceChild.call(X,t,G)},
getRootNode:function(X,t){t=t===void 0?{composed:!0}:t;var G;if(((G=t)!=null?G:{}).composed)X=qKh(X);else{t=X;for(X=Fll(X);X;)t=X,X=ADV(X);X=t}return X}},ziV=fn0?{firstChild:NKl,
nextSibling:cDh,previousSibling:rDY,firstElementChild:PDw,lastElementChild:Uh0,nextElementSibling:Wl_,previousElementSibling:p7J,childNodes:mhh}:{};M9V&&(ziV.parentNode=InV);$LV&&(ziV.children=RD0);t1s&&(ziV.lastChild=EKV);ln_&&w5E(fj4);vKV&&w5E(MFJ);H$v();var oMv=function(X){this.node=X instanceof ShadowRoot?X.host:X};
Jef();Bg6();var b$V=new WeakMap;var dLA=Symbol("wd");var TgA=new Set(["tap","track","down","up"]),Ae_=_.A("pbcm_fi_query_decorators");var x6=function(){return _.PW.apply(this,arguments)||this};
_.S(x6,_.PW);_.H=x6.prototype;_.H.getState=function(){return this.store.getState()};
_.H.dispatch=function(X){this.store.dispatch(X)};
_.H.beforeRegister=function(){if(this&&typeof this==="object"){var X;var t=!!this.useSignals||!((X=this.polymerController)==null||!X.useSignals)}else t=!1;if(!t&&this.properties)for(t=_.J(Object.keys(this.properties)),X=t.next();!X.done;X=t.next()){var G=X.value;X=this.properties[G];if(X.selector){if(X.computed)throw Error("kg");G=["reduxPropertiesRecomputeTrigger",'"'+G+'"'].concat(_.RY(X.selectorArgs||[])).join(",");X.computed="recomputeReduxSelector("+G+")"}}};
_.H.attached=function(){var X=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){X.reduxPropertiesRecomputeTrigger++}));
_.A("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.H.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.H.recomputeReduxSelector=function(X,t){var G=_.f1.apply(2,arguments),y=this.properties[t].selector;if(!y)throw Error("ig`"+t);return y.apply(null,[this.store.getState()].concat(_.RY(G)))};
_.H.select=function(X){var t=_.f1.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return X.apply(null,[this.store.getState()].concat(_.RY(t)))};
_.ke.Object.defineProperties(x6.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
x6.prototype.recomputeReduxSelector=x6.prototype.recomputeReduxSelector;_.E([_.K(),_.U("design:type",Number)],x6.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.E([_.E0()],x6);var fu=[],SYh={},Xp=function(){return eb.apply(this,arguments)||this};
_.S(Xp,eb);Xp.prototype._addPropertyEffect=function(X,t,G){if(t==="__observeEffects"&&G){var y,w=(y=G.info.method)!=null?y:G.info.methodName;if(w){var z=this[w];this[w]=function(){fu.push(w);try{z==null||z.apply(this,arguments)}finally{fu.pop()}}}}_.E_._addPropertyEffect.apply(this,[X,
t,G])};
Xp.prototype._setPendingProperty=function(X,t,G){if(fu.length){var y=fu[fu.length-1],w;(w=SYh[this.is])!=null&&w.has(y)||(hi6(this.is,y),_.a7("polymerPropertyChangedInObserver",{componentName:this.is,observerName:y}))}return _.E_._setPendingProperty.apply(this,[X,t,G])};
_.E([G1E()],Xp);var Z$A=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),CZv,Rk={};_.A("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Rk);var vW=function(){return _.PW.apply(this,arguments)||this};
_.S(vW,_.PW);vW.prototype._setUnmanagedPropertyToNode=function(X,t,G){X.loggingStatus&&(X.loggingStatus.isDeclarativeExternal=!0);if(G!==X[t]||typeof G==="object")X[t]=G;X.is&&X.polymerController&&X.polymerController!==X&&ie(X.is,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");X.loggingStatus&&(X.loggingStatus.isDeclarativeExternal=!1)};
_.E([_.E0()],vW);qYE()&&(tL.prototype._setUnmanagedPropertyToNode=(new vW)._setUnmanagedPropertyToNode);_.mLJ={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(X){},set polymerController(X){}}]};var MS=function(){var X=eb.apply(this,arguments)||this;X.json=function(){};
return X};
_.S(MS,eb);MS.prototype.equals=function(X,t){return X===t};
MS.prototype.isEmpty=function(X){var t;(t=!X)||(t=_.xJ(X)&&X.length===0);return t};
_.E([G1E()],MS);var XQJ=function(X){X=Xe0(X);tZ.call(this,X)};
_.S(XQJ,tZ);XQJ.prototype.addProvider=function(X){X=X.key?X:Xe0([X])[0];var t=this.keyIdToIndex.get(X.key.id);if(t){if(IT_(X,this.providers[t]))throw Error("lg`"+X.key.displayName);}else tZ.prototype.addProvider.call(this,X)};
var $qY=new XQJ([]);var tSh=!1;var PZv={};tSh||(Ngh(),tSh=!0);
PZv.InjectBehavior={initializeInjection:function(){var X=this.provide;try{if((X=X!=null?X:[])&&X.length>0)for(var t=Xe0(X),G=_.J(t),y=G.next();!y.done;y=G.next())$qY.addProvider(y.value);var w=new Set;WiY(this.behaviors||[],w);t={};for(var z=_.J(w),B=z.next();!B.done;B=z.next()){var V=B.value;V.inject&&Object.assign(t,V.inject)}this.inject&&Object.assign(t,this.inject);for(var b=_.J(Object.keys(t)),e=b.next();!e.done;e=b.next()){var g=e.value,F=t[g];try{this[g]=$qY.resolve(F)}catch(T){throw T;}}}catch(T){throw Error(T.message);
}}};var ULJ;var Ris=/\bclass\b/.test(function(){}.toString()),vME=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var GL4=function(X){this.wasDefined=!0;Array.isArray(X)||X instanceof Array?(this.JSC$13285_getImpl=X[0],this.JSC$13285_setImpl=X[1]):this.JSC$13285_getImpl=X};
_.H=GL4.prototype;_.H.getWithPath=function(X){return xL_(this.JSC$13285_getImpl(),X)};
_.H.setWithPath=function(X,t){var G=this;if(X.length)throw Error("mg");if(!this.JSC$13285_setImpl)throw Error("ng");Ct(function(){G.JSC$13285_setImpl(t)})};
_.H.notifyPath=function(){throw Error("og");};
_.H.notifySplices=function(){throw Error("pg");};
_.H.getChangeRecordSignal=function(X,t){var G=this;if(X.length)throw Error("qg");return function(){var y=G.getWithPath(X);return{path:t!=null?t:"",base:y,value:y}}};
_.H.getSplicesSignal=function(){throw Error("rg");};
_.H.getPathMutationSignal=function(){throw Error("sg");};
_.H.pop=function(){throw Error("tg");};
_.H.push=function(){throw Error("ug");};
_.H.splice=function(){throw Error("vg");};
_.H.unshift=function(){throw Error("wg");};var MW=function(X){var t=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(X)||X instanceof Array?(this.JSC$13290_getImpl=X[0],this.JSC$13290_setImpl=X[1]):this.JSC$13290_getImpl=X;this.wasDefined=!1;YH(function(){t.wasDefined=t.JSC$13290_getImpl()!==void 0})};
MW.prototype.getWithPath=function(X){return xL_(this.JSC$13290_getImpl(),X)};
MW.prototype.setWithPath=function(X,t){var G=this;if(X[X.length-1]!=="*"&&X[X.length-1]!=="splices"){if(X.length===0){if(!this.JSC$13290_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=t!==void 0);Ct(function(){G.JSC$13290_setImpl(t)})}else{for(var y=YH(function(){return G.getWithPath([])}),w=0;w<X.length-1;w++){if(!y)return;
y=y[X[w]]}w=X[X.length-1];y&&(y[w]=t);this.wasDefined||(this.wasDefined=X.length>1||t!==void 0)}y3o(this,X,{pathComponents:X,value:t})}};
MW.prototype.notifyPath=function(X,t){X.length===0?t&&this.setWithPath(X,t.value):y3o(this,X,{pathComponents:X,value:t==null?void 0:t.value,fallbackWhenUndefined:t==null?void 0:t.value})};
var y3o=function(X,t,G,y){if(X.setMutationSignal){var w=++X.mutationIndex,z=[X.observedPath],B=X.observedPath,V;t.length===0&&(V=B);for(var b=0;b<t.length;b++){var e=B.subPaths[t[b]];if(!e)break;z.push(e);B=e;b===t.length-1&&(V=e)}for(t=!1;z.length;)B=z.shift(),B.data={index:w,mutation:G,spliceMutationIndex:y},t||(t=B===V),t&&z.push.apply(z,_.RY(Object.values(B.subPaths)));Ct(function(){X.setMutationSignal(w)})}};
MW.prototype.notifySplices=function(X,t){var G=this,y=YH(function(){return G.getWithPath(X)}),w=[].concat(_.RY(X),["splices"]);
y3o(this,w,{pathComponents:w,value:{indexSplices:t}});if(y==null?0:y.length)t=this.mutationIndex,w=[].concat(_.RY(X),["length"]),y3o(this,w,{pathComponents:w,value:y.length},t)};
var wQo=function(X,t,G,y,w,z){X.notifySplices(G,[{index:y,addedCount:w,removed:z,object:t,type:"splice"}])},zbo=function(X,t){X=X.observedPath;
for(var G=0;G<t.length;G++){var y=t[G],w=X.subPaths[y];w||(w={pathComponents:t.slice(0,G+1),subPaths:{}},X.subPaths[y]=w);X=w}},o4t=function(X,t,G){zbo(X,t);
if(!X.getMutationSignal){var y=_.J(_.sm(X.mutationIndex,void 0,"HavCgf"));X.getMutationSignal=y.next().value;X.setMutationSignal=y.next().value}var w=X.getMutationSignal;return _.qt(function(){w();return G(HW4(X,t))},void 0,"BYaPo")};
MW.prototype.getChangeRecordSignal=function(X,t){var G=this,y=this.mutationIndex,w;return o4t(this,X,function(z){if(z&&z.index>y){var B=z.mutation;y=z.index;w=void 0}z=YH(function(){return G.getWithPath(X)});
if(B){var V=B.pathComponents[B.pathComponents.length-1],b=[].concat(_.RY(B.pathComponents));if(V==="splices"||V==="length")return{base:z,path:(t?[t].concat(_.RY(b)):b).join("."),value:B.value};var e=X.length>b.length?X:b,g;return{base:z!=null?z:B.fallbackWhenUndefined,path:(t?[t].concat(_.RY(e)):e).join("."),value:(g=YH(function(){return G.getWithPath(e)}))!=null?g:B.fallbackWhenUndefined}}w||(w={base:z,
path:(t?[t].concat(_.RY(X)):X).join("."),value:z});return w})};
MW.prototype.getSplicesSignal=function(X){var t=this.mutationIndex,G;return o4t(this,X,function(y){if(y&&y.index>t&&y.spliceMutationIndex!==t){var w=y.mutation;t=y.index;G=void 0}return w&&w.pathComponents[w.pathComponents.length-1]==="splices"?G=y=w.value:G})};
MW.prototype.getPathMutationSignal=function(X){var t=this;zbo(this,X);if(!this.getMutationSignal){var G=_.J(_.sm(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=G.next().value;this.setMutationSignal=G.next().value}var y=this.getMutationSignal,w=this.mutationIndex,z;return _.qt(function(){y();var B=HW4(t,X);if(B&&B.index>w&&B.mutation&&fT_(B.mutation.pathComponents,X)){var V=B.mutation;w=B.index}if(!z||w!==z.index){var b,e;B=(e=YH(function(){return t.getWithPath(X)}))!=null?e:(b=V)==null?
void 0:b.fallbackWhenUndefined;
z={index:w,value:B}}return z},void 0,"Aumsyf")};
var HW4=function(X,t){X=X.observedPath;t=_.J(t);for(var G=t.next();!G.done;G=t.next())X=X.subPaths[G.value];return X.data};
MW.prototype.pop=function(X){var t=this,G=YH(function(){return t.getWithPath(X)});
if(!(G instanceof Array))throw Error("yg");var y=G.length>0,w=G.pop();y&&wQo(this,G,X,G.length,0,[w]);return w};
MW.prototype.push=function(X){var t=_.f1.apply(1,arguments),G=this,y=YH(function(){return G.getWithPath(X)});
if(!(y instanceof Array))throw Error("zg");var w=y.length,z=y.push.apply(y,_.RY(t));t.length&&wQo(this,y,X,w,t.length,[]);return z};
MW.prototype.splice=function(X,t,G){var y=_.f1.apply(3,arguments),w=this,z=YH(function(){return w.getWithPath(X)});
if(!(z instanceof Array))throw Error("Ag");t<0?t=z.length-Math.floor(-t):t&&(t=Math.floor(t));var B=z.splice.apply(z,[t,G].concat(_.RY(y)));(y.length||B.length)&&wQo(this,z,X,t,y.length,B);return B};
MW.prototype.unshift=function(X){var t=_.f1.apply(1,arguments),G=this,y=YH(function(){return G.getWithPath(X)});
if(!(y instanceof Array))throw Error("Bg");var w=y.unshift.apply(y,_.RY(t));t.length&&wQo(this,y,X,0,t.length,[]);return w};var J3q=!0,BIR=!1,W0f=!1,n44=!1,HkV=!1,VS4=0;n44=!1;VS4=0;J3q=!0;HkV=BIR=W0f=!1;var XP=function(X,t,G){this.model=X;this.unknownSignalResolver=t;this.options=G;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];t=_.J(JXE());X=t.next().value;t=t.next().value;this.owner=X;this.disposeImpl=t};
XP.prototype.dispose=function(){if(!this.isDisposed){for(var X=_.J(this.childSignalProxies),t=X.next();!t.done;t=X.next())t.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var bWS=function(X,t){X=_.nt(X.owner);try{t()}finally{_.nt(X)}};
XP.prototype.effect=function(X){bWS(this,function(){_.im(X)})};
var kLq=function(X,t){X.options!=null||(X.options={});var G;(G=X.options).immutableProps!=null||(G.immutableProps=new Set);X.options.immutableProps.add(t)},Imw=function(X,t){t=""+t;
dq4(X,t);var G,y;if((G=X.options)==null?0:(y=G.immutableProps)==null?0:y.has(t))return!0;var w;if((w=X.model.__signalCache)==null?0:w.has(t))G=X.model.__signalCache.get(t),Array.isArray(G)&&kLq(X,t);var z,B,V;return(V=(z=X.options)==null?void 0:(B=z.immutableProps)==null?void 0:B.has(t))!=null?V:!1},ebo=function(X,t){var G;
X.unknownSignalResolver&&(G=X.unknownSignalResolver(t));var y,w;((y=X.options)==null?0:(w=y.immutableProps)==null?0:w.has(t))?G!=null||(G=new GL4(_.sm(X.model[t],void 0,"bgwlkd"))):G!=null||(G=new MW(_.sm(X.model[t],void 0,"V1hou")));var z=X.model.hostElement;Object.defineProperty(X.model,t,{get:function(){O$w(z,t);return G.getWithPath([])},
set:function(B){Ld(z,t);X.setWithPath([t],B)},
configurable:!0});return G},dq4=function(X,t){var G,y,w;
((G=X.model.__signalCache)==null||!G.has(t))&&((y=X.options)==null?0:(w=y.externalSignalProps)==null?0:w.has(t))&&X.model[t]},y2=function(X,t){t=""+t;
var G=X.signalCache[t];if(G!==void 0)return G;G=!1;dq4(X,t);var y;if((y=X.model.__signalCache)==null?0:y.has(t))if(G=X.model.__signalCache.get(t),Array.isArray(G))G=!0,kLq(X,t);else return X.signalCache[t]=X.model.__signalCache.get(t).signal,X.signalCache[t];var w,z;y=(z=(w=X.options)==null?void 0:w.reactivityMode)!=null?z:0;var B,V;if(!((B=X.options)==null?0:(V=B.reactiveProps)==null?0:V.has(t))&&!G&&y===1)throw Error("Cg`"+t);w=G?jUY(X,t):ebo(X,t);return X.signalCache[t]=w},jUY=function(X,t){var G=
Object.getOwnPropertyDescriptor(X.model.constructor.prototype,t),y=function(){return X.model[t]};
return new GL4(G&&G.get&&!G.set?y:[y,function(w){X.model[t]=w}])};
XP.prototype.getWithPath=function(X){var t=_.J(X);X=t.next().value;t=Hm(t);O$w(this.model.hostElement,""+X);return y2(this,X).getWithPath(t)};
XP.prototype.setWithPath=function(X,t){if(X.length){Ld(this.model.hostElement,X.join("."));var G=_.J(X);X=G.next().value;G=Hm(G);y2(this,X).setWithPath(G,t)}};
XP.prototype.getPathMutationSignal=function(X){var t=_.J(X);X=t.next().value;t=Hm(t);return y2(this,X).getPathMutationSignal(t)};
XP.prototype.notifyPath=function(X,t){var G=_.J(X);X=G.next().value;G=Hm(G);y2(this,X).notifyPath(G,t)};
var g4R=function(X,t){if(t.type==="literal")return function(){return{rootWasDefined:!0,value:t.value}};
var G=tm(t.path),y=_.J(G),w=y.next().value;y=Hm(y);var z,B;if(t.type==="path"&&(G.length===1||((z=X.options)==null?0:(B=z.immutableProps)==null?0:B.has(w))))return function(){var F=X.getWithPath(G.slice(0,1)),T=xL_(F,G.slice(1));F=F!==void 0;oU0()&&(F=y2(X,G[0]).wasDefined);return{rootWasDefined:F,value:T}};
var V=y2(X,w);if(t.type==="path"){var b=V.getPathMutationSignal(y);return function(){var F=oU0()?V.wasDefined:Lt(X.owner,function(){return V.getWithPath([])})!==void 0;
var T,D=(T=b())==null?void 0:T.value;return{rootWasDefined:F,value:D}}}if(t.type==="splices"){var e=V.getSplicesSignal(y);
return function(){var F=e();return{rootWasDefined:oU0()?V.wasDefined:F!==void 0,value:F}}}var g=V.getChangeRecordSignal(y,""+w);
return function(){var F=g();return{rootWasDefined:oU0()?V.wasDefined:F!==void 0,value:F}}},yXG=function(X,t,G){var y=G.map(function(V){return g4R(X,V)}),w=G.length===0,z=[],B=G.length!==1||G[0].type!=="path"?!1:!0;
X.effect(function(){for(var V=y.length,b=[],e=!!z.length,g=0;g<V;g++){var F=y[g](),T=F.rootWasDefined;F=F.value;w||(w=T);b[g]=F;B&&(b[g+V]=e?z[g]:b[g],z[g]=F)}w&&Lt(X.owner,function(){return void t.apply(null,_.RY(b))})})},M1V=function(X,t,G,y,w){var z=y2(X,t);
w!==void 0&&z.setWithPath([],w);yXG(X,function(){var B=_.f1.apply(0,arguments);Ld(X.model.hostElement,t,!0);z.setWithPath([],G.apply(null,_.RY(B)))},y)};
XP.prototype.arrayPush=function(X){var t=_.f1.apply(1,arguments),G=_.J(X),y=G.next().value;G=Hm(G);y=y2(this,y);return y.push.apply(y,[G].concat(_.RY(t)))};
XP.prototype.arraySplice=function(X,t,G){var y=_.f1.apply(3,arguments),w=_.J(X),z=w.next().value;w=Hm(w);z=y2(this,z);return z.splice.apply(z,[w,t,G].concat(_.RY(y)))};
XP.prototype.arrayUnshift=function(X){var t=_.f1.apply(1,arguments),G=_.J(X),y=G.next().value;G=Hm(G);y=y2(this,y);return y.unshift.apply(y,[G].concat(_.RY(t)))};
XP.prototype.notifySplices=function(X,t){var G=_.J(X);X=G.next().value;G=Hm(G);y2(this,X).notifySplices(G,t)};var dKV=/([^\s]+?)\(([\s\S]*)\)/,VNY=/\.([^.]+)$/,jTE=/\\,/g,BfJ=/&comma;/g,nUh=/\\(.)/g,ezh=[],bkA={"*":"wildcard",splices:"splices"};var ZkV=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"),sTV=/[A-Z]/,FO4=["class","hidden","id","on-dom-change"],CO0=new Set([].concat(_.RY(FO4),
["if","notify-dom-change","restamp"])),KK_=new Set([].concat(_.RY(FO4),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Oks=new Set(["restamp"]);var KOY=new Set(["className","id"]);var cXV=Symbol(),mKG=window;var fml=window;var w_G=0,$6v=0,wX=[],yYf=0,X_E=!1,GbA=document.createTextNode("");(new window.MutationObserver(tFl)).observe(GbA,{characterData:!0});var Hj=new Map,zO=0,TI4=function(X){this.mappedHandleId=X},Hih=function(X,t,G,y){this.mappedHandleId=X;
var w=this;this.mappedHandleId=X;this.callback=t;this.waitTime=G;this.schedulerPriority=y;this.handleId=_.vz.addJob(function(){w.callback();Hj.delete(w.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.S(Hih,TI4);Hih.prototype.cancel=function(){_.vz.cancelJob(this.handleId);Hj.delete(this.mappedHandleId)};
var oqf=function(X,t){this.mappedHandleId=X;var G=this;this.mappedHandleId=X;this.callback=t;this.handleId=zYA(function(){G.callback();Hj.delete(G.mappedHandleId)})};
_.S(oqf,TI4);oqf.prototype.cancel=function(){var X=this.handleId-$6v;X<0||wX.length<=X||(wX[X]=null);Hj.delete(this.mappedHandleId)};var VFE=function(){};
VFE.prototype.cancel=function(){this.jobHandle!==void 0&&(JYV(this.jobHandle),this.jobHandle=void 0)};
VFE.prototype.run=function(X,t,G){var y=this;this.cancel();this.callback=X;this.jobHandle=_.oL(function(){X();y.callback=void 0},t,G)};
VFE.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var BRw=new WeakMap;var A3R=dx(function(X){for(var t=X,G=0;G<3;G++)t=Object.getPrototypeOf(t);delete t.prototype.connectedCallback;var y=function(){return X.apply(this,arguments)||this};
_.S(y,X);y.prototype._attachDom=function(w){if(!w)return null;var z=(0,_.Cd)(this.hostElement);z.attachShadow({mode:"open",shadyUpgradeFragment:w});z.shadowRoot.appendChild(w);return z.shadowRoot};
y.prototype._takeAttributes=function(){for(var w=this.hostElement.attributes,z=0;z<w.length;z++){var B=w[z],V=void 0,b=void 0;(b=(V=this).__attributeReaction)==null||b.call(V,B.name,null,B.value)}};
y.prototype._readyClients=function(){X.prototype._readyClients.call(this);this.root=this};
y.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);X.prototype.connectedCallback.call(this)};
_.ke.Object.defineProperties(y,{template:{configurable:!0,enumerable:!0,get:function(){return y.prototype._template}}});
return y}),YZP=dx(function(X){var t=function(){return X.apply(this,arguments)||this};
_.S(t,X);t.prototype.created=function(){if(this.__notifyEffects)for(var G=_.J(Object.values(this.__notifyEffects)),y=G.next();!y.done;y=G.next()){y=_.J(y.value);for(var w=y.next();!w.done;w=y.next())w.value.fn=eYw}if(this.__reflectEffects)for(G=_.J(Object.values(this.__reflectEffects)),y=G.next();!y.done;y=G.next())for(y=_.J(y.value),w=y.next();!w.done;w=y.next())w.value.fn=jRY};
t.prototype._addEventListenerToNode=function(G,y,w){G=Bj(G);aO(G,y,w)||X.prototype._addEventListenerToNode.call(this,G,y,w)};
t.prototype._removeEventListenerFromNode=function(G,y,w){G=Bj(G);lC(G,y,w)||X.prototype._removeEventListenerFromNode.call(this,G,y,w)};
t.prototype._propertiesChanged=function(G,y,w){if(this.__dataToNotify&&this.__notifyEffects)for(var z=_.J(Object.keys(this.__dataToNotify)),B=z.next();!B.done;B=z.next()){B=B.value;var V=d66(B);this.__notifyEffects[V]||delete this.__dataToNotify[B]}else this.__dataToNotify=null;X.prototype._propertiesChanged.call(this,G,y,w)};
t.prototype.fire=function(G,y,w){y=y===void 0?{}:y;var z;return _.Yt(Bj((z=w==null?void 0:w.node)!=null?z:this),G,y,w)};
t.prototype._ensureAttribute=function(G,y){var w=Bj(this);w.hasAttribute(G)||GO(w,y,G)};
t.prototype.isLightDescendant=function(G){var y=Bj(this);return Bj(y)!==G&&_.Sm(y).contains(G)&&_.Sm(y).getRootNode()===_.Sm(G).getRootNode()};
return t});
_.P3.ready=function(){var X;((X=this.hostElement)!=null?X:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var t;((t=this.hostElement)!=null?t:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.ax._subscribeIronResize=function(X){var t;((t=X.hostElement)!=null?t:X).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.ax._unsubscribeIronResize=function(X){var t;((t=X.hostElement)!=null?t:X).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var TR_=[Array,Boolean,Date,Number,Object,String],V2=function(X,t,G,y){this.polySiInfo=X;this.polySiParams=t;this.polySiContext=G;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;y||this instanceof HTMLElement&&(y=this);if(!y)throw Error("Jg");this.allowedProps=t.allowedProps;this.hostElement=y;this.is=X.is;this.upgradeDisabled=!!t.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");X=new Set(t.reactiveSchemas.filter(function(w){return w.type!==
"observe"}).map(function(w){return w.propertyKey}));
this.signalProxy=new XP(this,void 0,{reactiveProps:X,reactivityMode:t.reactivityMode});this.__dataHasAccessor={};t=_.J(t.reactiveSchemas);for(X=t.next();!X.done;X=t.next())X=X.value,X.type==="signal"&&(this.__dataHasAccessor[X.propertyKey]=!0);this.upgradeDisabled||sUt(this)};
V2.prototype.getExtraMethodsToForward=function(){return[]};
var sUt=function(X){X.polySiContext.didRegister||(X.registered(),X.polySiContext.didRegister=!0);X.polySiContext.finalizedTemplate||(X.polySiContext.finalizedTemplate={},X.polySiParams.templateGetter&&(X.polySiContext.finalizedTemplate.processedTemplate=MNw(X.polySiParams.templateGetter,X.polySiParams.is)));Dqq(X);var t=X.hostElement;t.loggingStatus!=null||(t.loggingStatus={});t.loggingStatus.isInitializing=!0;YH(function(){return void X.created()});
t.loggingStatus.isInitializing=!1;X.isPolySiElementConnected&&SZq(X)},SZq=function(X){X.didCallReady||(YH(function(){return void X.ready()}),X.didCallReady=!0);
X.isAttached=!0;X.attached()};
_.H=V2.prototype;_.H.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||SZq(this)};
_.H.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.H.attributeChangedCallback=function(X,t,G){if(this.upgradeDisabled)X==="disable-upgrade"&&G===null&&(this.upgradeDisabled=!1,sUt(this));else if(t!==G){var y=_.I4(X),w=this.polySiContext.typesForSignals[y];if(w&&(!this.reflecting||_.A("polysi_attribute_changed_serializing_killswitch"))){switch(w){case Object:try{var z=JSON.parse(G)}catch(V){z=G}break;case Array:try{z=JSON.parse(G)}catch(V){z=null}break;case Date:z=isNaN(G)?String(G):Number(G);z=new Date(z);break;case Boolean:z=G!==null;break;case Number:z=
Number(G);break;default:z=G}this[y]=z}y=_.J(this.polySiParams.behaviors);for(w=y.next();!w.done;w=y.next())z=void 0,(z=w.value.attributeChanged)==null||z.call(this,X,t,G);var B;(B=this.attributeChanged)==null||B.call(this,X,t,G)}};
_.H.attributeChangedCallbackWrapper=function(X,t,G){this.attributeChangedCallback(X,t,G)};
_.H.setPropertiesFromInitialAttributeValues=function(){for(var X=0;X<this.hostElement.attributes.length;X++){var t=this.hostElement.attributes[X];(t.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(t.name))&&this.attributeChangedCallback(t.name,null,t.value)}};
_.H.created=function(){this.provide=this.polySiParams.provide;var X;(X=this.initializeInjection)==null||X.call(this);X=_.J(this.polySiParams.reactiveSchemas);for(var t=X.next();!t.done;t=X.next())t=t.value,t.type==="signal"&&(this.mutablePropNames.add(t.propertyKey),y2(this.signalProxy,t.propertyKey));F0G(this,this.polySiInfo,this.polySiParams.behaviors);X=_.J(this.polySiParams.reactiveSchemas);for(t=X.next();!t.done;t=X.next())t=t.value,t.type==="signal"&&t.value!==void 0&&(this.signalProxy.model[t.propertyKey]=
typeof t.value==="function"?t.value.call(this):t.value);if(this.polySiParams.signalProperties)for(X=_.J(this.polySiParams.signalProperties),t=X.next();!t.done;t=X.next()){t=t.value;var G=void 0;((G=this.__signalCache)==null?0:G.has(t))||(this.signalProxy.model[t]=void 0)}n44||hbR(this);gqY(this);X=_.J(this.polySiParams.behaviors);for(t=X.next();!t.done;t=X.next())G=void 0,(G=t.value.created)==null||G.call(this);var y;(y=this.polySiInfo.created)==null||y.call(this)};
_.H.registered=function(){var X=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var t=Object.getPrototypeOf(this);t.addReactiveSchema=function(V){X.polySiParams.reactiveSchemas.push(V)};
for(var G=_.J(this.polySiParams.behaviors),y=G.next();!y.done;y=G.next()){var w=void 0;(w=y.value.beforeRegister)==null||w.call(t)}var z;(z=this.polySiInfo.beforeRegister)==null||z.call(t);t.addReactiveSchema=YDY;G=_.J(this.polySiParams.behaviors);for(y=G.next();!y.done;y=G.next())w=void 0,(w=y.value.registered)==null||w.call(t);var B;(B=this.polySiInfo.registered)==null||B.call(t)};
_.H.ready=function(){var X;(X=this.beforeReady)==null||X.call(this);n44&&hbR(this);var t;if(X=(t=this.polySiContext.finalizedTemplate)==null?void 0:t.processedTemplate){X=xKf(X.template,X.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:X.hasInsertionPoint,thisCtx:this});t=X.nodesById;X=X.root;var G=this.hostElement;var y=y===void 0?!1:y;G=(0,_.Cd)(G);if(!G.attachShadow)throw Error("Cd");if(!G.shadowRoot||y)G.attachShadow({mode:"open",shadyUpgradeFragment:X}),G.shadowRoot.appendChild(X);
this.root=G.shadowRoot;this.$=t}ZWt(this);y=_.J(this.polySiParams.behaviors);for(t=y.next();!t.done;t=y.next())X=void 0,(X=t.value.ready)==null||X.call(this);var w;(w=this.polySiInfo.ready)==null||w.call(this)};
_.H.attached=function(){for(var X=_.J(this.polySiParams.behaviors),t=X.next();!t.done;t=X.next()){var G=void 0;(G=t.value.attached)==null||G.call(this)}var y;(y=this.polySiInfo.attached)==null||y.call(this)};
_.H.detached=function(){for(var X=_.J(this.polySiParams.behaviors),t=X.next();!t.done;t=X.next()){var G=void 0;(G=t.value.detached)==null||G.call(this)}var y;(y=this.polySiInfo.detached)==null||y.call(this)};
var Dqq=function(X){for(var t=_.J(X.polySiParams.behaviors),G=t.next();!G.done;G=t.next())if(G=G.value,G.listeners)for(var y in G.listeners)lms(X,X.hostElement,y,G.listeners[y]);if(X.polySiInfo.listeners)for(var w in X.polySiInfo.listeners)lms(X,X.hostElement,w,X.polySiInfo.listeners[w])},lms=function(X,t,G,y,w){X=lT0(X,y,w);
aO(t,G,X)||t.addEventListener(G,X);return X},hbR=function(X){for(var t=_.J(X.polySiParams.reactiveSchemas),G=t.next();!G.done;G=t.next())G=G.value,G.type==="compute"||G.type==="computeWithMethod"?X8J(X.signalProxy,G,X):G.type==="redux"?GM_(X.signalProxy,G,X.store):G.type==="signal"&&G.readOnly&&tN0(X.signalProxy,G)},ZWt=function(X){for(var t=_.J(X.polySiParams.reactiveSchemas),G=t.next(),y={};!G.done;y={schema$jscomp$12:void 0},G=t.next())y.schema$jscomp$12=G.value,y.schema$jscomp$12.type==="notify"?
w8V(X.signalProxy,y.schema$jscomp$12,X.hostElement):y.schema$jscomp$12.type==="observe"?zzA(X.signalProxy,y.schema$jscomp$12,X):y.schema$jscomp$12.type==="reflect"&&X.signalProxy.effect(function(z){return function(){var B=X.signalProxy.getWithPath([z.schema$jscomp$12.propertyKey]);
X.reflecting=!0;FKV(X.hostElement,z.schema$jscomp$12.propertyKey,B,!0);X.reflecting=!1}}(y));
if(X.reflectedAttributes)for(t=_.J(Object.entries(X.reflectedAttributes)),y=t.next(),G={};!y.done;G={key$jscomp$907:void 0,value$jscomp$9023:void 0},y=t.next()){var w=_.J(y.value);y=w.next().value;w=w.next().value;G.key$jscomp$907=y;G.value$jscomp$9023=w;X.signalProxy.effect(function(z){return function(){X.reflecting=!0;FKV(X.hostElement,z.key$jscomp$907,(0,z.value$jscomp$9023)(),!0);X.reflecting=!1}}(G))}};
_.H=V2.prototype;_.H._setPendingProperty=function(X,t){this.set(X,t);return!1};
_.H._enableProperties=function(){};
_.H._setPendingPropertyOrPath=function(X,t){this.notifyPath(X,t);return!1};
_.H._addPropertyEffect=function(){};
_.H._stampTemplate=function(){throw Error("Kg");};
_.H.fire=function(X,t,G){t=t===void 0?{}:t;G=G===void 0?{}:G;var y,w,z={bubbles:(y=G.bubbles)!=null?y:!0,cancelable:!!G.cancelable,composed:(w=G.composed)!=null?w:!0},B;return _.Yt(sRs((B=G.node)!=null?B:this.hostElement),X,t,z)};
_.H.get=function(X,t){var G=tm(X);return t?xL_(t,G):X==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(G)};
_.H.linkPaths=function(){};
_.H.listen=function(X,t,G){X=sRs(X);this.boundListeners!=null||(this.boundListeners=new WeakMap);var y=this.boundListeners.get(X);y||(y={},this.boundListeners.set(X,y));var w=t+G;y[w]||(y[w]=lms(this,X,t,G))};
_.H.notifyPath=function(X,t){this.signalProxy.notifyPath(tm(X),arguments.length===2?{value:t}:void 0)};
_.H.canNotifyPath=function(X){return this.mutablePropNames.has(X)&&!Imw(this.signalProxy,X)};
_.H.notifySplices=function(X,t){this.signalProxy.notifySplices(tm(X),t)};
_.H.pop=function(X){var t=this.signalProxy;X=tm(X);var G=_.J(X);X=G.next().value;G=Hm(G);return y2(t,X).pop(G)};
_.H.push=function(X){var t=_.f1.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[tm(X)].concat(_.RY(t)))};
_.H.set=function(X,t,G){if(G)throw Error("Lg");X==="hidden"?this.hostElement.hidden=!!t:this.signalProxy.setWithPath(tm(X),t)};
_.H.setProperties=function(X){X=_.J(Object.entries(X));for(var t=X.next();!t.done;t=X.next()){var G=_.J(t.value);t=G.next().value;G=G.next().value;this[t]=G}};
_.H.splice=function(X,t,G){var y=_.f1.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[tm(X),t,G].concat(_.RY(y)))};
_.H.unlinkPaths=function(){};
_.H.unlisten=function(X,t,G){X=sRs(X);if(this.boundListeners){var y=this.boundListeners.get(X);if(y){G=t+G;var w=y[G];w&&(lC(X,t,w)||X.removeEventListener(t,w),delete y[G])}}};
_.H.unshift=function(X){var t=_.f1.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[tm(X)].concat(_.RY(t)))};
_.ke.Object.defineProperties(V2.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 IjA=[Array,Boolean,Date,Number,Object,String];var p_6=!1;var $Z=function(){var X=HTMLElement.apply(this,arguments)||this;X.restamp=!1;X.notifyDomChange=!1;X.JSC$13398_didCallConnected=!1;X.JSC$13398_renderDebouncer=null;X.disableTemplateUpdateSignalImpl=b$()?void 0:_.sm(!1,void 0,"Ofhkwb");var t;X.getDisableTemplateUpdate=(t=X.disableTemplateUpdateSignalImpl)==null?void 0:t[0];var G;X.setDisableTemplateUpdate=(G=X.disableTemplateUpdateSignalImpl)==null?void 0:G[1];return X};
_.S($Z,HTMLElement);var qZ4=function(X){X.conditionSignalImpl!=null||(X.conditionSignalImpl=new MW(_.sm(!1,void 0,"gE52Fb")));return X.conditionSignalImpl};
_.H=$Z.prototype;_.H.showHideChildren=function(X){CdR(this,X,this.if)};
_.H.attributeChangedCallback=function(X,t,G){if(this.JSC$13398_didCallConnected)throw Error("Pg`"+X);X==="notify-dom-change"?this.notifyDomChange=G!==null:X==="restamp"&&(this.restamp=G!==null)};
_.H.debounceRender=function(){this.JSC$13398_renderDebouncer=_.hz(this.JSC$13398_renderDebouncer,fl,this.JSC$13398_renderImpl.bind(this));_.ZZ(this.JSC$13398_renderDebouncer)};
_.H.disconnectedCallback=function(){var X=(0,_.Cd)(this).parentNode;(!X||X.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in X&&!X.host)&&KOS(this)};
_.H.connectedCallback=function(){var X=this;this.JSC$13398_didCallConnected=!0;J3q?rY6():this.style.display="none";this.parentSignalProxy.effect(function(){qZ4(X).getWithPath([]);X.debounceRender()})};
_.H.render=function(){_.O_()};
_.H.JSC$13398_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var X=this.if,t=!1;if(X){this.hasInstance()||(OW4(this),t=!0);a:{var G=(0,_.Cd)(this).parentNode;if(this.hasInstance()){var y=this.instance.children;if((y==null?0:y.length)&&(0,_.Cd)(this).previousSibling!==y[y.length-1])for(var w=0;w<y.length;w++)(0,_.Cd)(G).insertBefore(y[w],this)}else{if(!G){G=!1;break a}uh4(this,G)}G=!0}if(!G)return}else this.restamp&&KOS(this);CdR(this,!1,X);X&&!t&&OW4(this);BIR&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.H.hasInstance=function(){return!!this.instance};
var uh4=function(X,t){var G=X.parentSignalProxy;if(b$()){var y=_.J(_.sm(!0,void 0,"jQ0Qb"));var w=y.next().value;y=y.next().value;G=X.parentSignalProxy}else{var z;var B=new XP((z=QUS(X))!=null?z:{},function(b){var e=y2(X.parentSignalProxy,b).getChangeRecordSignal([]);b=_.sm(void 0,void 0,"oT9mkc");var g=new MW(b);B.effect(function(){if(X.getDisableTemplateUpdate&&!X.getDisableTemplateUpdate()){var F=e();g.notifyPath(tm(F.path),{value:F.value})}});
return g});
X.parentSignalProxy.childSignalProxies.push(B);var V=G=B}G=xKf(X.templateInfo,X.templateInfo.nodeInfoList,G,{eventListenerHost:X.eventListenerHost,hasInsertionPoint:X.templateInfo.hasInsertionPoint,thisCtx:X.eventListenerHost,enabledSignal:b$()?w:void 0,getModel:function(){return QUS(X)}}).root;
X.instance={root:G,children:[],hidden:!1,signalProxy:V,getTemplateUpdatesEnabled:w,setTemplateUpdatesEnabled:y};V=_.J(G.childNodes);for(w=V.next();!w.done;w=V.next())X.instance.children.push(w.value);(0,_.Cd)(t).insertBefore(X.instance.root,X)},QUS=function(X){if((X=X.parentSignalProxy.model)&&!X.hostElement){var t={},G;
for(G in X)X.hasOwnProperty(G)&&(t[G]=X[G]);return t}},KOS=function(X){if(X.instance){var t=X.instance.children;
if(t.length){var G=(0,_.Cd)(t[0]).parentNode;if(G){G=(0,_.Cd)(G);for(var y=0;y<t.length;y++)G.removeChild(t[y])}}b$()?X.instance.setTemplateUpdatesEnabled(!1):X.instance.signalProxy.dispose();X.instance=void 0}},CdR=function(X,t,G){t=t||!G;
X.instance&&X.instance.hidden!==t&&(X.instance.hidden=t,cYw(t,X.instance.children))},OW4=function(X){if(b$()){var t=X.instance;
t&&Lt(X.parentSignalProxy.owner,function(){return!t.getTemplateUpdatesEnabled()})&&t.setTemplateUpdatesEnabled(!0)}else X.setDisableTemplateUpdate(!1)};
_.ke.Object.defineProperties($Z.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var X=this;return Lt(this.parentSignalProxy.owner,function(){return qZ4(X).getWithPath([])})},
set:function(X){X||(b$()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));qZ4(this).setWithPath([],!!X)}}});
_.ke.Object.defineProperties($Z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",$Z);var Ipq=[],tC=function(){var X=HTMLElement.apply(this,arguments)||this;X.as="item";X.indexAs="index";X.itemsIndexAs="itemsIndex";X.targetFramerate=20;X.notifyDomChange=!1;X.isDetached=!1;X.JSC$13405_renderDebouncer=null;X.instances=[];X.chunkingId=null;X.chunkCount=null;X.shouldMeasureChunk=!1;X.shouldContinueChunking=!1;X.renderStartTime=null;X.JSC$13405_didCallConnected=!1;return X};
_.S(tC,HTMLElement);var WOe=function(X){X.itemSignalImpl!=null||(X.itemSignalImpl=new MW(_.sm(Ipq,void 0,"YBrqgf")));return X.itemSignalImpl},c34=function(X,t){Array.isArray(t)||(t=Ipq);
WOe(X).setWithPath([],t)};
_.H=tC.prototype;_.H.showHideChildren=function(X){for(var t=_.J(this.instances),G=t.next();!G.done;G=t.next())cYw(X,G.value.children)};
_.H.notifyPath=function(X,t){X=tm(X);X[0]==="items"&&(X.length===1?c34(this,t):WOe(this).setWithPath(X.slice(1),t))};
_.H.canNotifyPath=function(X){return X==="items"};
_.H.attributeChangedCallback=function(X,t,G){if(this.JSC$13405_didCallConnected)throw Error("Qg`"+X);X==="as"?this.as=G:X==="index-as"?this.indexAs=G:X==="items-index-as"?this.itemsIndexAs=G:X==="initial-count"?this.initialCount=Number(G):X==="notify-dom-change"?this.notifyDomChange=G!==null:X==="target-framerate"&&(this.targetFramerate=Number(G))};
_.H.disconnectedCallback=function(){this.isDetached=!0;for(var X=0;X<this.instances.length;X++)pQR(this,X);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.H.connectedCallback=function(){var X=this,t=WOe(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var w=t(),z=tm(w.path);if(z[0]===void 0||z[0]==="splices"||z[0]==="length")X.debounceRender();else{var B=z[0];if(B=X.instances[typeof B==="string"?Math.floor(Number(B)):B])z=[X.as].concat(_.RY(z.slice(1))),B.signalProxy.notifyPath(z,w)}});
this.JSC$13405_didCallConnected=!0;J3q?rY6():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var G=(0,_.Cd)((0,_.Cd)(this).parentNode),y=0;y<this.instances.length;y++)G.insertBefore(this.instances[y].root,this);this.chunkingId&&this.render()}};
_.H.debounceRender=function(){this.JSC$13405_renderDebouncer=_.hz(this.JSC$13405_renderDebouncer,fl,this.JSC$13405_renderImpl.bind(this));_.ZZ(this.JSC$13405_renderDebouncer)};
_.H.render=function(){this.debounceRender();_.O_()};
_.H.JSC$13405_renderImpl=function(){var X=this;if(!this.parentSignalProxy.isDisposed){var t=this.items,G=r3S(this,t.length);NIR(this,t,G);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){X.chunkingId=null;if(X.shouldMeasureChunk){var y=performance.now()-X.renderStartTime;X.chunkCount=Math.round(Math.ceil(1E3/X.targetFramerate)/y*X.chunkCount)||1}X.shouldContinueChunking&&X.debounceRender()}));
BIR&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var r3S=function(X,t){var G=t,y=X.instances.length;if(X.initialCount){if(X.chunkCount){var w=Math.min(Math.max(t-y,0),X.chunkCount);G=Math.min(y+w,t)}else G=Math.min(t,X.initialCount),w=Math.max(G-y,0),X.chunkCount=w||1;X.shouldMeasureChunk=w===X.chunkCount;X.shouldContinueChunking=G<t;X.renderStartTime=performance.now()}return G},NIR=function(X,t,G){for(var y=0;y<G;y++){var w=X.instances[y],z=t[y];
w?(w.signalProxy.setWithPath([X.as],z),w.signalProxy.setWithPath([X.indexAs],y)):PdS(X,z,y)}for(t=X.instances.length-1;t>=y;t--)G=X,w=t,pQR(G,w),_.J(G.instances.splice(w,1)).next().value.signalProxy.dispose()},pQR=function(X,t){X=X.instances[t];
t=(0,_.Cd)(X.root);for(var G=0;G<X.children.length;G++)t.appendChild(X.children[G])},PdS=function(X,t,G){var y={};
t=Object.assign({},E4B(X),(y[X.as]=t,y[X.indexAs]=G,y[X.itemsIndexAs]=G,y));var w=new XP(t,function(B){if(B!==X.as&&B!==X.indexAs){if(B===X.itemsIndexAs)return y2(w,X.indexAs);var V=y2(X.parentSignalProxy,B).getChangeRecordSignal([]);B=_.sm(void 0,void 0,"T21Pqc");var b=new MW(B);w.effect(function(){var e=V();b.notifyPath(tm(e.path),{value:e.value})});
return b}});
X.parentSignalProxy.childSignalProxies.push(w);y=xKf(X.templateInfo,X.templateInfo.nodeInfoList,w,{eventListenerHost:X.eventListenerHost,getModel:function(){var B={};return Object.assign({},E4B(X),(B[X.as]=w.model[X.as],B[X.indexAs]=w.model[X.indexAs],B[X.itemsIndexAs]=w.model[X.indexAs],B))},
hasInsertionPoint:X.templateInfo.hasInsertionPoint,thisCtx:X.eventListenerHost,methodInvocationRequirement:VS4,enabledSignal:X.stampingEnabled}).root;t={root:y,children:[],signalProxy:w};y=_.J(y.childNodes);for(var z=y.next();!z.done;z=y.next())t.children.push(z.value);y=(y=X.instances[G+1])?y.children[0]:X;(0,_.Cd)((0,_.Cd)(X).parentNode).insertBefore(t.root,y);X.instances[G]=t},E4B=function(X){if((X=X.parentSignalProxy.model)&&!X.hostElement){var t={},G;
for(G in X)X.hasOwnProperty(G)&&(t[G]=X[G]);return t}};
tC.prototype.itemForElement=function(X){var t=this,G=this.instances.find(function(y){return y.children.includes(X)});
if(G)return Lt(this.parentSignalProxy.owner,function(){return G.signalProxy.getWithPath([t.as])})};
tC.prototype.indexForElement=function(X){var t=this.instances.findIndex(function(G){return G.children.includes(X)});
return t>=0?t:void 0};
_.ke.Object.defineProperties(tC.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var X=this;return Lt(this.parentSignalProxy.owner,function(){return WOe(X).getWithPath([])})},
set:function(X){c34(this,X)}},
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}}});
_.ke.Object.defineProperties(tC,{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",tC);var Uqq,mqh;_.Gw=new _.FB("STATE_STORE_TOKEN");Uqq=new _.FB("SELECT_TOKEN");mqh=new _.FB("DISPATCH_TOKEN");var RYh={getSelectFn:function(){var X;return(X=_.gw().resolve(_.jH(Uqq)))!=null?X:NRf},
getDispatchFn:function(){var X;return(X=_.gw().resolve(_.jH(mqh)))!=null?X:_.kF().dispatch.bind(_.kF())},
getAppStore:function(){return _.gw().resolve(_.Gw)}},PNs,m6h=!1;var gX={traceAllComponents:_.A("web_tracing_all_components"),exportToCsi:_.A("web_tracing_export_to_csi"),exportBreadcrumbs:_.A("web_enable_tracing"),bufferSize:_.At("web_max_tracing_events"),enabledSpansArray:_.sc("web_tracing_enabled_spans")};var MFl=function(){};var ljv=void 0;var RbJ=function(){};
RbJ.prototype.hasAttribute=function(X){if(X==="dir")return!1;if(X==="disable-upgrade"){var t,G;return(G=(t=this.hostElement)==null?void 0:t.hasAttribute("disable-upgrade"))!=null?G:!1}throw Error("Rg`"+X);};
RbJ.prototype.attributeChangedCallbackWrapper=function(X,t,G){if(X==="disable-upgrade"&&this.__isUpgradeDisabled&&G===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var y;((y=this.hostElement)!=null?y:this).isConnected&&this.connectedCallback()}else t===G||this.__isReflecting||this.attributeChangedCallback(X,t,G)};
RbJ.prototype.getExtraMethodsToForward=function(){for(var X=this,t=[],G=_.J(iWt),y=G.next(),w={};!y.done;w={tagName$jscomp$54:void 0,name$jscomp$572:void 0},y=G.next())w.name$jscomp$572=y.value,y=void 0,w.name$jscomp$572==="_setPendingProperty"?(w.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),y=function(z){return function(B,V,b){ie(z.tagName$jscomp$54,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return X._setPendingProperty(B,V,b)}}(w)):y=function(z){return function(){return X[z.name$jscomp$572].apply(X,
_.RY(_.f1.apply(0,arguments)))}}(w),t.push([w.name$jscomp$572,
y]);return t};
for(var tSJ=YZP(A3R((0,_.PB)(RbJ))),zb6=["disabled","disable-upgrade"],LOY=(0,_.PB)(function(){}),v4J=new Set(Object.getOwnPropertyNames(LOY.prototype)),n4_=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.RY(v4J))),o4E=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),iWt=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),apJ=new Set([].concat(_.RY(o4E),_.RY(iWt),_.RY(v4J))),lph=_.J(apJ),xqq=lph.next();!xqq.done;xqq=lph.next())Z$A.add(xqq.value);var BI0={created:function(){gqY(this);this.initializeInjection()}};var TIv=!1,sV=window.ShadyDOM,qZ_=["appendChild","insertBefore","removeChild","replaceChild"],ZWE=[Node];sV&&ZWE.push(sV.Wrapper);var IpV,WOG,r3Y={};var hm=new Set,Dv="",NI0="";var Sx,Zv=new Set;var apl=new Set("context didCallReady is info params signalProxy".split(" ")),xqA="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),fpA="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var fpq=Os({entities:iBE}),MSe=new k1(fpq);var Xce=function(){return _.PW.apply(this,arguments)||this};
_.S(Xce,_.PW);_.ke.Object.defineProperties(Xce.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return MSe}}});
_.E([_.E0()],Xce);_.yK=[x6.prototype,Xce.prototype];_.wG={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var X=this,t={};setTimeout(function(){var G;return _.Yt((G=X.hostElement)!=null?G:X,"yt-live-chat-add-tooltip-target",t)},0);
this.handler_=t.handler},
detached:function(){if(this.handler_){var X;this.handler_.removeElementFromSupportingTooltips((X=this.hostElement)!=null?X:this)}this.handler_=null}}};_.IL=new _.FB("ICON_MANAGER_TOKEN");var $kB=[48,20,18,16,15,13,12],TZ0=new Map,kS0=new Set,nBV=new Set,b0l=new Set,BZv=new Set,VR0=new Set,ehw=new Promise(function(X){var t=!1,G=!1,y=!1,w=[],z=function(B){if("detail"in B)if(B=B.detail,B.name==="yt-icons")dk_(B),t=!0;else if(B.name==="yt-sys-icons")dk_(B),G=!0;else{var V;((V=B.name)==null?0:V.includes("yt-sys-icons"))&&B.size!==24&&(dk_(B,!0),w.push(B.size),w.length===$kB.length&&(y=!0))}t&&G&&y&&(window.removeEventListener("iron-iconset-added",z),X())};
window.addEventListener("iron-iconset-added",z)}),gB6=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"]]);_.zw={};_.zw.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.bu,computeHref_:function(X,t){t=t===void 0?!1:t;if(!X||X.commandExecutorCommand)return null;var G=SWv(X,t);return t||G!==null?G?_.A("enable_polymer_resin")?_.l_(G).toString():G:null:(_.Mj(new _.NJ("computeHref was null",this.is,X)),null)},
computeOptionalHref_:function(X){return this.computeHref_(X,!0)},
computeNofollow_:function(X){return X?eI_(X)?"nofollow":null:null},
computeIcon_:function(X){return X&&X.iconType?_.Q2(X.iconType):""},
resolveCommand:function(X,t,G){t=t===void 0?{}:t;return _.cj(X,this.hostElement,t,G===void 0?!1:G)}};var GSq,Hr;_.tRB={};GSq=null;
Hr={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_=VGv(this.viewroot));_.oL(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var X=this;this.unobserve_();if(_.A("kevlar_vimio_use_shared_monitor"))SSv(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 t=[];this.visibilityOptionVisible_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return X.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return X.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return X.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=t}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){AkG(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 X=_.xT(this.parentNode,function(G){var y,w=(y=G.polymerController)!=null?y:G;return!!w.getVisibilityObserverForChild&&w.getVisibilityObserverForChild()},!0);
if(X){var t;this.localVisibilityObserver_=((t=X.polymerController)!=null?t:X).getVisibilityObserverForChild()}else GSq||(GSq=VGv()),this.localVisibilityObserver_=GSq;return this.localVisibilityObserver_},visibilityCallback:function(X){X?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.A("kevlar_use_vimio_behavior")||(Hr={});Hr&&!_.A("kevlar_use_vimio_behavior")&&(delete Hr.attached,delete Hr.detached);_.tRB.YtVisibilityObserverBehavior=[Hr];var yko={};yko.YtVisualElementBehavior=[_.tRB.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.A("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.A("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var X=this.getScreenLayer&&this.getScreenLayer(),t=this.getVisibilityLogger();t&&t.reportShown(this,void 0,X)}},
onHidden:function(){if(_.A("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.A("kevlar_vimio_use_shared_monitor")){var X=this.getScreenLayer&&this.getScreenLayer(),t=this.getVisibilityLogger();t&&t.reportHidden(this,void 0,X)}},
getVisibilityLogger:function(){return _.A("kevlar_use_vimio_behavior")?_.rX():null},
shouldSkipLogging:function(){if(_.Md("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var X=this.getParentRenderer&&this.getParentRenderer();if(!X)return!1;var t,G=(t=X.polymerController)!=null?t:X;if(!G.data)return!1;X=this.data.trackingParams;X=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:X;var y;t=(y=G.data)==null?void 0:y.trackingParams;var w,z;t=((w=G.data)==null?0:w.loggingDirectives)?(z=G.data)==null?void 0:z.loggingDirectives.trackingParams:t;return X&&t&&X===
t}}];var qSh=new Map,Lz;var uQv=function(X){this.layer=X},IA=function(X){return X.layer!==void 0?X.layer:X.parent?IA(X.parent):X.layer=0};var IIV;_.v={};IIV=0;_.v.YtRendererBehavior=[_.zw.YtComponentBehavior,yko.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_:_.A("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var X,t;(t=(X=this.monitorScrollElement)!=null?X:this.hostElement)==null||t.removeEventListener("scroll",_.Ik(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();hhV(this.hostElement);d6o(_.m4(),this.hostElement);e7.delete(this.hostElement)},
registerRenderer:function(X){var t;((t=X.polymerController)!=null?t:X).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(X),this.markDirty())},
unregisterRenderer_:function(X){this.useVimio_||(this.childCache_.delete(X),this.markDirty())},
attached:function(){var X=this,t=this.getParentRenderer();if(t){var G,y,w;(y=(G=(w=t.polymerController)!=null?w:t).registerRenderer)==null||y.call(G,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var z,B;(B=(z=this.monitorScrollElement)!=null?z:this.hostElement)==null||B.addEventListener("scroll",_.Ik(this,this.onScroll))}_.vz.addJob(function(){CQV(X.hostElement)},8);
G=new uQv(this.screenLayer||void 0);(t=e7.get(t))&&t.layerNode&&(G.parent=t.layerNode);t={};jxE(this.hostElement,(t.isRenderer=!0,t.layerNode=G,t[Q_f]=this.data,t))},
getParentRenderer:function(){for(var X=this.hostElement.parentNode,t,G;X&&((t=e7.get(X))==null||!t.isRenderer)&&!((G=X.polymerController)!=null?G:X).isRenderer_;)X=X.parentNode||X.host;return X},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.A("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.X3("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.A("debug_web_ve_data")&&this.data.trackingParams){var X="";try{X=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(G){_.xA(G)}if(X){var t=UYv(X,1);t!==void 0&&(this.hostElement.dataset.veIndex=String(t));X=UYv(X,2);
X!==void 0&&(this.hostElement.dataset.ve=String(X))}}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,_.A("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.i$(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Ni(_.Pj(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var X=this.data.targetId;_.jRS(_.m4(),X,this.hostElement)}else d6o(_.m4(),this.hostElement)},
onScroll:function(){var X=Date.now();X-this.lastHandledScroll_<50||(this.lastHandledScroll_=X,this.markDirty())},
markDirty:function(){_.A("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Wv6(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var X=this.getParentRenderer();if(X&&(X=e7.get(X))&&X.layerNode)return IA(X.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.RY(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var X=0;X<this.data.impressionEndpoints.length;X++)this.sendImpression(this.data.impressionEndpoints[X]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(X){X.clickTrackingParams&&delete X.clickTrackingParams;var t,G;(X==null?0:(t=X.commandMetadata)==null?0:(G=t.webCommandMetadata)==null?0:G.sendPost)?_.hE(this.hostElement,[X,{impression:!0}]):_.Z0(this.hostElement,[X],this.hostElement)},
logExplicitClick:function(X){var t=_.lw(this.getScreenLayer());if(t){var G,y=(G=X.polymerController)!=null?G:X;X=y.visualElement;y=y.trackingParams||y.clickTrackingParams;!X&&y&&(X=_.i$(y));X&&_.BK(t,X)}}}];var wcq={},o3=function(){return _.PW.apply(this,arguments)||this};
_.S(o3,_.PW);o3.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
o3.prototype.onPdgItemBehaviorClick=o3.prototype.onPdgItemBehaviorClick;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],o3.prototype,"data",void 0);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],o3.prototype,"onPdgItemBehaviorClick",null);_.E([_.E0()],o3);wcq.YtPdgLiveChatItemBehavior=[o3.prototype,_.v.YtRendererBehavior];var zhq;var H0q;_.JC={};_.JC.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Br=function(){var X=eb.apply(this,arguments)||this;X.switchTemplateAtRegistration=!1;return X};
_.S(Br,eb);Br.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||NZA(this),_.bis(this,"doRender"),this.doRender())};
Br.prototype.debounceRender=function(){this.templatingFn&&_.Jm(this,"doRender",this.doRender)};
Br.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.xA(Error("ah"))};
Br.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.E([G1E()],Br);var oBo=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,nv={},mkv=(nv[1]={filterString:null,isUnwrappable:null,unwrap:null},nv[2]={filterString:function(X,t,G){return OW(G)},
isUnwrappable:function(X){return X instanceof $w},
unwrap:function(X){return yb(X)}},nv[3]={filterString:function(X,t,G){return oBo.test(G)?G:vt.toString()},
isUnwrappable:function(X){return mN(X)},
unwrap:function(X){return _.Rj(X)}},nv[4]={filterString:function(){return vt.toString()},
isUnwrappable:function(X){return X instanceof ct},
unwrap:function(X){return _.Nx(X).toString()}},nv[5]={filterString:function(X,t,G){return G},
isUnwrappable:function(X){return typeof X==="string"},
unwrap:function(X){return X.toString()}},nv[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(X){return X instanceof _.oY},
unwrap:function(X){return LNV(X)}},nv[8]={filterString:function(X,t,G){G=String(G).toLowerCase();
return aUG(X,t,G)?G:"zClosurez"},
isUnwrappable:null,unwrap:null},nv[10]={filterString:null,isUnwrappable:null,unwrap:null},nv);dS[ft["default"]]=i0V;var LvG=[];var oOl=aIY("A"),Jh6=aIY("BUTTON"),ip=aIY("DIV"),BeE=aIY("LABEL");(function(){var X=Jf;Jf=function(t){X==null||X(t);xF(function(){for(var G=0;G<t.length;G++)vBJ(t[G])})}})();var Jkq=function(){var X=_.PW.apply(this,arguments)||this;X.hasUnmounted=!1;return X};
_.S(Jkq,_.PW);_.H=Jkq.prototype;_.H.beforeRegister=function(){var X=this.doIdomRender;this.templatingFn?_.xA(Error("$g")):(this.templatingFn=X,this.switchTemplateAtRegistration=!0,Uk6(this))};
_.H.attached=function(){};
_.H.detached=function(){vBJ(this.hostElement)};
_.H.renderIdom=function(){throw Error("ch");};
_.H.doIdomRender=function(){var X=this;pkv(this.hostElement,function(){X.renderIdom()})};
_.E([_.E0()],Jkq);var BZ4=[Br.prototype,Jkq.prototype];var nBq,VRR=function(){return nBq!==void 0?nBq:nBq=document.createElement("template")};
document.head.appendChild(VRR().content);var b0J;var kSR,dk4=function(){return kSR!==void 0?kSR:kSR=document.createElement("template")};
document.head.appendChild(dk4().content);var ehz;var joq=document.head,gBo=joq.appendChild,FvJ;if(ehz===void 0){var TZR=document.createElement("template");_.Z(TZR,"\x3c!--css-build:shady--\x3e");TZR.content.insertBefore(dk4().content.cloneNode(!0),TZR.content.firstChild);ehz=TZR}FvJ=ehz;gBo.call(joq,FvJ.content);var Ake,YSB=function(){return Ake!==void 0?Ake:Ake=document.createElement("template")};
document.head.appendChild(YSB().content);var soB;var DkS=document.head,SS4=DkS.appendChild,hhB;if(soB===void 0){var Z0q=document.createElement("template");_.Z(Z0q,"\x3c!--css-build:shady--\x3e");Z0q.content.insertBefore(YSB().content.cloneNode(!0),Z0q.content.firstChild);soB=Z0q}hhB=soB;SS4.call(DkS,hhB.content);var qSq=document.head,CQq=qSq.appendChild,KvJ;if(b0J===void 0){var O0q=document.createElement("template");_.Z(O0q,"\x3c!--css-build:shady--\x3e");O0q.content.insertBefore(VRR().content.cloneNode(!0),O0q.content.firstChild);b0J=O0q}KvJ=b0J;CQq.call(qSq,KvJ.content);var uTq,Qoe=function(){return uTq!==void 0?uTq:uTq=document.createElement("template")};
document.head.appendChild(Qoe().content);var IIB;_.kI=new _.FB("DARK_THEME_TOKEN");var N3V=new _.ja("accessibilityProperties");var rF_=new _.ja("layoutProperties");var PIV=new _.ja("imageType");var Wvo={};if("ytAttributedStringLinkHoverColor"in Wvo)throw Error("fh`ytAttributedStringLinkHoverColor");(function(X,t){Wvo[X]="value"in t&&"unit"in t?XXv(X,t):function(G){try{return t(G)}catch(y){throw Error("dh`"+X+"`"+y.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var ckR=function(X){var t=this;this.holdTime=X===void 0?500:X;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(G){var y=new CustomEvent("LONG_PRESS"),w;(w=G.changedTouches[0].target)==null||w.dispatchEvent(y)};
this.ontouchstart=function(G){t.longPressTimeout=_.f5(_.vz,function(){t.onlongpress(G);t.longPressOccurred=!0},t.holdTime)};
this.ontouchmove=function(){_.vz.cancelJob(t.longPressTimeout);t.longPressTimeout=NaN;t.longPressOccurred=!1;t.moveOccurred=!0};
this.ontouchend=function(G){if(t.longPressTimeout&&!t.longPressOccurred&&!t.moveOccurred){var y;(y=G.changedTouches[0].target)==null||y.dispatchEvent(new Event("click"))}_.vz.cancelJob(t.longPressTimeout);t.longPressTimeout=NaN;t.longPressOccurred=!1;t.moveOccurred=!1}};var AFY=function(X,t){ckR.call(this,t);var G=this;this.callback=X;this.onlongpress=function(y){var w;(w=G.callback)==null||w.call(G,y)}};
_.S(AFY,ckR);var Yg0=function(X,t){var G=Object.assign({},t);X=_.J(new Map([["ontouchstart",X.ontouchstart],["ontouchend",X.ontouchend],["ontouchmove",X.ontouchmove]]));for(var y=X.next(),w={};!y.done;w={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},y=X.next()){var z=_.J(y.value);y=z.next().value;z=z.next().value;w.eventName$jscomp$101=y;w.eventHandler$jscomp$1=z;t[w.eventName$jscomp$101]=function(B){return function(V){var b;(b=G[B.eventName$jscomp$101])==null||b.call(G,V);(0,B.eventHandler$jscomp$1)(V)}}(w)}};_.F3=new _.FB("COMMAND_HANDLER_TOKEN");var t3V=new _.ja("parallelCommand");var wXG=new _.ja("performOnceCommand");var yFY=new _.ja("serialCommand");var zWf=void 0;var pco=function(){this.data=[];this.consumer=null};
pco.prototype.push=function(X){this.consumer?this.consumer(X):this.data.push(X)};var A4={};_.sm(A4,void 0,"sgPmTd");_.sm(null,void 0,"jypsq");_.sm(null,void 0,"mWiOof");var R6l=new pco;var ko6=[Yhz,sVS,DwY,hGq,ShY,AAt,Z_q,qht];var cFY=new _.ja("bracketTextDecorator");var VL=new _.ja("highlightTextDecorator");_.e_=new _.FB("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var OA0=function(){},rkR;
(rkR=window.requestIdleCallback)==null||rkR.bind(window);var Qbh={calledOnce:!1,state:"visible"},uzl={calledOnce:!1,state:"hidden"};var NZq=new _.FB("ICON_WIZ_COMPONENT_TOKEN");_.mw=_.Fp(function(X){var t=X.icon;var G=X.active;var y=X.className;var w=X.style;var z=X.dataSelected;var B=X.dataDisabled;var V=X.role;var b=X.animateIcon;var e=X.themeOverride;var g=X.ariaHidden;var F=X.ariaExpanded;var T=X.ariaLabel;var D=X.tabindex;var h=X.id;var u=X.size;var W=X.iconFilter;return _.k(_.d,{cond:t,then:function(){var c=_.gw().resolve(NZq);return _.k(c,{icon:t,dataSelected:z,dataDisabled:B,animateIcon:b,themeOverride:e,ariaExpanded:F,tabindex:D,id:h,active:G,size:u,role:V,className:y,
ariaHidden:g,ariaLabel:T,style:function(){return w!=null&&w()||u==null||!u()?w==null?void 0:w():"width: "+(u==null?void 0:u())+"px;height: "+((u==null?void 0:u())+"px;")},
iconFilter:W})}})},"b");
_.mw.idomCompat=!0;var Gas=window.devicePixelRatio||1;var Hfl=new Map([["yt_outline_bag_black_24","bag"]]);var VK=function(X){var t=this;this.margin=.1;this.whenInViewportWithMargin=X;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){t.requestScan()});
window.addEventListener("touchend",function(){t.requestScan()});
window.addEventListener("updateui",function(){t.requestScan()});
var G=new _.d2((0,_.rT)(this.requestScan,this),100);window.addEventListener("scroll",function(){G.fire()},!0);
window.addEventListener("resize",(0,_.rT)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){t.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.rT)(this.requestScan,this))};
VK.prototype.observe=function(X){this.observationTargets.includes(X)||this.observationTargets.push(X)};
VK.prototype.unobserve=function(X){this.observationTargets=this.observationTargets.filter(function(t){return t!==X})};
VK.prototype.requestScan=function(){var X=this;this.scanRequested||(xF(function(){PQo(X)}),this.scanRequested=!0)};
var PQo=function(X){var t=(1+X.margin)*(document.documentElement.clientHeight||window.innerHeight);X.observationTargets=X.observationTargets.filter(function(G){var y=G.getBoundingClientRect();(y=t>y.top&&!!y.height)&&X.whenInViewportWithMargin(G);return!y&&G.parentNode});
X.scanRequested=!1};
VK.prototype.disconnect=function(){this.observationTargets=[]};var EBq,mk4;EBq=_.J(_.sm(V8E(),void 0,"O3X2wd"));_.Uko=EBq.next().value;mk4=EBq.next().value;window.addEventListener("resize",function(){mk4(V8E())});var Rhe={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},i0B=void 0,Lve=window.innerWidth,vBh=window.innerHeight;window.addEventListener("resize",function(){i0B=void 0});var aIS;if("IntersectionObserver"in window)aIS=dU6();else{if(i0B===void 0){var lIB;lIB="matchMedia"in window?window.matchMedia(Rhe.landscape+","+Rhe.portrait).matches:void 0;i0B=lIB!==void 0?lIB:Lve>=930&&vBh>=550||Lve>=550&&vBh>=930}aIS=i0B?{observe:function(X){xF(function(){var t;(t=X.onViewportEntered)==null||t.call(X)})},
unobserve:function(){}}:new VK(function(X){xF(function(){var t;
(t=X.onViewportEntered)==null||t.call(X)})})}var bfl=aIS;var xk4=_.Fp(function(X){var t=!1,G=_.nl("img",function(y){_.Um(function(){t=!0;y.onload=null})});
_.Em(function(){var y,w=(y=X.data)==null?void 0:y.call(X),z,B=(z=X.getSrc)==null?void 0:z.call(X).cb,V;y=(V=X.config)==null?void 0:V.call(X);if(V=G.value)if(z=function(e,g){if(!t)return B?B(e,g):e},gN6(V,y),_.A("web_image_dont_reload_same_src")&&jw0(V,w,z))_.A("web_image_dont_reload_same_src_simulate_load")&&V.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var b;egf(V,w||null,z,y,(b=X.lazy)==null?void 0:b.call(X))}},"v0I2p");
return _.k("img",{el:G})},"c");
xk4.idomCompat=!0;_.gr=_.Fp(function(X){var t=function(){var G,y=X.data(),w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L,x,w6,BY,kJ,Ss,C_,Fv,Uh,cY,f_,sq;var oq={contentMode:(w=X.contentMode)==null?void 0:w.call(X),loadedClass:(z=X.loadedClass)==null?void 0:z.call(X),isPreloaded:(B=X.isPreloaded)==null?void 0:B.call(X),notifyOnLoaded:(V=X.notifyOnLoaded)==null?void 0:V.call(X),notifyOnUnloaded:(b=X.notifyOnUnloaded)==null?void 0:b.call(X),preferredThumbnail:(e=X.preferredThumbnail)==null?void 0:e.call(X),preserveHeight:(g=X.preserveHeight)==
null?void 0:g.call(X),preserveWidth:(F=X.preserveWidth)==null?void 0:F.call(X),objectPosition:(T=X.objectPosition)==null?void 0:T.call(X),targetWidth:(D=X.targetWidth)==null?void 0:D.call(X),targetHeight:(h=X.targetHeight)==null?void 0:h.call(X),shouldShowPlaceholder:(u=X.shouldShowPlaceholder)==null?void 0:u.call(X),useWidth:(W=X.useWidth)==null?void 0:W.call(X),isToggled:(c=X.isToggled)==null?void 0:c.call(X),alt:(P=X.alt)==null?void 0:P.call(X),className:(l=X.className)==null?void 0:l.call(X),
onerror:X.onerror,onload:X.onload,style$:((R=X.style$)==null?void 0:R.call(X))||((L=X.style)==null?void 0:L.call(X)),color:(x=X.color)==null?void 0:x.call(X),width:(w6=X.width)==null?void 0:w6.call(X),height:(BY=X.height)==null?void 0:BY.call(X),"aria-hidden$":(f_=(kJ=X["aria-hidden$"])==null?void 0:kJ.call(X))!=null?f_:(Ss=X.ariaHidden)==null?void 0:Ss.call(X),draggable:(C_=X.draggable)==null?void 0:C_.call(X),"data-disabled$":(sq=(Fv=X["data-disabled$"])==null?void 0:Fv.call(X))!=null?sq:(Uh=X.dataDisabled)==
null?void 0:Uh.call(X),size:(cY=X.size)==null?void 0:cY.call(X)};return AcY(y,oq,(G=X.hideOn404)==null?void 0:G.call(X))};
return _.k(_.P0,null,_.k(_.rn,{when:function(){var G;return((G=t())==null?void 0:G.type)==="image"}},function(){return _.k(xk4,{data:function(){return t().image},
getSrc:{cb:function(G,y){var w=t().image.sources,z=t().config.isPreloaded,B=t().config.useWidth,V=t().config.targetWidth,b=t().config.targetHeight,e=t().config.preferredThumbnail;return _.ycJ(y,w,z,B,V,b,e)||""}},
config:function(){var G=t().config,y;for(y in G)G[y]===void 0&&delete G[y];return G},
lazy:X.renderLazy})}),_.k(_.rn,{when:function(){var G;
return((G=t())==null?void 0:G.type)==="icon"}},function(){return _.k(_.mw,{icon:function(){return t().iconName},
role:function(){return t().config.role},
className:function(){return t().config.className},
style:function(){return t().config.style$+";width: "+(t().config.width+"px;height: ")+(t().config.height+"px;color: ")+(t().config.color+";")},
ariaLabel:function(){return t().config["aria-label$"]},
ariaHidden:function(){return t().config["aria-hidden$"]},
dataDisabled:function(){return t().config["data-disabled$"]},
active:function(){return t().config.isToggled},
size:function(){return t().config.size}})}))},"d");
_.gr.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var fI4=function(X){return function(t){return _.k($sV,null,function(){var G=t.data(),y=_.R5(t.config);return _.k(bC,null,function(){return void X(G,y)})})}}(hgE),DUA=_.Fp(function(X){var t=function(y){var w,z=_.T7(function(T){w=m$(function(){for(var D=_.J(g()),h=D.next();!h.done;h=D.next()){h=Zfh(h.value);
h=typeof h==="string"?document.createTextNode(h):h;if(!(h instanceof Node)){D=new _.NJ("Part is not a node",h,typeof h);_.xA(D);break}T.appendChild(h)}})}),B=AH(function(){return UfY(y())},{isEqual:sww}),V=_.ex(X.config),b=function(){var T,D=B();
return!((T=V())==null||!T.ariaLabel)||!(D.commandRuns&&D.commandRuns.length!==0||D.paragraphStyleRuns&&D.paragraphStyleRuns.length!==0)},e=AH(V,{isEqual:C4h}),g=function(){var T=E2s(B(),e());
RW6(T,e());return B().content?xfE(B().content,T).parts:[]},F=!0;
_.Em(function(){B();e();if(F)F=!1;else{var T=g();Promise.resolve().then(function(){var D=z.value;if(D){D.innerText="";var h;(h=w)==null||h();w=_.Ea(D,function(){return _.k(qu0,{parts:T})})}})}},"YlhjWd");
return _.k("span",{el:z,class:function(){return B()&&ZAv(B(),V())},
dir:function(){var T;return((T=V())==null?0:T.userInput)?"auto":void 0},
"aria-label":function(){var T;return b()?(T=V())==null?void 0:T.ariaLabel:void 0},
role:function(){return b()?"text":void 0}})},G;
return((G=X.config)==null?0:G.renderedFromFormattedString)?t(X.text):_.k(_.d,{cond:X.text,then:t})},"e");
DUA.idomCompat=!0;_.eh=_.Fp(function(X){var t=_.ex(X.text),G=KIf(X);X.renderedFromFormattedString!==void 0&&(G.renderedFromFormattedString=!0);return _.A("attr_string_reactive")?_.k(DUA,{text:t,config:G}):_.k(_.d,{cond:function(){var y;return t()&&((y=UfY(t()))==null?void 0:y.content)},
then:function(){return _.k(fI4,{data:X.text,config:G})},
debugInstance:"Apcuac"})},"f");
_.eh.idomCompat=!0;var u5_=function(X,t,G){t=t===void 0?"unknown":t;G=G===void 0?{}:G;_.NJ.call(this,X+" ("+t+")",Object.assign({},{name:"YtWcwError",tagName:t},G));Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(u5_,_.NJ);_.rcJ=new WeakMap;_.pbG=!1;var ccY,N$h,WIG;_.bR=Symbol("hh");_.sd=Symbol("ih");ccY=Symbol("jh");N$h=new Set(Object.getOwnPropertyNames(Element.prototype));WIG=Symbol("kh");var MR4=_.Fp(function(X){return _.k("yt-attributed-string",{"aria-label":X.ariaLabel,hidden:X.hidden,id:X.id,class:X.className,"force-default-style":X.forceDefaultStyle},_.k(_.eh,{text:X.data,ariaLabel:X.ariaLabel,ellipsisTruncate:X.ellipsisTruncate,isOverlay:X.isOverlay,linkInheritColor:X.linkInheritColor,noPreWrap:X.noPreWrap,noWrap:X.noWrap,userInput:X.userInput,noEndpoints:X.noEndpoints,headerRuns:X.headerRuns}))},"g");
_.A("web_wiz_attributed_string")&&_.DW(MR4,"yt-attributed-string",{props:{ariaHidden:_.bR,ariaLabel:_.bR,className:_.bR,ellipsisTruncate:_.bR,isOverlay:_.bR,linkInheritColor:_.bR,noEndpoints:_.bR,noStyleRuns:_.bR,noLinkColor:_.bR,noPreWrap:_.bR,noWrap:_.bR,skipOnClick:_.bR,userInput:_.bR,headerRuns:_.bR,id:_.bR,data:_.bR,hidden:_.bR,forceDefaultStyle:_.bR,text:_.sd,stopPropagation:_.sd,disableUpgrade:_.sd,disable:_.sd,slot:_.sd}});var kZ=function(){return _.O.apply(this,arguments)||this};
_.S(kZ,_.O);kZ.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},hgE(this.data,this.config))};
_.E([_.q(BZ4),_.U("design:type",Object)],kZ.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],kZ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kZ.prototype,"ariaLabel",void 0);_.E([_.K(),_.U("design:type",Boolean)],kZ.prototype,"disable",void 0);_.E([_.K(),_.U("design:type",Boolean)],kZ.prototype,"ellipsisTruncate",void 0);_.E([_.K(),_.U("design:type",Boolean)],kZ.prototype,"isOverlay",void 0);
_.E([_.K(),_.U("design:type",Boolean)],kZ.prototype,"linkInheritColor",void 0);_.E([_.K(),_.U("design:type",Boolean)],kZ.prototype,"noPreWrap",void 0);_.E([_.K(),_.U("design:type",Boolean)],kZ.prototype,"noWrap",void 0);_.E([_.K(),_.U("design:type",Boolean)],kZ.prototype,"userInput",void 0);_.E([_.K(),_.U("design:type",Boolean)],kZ.prototype,"noEndpoints",void 0);_.E([_.K(),_.U("design:type",Array)],kZ.prototype,"headerRuns",void 0);
_.E([_.$F({is:"yt-attributed-string",disableElementRegistration:!0})],kZ);
_.A("web_wiz_attributed_string")||_.N(kZ,"yt-attributed-string",function(){if(IIB===void 0){var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
X.content.insertBefore(Qoe().content.cloneNode(!0),X.content.firstChild);IIB=X}X=IIB;return X},{mode:2});var XX4,$fq,LIV;XX4=function(){this.firstThumbnailLoaded=!1};
_.t3q=function(){$fq||($fq=new XX4);return $fq};
LIV=function(X){var t=_.t3q();t.firstThumbnailLoaded||(t.firstThumbnailLoaded=!0,_.ls("ftl",X))};
XX4.prototype.reset=function(){this.firstThumbnailLoaded=!1};var ENl=0,ifV=new WeakMap,mUh=0,ZW=new Set;var Goe,yFS=function(){return Goe!==void 0?Goe:Goe=document.createElement("template")};
document.head.appendChild(yFS().content);var wXe;var xU0,M8h,dG;_.KX=_.tA.caches;dG=function(){};
dG.prototype.open=function(X){return _.KX.open(zWP(X))};
dG.prototype.has=function(X){return _.KX.has(zWP(X))};
dG.prototype.delete=function(X){return _.KX.delete(zWP(X))};
dG.prototype.match=function(X,t){var G=this,y,w,z,B,V,b;return _.n(function(e){switch(e.nextAddress){case 1:return e.yield(G.keys(),2);case 2:y=e.yieldResult,w=_.J(y),z=w.next();case 3:if(z.done){e.jumpTo(5);break}B=z.value;return e.yield(G.open(B),6);case 6:return V=e.yieldResult,e.yield(V.match(X,t),7);case 7:if(b=e.yieldResult)return e.return(b);z=w.next();e.jumpTo(3);break;case 5:return e.return()}})};
var XAG=function(){};
_.S(XAG,dG);var zWP=function(X){if(X.includes(":"))throw Error("nh`"+X);return X+":"+_.ps("CacheStorage get")};
XAG.prototype.keys=function(){var X,t,G,y,w,z,B,V,b;return _.n(function(e){if(e.nextAddress==1)return X=[],t=_.ps("CacheStorage keys"),e.yield(_.KX.keys(),2);G=e.yieldResult;y=_.J(G);for(w=y.next();!w.done;w=y.next())z=w.value,B=_.l6V(z),V=B.originalName,b=B.datasyncId,b===t&&X.push(V);return e.return(X)})};var eV=function(){var X=_.O.apply(this,arguments)||this;X.objectURL=null;X.loadTime=Infinity;return X};
_.S(eV,_.O);_.H=eV.prototype;_.H.renderIdom=function(){a6h(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&FIf(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.H.objectFitToContentMode=function(X){switch(X){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.H.logThumbnailFailureVe=function(){var X=_.ai(197497);_.Cc(_.Pj(),X);var t=_.lw();t&&X&&t&&_.o$(t,[X])};
_.H.loadImageFromCacheIfExists=function(X){var t=this,G=X.target;(G==null?0:G.src)&&t4G(G.src).then(function(y){t.objectURL=_.xg(y).toString();t.setSrc(G,t.objectURL)}).catch(function(){})};
_.H.onError=function(X){var t=this;if(_.A("web_use_cache_for_image_fallback")){var G=X.target;G&&t4G(G.src).then(function(y){t.objectURL=_.xg(y).toString();t.setSrc(G,t.objectURL)}).catch(function(){_.A("kevlar_woffle_log_thumbnail_failure_ve")&&t.logThumbnailFailureVe();
_.A("kevlar_woffle_fallback_image")&&t.setSrc(G,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.H.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.H.setConfig=function(){var X=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(t){X.loadImageFromCacheIfExists(t);X.revokeObjectURL();vN_(X.hostElement)},
onerror:function(t){X.onError(t)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.A("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.H.setSrc=function(X,t){t&&(X.src=t)};
_.E([_.q(BZ4),_.U("design:type",Object)],eV.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eV.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],eV.prototype,"alt",void 0);_.E([_.K(),_.U("design:type",Boolean)],eV.prototype,"ftlEligible",void 0);_.E([_.K(),_.U("design:type",Number)],eV.prototype,"height",void 0);_.E([_.K(),_.U("design:type",Boolean)],eV.prototype,"notifyOnLoaded",void 0);
_.E([_.K(),_.U("design:type",Boolean)],eV.prototype,"notifyOnUnloaded",void 0);_.E([_.K(),_.U("design:type",String)],eV.prototype,"objectFit",void 0);_.E([_.K(),_.U("design:type",String)],eV.prototype,"objectPosition",void 0);_.E([_.K(),_.U("design:type",String)],eV.prototype,"preferredThumbnail",void 0);_.E([_.K(),_.U("design:type",Boolean)],eV.prototype,"preserveHeight",void 0);_.E([_.K(),_.U("design:type",Boolean)],eV.prototype,"preserveWidth",void 0);
_.E([_.K({value:!0}),_.U("design:type",Boolean)],eV.prototype,"useWidth",void 0);_.E([_.K({value:function(){return!_.X3("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.U("design:type",Boolean)],eV.prototype,"shouldRenderLazy",void 0);_.E([_.K(),_.U("design:type",Number)],eV.prototype,"width",void 0);_.E([_.$F({is:"yt-image",disableElementRegistration:!0})],eV);
_.N(eV,"yt-image",function(){if(wXe===void 0){var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);X.content.insertBefore(yFS().content.cloneNode(!0),X.content.firstChild);
wXe=X}X=wXe;return X},{mode:2});var jV=function(){return _.O.apply(this,arguments)||this};
_.S(jV,_.O);jV.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var X=_.wr(this.data.onVisibleCommand);X&&this.ytComponentBehavior.resolveCommand(X)}};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],jV.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.JC.YtVisibilityBehavior),_.U("design:type",Object)],jV.prototype,"ytVisibilityBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],jV.prototype,"data",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],jV);
_.N(jV,"yt-bumper-user-edu-content-view-model",function(){if(H0q===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;zhq===void 0&&(zhq=document.createElement("template"));var y=zhq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);H0q=X}X=H0q;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var HA4;var o2R,JFS=function(){if(o2R!==void 0)return o2R;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;HA4===void 0&&(HA4=document.createElement("template"));var y=HA4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return o2R=X};var B3J;_.gG={};B3J=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"]);_.gG.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var X=this.getContext_();return X?X.getTaskManager():_.vz},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var X=_.Yt(this.hostElement,"yt-get-context-provider",{});X.detail&&X.detail.contextProvider?this.cachedProviderNode_=X.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return B3J.has(this.hostElement.localName)},
getNetworkManager:function(){var X=this.getContext_();if(X)return X.getNetworkManager()}};var ofE,n2q,bAq,V3R;_.FP=function(X){var t=n2q.get(X);if(t&&(t=t.pop()))return V3R++,t;bAq++;try{var G=document.createElement(X)}catch(y){throw new _.NJ("ElementPool failed to create element",X,y.message);}return G};
ofE=function(X){var t=X.is;if(t){var G=n2q.get(t);G||(G=[],n2q.set(t,G));var y=_.Md("ELEMENT_POOL_CONFIG")||{};G.length>=(y[t]!==void 0?y[t]:_.Md("ELEMENT_POOL_DEFAULT_CAP",0))||G.push(X)}else _.Mj(new _.NJ("Element pool should only handle custom elements:",X.nodeName))};
n2q=new Map;bAq=0;V3R=0;var Od=new WeakMap,HwV=new WeakMap;var dfh;_.Tw=function(X,t,G){G=G===void 0?_.va():G;this.JSC$13671_defaultPriority=X;this.signal=t;this.scheduler=G;this.nextJobDescriptor=0;this.JSC$13671_parkedJobs=[];this.scheduledJobs=new Map};
_.AC=function(X,t){if(t){var G=_.wv();X.signal&&!_.zm(G,X.signal)?(G.addListener(X.signal,function(){X.processSignal()}),X.JSC$13671_parkedJobs.push({job:t,
priority:void 0})):koo(X,t)}};
dfh=function(X,t){if(t!==X.JSC$13671_defaultPriority){X.JSC$13671_defaultPriority=t;for(var G=_.J(X.scheduledJobs.values()),y=G.next();!y.done;y=G.next())y=y.value,X.scheduler.cancelJob(y.jobId),y.jobId=X.scheduler.addJob(y.jobWrapper,t)}};
_.Tw.prototype.flushJobs=function(){dfh(this,10);this.processSignal()};
_.Tw.prototype.cancel=function(){for(var X=_.J(this.scheduledJobs),t=X.next();!t.done;t=X.next()){var G=_.J(t.value);t=G.next().value;G=G.next().value;this.scheduler.cancelJob(G.jobId);this.scheduledJobs.delete(t)}this.JSC$13671_parkedJobs=[]};
_.Tw.prototype.processSignal=function(){for(var X=_.J(this.JSC$13671_parkedJobs),t=X.next();!t.done;t=X.next())t=t.value,koo(this,t.job,t.priority);this.JSC$13671_parkedJobs=[]};
var koo=function(X,t,G){G=G||X.JSC$13671_defaultPriority;if(G===10)qI(t);else{var y=X.nextJobDescriptor++,w=function(){t();X.scheduledJobs.delete(y)},z=X.scheduler.addJob(w,G);
X.scheduledJobs.set(y,{jobWrapper:w,jobId:z,priority:G})}};_.FE(V4w);var bwV={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};yLf({beforeVisit:function(X){if(hm.has(X.type)){var t;(t=X.props).idomKey!=null||(t.idomKey=X.type)}else X.type.TAG_NAME&&(Dv=X.type.TAG_NAME)},
afterRender:function(X,t){var G;Dv=(G=t==null?void 0:t.type)!=null?G:""},
didPatch:function(){Dv=""}});var eWq;_.YZ={};eWq={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.YZ.YtRendererstamperBehavior=[_.gG.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 X in this.stampDom){var t=this.stampDom[X];t&&t.id&&this.addReactiveSchema({type:"observe",method:{methodName:yRf(t.id),args:[{type:"wildcard",path:X}]}})}else{(X=(this.constructor.generatedFrom||this).observers)||(X=[]);for(t in this.stampDom){var G=this.stampDom[t];G&&G.id&&X.push(yRf(G.id)+"("+t+".*)")}this.constructor.generatedFrom.observers=X}},
addStampDomObserverFns_:function(){for(var X in this.stampDom){var t=this.stampDom[X];t.id?(this[yRf(t.id)]=this.rendererStamperObserver_.bind(this,X,t.id),this.hasDataPath_[X]=!1):(t=new _.NJ("Bad rendererstamper config",this.is+":"+X),_.xA(t))}},
rendererStamperObserver_:function(X,t,G){if(G.path==X){if(G.value===void 0&&!this.hasDataPath_[X])return;this.hasDataPath_[X]=G.value!==void 0}this.rendererStamperApplyChangeRecord_(X,t,G)},
rendererStamperApplyChangeRecord_:function(X,t,G){var y=this.renderJobsMap_[t],w=null;X==G.path?(G=G.value,_.xJ(G)||(G=G===void 0||G===null?[]:[G]),X=this.stampDom[X],X.mapping&&(w=this.stampDomArray_.bind(this,G,t,X.mapping,X.reuseComponents,X.events,X.stamperStableList)),y&&y.cancel(),G=X.usePageScheduler?this.getTaskManager():void 0,y||X.initialRenderPriority==void 0)?X.renderPriority==void 0||y||(y=new _.Tw(X.renderPriority,X.waitForSignal,G),this.renderJobsMap_[t]=y):(y=new _.Tw(X.initialRenderPriority,
X.waitForSignal,G),this.renderJobsMap_[t]=y,w=function(z,B){z();dfh(B,10)}.bind(this,w,y)):w=X+".splices"==G.path?this.stampDomArraySplices_.bind(this,X,t,G.value):this.forwardRendererStamperChanges_.bind(this,X,t,G);
y?_.AC(y,w):w()},
forwardRendererStamperChanges_:function(X,t,G){var y=G.path.slice(X.length+1),w=this.getStampContainer_(t),z=y.indexOf("."),B=y.substring(0,z),V=!1,b=0,e=parseInt(B,0);if(B[0]=="#"){V=parseInt(B.substring(1),0);e=this.get(X);var g=this.get([X,B]);e[V]==g?b=V:b=e.indexOf(g);V=!0}else isNaN(e)||(b=e,V=!0);V&&(y=y.substring(B.length+1),z=y.indexOf("."));B=_.Es(w).children[b];var F;if(w=(F=B==null?void 0:B.polymerController)!=null?F:B)y="data"+y.slice(z),typeof w.notifyPath!=="function"?_.Mj(new _.NJ("notifyPath missing",
this.is+": "+X+", "+t)):G.value?w.notifyPath(y,G.value):w.notifyPath(y)},
stampDomArraySplices_:function(X,t,G){if(G&&G.indexSplices){var y=this.getStampContainer_(t);if(y){for(var w=_.Es(y),z=z0w(this.stampDom[X].reuseComponents),B=G.indexSplices.length,V=0;V<B;V++){for(var b=G.indexSplices[V],e=w.children[b.index],g=b.removed.length;g>0;g--)e&&e.parentElement&&(_.Es(e.parentElement).removeChild(e),z&&ofE(e),e=w.children[b.index]);g=this.stampDom[X].mapping;for(var F=b.index+b.addedCount,T=document.createDocumentFragment(),D=z,h=b.index;h<F;h++){var u=b.object[h],W=GUf(g,
u);if(W){var c=g[W];u=u[W];W=this.getComponentName_(c,u);var P=e?Od.has(e):!1;D&&e&&e.is==W&&P?(W=e,this.telemetry_.reuse++,e=e.nextElementSibling):D&&e&&P?(W=this.createComponent_(c,u,z),P=_.Es(e).nextElementSibling,w.insertBefore(W,P),BW0(this.is,w,e,z),e=P):(D=!1,W=this.createComponent_(c,u,z),T.appendChild(W));this.deferRenderStamperBinding_(W,c,u)}else c=new _.NJ("Unimplemented type",X,t,y.tagName,Object.keys(u)[0]),_.xA(c)}w.insertBefore(T,e)}this.flushRenderStamperComponentBindings_();this.stampDom[X].events&&
_.Yt(this.hostElement,"yt-rendererstamper-finished",{container:y})}else X=new _.NJ("Container object not found",t,this.hostElement?this.hostElement.is:""),_.xA(X)}},
stampDomArray_:function(X,t,G,y,w,z){var B=this.getStampContainer_(t);if(B)if(t=_.Es(B),y=z0w(y),X){var V=0,b=0,e;if(z=z===void 0?_.X3("STAMPER_STABLE_LIST",!1):z||!1)for(e=t.firstElementChild;e&&!Od.has(e)&&X.length>b;){z=X[b];var g=GUf(G,z);if(g){if(this.getComponentName_(G[g],z[g])!=e.is){var F=this.createComponent_(G[g],z[g],y),T=_.Es(e).nextElementSibling;T?t.insertBefore(F,T):t.appendChild(F);BW0(this.is,t,e,y);e=F}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(e,G[g],z[g]);V++;
b++;e=_.Es(e).nextElementSibling}else b++}nfl(this.is,t,V,y);V=e;if(X.length>b){z=document.createDocumentFragment();for(g=X.length;b<g;b++)if(F=X[b],T=GUf(G,F))e=this.createComponent_(G[T],F[T],y),this.deferRenderStamperBinding_(e,G[T],F[T]),z.appendChild(e);V&&_.Es(V).parentNode&&e&&!Od.has(e)?t.insertBefore(z,V):t.appendChild(z)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();w&&_.Yt(this.hostElement,"yt-rendererstamper-finished",{container:B})}else nfl(this.is,t,0,
y);else X=new _.NJ("Container object not found",t,this.hostElement?this.hostElement.is:""),_.xA(X)},
getStampContainer_:function(X){return this.$&&this.$[X]||_.Sm(this.hostElement).querySelector("#"+X)},
getComponentName_:function(X,t){return typeof X==="string"?X:X.matcher?X.matcher.call(this,t):X.component},
createComponent_:function(X,t,G){X=this.getComponentName_(X,t);try{var y=Zv.has(X)||hm.has(X);if(G&&!y){var w=_.FP(X);try{_.Kd(w)}catch(z){G="Failed to clear styles for "+X+".",z.message&&(G+=" Original error: "+z.message),_.Mj(new _.NJ(G))}}else w=document.createElement(X)}catch(z){return w="YtRendererStamperBehavior failed to create "+X+".",z.message&&(w+=" Original description: "+z.message),z.message="YtRendererStamperBehavior failed to create element",_.XE(z,w),eWq.hasOwnProperty(X)?_.Mj(z):_.xA(z),
document.createElement("SPAN")}this.telemetry_.create++;return w},
deferRenderStamperBinding_:function(X,t,G){this.deferredBindingTasks_.push({component:X,typeOrConfig:t,data:G})},
flushRenderStamperComponentBindings_:function(){for(var X=0,t=this.deferredBindingTasks_.length;X<t;X++){var G=this.deferredBindingTasks_[X];if(!G)break;var y=void 0,w=void 0,z=void 0,B=void 0,V=G.component,b=G.typeOrConfig;G=G.data;var e=(B=V.polymerController)!=null?B:V;B=V.loggingStatus;try{B&&(B.isRendererStamper=!0);if(typeof b!=="string"){for(z in b.attributes)b.attributes[z]===!0?V.setAttribute(z,""):b.attributes[z]===!1?V.removeAttribute(z):V.setAttribute(z,b.attributes[z]);for(w in b.params)e[w]=
b.params[w],V!==e&&ie(V.localName,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(y in b.properties){var g=b.properties[y];if(g){var F=wAw(g);e[y]=this.get(F);V!==e&&ie(V.localName,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(y==="on-tap"||y==="on-click"){var T=this.get(F);V.addEventListener("click",T);HwV.set(V,{property:y,listener:{type:"element",eventName:"click",handler:T}})}}else{var D=new _.NJ("Undefined property binding",y);_.xA(D)}}}if(b.classListBinding){var h=wAw(b.classListBinding),
u=h?this[h]:null;if(u)for(y=0;y<u.length;y++)_.Zk(V,u[y],!0)}e.data=G}finally{B&&(B.isRendererStamper=!1)}if(y=Od.get(V))V.hidden=!1,Od.delete(V),_.vz.cancelJob(y)}this.deferredBindingTasks_.length=0}}];_.sb={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(X){for(var t=_.Hq.getInstance(),G=_.J(Object.keys(X)),y=G.next();!y.done;y=G.next()){var w=y.value;y=X[w];if(this&&this[y]){var z=t.actionRoutingMap.get(w);z||(z=new Map,t.actionRoutingMap.set(w,z));t.registerActionHandler(this,w,this[y].bind(this),z)}else w=Error("id"),w.params=y,_.$x(w)}},
unregisterActionMap:function(X){_.Ja(_.Hq.getInstance(),X,this)}}]};var Ii=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_"+(_.A("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.A("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.A("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",
path:_.A("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:_.A("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:_.A("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var QL;var Wl=new Map;var SvY=window.matchMedia("(forced-colors: active)").matches;var jbh;var g2R;var F8Y=new _.FB("LOTTIE_LOADER_TOKEN");_.D8=_.Fp(function(X){var t=X.data;var G=X.className;var y=X.animationName;var w=X.animationRef;var z=X.elRefForInterop;var B=_.VN("lottie-component"),V;_.Um(function(){var e;return void((e=V)==null?void 0:e.destroy())});
var b;_.Em(function(){var e=_.R5(y);if(e!==b){b=e;var g=Object.assign({},{animationName:e,animationRef:_.R5(w)},_.R5(t));try{_.gw().resolve(F8Y)().then(function(D){var h;(h=V)==null||h.destroy();var u,W;h=(W=z==null?void 0:(u=z())==null?void 0:u.value)!=null?W:B.value;u=g.animationRef;W=g.listeners;D=D.loadAnimation(Object.assign({},{container:h},g.animationConfig));u&&(u.lottieEl=D);if(W)for(h=_.J(Object.entries(W)),u=h.next();!u.done;u=h.next())W=_.J(u.value),u=W.next().value,(W=W.next().value)&&
D.addEventListener(u,W);V=D})}catch(D){e=D;
var F="LottieComponent error.";e.message&&(F+=" Original description: "+e.message);_.XE(e,F);_.Mj(e);var T;((T=g.listeners)==null?0:T.error)&&g.listeners.error(e)}}},"lbhvPc");
return _.k(SsY,{cond:function(){return!(z==null?0:z())},
then:function(){return _.k("lottie-component",{class:_.cl("ytLottieComponentHost",G),el:B})}})},"h");_.DW(_.Fp(function(X){return _.k("ytd-lottie-player",{id:X.id,hidden:X.hidden,class:X.className,"aria-label":X.ariaLabel,style:"display: block;"},_.k(_.D8,{data:X.data,animationName:function(){var t;return((t=X.data().animationConfig)==null?void 0:t.name)||""},
animationRef:function(){return X.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.bR,
id:_.bR,hidden:_.bR,className:_.bR,ariaLabel:_.bR}});var SV=function(){var X=_.O.apply(this,arguments)||this;X.animationRef={};X.delhiIconsEnabled=_.A("enable_web_delhi_icons");return X};
_.S(SV,_.O);_.H=SV.prototype;
_.H.handlePropertyChange=function(){var X=this.animatedIcon,t=this.active,G=this.isDarkTheme;if(X){var y=this.previousActive!==t;this.previousActive=t;this.animationRef.lottieEl?y&&this.toggleAnimation(t,X.totalFrames):t?this.initializeAnimationAsToggled(X.lottiePlayerProps,X.totalFrames):this.initializeAnimationAsUntoggled(X.lottiePlayerProps);X.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=X.type;this.lottiePlayerProps=this.computeLottiePlayerProps(X,G)}};
_.H.computeLottiePlayerProps=function(X,t){var G=this.deepCloneLottiePlayerProps(X);t?(t=X.nameDarkTheme,X=X.pathDarkTheme):(t=X.name,X=X.path);G.animationConfig.name=t;(t=Wl.get(X))?G.animationConfig.animationData=t:G.animationConfig.path=X;return G};
_.H.initializeAnimationAsToggled=function(X,t){X.animationConfig.initialSegment=[t-1,t]};
_.H.initializeAnimationAsUntoggled=function(X){X.animationConfig.initialSegment=void 0};
_.H.toggleAnimation=function(X,t){if(X){var G;(G=this.animationRef.lottieEl)==null||G.playSegments([0,t],!0)}else{var y;(y=this.animationRef.lottieEl)==null||y.playSegments([0,1],!0)}};
_.H.deepCloneLottiePlayerProps=function(X){var t=Object.assign({},X.lottiePlayerProps.animationConfig);X=Object.assign({},X.lottiePlayerProps);X.animationConfig=t;return X};
SV.prototype.handlePropertyChange=SV.prototype.handlePropertyChange;_.E([_.K(),_.U("design:type",Object)],SV.prototype,"animatedIcon",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],SV.prototype,"active",void 0);_.E([_.K(),_.U("design:type",Boolean)],SV.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],SV.prototype,"animatedIconType",void 0);_.E([_.K(),_.U("design:type",Boolean)],SV.prototype,"previousActive",void 0);
_.E([_.K(),_.U("design:type",Object)],SV.prototype,"lottiePlayerProps",void 0);_.E([_.K(),_.U("design:type",Object)],SV.prototype,"animationRef",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],SV.prototype,"delhiIconsEnabled",void 0);_.E([_.cW("animatedIcon","active","isDarkTheme"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],SV.prototype,"handlePropertyChange",null);_.E([_.$F({is:"yt-animated-icon",disableElementRegistration:!0})],SV);
_.N(SV,"yt-animated-icon",function(){if(g2R===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;jbh===void 0&&(jbh=document.createElement("template"));var y=jbh;G.call(t,y.content.cloneNode(!0),X.content.firstChild);g2R=X}X=g2R;return X},{mode:2});var T34;var AFS;var Ow6=_.Fp(function(X){var t=_.VN("span"),G=v0(function(){return{value:null}});
_.Um(function(){var w;(w=G.value)==null||w.cancel()});
var y=_.qt(X.data,{equals:function(w,z){return w.iconName===z.iconName&&w.iconStyle===z.iconStyle&&w.iconSize===z.iconSize&&w.iconSetName===z.iconSetName&&w.iconSelected===z.iconSelected}},"aoiXAb");
_.Em(function(){var w,z=(w=X.options)==null?void 0:w.call(X);KsV(t,G,y(),z)},"QXgxJd");
return _.k("span",{class:"yt-icon-shape",el:t})},"j");
Ow6.idomCompat=!0;var bJ0=["youtube_fill","youtube_outline"];var YgR=new _.Rx({type:"iconset",value:void 0}),hC=function(){var X=_.O.apply(this,arguments)||this;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.iconName="";X.iconsetName="yt-icons";X.iconset=null;X.missingIconSet=!1;X.iconType=null;X.iconShapeDataSignal=_.sm(void 0,void 0,"RQ9kUb");X.renderingOptionsSignal=_.sm({iconWidth:"100%",iconHeight:"100%",iconFilter:X.iconFilter},void 0,"qtx8Ef");X.wizHasRendered=!1;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(hC,_.O);hC.prototype.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.isDarkTheme=X)};
hC.prototype.handlePropertyChange=function(){var X=this,t,G,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c;return _.n(function(P){switch(P.nextAddress){case 1:if(t=!X.icon&&!X.iconName||!X.isAttached)return P.return();G=X;y=G.icon;w=G.size;z=G.defaultToFilled;B=G.active;V=G.targetContainer;X.toggleContainerClass(V);_.A("kevlar_use_wil_icons")&&y&&(b=JkV(y),X.iconType=b.length?b[1]:null);if(y){P.jumpTo(2);break}X.iconsetName="";X.iconName="";return P.yield(X.renderIcon(V,y),3);case 3:return P.return();case 2:e=sbo(y);
g=JkV(e);g.length&&(X.iconsetName=g[0],X.iconName=g[1]);if(!_.A("kevlar_use_wil_icons")){P.jumpTo(4);break}F=hC;T=Dft;D=X.iconType;h=X.active;u=X.defaultToFilled;W=X.size;c=X.iconsetName;return P.yield(Sgh(),6);case 6:return P.yield(T.call(F,D,h,u,W,c,P.yieldResult),5);case 5:X.iconShapeData=P.yieldResult;case 4:if(X.shouldRenderIconShape(V)){P.jumpTo(7);break}return P.yield(X.determineIconSet(e,B,z,w,V),7);case 7:return P.yield(X.renderIcon(V,y),0)}})};
hC.prototype.toggleContainerClass=function(X){X?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var sbo=function(X){return!_.A("default_to_innertube_icon")||X.indexOf(":")>0?X:_.Q2(X)};
_.H=hC.prototype;_.H.determineIconSet=function(X,t,G,y){var w=this;return _.n(function(z){return z.nextAddress==1?_.A("kevlar_system_icons")||_.Md("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Md("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?z.yield(w.switchToYtSysIconset(X,t,G,y),3):z.jumpTo(2):z.nextAddress!=2?z.return():z.yield(w.useYtSysIconsetForMissingIcons(X,t,G,y),0)})};
_.H.switchToYtSysIconset=function(X,t,G,y){var w=this,z,B,V,b,e,g,F;return _.n(function(T){switch(T.nextAddress){case 1:if(!X||w.iconsetName!=="yt-icons"&&w.iconsetName!=="yt-sys-icons"){T.jumpTo(0);break}z=JkV(X);B=z[1];B=_.Fvl(B);_.A("enable_polymer_icons_replace_underscores_dash")&&B.includes("_filled")&&(B=B.replace(/_filled/g,"-filled"));return T.yield(u$(B,!0),3);case 3:return V=T.yieldResult,T.yield(u$(B,!1),4);case 4:if((b=T.yieldResult)||t&&V)w.iconsetName="yt-sys-icons";w.iconName=w.getIconName(B,
t,G,b,V);if(y===24){T.jumpTo(0);break}e="yt-sys-icons"+y+":"+w.iconName;return T.yield(u$(e,!1,!0),6);case 6:return g=T.yieldResult,T.yield(u$(e,!0,!0),7);case 7:F=T.yieldResult;w.iconName=w.getIconName(B,t,G,g,F);if(!t&&g||t&&F)w.iconsetName="yt-sys-icons"+y;_.W$(T)}})};
_.H.getIconName=function(X,t,G,y,w){X.includes("-filled")&&(X=X.replace("-filled",""));return w&&(t||G)?X+"-filled":X};
_.H.useYtSysIconsetForMissingIcons=function(X,t,G,y){var w=this,z,B;return _.n(function(V){if(V.nextAddress==1)return w.iconsetName!=="yt-icons"?V.jumpTo(0):V.yield(u$(w.iconName,!1,!1,!0),3);if(V.nextAddress!=4)return z=V.yieldResult,V.yield(u$(w.iconName,!1),4);B=V.yieldResult;if(z||!B)return V.jumpTo(0);w.iconsetName="yt-sys-icons";return V.yield(w.switchToYtSysIconset(X,t,G,y),0)})};
_.H.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var Sgh=function(){return _.n(function(X){try{return X.return(_.gw().resolve(_.IL))}catch(t){return X.return(new Promise(function(G){_.wv().parkOrScheduleJob(function(){G(_.gw().resolve(_.IL))},2,"ci")}))}})},Dft=function(X,t,G,y,w,z){y=y===void 0?24:y;
if(X){X=X.toLowerCase();var B=X.endsWith("_filled")||X.endsWith("-filled");t={iconName:X,iconStyle:(t===void 0?0:t)||(G===void 0?0:G)||B?"youtube_fill":"youtube_outline",iconSize:y,iconSetName:w===void 0?"yt-icons":w};G=!!z.resolveIcon(t);G||(t.iconSize=void 0,G=!!z.resolveIcon(t));!G&&B&&(t.iconName=X.substring(0,X.length-7),t.iconSize=y,G=!!z.resolveIcon(t),G||(t.iconSize=void 0,G=!!z.resolveIcon(t)));G||(t.iconStyle=void 0,G=!!z.resolveIcon(t));G||_.Mj(new _.NJ("Icon not supported",{iconName:t.iconName,
iconStyle:t.iconStyle,iconSize:t.iconSize,iconType:X}));return G?t:void 0}};
_.H=hC.prototype;_.H.shouldRenderIconShape=function(X){if(!_.A("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;X=this.getContainer(X);return!h0Y(X,this.icon)};
_.H.renderIcon=function(X,t){var G=this,y,w,z,B,V,b,e,g;return _.n(function(F){switch(F.nextAddress){case 1:if(t&&G.icon!==t)return F.return();y=G.getContainer(X);w=h0Y(y,G.icon);if(G.shouldRenderIconShape(X)&&G.iconType)return G.applyIconShape(w,y),F.return();G.removeIconShape();if(!y)return F.return();G.iconName===""&&G.iconset&&y&&(G.removeStaticIcon(G.iconset,y),w&&G.removeAnimatedIcon(y));if(G.iconName===""&&G.iconset||!G.iconsetName||!YgR)return F.return();G.iconset=YgR.byKey(G.iconsetName);
if(!G.iconset)return G.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Ik(G,G.onIconsetAdded)),F.return();G.missingIconSet&&(G.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Ik(G,G.onIconsetAdded)));B=(z=w||G.isAnimatedIcon?D$6(G.icon):void 0)&&!z.lazyLoad;b=z&&((V=z)==null?void 0:V.lazyLoad)&&(z.lottiePlayerProps.animationConfig.animationData?!0:Wl.get(G.isDarkTheme?z.pathDarkTheme:z.path)?!0:!1);if(B||b)return G.applyAnimatedIcon(y,z,G.iconset),F.return();if(b||
(e=z)==null||!e.lazyLoad){F.jumpTo(2);break}g=qvV(z,G.isDarkTheme);G.applyStaticIcon(G.iconset,y,G.iconName,X,w);return F.yield(g,3);case 3:return F.yield(G.renderIcon(G.targetContainer,G.icon),4);case 4:return F.return();case 2:G.applyStaticIcon(G.iconset,y,G.iconName,X,w),_.W$(F)}})};
_.H.getContainer=function(X){var t,G=(t=qKh(this.hostElement))==null?void 0:t.host;t=!!G&&!!G.polymerController;if(!X||t)return X?this.getTargetContainer(X,G):this.hostElement};
_.H.getTargetContainer=function(X,t){var G=_.Sm(t).querySelector("#"+X);G||(X=new _.NJ("yt-icon container missing",t.is,X),_.xA(X));return G};
_.H.applyStaticIcon=function(X,t,G,y,w){w&&this.removeAnimatedIcon(t);this.removeIconShape();w=w&&!!this.iconType&&!!this.iconShapeData&&_.A("kevlar_use_wil_icons");try{w?this.applyIconShape(!1,t):X.applyIcon(t,G)}catch(z){this.handleError(z,y,t)}};
_.H.applyIconShape=function(X,t){this.iconset&&t&&(this.removeStaticIcon(this.iconset,t),X&&this.removeAnimatedIcon(t));X={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var G=_.J(this.iconShapeDataSignal);t=G.next().value;G=G.next().value;var y=_.J(this.renderingOptionsSignal),w=y.next().value;y=y.next().value;G(this.iconShapeData);y(X);if(!this.wizHasRendered)for(this.wizHasRendered=!0,X=_.J(uCE(t,w)).next().value;X.firstChild;)_.Sm(this.hostElement).appendChild(X.firstChild)};
_.H.removeIconShape=function(){if(_.A("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.H.removeStaticIcon=function(X,t){X.removeIcon(t)};
_.H.applyAnimatedIcon=function(X,t,G){this.removeStaticIcon(G,X);this.removeIconShape();var y;G=this.animatedIconElement&&((y=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:y.type)===t.type;if(this.animatedIconElement&&G){this.animatedIconElement.polymerController.animatedIcon=t;var w;((w=this.animatedIconElement)==null?void 0:w.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(X),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=t,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.A("kevlar_use_wil_icons")?X.insertBefore(this.animatedIconElement,X.childNodes[0]):(X=_.Sm(X),X.insertBefore(this.animatedIconElement,X.childNodes[0]))};
_.H.removeAnimatedIcon=function(X){_.A("kevlar_use_wil_icons")?this.animatedIconElement&&X.contains(this.animatedIconElement)&&X.removeChild(this.animatedIconElement):(X=_.Sm(X),this.animatedIconElement&&X.contains(this.animatedIconElement)&&X.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.H.handleError=function(X,t,G){_.XE(X,this.iconName,t,G);t=h0Y(G,this.icon);var y=!1;window.location.href.includes("JpymaW6Lh2w")?y=!0:G._svgIcon&&(G=(G=G._svgIcon.parentNode)?G.tagName:"unknown",_.XE(X,G),G==="YT-ICON"&&X.name==="NotFoundError"?y=!0:X.name==="NotFoundError"&&t&&(y=!0));y?_.Mj(X):_.xA(X)};
_.ke.Object.defineProperties(hC,{template:{configurable:!0,enumerable:!0,get:function(){if(AFS===void 0){var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;
T34===void 0&&(T34=document.createElement("template"));var y=T34;G.call(t,y.content.cloneNode(!0),X.content.firstChild);AFS=X}X=AFS;return X}}});
hC.prototype.handlePropertyChange=hC.prototype.handlePropertyChange;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],hC.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",String)],hC.prototype,"icon",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],hC.prototype,"active",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],hC.prototype,"defaultToFilled",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],hC.prototype,"isAnimatedIcon",void 0);
_.E([_.K({value:24}),_.U("design:type",Number)],hC.prototype,"size",void 0);_.E([_.K({value:""}),_.U("design:type",String)],hC.prototype,"targetContainer",void 0);_.E([_.K(),_.U("design:type",Object)],hC.prototype,"animatedIconElement",void 0);_.E([_.K(),_.U("design:type",Object)],hC.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],hC.prototype,"ariaHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],hC.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],hC.prototype,"role",void 0);_.E([_.K(),_.U("design:type",String)],hC.prototype,"style",void 0);_.E([_.K(),_.U("design:type",String)],hC.prototype,"iconFilter",void 0);_.E([_.cW("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype",Promise)],hC.prototype,"handlePropertyChange",null);_.E([_.$F({is:"yt-icon",noInjection:!0})],hC);var hWB;var ZA4=function(){var X=document.body,t=X.appendChild;if(hWB===void 0){var G=document.createElement("template");_.Z(G,'\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>');
hWB=G}G=hWB;t.call(X,G.content)};
document.body?ZA4():window.addEventListener("DOMContentLoaded",ZA4);var qgq,CIS=function(){return qgq!==void 0?qgq:qgq=document.createElement("template")};
document.head.appendChild(CIS().content);var K8q,OAR=function(){return K8q!==void 0?K8q:K8q=document.createElement("template")};
document.head.appendChild(OAR().content);var uzJ;_.Z8=new _.FB("KEY_MANAGER_TOKEN");var pA_={duration:1E3,easing:"ease",fill:"forwards"};_.FE(cRV);var NWv={duration:1E3,easing:"ease",fill:"forwards"},W8o=_.Fp(function(X){var t=_.nl("animated-rolling-character"),G=void 0,y=function(){var w,z;return bs((w=X.character)==null?void 0:w.call(X))||bs((z=X.previousCharacter)==null?void 0:z.call(X))};
_.Em(function(){if(X.marginMultiplier()){var w;(w=G)==null||w.cancel();if(y()){var z;w=((z=X.previousCharacter)==null?0:z.call(X))?Number(X.previousCharacter())+10:X.rollUp()?0:30;var B;if((B=X.shouldAnimate)==null||!B.call(X)){var V,b;w-=rRA((V=X.character)==null?void 0:V.call(X),(b=X.previousCharacter)==null?void 0:b.call(X),X.rollUp(),w)}}else{w=X.rollUp()?0:2;var e;(e=X.shouldAnimate)!=null&&e.call(X)||(z=w,B=X.rollUp()?-1:1,w=z-B)}t.value.style.marginTop="-"+w*X.marginMultiplier()+"px";var g;
if((g=X.shouldAnimate)==null?0:g.call(X)){var F,T;G=Pc6(t.value,(F=X.character)==null?void 0:F.call(X),(T=X.previousCharacter)==null?void 0:T.call(X),X.rollUp(),w,y(),X.marginMultiplier())}else{var D;t.value.style.display=((D=X.character)==null?0:D.call(X))?"":"none"}}},"vt9b9b");
return _.k("animated-rolling-character",{el:t,class:"animated-rolling-character-wiz"},_.k(_.d,{cond:y,then:function(){return _.k(Qbq,null)},
else:function(){return _.k(IXP,{character:X.character})}}))},"k");
W8o.idomCompat=!0;var Efh=_.A("web_enable_sink_animated_rolling_character_and_number")?W8o:cRV,cFS=_.A("web_enable_sink_animated_rolling_character_and_number")?W8o:_.rr(cRV),Qbq=_.Fp(function(){for(var X=[],t=1;t<30;t++)X.push(_.k("div",null,t%10));return _.k(_.gn,null,_.k("div",null,"\u00a0"),X,_.k("div",null,"\u00a0"))},"l"),IXP=_.Fp(function(X){var t=X.character;
return _.k(_.gn,null,_.k("div",null,"\u00a0"),_.k(_.d,{cond:function(){return!(t==null?0:t())||_.JA(t==null?void 0:t())},
then:function(){return _.k("div",null,"\u00a0")},
else:function(){return _.k("div",null,t)}}),_.k("div",null,"\u00a0"))},"m");_.FE(U$s);var pXo=_.Fp(function(X){var t=void 0,G=void 0,y=function(){var z;return((z=X.fontSizeMultiplier)==null?0:z.call(X))?X.heightPx()*X.fontSizeMultiplier():X.heightPx()},w=_.qt(function(){if(!X.numberText())return[];
var z,B,V=((z=X.forceRollUp)==null?void 0:z.call(X))||!G||!((B=X.numberValue)==null?0:B.call(X))||G<X.numberValue(),b,e=X.numberText();z=y();B=!((b=X.shouldAnimate)==null||!b.call(X));b=[];var g=0,F=0,T=(t?t.replace(/\D/g,"").length:0)-(e?e.replace(/\D/g,"").length:0),D=t?t.split(/(\d)/).filter(Boolean):[];for(e=e.split(/(\d)/).filter(Boolean);T<0;){var h=e[F];b.push({character:h,rollUp:V,marginMultiplier:z,shouldAnimate:B});F++;bs(h)&&T++}for(;g<T;)h=D[g],b.push({previousCharacter:h,rollUp:V,marginMultiplier:z,
shouldAnimate:B}),g++,bs(h)||T++;for(;F<e.length;)T=e[F],h=D[g],bs(T)===bs(h)?(F++,g++):bs(T)?(g++,T=void 0):bs(h)&&(F++,h=void 0),b.push({character:T,previousCharacter:h,rollUp:V,marginMultiplier:z,shouldAnimate:B});t=X.numberText();var u;G=(u=X.numberValue)==null?void 0:u.call(X);return b},void 0,"B9AmNd");
return _.k("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return X.numberText()?["height: "+y()+"px;","line-height: "+X.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.k(_.pY,{each:w,keyBy:"INDEX"},function(z){return _.k(cFS,{character:function(){return z().character},
previousCharacter:function(){return z().previousCharacter},
marginMultiplier:function(){return z().marginMultiplier},
rollUp:function(){return z().rollUp},
shouldAnimate:function(){return z().shouldAnimate}})}))},"n");
pXo.idomCompat=!0;_.Hx6=_.A("web_enable_sink_animated_rolling_character_and_number")?pXo:U$s;_.rF4=_.A("web_enable_sink_animated_rolling_character_and_number")?pXo:_.rr(U$s);var m$E={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"};_.J4=_.Fp(function(X){var t=_.nl("a",X.ref),G=X.aTagConfig?X.aTagConfig:_.qt(function(){var y,w,z,B,V;var b=(V=_.wr((z=X.command)==null?void 0:z.call(X)))!=null?V:(B=X.command)==null?void 0:B.call(X);return _.Hl({innertubeCommand:b,skipOnClick:(y=X.skipOnClick)==null?void 0:y.call(X),defaultTarget:(w=X.target)==null?void 0:w.call(X)})||{}},void 0,"I5WLmc");
_.Em(function(){t.value._data=G()._data;t.value.params=G().params},"STb8Se");
return _.k("a",{el:t,href:function(){return G().href$},
rel:function(){return G().rel$},
class:function(){var y,w;return(w=G().className)!=null?w:(y=X.className)==null?void 0:y.call(X)},
style:function(){var y;if((y=X.style)==null?0:y.call(X))return X.style();var w;return((w=X.disabled)==null?0:w.call(X))?"pointer-events:none":""},
"aria-haspopup":function(){return!!G()["aria-haspopup$"]},
"force-new-state":Pl(function(){return G()["force-new-state$"]}),
title:Pl(function(){var y,w;return(w=G().title$)!=null?w:(y=X.title)==null?void 0:y.call(X)}),
role:Pl(function(){var y;return((y=X.role)==null?void 0:y.call(X))||G().role$}),
target:Pl(function(){return G().target$}),
dir:Pl(function(){var y;return((y=X.dir)==null?void 0:y.call(X))||G().dir}),
tabindex:function(){var y;return G().tabindex$?Number(G().tabindex$):(y=X.tabIndex)==null?void 0:y.call(X)},
"aria-hidden":function(){var y,w;return(w=G()["aria-hidden$"])!=null?w:(y=X.ariaHidden)==null?void 0:y.call(X)},
"aria-label":function(){var y,w;return(w=G()["aria-label$"])!=null?w:(y=X.ariaLabel)==null?void 0:y.call(X)},
"aria-current":X.ariaCurrent,"aria-disabled":X.disabled,"aria-labelledby":X.ariaLabelledby,"aria-describedby":X.ariaDescribedby,"aria-selected":X.ariaSelected,"tab-identifier":X.tabIdentifier,"on:pointerdown":_.NI(function(y){var w,z;return void((z=(w=G()).onpointerdown)==null?void 0:z.call(w,y))}),
"on:click":_.NI(function(y){var w,z;(z=(w=G()).onclick)==null||z.call(w,y);var B;(B=X.onClick)==null||B.call(X,y)}),
"on:focusin":_.NI(function(y){var w;(w=X.onFocusin)==null||w.call(X,y)}),
"on:focusout":_.NI(function(y){var w;(w=X.onFocusout)==null||w.call(X,y)})},X.children)},"o");var N3q=function(X,t){this.fillAnimation=new Animation(vf_(X),document.timeline);this.strokeAnimation=new Animation(agJ(t),document.timeline)};
N3q.prototype.play=function(){var X,t;(t=(X=this.fillAnimation).play)==null||t.call(X);var G,y;(y=(G=this.strokeAnimation).play)==null||y.call(G)};
N3q.prototype.cancel=function(){var X,t;(t=(X=this.fillAnimation).cancel)==null||t.call(X);var G,y;(y=(G=this.strokeAnimation).cancel)==null||y.call(G)};_.LX=_.Fp(function(X){var t=X.model;var G=X.pointerDownEvent;var y=X.pointerUpEvent;var w=X.pointerLeaveEvent;X=_.nl("div");var z=_.Ud({"border-radius":function(){return t().borderRadius}}),B=_.nl("div"),V=_.nl("div"),b=_.J(_.Ed(function(){return(y==null?0:y())||(w==null?0:w())?!1:!(G==null||!G())||!1})),e=b.next().value,g=b.next().value,F=void 0,T=function(){!F&&V.value&&B.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(F=new N3q(V.value,B.value));
var P;(P=F)==null||P.play()},D=function(){var P;
(P=F)==null||P.cancel()},h=function(){var P;
(P=F)==null||P.cancel()};
_.Em(function(){(y==null?0:y())&&T()},"YjVIpd");
_.Em(function(){(G==null?0:G())&&D()},"UrXvqb");
_.Em(function(){(w==null?0:w())&&h()},"QK6L8b");
b=_.NI(function(){T();g(!1)});
var u=_.NI(function(){D();g(!0)}),W=_.NI(function(){h();
g(!1)});
_.Um(function(){if(F){var P;(P=F)==null||P.cancel();F=void 0}});
var c={};e=_.cl("yt-spec-touch-feedback-shape",function(){return lgV(t().color)},(c["yt-spec-touch-feedback-shape--focused"]=function(){return!!t().focused&&!t().disabled},c["yt-spec-touch-feedback-shape--circular"]=function(){return!!t().circular},c["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!t().isExtended},c["yt-spec-touch-feedback-shape--down"]=e,c["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!t().triggerEvents},c));
return _.k("yt-touch-feedback-shape",{style:_.Ud({"border-radius":"inherit"})},_.k("div",{el:X,class:e,style:_.Ud({"margin-top":function(){return t().customTopExtend?"-"+t().customTopExtend+"px":void 0}}),
"on:mousedown":u,"on:mouseup":b,"on:pointerleave":W,"on:touchstart":u,"on:touchend":b,"aria-hidden":!0},_.k("div",{class:"yt-spec-touch-feedback-shape__stroke",style:z,el:B}),_.k("div",{class:"yt-spec-touch-feedback-shape__fill",style:z,el:V})))},"p");
_.LX.idomCompat=!0;var PIq={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 q4=_.es();q4=q4.toLowerCase();if(_.n_(q4,"android")){var E2Y=q4.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);E2Y&&parseFloat(E2Y[1])<100||q4.match("("+Object.keys(PIq).join("|")+")")};var UfS=_.Fp(function(X){return _.k(_.d,{cond:X.aTagConfig,then:function(t){return _.k(_.J4,{aTagConfig:t,disabled:X.disabled,className:X.className,style:X.style,title:X.title,ariaLabel:X.ariaLabel,ariaCurrent:function(){var G,y;return((G=X.toggleable)==null?void 0:G.call(X))&&((y=X.toggled)==null?void 0:y.call(X))},
ref:X.ref},X.children)},
else:function(){return _.k("button",{el:_.T7(X.ref),"on:click":_.NI(function(t){var G;return(G=X.onClick)==null?void 0:G.call(X,t)}),
class:X.className,title:X.title,style:X.style,disabled:X.disabled,"aria-pressed":function(){var t,G;return((t=X.toggleable)==null?0:t.call(X))?!((G=X.toggled)==null||!G.call(X)):void 0},
"aria-label":X.ariaLabel,"aria-disabled":X.visiblyDisabled,"aria-hidden":X.ariaHidden,tabindex:X.tabIndex},X.children)}})},"q"),RWo=_.Fp(function(X){var t=X.data;
var G=X.hasIconLeading;var y=X.hasIconLeadingTrailing;var w=X.hasIconTrailing;var z=X.iconButton;var B=X.iconClassName;var V=X.secondaryIconClassName;var b=X.icon;var e=X.secondaryIcon;var g=X.textContentClassName;return _.k(Cv,{className:"",style:"display: inherit; justify-content: center"},_.k(_.d,{debugInstance:"V4z1Uc",cond:function(){return b&&(G()||y()||(z==null?void 0:z()))},
then:function(){return _.k(Cv,null,_.k("div",{class:B,"aria-hidden":"true"},b==null?void 0:b()))}}),_.k(_.d,{debugInstance:"ok3btb",
cond:function(){return(t().buttonText||t().animatedTextProps||t().formattedButtonText)&&!(z==null?0:z())},
then:function(){return _.k(Cv,null,_.k(mft,{className:g,iconPosition:function(){return t().iconPosition},
text:function(){return t().buttonText},
oneOffCustomTextWrap:function(){return t().oneOffCustomTextWrap},
formattedButtonText:function(){return t().formattedButtonText},
animatedTextProps:function(){return t().animatedTextProps}}))}}),_.k(_.d,{debugInstance:"DO5Rz",
cond:w,then:function(){return _.k(Cv,null,_.k("div",{class:B},b==null?void 0:b()))}}),_.k(_.d,{debugInstance:"bnojSc",
cond:y,then:function(){return _.k(Cv,null,_.k("div",{class:V},e==null?void 0:e()))}}),_.k(_.d,{debugInstance:"HN3kad",
cond:function(){return!t().disabled&&!0},
then:function(){return _.k(_.LX,{model:function(){return{color:$cl(t())}}})}}))},"r"),mft=_.Fp(function(X){var t=function(){var G,y;
return((G=X.iconPosition)==null?void 0:G.call(X))==="icon-with-label"||((y=X.oneOffCustomTextWrap)==null?void 0:y.call(X))};
return _.k("div",{class:X.className,"aria-hidden":function(){var G,y,w;return((G=X.ariaHidden)==null?void 0:G.call(X))&&(!((y=X.animatedTextProps)==null||!y.call(X))||!((w=X.formattedButtonText)==null||!w.call(X)))}},_.k(_.P0,null,_.k(_.rn,{when:function(){var G;
return(G=X.animatedTextProps)==null?void 0:G.call(X)}},function(){return _.k(_.rF4,{numberText:function(){return X.animatedTextProps().numberText},
numberValue:function(){return X.animatedTextProps().numberValue},
heightPx:function(){return X.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return X.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return X.animatedTextProps().shouldAnimate},
forceRollUp:function(){return X.animatedTextProps().forceRollUp}})}),_.k(_.rn,{when:function(){var G;
return(G=X.formattedButtonText)==null?void 0:G.call(X)}},function(){return _.k(_.eh,{text:function(){return Object.assign({},X.formattedButtonText(),{lineBreakMode:t()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":X.formattedButtonText().lineBreakMode,
alignment:t()?"TEXT_ALIGNMENT_CENTER":X.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!t()}})}),_.k(_.rn,{when:function(){var G,y;
return((G=X.iconPosition)==null?void 0:G.call(X))==="icon-with-label"&&((y=X.text)==null?void 0:y.call(X))}},function(){return _.k(_.eh,{text:function(){return{content:X.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.k(_.Nd,null,function(){return X.text})))},"s"),iAq=_.Fp(function(X){return _.k(_.d,{debugInstance:"kM7Sgc",
cond:X.hasLabel,then:function(){var t;return _.k("label",{class:X.className},X.children,(t=X.textContent)==null?void 0:t.call(X))},
else:function(){return X.children}})},"t"),Cv=_.Fp(function(X){return X.children},"u");var lRV=VA("stamper-context");var L8h=function(){var X=_.J(_.sm(void 0,void 0,"X7d4l"));this.state=X.next().value;this.setState=X.next().value;X=_.J(_.sm(void 0,void 0,"CfI23e"));this.schedulerJobID=X.next().value;this.setSchedulerJobID=X.next().value},dc_=function(X,t){var G=kEA,y=_.vz.addJob(function(){G.setState({text:t.text,
location:t.location,anchor:X,offset:t.offset})},4,t.delay);
G.setSchedulerJobID(y)},eAY=function(){var X=kEA,t=X.schedulerJobID();
t&&(_.vz.cancelJob(t),X.setSchedulerJobID(void 0));X.setState(void 0)};
L8h.prototype.notify=function(X,t){var G;((G=this.state())==null?void 0:G.anchor)===X&&this.setState({text:t.text,location:t.location,anchor:X,offset:t.offset})};var kEA;kEA=new L8h;_.v2q=_.Fp(function(){var X=HTMLElement.prototype.hasOwnProperty("popover");return _.k("yt-tooltip",{class:"ytTooltipContainerHost"},function(){var t=kEA.state();return X&&(t==null?void 0:t.text)})},"v");_.jh=_.Fp(function(X){var t=X.data;var G=X.icon;var y=X.iconName;var w=X.secondaryIcon;var z=X.secondaryIconName;var B=X.focusedOverride;var V=X.clientOnlyWizTooltipsEnabled;_.V5v();var b=x$Y(t),e=b.size,g=b.style;X=b.disabled;var F=b.onTap,T=b.alignByText,D=b.aTagConfig,h=b.customColors,u=b.segmentedPosition,W=b.toggled,c=b.toggleable,P=b.accessibilityLabel,l=b.onToggle,R=b.iconPosition,L=b.oneOffCustomTextWrap,x=b.disableTextEllipsis,w6=b.disableBackdropFilter,BY=b.tooltipText,kJ=b.ariaHidden,Ss=
b.tabIndex,C_=b.buttonText,Fv=b.formattedButtonText,Uh=b.animatedTextProps,cY=XiA(t,G,w,y,z,B),f_=cY.type;G=cY.shouldFocus;y=cY.hasIconLeading;w=cY.hasIconTrailing;var sq=cY.hasIconLeadingTrailing,oq=cY.hasIconOnly;z=cY.hasIconOnly40;var ll=cY.hasIconWithLabel;B=cY.iconButton;var go=cY.visiblyDisabled;b=cY.overrideSmallSizeIcon;var kh=cY.iconToRender;cY=cY.secondaryIconToRender;var Aq=_.J(jel(BY)).next().value,OR={},Mz={};return _.k(iAq,{className:_.cl("yt-spec-button-shape-with-label",(OR["yt-spec-button-shape-with-label--is-overlay"]=
function(){return g()==="overlay"||g()==="overlay-dark"},OR)),
hasLabel:ll,textContent:function(){return _.k(mft,{text:C_,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:L,iconPosition:R,formattedButtonText:Fv,animatedTextProps:Uh})}},_.k(UfS,{aTagConfig:D,
className:_.cl("yt-spec-button-shape-next",function(){return GEJ(f_())},function(){return go()?void 0:yhA(g())},function(){return wiJ(e())},(Mz["yt-spec-button-shape-next--disabled"]=go,Mz["yt-spec-button-shape-next--focused"]=G,Mz["yt-spec-button-shape-next--icon-trailing"]=w,Mz["yt-spec-button-shape-next--icon-leading"]=y,Mz["yt-spec-button-shape-next--icon-leading-trailing"]=sq,Mz["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return sq()&&!(C_()||Fv())},Mz["yt-spec-button-shape-next--icon-button"]=
function(){return oq()||ll()},Mz["yt-spec-button-shape-next--icon-only-default"]=z,Mz["yt-spec-button-shape-next--align-by-text"]=T,Mz["yt-spec-button-shape-next--segmented-start"]=function(){return u()==="start"},Mz["yt-spec-button-shape-next--segmented-end"]=function(){return u()==="end"},Mz["yt-spec-button-shape-next--override-small-size-icon"]=b,Mz["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=L,Mz["yt-spec-button-shape-next--disable-text-ellipsis"]=x,Mz["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!w6()&&t5w()},Mz)),
style:function(){return zAJ(h()).style},
onClick:function(HY){F==null||F(HY);c()&&(l==null||l(HY))},
disabled:X,ariaLabel:P,toggleable:c,toggled:W,title:function(){return(V==null?0:V())||!BY()?"":BY()},
visiblyDisabled:go,ariaHidden:kJ,tabIndex:Ss,ref:function(HY){(V==null?0:V())&&Aq(HY)}},_.k(RWo,{data:t,
hasIconLeading:y,hasIconLeadingTrailing:sq,hasIconTrailing:w,iconButton:B,icon:kh,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:cY})))},"w");
_.jh.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var aXq=_.Fp(function(X){var t=X.data;var G=X.id;var y=X.className;var w=X.iconName;var z=X.secondaryIconName;X=_.J(_.sm(!1,void 0,"uDRWyd"));var B=X.next().value,V=X.next().value,b=function(){var g=_.gw().resolve(_.jH(_.Z8));g&&V(g.isKeyBoardInUse())},e=function(){V(!1)};
X=_.nl("yt-button-shape",function(g){if(_.gw().resolve(_.jH(_.Z8)))return g.addEventListener("focusin",b),g.addEventListener("focusout",e),function(){g.removeEventListener("focusin",b);g.removeEventListener("focusout",e)}});
return _.k("yt-button-shape",{el:X,id:G,class:y},_.k(_.d,{cond:t,then:function(){return _.k(_.jh,{data:t,iconName:w,secondaryIconName:z,focusedOverride:B})}}))},"x");
_.A("web_wiz_button_shape")&&_.DW(aXq,"yt-button-shape",{props:{data:_.bR,id:_.bR,className:_.bR,iconName:_.bR,secondaryIconName:_.bR,clientOnlyWizTooltipsEnabled:_.bR},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Kv=function(){var X=_.O.apply(this,arguments)||this;X.keyboardFocused=!1;return X};
_.S(Kv,_.O);Kv.prototype.onFocus=function(){var X=_.gw().resolve(_.jH(_.Z8));X&&(this.keyboardFocused=X.isKeyBoardInUse())};
Kv.prototype.onBlur=function(){this.keyboardFocused=!1};
Kv.prototype.renderIdom=function(){var X=this;if(this.data){var t=Ri(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),G=M4E(this.data);this.data.focused=this.keyboardFocused;nOG(this.data,function(){var y;Mi("yt-icon",{icon:X.iconName,active:(y=X.data)==null?void 0:y.toggled,size:t,style:"width: "+t+"px; height: "+t+"px;",iconFilter:G},zh)},function(){var y;
Mi("yt-icon",{icon:X.secondaryIconName,active:(y=X.data)==null?void 0:y.toggled,size:t,style:"width: "+t+"px; height: "+t+"px;",iconFilter:G},zh)});
_.Yt(this.hostElement,"yt-renderidom-finished")}};
_.ke.Object.defineProperties(Kv,{template:{configurable:!0,enumerable:!0,get:function(){if(uzJ===void 0){var X=document.createElement("template");_.Z(X,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);X.content.insertBefore(OAR().content.cloneNode(!0),X.content.firstChild);X.content.insertBefore(CIS().content.cloneNode(!0),X.content.firstChild);uzJ=X}X=uzJ;return X}}});
Kv.prototype.onBlur=Kv.prototype.onBlur;Kv.prototype.onFocus=Kv.prototype.onFocus;_.E([_.q(BZ4),_.U("design:type",Object)],Kv.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Kv.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],Kv.prototype,"iconName",void 0);_.E([_.K(),_.U("design:type",String)],Kv.prototype,"secondaryIconName",void 0);_.E([_.K(),_.U("design:type",Object)],Kv.prototype,"keyboardFocused",void 0);
_.E([_.WW("focusin"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Kv.prototype,"onFocus",null);_.E([_.WW("focusout"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Kv.prototype,"onBlur",null);_.E([_.$F({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.A("web_wiz_button_shape")})],Kv);_.DW(_.Fp(function(X){function t(){G().seconds&&z(aBE({seconds:Number(G().seconds)-Date.now()/1E3}))}
var G=X.targetTimestamp;X=X.className;var y=_.J(_.sm("",void 0,"U1Q8Ae")),w=y.next().value,z=y.next().value;_.R2(function(){t();var B=setInterval(function(){t()},1E3);
_.Um(function(){clearInterval(B)})});
return _.k("yt-countdown",{class:_.cl("ytCountDownHost",X)},_.k("div",null,w))},"y"),"yt-countdown",{props:{targetTimestamp:_.bR,
className:_.sd}});_.QK=_.Fp(function(X){var t=X.data;var G=X.className;var y=X.style;var w=X.useOutlinedIcon;var z=X.buttonOverrides;var B=X.animatedTextProps;var V=X.onClick;var b=X.target;var e=_.nl("button-view-model",function(P){P.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var l=t().targetId;l&&_.jRS(_.m4(),l,P);return function(){d6o(_.m4(),P)}}),g=function(){return t().iconName},F,T=(F=_.gw().resolve(_.jH(_.kI)))==null?void 0:F(),D=function(){var P=t();
var l=z==null?void 0:z(),R=B==null?void 0:B(),L=b==null?void 0:b();if(P){var x=Y7w(P.type);var w6=!!P.title||!!P.titleFormatted;var BY=!(!P.iconName&&!P.iconImage);w6=BY&&!w6?"icon-only":BY?P.iconTrailing||P.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;w6==="icon-only-40"&&(x="text");var kJ,Ss=(kJ=l==null?void 0:l.disabled)!=null?kJ:P.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||P.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";kJ=Object;BY=kJ.assign;var C_=P.title,
Fv=P.titleFormatted;R=R&&R.numberText&&!isNaN(Number(R.numberValue))?R:void 0;var Uh=P.accessibilityText,cY=Ah0(P.style),f_=sef(P.state),sq=Dcf(P.buttonSize);L=TeV(P,e,Ss,V,L);Ss=Ss&&!P.onDisabledTap;var oq=_.wr(P==null?void 0:P.onTap);var ll={};oq&&(ll.clickedVisualElement=FFw(P,oq));oq=_.Hl({elementsCommand:P.onTap,forceNewState:!0,additionalCommandArgs:ll});oq=oi(oq)?oq:void 0;var go=P.customFontColor,kh=P.customBackgroundColor;ll=P.customBorderColor;var Aq=P.customDarkThemeFontColor,OR=P.customDarkThemeBackgroundColor,
Mz=P.customDarkThemeBorderColor;go=T&&Aq?Aq:go;kh=T&&OR?OR:kh;ll=T&&Mz?Mz:ll;ll={color:go?_.yY(go):void 0,backgroundColor:kh?_.yY(kh):void 0,borderColor:ll?_.yY(ll):void 0};P=BY.call(kJ,{},{buttonText:C_,formattedButtonText:Fv,animatedTextProps:R,accessibilityLabel:Uh,style:cY,type:x,state:f_,size:sq,iconPosition:w6,onTap:L,disabled:Ss,aTagConfig:oq,customColors:ll,tooltipText:P.tooltip},l)}else P={style:"mono",type:"text",state:"active",size:"M"};P.focused=W();return P},h=function(){return Ri(D(),
!!t().iconName)};
X=_.J(_.sm(!1,void 0,"bl7g4"));F=X.next().value;var u=X.next().value,W=F;X=_.NI(function(){var P=_.gw().resolve(_.jH(_.Z8));P&&u(P.isKeyBoardInUse());return!1});
F=_.NI(function(){u(!1);return!1});
_.Em(function(){var P,l=_.Y(t==null?void 0:(P=t())==null?void 0:P.onVisible,_.yL);l&&_.z7(l,{disableClickTracking:!0})},"MLqBF");
var c=_.A("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.k("button-view-model",{el:e,class:_.cl("yt-spec-button-view-model",G),"on:focusin":X,"on:focusout":F},_.k(_.d,{cond:function(){var P;return(t==null?0:(P=t())==null?0:P.iconImage)?{sources:[t().iconImage]}:void 0},
then:function(P){return _.k(_.jh,{data:D,icon:function(){return _.k(_.gr,{data:P,alt:"",targetWidth:h,targetHeight:h,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:c})},
else:function(){return _.k(_.jh,{data:D,icon:function(){return _.k(_.mw,{icon:g,active:function(){return(w==null?0:w())?!1:D().toggled},
animateIcon:function(){var P;return!!(y==null?0:(P=y())==null?0:P.animateIcon)},
size:h})},
clientOnlyWizTooltipsEnabled:c})}}))},"z");
_.QK.idomCompat={callbacks:{onClick:!0}};_.DW(_.Fp(function(X){return _.k("yt-button-view-model",{id:X.id,class:_.cl(X.scopingClassName,X.classes),icon:function(){var t;return(t=X.icon)==null?void 0:t.call(X)},
"dialog-dismiss":function(){var t;return((t=X.dialogDismiss)==null?0:t.call(X))?"":void 0}},_.k(_.QK,{data:function(){var t;
return(t=X.data)==null?void 0:t.call(X)},
className:function(){var t;return(t=X.className)==null?void 0:t.call(X)},
style:function(){var t;return(t=X.style)==null?void 0:t.call(X)},
useOutlinedIcon:function(){var t;return(t=X.useOutlinedIcon)==null?void 0:t.call(X)},
buttonOverrides:function(){var t;return(t=X.buttonOverrides)==null?void 0:t.call(X)},
animatedTextProps:function(){var t;return(t=X.animatedTextProps)==null?void 0:t.call(X)},
onClick:function(t){var G;return(G=X.onClick)==null?void 0:G.call(X,t)}}))},"A"),"yt-button-view-model",{props:{data:_.bR,
className:_.bR,style:_.bR,useOutlinedIcon:_.bR,buttonOverrides:_.bR,animatedTextProps:_.bR,onClick:_.sd,scopingClassName:_.bR,id:_.bR,icon:_.bR,dialogDismiss:_.bR,classes:_.bR,target:_.sd}});var I3=function(){var X=_.O.apply(this,arguments)||this;X.isGoalActive=!0;return X};
_.S(I3,_.O);I3.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
I3.prototype.progressBarChanged=function(){var X=_.Sm(this.hostElement).querySelector("#progress-bar-progress"),t,G,y,w=(y=Number((t=this.creatorGoalState)==null?void 0:t.currentGoalCount)/Number((G=this.creatorGoalState)==null?void 0:G.totalGoalCount)*100)!=null?y:0,z;X.style.width=((z=Math.min(w,100))!=null?z:0)+"%"};
I3.prototype.goalStateChanged=function(){var X;this.isGoalActive=((X=this.creatorGoalState)==null?void 0:X.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var t;X={"--yt-progress-bar-color":ck0((t=this.creatorGoalState)==null?void 0:t.progressBarColor)};_.Kd(this.hostElement,X)};
I3.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.ke.Object.defineProperties(I3.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var X;return this.isGoalActive&&!((X=this.creatorGoalState)==null||!X.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.creatorGoalState)==null?0:X.endTimestampMs){var t;X=Number((t=this.creatorGoalState)==null?void 0:t.endTimestampMs)/1E3;return{seconds:String(X)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.creatorGoalState)==null?0:X.themedTargetImage){var t;X=_.Y((t=this.creatorGoalState)==null?void 0:t.themedTargetImage,uPo);return this.isAppDarkTheme()?X==null?void 0:X.imageDark:X==null?void 0:X.imageLight}}}});
_.ke.Object.defineProperties(I3,{template:{configurable:!0,enumerable:!0,get:function(){return JFS()}}});
I3.prototype.goalStateChanged=I3.prototype.goalStateChanged;I3.prototype.progressBarChanged=I3.prototype.progressBarChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],I3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],I3.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);
_.E([_.K({selectorArgs:["data.creatorGoalEntityKey"],selector:function(X,t){return _.Kg(X.entities,"creatorGoalEntity",t)}}),
_.U("design:type",Object)],I3.prototype,"creatorGoalState",void 0);_.E([_.K(),_.U("design:type",Object)],I3.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],I3.prototype,"isGoalActive",void 0);_.E([_.C("creatorGoalState","isGoalActive"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],I3.prototype,"shouldShowCountdown",null);_.E([_.C("creatorGoalState"),_.U("design:type",Object),_.U("design:paramtypes",[])],I3.prototype,"endTimestamp",null);
_.E([_.C("creatorGoalState"),_.U("design:type",Object),_.U("design:paramtypes",[])],I3.prototype,"targetIconThemedImage",null);_.E([_.cW("creatorGoalState.currentGoalCount"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],I3.prototype,"progressBarChanged",null);_.E([_.cW("creatorGoalState.creatorGoalState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],I3.prototype,"goalStateChanged",null);
_.E([_.$F({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],I3);_.N(I3,"yt-creator-goal-progress-flow-view-model",function(){return JFS()},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var lXo;var xft;var Wr=function(){return _.O.apply(this,arguments)||this};
_.S(Wr,_.O);Wr.prototype.attached=function(){var X,t,G;if(this==null?0:(X=this.data)==null?0:(t=X.pdgPurchasedBumperLoggingDirectives)==null?0:(G=t.loggingDirectives)==null?0:G.trackingParams){var y,w,z;Zx0(this==null?void 0:(y=this.data)==null?void 0:(w=y.pdgPurchasedBumperLoggingDirectives)==null?void 0:(z=w.loggingDirectives)==null?void 0:z.trackingParams)}};
Wr.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Wr.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Wr.prototype,"data",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Wr);
_.N(Wr,"yt-live-chat-item-bumper-view-model",function(){if(xft===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;lXo===void 0&&(lXo=document.createElement("template"));var y=lXo;G.call(t,y.content.cloneNode(!0),X.content.firstChild);xft=X}X=xft;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var fXh;var M3J;_.g5=function(X,t){this.data=X;this.actions=t;this.data=X;this.actions=t};
_.Bk=function(){};_.cr={};_.cr.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(X,t){q7V(this.hostElement,X,t)},
getNavigationEndpointPopupAction:function(X){return C56(X,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(X,t){KF6(this.hostElement,X,t,this.openPopupConfig)}};var P5l=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.pv={};
_.pv.YtEndpointBehavior=[_.cr.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Md("openPopupConfig");(this.useClickHandler=_.X3("useClickHandler",!1))?this.hostElement.addEventListener("click",O0(this,this.onEndpointClick_)):(aO(this.hostElement,"tap",O0(this,this.onEndpointTap_)),aO(this.hostElement,"touchend",O0(this,this.onEndpointTouchEnd_)));aO(this.hostElement,"touchstart",O0(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
O0(this,this.onEndpointTapStart_))},
onEndpointClick_:function(X){Qew(this.hostElement,X,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(X){var t=this.hostElement,G=this.openPopupConfig,y=this.disableCommandHandlerOverride;y=y===void 0?!1:y;var w=OxV(X);if(w){w.href&&HW(w.href);var z=X.detail;var B=z.sourceEvent;z=z.preventer;B=B.button!==void 0?B.button===0&&!lp(B):z?!lp(z):!0;w.data&&B&&uZV(t,w,X,G,y)}},
onEndpointTouchEnd_:function(X){lp(X)||OxV(X)&&X.preventDefault()},
onEndpointTapStart_:function(X){rhG(X)}}];var EOv="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),mc6=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Xb4={};Xb4.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(X){X.preventDefault();X=X.clipboardData.getData("text/plain");document.execCommand("insertText",!1,X)},
preventRichTextFormatting_:function(X){_.uz&&(X=X.detail.keyboardEvent,X.stopImmediatePropagation(),X.preventDefault())}}];var $Ue;var t84;var rG=function(){var X=_.O.apply(this,arguments)||this;X.ignoreShadyDom=!1;X.hasChange_=!1;X.hasSetTitle_=!1;X.useIOObserverForVisibilityLogging_=_.A("kevlar_use_vimio_behavior")&&_.Md("INNERTUBE_CLIENT_NAME")==="WEB";X.ytFormattedStringObserverHandlerKeys_=void 0;return X};
_.S(rG,_.O);_.H=rG.prototype;_.H.created=function(){this.useIOObserverForVisibilityLogging_=_.A("kevlar_use_vimio_behavior")&&_.Md("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.H.ready=function(){_.Md("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.H.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.H.detached=function(){this.unobserveIOObservers_()};
_.H.clearContents_=function(){for(var X=this.getRoot(),t=X.lastChild;t&&t.tagName!=="STYLE";){try{X.removeChild(t)}catch(G){break}t=X.lastChild}};
_.H.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var X=_.J(this.ytFormattedStringObserverHandlerKeys_),t=X.next();!t.done;t=X.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(t.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.H.resetForAttributedString=function(){var X=this.getRoot();!X.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),X.appendChild(this.ytAttributedStringElementRef))};
_.H.resetForFormattedString=function(){var X=this.getRoot(),t=X.querySelector("yt-attributed-string");t&&(this.ytAttributedStringElementRef=X.removeChild(t))};
_.H.textChanged=function(){this.textChanged_(this.text)};
_.H.textChanged_=function(X){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!X||!X.runs&&!X.simpleText;if(_.A("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var t=this.hostElement.firstChild;t&&t.nodeName==="FONT";){var G=t;t=t.nextSibling;this.hostElement.removeChild(G)}t=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
G=X.simpleText;var y;!G&&((y=X.runs)==null?void 0:y.length)===1&&this.isSimpleString_(X.runs[0])&&(G=X.runs[0].text);G!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Md("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(G!==void 0){try{t.textContent=G}catch(w){}t.textContent||(this.isEmpty=!0)}else X=X.runs,G!==void 0&&(X=[{text:G}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),X&&this.updateText_(X),
t.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.H.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)};
_.H.computeAriaLabel_=function(X){return X};
_.H.computeEllipsisTruncateStyling=function(X,t){return X&&!t};
_.H.computeUseAttributedString=function(X){return _.A("web_replace_formatted_with_attributed_string")&&MR_(X)&&!this.disableAttributedString&&!this.enableContentEditable};
_.H.setNodeStyle_=function(X,t){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.A("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?t.removeAttribute("dir"):t.setAttribute("dir","auto");t.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");t.style.color="";var G=null;this.noStyles||(X.bold&&(t.classList.add("bold"),G="bold"),X.deemphasize&&(t.classList.add("deemphasize"),G="deemphasize"),X.italics&&t.classList.add("italic"),
X.strikethrough&&t.classList.add("strikethrough"),X.errorUnderline&&(t.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),X.bracket&&t.classList.add("bracket"),X.textColor&&(t.style.color=_.Gq(X.textColor)));G!==t.getAttribute("style-target")&&(G?t.setAttribute("style-target",G):t.removeAttribute("style-target"))};
_.H.setUpVisibilityLogging_=function(X,t){var G=this;this.setNodeTrackingParams_(X,t);var y;((y=t.data)==null?0:y.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(X=this.ytRendererBehavior.visibilityObserver.observe(t,function(w){var z=G.ytRendererBehavior.getVisibilityLogger();z&&z.reportShown(w)},this.ytRendererBehavior.visibilityOptionVisible_),t=this.ytRendererBehavior.visibilityObserver.observe(t,function(w){var z=G.ytRendererBehavior.getVisibilityLogger();
z&&z.reportHidden(w)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(X),this.ytFormattedStringObserverHandlerKeys_.push(t))};
_.H.setNodeTrackingParams_=function(X,t){t.data||(t.data={});if((X=X.loggingDirectives?X.loggingDirectives.trackingParams:null)||t.data.trackingParams)t.data.trackingParams=X};
_.H.computeHasLinkOnly_=function(X){return!(!X||X.length!==1||this.noEndpoints||!X[0].navigationEndpoint)};
_.H.getRoot=function(){var X=this.buildScopeDomOptions();return this.enableContentEditable?_.Sm(_.Sm(this.hostElement,X).querySelector("[contenteditable]")):_.Sm(this.hostElement,X)};
_.H.fixContenteditableScope=function(){var X=function(t){t&&(t.nodeType===1&&t.classList&&(t.classList.add("style-scope"),t.classList.add("yt-formatted-string")),t.childNodes&&t.childNodes.forEach(function(G){X(G)}))};
X(this.getRoot())};
_.H.updateText_=function(X){for(var t=X.length,G=this.getRoot(),y=G.firstChild;y&&y.nodeName==="STYLE";)y=y.nextSibling;for(var w=0;w<t&&y;){var z=X[w],B=_.A("remove_cr_char")&&z.text?z.text.replace("\r",""):z.text;if(this.isSimpleString_(z)&&!this.useMixedDirectionFormattedStrings)if(y.nodeName==="#text"){y.textContent!=B&&(y.textContent=B);w++;y=y.nextSibling;continue}else break;if(_.Y(z,tH))break;else if(!this.noEndpoints&&z.navigationEndpoint){if(y.nodeName!=="A")break;this.setDataOnAnchor_(y,
z.navigationEndpoint)}else if(y.nodeName!=="SPAN")break;this.setNodeStyle_(z,y);this.setUpVisibilityLogging_(z,y);y.textContent!=B&&(y.textContent=B);w++;y=y.nextSibling}if(y)for(z=G.lastChild,y=w?y.previousSibling:null;z&&z!=y;){try{G.removeChild(z)}catch(V){break}z=G.lastChild}w!==t&&this.addTextNodes_(X,w)};
_.H.addTextNodes_=function(X,t){for(var G=document.createDocumentFragment(),y=X.length;t<y;t++){var w=X[t],z=_.A("remove_cr_char")&&w.text?w.text.replace("\r",""):w.text;if(this.isSimpleString_(w)&&!this.useMixedDirectionFormattedStrings)G.appendChild(document.createTextNode(z));else{var B=_.Y(w,tH);if(B){if(B.image){var V=document.createElement("img");B.isCustomEmoji||V.classList.add("small-emoji");V.classList.add("emoji");B.isCustomEmoji&&(V.dataset.emojiId=B.emojiId);V.src=_.S_(B.image.thumbnails,
this.emojiSize);(w=this.get("image.accessibility.accessibilityData.label",B))?V.alt=w:B.shortcuts&&B.shortcuts.length>0?V.alt=B.shortcuts[0]:B.emojiId&&(V.alt=B.emojiId);G.appendChild(V);this.hasEmoji=!0}}else!this.noEndpoints&&w.navigationEndpoint?(V=document.createElement("a"),V.classList.add("yt-simple-endpoint"),V.setAttribute("spellcheck","false"),this.setDataOnAnchor_(V,w.navigationEndpoint)):V=document.createElement("span"),this.setNodeStyle_(w,V),this.setUpVisibilityLogging_(w,V),V.appendChild(document.createTextNode(z)),
G.appendChild(V)}}this.getRoot().appendChild(G)};
_.H.isSimpleString_=function(X){return(this.noEndpoints||!X.navigationEndpoint)&&!_.Y(X,tH)&&(this.noStyles||!(X.bold||X.deemphasize||X.italics||X.strikethrough||X.errorUnderline||X.bracket||X.textColor))&&!X.loggingDirectives};
_.H.getRawText=function(){return _.bu(this.text)};
_.H.getFirstRunText=function(){var X;if(((X=this.text)==null?0:X.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.H.setFirstRunText=function(X){var t;((t=this.text)==null?0:t.runs)&&this.text.runs[0]&&(this.text.runs[0].text=X,this.textChanged_(this.text))};
_.H.setDataOnAnchor_=function(X,t){var G=this;!_.A("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(t)||this.isSignalServiceEndpoint_(t)?(X.onclick=this.serviceEndpointHandler_(t),XM(X,"#")):kzA({text:this.text,command:t},function(){hIl(X,t,G.target)})};
_.H.isServiceEndpoint_=function(X){var t;return!((t=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null||!t.sendPost)};
_.H.isSignalServiceEndpoint_=function(X){return!!_.Y(X,_.Ol)};
_.H.serviceEndpointHandler_=function(X){var t=this;return function(G){_.hE(t.hostElement,[X]);G.preventDefault()}};
_.H.overrideAriaLabelChanged_=function(){var X=this.getRoot();this.enableContentEditable&&X&&X.setAttribute("aria-label",this.overrideAriaLabel)};
_.H.enableContentEditableChanged_=function(){var X=this,t=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),t=_.Sm(this.hostElement,t),!t.lastChild||t.lastChild instanceof HTMLElement&&t.lastChild.id!=="contenteditable-root"){var G=document.createElement("div");G.id="contenteditable-root";G.setAttribute("contenteditable","true");G.setAttribute("dir","auto");G.onfocus=function(){X.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
t.appendChild(G);this.overrideAriaLabel&&G.setAttribute("aria-label",this.overrideAriaLabel)}}else G=_.hb(this.hostElement).firstChild,G instanceof HTMLElement&&G.id==="contenteditable-root"&&_.Sm(this.hostElement,t).removeChild(G)};
_.H.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.H.getNodesForVisibilityLogging_=function(){return _.S$(this.getRoot().childNodes,function(X){var t;return!((t=X.data)==null||!t.trackingParams)})};
_.H.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.H.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var X=this.ytRendererBehavior.getVisibilityLogger();X&&this.getNodesForVisibilityLogging_().forEach(function(t){X.reportShown(t)})}};
_.H.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var X=this.ytRendererBehavior.getVisibilityLogger();X&&this.getNodesForVisibilityLogging_().forEach(function(t){X.reportHidden(t)})}};
_.ke.Object.defineProperties(rG.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.A("enable_mixed_direction_formatted_strings")}}});
rG.prototype.enableContentEditableChanged_=rG.prototype.enableContentEditableChanged_;rG.prototype.overrideAriaLabelChanged_=rG.prototype.overrideAriaLabelChanged_;rG.prototype.ellipsisTruncateChanged_=rG.prototype.ellipsisTruncateChanged_;rG.prototype.textChanged=rG.prototype.textChanged;_.E([_.q(Xb4.YtPlaintextBehavior),_.U("design:type",Object)],rG.prototype,"ytPlaintextBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],rG.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rG.prototype,"text",void 0);_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"noEndpoints",void 0);_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"noStyles",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],rG.prototype,"isDarkTheme",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],rG.prototype,"splitLines",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],rG.prototype,"forceDefaultStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],rG.prototype,"ellipsisTruncate",void 0);_.E([_.K(),_.U("design:type",Object)],rG.prototype,"ignoreShadyDom",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.U("design:type",Boolean)],rG.prototype,"ellipsisTruncateStyling",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.U("design:type",String)],rG.prototype,"ariaLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],rG.prototype,"isEmpty",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.U("design:type",Boolean)],rG.prototype,"hasLinkOnly_",void 0);_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"hasEmoji",void 0);_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"disableAttributedString",void 0);_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"isOverlay",void 0);_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"linkInheritColor",void 0);
_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"noPreWrap",void 0);_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"userInput",void 0);_.E([_.K({value:16}),_.U("design:type",Number)],rG.prototype,"emojiSize",void 0);_.E([_.K(),_.U("design:type",String)],rG.prototype,"target",void 0);_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"enableContentEditable",void 0);_.E([_.K(),_.U("design:type",String)],rG.prototype,"overrideAriaLabel",void 0);
_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"respectHtmlDir",void 0);_.E([_.K(),_.U("design:type",Boolean)],rG.prototype,"respectLangDir",void 0);_.E([_.C("plaintextOnly"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rG.prototype,"useMixedDirectionFormattedStrings",null);_.E([_.K({computed:"computeUseAttributedString(text)"}),_.U("design:type",Boolean)],rG.prototype,"useYtAttributedString",void 0);
_.E([_.cW("text"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rG.prototype,"textChanged",null);_.E([_.cW("ellipsisTruncate"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rG.prototype,"ellipsisTruncateChanged_",null);_.E([_.cW("overrideAriaLabel"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rG.prototype,"overrideAriaLabelChanged_",null);
_.E([_.cW("enableContentEditable"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rG.prototype,"enableContentEditableChanged_",null);_.E([_.$F({is:"yt-formatted-string",disableElementRegistration:!0})],rG);
_.N(rG,"yt-formatted-string",function(){if(t84===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;$Ue===void 0&&($Ue=document.createElement("template"));var y=$Ue;G.call(t,y.content.cloneNode(!0),X.content.firstChild);t84=X}X=t84;return X});var GaY;var ych;var wbt;var zgh;var N4=function(){var X=_.O.apply(this,arguments)||this;X.focused=!1;X.disabled=!1;X.isOverlay=!1;return X};
_.S(N4,_.O);N4.prototype.triggerDown=function(){if(!this.disabled){_.Zk(this.hostElement,"down",!0);var X;(X=this.currentAnimation)==null||X.cancel()}};
N4.prototype.triggerUp=function(){if(!this.disabled){_.Zk(this.hostElement,"down",!1);var X=this.fillElement;var t=this.strokeElement;typeof GroupEffect==="function"?(X=new GroupEffect([vf_(X),agJ(t)]),X=new Animation(X,document.timeline)):X=new N3q(X,t);this.currentAnimation=X;var G;(G=this.currentAnimation)==null||G.play()}};
_.E([_.rt(".stroke"),_.U("design:type",HTMLElement)],N4.prototype,"strokeElement",void 0);_.E([_.rt(".fill"),_.U("design:type",HTMLElement)],N4.prototype,"fillElement",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],N4.prototype,"focused",void 0);_.E([_.K(),_.U("design:type",Object)],N4.prototype,"disabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],N4.prototype,"isOverlay",void 0);_.E([_.$F({is:"yt-interaction",disableElementRegistration:!0})],N4);
_.N(N4,"yt-interaction",function(){if(zgh===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;wbt===void 0&&(wbt=document.createElement("template"));var y=wbt;G.call(t,y.content.cloneNode(!0),X.content.firstChild);zgh=X}X=zgh;return X},{mode:2});var Pr=function(){return _.O.apply(this,arguments)||this};
_.S(Pr,_.O);_.H=Pr.prototype;_.H.ready=function(){var X=this,t=_.Sm(this.hostElement).querySelector("#button");t.addEventListener("focus",function(){SLR||(SLR=new DKR);X.keyboardFocused=SLR.isKeyBoardInUse()});
t.addEventListener("blur",function(){X.keyboardFocused=!1;X.rippleUp_()})};
_.H.computeTabIndex_=function(X){return X?-1:0};
_.H.computeButtonAriaPressed_=function(X){if(this.toggleable)return X?"true":"false"};
_.H.rippleDown_=function(){_.Sm(this.hostElement).querySelector("#interaction").triggerDown()};
_.H.rippleUp_=function(){_.Sm(this.hostElement).querySelector("#interaction").triggerUp()};
_.H.onPressedChanged_=function(){var X=_.hb(_.Sm(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.hb(_.Sm(this.hostElement).querySelector("#button")).children[0];X&&(X.active=this.pressed)};
Pr.prototype.onPressedChanged_=Pr.prototype.onPressedChanged_;Pr.prototype.rippleUp_=Pr.prototype.rippleUp_;Pr.prototype.rippleDown_=Pr.prototype.rippleDown_;_.E([_.K(),_.U("design:type",String)],Pr.prototype,"label",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Pr.prototype,"disabled",void 0);_.E([_.K(),_.U("design:type",Boolean)],Pr.prototype,"pressed",void 0);_.E([_.K(),_.U("design:type",Object)],Pr.prototype,"toggleable",void 0);
_.E([_.K(),_.U("design:type",Boolean)],Pr.prototype,"untabbable",void 0);_.E([_.K(),_.U("design:type",Boolean)],Pr.prototype,"keyboardFocused",void 0);_.E([_.WW("down"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Pr.prototype,"rippleDown_",null);_.E([_.WW("up"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Pr.prototype,"rippleUp_",null);
_.E([_.cW("pressed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Pr.prototype,"onPressedChanged_",null);_.E([_.$F({is:"yt-icon-button",disableElementRegistration:!0})],Pr);
_.N(Pr,"yt-icon-button",function(){if(ych===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;GaY===void 0&&(GaY=document.createElement("template"));var y=GaY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ych=X}X=ych;return X},{mode:2});var HfJ=_.Vc(["aria-"]),Eb={};Eb.YtRenderButtonBehavior=[_.v.YtRendererBehavior,_.pv.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!!_.gw().resolve(_.jH(_.Z8))&&_.A("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 X=this.computeHref_(this.endpoint,!0);X?XM(this.elements_.endpoint,X):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){X=this.buttonClass.split(" ");X=_.J(X);for(var t=X.next();!t.done;t=X.next())t=t.value,_.Zk(this.hostElement,t,!0),this.elements_.button&&_.Zk(this.elements_.button,t,!0),this.elements_.text&&_.Zk(this.elements_.text,t,!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&&(X=null,this.buttonAccessibility&&(X=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=X:X?_.kw([_.T6(HfJ)],this.elements_.button,"aria-label",X):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var X=_.gw().resolve(_.jH(_.Z8));X&&(this.keyboardFocused=X.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.FP("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,_.Es(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Es(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(X,t){if(t)for(X=t.split(" "),X=_.J(X),t=X.next();!t.done;t=X.next())t=t.value,_.Zk(this.hostElement,t,!1),this.elements_.button&&_.Zk(this.elements_.button,t,!1),this.elements_.text&&_.Zk(this.elements_.text,t,!1)},
buttonIconChanged_:function(X){this.elements_.icon?X?(this.elements_.icon.icon=X,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Es(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.qS(this.hostElement,"is-paper-button-with-icon",!1)):X&&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"&&_.Es(this.elements_.button).appendChild(this.elements_.icon):_.Es(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.qS(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(X){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,X){var t=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(X){case "yt_icon_button_with_label":t=!0;_.Zk(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();X=_.Es(this.elements_.button).firstElementChild;
this.elements_.icon=X;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Es(this.elements_.endpoint).appendChild(this.elements_.button);_.Es(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.FP("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;_.Es(this.elements_.button).appendChild(this.elements_.text);_.Es(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":t=!0,this.elements_.button=this.getYtIconButton_(),X=_.Es(this.elements_.button).firstElementChild,this.elements_.icon=X,this.setIconActive_(this.elements_.icon),
_.Es(this.elements_.endpoint).appendChild(this.elements_.button)}_.qS(this.hostElement,"is-icon-button",t);_.qS(this.hostElement,"is-paper-button",!t);_.qS(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 G;_.Sm((G=this.container.hostElement)!=null?G:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Es(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(X){if(X!=void 0||this.disabled)this.disabled=X,this.elements_.button&&(this.elements_.button.disabled=X)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(X){_.A("kevlar_system_icons")&&X&&this.data&&(this.data.isSelected!==void 0?X.active=this.data.isSelected:this.data.isToggled!==void 0&&(X.active=this.data.isToggled))},
observeBasicPalette_:function(X){_.fX(this.hostElement,X)},
disabledChanged_:function(X){this.data&&this.set("data.isDisabled",X)},
onYtButtonTap_:function(X){if(this.disabled)X.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.hE(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(X=this.disableCommandHandlerOverride,!this.data||!this.data.command||X||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.A("handle_service_request_actions")||_.hE(this.hostElement,[this.serviceEndpoint]),
_.Yt(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.A("handle_service_request_actions")?(X=[],this.serviceEndpoint&&X.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&X.push(this.data.command),X.length&&_.Z0(this.hostElement,X,this.hostElement)):this.data&&this.data.command&&(X=this.data.command,X.accountUnlinkCommand||X.accountLinkCommand||X.insertAdCommand||X.insertHighlightMarkerCommand||
X.createLivestreamHighlightClipCommand||X.getVideoUploadFeedbackCommand||X.musicDeletePrivatelyOwnedEntityCommand||X.ypcCancelRecurrenceEndpoint||X.getMultiSelectCommandEndpoint?_.hE(this.hostElement,[X]):_.Z0(this.hostElement,[X],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 X,t=_.Sm((X=this.container.hostElement)!=null?X:this.container);t.lastChild&&t.lastChild.tagName!="STYLE";)try{t.removeChild(t.lastChild)}catch(G){break}},
getYtIconButton_:function(){var X=this.reuseEnabled_()?_.FP("yt-icon-button"):document.createElement("yt-icon-button"),t=_.Es(X).firstElementChild;if(t&&t.is!="yt-icon"){for(t=_.Es(X);t.lastChild;)t.removeChild(t.lastChild);t=null}t||(t=this.getIcon_(),this.setIconActive_(t),_.Es(X).appendChild(t));return X},
reuseEnabled_:function(){return _.A("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.FP("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.FP("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.oNz={};
_.oNz.YtButtonBehavior=[Eb.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var X=this.data;X&&(this._setEndpoint(this.computeEndpoint_(X)),this._setServiceEndpoint(this.computeServiceEndpoint_(X)),this._setCommand(this.computeCommand_(X)),this._setButtonIcon(this.computeButtonIcon_(X)),this._setButtonText(this.computeButtonText_(X,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(X)),this._setButtonTooltip(this.computeTooltip_(X)),this._setButtonClass(this.computeButtonClass_(X)),this._setIconPositionType(this.computeIconPositionType_(X)),this.updateRenderedElements())},
setPressedState:function(X){var t;if((t=this.elements_)==null?0:t.button)this.elements_.button.pressed=!!X},
computeIconPositionType_:function(X){return X&&X.iconPosition||null},
computeEndpoint_:function(X){var t=X&&X.navigationEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.url"),y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:X&&X.command&&X.command.modalEndpoint?X.command:G&&!y&&X.command?X.command:null},
computeServiceEndpoint_:function(X){var t=X&&X.serviceEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:G&&X.command?X.command:null},
computeCommand_:function(X){return X&&X.command||null},
computeButtonIcon_:function(X){return X&&X.icon&&X.icon.iconType?_.Q2(X.icon.iconType):null},
computeButtonText_:function(X,t){return!t&&X&&X.text||null},
computeAccessibility_:function(X){return this.get("accessibilityData.accessibilityData",X)||X&&X.accessibility||(X&&X.text?{label:this.getSimpleString(X.text)}:null)},
computeTooltip_:function(X){return X?X.isDisabled&&X.disabledTooltip||X.tooltip||null:null},
computeButtonClass_:function(X){var t=X&&X.style?X.style.toLowerCase().replace(/_/g,"-")+" ":"";t+=X&&X.size?X.size.toLowerCase().replace(/_/g,"-")+" ":"";X.colorData&&X.colorData.basicColorPaletteData&&X.colorData.basicColorPaletteData.borderColor&&(t+="palette-with-border");return t.trim()}}];var MI={};var JcB;var B$J;var nNh,V8t=function(){return nNh!==void 0?nNh:nNh=document.createElement("template")};
document.head.appendChild(V8t().content);var bfJ;var kaq,dUo=function(){return kaq!==void 0?kaq:kaq=document.createElement("template")};
document.head.appendChild(dUo().content);var egP;var jwR,gNo=function(){return jwR!==void 0?jwR:jwR=document.createElement("template")};
document.head.appendChild(gNo().content);var FIP;var T$B=document.head,AcS=T$B.appendChild,Yu4;if(FIP===void 0){var swz=document.createElement("template");_.Z(swz,"\x3c!--css-build:shady--\x3e");swz.content.insertBefore(gNo().content.cloneNode(!0),swz.content.firstChild);FIP=swz}Yu4=FIP;AcS.call(T$B,Yu4.content);var DUq=document.head,SuJ=DUq.appendChild,hgt;if(egP===void 0){var Zfq=document.createElement("template");_.Z(Zfq,"\x3c!--css-build:shady--\x3e");Zfq.content.insertBefore(dUo().content.cloneNode(!0),Zfq.content.firstChild);egP=Zfq}hgt=egP;SuJ.call(DUq,hgt.content);var quR=document.head,C4q=quR.appendChild,KIP;if(bfJ===void 0){var Of4=document.createElement("template");_.Z(Of4,"\x3c!--css-build:shady--\x3e");Of4.content.insertBefore(V8t().content.cloneNode(!0),Of4.content.firstChild);bfJ=Of4}KIP=bfJ;C4q.call(quR,KIP.content);var u54;_.Xa("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");u54=_.A("web_button_rework")&&_.X3("BUTTON_REWORK")||_.A("web_button_rework_with_live");_.Ub=function(){return _.O.apply(this,arguments)||this};
_.S(_.Ub,_.O);_.Ub.prototype.created=function(){this.openPopupConfig=_.Md("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Ub.prototype.onYtNavigate_=function(X){var t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(X.detail.endpoint);t&&(this.ytOpenPopupBehavior.openPopup(t),X.stopPropagation(),X.preventDefault())};
_.ke.Object.defineProperties(_.Ub,{template:{configurable:!0,enumerable:!0,get:function(){if(B$J===void 0){var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
var t=X.content,G=t.insertBefore;JcB===void 0&&(JcB=document.createElement("template"));var y=JcB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);B$J=X}X=B$J;return X}}});
_.Ub.prototype.onYtNavigate_=_.Ub.prototype.onYtNavigate_;_.E([_.q(_.cr.YtOpenPopupBehavior),_.U("design:type",Object)],_.Ub.prototype,"ytOpenPopupBehavior",void 0);_.E([_.q(_.oNz.YtButtonBehavior),_.U("design:type",Object)],_.Ub.prototype,"ytButtonBehavior",void 0);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],_.Ub.prototype,"onYtNavigate_",null);
_.E([_.$F({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:u54})],_.Ub);var Qwz;var I6S=_.A("web_button_rework")&&_.X3("BUTTON_REWORK")||_.A("web_button_rework_with_live"),mV=function(){var X=_.O.apply(this,arguments)||this;X.isPressed=!1;X.forceIconButton=!1;X.forceIconOnly=!1;X.forceModernIconButton=!1;X.skipCommandHandling=!1;X.alignByText=!1;X.fitToVisibleBounds=!0;X.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};X.onTap=function(t){_.Yt(X.hostElement,"yt-service-request-sent-button-renderer",t)};
return X};
_.S(mV,_.O);_.H=mV.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.H.onClick=function(X){var t,G=this.disabled||((t=this.data)==null?void 0:t.isDisabled);t=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");G&&t&&X.stopPropagation()};
_.H.computeIcon=function(){var X,t,G=(X=this.data)==null?void 0:(t=X.icon)==null?void 0:t.iconType;if(G)return _.Q2(G)};
_.H.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.H.handleUpdateButtonAction=function(X){X=_.Y(X,$gq);var t=_.Y(X==null?void 0:X.updatedButton,_.G4);if(this.data&&X&&t){var G=this.data;G.targetId&&X.targetId&&G.targetId===X.targetId&&(this.data=t)}};
_.ke.Object.defineProperties(mV.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var X=this;if(this.data){var t=lLv({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Yt(X.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Yt(X.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});t.alignByText=this.alignByText;return t}}}});
_.ke.Object.defineProperties(mV,{template:{configurable:!0,enumerable:!0,get:function(){if(Qwz===void 0){var X=document.createElement("template");_.Z(X,'\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>');Qwz=X}X=Qwz;return X}}});
mV.prototype.onClick=mV.prototype.onClick;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],mV.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],mV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mV.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],mV.prototype,"isPressed",void 0);
_.E([_.K(),_.U("design:type",Object)],mV.prototype,"forceIconButton",void 0);_.E([_.K(),_.U("design:type",Object)],mV.prototype,"forceIconOnly",void 0);_.E([_.K(),_.U("design:type",Object)],mV.prototype,"forceModernIconButton",void 0);_.E([_.K(),_.U("design:type",Object)],mV.prototype,"skipCommandHandling",void 0);_.E([_.K(),_.U("design:type",Object)],mV.prototype,"alignByText",void 0);_.E([_.K(),_.U("design:type",Object)],mV.prototype,"buttonTooltipPosition",void 0);
_.E([_.K(),_.U("design:type",Object)],mV.prototype,"fitToVisibleBounds",void 0);_.E([_.K({computed:"computeTooltip(data)"}),_.U("design:type",Object)],mV.prototype,"tooltip",void 0);_.E([_.K(),_.U("design:type",Object)],mV.prototype,"overrides",void 0);_.E([_.K(),_.U("design:type",Boolean)],mV.prototype,"disabled",void 0);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],mV.prototype,"onClick",null);
_.E([_.C("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.U("design:type",Object),_.U("design:paramtypes",[])],mV.prototype,"computedButtonShape",null);_.E([_.$F({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!I6S,cssBuildOptOut:!0}),_.$F({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!I6S,cssBuildOptOut:!0})],mV);var WIe;var ccS;var R3=function(){var X=_.O.apply(this,arguments)||this;X.empty_=!0;X.loadTime=Infinity;X.pendingPaint=!1;X.hasChange_=!1;X.oldThumbnail_=null;X.oldDelayedSrc_="";X.objectURL_=null;return X};
_.S(R3,_.O);_.H=R3.prototype;_.H.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.H.ready=function(){var X=this.shouldShowPlaceholder_();_.Zk(this.hostElement,"no-transition",!0);X&&this.hostElement.classList.add("with-placeholder")};
_.H.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.H.isThumbPreloaded_=function(X){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",X)};
_.H.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||pbe};
_.H.computeThumbnailSrc_=function(X){return X&&X.thumbnails?_.S_(X.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.H.computeAlt_=function(){var X=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&X||""};
_.H.thumbnailChanged_=function(){var X=_.J([this.thumbnail,this.oldThumbnail_]),t=X.next().value;X=X.next().value;this.oldThumbnail_=t;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(X=this.computeThumbnailSrc_(X),this.computeThumbnailSrc_(t)===X))return;_.A("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(t)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):t&&_.X3("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.V8(this,this.onReload_):_.V8(this,this.onShow_):this.resetImage_();t&&(this.hostElement.style.opacity=""+t.opacity)}};
_.H.delayedSrcChanged_=function(){var X=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===X||this.resetImage_()};
_.H.setSrc_=function(X){X?(_.Sm(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Sm(this.hostElement).querySelector("#img").src=X):(_.Sm(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.H.resetImage_=function(){a6h(this.hostElement);this.empty_=!0;this.setSrc_(pbe);this.ytRendererBehavior.invalidate(!1)};
_.H.observePlaceholderColor_=function(){var X=this.thumbnail&&this.thumbnail.placeholderColor;X?this.hostElement.style.backgroundColor=_.Gq(X):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.H.onLoad_=function(){_.Sm(this.hostElement).querySelector("#img").src&&_.Sm(this.hostElement).querySelector("#img").src!==pbe&&(vN_(this.hostElement),this.notifyOnLoaded&&_.Yt(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.H.onError_=function(){var X=this;if(_.A("web_use_cache_for_image_fallback"))t4G(_.Sm(this.hostElement).querySelector("#img").src).then(function(t){X.objectURL_=_.xg(t).toString();X.setSrc_(X.objectURL_)}).catch(function(){_.A("kevlar_woffle_fallback_image")&&X.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.H.onPrescanVisible=function(){this.onShow_()};
_.H.onVisible=function(){if(_.A("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.H.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var X=this.computeSrc_();X!==_.Sm(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(X))}};
_.H.onReload_=function(){this.empty_=!1;var X=this.computeSrc_();X!==_.Sm(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(X))};
_.H.shouldShowPlaceholder_=function(){return _.A("kevlar_thumbnail_bg")};
R3.prototype.observePlaceholderColor_=R3.prototype.observePlaceholderColor_;R3.prototype.delayedSrcChanged_=R3.prototype.delayedSrcChanged_;R3.prototype.thumbnailChanged_=R3.prototype.thumbnailChanged_;_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],R3.prototype,"alt",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],R3.prototype,"ariaHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],R3.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],R3.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],R3.prototype,"id",void 0);_.E([_.q(_.JC.YtVisibilityBehavior),_.U("design:type",Object)],R3.prototype,"ytVisibilityBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",String)],R3.prototype,"delayedSrc",void 0);
_.E([_.K(),_.U("design:type",Object)],R3.prototype,"thumbnail",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],R3.prototype,"loaded",void 0);_.E([_.K(),_.U("design:type",Boolean)],R3.prototype,"notifyOnLoaded",void 0);_.E([_.K(),_.U("design:type",Number)],R3.prototype,"height",void 0);_.E([_.K(),_.U("design:type",Number)],R3.prototype,"width",void 0);_.E([_.K({value:function(){return"width"}}),
_.U("design:type",String)],R3.prototype,"dimension",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],R3.prototype,"fit",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],R3.prototype,"fitHeight",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],R3.prototype,"fitWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],R3.prototype,"objectFit",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],R3.prototype,"objectPosition",void 0);_.E([_.K(),_.U("design:type",String)],R3.prototype,"preferredThumbnail",void 0);_.E([_.K({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.U("design:type",String)],R3.prototype,"alt_",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],R3.prototype,"sharedTooltipText",void 0);
_.E([_.K(),_.U("design:type",Boolean)],R3.prototype,"ftlEligible",void 0);_.E([_.K({value:void 0}),_.U("design:type",String)],R3.prototype,"observeHiddenOption",void 0);_.E([_.K({value:"observe_once"}),_.U("design:type",String)],R3.prototype,"observePrescanOption",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],R3.prototype,"roundedContainer",void 0);
_.E([_.U0("thumbnail"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],R3.prototype,"thumbnailChanged_",null);_.E([_.U0("delayedSrc"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],R3.prototype,"delayedSrcChanged_",null);_.E([_.cW("thumbnail.placeholderColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],R3.prototype,"observePlaceholderColor_",null);
_.E([_.$F({is:"yt-img-shadow",disableElementRegistration:!0})],R3);var pbe=_.X3("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.qi()(R3,"yt-img-shadow",function(){if(ccS===void 0){var X=document.createElement("template");_.Z(X,'\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">');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;WIe===void 0&&(WIe=document.createElement("template"));var y=WIe;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ccS=X}X=ccS;return X},{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 xmJ;_.iR=new _.FB("SCREEN_MANAGER_TOKEN");xmJ=new _.FB("LOG_INITIAL_SCREEN_TOKEN");_.Lv=_.Fp(function(X){function t(w6){return _.Y(w6,_.vk)}
function G(){var w6=y().isTogglingDisabled||u()&&y().toggledIsTogglingDisabled,BY=w6||T()?u():!u();W(BY);P(!1);if(!w6){var kJ;(kJ=B)==null||kJ(!!BY)}var Ss;((Ss=z)==null?0:Ss())||_.ug(_.gw().resolve(_.iR),y().trackingParams);var C_;if(!BY||!t(y().defaultButtonViewModel)||(C_=z)!=null&&C_()){var Fv;!t(y().toggledButtonViewModel)||((Fv=z)==null?0:Fv())||_.ug(_.gw().resolve(_.iR),t(y().toggledButtonViewModel).trackingParams)}else _.ug(_.gw().resolve(_.iR),t(y().defaultButtonViewModel).trackingParams)}
var y=X.data,w=X.buttonShapeOverrides,z=X.disableExplicitClickLogging,B=X.onToggle,V=X.style,b=X.useOutlinedIcon,e=X.className,g=function(){var w6,BY;return u()?(w6=X.animatedTextPropsToggled)==null?void 0:w6.call(X):(BY=X.animatedTextPropsDefault)==null?void 0:BY.call(X)},F=_.qt(function(){return g()?Object.assign({},g(),{shouldAnimate:c()}):void 0},void 0,"ZKEa0b"),T=function(){var w6;
return((w6=L())==null?void 0:w6.isToggled)!==void 0},D=_.J(_.Ed(function(){var w6,BY,kJ;
return T()?(w6=L())==null?void 0:w6.isToggled:(kJ=w==null?void 0:(BY=w())==null?void 0:BY.toggled)!=null?kJ:y().isToggled})),h=D.next().value;
D=D.next().value;var u=h,W=D;D=_.J(_.Ed(function(){var w6,BY;return(w6=X.animatedTextPropsToggled)==null?void 0:(BY=w6.call(X))==null?void 0:BY.shouldAnimate}));
h=D.next().value;D=D.next().value;var c=h,P=D;h=_.J(_.sm(!1,void 0,"S11hid"));var l=h.next().value,R=h.next().value,L=_.w5(function(w6){var BY;a:{var kJ=y().entityKey,Ss=y().toggledStateEntitySelectorType;if(Ss)switch(Ss){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!kJ)break;var C_;w6=(C_=_.Kg(w6.entities,"sfvAudioItemCurrentlyPlayingEntity",kJ))!=null?C_:void 0;C_=(BY=w6==null?void 0:w6.sfvAudioItemPlaybackState)!=null?BY:void 0;if(C_==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){BY=
{isToggled:!0};break a}if(C_){BY={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":BY={isToggled:_.fLG(w6).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":BY={isToggled:_.fLG(w6).includes("engagement-panel-live-chat-item-section")};break a;default:_.Mj(new _.NJ("Error: entitySelectorType defined but not matched in selector.",w6,Ss))}BY=void 0}return BY}),x=function(){return Object.assign({},w==null?
void 0:w(),{onToggle:G,
toggleable:!0,toggled:u(),focused:l()})};
return _.k("toggle-button-view-model",{"on:focusin":_.NI(function(){var w6=_.gw().resolve(_.jH(_.Z8));w6&&R(w6.isKeyBoardInUse());return!1}),
"on:focusout":_.NI(function(){R(!1);return!1})},_.k(_.d,{cond:function(){return u()?t(y().toggledButtonViewModel):t(y().defaultButtonViewModel)},
then:function(w6){return _.k(_.QK,{data:w6,className:e,style:V,useOutlinedIcon:b,buttonOverrides:x,animatedTextProps:F})}}))},"B");
_.Lv.idomCompat={callbacks:{onToggle:!0}};_.DW(_.Fp(function(X){return _.k("yt-toggle-button-view-model",{class:function(){var t;return(t=X.scopingClassName)==null?void 0:t.call(X)}},_.k(_.Lv,{data:function(){var t;
return(t=X.data)==null?void 0:t.call(X)},
buttonShapeOverrides:function(){var t;return(t=X.overrides)==null?void 0:t.call(X)},
animatedTextPropsDefault:function(){var t;return(t=X.animatedTextPropsDefault)==null?void 0:t.call(X)},
animatedTextPropsToggled:function(){var t;return(t=X.animatedTextPropsToggled)==null?void 0:t.call(X)},
disableExplicitClickLogging:function(){var t;return(t=X.disableExplicitClickLogging)==null?void 0:t.call(X)},
onToggle:function(t){var G;return(G=X.onToggle)==null?void 0:G.call(X,t)},
style:function(){var t;return(t=X.style)==null?void 0:t.call(X)},
useOutlinedIcon:function(){var t;return(t=X.useOutlinedIcon)==null?void 0:t.call(X)},
className:function(){var t;return(t=X.className)==null?void 0:t.call(X)}}))},"C"),"yt-toggle-button-view-model",{props:{data:_.bR,
buttonShapeOverrides:_.bR,overrides:_.bR,animatedTextPropsDefault:_.bR,animatedTextPropsToggled:_.bR,disableExplicitClickLogging:_.bR,onToggle:_.sd,style:_.bR,useOutlinedIcon:_.bR,className:_.bR,scopingClassName:_.bR}});var vr=function(){return _.O.apply(this,arguments)||this};
_.S(vr,_.O);vr.prototype.onTap=function(X){X.stopPropagation();X=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Xc("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:X})):this.ytLiveChatReduxBehavior.dispatch(_.EW("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:X}))};
_.ke.Object.defineProperties(vr.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.engagementState)==null?void 0:X.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X=_.Y(this.data.toggleButton,_.as),t;if(Number(((t=this.likeCountState)==null?void 0:t.likeCountIfIndifferentNumber)||"0")===0){var G;t=((G=this.data.likeCountPlaceholder)==null?void 0:G.content)||""}else{var y,w,z;t=((y=this.likeCountState)==null?void 0:(w=y.likeCountIfIndifferent)==null?void 0:w.content)||((z=this.data.likeCountPlaceholder)==null?void 0:z.content)||""}var B,V;G=((B=this.likeCountState)==null?void 0:(V=
B.likeCountIfLiked)==null?void 0:V.content)||"1";B=_.Y(X.toggledButtonViewModel,_.vk);return Object.assign({},X,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.Y(X.defaultButtonViewModel,_.vk),{title:t})},toggledButtonViewModel:{buttonViewModel:Object.assign({},B,{title:G})}})}}}});
vr.prototype.onTap=vr.prototype.onTap;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],vr.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],vr.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vr.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.likeCountEntityKey"],selector:M5w}),_.U("design:type",Object)],vr.prototype,"likeCountState",void 0);_.E([_.K({selectorArgs:["data.engagementStateKey"],selector:S70}),_.U("design:type",Object)],vr.prototype,"engagementState",void 0);_.E([_.C("data","engagementState"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],vr.prototype,"isLiked",null);
_.E([_.C("data","likeCountState","isLiked"),_.U("design:type",Object),_.U("design:paramtypes",[])],vr.prototype,"toggleButton",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],vr.prototype,"onTap",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],vr);
_.N(vr,"yt-live-chat-like-button-view-model",function(){if(M3J===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;fXh===void 0&&(fXh=document.createElement("template"));var y=fXh;G.call(t,y.content.cloneNode(!0),X.content.firstChild);M3J=X}X=M3J;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var rch;var N$q;var a3=function(){return _.O.apply(this,arguments)||this};
_.S(a3,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],a3.prototype,"data",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],a3);
_.N(a3,"yt-live-chat-paid-message-footer-renderer",function(){if(N$q===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;rch===void 0&&(rch=document.createElement("template"));var y=rch;G.call(t,y.content.cloneNode(!0),X.content.firstChild);N$q=X}X=N$q;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var P4e;var ENJ;var UUB;var mUq,RgY=function(){if(mUq!==void 0)return mUq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;UUB===void 0&&(UUB=document.createElement("template"));var y=UUB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return mUq=X};var lR=function(){return _.O.apply(this,arguments)||this};
_.S(lR,_.O);lR.prototype.onTap=function(X){X.stopPropagation()};
_.ke.Object.defineProperties(lR.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X=_.Y(this.data.replyButton,_.vk),t,G,y,w,z,B,V,b=Number(((t=this.replyCountState)==null?void 0:t.replyCountNumber)||"0")===0?(G=this.data)==null?void 0:(y=G.replyCountPlaceholder)==null?void 0:y.content:((w=this.replyCountState)==null?void 0:(z=w.replyCount)==null?void 0:z.content)||((B=this.data)==null?void 0:(V=B.replyCountPlaceholder)==null?void 0:V.content)||"",e;return Object.assign({},
X,{title:b,accessibilityText:(e=this.replyCountState)==null?void 0:e.replyButtonAccessibilityText})}}}});
_.ke.Object.defineProperties(lR,{template:{configurable:!0,enumerable:!0,get:function(){return RgY()}}});
lR.prototype.onTap=lR.prototype.onTap;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],lR.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],lR.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lR.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.replyCountEntityKey"],selector:function(X,t){return _.Kg(X.entities,"replyCountEntity",t)}}),
_.U("design:type",Object)],lR.prototype,"replyCountState",void 0);_.E([_.C("data","replyCountState"),_.U("design:type",Object),_.U("design:paramtypes",[])],lR.prototype,"buttonViewModel",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],lR.prototype,"onTap",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],lR);
_.N(lR,"yt-live-chat-reply-button-view-model",function(){return RgY()},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var ifq;var LIq;var xZ=function(){var X=_.O.apply(this,arguments)||this;X.ariaLabel="";return X};
_.S(xZ,_.O);
xZ.prototype.dataChanged=function(){for(var X=(0,_.Cd)(_.Sm(this.hostElement).querySelector("#image"));X.firstChild;)X.removeChild(X.firstChild);if(this.data)if(this.data.icon){var t=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(t.polymerController.icon="yt-sys-icons:shield-filled",t.polymerController.defaultToFilled=!0):t.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();X.appendChild(t)}else if(this.data.customThumbnail){t=document.createElement("img");
var G=_.P4G(this.data.customThumbnail.thumbnails,16);G?(t.src=G,X.appendChild(t),t.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Mj(new _.NJ("Could not compute URL for thumbnail",this.data.customThumbnail))}};
xZ.prototype.identity=function(X){return X};
xZ.prototype.computeType=function(X){return Kz(X||void 0)};
xZ.prototype.dataChanged=xZ.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],xZ.prototype,"data",void 0);_.E([_.K({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.U("design:type",Object)],xZ.prototype,"ariaLabel",void 0);_.E([_.K({computed:"computeType(data)",reflectToAttribute:!0}),_.U("design:type",String)],xZ.prototype,"type",void 0);
_.E([_.K({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.U("design:type",String)],xZ.prototype,"sharedTooltipText",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("live_chat_enable_new_moderator_badge")}}),
_.U("design:type",Boolean)],xZ.prototype,"enableNewModeratorBadge",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xZ.prototype,"dataChanged",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],xZ);
_.N(xZ,"yt-live-chat-author-badge-renderer",function(){if(LIq===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;ifq===void 0&&(ifq=document.createElement("template"));var y=ifq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);LIq=X}X=LIq;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var vN4;var a6q;var fv=function(){return _.O.apply(this,arguments)||this};
_.S(fv,_.O);_.H=fv.prototype;_.H.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"}}}}};
_.H.computeBadgesInsideChip=function(X){return X?X.filter(function(t){return Kz(t.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.H.computeBadgesOutsideChip=function(X){return this.prependChatBadges||!X?[]:X.filter(function(t){t=Kz(t.liveChatAuthorBadgeRenderer);return t!=="verified"&&t!=="owner"})};
_.H.computeBadgesBeforeChip=function(X){return this.prependChatBadges&&X?X.filter(function(t){t=Kz(t.liveChatAuthorBadgeRenderer);return t!=="verified"&&t!=="owner"}):[]};
_.H.computeIsHighlighted=function(X,t){var G=!!$kV(X,"owner"),y=!!$kV(X,"verified");X=!!$kV(X,"moderator");return(G||y&&!X)&&!t};
_.H.computeAuthorType=function(X){return XcG(X)};
_.H.computeAuthorClass=function(X,t){return t?(X?X+" ":"")+"single-line":X};
_.H.onSeedColorChanged=function(){_.A("live_chat_author_name_color_usernames")||_.A("live_chat_seed_color_usernames")||_.A("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):_.A("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
fv.prototype.onSeedColorChanged=fv.prototype.onSeedColorChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],fv.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],fv.prototype,"authorName",void 0);_.E([_.K(),_.U("design:type",Array)],fv.prototype,"authorBadges",void 0);
_.E([_.K({computed:"computeAuthorType(authorBadges)"}),_.U("design:type",String)],fv.prototype,"authorType",void 0);_.E([_.K({computed:"computeAuthorClass(authorType, singleLine)"}),_.U("design:type",String)],fv.prototype,"authorClass",void 0);_.E([_.K({computed:"computeBadgesInsideChip(authorBadges)"}),_.U("design:type",Array)],fv.prototype,"badgesInsideChip",void 0);_.E([_.K({computed:"computeBadgesOutsideChip(authorBadges)"}),_.U("design:type",Array)],fv.prototype,"badgesOutsideChip",void 0);
_.E([_.K({computed:"computeBadgesBeforeChip(authorBadges)"}),_.U("design:type",Array)],fv.prototype,"badgesBeforeChip",void 0);_.E([_.K({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.U("design:type",Boolean)],fv.prototype,"isHighlighted",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],fv.prototype,"singleLine",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],fv.prototype,"disableHighlighting",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],fv.prototype,"dashboardMoneyFeed",void 0);_.E([_.K({value:_.A("live_chat_prepend_badges"),reflectToAttribute:!0}),_.U("design:type",Boolean)],fv.prototype,"prependChatBadges",void 0);_.E([_.K(),_.U("design:type",String)],fv.prototype,"authorNameColor",void 0);_.E([_.rt("#author-name"),_.U("design:type",HTMLDivElement)],fv.prototype,"username",void 0);
_.E([_.cW("authorNameColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fv.prototype,"onSeedColorChanged",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],fv);
_.N(fv,"yt-live-chat-author-chip",function(){if(a6q===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;vN4===void 0&&(vN4=document.createElement("template"));var y=vN4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);a6q=X}X=a6q;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var l6q;var xUR;var M4=function(){var X=_.O.apply(this,arguments)||this;X.debounceCommand=_.PI(function(t){X.ytComponentBehavior.resolveCommand(t)},1500);
return X};
_.S(M4,_.O);M4.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var X=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",t,G,y=this.isHearted?(t=this.data)==null?void 0:t.unheartCommand:(G=this.data)==null?void 0:G.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Xc("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:X}));(X=_.wr(y))&&this.debounceCommand(X)}};
_.ke.Object.defineProperties(M4.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var X,t;if(!((X=this.data)==null?0:(t=X.creatorThumbnail)==null?0:t.sources))return{};X={thumbnails:[]};t={};t.url=this.data.creatorThumbnail.sources[0].url;X.thumbnails.push(t);return X}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.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}}});
M4.prototype.onTap=M4.prototype.onTap;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],M4.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],M4.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],M4.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.engagementStateKey"],selector:S70}),_.U("design:type",Object)],M4.prototype,"engagementState",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],M4.prototype,"thumbnailDetails",null);_.E([_.C("data","engagementState"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],M4.prototype,"isHearted",null);_.E([_.C("data","engagementState"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],M4.prototype,"isEditable",null);
_.E([_.C("data","engagementState"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],M4.prototype,"showCreatorView",null);_.E([_.C("data","engagementState"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],M4.prototype,"showButton",null);_.E([_.C("data","isHearted"),_.U("design:type",String),_.U("design:paramtypes",[])],M4.prototype,"label",null);_.E([_.C("data","isHearted"),_.U("design:type",Object),_.U("design:paramtypes",[])],M4.prototype,"heartHoverText",null);
_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],M4.prototype,"onTap",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],M4);
_.N(M4,"yt-live-chat-creator-heart-view-model",function(){if(xUR===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;l6q===void 0&&(l6q=document.createElement("template"));var y=l6q;G.call(t,y.content.cloneNode(!0),X.content.firstChild);xUR=X}X=xUR;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var XW=function(){};
_.S(XW,Cu);XW.prototype.JSC$12977_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:JE("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
XW.prototype.getApiPaths=function(){return[]};
XW.prototype.getExtension=function(){};
XW.prototype.JSC$12977_buildRequest=function(){};var f64={},M8q=(f64.GET_DATASYNC_IDS=U8(XW),f64);var XAe,$$h,t4e,vUP,$Q,wAz,X_t,yRP,GUP;XAe="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");$$h=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.VE=function(X,t,G,y,w,z,B,V,b){this.endpointMap=X;this.networkManager=t;this.authService=G;this.responseProcessorMap=y;this.innertubeResponseStore=w;this.contextProcessors=z;this.asyncContextProcessors=B;this.localInnertubeRouter=V;this.requestSequencer=b;this.inflightRequests=new Map;X.signalEndpointMap||(X.signalEndpointMap={});X.signalEndpointMap=Object.assign({},M8q,X.signalEndpointMap)};
t4e=function(X,t,G,y,w,z,B,V,b){if(_.VE.instance!==void 0){if(y=_.VE.instance,X=[X!==y.endpointMap,t!==y.networkManager,G!==y.authService,w!==y.innertubeResponseStore,z!==y.contextProcessors,B!==y.asyncContextProcessors,V!==y.localInnertubeRouter],X.some(function(e){return e}))throw new _.NJ("InnerTubeTransportService is already initialized",X);
}else _.VE.instance=new _.VE(X,t,G,y,w,z,B,V,b)};
_.kW=function(X,t,G){var y=y===void 0?tit:y;var w=X_t(X,t);return w?new _.Kh(function(z,B){var V,b,e,g,F;return _.n(function(T){switch(T.nextAddress){case 1:return T.yield(w,2);case 2:V=T.yieldResult;b=V.JSC$12977_getRequest(t,G,y);if(!b){B(new _.NJ("Error: Failed to build request for command.",t));T.jumpTo(0);break}HW(b.input);g=((e=b.requestShell)==null?void 0:e.mode)==="cors"?"cors":void 0;if(X.authService.syncHeaders){F=GUP(b.config,g);T.jumpTo(4);break}return T.yield(yRP(b.config,g),5);case 5:F=
T.yieldResult;case 4:z(wAz(X,b,F)),_.W$(T)}})}):_.l$(new _.NJ("Error: No request builder found for command.",t))};
vUP=function(X,t,G,y){var w=w===void 0?tit:w;var z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L,x;return _.n(function(w6){switch(w6.nextAddress){case 1:z=tKG(t,X.endpointMap);if(!z)throw new _.NJ("Error: No streaming request builder found for command",t);B=z.JSC$12977_getRequest(t,G,w);if(!B)throw new _.NJ("Failed to build YtRequest for streaming Command",t);if((V=X.localInnertubeRouter)==null||!V.shouldPreferLocalResponse(B.input,B.innerTubeRequest)){w6.jumpTo(2);break}return w6.yield(X.localInnertubeRouter.localInnertubeResponse(B.input,
B.innerTubeRequest),3);case 3:return b=w6.yieldResult,e={},b.playerResponse&&($Q(X,b.playerResponse,B),e.player=b.playerResponse,(g=y)==null||g(e,b)),b.watchNextResponse&&($Q(X,b.watchNextResponse,B),e.content=b.watchNextResponse,(F=y)==null||F(e,b)),w6.return(e);case 2:D=((T=B.requestShell)==null?void 0:T.mode)==="cors"?"cors":void 0;if(X.authService.syncHeaders){h=GUP(B.config,D);w6.jumpTo(4);break}return w6.yield(yRP(B.config,D),5);case 5:h=w6.yieldResult;case 4:return c=(W=(u=B.requestShell)==
null?void 0:u.headers)!=null?W:{},B.requestShell=Object.assign({},B.requestShell,{headers:Object.assign({},c,h)}),P=Object.assign({},B.requestShell),l=JSON.stringify(B.innerTubeRequest),B.requestShell.method==="POST"&&(P=Object.assign({},P,{body:l})),R=function(BY,kJ){$Q(X,kJ.playerResponse||kJ.watchNextResponse||kJ.reelItemWatchResponse||kJ.reelWatchSequenceResponse,B);y==null||y(BY,kJ)},L={},w6.yield(z0z(X.networkManager,B.input,P,R),6);
case 6:return L=w6.yieldResult,((x=B.config)==null?0:x.responseTick)&&_.ls(B.config.responseTick),w6.return(L)}})};
_.t_=function(X,t,G,y,w){w=w===void 0?{authStrategy:{identity:tit}}:w;var z=z===void 0?!0:z;var B=function(){};
B=xDY(aZl(G));t.context||(t.context=_.H86(y,z));return new _.Kh(function(V){var b,e,g,F,T;return _.n(function(D){if(D.nextAddress==1)return b=Wnh(G),e=_.oa(b),X.authService.syncHeaders?(g=GUP(w,e),D.jumpTo(2)):D.yield(yRP(w,e),3);D.nextAddress!=2&&(g=D.yieldResult);F=c8E(Wnh(G));T={input:F,requestShell:JE(F),innerTubeRequest:t,config:w};V(wAz(X,T,g,B));_.W$(D)})})};
$Q=function(X,t,G){var y;if(t&&!(t==null?0:(y=t.sequenceMetaData)==null?0:y.skipProcessing)&&X.responseProcessorMap){y=_.J(XAe);for(var w=y.next();!w.done;w=y.next())w=w.value,X.responseProcessorMap[w]&&X.responseProcessorMap[w].handleResponse(t,G)}};
wAz=function(X,t,G,y){y=y===void 0?function(){}:y;
var w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L,x,w6,BY,kJ,Ss,C_,Fv,Uh,cY,f_,sq,oq,ll,go,kh,Aq,OR,Mz,HY,yR,hq,gi;return _.n(function(TB){switch(TB.nextAddress){case 1:B=(w=t.config)==null?void 0:(z=w.storeStrategy)==null?void 0:z.storeKey;if(!(B&&X.innertubeResponseStore&&X.innertubeResponseStore.has(B))||((V=t.config)==null?0:(b=V.storeStrategy)==null?0:b.disableCache)){TB.jumpTo(2);break}return TB.yield(X.innertubeResponseStore.get(B),3);case 3:if((e=TB.yieldResult)&&!e.isExpired())return TB.return(Promise.resolve(_.Yl(e)));
case 2:if(!((g=t)==null?0:(F=g.innerTubeRequest)==null?0:F.context)){TB.jumpTo(4);break}T=t.innerTubeRequest.context;if(!(X.asyncContextProcessors&&X.asyncContextProcessors.length>0)){TB.jumpTo(5);break}D=[];h=_.J(X.asyncContextProcessors);for(u=h.next();!u.done;u=h.next())W=u.value,c=W.processContext(t),c.wrappedPromise_&&D.push(c.wrappedPromise_);if(!(D.length>0)){TB.jumpTo(5);break}return TB.yield(Promise.all(D),5);case 5:P=_.J(X.contextProcessors||[]),l=P.next();case 8:if(l.done){TB.jumpTo(4);
break}R=l.value;return TB.yield(R.processContext(T),9);case 9:l=P.next();TB.jumpTo(8);break;case 4:if((L=X.localInnertubeRouter)==null||!L.shouldPreferLocalResponse(t.input,t.innerTubeRequest)){TB.jumpTo(12);break}return TB.yield(X.localInnertubeRouter.localInnertubeResponse(t.input,t.innerTubeRequest),13);case 13:return x=TB.yieldResult,$Q(X,x,t),TB.return(x);case 12:return(kJ=(BY=t.config)==null?void 0:BY.requestKey)&&X.inflightRequests.has(kJ)?w6=X.inflightRequests.get(kJ):(Ss=JSON.stringify(t.innerTubeRequest),
Uh=(Fv=(C_=t.requestShell)==null?void 0:C_.headers)!=null?Fv:{},t.requestShell=Object.assign({},t.requestShell,{headers:Object.assign({},Uh,G)}),cY=Object.assign({},t.requestShell),t.requestShell.method==="POST"&&(cY=Object.assign({},cY,{body:Ss})),((f_=t.config)==null?0:f_.requestTick)&&_.ls(t.config.requestTick),sq=function(){return X.networkManager.fetch(t.input,cY,t.config)},w6=X.requestSequencer?HwB(X.requestSequencer,t,sq):sq(),kJ&&X.inflightRequests.set(kJ,w6)),TB.yield(w6,14);
case 14:(oq=TB.yieldResult)&&_.A("web_streaming_player")&&Array.isArray(oq)&&(oq=oq[0].playerResponse);if(oq&&"error"in oq&&((ll=oq)==null?0:(go=ll.error)==null?0:go.details))for(kh=oq.error.details,Aq=_.J(kh),OR=Aq.next();!OR.done;OR=Aq.next())Mz=OR.value,(HY=Mz["@type"])&&$$h.indexOf(HY)>-1&&(delete Mz["@type"],oq=Mz);kJ&&X.inflightRequests.has(kJ)&&X.inflightRequests.delete(kJ);((yR=t.config)==null?0:yR.responseTick)&&_.ls(t.config.responseTick);if(oq||(hq=X.localInnertubeRouter)==null||!hq.canProvideFallbackResponse(t.input,
t.innerTubeRequest)){TB.jumpTo(15);break}return TB.yield(X.localInnertubeRouter.localFallbackInnertubeResponse(t.input,t.innerTubeRequest),16);case 16:oq=TB.yieldResult;case 15:return $Q(X,oq,t),((gi=t.config)==null?0:gi.processorTick)&&_.ls(t.config.processorTick),y(),TB.return(oq||void 0)}})};
_.bX=function(X,t){return $3l(t,X.endpointMap)};
X_t=function(X,t){X=GdY(t,X.endpointMap);if(X!==void 0)return Promise.resolve(X)};
yRP=function(X,t){var G,y,w,z;return _.n(function(B){if(B.nextAddress==1){w=(G=X)==null?void 0:(y=G.authStrategy)==null?void 0:y.sessionIndex;var V=B.yield;var b=_.qY(o10({sessionIndex:w}));return V.call(B,b,2)}z=B.yieldResult;return B.return(Promise.resolve(Object.assign({},yxv(t),z)))})};
GUP=function(X,t){var G;X=X==null?void 0:(G=X.authStrategy)==null?void 0:G.sessionIndex;G=o10({sessionIndex:X});return Object.assign({},yxv(t),G)};var oft,JRP,BWR,nfJ,V4z,bwq,e0q,jFe,yM,gfS,Fs4,d$t,TWh;oft=0;JRP=/tone[1-5]/;BWR=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");nfJ="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
V4z=Number.MAX_SAFE_INTEGER;bwq=RegExp("\ufe0f","g");_.tB=function(X){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;X&&_.kUq(this,X)};
_.kUq=function(X,t){try{_.Cs(t,{context:X,onSuccess:function(y,w){Array.isArray(w)?X.load(w):(y=new _.NJ("Emoji manager JSON response was not an array!",{response:w}),_.xA(y))},
onError:function(y){y=new _.NJ("Failed to retrieve emoji manager initial JSON data!",{url:t,statusCode:_.Du(y).toString()});_.Mj(y)}})}catch(y){var G=new _.NJ("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:t});
_.Mj(G)}};
_.tB.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.tB.prototype.load=function(X,t){if(t)if(X.length)X=X.concat(t.emojis);else{this.emojis=t.emojis;this.emojiMap=t.emojiMap;this.emojiShortcutMap=t.emojiShortcutMap;this.emojiShortcutCharMap=d$t(t);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=t.emojiRegex;return}this.emojis=[].concat(_.RY(new Set(this.emojis.concat(X))));this.hasInitializedShortcutCharMap=!1;X=Array(this.emojis.length);for(t=0;t<this.emojis.length;t++){var G=this.emojis[t];if(G.emojiId){this.emojiMap[G.emojiId]=G;this.emojiMap[G.emojiId].index=
t;for(var y=0;G.shortcuts&&y<G.shortcuts.length;y++)this.emojiShortcutMap[G.shortcuts[y].toLocaleLowerCase()]=G;X[t]=G.isCustomEmoji&&G.shortcuts?G.shortcuts[0]:G.emojiId}}X.sort(function(w,z){return z.length-w.length});
if(X.length)try{this.emojiRegex=new RegExp(X.join("|").replace("*","\\*"),"gi")}catch(w){this.emojiRegex=/$./}else this.emojiRegex=/$./};
e0q=function(X,t){t=_.J(t);for(var G=t.next();!G.done;G=t.next()){var y=G.value;if(y.emojiId&&X.emojiMap[y.emojiId]){G=Object.assign({},X.emojiMap[y.emojiId],y);X.emojiMap[y.emojiId]=G;var w=void 0;G.index&&((w=X.emojis[G.index])==null?void 0:w.emojiId)===y.emojiId&&(X.emojis[G.index]=G);y=void 0;if((y=G.shortcuts)==null?0:y.length)for(X.hasInitializedShortcutCharMap=!1,y=_.J(G.shortcuts),w=y.next();!w.done;w=y.next())X.emojiShortcutMap[w.value.toLocaleLowerCase()]=G}}};
jFe=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(_.ig.getInstance(),2);if(y.nextAddress!=3)return(t=y.yieldResult)?y.yield(t.get("ytlc-emoji-pref"),3):y.return();(G=y.yieldResult)&&e0q(X,Object.keys(G).map(function(w){return{emojiId:w,stickyPrefId:G[w]}}).filter(function(w){return!!w.emojiId&&!!w.stickyPrefId}));
_.W$(y)})};
_.GK=function(X,t,G){return(X=X.emojiMap[t])&&(!X.isLocked||G!==void 0&&G)?X:void 0};
yM=function(X,t,G){G=_.GK(X,t,G===void 0?!1:G);var y=t.match("\u200d");G&&X.skinTone!==0&&(X=(y==null?void 0:y.length)===1?_.GK(X,t.replace("\u200d",BWR[X.skinTone]+"\u200d")):_.GK(X,t+BWR[X.skinTone]))&&(G=X);return G};
gfS=function(X,t){var G=X.emojiMap[t];return(G==null?0:G.stickyPrefId)?X.emojiMap[G.stickyPrefId]:yM(X,t)};
_.ID=function(X,t){X=X.emojiShortcutMap[t.toLocaleLowerCase()];return!X||X.isLocked?null:X};
Fs4=function(X,t,G){return d$t(X,G===void 0?!1:G)[t]||{}};
d$t=function(X,t){t=t===void 0?!1:t;if(!X.hasInitializedShortcutCharMap){X.hasInitializedShortcutCharMap=!0;for(var G=0;G<X.emojis.length;G++){var y=X.emojis[G];if(!(y.isLocked||t&&y.isCustomEmoji&&y.emojiId&&!X.pickerCustomEmojiIds.includes(y.emojiId)))for(var w=0;y.shortcuts&&w<y.shortcuts.length;w++){var z=y.shortcuts[w];z.startsWith(":_")&&y.isCustomEmoji&&(X.emojiShortcutCharMap[":_"]==null&&(X.emojiShortcutCharMap[":_"]=Object.create(null)),X.emojiShortcutCharMap[":_"][z]=y);if(!(z.length<3||
!y.isCustomEmoji&&JRP.test(z))){var B=z.substr(0,3).toLocaleLowerCase();X.emojiShortcutCharMap[B]==null&&(X.emojiShortcutCharMap[B]=Object.create(null));X.emojiShortcutCharMap[B][z]=y}}}}return X.emojiShortcutCharMap};
_.tB.prototype.createEmoji=function(X,t){t=t===void 0?!0:t;var G=document.createElement("img");X.isCustomEmoji||G.classList.add("small-emoji");G.classList.add("emoji");G.classList.add("yt-formatted-string");G.src=X.image?_.S_(X.image.thumbnails,this.emojiSize)||"":"";var y=void 0;X.image&&X.image.accessibility&&X.image.accessibility.accessibilityData&&(y=X.image.accessibility.accessibilityData.label);G.alt=y?y:(X.isCustomEmoji&&X.shortcuts?X.shortcuts[0]:X.emojiId)||"";X.isCustomEmoji&&(G.dataset.emojiId=
X.emojiId);_.Z_&&(G.setAttribute("contenteditable","false"),G.setAttribute("unselectable","on"));t&&(X.shortcuts&&X.shortcuts.length&&G.setAttribute("shared-tooltip-text",X.shortcuts[0]),G.id="emoji-"+oft++);return G};
_.tB.prototype.createDocumentFragment=function(X,t,G,y){t=t===void 0?!1:t;G=G===void 0?!0:G;y=y===void 0?!1:y;X=X.replace(bwq,"");for(var w=document.createDocumentFragment(),z=0,B,V=0;(B=this.emojiRegex.exec(X))!=null;){var b=_.GK(this,B[0])||_.ID(this,B[0]);!b||b.isCustomEmoji&&!t||(b=this.createEmoji(b,G),z!==B.index&&w.appendChild(document.createTextNode(X.substring(z,B.index))),w.appendChild(b),z=B.index+B[0].length,V++)}if(!y||V)return w.appendChild(document.createTextNode(X.substr(z))),w};
TWh=function(X,t,G){var y,w,z,B,V,b,e,g,F;return _.n(function(T){if(T.nextAddress==1){if(!t.emojiId||!X.emojiMap[t.emojiId])return T.return();y=Object.assign({},X.emojiMap[t.emojiId],{stickyPrefId:G});X.emojiMap[t.emojiId]=y;t.index&&((w=X.emojis[t.index])==null?void 0:w.emojiId)===t.emojiId&&(X.emojis[t.index]=y);if((z=t.shortcuts)==null?0:z.length)for(X.hasInitializedShortcutCharMap=!1,B=_.J(t.shortcuts),V=B.next();!V.done;V=B.next())b=V.value,X.emojiShortcutMap[b.toLocaleLowerCase()]=y;return T.yield(_.ig.getInstance(),
2)}if(T.nextAddress!=4)return(e=T.yieldResult)?T.yield(e.get("ytlc-emoji-pref"),4):T.jumpTo(0);F=(g=T.yieldResult)!=null?g:{};F[t.emojiId]=G;return T.yield(e.set("ytlc-emoji-pref",F,V4z),0)})};
_.wQ=new _.tB;var sFe;_.zK={};
sFe={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.A("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:_.A("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 By(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 X=_.Sm(this.hostElement||this).querySelector("#inline-action-button-container");X&&X.setAttribute("aria-hidden","true");this.menuButton=_.Sm(this.hostElement).querySelector("#menu-button")},
attached:function(){var X=this.menuButton;X&&(X.addEventListener("focusin",_.Ik(this,this.onMenuButtonFocus_)),X.addEventListener("focusout",_.Ik(this,this.onMenuButtonBlur_)))},
detached:function(){var X=this.menuButton;X&&(X.removeEventListener("focusin",_.Ik(this,this.onMenuButtonFocus_)),X.removeEventListener("focusout",_.Ik(this,this.onMenuButtonBlur_)))},
identity:_.Nw,truthy:function(X){return!!X},
computeTimestampString:function(X){return X?X.timestampText?this.getSimpleString(X.timestampText):this.TIME_FORMATTER.format(new Date(X.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(X){return X},
computeMenuVisible_:function(X,t){return X||t},
computeHasInlineActionButtons:function(X){if(!X)return!1;var t,G;return!((t=X.inlineActionButtons)==null||!t.length)||!((G=X.additionalInlineActionButtons)==null||!G.length)},
createDocumentFragmentFromString:function(X){var t=_.wQ.createDocumentFragment.bind(_.wQ),G;if((G=this.participantsManager)==null||!G.viewerRegex)return t(X);G=document.createDocumentFragment();for(var y=0,w;(w=this.participantsManager.viewerRegex.exec(X))!=null;){if(w.index>0){var z=":"+w[0]+":";if((_.GK(_.wQ,z)||_.ID(_.wQ,z))&&X.indexOf(z)===w.index-1)continue}G.appendChild(t(X.substring(y,w.index)));y=document.createElement("span");y.appendChild(t(w[0]));y.classList.add("mention");G.appendChild(y);
y=w.index+w[0].length}G.appendChild(t(X.substring(y)));return G},
createDocumentFragment:function(X){var t=document.createDocumentFragment();if(X.simpleText)return t.appendChild(this.createDocumentFragmentFromString(X.simpleText)),t;if(!X.runs)return t;for(var G=0;G<X.runs.length;G++){var y=X.runs[G];if(y.emoji)t.appendChild(_.wQ.createEmoji(y.emoji));else if(y.text)if(y.navigationEndpoint){var w=document.createElement("a");w.classList.add("yt-simple-endpoint");hIl(w,y.navigationEndpoint);_.Sm(w).appendChild(this.createDocumentFragmentFromString(y.text));t.appendChild(w)}else t.appendChild(this.createDocumentFragmentFromString(y.text))}return t},
hasModerationOverlayVisible:function(){var X;return((X=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:X.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(X){X.composedPath().some(function(t){return(t=t instanceof Element?t:null)?t.tagName&&(t.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||t.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.A("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(X)},
colorFromDecimal:function(X){return ck0(X)},
markAsDeleted:function(X,t){this.set("data.deletedStateMessage",X);this.set("data.showOriginalContentMessage",t)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(X){if(this.data.contextMenuEndpoint){var t=_.gw().resolve(_.fp),G=this.data.contextMenuEndpoint,y;(y=_.VE.instance)&&_.bX(y,G)?(t=ARe(t,G),y=_.t_(y,{},t)):y=_.Yv4(t,G);y.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);X&&X.stopPropagation()}},
handleGetContextMenuResponse_:function(X){var t=_.VE.instance;t&&_.bX(t,{liveChatEndpoint:{}})||(X=X.response);X.liveChatItemContextMenuSupportedRenderers&&X.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(X.liveChatItemContextMenuSupportedRenderers.menuRenderer);X.actions&&_.sl(this.hostElement,"yt-live-chat-actions",[X.actions])},
handleGetContextMenuError:function(X){if(X instanceof Error||X instanceof Object||X instanceof String)var t=X;_.xA(new _.NJ("Error encountered calling GetLiveChatItemContextMenu",t))},
showContextMenu_:function(X){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:X}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Yt(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Yt(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.zK.YtLiveChatItemBehavior=[sFe,_.zw.YtComponentBehavior,_.cr.YtOpenPopupBehavior];_.HC=function(){};var D$o;var SvS;var h0S;var ZwB;var oh=function(){var X=_.O.apply(this,arguments)||this;X.active=!1;X.identity=_.Nw;return X};
_.S(oh,_.O);oh.prototype.dataChanged=function(){this.active=!1};
oh.prototype.onClick=function(){_.Yt(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
oh.prototype.dataChanged=oh.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],oh.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],oh.prototype,"active",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oh.prototype,"dataChanged",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],oh);
_.N(oh,"yt-live-chat-text-input-field-suggestion",function(){if(ZwB===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;h0S===void 0&&(h0S=document.createElement("template"));var y=h0S;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ZwB=X}X=ZwB;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});_.JB=function(X,t,G){return CustomEvent.call(this,X,{detail:{value:t,path:G}})||this};
_.S(_.JB,CustomEvent);_.BC=function(){var X=_.O.apply(this,arguments)||this;X.viewerName=null;X.actionMap={"yt-live-chat-actions":"onChatMessage_"};X.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];X.PARTICIPANT_TIME_USEC_=3E8;return X};
_.S(_.BC,_.O);_.H=_.BC.prototype;_.H.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.H.addParticipant=function(X){var t=_.AAE(this.participants,X,function(y,w){y=y[Object.keys(y)[0]];w=w[Object.keys(w)[0]];y=String(_.bu(y.authorName)).toLowerCase();w=String(_.bu(w.authorName)).toLowerCase();return y<w?-1:y==w?0:1}.bind(this));
if(t>=0){var G=this.participants[t];G[Object.keys(G)[0]].timestampUsec&&this.splice("participants",t,1,X)}else this.splice("participants",-t-1,0,X);X=X[Object.keys(X)[0]];t=_.bu(X.authorName).toLocaleLowerCase();G=t.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(G)||(this.allParticipantsCharMap_[G]={});this.allParticipantsCharMap_[G][t]=X};
_.H.getAuthorsFromPrefix=function(X){return this.allParticipantsCharMap_.hasOwnProperty(X)?this.allParticipantsCharMap_[X]:null};
_.H.computeViewerRegex_=function(X){if(!X)return null;X=X.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var t=X.indexOf("@")===0&&_.A("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(t+X.replace(/ /g,"\\s*")+"|^"+X.replace(/ /g,"\\s*")+"$|^"+X.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+X.replace(/ /g,"\\s*")+"$|(?<=\\s)"+X.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.H.checkForStaleParticipants_=function(){var X=this;this.trimOldParticipants_();this.asyncHandle_&&JYV(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.oL(function(){X.checkForStaleParticipants_()},3E4))};
_.H.onChatMessage_=function(X){var t=this,G=Date.now()*1E3;X.forEach(function(y){if(y=_.Y(y,qyR)){y=y.item;var w=Object.keys(y)[0];t.SUPPORTED_ITEM_TYPES_.indexOf(w)!=-1&&y[w].timestampUsec>=G-t.PARTICIPANT_TIME_USEC_&&t.addParticipant(y)}},this);
this.checkForStaleParticipants_()};
_.H.trimOldParticipants_=function(){for(var X=Date.now()*1E3,t=this.participants.length-1;t>=0;t--){var G=this.participants[t];G=G[Object.keys(G)[0]];G.timestampUsec&&G.timestampUsec<X-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",t,1)}};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],_.BC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],_.BC.prototype,"viewerName",void 0);_.E([_.K({computed:"computeViewerRegex_(viewerName)"}),_.U("design:type",Object)],_.BC.prototype,"viewerRegex",void 0);_.E([_.K({value:function(){return[]},
notify:!0}),_.U("design:type",Array)],_.BC.prototype,"participants",void 0);_.E([_.$F({is:"yt-live-chat-participants-manager",noInjection:!0})],_.BC);var qvq=/.*([:@#].*?)$/,nr=/\u00a0/g,Cc4=String.fromCharCode(160),KsB={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"},VM=function(){var X=_.O.apply(this,arguments)||this;X.disabled=!1;X.liveChatRichMessageInput=null;X.messageInput=null;X.isValidWithNoInputText=!1;X.suggestions=[];X.emojiManager=_.wQ;X.inputMethodEditorActive=
!1;X.suggestionIndex=-1;X.JSC$13983_lastSuggestionRange=null;return X};
_.S(VM,_.O);_.H=VM.prototype;_.H.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.H.attached=function(){_.qe&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.H.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.H.dataChanged=function(){if(!this.ignoreColorMapping){var X=!1,t={},G;for(G in KsB)this.data&&this.data.hasOwnProperty(G)&&(t[KsB[G]]=this.colorFromDecimal(this.data[G]),X=!0);X&&_.Kd(this.hostElement,t)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.H.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.H.colorFromDecimal=function(X){X=Math.floor(Number(X));return"rgba("+[X>>16&255,X>>8&255,X&255,(X>>24&255)/255].join()+")"};
_.H.preventDrag=function(X){X.dataTransfer&&(X.dataTransfer.dropEffect="none");X.preventDefault()};
_.H.preventResize=function(X){X.returnValue=!1};
_.H.onInputChange=function(){var X=this.characterCount,t=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&t&&t.remove();if(!t&&this.characterCount>this.maxCharacterLimit){var G=window.getSelection();if(G){var y=G.getRangeAt(0);G.removeAllRanges();G.addRange(y)}}if(G=this.getCurrentRange())y=this.calculateTextBeforeRange(G),this.completeEmojisInRange(G,y,!0)||this.updateSuggestions(G,y);y=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(y);
_.Yt(this.hostElement,"yt-live-chat-message-input-change",y);t&&this.characterCount===0&&t.remove();G&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>X):G&&!G.collapsed&&G.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(X=this.input.childNodes.length-1;X>=0;X--)this.input.childNodes[X].nodeName==="BR"&&this.input.childNodes[X].remove()};
_.H.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.H.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var X=this.getCurrentRange();X&&X.commonAncestorContainer.parentElement.id==="input"&&X.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.H.mergeOverflowText=function(X){if(X){var t=document.createRange();t.selectNodeContents(X);t=t.extractContents();this.input.insertBefore(t,X)}};
_.H.checkRangeAtEndOfInput=function(){var X=this.getCurrentRange();if(X){var t=_.Sm(this.hostElement).querySelector("#overflow-text"),G=document.createRange();t&&t.previousSibling?t.previousSibling instanceof HTMLImageElement?G.selectNode(t.previousSibling):G.selectNodeContents(t.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?G.selectNode(this.input.lastChild):G.selectNodeContents(this.input.lastChild));G.collapse(!1);return G.isPointInRange(X.startContainer,
X.startOffset)}return!1};
_.H.handleOverflowText=function(X){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var t=_.Sm(this.hostElement).querySelector("#overflow-text"),G=this.getCurrentRange();this.input.normalize();X=this.checkRangeAtEndOfInput()&&X;this.mergeOverflowText(t);for(var y,w=0,z=0,B,V=this.input.childNodes,b=0;b<V.length;b++){var e=V[b];e instanceof Text?(z+=e.textContent.length,z>this.maxCharacterLimit&&(y=e,w=this.maxCharacterLimit+e.textContent.length-z)):e instanceof HTMLImageElement&&
(y=void 0,z=e.dataset.emojiId&&((y=this.data)==null?0:y.emojiCharacterCount)?z+this.data.emojiCharacterCount:z+e.alt.length,y=this.input,w=b);if(z>this.maxCharacterLimit&&y){B=document.createRange();B.collapse(!1);t?(z=this.input.lastChild.previousSibling,z instanceof Text?B.setEnd(this.input.lastChild.previousSibling,z.textContent.length):z instanceof HTMLImageElement&&B.setEnd(this.input,this.input.childNodes.length-1)):B.selectNodeContents(this.input);B.setStart(y,w);break}}B&&(y=!1,G&&(X=B.isPointInRange(G.startContainer,
G.startOffset-1)),t||(t=document.createElement("span"),t.id="overflow-text",t.textContent="",t.setAttribute("contenteditable","true"),_.Sm(_.Sm(this.hostElement).querySelector("#input")).appendChild(t),y=!0),t&&(G=B.extractContents(),t.insertBefore(G,t.firstChild),X&&t.firstChild&&(G=document.createRange(),y?G.setStartAfter(t.lastChild):G.setStartAfter(t.firstChild),G.collapse(!0),t=window.getSelection(),t.removeAllRanges(),t.addRange(G))))}};
_.H.checkForDuplicateSpans=function(){for(var X=0;X<this.input.childNodes.length;X++){var t=this.input.childNodes[X];if(t.nodeName==="SPAN"){var G=document.createRange();G.selectNodeContents(t);G=G.extractContents();this.input.insertBefore(G,t);t.remove()}}this.handleOverflowText(!0)};
_.H.getCurrentRange=function(){var X=window.getSelection();return X&&X.rangeCount?X.getRangeAt(0).cloneRange():null};
_.H.getInputRange=function(){var X=this.getCurrentRange();if(X){for(var t=X.commonAncestorContainer,G=!1,y=_.Sm(this.hostElement).querySelector("#input");t;){if(t===y){G=!0;break}t=t.parentNode}G||(X=null)}X||(X=this.getRangeAtEnd());return X};
_.H.getRangeAtEnd=function(){var X=document.createRange(),t=_.Sm(this.hostElement).querySelector("#input").lastChild;!t||t.nodeName!=="#text"&&t.nodeName!=="SPAN"?(X.selectNodeContents(_.Sm(this.hostElement).querySelector("#input")),X.collapse(!1)):t.nodeName==="#text"?X.setStart(t,t.textContent.length):X.setStart(t,t.childNodes.length);return X};
_.H.getChatParticipantSuggestions=function(X,t,G,y){var w=_.A("live_chat_enable_handles_web_text_input_update");if(t)for(var z in t)if(z.indexOf(X)===0||w&&z.indexOf(G+X)===0){var B=t[z],V=_.bu(B.authorName);y.push({suggestion:{author:!0,authorType:G,image:B.authorPhoto,alt:V,text:V}});if(y.length>=64)break}};
_.H.getSuggestions=function(X){var t=[],G=X.substring(0,3),y=Fs4(_.wQ,G,!0);if(y)for(var w in y)if(w.toLocaleLowerCase().indexOf(X)===0){var z=y[w];if(z&&z.emojiId){if(z=gfS(_.wQ,z.emojiId)){var B=void 0,V=void 0,b=void 0,e=void 0,g=((B=z.image)==null?0:(V=B.accessibility)==null?0:(b=V.accessibilityData)==null?0:b.label)||z.isCustomEmoji?(e=z.shortcuts)==null?void 0:e[0]:z.emojiId;t.push({suggestion:{emoji:!0,image:z.image,alt:g,text:w,textToInsertWhenSelected:z.isCustomEmoji?w:g}})}if(t.length>=
64)break}}if(!this.participantsManager)return null;if(G.indexOf("@")===0||G.indexOf("#")===0)y=G.charAt(0),X=X.substring(1),w=_.A("live_chat_enable_handles_web_text_input_update"),G.indexOf("@")===0&&w&&(w=this.participantsManager.getAuthorsFromPrefix(G.substring(0,2)),this.getChatParticipantSuggestions(X,w,y,t)),G=G.substring(1),G=this.participantsManager.getAuthorsFromPrefix(G),this.getChatParticipantSuggestions(X,G,y,t);return t?t.sort(function(F,T){return T.suggestion.text<F.suggestion.text?-1:
T.suggestion.text===F.suggestion.text?0:1}):null};
_.H.insertSuggestion=function(X){var t=_.A("live_chat_enable_handles_web_text_input_update"),G=X.authorType;t=X.text.indexOf(G)===0&&t?X.text+Cc4:G+X.text+Cc4;X.emoji?this.insertTextAtRange(this.JSC$13983_lastSuggestionRange,X.textToInsertWhenSelected||""):X.author&&this.insertTextAtRange(this.JSC$13983_lastSuggestionRange,t)};
_.H.updateSuggestionsAtCaret=function(){var X=this.getCurrentRange();X&&this.updateSuggestions(X,this.calculateTextBeforeRange(X))};
_.H.offsetStartOfRangeBy=function(X,t){for(;t>0;)if(X.startOffset-t>=0){X.setStart(X.startContainer,X.startOffset-t);break}else{t=X.startContainer instanceof HTMLImageElement?t-X.startContainer.alt.length:t-X.startOffset;var G=X.startContainer.previousSibling;if(!G){X.setStart(X.startContainer,0);break}if(_.A("live_chat_require_space_for_autocomplete_emoji")){var y=void 0,w=void 0;X.setStart(G,((y=G)==null?void 0:(w=y.textContent)==null?void 0:w.length)||0)}else X.setStart(G,G.childNodes.length||
0)}};
_.H.updateSuggestions=function(X,t){var G=this;this.JSC$13983_lastSuggestionRange&&(this.JSC$13983_lastSuggestionRange.detach(),this.JSC$13983_lastSuggestionRange=null);if((t=qvq.exec(t))&&t.length&&(t=t[t.length-1].toLocaleLowerCase(),t.length>2&&(this.offsetStartOfRangeBy(X,t.length),this.JSC$13983_lastSuggestionRange=X,(X=this.getSuggestions(t))&&X.length))){this.suggestions=X;_.V8(this,function(){_.Sm(G.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(X.length-1);return}this.dropdown.opened=!1};
_.H.completeEmojisInRange=function(X,t,G){var y=t.replace(/[\s\xa0]+$/,"");t=t.length-y.length;y=y.split(" ");y=y[y.length-1].trim().toLocaleLowerCase();var w=y.lastIndexOf(":");if(G&&!t&&w!==y.length-1)return!1;w!==-1&&(G=y.lastIndexOf(":",w-1),G!==-1&&(y=y.substring(G)));if((G=_.ID(_.wQ,y))&&G.emojiId){G=gfS(_.wQ,G.emojiId)||null;this.offsetStartOfRangeBy(X,y.length+t);var z,B,V,b;y=(((z=G)==null?0:z.isCustomEmoji)?(B=G)==null?void 0:(V=B.shortcuts)==null?void 0:V[0]:(b=G)==null?void 0:b.emojiId)||
"";t&&(y+=Cc4);this.insertTextAtRange(X,y);this.dropdown.opened=!1;return!0}return!1};
_.H.onSuggestion=function(X){this.insertSuggestion(X.detail);this.dropdown.opened=!1};
_.H.onKeyPress=function(X){X.keyCode===13&&(X.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Yt(this.hostElement,"yt-live-chat-send-message"))};
_.H.completeEmojis=function(){var X=document.createRange(),t=_.Sm(this.hostElement).querySelector("#input").lastChild;t?X.setStart(t,t.childNodes.length):(X.selectNodeContents(_.Sm(this.hostElement).querySelector("#input")),X.collapse(!1));this.completeEmojisInRange(X,this.calculateTextBeforeRange(X),_.A("live_chat_require_space_for_autocomplete_emoji"))};
_.H.maybePreventTextFormatting=function(X){!_.uz||!X.ctrlKey&&!X.metaKey||X.keyCode!==66&&X.keyCode!==73||(X.stopImmediatePropagation(),X.preventDefault())};
_.H.onKeyDown=function(X){this.maybePreventTextFormatting(X);if(this.dropdown.opened)switch(X.keyCode){case 27:this.dropdown.opened=!1;X.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;X.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);X.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),X.preventDefault()}};
_.H.onKeyUp=function(X){switch(X.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Z_)this.onInputChange()};
_.H.changeSuggestionIndex=function(X){if(this.dropdown.opened){var t=_.Sm(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<t.children.length&&(t.children[this.suggestionIndex].active=!1);var G=this.suggestions.length;this.suggestionIndex=(X+G)%G;X=t.children[this.suggestionIndex];X.active=!0;t.scrollTop=X.offsetTop}};
_.H.onInputPaste=function(X){X.preventDefault();(X=X.clipboardData)&&X.types&&(X=X.getData("text/plain")||"",X=X.replace(/\n/g,""),this.insertText(X));(X=this.getCurrentRange())&&X.commonAncestorContainer.parentElement.id==="input"&&X.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.H.onFocus=function(){this._setFocused(!0)};
_.H.onBlur=function(){this._setFocused(!1)};
_.H.insertText=function(X){this.insertTextAtRange(this.getInputRange(),X)};
_.H.insertTextAtRange=function(X,t){if(X&&(X.collapsed||X.deleteContents(),t=_.wQ.createDocumentFragment(t,!0,!1))){for(var G=_.J((t==null?void 0:t.childNodes)||[]),y=G.next();!y.done;y=G.next()){y=y.value;var w=void 0,z=void 0,B=void 0,V=void 0,b=void 0;(B=(w=window)==null?void 0:(z=w.ShadyCSS)==null?void 0:z.ScopingShim)==null||(b=(V=B).scopeNode)==null||b.call(V,y,this.hostElement.localName)}G=t.lastChild;X.insertNode(t);this.focused||this.input.focus();if(this.focused){X=X.cloneRange();X.selectNodeContents(G);
X.collapse(!1);if(t=window.getSelection())t.removeAllRanges(),t.addRange(X);X.commonAncestorContainer.parentElement.id==="input"&&X.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}X=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(X);_.Yt(this.hostElement,"yt-live-chat-message-input-change",X)}};
_.H.setLiveChatRichMessageInput=function(X){_.Sm(_.Sm(this.hostElement).querySelector("#input")).textContent="";if(X&&X.textSegments){for(var t=0;t<X.textSegments.length;t++){var G=X.textSegments[t];G.text?_.Sm(_.Sm(this.hostElement).querySelector("#input")).appendChild(_.wQ.createDocumentFragment(G.text,!0,!1)):G.emojiId&&(G=_.GK(_.wQ,G.emojiId))&&_.Sm(_.Sm(this.hostElement).querySelector("#input")).appendChild(_.wQ.createEmoji(G,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.H.setText=function(X){this.setLiveChatRichMessageInput(X?{textSegments:[{text:X}]}:null)};
_.H.calculateTextBeforeRange=function(X){var t="",G=X.startContainer;if(G&&G instanceof Text){var y;t=((y=G.textContent)==null?void 0:y.substring(0,X.startOffset))||"";G=G.previousSibling}for(;G&&G instanceof Text;)t=G.textContent+t,G=G.previousSibling;return t.replace(nr," ")};
_.H.calculateLiveChatRichMessageInput=function(){for(var X=[],t="",G=_.Sm(_.Sm(this.hostElement).querySelector("#input")).childNodes,y=0;y<G.length;y++){var w=G[y];w instanceof Text?t+=w.textContent:w instanceof HTMLImageElement&&(w.dataset.emojiId?(t&&(X.push({text:t.replace(nr," ")}),t=""),X.push({emojiId:w.dataset.emojiId})):t+=w.alt)}t&&X.push({text:t.replace(nr," ")});if(G=_.Sm(this.hostElement).querySelector("#overflow-text")){t="";G=G.childNodes;for(y=0;y<G.length;y++)w=G[y],w instanceof Text?
t+=w.textContent:w instanceof HTMLImageElement&&(w.dataset.emojiId?(t&&(X.push({text:t.replace(nr," ")}),t=""),X.push({emojiId:w.dataset.emojiId})):t+=w.alt);t&&X.push({text:t.replace(nr," ")})}return{textSegments:X}};
_.H.computeCharacterCount=function(X){if(!X||!X.textSegments)return 0;for(var t=0,G=0;G<X.textSegments.length;G++){var y=X.textSegments[G];if(y.text)t+=y.text.length;else if(y.emojiId){var w=void 0;if((w=this.data)==null?0:w.emojiCharacterCount)t+=this.data.emojiCharacterCount;else{var z=w=void 0,B=void 0;t+=((z=_.GK(_.wQ,(w=y)==null?void 0:w.emojiId))==null?void 0:(B=z.shortcuts)==null?void 0:B[0].length)||0}}}return t};
_.H.characterCountChanged=function(){_.Yt(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.H.focusedChanged=function(){this.hostElement.dispatchEvent(new _.JB("focused-changed",this.focused))};
_.H.focus=function(){this.setFocus(!1)};
_.H.focusAtEnd=function(){this.setFocus(!0)};
_.H.setFocus=function(X){X=X?this.getRangeAtEnd():this.getInputRange();_.Sm(this.hostElement).querySelector("#input").focus();var t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(X))};
_.H.insertEmoji=function(X){var t,G=((X==null?0:X.isCustomEmoji)?(t=X.shortcuts)==null?void 0:t[0]:X==null?void 0:X.emojiId)||"";this.insertText(G)};
_.H.computeText=function(X){if(!X||!X.textSegments)return"";for(var t="",G=0;G<X.textSegments.length;G++){var y=X.textSegments[G];if(y.text)t+=y.text;else if(y.emojiId){var w=void 0,z=void 0,B=void 0;t+=((z=_.GK(_.wQ,(w=y)==null?void 0:w.emojiId))==null?void 0:(B=z.shortcuts)==null?void 0:B[0])||""}}return t};
_.H.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.ke.Object.defineProperties(VM.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.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}}});
VM.prototype.focusedChanged=VM.prototype.focusedChanged;VM.prototype.characterCountChanged=VM.prototype.characterCountChanged;VM.prototype.onSuggestion=VM.prototype.onSuggestion;VM.prototype.onMessageSet=VM.prototype.onMessageSet;VM.prototype.dataChanged=VM.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],VM.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],VM.prototype,"disabled",void 0);_.E([_.C("disabled"),_.U("design:type",Number),_.U("design:paramtypes",[])],VM.prototype,"inputTabIndex",null);_.E([_.C("data.maxCharacterLimit"),_.K({readOnly:!0,notify:!0}),_.U("design:type",Number),_.U("design:paramtypes",[])],VM.prototype,"maxCharacterLimit",null);
_.E([_.C("liveChatRichMessageInput"),_.K({readOnly:!0,notify:!0}),_.U("design:type",Number),_.U("design:paramtypes",[])],VM.prototype,"characterCount",null);_.E([_.C("maxCharacterLimit, characterCount"),_.K({readOnly:!0,notify:!0}),_.U("design:type",Number),_.U("design:paramtypes",[])],VM.prototype,"remainingCharacterCount",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],VM.prototype,"isChatMessageInput",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],VM.prototype,"inputExpanded",void 0);_.E([_.K({readOnly:!0,notify:!0}),_.U("design:type",Object)],VM.prototype,"liveChatRichMessageInput",void 0);_.E([_.K(),_.U("design:type",Object)],VM.prototype,"messageInput",void 0);_.E([_.K(),_.U("design:type",Boolean)],VM.prototype,"ignoreColorMapping",void 0);_.E([_.C("characterCount"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],VM.prototype,"hasText",null);
_.E([_.K(),_.U("design:type",Object)],VM.prototype,"isValidWithNoInputText",void 0);_.E([_.C("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.K(),_.U("design:type",Boolean),_.U("design:paramtypes",[])],VM.prototype,"isInputValid",null);_.E([_.K({readOnly:!0,value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],VM.prototype,"focused",void 0);_.E([_.K(),_.U("design:type",Array)],VM.prototype,"suggestions",void 0);
_.E([_.K(),_.U("design:type",_.tB)],VM.prototype,"emojiManager",void 0);_.E([_.K(),_.U("design:type",_.BC)],VM.prototype,"participantsManager",void 0);_.E([_.K(),_.U("design:type",Boolean)],VM.prototype,"noUnderline",void 0);_.E([_.K(),_.U("design:type",Object)],VM.prototype,"inputMethodEditorActive",void 0);_.E([_.rt("#dropdown"),_.U("design:type",Object)],VM.prototype,"dropdown",void 0);_.E([_.rt("#input"),_.U("design:type",HTMLElement)],VM.prototype,"input",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VM.prototype,"dataChanged",null);_.E([_.cW("messageInput"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VM.prototype,"onMessageSet",null);_.E([_.WW("yt-live-chat-select-suggestion"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],VM.prototype,"onSuggestion",null);
_.E([_.cW("characterCount"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VM.prototype,"characterCountChanged",null);_.E([_.cW("focused"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VM.prototype,"focusedChanged",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],VM);
_.Owo=_.N(VM,"yt-live-chat-text-input-field-renderer",function(){if(SvS===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;D$o===void 0&&(D$o=document.createElement("template"));var y=D$o;G.call(t,y.content.cloneNode(!0),X.content.firstChild);SvS=X}X=SvS;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var bV=function(){var X=_.O.apply(this,arguments)||this;X.buttonOverrides={style:"overlay",type:"filled"};X.allowAnimations=!1;X.modern=_.A("web_button_rework_with_live");X.noPadding=!1;return X};
_.S(bV,_.O);_.H=bV.prototype;_.H.shouldSupportInlineActionButtons=function(){return!0};
_.H.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"}}}}};
_.H.ready=function(){var X=document.querySelector("yt-live-chat-app");X&&X.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.H.attached=function(){this.allowAnimations=!1};
_.H.dataChanged=function(){if(this.data){var X={"--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)};_.Kd(this.hostElement,X);this.allowAnimations=!0}};
_.H.messageChanged=function(){var X,t=(X=this.data)==null?void 0:X.message;X=_.Sm(_.Sm(this.hostElement).querySelector("#message"));X.textContent="";t&&X.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.H.computeShowOnlyHeader=function(X,t){return!X||X.pdgLikeButton||X.replyButton||X.buyFlowButton?!1:this.isEmpty(X,t)&&!X.footer};
_.H.computeShowFooterDivider=function(X,t,G){return X?!!X.footer&&!this.isEmpty(X,t)&&!G:!1};
_.H.computeIsUserEditable=function(X){return!!X.inputField};
_.H.computeHasHeartButton=function(X){return(X==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(X==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(X==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.H.computeNoveltyImage=function(X){if(X.headerOverlayImage&&X.headerOverlayImage.thumbnails.length){var t=X.headerOverlayImage.thumbnails[0],G,y;if((G=X.pdgPurchasedNoveltyLoggingDirectives)==null?0:(y=G.loggingDirectives)==null?0:y.trackingParams){var w,z;Zx0((w=X.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(z=w.loggingDirectives)==null?void 0:z.trackingParams)}return t.width||0}return 0};
_.H.computeAuthorPhotoSize=function(X){return(X==null?0:X.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.H.inputFocus=function(){var X=_.Sm(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");X&&X.focus()};
_.H.inputInsertEmoji=function(X){var t=_.Sm(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");t&&t.insertEmoji(X)};
_.H.inputMessage=function(){var X=_.Sm(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),t;return X&&((t=this.data)==null?0:t.inputField)?(X.completeEmojis(),_.JS(X.liveChatRichMessageInput)):null};
_.H.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.H.isEmpty=function(X,t){return X?X.empty||!(X.message||X.inputField||t):!0};
_.H.onLowerBuyButtonClick=function(){var X,t=_.Y((X=this.data)==null?void 0:X.buyButton,_.G4);t&&t.trackingParams&&!rk0(t.command)&&(X=_.i$(t.trackingParams))&&(t=_.lw())&&_.BK(t,X)};
_.H.shouldSupportWholeItemClick=function(){return!0};
_.ke.Object.defineProperties(bV.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
bV.prototype.isDeletedChanged=bV.prototype.isDeletedChanged;bV.prototype.messageChanged=bV.prototype.messageChanged;bV.prototype.dataChanged=bV.prototype.dataChanged;_.E([_.q(wcq.YtPdgLiveChatItemBehavior),_.U("design:type",Object)],bV.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],bV.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],bV.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bV.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:S70}),_.U("design:type",Object)],bV.prototype,"engagementState",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.U("design:type",Boolean)],bV.prototype,"isUserEditable",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.U("design:type",Boolean)],bV.prototype,"hasHeartButton",void 0);_.E([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.U("design:type",Boolean)],bV.prototype,"showOnlyHeader",void 0);
_.E([_.K({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.U("design:type",Boolean)],bV.prototype,"showFooterDivider",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Object)],bV.prototype,"allowAnimations",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],bV.prototype,"dashboardMoneyFeed",void 0);_.E([_.K({computed:"computeNoveltyImage(data)"}),_.U("design:type",Number)],bV.prototype,"noveltyWidth",void 0);
_.E([_.K({computed:"computeAuthorPhotoSize(data)"}),_.U("design:type",Number)],bV.prototype,"authorPhotoSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bV.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bV.prototype,"noPadding",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bV.prototype,"dataChanged",null);
_.E([_.cW("data.message"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bV.prototype,"messageChanged",null);_.E([_.C("data","dashboardMoneyFeed"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],bV.prototype,"hideLowerBumper",null);_.E([_.cW("isDeleted"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bV.prototype,"isDeletedChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],bV);
_.N(bV,"yt-live-chat-paid-message-renderer",function(){if(ENJ===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;P4e===void 0&&(P4e=document.createElement("template"));var y=P4e;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ENJ=X}X=ENJ;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var uCt;var QFq;var kQ=function(){var X=_.PW.apply(this,arguments)||this;X._noAccessors=!0;return X};
_.S(kQ,_.PW);kQ.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Md("openPopupConfig")};
_.E([_.q(_.cr.YtOpenPopupBehavior),_.U("design:type",Object)],kQ.prototype,"ytOpenPopupBehavior",void 0);_.E([_.E0()],kQ);_.dQ=[_.cr.YtOpenPopupBehavior,kQ.prototype];var IgP;var ee=[_.pp,BYz,_.Xs,_.rV,_.nq,_.Kpq,_.E8,_.NB4,_.fV,D3f];_.A("web_watch_get_updated_metadata_response_processing")&&ee.push(_.yPR);_.A("web_continuation_response_processing")&&ee.push(_.Hk);var THf=new _.FB("RESPONSE_RECEIVED_COMMANDS"),T8v=new _.FB("RESPONSE_RECEIVED_COMMANDS");var bQw="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),VK6=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],nc0=["GET_UNSEEN_NOTIFICATION_COUNT"];var eC=function(){var X=_.PW.apply(this,arguments)||this;X._noAccessors=!0;X.serviceEndpointHandlers=[];return X};
_.S(eC,_.PW);eC.prototype.created=function(){var X=this;this.endpointHandlerActionMap={"yt-service-request":function(t,G,y,w){var z;return B8w(X.hostElement,t,G,y,w,X.serviceEndpointHandlers,(z=X.onEntitiesUpdated)==null?void 0:z.bind(X))}}};
eC.prototype.attached=function(){_.oO(_.Hq.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
eC.prototype.detached=function(){_.Ja(_.Hq.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.E([_.E0()],eC);_.Wst=[eC.prototype];var cRB,pA4=function(){return cRB!==void 0?cRB:cRB=document.createElement("template")};
document.head.appendChild(pA4().content);var rRq;var NW4=document.head,Pco=NW4.appendChild,Efq;if(rRq===void 0){var U$Y=document.createElement("template");_.Z(U$Y,"\x3c!--css-build:shady--\x3e");U$Y.content.insertBefore(pA4().content.cloneNode(!0),U$Y.content.firstChild);rRq=U$Y}Efq=rRq;Pco.call(NW4,Efq.content);var m$t,R0z=function(){return m$t!==void 0?m$t:m$t=document.createElement("template")};
document.head.appendChild(R0z().content);var iwt;var Ls4=document.head,vf4=Ls4.appendChild,agh;if(iwt===void 0){var lgB=document.createElement("template");_.Z(lgB,"\x3c!--css-build:shady--\x3e");lgB.content.insertBefore(R0z().content.cloneNode(!0),lgB.content.firstChild);iwt=lgB}agh=iwt;vf4.call(Ls4,agh.content);var x$S;_.Xa("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Xa("sharingRendererButtons","buttonRenderer","ytd-button-renderer");x$S=_.A("web_button_rework")&&_.X3("BUTTON_REWORK")||_.A("web_button_rework_with_live");_.jC=function(){var X=_.O.apply(this,arguments)||this;X.isPressed=!1;X.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return X};
_.S(_.jC,_.O);_.H=_.jC.prototype;_.H.created=function(){this.showTooltips=!0};
_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.onHintIdChanged=function(){var X=this,t,G,y=(t=this.ytButtonBehavior.data)==null?void 0:(G=t.hint)==null?void 0:G.hintRenderer;if(y&&y.hintId){t=_.D0(this.hostElement,"yt-get-opened-popups-action");t=(t&&t.length===1?t[0]:[]).length>0;var w=null;y.hintId!=="sponsor-pre-purchase"||t?y.hintId.startsWith("sponsor-post-purchase")&&!t?w=FKq("membership-manage"):y.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!t&&(w=FKq("membership-freebie-join")):w=FKq("membership-join");w&&_.vz.addLowPriorityJob(function(){for(var z=
_.J(w),B=z.next();!B.done;B=z.next())X.ytComponentBehavior.resolveCommand(B.value)})}};
_.H.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.H.onYtNavigate=function(X){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(X.detail.endpoint);t&&(X.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(t))};
_.H.onYtServiceRequestSent=function(X,t){this.handleServiceRequestActions(t);_.Yt(this.hostElement,"yt-service-request-sent-button-renderer")};
_.H.onServiceRequestCompleted=function(X,t){this.handleServiceRequestActions(t);_.Yt(this.hostElement,"yt-service-request-completed-button-renderer")};
_.H.updateButton=function(X){var t;if(X=(t=_.Y(X,$gq))==null?void 0:t.updatedButton)this.ytButtonBehavior.data=_.Y(X,_.G4)};
_.H.handleUpdateButtonAction=function(X){var t=this.ytButtonBehavior.data;t.targetId&&X.updateButtonAction.targetId&&t.targetId===X.updateButtonAction.targetId&&this.updateButton(X)};
_.H.handleServiceRequestActions=function(X){if(X=X.actions)for(var t=0;t<X.length;t++)this.updateButton(X[t])};
_.ke.Object.defineProperties(_.jC,{template:{configurable:!0,enumerable:!0,get:function(){if(IgP===void 0){var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);IgP=X}X=IgP;return X}}});
_.jC.prototype.onServiceRequestCompleted=_.jC.prototype.onServiceRequestCompleted;_.jC.prototype.onYtServiceRequestSent=_.jC.prototype.onYtServiceRequestSent;_.jC.prototype.onYtNavigate=_.jC.prototype.onYtNavigate;_.jC.prototype.onPressedStateChanged=_.jC.prototype.onPressedStateChanged;_.jC.prototype.onHintIdChanged=_.jC.prototype.onHintIdChanged;_.E([_.K(),_.U("design:type",Object)],_.jC.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],_.jC.prototype,"isPressed",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],_.jC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.oNz.YtButtonBehavior),_.U("design:type",Object)],_.jC.prototype,"ytButtonBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],_.jC.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],_.jC.prototype,"ytComponentBehavior",void 0);
_.E([_.q(Eb.YtRenderButtonBehavior),_.U("design:type",Object)],_.jC.prototype,"ytRenderButtonBehavior",void 0);_.E([_.cW("data.hint.hintRenderer"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],_.jC.prototype,"onHintIdChanged",null);_.E([_.cW("isPressed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],_.jC.prototype,"onPressedStateChanged",null);
_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],_.jC.prototype,"onYtNavigate",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],_.jC.prototype,"onYtServiceRequestSent",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],_.jC.prototype,"onServiceRequestCompleted",null);_.E([_.p({is:"ytd-button-renderer",disableElementRegistration:x$S})],_.jC);var gQ=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("web_button_rework_with_live");X.buttonOverrides={style:"overlay",type:"filled"};return X};
_.S(gQ,_.O);_.H=gQ.prototype;_.H.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"}}}}};
_.H.ready=function(){var X=document.querySelector("yt-live-chat-app");X&&X.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.H.dataChanged=function(){if(this.data&&this.data.sticker){var X=_.S_(this.data.sticker.thumbnails,this.stickerWidth);X||_.ZQ_(X).thenCatch(function(){_.Mj(new _.NJ("Failed to load Super Sticker with url",X))})}};
_.H.computeAuthorPhotoSize=function(X){return(X==null?0:X.isV2Style)?32:40};
_.H.computeIsV2Style=function(X){return(X==null?0:X.isV2Style)?!0:!1};
_.H.onStickerLoaded=function(X){var t,G,y;(t=_.k3(X))==null||(G=t.parentNode)==null||(y=G.classList)==null||y.add("sticker-loaded")};
_.H.computeNoveltyImageWidth=function(X){var t,G;if(X==null?0:(t=X.headerOverlayImage)==null?0:(G=t.thumbnails)==null?0:G.length){t=X.headerOverlayImage.thumbnails[0];var y,w;if((y=X.pdgPurchasedNoveltyLoggingDirectives)==null?0:(w=y.loggingDirectives)==null?0:w.trackingParams){var z,B;Zx0((z=X.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(B=z.loggingDirectives)==null?void 0:B.trackingParams)}return t.width||0}return 0};
_.H.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.H.updateStickerStyles=function(){var X=this.data;X&&(X={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(X.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(X.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(X.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(X.authorNameTextColor)},
_.Kd(this.hostElement,X))};
_.H.onBuyButtonClick=function(){var X,t=_.Y((X=this.data)==null?void 0:X.buyButton,_.G4);t&&!rk0(t.command)&&this.ytRendererBehavior.logExplicitClick(t)};
_.H.shouldSupportWholeItemClick=function(){return!0};
_.ke.Object.defineProperties(gQ.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 X;return((X=this.data)==null?0:X.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
gQ.prototype.updateStickerStyles=gQ.prototype.updateStickerStyles;gQ.prototype.isDeletedChanged=gQ.prototype.isDeletedChanged;gQ.prototype.onStickerLoaded=gQ.prototype.onStickerLoaded;gQ.prototype.dataChanged=gQ.prototype.dataChanged;_.E([_.q(wcq.YtPdgLiveChatItemBehavior),_.U("design:type",Object)],gQ.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],gQ.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],gQ.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gQ.prototype,"data",void 0);
_.E([_.K({computed:"computeAuthorPhotoSize(data)"}),_.U("design:type",Number)],gQ.prototype,"authorPhotoSize",void 0);_.E([_.K(),_.U("design:type",Boolean)],gQ.prototype,"isDeleted",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],gQ.prototype,"dashboardMoneyFeed",void 0);_.E([_.K({computed:"computeNoveltyImageWidth(data)"}),_.U("design:type",Number)],gQ.prototype,"noveltyWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gQ.prototype,"modern",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.U("design:type",Boolean)],gQ.prototype,"isV2Style",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gQ.prototype,"dataChanged",null);_.E([_.WW("yt-img-shadow-loaded"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],gQ.prototype,"onStickerLoaded",null);
_.E([_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],gQ.prototype,"stickerWidth",null);_.E([_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],gQ.prototype,"stickerHeight",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],gQ.prototype,"hasHeartButton",null);_.E([_.C("data","dashboardMoneyFeed"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],gQ.prototype,"hideLowerBumper",null);
_.E([_.cW("isDeleted"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gQ.prototype,"isDeletedChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gQ.prototype,"updateStickerStyles",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],gQ);
_.N(gQ,"yt-live-chat-paid-sticker-renderer",function(){if(QFq===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;uCt===void 0&&(uCt=document.createElement("template"));var y=uCt;G.call(t,y.content.cloneNode(!0),X.content.firstChild);QFq=X}X=QFq;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var fgS;var M4t;var Xiq,$cJ=function(){return Xiq!==void 0?Xiq:Xiq=document.createElement("template")};
document.head.appendChild($cJ().content);var t5z,GEh=function(){return t5z!==void 0?t5z:t5z=document.createElement("template")};
document.head.appendChild(GEh().content);var yhq;var wih,zAh=function(){return wih!==void 0?wih:wih=document.createElement("template")};
document.head.appendChild(zAh().content);var Hxo;var oOJ=document.head,Jho=oOJ.appendChild,Bet;if(Hxo===void 0){var nOe=document.createElement("template");_.Z(nOe,"\x3c!--css-build:shady--\x3e");nOe.content.insertBefore(zAh().content.cloneNode(!0),nOe.content.firstChild);Hxo=nOe}Bet=Hxo;Jho.call(oOJ,Bet.content);var V54=document.head,bxt=V54.appendChild,kEq;if(yhq===void 0){var FW=document.createElement("template");_.Z(FW,"\x3c!--css-build:shady--\x3e");FW.content.insertBefore(GEh().content.cloneNode(!0),FW.content.firstChild);FW.content.insertBefore($cJ().content.cloneNode(!0),FW.content.firstChild);yhq=FW}kEq=yhq;bxt.call(V54,kEq.content);var TK=function(){var X=_.PW.apply(this,arguments)||this;X.focusedIndex=0;X.verticalOffset=0;X.verticalAlign="top";X.dynamicAlign=!0;return X};
_.S(TK,_.PW);TK.prototype.emojiUrl=function(X){X=_.GK(this.emojiManager,X);if(!X)return"";var t;X=(t=X.image)==null?void 0:t.thumbnails;return _.S_(X,24)||""};
var dc4=function(X){var t;X.emojiVariants&&(t=X.data)!=null&&t.target&&_.V8(X,function(){X.set("verticalOffset",-1*X.hostElement.clientHeight);var G=_.Sm(X.hostElement).querySelector("img");G&&G.focus()})};
_.H=TK.prototype;_.H.onKeyboardEnter=function(){};
_.H.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.H.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.H.onKeyDown=function(X){switch(X.keyCode){case 13:this.onKeyboardEnter();X.preventDefault();break;case 40:this.changeFocus(1);X.preventDefault();break;case 38:this.changeFocus(-1);X.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.H.onYtEmojiSelect=function(X){var t=this,G,y,w,z,B,V,b,e;return _.n(function(g){if(g.nextAddress==1)return y=(G=t.data)==null?void 0:G.emoji,B=((w=y)==null?void 0:w.stickyPrefId)||((z=y)==null?void 0:z.emojiId),b=(V=X.detail)==null?void 0:V.emojiId,B&&b&&B!==b?g.yield((e=t.emojiManager)==null?void 0:TWh(e,y,b),2):g.return();_.sl(t.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[y,b]);_.W$(g)})};
_.H.changeFocus=function(X){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+X+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(X=_.Sm(this.hostElement).querySelector("#variants"))&&X.children[this.focusedIndex].focus())};
_.ke.Object.defineProperties(TK.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
TK.prototype.onYtEmojiSelect=TK.prototype.onYtEmojiSelect;TK.prototype.onKeyDown=TK.prototype.onKeyDown;TK.prototype.onEmojiVariantsChanged=TK.prototype.onEmojiVariantsChanged;TK.prototype.onVerticalOffsetOrPositionTargetChanged=TK.prototype.onVerticalOffsetOrPositionTargetChanged;_.E([_.q(_.BM),_.U("design:type",Object)],TK.prototype,"ironOverlayBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],TK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",_.tB)],TK.prototype,"emojiManager",void 0);
_.E([_.K(),_.U("design:type",Object)],TK.prototype,"emojiVariants",void 0);_.E([_.K(),_.U("design:type",Object)],TK.prototype,"focusedIndex",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],TK.prototype,"positionTarget",null);_.E([_.K({reflectToAttribute:!0}),_.C("verticalOffset","data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TK.prototype,"isPositioned",null);_.E([_.K(),_.U("design:type",Object)],TK.prototype,"verticalOffset",void 0);
_.E([_.K(),_.U("design:type",Object)],TK.prototype,"verticalAlign",void 0);_.E([_.K(),_.U("design:type",Object)],TK.prototype,"dynamicAlign",void 0);_.E([_.cW("verticalOffset","positionTarget"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TK.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.E([_.cW("emojiVariants"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TK.prototype,"onEmojiVariantsChanged",null);
_.E([_.WW("keydown"),_.U("design:type",Function),_.U("design:paramtypes",[KeyboardEvent]),_.U("design:returntype")],TK.prototype,"onKeyDown",null);_.E([_.WW("yt-emoji-select"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype",Promise)],TK.prototype,"onYtEmojiSelect",null);_.E([_.E0()],TK);var eAS=[TK.prototype];var jeJ;var gOq;var FFz=/medium-light|medium-dark|light|medium|dark/,TeB=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,AhR=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),AB=function(){var X=_.O.apply(this,arguments)||this;X.userSelection={left:null,right:null};X.scrollAction="lock";X.isEmojiDraftInProgress=!1;return X};
_.S(AB,_.O);_.H=AB.prototype;_.H.onClick=function(X){X=_.k3(X);X instanceof HTMLImageElement&&this.selectOrUpdateEmoji(X)};
_.H.selectOrUpdateEmoji=function(X){var t=X.getAttribute("selection");t&&(t==="default"?_.Yt(this.hostElement,"yt-emoji-select",_.GK(this.emojiManager,X.id)):t==="left"?this.userSelection=Object.assign({},this.userSelection,{left:X.src}):t==="right"?this.userSelection=Object.assign({},this.userSelection,{right:X.src}):t==="user"&&this.userSelection.left&&this.userSelection.right&&_.Yt(this.hostElement,"yt-emoji-select",_.GK(this.emojiManager,X.id)))};
_.H.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.H.onMultiSelectorThumbnailRowChanged=function(){var X,t,G;((X=this.data)==null?0:(t=X.emoji)==null?0:(G=t.multiSelectorThumbnailRow)==null?0:G.length)&&this.openSelector()};
_.H.getThumbnailFromEmojiRow=function(X){var t,G;return(X==null?void 0:(t=X.thumbnails)==null?void 0:(G=t[0])==null?void 0:G.url)||""};
_.H.getEmojiAltTextForPartialSelector=function(X){var t;return((t=this.getThumbnailFromEmojiRow(X).match(TeB))==null?void 0:t[0])||""};
_.H.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.H.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.H.getRowSelection=function(X){return["left","right"][X]};
_.H.getIdFromComposedEmoji=function(X){return(X==null?void 0:X.emojiId)||""};
_.H.getEmojiFromPartialSelections=function(X,t){if(!X&&!t)return null;var G,y,w=(G=this.data)==null?void 0:(y=G.emoji)==null?void 0:y.variantIds;if(!w||!w.length)return null;var z;X=(z=X.match(FFz))==null?void 0:z[0];var B;t=(B=t.match(FFz))==null?void 0:B[0];if(!X||!t)return null;var V=AhR.get(X);B=AhR.get(t);if(V===B){B=Array.from(AhR.values()).filter(function(e){return e!==V}).join("|");
var b=new RegExp("^((?!("+B+")).)*"+V+"$")}else b=new RegExp(V+".*"+B);return(w=w.find(function(e){return b.test(e)}))&&_.GK(this.emojiManager,w)||null};
_.H.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var X,t=this.ytEmojiSelectorBehavior.emojiUrl(((X=this.data.emoji)==null?void 0:X.emojiId)||"");_.Sm(this.hostElement).querySelector('[selection="user"]').src.includes(t)||(this.isEmojiDraftInProgress=!0)}};
_.H.onDomChange=function(){dc4(this.ytEmojiSelectorBehavior)};
_.H.getFocusableElements=function(){return _.Sm(this.hostElement).querySelectorAll("img").filter(function(X){return X.getAttribute("role")==="option"})};
_.H.changeFocus=function(X){var t=this.getFocusableElements();t!=null&&t.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+X+t.length)%t.length,this.ytEmojiSelectorBehavior.focusedIndex<t.length&&(X=t[this.ytEmojiSelectorBehavior.focusedIndex])&&X.focus())};
_.H.onKeyboardEnter=function(){var X=this.getFocusableElements();X!=null&&X.length&&(X=X[this.ytEmojiSelectorBehavior.focusedIndex])&&X instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(X),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.ke.Object.defineProperties(AB.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var X=this,t,G,y;return this.emojiManager&&((t=this.data)==null?0:(G=t.emoji)==null?0:(y=G.variantIds)==null?0:y.length)?this.data.emoji.variantIds.map(function(w){return!!w&&_.GK(X.emojiManager,w)}).filter(function(w){return!!w}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var X,t=(X=this.userSelection)==null?void 0:X.left,G;X=(G=this.userSelection)==null?void 0:G.right;return t&&X?this.getEmojiFromPartialSelections(t,X):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.composedEmojiSelection)==null?0:X.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var t;X=(t=this.userSelection)==null?void 0:t.left;var G;t=(G=this.userSelection)==null?void 0:G.right;if(!X&&!t){var y;return this.ytEmojiSelectorBehavior.emojiUrl(((y=this.data.emoji)==null?void 0:y.emojiId)||"")}return X&&!t?X:!X&&t?t:""}}});
AB.prototype.onMultiSelectorThumbnailRowChanged=AB.prototype.onMultiSelectorThumbnailRowChanged;AB.prototype.onClick=AB.prototype.onClick;_.E([_.q(_.BM),_.U("design:type",Object)],AB.prototype,"ironOverlayBehavior",void 0);_.E([_.q(eAS),_.U("design:type",Object)],AB.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],AB.prototype,"data",void 0);_.E([_.K(),_.U("design:type",_.tB)],AB.prototype,"emojiManager",void 0);
_.E([_.K(),_.U("design:type",Object)],AB.prototype,"userSelection",void 0);_.E([_.K(),_.U("design:type",Object)],AB.prototype,"scrollAction",void 0);_.E([_.K(),_.U("design:type",Object)],AB.prototype,"isEmojiDraftInProgress",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],AB.prototype,"emojiVariants",null);_.E([_.C("data","userSelection"),_.U("design:type",Object),_.U("design:paramtypes",[])],AB.prototype,"composedEmojiSelection",null);
_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[MouseEvent]),_.U("design:returntype")],AB.prototype,"onClick",null);_.E([_.cW("data.emoji.multiSelectorThumbnailRow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],AB.prototype,"onMultiSelectorThumbnailRowChanged",null);_.E([_.C("data","userSelection","composedEmojiSelection"),_.U("design:type",String),_.U("design:paramtypes",[])],AB.prototype,"draftEmojiUrl",null);
_.E([_.$F({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],AB);
_.N(AB,"yt-emoji-multi-person-selector",function(){if(gOq===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;jeJ===void 0&&(jeJ=document.createElement("template"));var y=jeJ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);gOq=X}X=gOq;return X},{mode:2});var Y7z;var seP;var YQ=function(){var X=_.O.apply(this,arguments)||this;X.tooltip_=null;return X};
_.S(YQ,_.O);_.H=YQ.prototype;_.H.dataChanged_=function(){var X;if((X=this.data)==null?0:X.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Sm(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Cd)(this.tooltip_).textContent=this.data.tooltip};
_.H.computeTargetId=function(){var X;return((X=this.data)==null?void 0:X.targetId)||""};
_.H.computeId_=function(X){return X};
_.H.computeIcon_=function(X){return _.Q2(X)};
_.H.onTap_=function(){this.active=!this.active;_.Yt(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.H.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("active-changed",this.active))};
_.ke.Object.defineProperties(YQ.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var X,t;if((X=this.data)==null?0:(t=X.icon)==null?0:t.iconType)return this.data.icon.iconType==="SUPER_STICKER";var G,y;return((G=this.data)==null?void 0:(y=G.icon)==null?void 0:y.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
YQ.prototype.activeChangedForBinding=YQ.prototype.activeChangedForBinding;YQ.prototype.dataChanged_=YQ.prototype.dataChanged_;_.E([_.q(_.wG.YtLiveChatTooltipTargetingBehavior),_.U("design:type",Object)],YQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],YQ.prototype,"data",void 0);_.E([_.K({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.U("design:type",String)],YQ.prototype,"id",void 0);
_.E([_.K({computed:"computeTargetId(data.targetId)"}),_.U("design:type",String)],YQ.prototype,"targetId",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],YQ.prototype,"active",void 0);_.E([_.K({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.U("design:type",String)],YQ.prototype,"icon",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],YQ.prototype,"dataChanged_",null);
_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],YQ.prototype,"iconFilled",null);_.E([_.cW("active"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],YQ.prototype,"activeChangedForBinding",null);_.E([_.$F({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],YQ);
_.N(YQ,"yt-emoji-picker-category-button-renderer",function(){if(seP===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Y7z===void 0&&(Y7z=document.createElement("template"));var y=Y7z;G.call(t,y.content.cloneNode(!0),X.content.firstChild);seP=X}X=seP;return X},{mode:2});var DcP;var S7R;var s$=function(){var X=_.O.apply(this,arguments)||this;X.ariaLabel=null;X.ariaActivedescendant=null;X.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};X.JSC$14048_ignoreNextFocus_=!1;X.longPressTimeoutId=-1;return X};
_.S(s$,_.O);_.H=s$.prototype;_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.H.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.H.emojiChanged_=function(){this.changeFocus_(0,!1);for(var X=_.Pj(),t=0;t<this.emoji.length;t++){var G={veType:88013,elementIndex:t},y=this.emoji[t];y.isCustomEmoji&&(y=document.querySelector(("#"+y.emojiId).replace("/","\\/")))&&(G=_.Ni(X,G))&&(y.visualElement=G)}};
_.H.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.H.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.H.emojiSkinToneChanged_=function(X){this.skinTone=X};
_.H.dataChanged=function(){this.data&&this.data.emojiData&&e0q(this.emojiManager,this.data.emojiData)};
_.H.emojiUrl=function(X){X=this.getEmoji(X);if(!X)return"";var t;X=(t=X.image)==null?void 0:t.thumbnails;return _.S_(X,24)||""};
_.H.emojiAlt=function(X){var t=this.get("image.accessibility.accessibilityData.label",X);return t?t:X.isCustomEmoji?X.shortcuts[0]:X.emojiId};
_.H.emojiAriaLabel=function(X){return X.shortcuts?X.shortcuts[0]:""};
_.H.emojiAriaSelected=function(X,t,G){return X&&G==t?"true":"false"};
_.H.getEmoji=function(X){if(this.emojiManager)return this.shouldUseStickyPreferences?gfS(this.emojiManager,X):yM(this.emojiManager,X)};
_.H.computeId_=function(X){return X.categoryId||""};
_.H.computeEmoji=function(X){var t=this;return this.emojiManager?X.emojiIds?X.emojiIds.map(function(G){return G?_.GK(t.emojiManager,G):null}).filter(qJJ):X.emojiData?X.emojiData.map(function(G){var y=!!G.emojiId&&_.GK(t.emojiManager,G.emojiId);
return y?Object.assign({},y,G):null}).filter(qJJ):[]:[]};
_.H.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.H.computeAriaLabel_=function(X){return _.bu(X)};
_.H.computeAriaActivedescendant_=function(X,t){return X&&X[t]?X[t].emojiId||"":""};
_.H.handleLongPressEmojiWithVariants=function(X,t){this.changeFocusToEmoji(X.emojiId,!1);this.openVariantSelector(X,t)};
_.H.onMouseDown=function(X){var t=this;this.hostElement!==document.activeElement&&(this.JSC$14048_ignoreNextFocus_=!0);if(X.button===0){var G=_.k3(X);if(G instanceof HTMLImageElement){var y=_.Sm(this.hostElement).querySelector("#repeat").itemForElement(G);this.emojiContainsVariants(y)&&(this.longPressTimeoutId=setTimeout(function(){t.handleLongPressEmojiWithVariants(y,G)},500))}}};
_.H.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.H.onFocus=function(){this.JSC$14048_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14048_ignoreNextFocus_=!1};
_.H.onBlur_=function(){this.showFocus=!1};
_.H.emojiContainsVariants=function(X){return!!(X&&X.variantIds&&X.variantIds.length)};
_.H.onClick=function(X){clearTimeout(this.longPressTimeoutId);X=_.k3(X);if(X instanceof HTMLImageElement){var t=X.id;this.changeFocusToEmoji(t,!1);var G=this.getEmoji(t),y;if(y=this.shouldUseStickyPreferences&&this.emojiContainsVariants(G)){var w;y=!((w=this.emojiManager.emojiMap[t])!=null&&w.stickyPrefId)}y?(w=_.Sm(this.hostElement).querySelector("#repeat").itemForElement(X),this.openVariantSelector(w,X)):_.Yt(this.hostElement,"yt-emoji-select",G)}};
_.H.isActiveEmojiWithVariants=function(X,t){return X&&t?t.stickyPrefId?X===t.stickyPrefId:X===t.emojiId:!1};
_.H.onCloseEmojiVariantSelector=function(X){this.activeEmojiWithVariantsId===X&&(this.activeEmojiWithVariantsId="")};
_.H.onMouseOver_=function(X){X=_.k3(X);X instanceof HTMLImageElement&&_.Yt(this.hostElement,"yt-emoji-hover",_.GK(this.emojiManager,X.id))};
_.H.changeFocus_=function(X,t){this.focusedIndex=(this.focusedIndex+X+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(X=this.emoji[this.focusedIndex],t&&(this.showFocus=!0,_.Sm(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Yt(this.hostElement,"yt-emoji-hover",X)))};
_.H.changeFocusToEmoji=function(X,t){if(X){var G=this.emoji.findIndex(function(y){return y.emojiId===X});
G!==-1&&this.changeFocus_(G-this.focusedIndex,t)}};
_.H.onKeyDown_=function(X){switch(X.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var t=this.emoji[this.focusedIndex];if(t&&t.emojiId){if(this.emojiContainsVariants(t)){var G=_.Sm(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(t,G)}else _.Yt(this.hostElement,"yt-emoji-select",yM(this.emojiManager,t.emojiId)),this.hostElement.focus();X.preventDefault()}}break;case 40:this.changeFocus_(1,!0);X.preventDefault();break;case 38:this.changeFocus_(-1,!0),
X.preventDefault()}};
_.H.onEmojiStickyPreferenceChanged=function(X,t){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&X.emojiId&&X.variantIds&&X.variantIds.includes(t)&&this.activeEmojiWithVariantsId!==t&&this.setStickyEmojiPreference(X.emojiId,t)};
_.H.openVariantSelector=function(X,t){this.activeEmojiWithVariantsId=X.stickyPrefId||X.emojiId||"";_.Yt(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:X,target:t})};
_.H.setStickyEmojiPreference=function(X,t){if(this.data){var G=this.emoji.findIndex(function(w){return w.emojiId===X});
if(G!==-1){var y=this.emoji[G];y.stickyPrefId=t;this.set("emoji."+G,Object.assign({},y));this.activeEmojiWithVariantsId=t}}};
s$.prototype.onKeyDown_=s$.prototype.onKeyDown_;s$.prototype.onMouseOver_=s$.prototype.onMouseOver_;s$.prototype.onClick=s$.prototype.onClick;s$.prototype.onBlur_=s$.prototype.onBlur_;s$.prototype.onFocus=s$.prototype.onFocus;s$.prototype.onMouseUp=s$.prototype.onMouseUp;s$.prototype.onMouseDown=s$.prototype.onMouseDown;s$.prototype.dataChanged=s$.prototype.dataChanged;s$.prototype.disableIncrementalLoadingChanged_=s$.prototype.disableIncrementalLoadingChanged_;s$.prototype.emojiManagerChanged_=s$.prototype.emojiManagerChanged_;
s$.prototype.emojiChanged_=s$.prototype.emojiChanged_;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],s$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],s$.prototype,"data",void 0);_.E([_.K({computed:"computeId_(data)"}),_.U("design:type",String)],s$.prototype,"id",void 0);_.E([_.K({computed:"computeEmoji(data)"}),_.U("design:type",Array)],s$.prototype,"emoji",void 0);_.E([_.K(),_.U("design:type",Number)],s$.prototype,"skinTone",void 0);
_.E([_.K(),_.U("design:type",_.tB)],s$.prototype,"emojiManager",void 0);_.E([_.K(),_.U("design:type",Boolean)],s$.prototype,"disableIncrementalLoading",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],s$.prototype,"focusedIndex",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],s$.prototype,"showFocus",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.U("design:type",Object)],s$.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.U("design:type",Object)],s$.prototype,"ariaActivedescendant",void 0);_.E([_.K({value:60}),_.U("design:type",Number)],s$.prototype,"domRepeatTargetFramerate",void 0);_.E([_.K({value:1}),_.U("design:type",Number)],s$.prototype,"domRepeatInitialCount",void 0);_.E([_.K({value:""}),_.U("design:type",String)],s$.prototype,"activeEmojiWithVariantsId",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],s$.prototype,"shouldUseStickyPreferences",void 0);_.E([_.cW("emoji"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s$.prototype,"emojiChanged_",null);_.E([_.cW("emojiManager"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s$.prototype,"emojiManagerChanged_",null);
_.E([_.cW("disableIncrementalLoading"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s$.prototype,"disableIncrementalLoadingChanged_",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s$.prototype,"dataChanged",null);_.E([_.WW("mousedown"),_.U("design:type",Function),_.U("design:paramtypes",[Object]),_.U("design:returntype")],s$.prototype,"onMouseDown",null);
_.E([_.WW("mouseup"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s$.prototype,"onMouseUp",null);_.E([_.WW("focus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s$.prototype,"onFocus",null);_.E([_.WW("blur"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s$.prototype,"onBlur_",null);
_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],s$.prototype,"onClick",null);_.E([_.WW("mouseover"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],s$.prototype,"onMouseOver_",null);_.E([_.WW("keydown"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],s$.prototype,"onKeyDown_",null);
_.E([_.$F({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],s$);
_.N(s$,"yt-emoji-picker-category-renderer",function(){if(S7R===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;DcP===void 0&&(DcP=document.createElement("template"));var y=DcP;G.call(t,y.content.cloneNode(!0),X.content.firstChild);S7R=X}X=S7R;return X},{mode:2});var hAz;var ZxR;var q7B;var C5o;var De=function(){var X=_.O.apply(this,arguments)||this;X.ariaLabel=null;X.ariaActivedescendant=null;X.getFormattedStringRawText=_.bu;X.JSC$14054_ignoreNextFocus_=!1;return X};
_.S(De,_.O);_.H=De.prototype;_.H.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")};
_.H.emojiUrl=function(X){var t,G;X=(t=yM(this.emojiManager,X,!0))==null?void 0:(G=t.image)==null?void 0:G.thumbnails;return _.S_(X,24)||""};
_.H.emojiAlt=function(X){var t=this.get("image.accessibility.accessibilityData.label",X);return t?t:X.isCustomEmoji?X.shortcuts[0]:X.emojiId};
_.H.emojiId=function(X){return"emoji"+X};
_.H.computeId_=function(X){return X.categoryId||""};
_.H.computeAriaActivedescendant_=function(X){return this.emoji&&X<this.emoji.length?this.emojiId(X):""};
_.H.emojiChanged_=function(){this.changeFocus_(0,!1);for(var X=_.Pj(),t=0;t<this.emoji.length;t++){var G={veType:88013,elementIndex:t},y=this.emoji[t];y.isCustomEmoji&&(y=document.querySelector(("#"+y.emojiId).replace("/","\\/")))&&(G=_.Ni(X,G))&&(y.visualElement=G)}};
_.H.computeEmoji_=function(X){var t=this;return this.emojiManager?X.emojiIds.map(function(G){return _.GK(t.emojiManager,G,!0)}).filter(C1Y):[]};
_.H.titleOffsetChanged_=function(){var X=this.hostElement.getBoundingClientRect(),t=_.Sm(this.hostElement).querySelector("#title").getBoundingClientRect();X=Math.max(0,Math.min(this.titleOffset,X.height-t.height));_.Sm(this.hostElement).querySelector("#title").style.top=X+"px"};
_.H.onEmojiMouseOver_=function(X){_.Yt(this.hostElement,"yt-emoji-hover",X.model.item)};
_.H.onEmojiTap_=function(X){this.data.command&&(X=WFE(_.gw().resolve(_.jH(wS)),this.data.command,X),_.Yt(this.hostElement,"yt-navigate",X))};
_.H.emojiAriaLabel=function(X){return X.shortcuts[0]};
_.H.emojiAriaSelected=function(X,t,G){return X&&G==t?"true":"false"};
_.H.changeFocus_=function(X,t){var G=this.emoji.length;this.focusedIndex=(this.focusedIndex+X+G)%G;X=this.emoji[this.focusedIndex];if(t){var y;(y=_.Sm(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||y.scrollIntoView(!1);_.Yt(this.hostElement,"yt-emoji-hover",X)}};
_.H.onMouseDown_=function(){this.JSC$14054_ignoreNextFocus_=!0};
_.H.onFocus_=function(){this.JSC$14054_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14054_ignoreNextFocus_=!1};
_.H.onBlur_=function(){this.showFocus=!1};
_.H.onKeyDown_=function(X){switch(X.keyCode){case 13:this.onEmojiTap_(X);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);X.preventDefault();break;case 38:this.changeFocus_(-1,!0),X.preventDefault()}};
De.prototype.onKeyDown_=De.prototype.onKeyDown_;De.prototype.onBlur_=De.prototype.onBlur_;De.prototype.onFocus_=De.prototype.onFocus_;De.prototype.onMouseDown_=De.prototype.onMouseDown_;De.prototype.onEmojiTap_=De.prototype.onEmojiTap_;De.prototype.titleOffsetChanged_=De.prototype.titleOffsetChanged_;De.prototype.emojiChanged_=De.prototype.emojiChanged_;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],De.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],De.prototype,"data",void 0);_.E([_.K({computed:"computeId_(data)"}),_.U("design:type",String)],De.prototype,"id",void 0);_.E([_.K({computed:"computeEmoji_(data)"}),_.U("design:type",Array)],De.prototype,"emoji",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],De.prototype,"titleOffset",void 0);_.E([_.K({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.U("design:type",Object)],De.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.U("design:type",Object)],De.prototype,"ariaActivedescendant",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],De.prototype,"showFocus",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],De.prototype,"focusedIndex",void 0);_.E([_.K(),_.U("design:type",_.tB)],De.prototype,"emojiManager",void 0);
_.E([_.cW("emoji"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],De.prototype,"emojiChanged_",null);_.E([_.cW("titleOffset"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],De.prototype,"titleOffsetChanged_",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],De.prototype,"onEmojiTap_",null);
_.E([_.WW("mousedown"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],De.prototype,"onMouseDown_",null);_.E([_.WW("focus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],De.prototype,"onFocus_",null);_.E([_.WW("blur"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],De.prototype,"onBlur_",null);
_.E([_.WW("keydown"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],De.prototype,"onKeyDown_",null);_.E([_.$F({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],De);
_.N(De,"yt-emoji-picker-upsell-category-renderer",function(){if(C5o===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;q7B===void 0&&(q7B=document.createElement("template"));var y=q7B;G.call(t,y.content.cloneNode(!0),X.content.firstChild);C5o=X}X=C5o;return X},{mode:2});var KFo;var OxB;var SC=function(){var X=_.O.apply(this,arguments)||this;X.scrollAction="lock";X.verticalAlign="top";return X};
_.S(SC,_.O);_.H=SC.prototype;_.H.onClick=function(X){X=_.k3(X);X instanceof HTMLImageElement&&_.Yt(this.hostElement,"yt-emoji-select",_.GK(this.emojiManager,X.id))};
_.H.openSelector=function(){this.ironOverlayBehavior.open()};
_.H.onDomChange=function(){dc4(this.ytEmojiSelectorBehavior)};
_.H.computeIsFamilySelector=function(X){var t;return(X==null?void 0:(t=X.emoji)==null?void 0:t.emojiId)==="\ud83d\udc6a"};
_.H.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var X=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];X&&X.emojiId&&(_.Yt(this.hostElement,"yt-emoji-select",_.GK(this.emojiManager,X.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.ke.Object.defineProperties(SC.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var X=this,t,G,y;return this.emojiManager&&((t=this.data)==null?0:(G=t.emoji)==null?0:(y=G.variantIds)==null?0:y.length)?this.data.emoji.variantIds.map(function(w){return!!w&&_.GK(X.emojiManager,w)}).filter(function(w){return!!w}):[]}}});
SC.prototype.onClick=SC.prototype.onClick;_.E([_.q(_.BM),_.U("design:type",Object)],SC.prototype,"ironOverlayBehavior",void 0);_.E([_.q(eAS),_.U("design:type",Object)],SC.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],SC.prototype,"data",void 0);_.E([_.K(),_.U("design:type",_.tB)],SC.prototype,"emojiManager",void 0);_.E([_.K(),_.U("design:type",Object)],SC.prototype,"scrollAction",void 0);_.E([_.K(),_.U("design:type",Object)],SC.prototype,"verticalAlign",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.U("design:type",Boolean)],SC.prototype,"isFamilySelector",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],SC.prototype,"emojiVariants",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[MouseEvent]),_.U("design:returntype")],SC.prototype,"onClick",null);_.E([_.$F({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],SC);
_.N(SC,"yt-emoji-variant-selector",function(){if(OxB===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;KFo===void 0&&(KFo=document.createElement("template"));var y=KFo;G.call(t,y.content.cloneNode(!0),X.content.firstChild);OxB=X}X=OxB;return X},{mode:2});var uZB=/:/g,Qez=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],hB=function(){var X=_.O.apply(this,arguments)||this;X.emojiVariantSelector=null;X.emojiMultiPersonSelector=null;X.identity=_.Nw;X.lastAnimationTime_=0;X.animationStart_=null;X.animationEnd_=null;return X};
_.S(hB,_.O);_.H=hB.prototype;
_.H.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}}};
_.H.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.wQ)};
_.H.attached=function(){_.Z_&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&jFe(this.emojiManager)};
_.H.dataChanged=function(){var X;if((X=this.data)==null?0:X.categories){X=this.emojiManager;var t=this.getCustomEmojiIds();X.pickerCustomEmojiIds=[].concat(_.RY(nfJ),_.RY(t))}};
_.H.getCustomEmojiIds=function(){var X,t=(X=this.data.categories)==null?void 0:X.find(function(z){var B;return((B=z.emojiPickerCategoryRenderer)==null?void 0:B.categoryId)&&Qez.includes(z.emojiPickerCategoryRenderer.categoryId)}),G;
X=(G=this.data.categories)==null?void 0:G.find(function(z){return z.emojiPickerUpsellCategoryRenderer});
var y,w;return[t==null?void 0:(y=t.emojiPickerCategoryRenderer)==null?void 0:y.emojiIds,X==null?void 0:(w=X.emojiPickerUpsellCategoryRenderer)==null?void 0:w.emojiIds].flat().filter(function(z){return!!z})};
_.H.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.H.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.H.updateCategoriesAndPlaceholderInternal=function(X,t){var G=this;X&&t&&(this.categories=X.categories||[],this.categoryButtons=X.categoryButtons||[],this.resetPlaceholder(),this.search="",_.oL(function(){G.updateButtons_()}))};
_.H.computeId_=function(X){return X.id||""};
_.H.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(X){return X.emojiPickerCategoryRenderer&&X.emojiPickerCategoryRenderer.emojiData}):!1};
_.H.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.H.onShowEmojiVariantSelector=function(X){var t=X.detail.emojiData;t.variantIds&&t.variantIds.length&&(t.multiSelectorThumbnailRow&&t.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:t,target:X.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:t,target:X.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.H.onIronOverlayClosed=function(X){var t=gfS(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");t&&X.composedPath&&(X.composedPath().includes(_.Sm(this.hostElement).querySelector("#emoji-variant-selector"))||X.composedPath().includes(_.Sm(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.sl(this.hostElement,"yt-close-emoji-variant-selector",[t.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.H.onEmojiVariantSelectorMouseup=function(X){var t=X.target.firstChild;this.variantSelectorOpened&&t&&_.oL(function(){t.noCancelOnOutsideClick=!1},100)};
_.H.onEmojiVariantSelectorMousedown=function(X){X=X.target.firstChild;this.variantSelectorOpened&&X&&(X.noCancelOnOutsideClick=!1)};
_.H.onSelectCategory_=function(X){var t=this.search!="";this.search="";for(var G=_.Sm(this.hostElement).querySelector("#categories").children,y=0;y<G.length;y++){var w=G[y];if(w.id==X.detail.categoryId){t?(_.Sm(this.hostElement).querySelector("#categories").scrollTop=w.offsetTop,this.updateButtons_()):(this.animationStart_=_.Sm(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=w.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.H.onEmojiHover_=function(X){this.placeholder=X.detail.shortcuts?X.detail.shortcuts[0]:""};
_.H.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.H.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.H.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.H.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.H.computeSearchCategory_=function(X){X=X.replace(uZB,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();X=X.split(" ");for(var t=[],G=this.emojiManager.emojis,y=0;y<G.length;y++){var w=G[y];if(w.searchTerms)for(var z=0;z<w.searchTerms.length;z++){for(var B=w.searchTerms[z].toLocaleLowerCase(),V=!1,b=0;b<X.length;b++)if(B.indexOf(X[b])!=-1){V=!0;break}if(V&&(!w.isCustomEmoji||!w.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(w.emojiId))){t.push(w.emojiId);
break}}}return{categoryId:-1,emojiIds:t}};
_.H.computeSearchEmptyMessage_=function(X,t){return X&&t&&t.emojiIds&&t.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.H.computeSearching_=function(X){return this.emojiManager&&X.replace(uZB,"").length>1};
_.H.computeSkinToneHidden=function(){var X;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((X=this.data)==null||!X.hideSkinTonePicker)};
_.H.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.H.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.H.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.H.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.H.selectSkinTone_=function(X){X=Number(X.target.getAttribute("tone"));this.set("emojiManager.skinTone",X);_.sl(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[X]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.H.skinToneChanged_=function(){_.Sm(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var X=_.Sm(this.hostElement).querySelector("#dropdown-content").children,t=0;t<X.length;t++)t===this.skinTone?X[t].setAttribute("selected",""):X[t].removeAttribute("selected")};
_.H.animateScroll_=function(X){this.lastAnimationTime_||(this.lastAnimationTime_=X);X-=this.lastAnimationTime_;X<200?(_.Sm(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*X/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Sm(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.H.searchChanged_=function(){this.updateButtons_()};
_.H.updateButtons_=function(){var X=null;if(!this.search)for(var t=_.Sm(this.hostElement).querySelector("#categories").scrollTop,G=_.Sm(this.hostElement).querySelector("#categories").children,y=0;y<G.length;y++){var w=G[y];w.offsetTop<=t&&(X=w.id)}t=_.Sm(this.hostElement).querySelector("#category-buttons").children;for(G=0;G<t.length;G++)y=t[G],y.active=y.id===X};
hB.prototype.searchChanged_=hB.prototype.searchChanged_;hB.prototype.skinToneChanged_=hB.prototype.skinToneChanged_;hB.prototype.onEmojiHover_=hB.prototype.onEmojiHover_;hB.prototype.onSelectCategory_=hB.prototype.onSelectCategory_;hB.prototype.onShowEmojiVariantSelector=hB.prototype.onShowEmojiVariantSelector;hB.prototype.updateCategoriesAndPlaceholder_=hB.prototype.updateCategoriesAndPlaceholder_;hB.prototype.dataChanged=hB.prototype.dataChanged;
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],hB.prototype,"data",void 0);_.E([_.K({value:function(){return[]}}),
_.U("design:type",Array)],hB.prototype,"categories",void 0);_.E([_.K({value:function(){return[]}}),
_.U("design:type",Array)],hB.prototype,"categoryButtons",void 0);_.E([_.K({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.U("design:type",Boolean)],hB.prototype,"disableScroll",void 0);_.E([_.K({computed:"computeId_(data)",reflectToAttribute:!0}),_.U("design:type",String)],hB.prototype,"id",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],hB.prototype,"selected",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],hB.prototype,"disableIncrementalLoading",void 0);_.E([_.K(),_.U("design:type",String)],hB.prototype,"placeholder",void 0);_.E([_.K({value:""}),_.U("design:type",String)],hB.prototype,"search",void 0);_.E([_.K({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.U("design:type",Boolean)],hB.prototype,"searching",void 0);_.E([_.K({computed:"computeSearchCategory_(search)"}),_.U("design:type",Object)],hB.prototype,"searchCategory",void 0);
_.E([_.K({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.U("design:type",Object)],hB.prototype,"searchEmptyMessage",void 0);_.E([_.K({computed:"identity(emojiManager.skinTone)"}),_.U("design:type",Number)],hB.prototype,"skinTone",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],hB.prototype,"skinToneOpened",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],hB.prototype,"variantSelectorOpened",void 0);
_.E([_.K({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.U("design:type",Boolean)],hB.prototype,"skinToneHidden",void 0);_.E([_.K(),_.U("design:type",_.tB)],hB.prototype,"emojiManager",void 0);_.E([_.K(),_.U("design:type",Object)],hB.prototype,"emojiVariantSelector",void 0);_.E([_.K(),_.U("design:type",Object)],hB.prototype,"emojiMultiPersonSelector",void 0);
_.E([_.K({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.U("design:type",Boolean)],hB.prototype,"shouldUseStickyPreferences",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hB.prototype,"dataChanged",null);_.E([_.cW("data","selected"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hB.prototype,"updateCategoriesAndPlaceholder_",null);
_.E([_.WW("yt-show-emoji-variant-selector"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],hB.prototype,"onShowEmojiVariantSelector",null);_.E([_.WW("yt-emoji-picker-select-category"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],hB.prototype,"onSelectCategory_",null);_.E([_.WW("yt-emoji-hover"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],hB.prototype,"onEmojiHover_",null);
_.E([_.cW("skinTone"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hB.prototype,"skinToneChanged_",null);_.E([_.cW("search"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hB.prototype,"searchChanged_",null);_.E([_.$F({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],hB);
_.N(hB,"yt-emoji-picker-renderer",function(){if(ZxR===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;hAz===void 0&&(hAz=document.createElement("template"));var y=hAz;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ZxR=X}X=ZxR;return X},{mode:2});var Ze=function(){var X=_.O.apply(this,arguments)||this;X.emojiManager=_.wQ;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.selectedIndex=1;X.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return X};
_.S(Ze,_.O);_.H=Ze.prototype;_.H.handleEmojiCustomizationVisible=function(X){this.emojiPickerRenderer.selected=X;this.selectedIndex=1;X?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.H.emojiCustomizationSetChanged=function(){var X;(X=this.data)!=null&&X.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Jq(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.H.updateSaveButtonState=function(X){var t;(t=this.data)!=null&&t.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.EW("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:X}))};
_.H.emojiUrl=function(X){X=_.GK(this.emojiManager,X);if(!X)return"";var t;X=(t=X.image)==null?void 0:t.thumbnails;return _.S_(X,24)||""};
_.H.emojiAlt=function(X){var t=_.GK(this.emojiManager,X);if(!t)return X;var G,y,w,z=(t==null?void 0:(G=t.image)==null?void 0:(y=G.accessibility)==null?void 0:(w=y.accessibilityData)==null?void 0:w.label)||"";return z?z:t.isCustomEmoji?t.shortcuts[0]:t.emojiId||X};
_.H.emojiAriaLabel=function(X){var t,G;return((t=_.GK(this.emojiManager,X))==null?void 0:(G=t.shortcuts)==null?void 0:G[0])||X};
_.H.onEmojiClick=function(X){X.model.index!==0&&(this.selectedIndex=X.model.index)};
_.H.onEmojiSelect=function(X){X=X.detail;var t,G;((t=this.data)==null?0:t.emojiCustomizationSetEntityKey)&&((G=this.emojiCustomizationSet)==null?0:G.emojiId)&&X.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,X.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.EW("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,X.emojiId,this.selectedIndex)}))};
_.H.canEditEmoji=function(X,t,G){X=X.indexOf(t);return X===G||X===0||G===0?!1:!0};
_.H.getUpdatedEmojiIdList=function(X,t,G){var y=X.indexOf(t);X=[].concat(_.RY(X));y>=0&&(X[y]=X[G]);X[G]=t;return X};
_.ke.Object.defineProperties(Ze,{template:{configurable:!0,enumerable:!0,get:function(){if(M4t===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;fgS===void 0&&(fgS=document.createElement("template"));var y=fgS;G.call(t,y.content.cloneNode(!0),X.content.firstChild);M4t=X}X=M4t;return X}}});
Ze.prototype.onEmojiSelect=Ze.prototype.onEmojiSelect;_.E([_.q(_.yK),_.U("design:type",Object)],Ze.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Ze.prototype,"ytActionHandlerBehavior",void 0);_.E([_.rt("yt-emoji-picker-renderer"),_.U("design:type",Object)],Ze.prototype,"emojiPickerRenderer",void 0);
_.E([_.K({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(X,t){return _.Kg(X.entities,"emojiCustomizationSetEntity",t)},
observer:"emojiCustomizationSetChanged"}),_.U("design:type",Object)],Ze.prototype,"emojiCustomizationSet",void 0);_.E([_.K(),_.U("design:type",Object)],Ze.prototype,"originalEmojiSet",void 0);_.E([_.K(),_.U("design:type",_.tB)],Ze.prototype,"emojiManager",void 0);_.E([_.K(),_.U("design:type",Object)],Ze.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Ze.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",Object)],Ze.prototype,"selectedIndex",void 0);
_.E([_.WW("yt-emoji-select"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Ze.prototype,"onEmojiSelect",null);_.E([_.$F({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Ze);var ILz;var WFt;var chq;var piS;var qZ=function(){var X=_.O.apply(this,arguments)||this;X.authorBadges=[];return X};
_.S(qZ,_.O);_.H=qZ.prototype;_.H.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.H.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]]"}}}}}};
_.H.dataChanged=function(){var X=XcG(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",X)};
_.H.updateMessage=function(){var X=this.data.message,t=_.Sm(_.Sm(this.hostElement).querySelector("#message"));t.textContent="";X&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(X))};
_.H.shouldSupportWholeItemClick=function(){return!0};
_.H.onShowOriginalClick=function(X){X.preventDefault();this.showOriginal=!0};
_.H.computeShowBar=function(X,t,G){return X&&t||G};
_.H.computeAuthorBadges=function(X){return X.authorBadges||[]};
_.H.computeAuthorIsOwner=function(X){return!!$kV(X.authorBadges,"owner")};
_.H.computeAuthorNameColor=function(X){var t;if(_.A("live_chat_author_name_color_usernames")&&(X==null?0:(t=X.authorName)==null?0:t.simpleText))return _.H0A(_.oB6(X.authorName.simpleText));if(_.A("live_chat_seed_color_usernames")&&(X==null?0:X.authorSeedColorArgb))return _.H0A(_.OV(X.authorSeedColorArgb));if(_.A("live_chat_colored_usernames"))return"#cc0000";var G;return _.A("live_chat_simple_color_usernames")&&(X==null?0:(G=X.authorName)==null?0:G.simpleText)&&(X==null?0:X.authorUsernameColorLight)&&
(X==null?0:X.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.OV(X.authorUsernameColorDark):_.OV(X.authorUsernameColorLight):""};
qZ.prototype.updateMessage=qZ.prototype.updateMessage;qZ.prototype.dataChanged=qZ.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],qZ.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qZ.prototype,"data",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],qZ.prototype,"showOriginal",void 0);_.E([_.K({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.U("design:type",Boolean)],qZ.prototype,"isDimmed",void 0);_.E([_.K({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.U("design:type",Boolean)],qZ.prototype,"showBar",void 0);
_.E([_.K({computed:"computeAuthorBadges(data)"}),_.U("design:type",Array)],qZ.prototype,"authorBadges",void 0);_.E([_.K({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],qZ.prototype,"authorIsOwner",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],qZ.prototype,"inCollapsedBanner",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],qZ.prototype,"inBanner",void 0);
_.E([_.K({value:_.A("live_chat_hide_avatars"),reflectToAttribute:!0}),_.U("design:type",Boolean)],qZ.prototype,"avatarHidden",void 0);_.E([_.K({computed:"computeAuthorNameColor(data)"}),_.U("design:type",String)],qZ.prototype,"authorNameColor",void 0);_.E([_.K(),_.U("design:type",_.BC)],qZ.prototype,"participantsManager",void 0);_.E([_.K({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.U("design:type",Object)],qZ.prototype,"filledButtonOverrides",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],qZ.prototype,"dataChanged",null);_.E([_.cW("data.message"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],qZ.prototype,"updateMessage",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],qZ);
_.N(qZ,"yt-live-chat-text-message-renderer",function(){if(piS===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;chq===void 0&&(chq=document.createElement("template"));var y=chq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);piS=X}X=piS;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var Cr=function(){var X=_.O.apply(this,arguments)||this;X.tonalButtonOverrides={type:"tonal",style:"overlay"};return X};
_.S(Cr,_.O);
Cr.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]]"}}}}}};
Cr.prototype.shouldSupportInlineActionButtons=function(){return!0};
Cr.prototype.shouldSupportWholeItemClick=function(){return!0};
_.ke.Object.defineProperties(Cr.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],Cr.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Cr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Cr.prototype,"data",void 0);_.E([_.K(),_.U("design:type",_.BC)],Cr.prototype,"participantsManager",void 0);
_.E([_.K(),_.U("design:type",Object)],Cr.prototype,"tonalButtonOverrides",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.infoDialogButton"),_.U("design:type",Object),_.U("design:paramtypes",[])],Cr.prototype,"hasInfoDialogButton",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Cr);
_.N(Cr,"yt-live-chat-auto-mod-message-renderer",function(){if(WFt===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;ILz===void 0&&(ILz=document.createElement("template"));var y=ILz;G.call(t,y.content.cloneNode(!0),X.content.firstChild);WFt=X}X=WFt;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var rhe;var Neh;var P5J;var EO4=function(){return _.O.apply(this,arguments)||this};
_.S(EO4,_.O);_.E([_.K(),_.U("design:type",Object)],EO4.prototype,"data",void 0);_.E([_.p({is:"ytd-factoid-renderer",disableElementRegistration:!0})],EO4);
_.N(EO4,"ytd-factoid-renderer",function(){if(P5J!==void 0)return P5J;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return P5J=X},{mode:1});var Kr=function(){return _.O.apply(this,arguments)||this};
_.S(Kr,_.O);Kr.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.E([_.K(),_.U("design:type",Object)],Kr.prototype,"data",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Kr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Kr);
_.N(Kr,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Neh===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;rhe===void 0&&(rhe=document.createElement("template"));var y=rhe;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Neh=X}X=Neh;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var Ucq;var mco;var O$=function(){return _.O.apply(this,arguments)||this};
_.S(O$,_.O);O$.prototype.ready=function(){var X=document.querySelector("yt-live-chat-app");X&&X.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Boolean)],O$.prototype,"menuFocused",void 0);_.E([_.K(),_.U("design:type",Object)],O$.prototype,"data",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],O$.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],O$);
_.N(O$,"yt-live-chat-donation-announcement-renderer",function(){if(mco===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Ucq===void 0&&(Ucq=document.createElement("template"));var y=Ucq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);mco=X}X=mco;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var RAt;var ixo,LFz=function(){if(ixo!==void 0)return ixo;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;RAt===void 0&&(RAt=document.createElement("template"));var y=RAt;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return ixo=X};var uV=function(){return _.O.apply(this,arguments)||this};
_.S(uV,_.O);_.ke.Object.defineProperties(uV,{template:{configurable:!0,enumerable:!0,get:function(){return LFz()}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uV.prototype,"data",void 0);_.E([_.$F({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],uV);_.N(uV,"yt-live-chat-empty-feed-view-model",function(){return LFz()},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var vOh;var aLt;var QM=function(){return _.O.apply(this,arguments)||this};
_.S(QM,_.O);QM.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"}}}}}};
_.ke.Object.defineProperties(QM.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var X,t;return{runs:[{text:(X=this.data)==null?void 0:(t=X.channelName)==null?void 0:t.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var X=[],t;if((t=this.data)==null||!t.channelBadges)return X;var G;t=_.J((G=this.data)==null?void 0:G.channelBadges);for(G=t.next();!G.done;G=t.next()){G=_.Y(G.value,NAh);var y=void 0,w=void 0;if((y=G)==null?0:(w=y.badgeImage)==null?0:w.sources)y=void 0,w={liveChatAuthorBadgeRenderer:{tooltip:G.tooltip,accessibility:{accessibilityData:{label:(y=_.Y(G.rendererContext,_.N0))==null?void 0:y.label}}}},G.badgeImage.sources[0].clientResource?w.liveChatAuthorBadgeRenderer.icon=
{iconType:G.badgeImage.sources[0].clientResource.imageName}:w.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:G.badgeImage.sources},X.push(w)}return X}}});
_.E([_.K(),_.U("design:type",Object)],QM.prototype,"data",void 0);_.E([_.C("data.channelName"),_.U("design:type",Object),_.U("design:paramtypes",[])],QM.prototype,"channelName",null);_.E([_.C("data.channelBadges"),_.U("design:type",Array),_.U("design:paramtypes",[])],QM.prototype,"channelBadges",null);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],QM);
_.N(QM,"yt-live-chat-identity-view-model",function(){if(aLt===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;vOh===void 0&&(vOh=document.createElement("template"));var y=vOh;G.call(t,y.content.cloneNode(!0),X.content.firstChild);aLt=X}X=aLt;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var lL4;var xcB;var fLe;var M5z;var Ih=function(){var X=_.O.apply(this,arguments)||this;X.hidden=!1;X.supportsInlineActionButtons=!0;return X};
_.S(Ih,_.O);Ih.prototype.ready=function(){var X;((X=document.querySelector("yt-live-chat-app"))==null?0:X.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Ih.prototype.dataChanged=function(X){var t=(0,_.Cd)(_.Sm(this.hostElement).querySelector("#detail-text"));t.textContent="";(X==null?0:X.detailText)&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(X.detailText))};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],Ih.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({observer:"dataChanged"}),_.U("design:type",Object)],Ih.prototype,"data",void 0);
_.E([_.K({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.U("design:type",Object)],Ih.prototype,"hidden",void 0);_.E([_.p({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Ih);
_.N(Ih,"yt-live-chat-legacy-paid-message-renderer",function(){if(M5z===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;fLe===void 0&&(fLe=document.createElement("template"));var y=fLe;G.call(t,y.content.cloneNode(!0),X.content.firstChild);M5z=X}X=M5z;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var X2o;var $3J;var tKe={},WC=function(){return _.PW.apply(this,arguments)||this};
_.S(WC,_.PW);WC.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
WC.prototype.onLiveChatMembershipItemBehaviorClick=WC.prototype.onLiveChatMembershipItemBehaviorClick;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],WC.prototype,"data",void 0);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],WC.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.E([_.E0()],WC);
tKe.YtLiveChatMembershipItemBehavior=[WC.prototype,_.v.YtRendererBehavior];var cC=function(){var X=_.O.apply(this,arguments)||this;X.supportsInlineActionButtons=!0;X.hasPrimaryHeaderText=!1;X.showOnlyHeader=!1;X.authorBadges=[];X.modern=_.A("web_button_rework_with_live");X.buttonOverrides={style:"overlay",type:"filled"};return X};
_.S(cC,_.O);_.H=cC.prototype;_.H.shouldSupportInlineActionButtons=function(){return!0};
_.H.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.H.ready=function(){var X=document.querySelector("yt-live-chat-app");X&&X.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.H.messageChanged=function(){var X=this.data.message,t=(0,_.Cd)(_.Sm(this.hostElement).querySelector("#message"));t.textContent="";X&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(X))};
_.H.computeHasPrimaryHeaderText=function(X){return!(!X||!X.headerPrimaryText)};
_.H.computeShowOnlyHeader=function(X,t){return this.isMessageEmpty(X,t)};
_.H.computeAuthorBadges=function(X){return X.authorBadges||[]};
_.H.isMessageEmpty=function(X,t){return!X||X.empty?!0:!X.message&&!X.inputField&&!t};
_.H.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.H.getInputElement=function(){return _.Sm(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.H.inputFocus=function(){var X=this.getInputElement();X&&X.focus()};
_.H.inputInsertEmoji=function(X){var t=this.getInputElement();t&&t.insertEmoji(X)};
_.H.inputMessage=function(){var X=this.getInputElement();return X&&this.data.inputField?(X.completeEmojis(),_.JS(X.liveChatRichMessageInput)):null};
_.H.onFooterButtonClick=function(){this.data.footerButton&&_.Yt(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.H.shouldSupportWholeItemClick=function(){return!0};
cC.prototype.isDeletedChanged=cC.prototype.isDeletedChanged;cC.prototype.messageChanged=cC.prototype.messageChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],cC.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.q(tKe.YtLiveChatMembershipItemBehavior),_.U("design:type",Object)],cC.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],cC.prototype,"data",void 0);_.E([_.K({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.U("design:type",Object)],cC.prototype,"hasPrimaryHeaderText",void 0);_.E([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.U("design:type",Object)],cC.prototype,"showOnlyHeader",void 0);
_.E([_.K({computed:"computeAuthorBadges(data)"}),_.U("design:type",Array)],cC.prototype,"authorBadges",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],cC.prototype,"modern",void 0);_.E([_.cW("data.message"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],cC.prototype,"messageChanged",null);_.E([_.cW("isDeleted"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],cC.prototype,"isDeletedChanged",null);
_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],cC);
_.N(cC,"yt-live-chat-membership-item-renderer",function(){if($3J===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;X2o===void 0&&(X2o=document.createElement("template"));var y=X2o;G.call(t,y.content.cloneNode(!0),X.content.firstChild);$3J=X}X=$3J;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var GdS;var yx4;var pr=function(){return _.O.apply(this,arguments)||this};
_.S(pr,_.O);pr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],pr.prototype,"data",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],pr);
_.N(pr,"yt-live-chat-mode-change-message-renderer",function(){if(yx4===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;GdS===void 0&&(GdS=document.createElement("template"));var y=GdS;G.call(t,y.content.cloneNode(!0),X.content.firstChild);yx4=X}X=yx4;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var w2h;var zqq;var rQ=function(){return _.O.apply(this,arguments)||this};
_.S(rQ,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],rQ.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rQ.prototype,"data",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],rQ);
_.N(rQ,"yt-live-chat-moderation-message-renderer",function(){if(zqq===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;w2h===void 0&&(w2h=document.createElement("template"));var y=w2h;G.call(t,y.content.cloneNode(!0),X.content.firstChild);zqq=X}X=zqq;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var HQq;var ocY;var NZ=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("web_button_rework");return X};
_.S(NZ,_.O);NZ.prototype.onClick=function(){var X;if((X=this.data)!=null&&X.onClickCommand){var t;_.Wj.instance.resolveCommand((t=this.data)==null?void 0:t.onClickCommand)}};
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],NZ.prototype,"modern",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],NZ.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],NZ.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],NZ.prototype,"data",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],NZ);
_.N(NZ,"yt-live-chat-offer-click-count-message-renderer",function(){if(ocY===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;HQq===void 0&&(HQq=document.createElement("template"));var y=HQq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ocY=X}X=ocY;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var JxB;var B8z=function(){return _.O.apply(this,arguments)||this};
_.S(B8z,_.O);_.E([_.K(),_.U("design:type",Object)],B8z.prototype,"data",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],B8z);
_.N(B8z,"yt-live-chat-placeholder-item-renderer",function(){if(JxB===void 0){var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);JxB=X}X=JxB;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var ncR;var VKo;var bQz=new By(7),PC=function(){var X=_.O.apply(this,arguments)||this;X.data={};return X};
_.S(PC,_.O);PC.prototype.dataChanged=function(){var X;((X=this.data)==null?0:X.class)&&_.Zk(this.hostElement,this.data.class,!0);var t;((t=this.oldData)==null?0:t.class)&&_.Zk(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
PC.prototype.computeTimestampString=function(X){return bQz.format(new Date(X/1E3))};
PC.prototype.dataChanged=PC.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],PC.prototype,"data",void 0);_.E([_.K({computed:"computeTimestampString(data.timestampUsec)"}),_.U("design:type",String)],PC.prototype,"timestampString",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PC.prototype,"dataChanged",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],PC);
_.N(PC,"yt-live-chat-server-error-message",function(){if(VKo===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;ncR===void 0&&(ncR=document.createElement("template"));var y=ncR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);VKo=X}X=VKo;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var kdY;var d3R;var E$=function(){var X=_.O.apply(this,arguments)||this;X.defaultToFilledIcon=!1;return X};
_.S(E$,_.O);E$.prototype.computeHasPrimaryColorIcon=function(X){return X==="SPARK"||X==="SPONSORSHIP_STAR"};
E$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],E$.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],E$.prototype,"defaultToFilledIcon",void 0);_.E([_.K(),_.U("design:type",Object)],E$.prototype,"data",void 0);
_.E([_.K({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.U("design:type",Boolean)],E$.prototype,"hasPrimaryColorIcon",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],E$);
_.N(E$,"yt-live-chat-viewer-engagement-message-renderer",function(){if(d3R===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;kdY===void 0&&(kdY=document.createElement("template"));var y=kdY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);d3R=X}X=d3R;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var eqP;var U$=function(){var X=_.O.apply(this,arguments)||this;X.modernUpdate=!1;X.buttonStyle="overlay";X.buttonType="filled";return X};
_.S(U$,_.O);U$.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
U$.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],U$.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],U$.prototype,"modernUpdate",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],U$.prototype,"buttonStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],U$.prototype,"buttonType",void 0);
_.E([_.p({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],U$);
_.N(U$,"ytd-ad-hover-text-button-renderer",function(){if(eqP!==void 0)return eqP;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return eqP=X},{mode:1});var j1q;var mk=function(){var X=_.O.apply(this,arguments)||this;X.buttonOverrides={size:"XS"};X.modern=_.A("web_button_rework");return X};
_.S(mk,_.O);mk.prototype.onHelpTap=function(X){this.data&&this.data.informationDialog&&(_.Yt(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),X.preventDefault(),X.stopPropagation())};
_.E([_.K(),_.U("design:type",Object)],mk.prototype,"buttonOverrides",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mk.prototype,"modern",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mk.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],mk);
_.N(mk,"ytd-live-chat-purchased-product-message-renderer",function(){if(j1q!==void 0)return j1q;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return j1q=X},{mode:1});var gc4;var FdS;var Rh=function(){var X=_.O.apply(this,arguments)||this;X.isContainerDeleted=!1;return X};
_.S(Rh,_.O);Rh.prototype.onContextMenuClick=function(X){this.ytLiveChatItemBehavior.showContextMenu(X)};
Rh.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))};
Rh.prototype.isContainerDeletedChanged=Rh.prototype.isContainerDeletedChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],Rh.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Rh.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Rh.prototype,"isContainerDeleted",void 0);
_.E([_.K(),_.U("design:type",String)],Rh.prototype,"deletedStateMessage",void 0);_.E([_.cW("isContainerDeleted"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rh.prototype,"isContainerDeletedChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Rh);
_.N(Rh,"ytd-sponsorships-live-chat-header-renderer",function(){if(FdS!==void 0)return FdS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return FdS=X},{mode:1});var iV=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("web_button_rework_with_live");X.buttonOverrides={style:"overlay",type:"filled"};return X};
_.S(iV,_.O);iV.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]]"}}}}}};
iV.prototype.onCtaButtonClick=function(){var X,t=_.Y((X=this.data)==null?void 0:X.optInPrompt,_.G4);if(X=this.maybeGetButtonCommand(t)){var G;(G=_.Pj())==null||G.clickCommand(X)}};
iV.prototype.maybeGetButtonCommand=function(X){return!X||!X.command||_.Y(X.command,F4B)===void 0&&_.Y(X.command,g6Y)===void 0?null:X.command};
iV.prototype.shouldHideOptinPrompt=function(X,t){return!X||t};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],iV.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iV.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],iV.prototype,"modern",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],iV);
_.N(iV,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(gc4!==void 0)return gc4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return gc4=X},{mode:1});var T84;var Lr=function(){return _.O.apply(this,arguments)||this};
_.S(Lr,_.O);Lr.prototype.onContextMenuClick=function(X){this.ytLiveChatItemBehavior.showContextMenu(X)};
Lr.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))};
Lr.prototype.isDeletedChanged=Lr.prototype.isDeletedChanged;_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],Lr.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Lr.prototype,"data",void 0);_.E([_.cW("isDeleted"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Lr.prototype,"isDeletedChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Lr);
_.N(Lr,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(T84!==void 0)return T84;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return T84=X},{mode:1});var vC=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return X};
_.S(vC,_.O);_.H=vC.prototype;
_.H.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"}}}};
_.H.handleLiveChatAction=function(X){_.Y(X,Kn4)?this.handleMarkChatItemAsDeletedAction(_.Y(X,Kn4)):_.Y(X,CkJ)&&this.handleRemoveChatItemAction(_.Y(X,CkJ))};
_.H.handleLiveChatActions=function(X){X.forEach(this.handleLiveChatAction,this)};
_.H.handleMarkChatItemAsDeletedAction=function(X){var t=this,G;((G=this.data)==null?0:G.items)&&this.data.items.forEach(function(y,w){var z=Object.keys(y)[0];Object.values(y)[0].id===X.targetItemId&&t.markAsDeleted("data.items",w,z,X.deletedStateMessage,X.showOriginalContentMessage)})};
_.H.handleRemoveChatItemAction=function(X){var t=this,G;((G=this.data)==null?0:G.items)&&this.data.items.forEach(function(y,w){Object.values(y)[0].id===X.targetItemId&&t.splice("data.items",w,1)})};
_.H.markAsDeleted=function(X,t,G,y,w){X=[X,t,G].join(".");this.set(X+".deletedStateMessage",y);this.set(X+".showOriginalContentMessage",w)};
_.E([_.K(),_.U("design:type",Object)],vC.prototype,"data",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],vC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],vC);
_.N(vC,"yt-live-chat-item-display-list-renderer",function(){if(xcB===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;lL4===void 0&&(lL4=document.createElement("template"));var y=lL4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);xcB=X}X=xcB;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var AxY;var YJB,s1o=function(){if(YJB!==void 0)return YJB;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;AxY===void 0&&(AxY=document.createElement("template"));var y=AxY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return YJB=X};var ah=function(){var X=_.O.apply(this,arguments)||this;X.isHeader=!1;return X};
_.S(ah,_.O);ah.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.ke.Object.defineProperties(ah,{template:{configurable:!0,enumerable:!0,get:function(){return s1o()}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ah.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ah.prototype,"isHeader",void 0);_.E([_.$F({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],ah);_.N(ah,"yt-live-chat-item-display-renderer",function(){return s1o()},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var D3P,SJS,Kdh,C1S;
D3P={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}};SJS={home:"eohps",search:"eosps",watch:"eowps"};_.hq4=["watch","search","home"];
_.lV=function(){this.JSC$14165_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14165_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Md("PRECONSTRUCTION_DELAY",0);this.signals_=_.wv();this.targetPage_=""};
_.lV.prototype.init=function(X,t){X=X===void 0?"":X;t=t===void 0?null:t;if(this.JSC$14165_isInitialized_)this.abort();else if(this.JSC$14165_isInitialized_=!0,X&&_.ZQ4(this,X),t){var G=_.zm(this.signals_,"pcl")?0:10,y=function(){for(var w=0,z;z=_.hq4[w++];)z!=X&&z!=t&&this.pendingPages_.push(z);_.qJh(this)}.bind(this);
this.signals_.parkOrScheduleJob(y,G,"pcl")}};
_.lV.prototype.abort=function(){this.fragmentJobId_&&(_.vz.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);C1S(this)};
_.ZQ4=function(X,t){X.JSC$14165_isInitialized_&&!X.targetPage_&&(X.targetPage_=t,Kdh(X,t),X.isInitialPass_=!1,Kdh(X,t),X.signals_.processSignal(SJS[X.targetPage_]),C1S(X),_.qJh(X))};
_.qJh=function(X){X.pendingPages_.length&&!X.pagePreparerJobId_&&(X.pagePreparerJobId_=_.PO(_.vz,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.ZQ4(this,this.pendingPages_.shift())}.bind(X),X.DEFAULT_DELAY_))};
Kdh=function(X,t){if(t=D3P[t])for(var G in t){var y=!1,w=G;G.charAt(0)=="~"&&(y=!0,w=G.substring(1));var z=t[G];z=typeof z=="object"?z:{count:z};t[G]=z;z.componentName=w;z.count>0&&(X.isInitialPass_?y||X.isSeenDuringInitialPass_[w]||(X.JSC$14165_queue_.push({componentName:w,count:1,signals:z.signals}),X.isSeenDuringInitialPass_[w]=!0,z.count--):X.JSC$14165_queue_.push(z))}};
C1S=function(X){X.JSC$14165_queue_.length=0;X.targetPage_="";X.isInitialPass_=!0;X.signals_.processSignal("eop")};
_.lV.getInstance=function(){return _.TC(_.lV)};var OQq=function(){this.signals=_.wv();this.init()};
OQq.prototype.startPreconstruction=function(){_.lV.getInstance().init(_.X3("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
OQq.prototype.init=function(){uwe(this);window.Polymer&&Pxt&&EQG();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var X=_.tA.ytcsi;if(X&&X.gt&&(X=X.gt())&&X.tick&&(X.tick.aft>0||X.tick.pbs>0)&&(_.X3("IS_HOMEPAGE_COLD")||_.X3("IS_RESULTS_PAGE_COLD")||_.X3("IS_WATCH_PAGE_COLD"))){Q1q(this);break a}XW0(rzh,this.onNotifications,this)}};
var uwe=function(X){var t=function(){X.signals.processSignal("dl")};
document.readyState==="complete"?(_.yQ(Error("th"),"WARNING"),t()):_.C$h(window,"load",t)};
OQq.prototype.onNotifications=function(X){X.timer||(_.X3("IS_HOMEPAGE_COLD")||_.X3("IS_RESULTS_PAGE_COLD")||_.X3("IS_WATCH_PAGE_COLD"))&&Q1q(this)};
var Q1q=function(X){X.signals.parkOrScheduleJob(function(){X.signals.processSignal("eocs")},10,"eor")};
new OQq;var xQ,Itz=function(){return _.PW.apply(this,arguments)||this};
_.S(Itz,_.PW);_.H=Itz.prototype;_.H.enableActiveViewMeasurement=function(X){if(this.isActiveViewEnabled(X)){var t=this.getUrlPrefixesFromCommand(X.viewableCommands);X=this.getUrlPrefixesFromCommand(X.endOfSessionCommands);if(!xQ){var G=_.At("custom_active_view_tos_timeout_ms");xQ=G>0&&G!==36E5?new X9s(this.getVersion(),G):new X9s(this.getVersion())}tpV(xQ,this.hostElement);Gtw(xQ,this.hostElement,t,X)}};
_.H.stopActiveViewMeasurement=function(){xQ&&tpV(xQ,this.hostElement)};
_.H.isActiveViewEnabled=function(X){return!!X&&(this.hasAtLeastOneUrl(X.viewableCommands)||this.hasAtLeastOneUrl(X.endOfSessionCommands))};
_.H.hasAtLeastOneUrl=function(X){return!!X&&X.length>0&&X[0].loggingUrls!=null&&X[0].loggingUrls.length>0};
_.H.getVersion=function(){var X=_.Md("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(X==null?void 0:X.length)===2?X[1]:null};
_.H.getUrlPrefixesFromCommand=function(X){if(!X)return[];var t=[];X=_.J(X);for(var G=X.next();!G.done;G=X.next())if(G=G.value,G.loggingUrls){G=_.J(G.loggingUrls);for(var y=G.next();!y.done;y=G.next())y=y.value,y.baseUrl&&t.push(y.baseUrl)}return t};
_.E([_.E0()],Itz);var fr=[Itz.prototype];var Wdq=function(){return _.PW.apply(this,arguments)||this};
_.S(Wdq,_.PW);_.ke.Object.defineProperties(Wdq.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.A("enable_entity_store_from_dependency_injection")?_.kF():_.dV()}}});
_.E([_.E0()],Wdq);_.MZ=[x6.prototype,Wdq.prototype];var cxe=["ytd-rich-shelf-renderer"],XK=function(){var X=_.PW.apply(this,arguments)||this;X._noAccessors=!0;X.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";X.followUpDialogPromise=null;X.followUpDialogPromiseResolve=null;X.followUpDialogPromiseReject=null;return X};
_.S(XK,_.PW);_.H=XK.prototype;_.H.dismissibleItemIsDismissedChanged_=function(X){_.A("kevlar_fluid_dismiss")&&(X?_.Yt(this.hostElement,"yt-dismissible-item-dismissed"):_.Yt(this.hostElement,"yt-dismissible-item-undismissed"))};
_.H.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.H.dismissibleItemReset_=function(){var X=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 _.Kh(function(t,G){X.followUpDialogPromiseResolve=t;X.followUpDialogPromiseReject=G});
_.Yt(this.hostElement,"yt-enable-lockup-interaction")};
_.H.dismissibleItemOnYtServiceRequestSent_=function(X,t){t.actions&&this.dismissibleItemProcessActions(t.actions,X)};
_.H.dismissibleItemOnRequestSent=function(X){if(_.A("web_button_rework"))for(var t=_.J(X.detail),G=t.next();!G.done;G=t.next()){var y=void 0;(G=(y=_.Y(G.value,_.Ol))==null?void 0:y.actions)&&this.dismissibleItemProcessActions(G,X)}};
_.H.dismissibleItemOnCommandSent=function(X,t){t&&this.dismissibleItemProcessActions(t,X)};
_.H.setAndGetDismissedContentId=function(X){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+X};
_.H.replayDismissAction=function(X){this.dismissibleItemProcessActions([X])};
_.H.dismissibleItemProcessActions=function(X,t){for(var G=0;G<X.length;G++){var y=X[G],w=void 0;((w=_.Y(y,_.Cq))==null?0:w.commands)&&this.dismissibleItemProcessActions(_.Y(y,_.Cq).commands,t);if(_.Y(y,_.Et)){if(w=_.Y(y,_.Et),!w.replaceParentSection||cxe.includes(this.hostElement.nodeName.toLowerCase()))_.A("web_see_fewer_shorts_reactive_dismissal")&&w.groupDismissal&&KdJ(this,w.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(w),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.EW("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:y})),y=void 0,(y=t)==null||y.stopPropagation()}else if(_.Y(y,ONY))this.dismissibleItemHandleHideEnclosingAction_(),y=void 0,(y=t)==null||y.stopPropagation();else if(_.Y(y,XeR))_.A("web_see_fewer_shorts_reactive_dismissal")&&(y=_.Y(y,XeR),w=void 0,((w=y)==null?0:w.targetGroupId)&&KdJ(this,{targetGroupId:y.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.EW("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),y=void 0,(y=t)==null||y.stopPropagation();else if(_.Y(y,_.Ol))(y=_.Y(y,_.Ol).actions)&&_.Z0(this.hostElement,y,this.hostElement),y=void 0,(y=t)==null||y.stopPropagation();else{var z=w=void 0;((w=_.Y(y,_.yN))==null?void 0:w.signal)!=="TELL_US_WHY"||((z=_.Y(y,_.yN))==null?0:z.targetId)&&_.A("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),y=void 0,(y=t)==null||y.stopPropagation())}}};
_.H.dismissibleItemOnYtServiceRequestCompleted_=function(X,t){var G=this.get("feedbackResponses.0.followUpDialog",t.data);G?this.followUpDialogPromiseResolve(G):t.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(t.actions,X)};
_.H.dismissibleItemHandleReplaceEnclosingAction_=function(X){this.dismissedRenderer=X.item;this.isDismissed=!0;var t=null;(t=_.Sm(this.hostElement).querySelector("#dismissed"))&&_.V8(this,function(){_.bx(t)});
_.Yt(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.H.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.H.dismissibleItemHandleUndoFeedbackAction_=function(){_.Yt(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.H.dismissibleItemHandleTellUsWhySignalAction_=function(){var X=this;this.followUpDialogPromise.then(function(t){X.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:t}})})};
XK.prototype.dismissibleItemOnYtServiceRequestCompleted_=XK.prototype.dismissibleItemOnYtServiceRequestCompleted_;XK.prototype.dismissibleItemOnCommandSent=XK.prototype.dismissibleItemOnCommandSent;XK.prototype.dismissibleItemOnRequestSent=XK.prototype.dismissibleItemOnRequestSent;XK.prototype.dismissibleItemOnYtServiceRequestSent_=XK.prototype.dismissibleItemOnYtServiceRequestSent_;XK.prototype.dismissibleItemDataChanged_=XK.prototype.dismissibleItemDataChanged_;
XK.prototype.dismissibleItemIsDismissedChanged_=XK.prototype.dismissibleItemIsDismissedChanged_;_.E([_.q(_.dQ),_.U("design:type",Object)],XK.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],XK.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],XK.prototype,"isDismissed",void 0);_.E([_.K(),_.U("design:type",Object)],XK.prototype,"dismissedRenderer",void 0);
_.E([_.cW("isDismissed"),_.U("design:type",Function),_.U("design:paramtypes",[Boolean]),_.U("design:returntype")],XK.prototype,"dismissibleItemIsDismissedChanged_",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],XK.prototype,"dismissibleItemDataChanged_",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],XK.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.E([_.WW("yt-service-request-sent-button-renderer"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],XK.prototype,"dismissibleItemOnRequestSent",null);
_.E([_.WW("yt-dismissible-item-action"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Array]),_.U("design:returntype")],XK.prototype,"dismissibleItemOnCommandSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],XK.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.E([_.E0()],XK);_.tV=[_.dQ,_.MZ,XK.prototype];var GZ=function(){var X=_.PW.apply(this,arguments)||this;X.disableGridStateAware=!1;X.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};X.currentGridClass="";return X};
_.S(GZ,_.PW);GZ.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.V8(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var X=this.gridStateAwareGetElement();_.Zk(X,"grid",!0)}};
GZ.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
GZ.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Sm(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
GZ.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var X="grid-disabled";else{X=_.sTB.getInstance();var t=this.get("pageSubtype");X=t&&Tfq.includes(t)?"grid-disabled":X.currentSnapState_?X.currentSnapState_.className:null}(t=this.gridStateAwareGetElement())&&X!==this.currentGridClass&&(X&&_.Zk(t,X,!0),this.currentGridClass&&_.Zk(t,this.currentGridClass,!1),this.currentGridClass=X)};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],GZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",String)],GZ.prototype,"gridStateAwareSizingElementSelector",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],GZ.prototype,"disableGridStateAware",void 0);_.E([_.E0()],GZ);_.y_=[GZ.prototype,_.sb.YtActionHandlerBehavior];_.wb=new _.FB("GUIDE_TOKEN");var HV;_.zZ={};HV=function(){var X=_.PW.apply(this,arguments)||this;X.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 X};
_.S(HV,_.PW);_.H=HV.prototype;_.H.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.H.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var X=_.gw().resolve(_.jH(_.wb));X&&(this.guidePersistentAndVisible=X.getGuidePersistentAndVisible(),this.activeEndpoint=X.getActiveEndpoint(),this.guideOpened=X.getGuideOpened(),this.miniGuideVisible=X.getMiniGuideVisible())};
_.H.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.H.handleGuideStateAction=function(X){this.guidePersistentAndVisible=X};
_.H.handleMiniGuideStateAction=function(X){this.miniGuideVisible=X};
_.H.handleGuideOpenedAction=function(X){this.guideOpened=X};
_.H.handleActiveEndpointAction=function(X){this.activeEndpoint=X};
HV.prototype.onActiveEndpointChange=HV.prototype.onActiveEndpointChange;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],HV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],HV.prototype,"guidePersistentAndVisible",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],HV.prototype,"miniGuideVisible",void 0);_.E([_.K(),_.U("design:type",Object)],HV.prototype,"activeEndpoint",void 0);
_.E([_.cW("activeEndpoint"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],HV.prototype,"onActiveEndpointChange",null);_.E([_.K(),_.U("design:type",Boolean)],HV.prototype,"guideOpened",void 0);_.E([_.E0()],HV);_.zZ.YtdGuideStateAwareBehavior=[];_.zZ.YtdGuideStateAwareBehavior.push(HV.prototype,_.sb.YtActionHandlerBehavior);var p2R=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],oJ=function(){var X=_.PW.apply(this,arguments)||this;X.hoverJobId=0;X.JSC$14196_touched=!1;return X};
_.S(oJ,_.PW);_.H=oJ.prototype;_.H.created=function(){this.useExpandableTooltip=!p2R.includes(this.is)};
_.H.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.H.detached=function(){this.useExpandableTooltip=!1};
_.H.lockupOnDown=function(X){this.interactionElement&&!_.Fa(_.be(X),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.H.lockupOnUp=function(X){this.interactionElement&&!_.Fa(_.be(X),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.H.onTouchStart=function(){this.JSC$14196_touched=!0};
_.H.lockupOnMouseEnter=function(){var X=this,t=_.At("kevlar_lockup_hover_delay",-1);this.JSC$14196_touched&&t>=0?(_.vz.cancelJob(this.hoverJobId),this.hoverJobId=_.vz.addJob(function(){X.lockupIsHovered=!0},8,t),this.JSC$14196_touched=!1):this.lockupIsHovered=!0};
_.H.lockupOnMouseLeave=function(){this.hoverJobId&&(_.vz.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.H.lockupOnPopupClosed=function(X,t){var G;((G=t.popupRenderer)==null?void 0:G.is)==="ytd-menu-popup-renderer"&&(X=t.popupRenderer.veData,t=_.lw(),X&&t&&_.Jg(t,[X]))};
_.H.lockupOnLockupRequested=function(X){var t=X.detail.videoIds[0],G;X.detail&&t===((G=this.data)==null?void 0:G.videoId)&&(X.detail.returnValue=[this.data])};
_.H.lockupOnYtServiceRequestSent=function(X,t){if(X=t.actions)for(var G=0;G<X.length;G++){var y=X[G];if(y.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&t.ajaxPromise){var w=void 0,z=(w=_.Y(t.endpoint,_.Xs))==null?void 0:w.playlistId;w=void 0;y=(w=y.removedVideoId)!=null?w:"";i$t(_.oI(),y,z)}else y.action==="ACTION_REMOVE_VIDEO"&&t.ajaxPromise&&(z=void 0,y=(z=y.setVideoId)!=null?z:"",_.LiY(_.oI(),y))}};
_.H.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.H.lockupOnLockupEnabled=function(){if(!this.$){var X=_.gw().resolve(_.AS).getCurrentPage(),t=this.getParentRenderer?this.getParentRenderer():void 0;_.Mj(new _.NJ("component not ready",this.is,this.isAttached,X==null?void 0:X.is,t==null?void 0:t.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
oJ.prototype.lockupOnLockupEnabled=oJ.prototype.lockupOnLockupEnabled;oJ.prototype.lockupOnLockupDisabled=oJ.prototype.lockupOnLockupDisabled;oJ.prototype.lockupOnYtServiceRequestSent=oJ.prototype.lockupOnYtServiceRequestSent;oJ.prototype.lockupOnLockupRequested=oJ.prototype.lockupOnLockupRequested;oJ.prototype.lockupOnPopupClosed=oJ.prototype.lockupOnPopupClosed;oJ.prototype.lockupOnMouseLeave=oJ.prototype.lockupOnMouseLeave;oJ.prototype.lockupOnMouseEnter=oJ.prototype.lockupOnMouseEnter;
oJ.prototype.onTouchStart=oJ.prototype.onTouchStart;oJ.prototype.lockupOnUp=oJ.prototype.lockupOnUp;oJ.prototype.lockupOnDown=oJ.prototype.lockupOnDown;_.E([_.K(),_.U("design:type",Object)],oJ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],oJ.prototype,"lockupIsHovered",void 0);_.E([_.K(),_.U("design:type",Boolean)],oJ.prototype,"lockupTouchTriggered",void 0);_.E([_.K(),_.U("design:type",Boolean)],oJ.prototype,"useExpandableTooltip",void 0);
_.E([_.rt("#interaction"),_.U("design:type",Object)],oJ.prototype,"interactionElement",void 0);_.E([_.WW("down"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],oJ.prototype,"lockupOnDown",null);_.E([_.WW("up"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],oJ.prototype,"lockupOnUp",null);
_.E([_.WW("touchstart"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oJ.prototype,"onTouchStart",null);_.E([_.WW("mouseenter"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oJ.prototype,"lockupOnMouseEnter",null);_.E([_.WW("mouseleave"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oJ.prototype,"lockupOnMouseLeave",null);
_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],oJ.prototype,"lockupOnPopupClosed",null);_.E([_.WW("yt-lockup-requested"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],oJ.prototype,"lockupOnLockupRequested",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],oJ.prototype,"lockupOnYtServiceRequestSent",null);_.E([_.WW("yt-disable-lockup-interaction"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oJ.prototype,"lockupOnLockupDisabled",null);
_.E([_.WW("yt-enable-lockup-interaction"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oJ.prototype,"lockupOnLockupEnabled",null);_.E([_.E0()],oJ);_.JV=[oJ.prototype];_.rxh={YtdReduxBehavior:[]};_.rxh.YtdReduxBehavior.push.apply(_.rxh.YtdReduxBehavior,_.MZ);var BV=function(){var X=_.PW.apply(this,arguments)||this;X._noAccessors=!0;X.disableNowPlaying=!1;X.disableTooltips=!1;X.useHoveredProperty=!1;X.hovered=!1;X.isThumbnailHovered_=!1;X.addBackground=_.A("kevlar_thumbnail_bg");X.nowPlaying=!1;X.disableRounding=!1;X.size="small";return X};
_.S(BV,_.PW);_.H=BV.prototype;_.H.computeThumbnailOverlaySidePanelWidth_=function(X,t){return X-t};
_.H.computeSize=function(X,t){if(!this.disableRounding){if(!X&&!t)return"small";X=Math.max(X||0,t||0);return X>=256?"large":X>=96?"medium":"small"}};
_.H.computeFinalHoveredState_=function(X,t,G){return this.nowPlaying?!1:_.A("kevlar_thumbnail_fluid")&&X?t:G};
_.H.computeHoverOverlays_=function(X,t){return X&&t?t:void 0};
_.H.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.H.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.H.checkMiniplayer_=function(){var X;if(((X=this.data)==null?0:X.playlistSetVideoId)&&_.A("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{X=_.cF();var t=X.currentEndpoint;!this.disableNowPlaying&&t&&_.Y(t,_.nq)&&this.data?(t=_.Y(t,_.nq),this.nowPlaying=this.data.playlistId?t.playlistId===this.data.playlistId:t.videoId===this.data.videoId,this.isVideoPlaying=X==null?void 0:X.isVideoPlaying):this.nowPlaying=!1}};
BV.prototype.checkMiniplayer_=BV.prototype.checkMiniplayer_;BV.prototype.onMouseLeave_=BV.prototype.onMouseLeave_;BV.prototype.onMouseEnter_=BV.prototype.onMouseEnter_;BV.prototype.computeHoverOverlays_=BV.prototype.computeHoverOverlays_;BV.prototype.computeFinalHoveredState_=BV.prototype.computeFinalHoveredState_;BV.prototype.computeSize=BV.prototype.computeSize;BV.prototype.computeThumbnailOverlaySidePanelWidth_=BV.prototype.computeThumbnailOverlaySidePanelWidth_;
_.E([_.q(_.MZ),_.U("design:type",Object)],BV.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],BV.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],BV.prototype,"height",void 0);_.E([_.K(),_.U("design:type",Boolean)],BV.prototype,"bottomSidePanel",void 0);_.E([_.K(),_.U("design:type",Number)],BV.prototype,"width",void 0);_.E([_.K(),_.U("design:type",Object)],BV.prototype,"disableNowPlaying",void 0);
_.E([_.K({selector:_.fg}),_.U("design:type",Boolean)],BV.prototype,"miniplayerIsActive",void 0);_.E([_.K(),_.U("design:type",Object)],BV.prototype,"disableTooltips",void 0);_.E([_.K(),_.U("design:type",Object)],BV.prototype,"useHoveredProperty",void 0);_.E([_.K(),_.U("design:type",Object)],BV.prototype,"hovered",void 0);_.E([_.K(),_.U("design:type",Object)],BV.prototype,"isThumbnailHovered_",void 0);
_.E([_.K({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.U("design:type",Boolean)],BV.prototype,"finalHoveredState_",void 0);_.E([_.K({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.U("design:type",Number)],BV.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],BV.prototype,"addBackground",void 0);
_.E([_.K({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.U("design:type",Object)],BV.prototype,"hoverOverlays_",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],BV.prototype,"nowPlaying",void 0);_.E([_.K(),_.U("design:type",Boolean)],BV.prototype,"isVideoPlaying",void 0);_.E([_.K(),_.U("design:type",Object)],BV.prototype,"disableRounding",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.U("design:type",Object)],BV.prototype,"size",void 0);_.E([_.WW("mouseenter"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],BV.prototype,"onMouseEnter_",null);_.E([_.WW("mouseleave"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],BV.prototype,"onMouseLeave_",null);
_.E([_.cW("data","disableNowPlaying","miniplayerIsActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],BV.prototype,"checkMiniplayer_",null);_.E([_.E0()],BV);var N8S=[BV.prototype];_.n8={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(X,t){return X+":"+_.GB(t)},
getPlayerListener_:function(X,t,G){X=this.getPlayerListenerKey_(X,t);t=this.playerListeners_.get(X);G&&this.playerListeners_.delete(X);return t},
savePlayerListener_:function(X,t){var G=t.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(X,t),G);return G},
listenToPlayerEvent:function(X,t,G){G=this.savePlayerListener_(t,G);X.addEventListener(t,G)},
listenToPlayerEvents:function(X,t){t.forEach(function(G,y){this.listenToPlayerEvent(X,y,G)}.bind(this))},
unlistenFromPlayerEvent:function(X,t,G){G=this.getPlayerListener_(t,G,!0);X.removeEventListener(t,G)},
unlistenFromPlayerEvents:function(X,t){t.forEach(function(G,y){this.unlistenFromPlayerEvent(X,y,G)}.bind(this))}}};
_.V_=function(){};_.P1J=new _.FB("PLAYER_API_TOKEN");var p20=!1,EcG,N8Y=!1,m3h;var hS=function(X,t,G,y,w){_.po.call(this);var z=this;this.playerId=t;this.webPlayerContextConfig=y;this.uQS=w;this.obI=!1;this.api={};this.nN3=this.jia=null;this.sbX=new _.Oc;this.f8={};this.sz6=this.uXR=this.elementId=this.dEv=this.config=null;this.mdq=!1;this.bk=this.xo6=null;this.sLR={};this.uxK=["onReady"];this.lastError=null;this.aj7=NaN;this.vV3={};this.b7S=0;this.jP=this.targetElement=X;_.h6(this,this.sbX);Ece(this);G?this.b7S=setTimeout(function(){z.loadNewVideoConfig(G)},0):y&&(U34(this),
m3q(this))};
_.S(hS,_.po);hS.prototype.getId=function(){return this.playerId};
hS.prototype.loadNewVideoConfig=function(X){if(!this.isDisposed()){this.b7S&&(clearTimeout(this.b7S),this.b7S=0);var t=X||{};t instanceof tC4||(t=new tC4(t));this.config=t;this.setConfig(X);m3q(this);this.isReady()&&Rqh(this)}};
var U34=function(X){var t;X.webPlayerContextConfig?t=X.webPlayerContextConfig.rootElementId:t=X.config.attrs.id;X.elementId=t||X.elementId;X.elementId==="video-player"&&(X.elementId=X.playerId,X.webPlayerContextConfig?X.webPlayerContextConfig.rootElementId=X.playerId:X.config.attrs.id=X.playerId);var G;((G=X.jP)==null?void 0:G.id)===X.elementId&&(X.elementId+="-player",X.webPlayerContextConfig?X.webPlayerContextConfig.rootElementId=X.elementId:X.config.attrs.id=X.elementId)};
hS.prototype.setConfig=function(X){this.dEv=X;this.config=iQh(X);U34(this);if(!this.uXR){var t;this.uXR=LdJ(this,((t=this.config.args)==null?void 0:t.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var G;if((G=this.config)==null?0:G.attrs)X=this.config.attrs,(t=X.width)&&this.jP&&(this.jP.style.width=G$(Number(t)||t,!0)),(X=X.height)&&this.jP&&(this.jP.style.height=G$(Number(X)||X,!0))};
var Rqh=function(X){if(X.config&&X.config.loaded!==!0)if(X.config.loaded=!0,!X.config.args||X.config.args.autoplay!=="0"&&X.config.args.autoplay!==0&&X.config.args.autoplay!==!1){var t;X.api.loadVideoByPlayerVars((t=X.config.args)!=null?t:null)}else X.api.cueVideoByPlayerVars(X.config.args)},at4=function(X){var t=!0,G=X.getPlayerElement();
G&&X.config&&(t=G.dataset.version===vct(X));return t&&!!_.GA("yt.player.Application.create")},m3q=function(X){if(!X.isDisposed()&&!X.mdq){var t=at4(X);
if(t&&(X.getPlayerElement()?"html5":null)==="html5")X.sz6="html5",X.isReady()||ltB(X);else if(x3B(X),X.sz6="html5",t&&X.bk&&X.targetElement)X.targetElement.appendChild(X.bk),ltB(X);else{X.config&&(X.config.loaded=!0);var G=!1;X.xo6=function(){G=!0;var y=ftS(X,"player_bootstrap_method")?_.GA("yt.player.Application.createAlternate")||_.GA("yt.player.Application.create"):_.GA("yt.player.Application.create");var w=X.config?iQh(X.config):void 0;y&&y(X.targetElement,w,X.webPlayerContextConfig,X.uQS);ltB(X)};
X.mdq=!0;t?X.xo6():(_.Gi(vct(X),X.xo6),(t=MKR(X))&&wBl(t||""),XTh(X)&&!G&&_.dl("yt.player.Application.create",null))}}};
hS.prototype.getPlayerElement=function(){var X=_.Se(document,this.elementId);!X&&this.jP&&this.jP.querySelector&&(X=this.jP.querySelector("#"+this.elementId));return X};
var ltB=function(X){if(!X.isDisposed()){var t=X.getPlayerElement(),G=!1;t&&t.getApiInterface&&t.getApiInterface()&&(G=!0);if(G){X.mdq=!1;if(!ftS(X,"html5_remove_not_servable_check_killswitch")){var y;if((t==null?0:t.isNotServable)&&X.config&&(t==null?0:t.isNotServable((y=X.config.args)==null?void 0:y.video_id)))return}$ao(X)}else X.aj7=setTimeout(function(){ltB(X)},50)}},$ao=function(X){Ece(X);
X.obI=!0;var t=X.getPlayerElement();if(t){X.jia=tXY(X,t,"addEventListener");X.nN3=tXY(X,t,"removeEventListener");var G=t.getApiInterface();G=G.concat(t.getInternalApiInterface());for(var y=X.api,w=0;w<G.length;w++){var z=G[w];y[z]||(y[z]=tXY(X,t,z))}}for(var B in X.f8)X.f8.hasOwnProperty(B)&&X.jia&&X.jia(B,X.f8[B]);Rqh(X);X.uXR&&X.uXR(X.api);X.sbX.publish("onReady",X.api)},tXY=function(X,t,G){var y=t[G];
return function(){var w=_.f1.apply(0,arguments);try{return X.lastError=null,y.apply(t,w)}catch(z){if(G!=="sendAbandonmentPing")throw z.params=G,X.lastError=z,w=new _.NJ("PlayerProxy error in method call",{error:z,method:G,playerId:X.playerId}),w.level="WARNING",w;}}},Ece=function(X){X.obI=!1;
if(X.nN3)for(var t in X.f8)X.f8.hasOwnProperty(t)&&X.nN3(t,X.f8[t]);for(var G in X.vV3)X.vV3.hasOwnProperty(G)&&clearTimeout(Number(G));X.vV3={};X.jia=null;X.nN3=null;t=X.api;for(var y in t)t.hasOwnProperty(y)&&(t[y]=null);t.addEventListener=function(w,z){X.addEventListener(w,z)};
t.removeEventListener=function(w,z){X.removeEventListener(w,z)};
t.destroy=function(){X.dispose()};
t.getLastError=function(){return X.getLastError()};
t.getPlayerType=function(){return X.getPlayerType()};
t.getCurrentVideoConfig=function(){return X.dEv};
t.loadNewVideoConfig=function(w){X.loadNewVideoConfig(w)};
t.isReady=function(){return X.isReady()}};
hS.prototype.isReady=function(){return this.obI};
hS.prototype.addEventListener=function(X,t){var G=this;this.isDisposed();var y=LdJ(this,t);y&&(_.Eh(this.uxK,X)||this.f8[X]||(t=G0R(this,X),this.jia&&this.jia(X,t)),this.sbX.subscribe(X,y),X==="onReady"&&this.isReady()&&setTimeout(function(){y(G.api)},0))};
hS.prototype.removeEventListener=function(X,t){this.isDisposed()||(t=LdJ(this,t))&&this.sbX.unsubscribe(X,t)};
var LdJ=function(X,t){var G=t;if(typeof t==="string"){if(X.sLR[t])return X.sLR[t];G=function(){var y=_.f1.apply(0,arguments),w=_.GA(t);if(w)try{w.apply(_.tA,y)}catch(z){throw y=new _.NJ("PlayerProxy error when executing callback",{error:z}),y.level="ERROR",y;}};
X.sLR[t]=G}return G?G:null},G0R=function(X,t){var G=function(y){var w=function(){X.isDisposed();
if(!X.isDisposed())try{X.sbX.publish(t,y!=null?y:void 0)}catch(V){var B=new _.NJ("PlayerProxy error when creating global callback",{error:V.message,event:t,playerId:X.playerId,data:y,originalStack:V.stack,componentStack:V.componentStack});B.level="WARNING";throw B;}};
if(ftS(X,"web_player_publish_events_immediately"))w();else{var z=setTimeout(function(){w();_.RH.remove(X.vV3,String(z))},0);
_.RH.add(X.vV3,String(z),!0)}};
return X.f8[t]=G};
hS.prototype.getPlayerType=function(){return this.sz6||(this.getPlayerElement()?"html5":null)};
hS.prototype.getLastError=function(){return this.lastError};
var x3B=function(X){X.cancel();Ece(X);X.sz6=null;X.config&&(X.config.loaded=!1);var t=X.getPlayerElement();t&&(at4(X)||!XTh(X)?X.bk=t:(t&&t.destroy&&t.destroy(),X.bk=null));X.targetElement&&_.lM(X.targetElement)};
hS.prototype.cancel=function(){this.xo6&&_.uBA(vct(this),this.xo6);clearTimeout(this.aj7);this.mdq=!1};
hS.prototype.disposeInternal=function(){x3B(this);if(this.bk&&this.config&&this.bk.destroy)try{this.bk.destroy()}catch(t){var X=new _.NJ("PlayerProxy error during disposal",{error:t});X.level="ERROR";throw X;}this.sLR=null;for(X in this.f8)this.f8.hasOwnProperty(X)&&delete this.f8[X];this.dEv=this.config=this.api=null;delete this.targetElement;delete this.jP;_.po.prototype.disposeInternal.call(this)};
var XTh=function(X){var t,G;X=(t=X.config)==null?void 0:(G=t.args)==null?void 0:G.fflags;return!!X&&X.indexOf("player_destroy_old_version=true")!==-1},vct=function(X){return X.webPlayerContextConfig?X.webPlayerContextConfig.jsUrl:(X=X.config.assets)?X.js:""},MKR=function(X){return X.webPlayerContextConfig?X.webPlayerContextConfig.cssUrl:(X=X.config.assets)?X.css:""},ftS=function(X,t){if(X.webPlayerContextConfig)var G=X.webPlayerContextConfig.serializedExperimentFlags;
else{var y;if((y=X.config)==null?0:y.args)G=X.config.args.fflags}return(G||"").split("&").includes(t+"=true")},iQh=function(X){for(var t={},G=_.J(Object.keys(X)),y=G.next();!y.done;y=G.next()){y=y.value;
var w=X[y];t[y]=typeof w==="object"?_.RH.clone(w):w}return t};var at_={},vcE="player_uid_"+(Math.random()*1E9>>>0);var ba=function(X,t,G,y,w,z){t=t===void 0?document.createElement("div"):t;this.webPlayerContextConfig=X;this.container=t;this.commandResolver=G;this.apiResolver=ftY();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Kp;y||z?y7q(this):wTJ(this);this.pendingPlayerResponse=y;this.pendingWatchNextResponse=w;this.pendingPlayerVars=z;zxt(this)};
ba.prototype.loadVideoWithPlayerResponse=function(X,t,G){this.loadVideo(X,t,G)};
ba.prototype.loadVideoWithPlayerVars=function(X){return this.loadVideo(void 0,void 0,X)};
ba.prototype.destroy=function(X){if(X=_.Se(document,X))X=vcE+"_"+_.GB(X),(X=at_[X])&&X.dispose()};
var o8J=function(X,t){var G;_.n(function(y){if(y.nextAddress==1)return X.pendingWatchNextResponse=t,X.synchronousApi?(G=X.synchronousApi,y.jumpTo(2)):y.yield(X.api,3);y.nextAddress!=2&&(G=y.yieldResult);H3q(X,G);X.pendingWatchNextResponse&&(G.updateVideoData({raw_watch_next_response:X.pendingWatchNextResponse}),X.pendingWatchNextResponse=void 0);_.W$(y)})},H3q=function(X,t){var G;
if(!(t==null?0:(G=t.isReady)==null?0:G.call(t))){var y;_.Mj(new _.NJ("playerApi is falsey",{synchronousApi:X.synchronousApi,apiResolved:X.apiResolver.resolved,playerApiUndefined:t===void 0,playerApiNull:t===null,playerApiReady:(t==null?void 0:(y=t.isReady)==null?void 0:y.call(t))===!0,playerApiMethods:t?Object.keys(t):[]}))}},J7z=function(X,t){if(typeof X[t]==="function")return X[t]()},BF4=function(X){var t=window,G,y=(G=t.ytplayer)==null?void 0:G.bootstrapPlayerContainer;
if((G=y==null?void 0:y.firstElementChild)&&_.He(G,"html5-video-player")){var w,z,B=(w=t.ytplayer)==null?void 0:(z=w.bootstrapWebPlayerContextConfig)==null?void 0:z.contextId;w=X.webPlayerContextConfig.contextId;if(B&&B===w){y!==X.container&&(y=!1,J7z(G,"getPlayerState")===2&&(y=!0),X.container.appendChild(G),y||J7z(G,"playVideo"));var V;if((V=t.ytplayer)==null?0:V.bootstrapPlayerResponse)X.bootstrapPlayerResponse=t.ytplayer.bootstrapPlayerResponse}}},zxt=function(X){var t,G,y,w,z;
_.n(function(B){if(B.nextAddress==1)return X.pageReadyOrDataAvailable?B.jumpTo(2):B.yield(X.pageReadyOrDataAvailableResolver.promise,2);if(B.nextAddress!=4)return!_.A("kevlar_player_unified_player_loading")||rxJ()&&P1l()?B.jumpTo(4):B.yield(iQJ(),4);BF4(X);if(X.pendingPlayerResponse||X.pendingPlayerVars)t=Ldl(X.pendingPlayerResponse,X.pendingWatchNextResponse,X.pendingPlayerVars),X.pendingPlayerResponse&&X.pendingPlayerResponse===X.bootstrapPlayerResponse&&(t.loaded=!0),X.bootstrapPlayerResponse=
void 0;G=x3V(X.container,t,X.webPlayerContextConfig);((y=t)==null?0:y.loaded)&&X.pendingWatchNextResponse?(o8J(X,X.pendingWatchNextResponse),X.pendingPlayerResponse=void 0,X.pendingPlayerVars=void 0):n8h(X);w=function(V){G.removeEventListener("onReady",w);X.synchronousApi=V;X.apiResolver.resolve(V)};
G.addEventListener("onReady",w);X.commandResolver!==void 0&&(z=X.commandResolver,G.addEventListener("innertubeCommand",function(V){z(V)}));
_.W$(B)})};
ba.prototype.loadVideo=function(X,t,G){var y=this,w,z,B,V,b,e,g,F,T;return _.n(function(D){if(D.nextAddress==1)return y.pendingPlayerResponse=X,y.pendingWatchNextResponse=t,y.pendingPlayerVars=G,y7q(y),y.synchronousApi?(w=y.synchronousApi,D.jumpTo(2)):D.yield(y.api,3);D.nextAddress!=2&&(w=D.yieldResult);H3q(y,w);B=new Promise(function(h){z=h});
V=function(){var h=w.getPlayerResponse();h&&(w.removeEventListener("onVideoDataChange",V),z(h))};
w.addEventListener("onVideoDataChange",V);if(y.pendingPlayerResponse||y.pendingPlayerVars)y.pendingPlayerResponse&&y.pendingPlayerResponse===y.bootstrapPlayerResponse?(z(y.pendingPlayerResponse),y.pendingWatchNextResponse&&o8J(y,y.pendingWatchNextResponse)):(b=Ldl(y.pendingPlayerResponse,y.pendingWatchNextResponse,y.pendingPlayerVars),(T=(e=y.pendingPlayerResponse)==null?void 0:(g=e.playerConfig)==null?void 0:(F=g.playbackStartConfig)==null?void 0:F.startPaused)?w.cueVideoByPlayerVars(b.args):w.loadVideoByPlayerVars(b.args)),
n8h(y),y.bootstrapPlayerResponse=void 0;return D.return(B)})};
var wTJ=function(X){if(document.readyState==="complete"||document.readyState==="interactive")y7q(X);else{var t=function(){document.removeEventListener("DOMContentLoaded",t);y7q(X)};
document.addEventListener("DOMContentLoaded",t)}},y7q=function(X){X.pageReadyOrDataAvailable=!0;
X.pageReadyOrDataAvailableResolver.resolve()},n8h=function(X){X.pendingPlayerResponse=void 0;
X.pendingWatchNextResponse=void 0;X.pendingPlayerVars=void 0};
_.ke.Object.defineProperties(ba.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var kj=function(X){fP.call(this,X===void 0?"document_active":X);var t=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(G){t.transition("document_disposed",{event:G})});
window.addEventListener("beforeunload",function(G){t.transition("document_disposed_preventable",{event:G})});
window.addEventListener("unload",function(G){t.transition("document_disposed",{event:G});t.hasRun=new Map})};
_.S(kj,fP);
kj.prototype.runPreventableDispose=function(X,t){if(!this.hasRun.get("document_disposed_preventable")){X(t==null?void 0:t.event);var G,y;if((t==null?0:(G=t.event)==null?0:G.defaultPrevented)||(t==null?0:(y=t.event)==null?0:y.returnValue)){t.event.returnValue||(t.event.returnValue=!0);t.event.defaultPrevented||t.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")};
kj.prototype.runDispose=function(X,t){this.hasRun.get("document_disposed")?this.transition("document_active"):(X(t==null?void 0:t.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
kj.prototype.runFlush=function(X,t){X(t==null?void 0:t.event);this.transition("document_active")};
kj.prototype.runActive=function(){};var db=function(X){fP.call(this,X===void 0?"document_visibility_unknown":X);var t=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(G){document.visibilityState==="visible"?t.transition("document_visible",{event:G}):t.transition("document_hidden",
{event:G})});
_.A("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(G){t.transition("document_backgrounded",{event:G})}),window.addEventListener("focus",function(G){t.transition("document_foregrounded",{event:G})}))};
_.S(db,fP);db.prototype.runVisible=function(X,t){X(t==null?void 0:t.event);_.A("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
db.prototype.runHidden=function(X,t){X(t==null?void 0:t.event);_.A("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
db.prototype.runBackgrounded=function(X,t){X(t==null?void 0:t.event)};
db.prototype.runForegrounded=function(X,t){X(t==null?void 0:t.event)};var eG=function(){this.teardownLifecycle=new kj;this.visibilityLifecycle=new db};
eG.prototype.install=function(){var X=_.f1.apply(0,arguments),t=this;X.forEach(function(G){t.teardownLifecycle.install(G)});
X.forEach(function(G){t.visibilityLifecycle.install(G)})};var jG=function(){eG.call(this);var X={};this.install((X.document_disposed={callback:this.abortSlisAndFlush},X));_.A("combine_ve_grafts")&&(X={},this.install((X.document_disposed={callback:this.flushInteractionLoggingAttachVes},X)));X={};this.install((X.flush_logs={callback:this.logFinalPayload},X));_.A("web_log_cfg_cee_ks")||_.PO(_.vz,VXh)};
_.S(jG,eG);var MK0=function(){jG.loggingInstance||(jG.loggingInstance=new jG);return jG.loggingInstance};
jG.prototype.logFinalPayload=function(){if(_.A("web_fp_via_jspb")){var X=new eXS,t=_.lw();t&&_.rp(X,1,t);t=_.A("jspb_sparse_encoded_pivot")?new Nj([{}]):new Nj;_.QW(t,380,j4S,X);sZl("finalPayload",t);_.A("web_fp_via_jspb_and_json")&&_.a7("finalPayload",{csn:_.lw()})}else _.a7("finalPayload",{csn:_.lw()})};
jG.prototype.abortSlisAndFlush=function(){PRB(JP);BF!=null&&BF.flush()};
jG.prototype.flushInteractionLoggingAttachVes=function(){zDS(_.Pj())};
var VXh=function(){var X=_.Md("CLIENT_EXPERIMENT_EVENTS");if(X){var t=rAV();X=_.J(X);for(var G=X.next();!G.done;G=X.next())G=G.value,t(G)&&_.a7("genericClientExperimentEvent",{eventType:G});delete _.xS.CLIENT_EXPERIMENT_EVENTS}};var b3e={};
b3e.YtPlayerBehavior=[_.n8.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 X=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Kp;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;XTJ(function(){X.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.x5(this,"pan-down"),_.A("kevlar_pinch_fullscreen")&&_.RI().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.A("kevlar_pinch_fullscreen")&&_.RI().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(X,t,G){var y=this;ZR(this.useUnifiedPlayer_());if(this.mainAppPlayer_)ZR(!1,"MainAppPlayer already created.");else{var w=_.A("kevlar_player_container_query_killswitch")?this.$.container:_.Sm(this.hostElement).querySelector("#container");this.mainAppPlayer_=new ba(this.getWebPlayerContextConfig_(),w,function(z){return _.cj(z,y.hostElement)},X,t,G);
this.mainAppPlayer_.api.then(function(z){y.player_=z;y.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&yeq.resolve(z)})}},
loadVideoWithPlayerResponse:function(X,t){var G=this;if(this.useUnifiedPlayer_()){var y=this.watchNextData,w,z=(w=X.videoDetails)==null?void 0:w.videoId,B,V,b;(w=(B=this.watchNextData)==null?void 0:(V=B.currentVideoEndpoint)==null?void 0:(b=V.watchEndpoint)==null?void 0:b.videoId)&&z!=w&&(y=void 0,_.A("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(X,y,t):this.createMainAppPlayer_(X,y,t);this.mainAppPlayer_.api.then(function(){_.Yt(G.hostElement,
"yt-player-updated")})}else this.update(Itw(X,t))},
loadVideoWithPlayerVars:function(X){var t=this;this.useUnifiedPlayer_()?(_.A("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(X):this.createMainAppPlayer_(void 0,void 0,X),this.mainAppPlayer_.api.then(function(){_.Yt(t.hostElement,"yt-player-updated")})):this.update({args:X})},
update:function(X){var t=this;if(this.useUnifiedPlayer_())ZR(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(X);var G=EXv(X.args);G&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==G&&Object.assign(X.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(X).then(function(y){_.Yt(t.hostElement,"yt-player-updated",_.A("kevlar_player_updated_obsolete_player_killswitch")?
y:void 0)})}_.fh(new _.NJ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(t.getPlayerPromise(),2);G=y.yieldResult;if(!G)throw Error("vh");X&&t.updatePlayerPlaylist_(X);_.W$(y)})},
acquireApi_:function(X){var t=this;if(this.useUnifiedPlayer_())ZR(!1,"Invalid method call in kevlar_unified_player.");else return _.vz.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(ZR(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(G){t.shouldAutoplay_(X)?G.loadVideoByPlayerVars(X.args):G.cueVideoByPlayerVars(X.args)})):this.initPlayerPromise_=this.initPlayerContainer_(X),this.initPlayerPromise_},
initPlayerContainer_:function(X){var t=this;if(this.useUnifiedPlayer_())ZR(!1,"Invalid method call in kevlar_unified_player.");else return ZR(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Mj(Error("wh")),ZR(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.A("kevlar_player_container_query_killswitch")?this.$.container:_.Sm(this.hostElement).querySelector("#container"),iQJ().then(function(){var G=t.initPlayer_(X);t.playerResolver_.resolve(G);
return G})},
onPlayerReady_:function(X,t){this.useUnifiedPlayer_()?ZR(!1,"Invalid method call in kevlar_unified_player."):(X.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&yeq.resolve(X),t(X))},
maybeCallApiMethodOnElement_:function(X,t){if(typeof X[t]==="function")return X[t]()},
maybeAdoptBootstrapPlayer_:function(){var X=window,t,G=(t=X.ytplayer)==null?void 0:t.bootstrapPlayerContainer;if((t=G==null?void 0:G.firstElementChild)&&t.classList.contains("html5-video-player")){var y,w,z=(y=X.ytplayer)==null?void 0:(w=y.bootstrapWebPlayerContextConfig)==null?void 0:w.contextId;y=this.getWebPlayerContextConfig_().contextId;if(z&&z===y){G!==this.playerContainer_&&(G=!1,this.maybeCallApiMethodOnElement_(t,"getPlayerState")===2&&(G=!0),this.playerContainer_.appendChild(t),G||this.maybeCallApiMethodOnElement_(t,
"playVideo"));var B;if((B=X.ytplayer)==null?0:B.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=X.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(X){var t=this;if(this.useUnifiedPlayer_())ZR(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(G){t.maybeAdoptBootstrapPlayer_();var y=X?WdA(X):void 0;y&&y==t.bootstrapPlayerResponse_&&(X.loaded=!0);y=t.playerContainer_;var w=t.getWebPlayerContextConfig_();y=x3V(y,X,w);t.player_=y;t.onPlayerReadyEvent_=t.onPlayerReady_.bind(t,t.player_,G);t.player_.addEventListener("onReady",t.onPlayerReadyEvent_);t.player_.addEventListener("innertubeCommand",
t.onPlayerInnerTubeCommand_.bind(t));_.A("enable_web_shorts_captions_language_command")&&t.player_.addEventListener("captionschanged",t.storePlayerCaptionLanguage_.bind(t))})},
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(X){X.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(X){X.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var X=_.gw().resolve(_.AS).getCurrentPage();X&&X.getScrollTop()<=0?_.x5(this,"pan-down"):_.x5(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(X){X.isFullscreen()||X.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(X){X.isFullscreen()&&X.toggleFullscreen()})},
updatePlayerPlaylist_:function(X){var t=this,G,y,w;return _.n(function(z){if(z.nextAddress==1)return G=_.gw().resolve(_.jH(_.Gm)),y=!!(G&&G.playlistComponent&&G.playlistComponent.loopOn),z.yield(t.getPlayerPromise(),2);var B=w=z.yieldResult,V=B.updatePlaylist,b=[];if(_.A("kevlar_player_playlist_use_local_index")){var e,g;var F=(g=(e=X.localCurrentIndex)!=null?e:X.currentIndex)!=null?g:0}else{var T;F=(T=X.currentIndex)!=null?T:0}if(X.contents)for(e=0;e<X.contents.length;e++)if((g=X.contents[e])&&g.playlistPanelVideoRenderer)if(uP6(g)){g=
g.playlistPanelVideoRenderer;T="";g.shortBylineText&&(T=_.bu(g.shortBylineText));var D="";g.title?D=_.bu(g.title):g.unplayableText&&(D=_.bu(g.unplayableText));b.push({author:T,title:D,encrypted_id:g.videoId})}else e<F&&--F;V.call(B,{index:F,list:X.playlistId?X.playlistId:"",loop:y,playlist_title:X.title,playlist_length:b.length,video:b,fetch:0,external_list:"1",title:X.title?X.title:"",playlist_author:X.ownerName?_.bu(X.ownerName):void 0});_.W$(z)})},
focusOnPlayer:function(){_.V8(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var X=this.playerContainer_.querySelector(".html5-video-player");X&&(_.gb(_.gw().resolve(_.xI)),X.focus())}})},
preparePlayer:function(){var X=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(t){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")t();else{var G=function(){document.removeEventListener("DOMContentLoaded",G);t()};
document.addEventListener("DOMContentLoaded",G)}})).then(function(){return iQJ()}).then(function(){X.initPlayerPromise_||X.preparePlayerJobId_||(X.preparePlayerJobId_=_.PO(_.vz,function(){X.initPlayerPromise_||(X.initPlayerPromise_=X.initPlayerContainer_())}))}):_.fh(new _.NJ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(X){this.useUnifiedPlayer_()?ZR(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(X)||(X.args.autoplay="0")},
shouldAutoplay_:function(X){if(this.useUnifiedPlayer_())ZR(!1,"Invalid method call in kevlar_unified_player.");else{var t=this.get("args.el",X);return t&&t!="detailpage"&&this.isMiniplayerActive_()||t&&(t=="sponsorshipsoffer"||t=="handlesclaiming")&&this.get("args.autoplay",X)=="0"?!1:(X=WdA(X))&&this.get("playerConfig.playbackStartConfig.startPaused",X)?!1:!0}},
isMiniplayerActive_:function(){return _.gw().resolve(_.G2).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var X=this.getPlayer();if(X){var t=X.getPlayerState();_.A("kevlar_player_check_ad_state_on_stop")&&(t=X.getPlayerState(X.getPresentingPlayerType()));t!=5&&X.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(X,t,G){G=G===void 0?!1:G;var y=this,w,z,B,V;return _.n(function(b){if(b.nextAddress==1)return t||(t=y.hostElement),w=y.useUnifiedPlayer_()?!!y.mainAppPlayer_:!!y.initPlayerPromise_,w?b.yield(y.getPlayerPromise(),2):(G?X.insertBefore(t,X.firstChild):X.appendChild(t),b.return());z=b.yieldResult;B=z.getPlayerState(z.getPresentingPlayerType());V=!1;if(B==-1||B==1||B==3)V=!0;G?X.insertBefore(t,X.firstChild):X.appendChild(t);V&&z.playVideo();z.setSize(NaN,NaN);_.W$(b)})},
watchNextDataChanged_:function(X){var t=this;X&&(this.useUnifiedPlayer_()&&_.A("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&o8J(this.mainAppPlayer_,X):this.getPlayerPromise().then(function(G){G.updateVideoData(t.computeWatchNextPlayerVars_(X))}))},
computeWatchNextPlayerVars_:function(X){if(this.useUnifiedPlayer_()&&_.A("kevlar_unified_player_update_watch_next_killswitch"))ZR(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:X}},
maybeSendAbandonmentPing_:function(){var X=this.getPlayer();X&&X.getPlayerState()!=5&&X.getPlayerState()!=0&&X.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var X=_.Md("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(X=Object.assign({},X),X.rootElementId=this.playerId);X.serializedExperimentIds&&X.serializedExperimentFlags||_.Mj(Error("xh"));return X},
hasWebPlayerContextConfig_:function(){return!!_.Md("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(X){this.useUnifiedPlayer_()?ZR(!1,"Invalid method call in kevlar_unified_player."):_.cj(X,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(X){var t=_.gw().resolve(_.rv);X=X==null?void 0:X.getOption("captions","track");var G=_.Cg("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(X){var y,w=(y=_.Pk(_.X26,G)())==null?void 0:y.value,z;y=typeof(X==null?void 0:X.translationLanguage)==="object"&&((z=X.translationLanguage)==null?void 0:z.languageName)||X.displayName||"";w!==y&&t.store.dispatch(_.EW("stringEntity",G,{key:G,value:y.toString()}))}else t.store.dispatch(_.EW("stringEntity",
G,{key:G,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var X=_.A("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.A("kevlar_unified_player")||X}}];var k0R={};k0R.YtPlaylistPanelBehavior=[_.v.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(X){X=X.detail;if(X.actions.loop!=void 0||X.actions["yt-icons:loop"]!=void 0)this.loopOn=X.actions.loop||X.actions["yt-icons:loop"];if(X.actions.shuffle!=void 0||X.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=X.actions.shuffle||X.actions["yt-icons:shuffle"]},
setMenuData_:function(X){if(!X||!X.playlistButtons||X.isInfinite)return null;for(var t=X.playlistButtons.menuRenderer.topLevelButtons,G=t.length,y=0;y<G;y++)if(t[y].toggleButtonRenderer){var w=t[y].toggleButtonRenderer;w.defaultIcon.iconType=="LOOP"&&this.loopOn?w.isToggled=this.loopOn:w.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(w.isToggled=this.shuffleOn)}return X.playlistButtons}}];var da4=function(X){Ye.call(this,X,132);this.isDocument=X===document.documentElement};
_.S(da4,Ye);da4.prototype.calculateScrollDelta=function(X,t,G){var y=0;X<t?y=X<t-100?-48:-8:X>t+G&&(y=X>t+G+100?48:8);return y};
da4.prototype.JSC$11271_onMouseMove=function(X){this.isDocument||(X.clientX=X.event_.pageX,X.clientY=X.event_.pageY);Ye.prototype.JSC$11271_onMouseMove.call(this,X)};var FK=function(){var X=_.PW.apply(this,arguments)||this;X._noAccessors=!0;X.scrollElement=document.documentElement;X.JSC$14255_dragListGroup=null;X.dragScrollSupport=null;X.onDraggerCreated=function(t){var G=t.JSC$11267_dragger;G.scrollTarget_=X.scrollElement;t=t.draggerEl;G&&t.menuOpened&&G.setEnabled(!1)};
X.onDragStart=function(t){var G=t.draggerEl;t=t.currDragItem;var y=Object.assign({},t==null?void 0:t.data);y.trackingParams=void 0;G.data=y;G.style.position="absolute";G.style.width=(t==null?void 0:t.clientWidth)+"px";G.style.zIndex="2030";G.onDrag&&G.onDrag();_.A("web_owner_document_fallback_killswitch")?(t=document.querySelector("ytd-app"))&&_.Sm(t).appendChild(G):(t=_.aH(G),(y=t.querySelector("ytd-app"))?_.Sm(y).appendChild(G):t.body.appendChild(G));X.dragScrollSupport=new da4(X.scrollElement);
X.dragScrollSupport.horizontalScrolling_=!1;G=X.dragScrollSupport;G.constrainScroll_=!!G.margin_&&!1};
X.onDrop=function(t){X.handleDrop(t);X.dragScrollSupport&&(_.Vs(X.dragScrollSupport),X.dragScrollSupport=null)};
X.onReorderableScroll=function(){if(X.JSC$14255_dragListGroup){var t=X.JSC$14255_dragListGroup;Btz(t,t.currDragItem_)}};
return X};
_.S(FK,_.PW);FK.prototype.detached=function(){_.exJ(this)};
_.exJ=function(X){X.JSC$14255_dragListGroup&&(_.No(X.JSC$14255_dragListGroup,$Sq,X.onDragStart),_.No(X.JSC$14255_dragListGroup,wWR,X.onDragStart),X.JSC$14255_dragListGroup.dispose(),X.JSC$14255_dragListGroup=null);X.dragScrollSupport&&(_.Vs(X.dragScrollSupport),X.dragScrollSupport=null);X.scrollElement.removeEventListener("scroll",X.onReorderableScroll)};
_.jpq=function(X,t,G,y){y=y===void 0?"":y;_.exJ(X);G&&(X.scrollElement=G);X.JSC$14255_dragListGroup=new yC;X.JSC$14255_dragListGroup.hysteresisDistance_=2;HdJ(X.JSC$14255_dragListGroup,t);X.JSC$14255_dragListGroup.draggerElClasses_=bl("dragging").split(" ");y&&o3B(X.JSC$14255_dragListGroup,function(w){var z=w||document,B=null;z.getElementsByClassName?B=z.getElementsByClassName(y)[0]:B=UzJ("*",y,w);return B||w});
_.vj(X.JSC$14255_dragListGroup,Ml4,X.onDraggerCreated);_.vj(X.JSC$14255_dragListGroup,$Sq,X.onDragStart);_.vj(X.JSC$14255_dragListGroup,wWR,X.onDrop);X.JSC$14255_dragListGroup.init();X.scrollElement.addEventListener("scroll",X.onReorderableScroll,{passive:!0})};
FK.prototype.handleDrop=function(){};
_.ke.Object.defineProperties(FK.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.E([_.K({value:100}),_.U("design:type",Number)],FK.prototype,"scrollMargin",void 0);_.E([_.E0()],FK);_.g8Y=[FK.prototype];_.TZ={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(X,t,G){var y=this.getClickTarget_(t);if(y&&this.isClickAllowed_(y)){t.preventDefault();X=(0,_.RH.unsafeClone)(X);var w=this.getContainerBoundingRect();t=this.getRelativeClickXy_(t,w);this.expandEndpointUrlMacros_(X,{NX:t[0],NY:t[1],NB:y.code});G&&this.truncateWebCommendMetadataUrl_(X);_.Yt(this.hostElement,"yt-navigate",{endpoint:X})}},
getClickTarget_:function(X){if(!this.clickTargetMap)return null;X=_.be(X)||[];X=_.J(X);for(var t=X.next();!t.done;t=X.next()){t=t.value;if(t===_.Sm(this.hostElement).querySelector("#menu"))break;if(t=this.clickTargetMap.get(t.id))return t}return null},
getRelativeClickXy_:function(X,t){var G=X.detail.x,y=X.detail.y;_.A("use_on_click_for_desktop_display_ad")&&X.clientX!=null&&X.clientY!=null&&(G=X.clientX,y=X.clientY);X=Math.round(G-t.left);t=Math.round(y-t.top);return X<0||t<0?[null,null]:[X,t]},
getContainerBoundingRect:function(){return _.Sm(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(X,t){for(var G=_.J(X.loggingUrls||[]),y=G.next();!y.done;y=G.next())y=y.value,y.baseUrl&&(y.baseUrl=c6Y(y.baseUrl,t));X.urlEndpoint&&X.urlEndpoint.url&&(X.urlEndpoint.url=c6Y(X.urlEndpoint.url,t));X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.url&&(X.commandMetadata.webCommandMetadata.url=c6Y(X.commandMetadata.webCommandMetadata.url,t))},
truncateWebCommendMetadataUrl_:function(X){if(X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.url){var t=X.commandMetadata.webCommandMetadata.url,G=t.indexOf("&pp=");if(G>0){var y=t.indexOf("&",G+1);X.commandMetadata.webCommandMetadata.url=y>G&&y<t.length?t.slice(0,G)+t.slice(y):t.slice(0,G)}}},
configureClickTargets:function(X,t,G){this.containerId=X;this.clickTargetMap=new Map;X=_.J(t);for(t=X.next();!t.done;t=X.next())if(t=t.value,t.location){var y=G.get(t.location);y&&(_.Zk(_.Sm(this.hostElement).querySelector("#"+y),"yt-simple-endpoint",this.isClickAllowed_(t)),this.clickTargetMap.set(y,t))}},
isClickAllowed_:function(X){return X.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||X.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||X.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||X.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.AV={};
_.AV.YtLazyListBehavior=[_.gG.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 X=(this.constructor.generatedFrom||this).observers;X||(X=[]);X.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
X}},
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 X=this.renderElementsOutsideVisibleArea_;X&&(dfh(X,4),X.processSignal())},
deepLazyListObserver_:function(X){var t=this;if(X){var G=X.value||[];if(this.itemsPath==X.path){var y=this.nonDeferredItemCount;X=0;y>-1&&G.length>y&&(X=_.Md("REMAINING_DOVA_DEFERRED_CHUNKS",-1));X>0?(y>0&&(y=G.slice(0,y),this.setInitialItemsOnDataChanged(y)),(y=this.renderElementsOutsideVisibleArea_)?y.cancel():(y=this.renderElementsOutsideVisibleArea_=new _.Tw(2,"eocs"),_.C$h(window,"scroll",function(){return t.renderDeferredElements()})),_.AC(y,function(){t.setInitialItemsOnDataChanged(G)}),_.fY("REMAINING_DOVA_DEFERRED_CHUNKS",
X-1)):this.setInitialItemsOnDataChanged(G)}else if(this.itemsPath+".splices"==X.path)this.onItemsUpdated_(G);
else y="shownItems"+X.path.substr(this.itemsPath.length),this.useSignals&&y==="shownItems.length"||this.notifyPath(y,X.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(X){X&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(X),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(X){X=X.indexSplices;for(var t=0,G=X.length;t<G;t++){var y=X[t];if(y.index<this.shownCount&&(y.removed&&this.splice("shownItems",y.index,y.removed.length),y.addedCount)){var w=y.object.slice(y.index,y.index+y.addedCount);y=["shownItems",y.index,0];y.push.apply(y,w);this.splice.apply(this,y)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(X){this.cancelPendingTasks_();X||(X=[]);this.items_=X;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&&(_.X3("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.V8(this,this.tryRenderChunk_)))},
fillRange_:function(X,t){this.canShowMore&&this.items_&&(X=this.items_.slice(X,t),X.unshift("shownItems"),this.push.apply(this,X),this.shownCount=t,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var X=this;this.canShowMore&&_.Jm(this,"renderChunk",function(){X.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.X3("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Rs(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var X=this.renderElementsOutsideVisibleArea_;X&&(X.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var X=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(X-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=X;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(X){return Math.ceil(1E3/X)},
onCanShowMoreUpdated_:function(X){this.data&&this.items_!==null&&(X?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(X){!this.shouldUseTaskManager()&&this.data&&(!X&&this.canShowMore?(_.bis(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):X&&this.partiallyRenderedItems_.has(this.items_)&&(_.A("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Dz;_.Yj={};
Dz=function(){var X=_.PW.apply(this,arguments)||this;X.atStart=!0;X.atEnd=!0;X.startIndex=0;X.endIndex=0;X.scrollCount=0;X.initialStartIndex=0;X.disableScrollEventListener=!1;X.useFloorScrolling=!1;X.isSearch=!1;X.dragging=!1;X.dragMouseStart=0;X.dragOffsetStart=0;X.disableWheelScroll=!1;X.centerListItems=!1;X.offset=0;X.minComponentWidth=0;X.marginWidthRight=0;X.marginWidthLeft=0;X.setButtonsStateRequested=!1;X.itemsVisibilityObserver=null;X.fullyVisibleItemsIndices=[];X.JSC$14266_onWheelScroll=function(t){if(X.isSearch&&
!X.disableWheelScroll&&_.A("desktop_enable_dmpanel_wheel_scroll")){var G=t.shiftKey?Math.abs(t.deltaY)>Math.abs(t.deltaX)?t.deltaY:t.deltaX:t.deltaX;G!==0&&(t.preventDefault(),X.ytLazyListBehavior.fillRemainingListItems(),X.offset+=G,sI(X),X.reposition_())}};
X.onPointerDown=function(t){F1q(X)&&(X.dragMouseStart=t.clientX,X.dragOffsetStart=X.offset,X.dragging=!0)};
X.onPointerMove=function(t){F1q(X)&&X.dragging&&(X.ytLazyListBehavior.fillRemainingListItems(),X.offset=X.dragOffsetStart-(t.clientX-X.dragMouseStart),sI(X),X.reposition_())};
X.onPointerUp=function(){F1q(X)&&(X.dragging=!1)};
return X};
_.S(Dz,_.PW);var TFo=function(X){var t=_.Sm(X.hostElement).querySelector("#items").children;if(!t)return 0;var G=0;X=_.J(X.fullyVisibleItemsIndices);for(var y=X.next();!y.done;y=X.next())G+=t[y.value].clientWidth;return G},F1q=function(X){return X.isSearch&&_.A("desktop_enable_dmpanel_click_drag_scroll")};
Dz.prototype.created=function(){this.cachedViewportWidth=_.Md("initialInnerWidth")||window.innerWidth;this.JSC$14266_cachedViewportHeight=_.Md("initialInnerHeight")||window.innerHeight;_.Md("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.fY("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Dz.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.A("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();A7J(this)};
Dz.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.A("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var X;(X=this.itemsVisibilityObserver)==null||X.disconnect();this.itemsVisibilityObserver=null;var t;(t=this.itemsObserver)==null||t.disconnect()};
var A7J=function(X){var t=_.Sm(X.hostElement).querySelector("#scroll-container");if(t){if(!X.itemsVisibilityObserver){var G=window.getComputedStyle(t).marginRight;X.itemsVisibilityObserver=new IntersectionObserver(function(y){Ykt(X,y)},{root:t,
rootMargin:G,threshold:.98})}if(t=_.Sm(X.hostElement).querySelector("#items"))X.itemsObserver=new N9q(t,function(y){spY(X,y)})}},spY=function(X,t){Dao(X)&&(Array.from(t.addedNodes).filter(function(G){return G.nodeType===Node.ELEMENT_NODE}).forEach(function(G){X.itemsVisibilityObserver&&X.itemsVisibilityObserver.observe(G)}),Array.from(t.removedNodes).filter(function(G){return G.nodeType===Node.ELEMENT_NODE}).forEach(function(G){X.itemsVisibilityObserver&&X.itemsVisibilityObserver.unobserve(G)}))},
Ykt=function(X,t){var G=new Set(X.fullyVisibleItemsIndices);
t=_.J(t);for(var y=t.next();!y.done;y=t.next()){y=y.value;var w=y.target.parentElement;w?(w=Array.from(w.children).indexOf(y.target),y.isIntersecting?G.add(w):G.has(w)&&G.delete(w)):_.Mj(new _.NJ("Parent element not found",y.target.nodeName))}X.fullyVisibleItemsIndices=Array.from(G).sort(function(z,B){return z-B});
G.size===0?_.Mj(new _.NJ("No visible entries in horizontal list")):(X.startIndex=X.fullyVisibleItemsIndices[0],X.endIndex=X.fullyVisibleItemsIndices[X.fullyVisibleItemsIndices.length-1])},Dao=function(X){X.data?X=(X=X.data)&&X.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===X.itemSizeConstraint:!1:X=!1;
return X};
_.H=Dz.prototype;_.H.addScrollEventListeners=function(){var X=_.Sm(this.hostElement).querySelector("#scroll-container");X.style.touchAction="pan-y";X.addEventListener("wheel",this.JSC$14266_onWheelScroll);X.addEventListener("pointerdown",this.onPointerDown);X.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.H.removeScrollEventListeners=function(){var X=_.Sm(this.hostElement).querySelector("#scroll-container");X.removeEventListener("wheel",this.JSC$14266_onWheelScroll);X.removeEventListener("pointerdown",this.onPointerDown);X.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.H.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.V8(this,this.setStartIndex,[this.initialStartIndex])};
_.H.reposition_=function(){var X=_.Md("HTML_DIR")=="rtl"?"":"-",t=_.Sm(this.hostElement).querySelector("#items");t&&(t.style.transform="translateX("+X+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.H.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.V8(this,this.setButtonsState_))};
_.H.setButtonsState_=function(){this.setButtonsStateRequested=!1;var X=_.Sm(this.hostElement).querySelector("#items").firstElementChild;if(X){this.minComponentWidth||(this.minComponentWidth=Sk4(this,X));X=_.Sm(this.hostElement).querySelector("#scroll-container").clientWidth;var t=_.Sm(this.hostElement).querySelector("#items").clientWidth,G=this.get(this.ytLazyListBehavior.itemsPath,this);if(G){var y=Math.round(X/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+y,G.length)-1)}this.ytLazyListBehavior.canShowMore?t+this.minComponentWidth>=this.offset+X&&(this.atEnd=!1):this.atEnd=this.offset+X>=t-20?!0:!1;this.atStart=this.offset<=20}};
_.H.setStartIndex=function(X){if(!this.minComponentWidth){var t=_.Sm(this.hostElement).querySelector("#items").firstElementChild;if(!t)return;this.minComponentWidth=Sk4(this,t)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*X;sI(this);this.reposition_()};
_.H.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.O_();var X=_.Sm(this.hostElement).querySelector("#scroll-container").clientWidth;_.A("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Sk4(this,_.Sm(this.hostElement).querySelector("#items").firstElementChild));X=this.useFloorScrolling?Math.floor(X/this.minComponentWidth)||1:Math.round(X/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&hxq(this);this.offset+=Dao(this)?
TFo(this):X*this.minComponentWidth;sI(this);this.reposition_();this.scrollCount++};
_.H.prevClick_=function(){var X=_.Sm(this.hostElement).querySelector("#scroll-container").clientWidth;X=this.useFloorScrolling?Math.floor(X/this.minComponentWidth)||1:Math.round(X/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=Dao(this)?TFo(this):this.minComponentWidth*this.scrollCount-1):this.offset-=Dao(this)?TFo(this):X*this.minComponentWidth;this.centerListItems&&hxq(this);sI(this);this.reposition_()};
_.H.onIronResize_=function(){this.resizeSupportEnabled&&_.V8(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.H.onItemsTransitionEnd_=function(X){_.k3(X)===_.Sm(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.H.onChildElementFocus_=function(X){X=X.target.closest("#items > *");var t=_.Sm(this.hostElement).querySelector("#scroll-container");if(t.contains(X)){if(_.A("web_horizontal_list_behavior_focus_killswitch"))if(X.offsetLeft<this.offset)this.offset=Math.abs(X.offsetLeft)<X.clientWidth?0:X.offsetLeft;else if(X.offsetLeft+X.clientWidth>this.offset+t.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.O_(),this.offset=X.offsetLeft+X.clientWidth-t.clientWidth;else return;else{var G=_.Sm(this.hostElement).querySelector("#items"),
y=_.Md("HTML_DIR")==="rtl",w=y?G.clientWidth-X.offsetLeft:X.offsetLeft;G=y?G.clientWidth-(X.offsetLeft+X.clientWidth):X.offsetLeft+X.clientWidth;var z=y?w>this.offset+t.clientWidth:w<this.offset,B=y?G<this.offset:G>this.offset+t.clientWidth,V=y?z:B;if(y?B:z)t=y?G:w,this.offset=Math.abs(t)<X.clientWidth?0:t;else if(V)this.ytLazyListBehavior.fillRemainingListItems(),_.O_(),this.offset=(y?w:G)-t.clientWidth;else return}sI(this);this.reposition_()}};
_.H.observeShownItems_=function(){this.reset()};
_.H.checkComponentWidthResize=function(){var X=_.Sm(this.hostElement).querySelector("#items").firstElementChild;X&&(X=Sk4(this,X),this.centerListItems||X!==this.minComponentWidth)&&(this.minComponentWidth=X,this.offset=X*this.scrollCount,this.centerListItems&&hxq(this),sI(this),this.reposition_())};
var Sk4=function(X,t){var G=window.getComputedStyle(t).marginRight;G=Math.floor(Number(G.replace("px","")));var y=window.getComputedStyle(t).marginLeft;y=Math.floor(Number(y.replace("px","")));X.centerListItems&&!X.marginWidthRight&&(X.marginWidthRight=G,X.marginWidthLeft=y);return X.resizeSupportEnabled?t.getBoundingClientRect().width+G:t.offsetWidth+G},sI=function(X){var t=_.Sm(X.hostElement).querySelector("#scroll-container").clientWidth,G=_.Sm(X.hostElement).querySelector("#items").clientWidth;
X.offset<0?X.offset=0:X.offset+t>=G&&(X.offset=G-t)},hxq=function(X){X.offset-=(_.Sm(X.hostElement).querySelector("#scroll-container").clientWidth+X.marginWidthRight-X.minComponentWidth)/2-X.marginWidthLeft};
_.ke.Object.defineProperties(Dz.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var X=_.Md("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(X==-1)X=this.JSC$14266_cachedViewportHeight,X=X>1320?5:X>1020?4:X>730?3:X>430?2:1;else if(X==0)return 0;_.fY("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",X-1);X=_.Md("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(X>-1)return X;X=this.cachedViewportWidth;X=X>1600?6:X>1400?5:X>1300?4:X>1090?5:X>870?4:X>660?3:2;_.fY("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
X);return X},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.A("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Dz.prototype.observeShownItems_=Dz.prototype.observeShownItems_;Dz.prototype.onChildElementFocus_=Dz.prototype.onChildElementFocus_;Dz.prototype.onItemsTransitionEnd_=Dz.prototype.onItemsTransitionEnd_;Dz.prototype.onIronResize_=Dz.prototype.onIronResize_;Dz.prototype.prevClick_=Dz.prototype.prevClick_;Dz.prototype.nextClick_=Dz.prototype.nextClick_;Dz.prototype.setButtonsState_=Dz.prototype.setButtonsState_;Dz.prototype.requestButtonsStateUpdate_=Dz.prototype.requestButtonsStateUpdate_;
Dz.prototype.reposition_=Dz.prototype.reposition_;Dz.prototype.reset=Dz.prototype.reset;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.AV.YtLazyListBehavior),_.U("design:type",Object)],Dz.prototype,"ytLazyListBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Dz.prototype,"atStart",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Dz.prototype,"atEnd",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"startIndex",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"endIndex",void 0);_.E([_.K({value:6}),_.U("design:type",Number)],Dz.prototype,"initialCount",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"scrollCount",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"initialStartIndex",void 0);
_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"disableScrollEventListener",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"supportComponentResize",void 0);_.E([_.K({value:function(){var X=this;return function(){return X.prevClick_()}}}),
_.U("design:type",Function)],Dz.prototype,"boundPrevClick",void 0);_.E([_.K({value:function(){var X=this;return function(){return X.nextClick_()}}}),
_.U("design:type",Function)],Dz.prototype,"boundNextClick",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"useFloorScrolling",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"isSearch",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"dragging",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"dragMouseStart",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"dragOffsetStart",void 0);
_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"disableWheelScroll",void 0);_.E([_.K(),_.U("design:type",Object)],Dz.prototype,"centerListItems",void 0);_.E([_.WW("iron-resize"),_.cW("guideOpened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Dz.prototype,"onIronResize_",null);_.E([_.WW("transitionend"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],Dz.prototype,"onItemsTransitionEnd_",null);
_.E([_.WW("focusin"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],Dz.prototype,"onChildElementFocus_",null);_.E([_.cW("shownItems"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Dz.prototype,"observeShownItems_",null);_.E([_.E0()],Dz);_.Yj.YtdHorizontalListBehavior=[];_.Yj.YtdHorizontalListBehavior.push(_.ax,_.v.YtRendererBehavior,_.AV.YtLazyListBehavior,_.zZ.YtdGuideStateAwareBehavior,Dz.prototype);var tXs=["APP_STATE","PI"];var Z3q=_.Vc(["about:blank"]),qko={pushState:window.history.pushState,replaceState:window.history.replaceState};var SG=function(X){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=X;this.internalPushState=X.pushState.bind(X);this.internalReplaceState=X.replaceState.bind(X)};
SG.prototype.init=function(){this.initialized=!0};
SG.prototype.pushState=function(X,t){this.initialized||this.init();this.internalPushState&&this.internalPushState(X,"",t)};
SG.prototype.replaceState=function(X,t){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(X,"",t)};
SG.prototype.getState=function(){return this.history&&this.history.state};var C3o=function(X){var t=function(){var G=X.apply(this,arguments)||this;G.boundHistoryPushState=!1;G.boundHistoryReplaceState=!1;G.debugInfo={};return G};
_.S(t,X);t.prototype.init=function(){var G=_.OF("IFRAME");_.wq(G,_.sw(Z3q));G.sandbox="allow-same-origin";G.style.display="none";this.iframe=G;document.body.appendChild(G);this.bindHistoryStateFunctions();X.prototype.init.call(this)};
t.prototype.bindHistoryStateFunctions=function(){var G=this,y=[],w;this.iframe&&((w=this.iframe.contentWindow)==null?0:w.history)&&(w=this.iframe.contentWindow.history)&&(y.push(w),Object.getPrototypeOf(w)&&y.push(Object.getPrototypeOf(w)));window.history&&y.push(window.history);w=window.history;Object.getPrototypeOf(w)&&y.push(Object.getPrototypeOf(w));y.push(qko);w=function(B){for(var V=null,b=0;b<y.length;b++){var e=y[b][B];if(typeof e==="function"){V=e.bind(window.history);G.debugInfo[B]=b;break}}return V};
if(!this.boundHistoryReplaceState){var z=w("replaceState");z&&(this.internalReplaceState=z,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(w=w("pushState"))&&(this.internalPushState=w,this.boundHistoryPushState=!0)};
return t}(SG),K1Y=function(){return C3o.call(this,window.history)||this};
_.S(K1Y,C3o);K1Y.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var hV=function(X){this.browserHistory=X;this.initialized=!1};
hV.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
hV.prototype.pushState=function(X,t){this.initialized||this.init();this.browserHistory.pushState(X,t)};
hV.prototype.replaceState=function(X,t){this.initialized||this.init();this.browserHistory.replaceState(X,t)};
hV.prototype.handlePopstate=function(X){return X.state};_.O3e=function(X,t,G,y,w){this.endpoint=X;this.forward=t;this.historyEntry=G;this.JSC$29824_savedComponentState=y;this.legacyBorder=w===void 0?!1:w};var ufe=function(X,t){this.rootData=X;this.scrollTop=t};var RA=new _.FB("PAGE_REQUEST_TOKEN"),Rzq=new _.FB("FETCH_PBJ_TOKEN");_.Zz=new _.FB("EPHEMERAL_STORE_TOKEN");_.qE=function(X){this.data=Object.assign({},X);var t;(t=this.data.innertubeResponse)==null||delete t.frameworkUpdates};
_.qE.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.gl)()};
_.Yl=function(X){return Object.assign({},X.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var QpY=function(){this.maxSize=100;this.timeToDataCache=new Map};
QpY.prototype.get=function(X){var t=this.timeToDataCache.get(X);t&&(this.timeToDataCache.delete(X),this.timeToDataCache.set(X,t));if(t&&t.rootData&&(_.A("web_use_response_store_for_history_cache")||_.A("mweb_use_new_history_manager"))){var G=_.gw().resolve(_.Zz),y=IVq(t),w=!!y;if(y){if(y.content){var z=C8(G,y.content);w&&z?t.rootData.response=_.Yl(z):w=!1}y.player&&(z=C8(G,y.player),w&&z?t.rootData.playerResponse=_.Yl(z):w=!1);y.reelSequence&&(G=C8(G,y.reelSequence),w&&G?t.rootData.reelWatchSequenceResponse=
_.Yl(G):w=!1)}w||(this.timeToDataCache.delete(X),t=void 0)}return t};
QpY.prototype.set=function(X,t){if(t.rootData&&(_.A("web_use_response_store_for_history_cache")||_.A("mweb_use_new_history_manager"))){var G=IVq(t),y=Object.assign({},t.rootData);G&&(G.content&&t.rootData.response&&(W1q(this,G.content,t.rootData.response),y.response=null),G.player&&t.rootData.playerResponse&&(W1q(this,G.player,t.rootData.playerResponse),y.playerResponse=null),G.reelSequence&&t.rootData.reelWatchSequenceResponse&&(W1q(this,G.reelSequence,t.rootData.reelWatchSequenceResponse),y.reelWatchSequenceResponse=
null));t=new ufe(y,t.scrollTop)}this.timeToDataCache.has(X)?this.timeToDataCache.delete(X):this.timeToDataCache.size>=this.maxSize&&(G=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(G.value));this.maxSize!==0&&this.timeToDataCache.set(X,t)};
QpY.prototype.clear=function(){this.timeToDataCache.clear()};
var IVq=function(X){var t=_.gw().resolve(_.jH(RA)),G;if((G=X.rootData)==null?0:G.endpoint)return t==null?void 0:k9A(t,X.rootData.endpoint);var y;_.Mj(new _.NJ("History snapshot response data does not contain endpoint",(y=X.rootData)==null?void 0:y.url));return null},W1q=function(X,t,G){if(X.maxSize>0){var y;
(X=(y=G.responseContext)==null?void 0:y.maxAgeSeconds)&&Number(X)>0&&(y=_.gw().resolve(_.Zz),G=K5(G,X),y.put(t,new _.qE(G)))}};var c7o=function(X,t,G){this.endpoint=t;this.JSC$29829_savedComponentState=G===void 0?null:G;this.entryTime=X};var o8l=1;var K8=function(X){var t=function(){var G=X.apply(this,[].concat(_.RY(_.f1.apply(0,arguments))))||this;G.historyEntryTime=0;G.historySnapshotCache=G.createHistoryCache();return G};
_.S(t,X);t.prototype.createHistoryCache=function(){return new QpY};
t.prototype.saveAndReplace=function(G,y,w){var z=window.location.href;var B=B===void 0?{}:B;var V=(V=this.browserHistory.getState())&&V.entryTime?V.entryTime:J7w();G=this.createNewHistoryEntry(G,B,V);this.saveSnapshot(V,y,w);this.replaceState(G,z||window.location.href)};
t.prototype.saveAndPush=function(G,y,w,z,B){B=B===void 0?{}:B;this.saveSnapshot(this.historyEntryTime,w,z);w=this.historySnapshotCache;z=this.historyEntryTime;var V=w.timeToDataCache.keys();V=_.J(V);for(var b=V.next();!b.done;b=V.next())b=b.value,b>z&&w.timeToDataCache.delete(b);y=this.createNewHistoryEntry(y,B);this.pushState(y,G)};
t.prototype.saveSnapshot=function(G,y,w){this.historySnapshotCache.set(G,new ufe(y,w))};
t.prototype.createNewHistoryEntry=function(G,y,w){w=w===void 0?J7w():w;return new c7o(w,G,y)};
t.prototype.handlePopstate=function(G){var y=X.prototype.handlePopstate.call(this,G),w=null,z=null,B=!1,V=null;y&&y.entryTime&&(V=this.historySnapshotCache.get(y.entryTime)||null,B=y.entryTime>this.historyEntryTime,this.historyEntryTime=y.entryTime,w=y.endpoint,z=y.JSC$29829_savedComponentState);this.handleHistoryCacheLoad(new _.O3e(w,B,V,z),G);return y};
t.prototype.pushState=function(G,y){Number(G==null?void 0:G.entryTime)>=0&&(this.historyEntryTime=G.entryTime);X.prototype.pushState.call(this,G,y)};
t.prototype.replaceState=function(G,y){Number(G==null?void 0:G.entryTime)>=0&&(this.historyEntryTime=G.entryTime);X.prototype.replaceState.call(this,G,y)};
t.prototype.handleHistoryCacheLoad=function(){};
return t}(hV),pT4=function(){var X=K8.call(this,new K1Y)||this;
X.dispatchElement=null;X.entryIndex=0;return X};
_.S(pT4,K8);_.H=pT4.prototype;_.H.init=function(X){X=X===void 0?!0:X;K8.prototype.init.call(this);this.initialized||(X||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.H.handlePopstate=function(X){var t=null;X.state||(t="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return K8.prototype.handlePopstate.call(this,X);var G=new CustomEvent("yt-history-pop",{cancelable:!0});_.sl(this.dispatchElement,"yt-history-pop",[G,{errorMsg:t}]);_.D0(this.dispatchElement,"yt-close-all-popups-action");if(!G.defaultPrevented){G=_.gw().resolve(_.AS);t=G.getCurrentData();var y=G.getCurrentPage();G=0;y?(y=_.sl(this.dispatchElement,"yt-get-page-offset",
[y]),y.length>0&&(G=y[0])):_.Mj(new _.NJ("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:t?t.page:"undefined"}));t&&(t.csn=_.lw());this.saveSnapshot(this.historyEntryTime,t,G)}return K8.prototype.handlePopstate.call(this,X)};
_.H.handleHistoryCacheLoad=function(X,t){X.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.J(_.D0(this.dispatchElement,"yt-history-will-navigate",[t])).next().value||_.sl(this.dispatchElement,"yt-history-load",[t,X]))};
_.H.pushState=function(X,t){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var G=new _.NJ("history.pushState is not a function",this.getDebugString());_.xA(G)}K8.prototype.pushState.call(this,X,t)};
_.H.replaceState=function(X,t){if(!this.browserHistory.boundHistoryReplaceState){var G=new _.NJ("history.replaceState is not a function",this.getDebugString());_.xA(G)}K8.prototype.replaceState.call(this,X,t)};
_.H.saveAndPush=function(X,t,G,y,w){w=w===void 0?{}:w;G&&(G.csn=_.lw());K8.prototype.saveAndPush.call(this,X,t,G,y,w)};
_.H.getDebugString=function(){var X=[];this.initialized&&X.push("i");this.browserHistory.boundHistoryReplaceState&&X.push("bhr");this.browserHistory.boundHistoryPushState&&X.push("bhs");"replaceState"in this.browserHistory.debugInfo&&X.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&X.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&X.push("ei:"+String(this.entryIndex));return X.join(",")};
_.OI=function(X,t){X.init(!0);var G=X.browserHistory.getState();X.replaceState(G,C5(t))};
pT4.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.ua=new _.FB("DESKTOP_HISTORY_MANAGER_TOKEN");var r74=[10,20,30,40,50,60],Q_=function(){this.currentPartitionIndex=0},NFY=function(X){a8h({mainAppWeb:_.Jb(),
survivalSli:{partitionMinute:X,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},P3P=function(X){a8h({mainAppWeb:_.Jb(),
survivalSli:{partitionMinute:X,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},E8B=function(X){return X.currentPartitionIndex>=0&&X.currentPartitionIndex<r74.length?r74[X.currentPartitionIndex]:-1},Ua4=function(X){return X.currentPartitionIndex>0&&X.currentPartitionIndex-1<r74.length?r74[X.currentPartitionIndex-1]:-1};
Q_.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var X=Ua4(this);X>0&&P3P(X);X=E8B(this);X>0&&NFY(X);maY(this)}};
var maY=function(X){var t=E8B(X);if(t>0){var G=Ua4(X);G<0&&(G=0);X.intervalId=_.vz.addJob(function(){var y=Ua4(X);y>0&&P3P(y);y=E8B(X);y>0&&NFY(y);maY(X)},3,(t-G)*6E4);
X.currentPartitionIndex+=1}else X.currentPartitionIndex=-1};var RxR=function(){this.skipNextNavigation=!1},i3S=function(X,t,G){if(!t)return!1;
if(X.skipNextNavigation)return X.skipNextNavigation=!1;if(_.Y(G,_.zj))return!1;var y,w,z;if((y=_.Y(G,_.pp))==null?0:(w=y.browseEndpointContextSupportedConfigs)==null?0:(z=w.browseEndpointContextMainConfig)==null?0:z.skipConfirmation)return!1;var B;return((B=_.Y(t.commandMetadata,_.jQ))==null?void 0:B.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
RxR.prototype.showConfirmationDialog=function(X,t){this.navigateParams=t;this.customConfirmationCommand?_.gw().resolve(_.F3).resolveCommand(this.customConfirmationCommand):(t={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Vl(_.Qf("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Vl(_.Qf("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Vl(_.Qf("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Vl(_.Qf("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Hq.getInstance().triggerAction("yt-open-popup-action",t,X))};
RxR.prototype.cancelPendingNavigation=function(){var X;((X=this.navigateParams)==null?void 0:X.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var L1B=function(){},aVe=function(X,t,G,y,w,z,B){G=G===void 0?{}:G;
B=B===void 0?{}:B;var V=_.PN.instance,b,e=(b=_.Y(t,_.zj))==null?void 0:b.url;return e?aQE(V,e,G,window.location.href,function(g,F){v8S(X,g,F,!1,!0,G,z,y)},function(){return!1}):z2(V,t,G,window.location.href,Nr(t),function(g,F){v8S(X,g,F,!1,!0,G,z,y)},w,B)},v8S=function(X,t,G,y,w,z,B,V){if(!X.JSC$14324_chunkHandler)if(G.page==="watch"||G.page==="learning_journey_watch")if(w||y){if(_.A("kevlar_continue_playback_without_player_response")){var b;
var e=(b=_.Y(V,_.nq))==null?void 0:b.videoId}X.JSC$14324_chunkHandler=new ezq(_.sW,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:y,previousVideoId:e},tempData:z},B)}else X.JSC$14324_chunkHandler=new nUq(_.sW);else G.page==="shorts"&&w&&!y?X.JSC$14324_chunkHandler=new dKB(_.sW,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:z},B):X.JSC$14324_chunkHandler=new VNS(B);X.JSC$14324_chunkHandler.processChunk({endpoint:t,data:G});return X.JSC$14324_chunkHandler.vG.promise},
lVq=function(X,t,G,y,w){(G=_.w_e(G))&&v8S(X,t,G,!1,!0,y,void 0,w)};var xaq=function(){this.pendingNavigationPromise=null};
_.H=xaq.prototype;_.H.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.H.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.H.addEventListener=function(){throw Error("yh");};
_.H.dispatchEvent=function(){throw Error("yh");};
_.H.removeEventListener=function(){throw Error("yh");};var fVe=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],IJ=function(){_.P6.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];MXt(this)};
_.S(IJ,_.P6);IJ.prototype.verifyUser=function(){var X=MXt(this),t=X.logout;if(!X.sessionChange)return!0;this.dispatchEvent("ytsessionchange");t&&this.dispatchEvent("ytuserinvalid");return!1};
var MXt=function(X){var t=fVe.map(function(w){var z;return(z=_.QQ.get(w))!=null?z:""}),G=t.some(function(w,z){return X.sessionCookies&&X.sessionCookies[z]!==""&&w===""}),y=t.some(function(w,z){return X.sessionCookies&&X.sessionCookies[z]!==w});
X.sessionCookies=t;return{logout:G,sessionChange:y}};
IJ.prototype.clearTimeout=function(){this.scheduledJobId&&(_.vz.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var k00=new _.FB("POSTMESSAGE_TUNNEL_TOKEN");var n8J=["/parent_tools","/file_download","/artist_roster"],jpA=[Yhz,sVS,DwY,hGq,ShY,AAt,Z_q,qht];var XoB=new _.FB("APP_ROOT");var WV=new _.FB("NAVIGATION_CONFIRMATION_SERVICE");var $XP="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),tZe=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
cV=function(X,t){this.pendingNavigationPromise=null;this.JSC$14342_clientRoot=X;this.historyManager=t;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 L1B;this.debugString=X.is;X={"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};_.oO(_.Hq.getInstance(),X,this.JSC$14342_clientRoot)},HKq,oR4,J1S,B4Y,zdY;
_.S(cV,xaq);cV.prototype.reload=function(){_.ok(window.location.href)};
var oqP=function(X){X.currentEndpoint&&_.Y(X.currentEndpoint,_.E8)?X.reload():X.currentEndpoint&&X.navigate(X.currentEndpoint,!0,void 0,{disableCache:!0})};
cV.prototype.navigate=function(X,t,G,y,w,z,B,V){t=t===void 0?!1:t;G=G===void 0?{}:G;y=y===void 0?{}:y;var b=_.gw().resolve(WV),e;if(!B&&i3S(b,(e=this.currentEndpoint)!=null?e:void 0,X))return b.showConfirmationDialog(this.JSC$14342_clientRoot.parentElement,{endpoint:X,reload:t,params:G,tempData:y,requestType:w,createScreenConfig:z}),!1;var g=_.wv();_.zm(g,"eocs")||g.parkOrScheduleJob(function(){g.processSignal("eocs")},10,"eor");
B=Nr(X);b=y.autonav==="1";e=_.lw();IJ.instance||(IJ.instance=new IJ);var F=IJ.instance.verifyUser(),T;if(_.A("enable_dark_theme_only_on_shorts")){var D=document.documentElement.hasAttribute("dark"),h=_.Lp(!0)==="USER_INTERFACE_THEME_DARK";if(B==="shorts"){if(!D)if(_.A("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var u;_.ok((u=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null?void 0:u.url,void 0,void 0,window.top)}}else{var W;_.ok(_.Bx((W=_.Y(X==null?
void 0:X.commandMetadata,_.jQ))==null?void 0:W.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.A("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!D){var c;_.ok(_.Bx((c=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null?void 0:c.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(h!==D){var P;_.ok(_.Bx((P=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null?void 0:P.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(B==="watch"){if(Gge(_.gw().resolve(_.G2),
X)&&(F||_.A("fix_miniplayer_navigation_killswitch")))return!1;_.A("block_all_player_prefetch_requests")||(T=zYq(_.TC(_.E2),X,b))}else{var l,R=(l=_.Y(this.currentEndpoint,_.nq))==null?void 0:l.videoId;R&&_.ig.getInstance().then(function(C_){C_&&C_.set("yt-miniplayer-shown-video-id",R)})}T&&(G.frags=T.missingFragments_.join(","));
u=null;var L;W=(L=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null?void 0:L.ignoreNavigation;if(!W)if(_.A("kevlar_command_url")){var x;u=(x=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null?void 0:x.url}else u=_.d7l(X,G);if(u&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&u==this.lastNavigationUrl)return _.vP({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Q6(tE(),"CANCELLED")}u&&(this.lastNavigationUrl=u);rB6();_.fY("IS_HOMEPAGE_COLD",
!1);_.fY("IS_RESULTS_PAGE_COLD",!1);_.fY("IS_WATCH_PAGE_COLD",!1);X.loggingUrls&&X.loggingUrls.forEach(function(C_){C_.baseUrl&&_.HO(C_.baseUrl)});
_.A7l(X,z?z.layer:0)&&_.A("kevlar_flush_logs_on_away_navigation")&&_.lx();if(g8s(X))return!1;NRP(B,w);if(!u)return W||_.Mj(new _.NJ("Can't construct url for endpoint",X)),_.Q6(tE(),"FAILURE"),!1;_.BF_();L=X&&_.Y(X,_.pp)&&_.Y(X,_.pp).browseId.startsWith("UC");G=(x=_.A("enable_dark_theme_only_on_shorts")&&B==="shorts"?!1:_.vy()&&document.documentElement.hasAttribute("dark")!==_.iu())?{themeRefresh:1}:{};x&&!_.cx()&&_.Lp()==="USER_INTERFACE_THEME_DARK"&&(G.theme="dark");L=x||y14(u)&&!L&&!_.A("kevlar_disable_url_allowlist");
F||(L=!0);if(L||_.Md("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var w6;var BY=(w6=window.top)==null?void 0:w6.location.href}catch(C_){var kJ;BY=(kJ=C_)==null?void 0:kJ.message}_.Mj(new _.NJ("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:BY}))}X=_.A("kevlar_redirect_on_window_killswitch")?window.top:window;HW(u);_.ok(_.Bx(u,G),void 0,void 0,X);_.Q6(tE(),"ABORTED");return!1}_.A("kevlar_early_popup_close")&&_.sl(this.JSC$14342_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14324_chunkHandler=void 0;var Ss;BY=Nr((Ss=this.currentEndpoint)!=null?Ss:void 0);(Ss=B==="shorts"&&BY==="shorts")||_.UDJ();_.tt(q_J)("nr",void 0);b&&_.vP({webInfo:{navigationReason:"an"}});X.clickTrackingParams&&(y.itct=X.clickTrackingParams,y.csn=e);lzV(y);y.endpoint=JSON.stringify(X);_.A("enable_unknown_lact_fix_on_html5")&&(_.gw().resolve(_.xI),y.lact=_.T5());_.RH.isEmpty(y)||_.dk(u,y);!_.A("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(z=Object.assign({},{layer:0},z,{parentLayer:3}));this.pendingNavigationPromise=z=aVe(this.pageFetcher,X,y,this.currentEndpoint,this.JSC$14342_isNetworkPromiseStale.bind(this),z,V);z=z.then(this.handleNavigateSuccess.bind(this,z,X,T,y),this.handleNavigateFail.bind(this,z,X));_.cF().navigationFinishPromise=z;t={endpoint:X,pageType:B,url:C5(u),reload:!!t,noProgressBar:Ss};w&&(t.type=w);this.fireEvent("yt-navigate-start",t);T&&lVq(this.pageFetcher,X,T,y,this.currentEndpoint);
return!0};
cV.prototype.JSC$14342_isNetworkPromiseStale=function(X){return X!=this.pendingNavigationPromise};
var woo=function(X,t,G,y,w){var z=Nr(t);t={endpoint:t,pageType:z};w&&(t.errorMessage=w);_.Mj(G);t.navigationDoneMs=_.ls("nd");t.navigationErrorReason=y;X.fireEvent("yt-navigate-error",t)};
cV.prototype.handleNavigateFail=function(X,t,G){var y=void 0;G instanceof _.zC&&(y=G,b5_(G));if(this.JSC$14342_isNetworkPromiseStale(X))return _.l$(y);_.Q6(tE(),"FAILURE");woo(this,t,G,"101");return _.l$(G)};
cV.prototype.handleNavigateSuccess=function(X,t,G,y,w){if(this.JSC$14342_isNetworkPromiseStale(X))return _.qY();this.pendingNavigationPromise=null;if(!w)return t=new _.NJ("Missing data in response for navigation endpoint",t),_.l$(t);if(w.reload)return window.location.reload(!0),_.qY();G&&(X={},_.RH.extend(X,_.w_e(G),w),w=X);var z,B;G=(z=w)==null?void 0:(B=z.timing)==null?void 0:B.responseStart;G!=null&&_.ls("srt",G);_.ls("pdc");var V,b;z=(V=w)==null?void 0:(b=V.timing)==null?void 0:b.info;z!=null&&
(V=_.tt(_.uLJ)(z),_.vP(V));_.Q6(tE(),"SUCCESS");zdY(this,t,w,1,y);return _.qY()};
var y14=function(X){var t=X;_.A("kevlar_no_redirect_to_classic_2_ks")||(t=(new _.Vf(X)).getPath());if(t==="/"||t==="/red")return!1;var G=!0;$XP.forEach(function(y){X.indexOf(y)===0&&(G=!1)});
tZe.forEach(function(y){var w=y.url;_.A(y.expFlag)&&X.indexOf(w)===0&&(G=!1)});
return G};
cV.prototype.publishPageData=function(X){this.fireEvent("yt-page-data-fetched",{pageData:X})};
HKq=function(X,t,G,y,w,z){var B=null;t.page!=="watch"&&t.page!=="learning_journey_watch"||y?t.filler||_.sl(X.JSC$14342_clientRoot,"yt-stop-old-player",[t]):B=v8S(X.pageFetcher,w,t,G,!1,z,void 0,X.currentEndpoint);if(B)return B.then(X.publishPageData.bind(X,t));X.publishPageData(t);return _.qY()};
oR4=function(X,t,G){var y=null;if(!G)return y=new _.NJ("Empty data",X.debugString,t);var w=G.response;if(!w)return y;var z={endpointType:Nr(t)||"unknown"};w.responseContext?(w=w.responseContext.errors)&&(y=new _.NJ("Errors in response context",X.debugString,t,w,z)):y=w.error||w.errorMetadata?new _.NJ("Errors in response",X.debugString,t,w.error,w.errorMetadata,z):new _.NJ("responseContext missing",X.debugString,t,Object.keys(w).sort().join(","),z);var B,V,b,e;if(X=G==null?void 0:(B=G.response)==null?
void 0:(V=B.responseContext)==null?void 0:(b=V.webResponseContextExtensionData)==null?void 0:(e=b.webResponseContextDebugData)==null?void 0:e.debugErrorMessages)for(B=0;B<X.length;B++);return y};
J1S=function(X){var t,G,y,w;return X==null?void 0:(t=X.response)==null?void 0:(G=t.responseContext)==null?void 0:(y=G.errors)==null?void 0:(w=y.error)==null?void 0:w["0"]};
B4Y=function(X,t){var G;if(G=t.url&&!t.url.startsWith("/clip"))G=t.url,G=!_.A("webfe_parse_debug_param_in_resolveurl_service")&&X.searchDebugUrlMatcher.test(G)||AEw(G)?!0:!1;if(G)AEw(t.url)&&_.Jt(window.location.href).themeRefresh?(t=_.eQ(t.url,"themeRefresh"),_.OI(X.historyManager,t)):t.url&&!zxE(t.url)&&_.OI(X.historyManager,t.url);else if(t.endpoint){var y,w,z;(G=(y=t.endpoint)==null?void 0:(w=y.commandMetadata)==null?void 0:(z=w.webCommandMetadata)==null?void 0:z.url)&&!zxE(G)&&_.OI(X.historyManager,
G);G&&t.url&&G!=t.url&&!t.url.match("playnext=1")&&new _.NJ("Response url mismatch in response data",X.debugString,G,t.url)}};
_.nR4=function(X,t,G,y,w,z,B,V){z=z===void 0?!1:z;var b=_.gw().resolve(WV),e;if(!V&&i3S(b,(e=X.currentEndpoint)!=null?e:void 0,t))return b.showConfirmationDialog(X.JSC$14342_clientRoot.parentElement,{endpoint:t,data:G,navigationType:y,tempData:w,isMiniplayer:z,isForwardHistoryNavigation:B==null?void 0:B.forward}),_.qY();X.pageFetcher.JSC$14324_chunkHandler=void 0;return zdY(X,t,G,y,w,z)};
zdY=function(X,t,G,y,w,z){z=z===void 0?!1:z;X.isMiniplayerExpansion=z;var B=y===2;X.currentEndpoint=t;X.numNavigations++;X.numNavigations&&(cV6.navigationCount=X.numNavigations);_.fY("NUM_NAV",X.numNavigations);var V=oR4(X,t,G);if(V)return woo(X,t,V,"102",J1S(G)),_.l$(V);var b,e,g,F;V=G.rootVe||(G==null?void 0:(b=G.response)==null?void 0:(e=b.responseContext)==null?void 0:(g=e.webResponseContextExtensionData)==null?void 0:(F=g.ytConfigData)==null?void 0:F.rootVisualElementType);!B&&G&&B4Y(X,G);var T,
D;b=G==null?void 0:(T=G.response)==null?void 0:(D=T.responseContext)==null?void 0:D.maxAgeSeconds;if(!B&&!isNaN(b)){var h;_.A("kevlar_use_response_ttl_to_invalidate_cache")?h=(0,_.gl)()+1E3*b:_.A("kevlar_always_invalidate_cache")&&(h=0);isNaN(h)||(G.expirationTime=h)}_.TC(_.E2).prefetchCache_.clear();B||G.page!=="watch"||G.type!=="reduced"&&y!==1?y=HKq(X,G,B,!!z,t,w):(X.publishPageData(G),y=_.qY());w=y.then(function(){var u=Nr(t);u={endpoint:t,pageType:u,fromHistory:B,response:G};u.navigationDoneMs=
_.ls("nd");X.fireEvent("yt-navigate-finish",u)});
G.csn&&V&&G.clientSideGrafts&&y.then(X.attachClientSideGrafts.bind(X,G,_.a4()));return w};
_.H=cV.prototype;_.H.attachClientSideGrafts=function(X,t){X.clientSideGrafts&&t&&X.clientSideGrafts.forEach(function(G){if(t&&G){var y=_.i$(G);_.A("combine_ve_grafts")?_.Pj().graftServerVe(G,t):_.w9(X.csn,t,y)}})};
_.H.handleSignalActionHistoryBack=function(){window.history.back()};
_.H.handleSignalActionCloseWindow=function(){window.close()};
_.H.handleSignalActionReloadPage=function(){this.reload()};
_.H.handleSignalActionSoftReloadPage=function(){oqP(this)};
_.H.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.H.fireEvent=function(X,t){X=new CustomEvent(X,{bubbles:!0,cancelable:!1,composed:!0,detail:t});this.dispatchEvent(X)};
_.H.addEventListener=function(X,t){this.JSC$14342_clientRoot.addEventListener(X,t)};
_.H.dispatchEvent=function(X){return this.JSC$14342_clientRoot.dispatchEvent(X)};
_.H.removeEventListener=function(X,t){this.JSC$14342_clientRoot.removeEventListener(X,t)};
cV[gA]=[XoB,_.ua];_.MvE=new DG("browse","h8y2qb");_.XDw=new DG("search","JzFVk");_.$vf=new DG("shorts","xwEKAe");_.tuf=new DG("watchFixie","nmfa2d");_.G9h=new DG("watchFlexy","CF909");_.yOY=new DG("watchGrid","Tm0L3c");_.wDw=new DG("watchLearningJourney","L3n37");var VZq;var bKS=function(){return _.O.apply(this,arguments)||this};
_.S(bKS,_.O);_.ke.Object.defineProperties(bKS,{template:{configurable:!0,enumerable:!0,get:function(){if(VZq===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);VZq=X}X=VZq;return X}}});
_.E([_.q(b3e.YtPlayerBehavior),_.U("design:type",Object)],bKS.prototype,"ytPlayerBehavior",void 0);_.E([_.p({is:"ytd-player"})],bKS);var kgB;var dXe;var edt;var p8=function(){var X=_.O.apply(this,arguments)||this;X.forceModernIconButton=!1;X.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return X};
_.S(p8,_.O);p8.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]]"}}}}}};
p8.prototype.handleAccountLinkingStateChangedCommand=function(X){if(X=_.Y(X,HPB)){var t,G=(t=this.data)==null?void 0:t.providerKey;t=X.providerKey;G&&t&&G.id===t.id&&G.subject===t.subject&&(X=X.linked,X!==void 0&&(this.set("data.linked",X),this.notifyPath("data.linked"),_.A("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(X)))}};
p8.prototype.setPlayerAccountLinkState=function(X){var t=new XBq;$DP(t,f4h(new xTo,X));var G=_.sW();G&&G.getPlayerPromise().then(function(y){y.setAccountLinkState(_.i2(t.JSC$12046_serializeBinary(),4));y.updateAccountLinkingConfig(X)})};
p8.prototype.handleShowAccountLinkDialog=function(){var X=this.get("button.buttonRenderer.command");X&&_.Kq([X],this.hostElement)};
_.ke.Object.defineProperties(p8.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}}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.E([_.q([_.sb.YtActionHandlerBehavior]),_.U("design:type",Object)],p8.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],p8.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],p8.prototype,"overrides",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],p8.prototype,"forceModernIconButton",void 0);_.E([_.K({value:"bottom"}),_.U("design:type",String)],p8.prototype,"buttonTooltipPosition",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],p8.prototype,"forceIconButton",void 0);_.E([_.K(),_.U("design:type",Boolean)],p8.prototype,"disableTextTransform",void 0);
_.E([_.C("data","data.linked","data.isWarning"),_.U("design:type",Object),_.U("design:paramtypes",[])],p8.prototype,"button",null);_.E([_.p({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],p8);
_.N(p8,"ytd-account-link-button-renderer",function(){if(edt!==void 0)return edt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return edt=X},{mode:1});var jGS;var gRB=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],rb=function(){return _.O.apply(this,arguments)||this};
_.S(rb,_.O);rb.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
rb.prototype.updateButtonActiveState=function(){var X=this,t=!!gRB.find(function(G){return X.currentState===G});
this.button&&(this.button.isPressed=t)};
_.ke.Object.defineProperties(rb.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.playlistLoopStateEntity)==null?void 0:X.state)||((t=this.data)==null?void 0:t.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var X=void 0,t;if(this.currentState&&((t=this.data)==null?0:t.states)){t=_.J(this.data.states);for(var G=t.next();!G.done;G=t.next()){G=_.Y(G.value,_.h4R);var y=void 0;if(((y=G)==null?void 0:y.state)===this.currentState){X=G;break}}}return X}}});
rb.prototype.updateButtonActiveState=rb.prototype.updateButtonActiveState;_.E([_.q(_.MZ),_.U("design:type",Object)],rb.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.qk6}),_.U("design:type",Object)],rb.prototype,"playlistLoopStateEntity",void 0);_.E([_.K(),_.U("design:type",Object)],rb.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],rb.prototype,"forceIconOnly",void 0);_.E([_.rt("ytd-button-renderer"),_.U("design:type",_.jC)],rb.prototype,"button",void 0);
_.E([_.C("data","playlistLoopStateEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],rb.prototype,"currentState",null);_.E([_.cW("currentButtonStateRenderer"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rb.prototype,"updateButtonActiveState",null);_.E([_.C("currentState"),_.U("design:type",Object),_.U("design:paramtypes",[])],rb.prototype,"currentButtonStateRenderer",null);
_.E([_.p({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],rb);
_.N(rb,"ytd-playlist-loop-button-renderer",function(){if(jGS!==void 0)return jGS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return jGS=X},
{mode:1});var FgB;var T4h=_.Qf("DOWNLOAD",{},"Download"),A1P=_.Qf("DOWNLOADING",{},"Downloading"),YjS=_.Qf("DOWNLOADED",{},"Downloaded"),sGq=_.Qf("RETRY",{},"Retry"),NE=function(){var X=_.O.apply(this,arguments)||this;X.forceIconButton=!1;X.forceIconOnly=!1;X.overrides=!1;X.buttonTooltipPosition=!1;X.styleActionButton=!1;X.disableTextTransform=!1;X.downloadProgress=0;X.isDownloadComplete=!1;X.isHidden=!0;X.transferState="TRANSFER_STATE_UNKNOWN";X.isVideoDeletedByUser=!1;X.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return X};
_.S(NE,_.O);_.H=NE.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.dataChanged=function(){var X;(X=this.data)!=null&&X.text||(X=_.$1(_.dV().getState(),this.videoId),this.updateButtonState(X))};
_.H.computeVideoId=function(X){return X};
_.H.showHideButton=function(){this.updateButtonVisibility()};
_.H.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};
_.H.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.H.updateButtonState=function(X){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==A1P||!_.NQ(X))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(X){case "TRANSFER_STATE_UNKNOWN":X=T4h;var t="OFFLINE_DOWNLOAD";var G="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":X=sGq;t="OFFLINE_DOWNLOAD";G="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":X=YjS;t="OFFLINE_PIN";G="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":X=
A1P;t="OFFLINE_DOWNLOADING_ZERO";G="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":X=sGq;t="OFFLINE_DOWNLOAD";G="ACTION_RETRY";break;default:X=T4h,t="OFFLINE_DOWNLOAD",G="ACTION_ADD"}this.isVideoDeletedByUser&&(X=T4h,t="OFFLINE_DOWNLOAD",G="ACTION_ADD");var y=Object.assign({},this.data);y.text=_.Vl(X);y.tooltip=X;y.icon={iconType:t};y.size="SIZE_DEFAULT";y.style="STYLE_DEFAULT";_.Y(y.command,_.ck)&&(_.Y(y.command,_.ck).action=G);this.set("data",y)}};
_.H.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var X="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?X="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?X="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?X="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?X="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?X="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(X="OFFLINE_PIN",this.isDownloadComplete=!0);var t;X!==((t=this.data.icon)==null?void 0:t.iconType)&&(t=Object.assign({},this.data),t.text=_.Vl(A1P),t.tooltip=A1P,t.icon={iconType:X},_.Y(t.command,_.ck)&&(_.Y(t.command,_.ck).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",t))}};
NE.prototype.updateProgress=NE.prototype.updateProgress;NE.prototype.onTransferStateChanged=NE.prototype.onTransferStateChanged;NE.prototype.showHideButton=NE.prototype.showHideButton;NE.prototype.dataChanged=NE.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],NE.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],NE.prototype,"forceIconButton",void 0);
_.E([_.K(),_.U("design:type",Object)],NE.prototype,"forceIconOnly",void 0);_.E([_.K(),_.U("design:type",Object)],NE.prototype,"overrides",void 0);_.E([_.K(),_.U("design:type",Object)],NE.prototype,"buttonTooltipPosition",void 0);_.E([_.K(),_.U("design:type",Object)],NE.prototype,"styleActionButton",void 0);_.E([_.K(),_.U("design:type",Object)],NE.prototype,"disableTextTransform",void 0);
_.E([_.K({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.U("design:type",String)],NE.prototype,"videoId",void 0);_.E([_.K(),_.U("design:type",Object)],NE.prototype,"data",void 0);_.E([_.K({selector:G8,selectorArgs:["videoId"]}),_.U("design:type",Object)],NE.prototype,"downloadProgress",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],NE.prototype,"isDownloadComplete",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],NE.prototype,"isHidden",void 0);_.E([_.K({selector:_.$1,selectorArgs:["videoId"]}),_.U("design:type",String)],NE.prototype,"transferState",void 0);_.E([_.K({selector:_.mPJ,selectorArgs:["videoId"]}),_.U("design:type",Object)],NE.prototype,"isVideoDeletedByUser",void 0);_.E([_.K({selector:pFA,selectorArgs:["videoId"]}),_.U("design:type",Object)],NE.prototype,"offlineabilityState",void 0);
_.E([_.K({value:!0}),_.U("design:type",Boolean)],NE.prototype,"showTooltips",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],NE.prototype,"sendCommandWhenDisabled",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],NE.prototype,"disabled",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],NE.prototype,"dataChanged",null);
_.E([_.U0("offlineabilityState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],NE.prototype,"showHideButton",null);_.E([_.U0("transferState","isVideoDeletedByUser"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],NE.prototype,"onTransferStateChanged",null);_.E([_.U0("downloadProgress"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],NE.prototype,"updateProgress",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],NE);
_.N(NE,"ytd-download-button-renderer",function(){if(FgB!==void 0)return FgB;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return FgB=X},{mode:2});var DXh;var SjY,hdP=function(){if(SjY!==void 0)return SjY;var X=document.createElement("template");_.Z(X,'\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 SjY=X};var ZKS=_.A("web_button_rework")&&_.X3("BUTTON_REWORK")||_.A("web_button_rework_with_live"),qj4=_.At("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,PV=function(){var X=_.O.apply(this,arguments)||this;X.isPressed=!1;X.forceIconButton=!1;X.forceIconOnly=!1;X.forceModernIconButton=!1;X.alignByText=!1;X.isShorts=!1;X.animatedText=!1;X.shouldAnimate=!1;X.JSC$14379_browserSupportsAnimation=_.A("web_supports_animations_api");X.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};X.onTap=function(){var t;if((t=X.data)==null||!t.defaultNavigationEndpoint){var G;t=!((G=X.data)==null?0:G.isToggled);var y;if((y=X.data)==null||!y.preventAutoToggle){X.shouldAnimate=!1;X.disableTextUpdateJobId&&_.vz.cancelJob(X.disableTextUpdateJobId);X.disableTextUpdateJobId=_.vz.addLowPriorityJob(function(){X.disableTextUpdateJobId=void 0},qj4);
var w;X.set("data.isToggled",!((w=X.data)==null?0:w.isToggled));G=X.getInnertubeIcon();y={toggled:t,actions:{}};G&&(y.actions[G.toLowerCase()]=t);_.Yt(X.hostElement,"yt-toggle-button",y)}}};
return X};
_.S(PV,_.O);_.H=PV.prototype;_.H.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.vz.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.toggle=function(X){var t;this.set("data.isToggled",X!==void 0?X:!((t=this.data)==null?0:t.isToggled))};
_.H.handleUpdateToggleButtonStateCommand=function(X){if(this.data){X=_.Y(X,j6J);var t,G,y,w=(t=this.data)==null?void 0:(G=t.toggleButtonSupportedData)==null?void 0:(y=G.toggleButtonIdData)==null?void 0:y.id;w&&X&&w===(X==null?void 0:X.buttonId)&&this.set("data.isToggled",X.toggled)}};
_.H.handleUpdateToggleButtonTextAction=function(X){if(this.data){X=_.Y(X,GwY);var t,G,y,w=(t=this.data)==null?void 0:(G=t.toggleButtonSupportedData)==null?void 0:(y=G.toggleButtonIdData)==null?void 0:y.id;w&&X&&w===(X==null?void 0:X.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=X.defaultNumericalValue,this.set("data.defaultText",X.defaultText),this.set("data.toggledText",X.toggledText),this.shouldAnimate=!1)}};
_.H.getInnertubeIcon=function(){var X=this.data;if(X){var t,G,y=((t=X.defaultIcon)==null?0:t.iconType)?(G=X.defaultIcon)==null?void 0:G.iconType:null,w,z;t=((w=X.toggledIcon)==null?0:w.iconType)?(z=X.toggledIcon)==null?void 0:z.iconType:y;return X.isToggled?t:y}};
_.H.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.ke.Object.defineProperties(PV.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X={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$14379_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var t=X.renderer;var G=X.element;var y=X.toggled;var w=X.onTapCallback;var z=X.commandClientArgs;var B=X.overrides;var V=X.forceIcon;var b=X.forceModernIconButton;var e=X.forceDisabled;var g=X.useAnimatedText;var F=X.animatedTextProps;X=ufG(t,y);V=!t.defaultIcon||!V&&t.defaultText?t.defaultIcon?"leading":void 0:b?"icon-only":"icon-only-40";V==="icon-only-40"&&(X.type="text");var T;b=Object;var D=b.assign,h;a:switch((h=
t.style)==null?void 0:h.styleType){case "STYLE_COMPACT_GRAY":h={size:"S"};break a;default:h={size:"M"}}var u=!!y;var W=(W=y&&t.toggledText||t.defaultText)?_.$I(W):void 0;g?(g=_.bu(y&&t.toggledText||t.defaultText))&&F&&!isNaN(Number(F.numberValue))?(F.numberText=g,y&&(F.numberValue+=1),g=F):g=void 0:g=void 0;var c,P,l,R;var L=(F=((P=y?t.toggledAccessibilityData||((L=t.toggledText)==null?void 0:L.accessibility):t.accessibilityData||((c=t.defaultText)==null?void 0:c.accessibility))==null?void 0:(l=P.accessibilityData)==
null?void 0:l.label)||((R=t.accessibility)==null?void 0:R.label))?F:_.bu(y&&t.toggledText||t.defaultText);e=e===void 0?t.isDisabled:e;G=O3G(t,y,w,G,z);y=K1s(t,y);y!=null&&y.length?(y=_.Hl({innertubeCommand:V30(y),forceNewState:!0}),y=oi(y)?y:void 0):y=void 0;t=D.call(b,{},X,h,{iconPosition:V},B,{focused:!1,toggled:u,toggleable:!0,formattedButtonText:W,animatedTextProps:g,accessibilityLabel:L,disabled:e,onTap:G,aTagConfig:y},RAE((T=t.colorData)==null?void 0:T.basicColorPaletteData));t.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(t.type="filled");return t}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var X=this.getInnertubeIcon();if(X)return _.Q2(X)}}});
PV.prototype.resetAnimation=PV.prototype.resetAnimation;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],PV.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],PV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],PV.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],PV.prototype,"isPressed",void 0);_.E([_.K(),_.U("design:type",Object)],PV.prototype,"forceIconButton",void 0);_.E([_.K(),_.U("design:type",Object)],PV.prototype,"forceIconOnly",void 0);_.E([_.K(),_.U("design:type",Object)],PV.prototype,"forceModernIconButton",void 0);_.E([_.K(),_.U("design:type",Object)],PV.prototype,"alignByText",void 0);_.E([_.K(),_.U("design:type",Object)],PV.prototype,"overrides",void 0);
_.E([_.K(),_.U("design:type",Boolean)],PV.prototype,"disabled",void 0);_.E([_.K(),_.U("design:type",Object)],PV.prototype,"isShorts",void 0);_.E([_.K(),_.U("design:type",Object)],PV.prototype,"buttonTooltipPosition",void 0);_.E([_.K(),_.U("design:type",Object)],PV.prototype,"animatedText",void 0);_.E([_.K(),_.U("design:type",String)],PV.prototype,"textNumberValue",void 0);_.E([_.K({computed:"computeTooltip(data, data.isToggled)"}),_.U("design:type",Object)],PV.prototype,"tooltip",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PV.prototype,"resetAnimation",null);_.E([_.C("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.U("design:type",Object),_.U("design:paramtypes",[])],PV.prototype,"computedButtonShape",null);_.E([_.C("data.*"),_.U("design:type",Object),_.U("design:paramtypes",[])],PV.prototype,"computedIcon",null);
_.E([_.p({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],PV);ZKS&&_.N(PV,"ytd-toggle-button-renderer",hdP,{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var B00=_.Fp(function(X){function t(e){var g;return _.n(function(F){if(F.nextAddress==1)return(g=!IVh(e,V())||!V().enabled)?F.jumpTo(2):F.yield(NFs(),3);F.nextAddress!=2&&(g=F.yieldResult);if(g)return F.return();G();setTimeout(function(){B(!1)},1500);
_.W$(F)})}
function G(){setTimeout(function(){B(!0);var e;(e=y.lottieEl)==null||e.goToAndPlay(0)},150)}
var y=_.Is(),w=_.J(_.sm(!1,void 0,"JJXzp")),z=w.next().value,B=w.next().value,V=_.ex(X.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.LY(function(){var e,g;((e=X.settings)==null?void 0:(g=e.call(X))==null?void 0:g.uniqueId)==="this is not intended behavior"&&_.Mj(new _.NJ("Smartimation Settings is undefined"))});
_.Em(function(){V().experimentEnabled&&(V().enabled?W1A(t):(B(!1),c76(t)),_.Um(function(){c76(t)}))},"FRiAUe");
_.Em(function(){V().timings.join("");V().experimentEnabled&&(pTv(V()),_.Um(function(){r7v(V())}))},"VKiJOe");
var b=_.qt(function(){var e=y,g=V().uniqueId+"-border",F,T;var D="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((T=(F=_.gw().resolve(_.jH(_.kI)))==null?void 0:F())!=null&&T?"dark":"light")+"_v2.json";return{animationRef:e,animationConfig:{name:g,autoplay:!1,loop:!1,path:D}}},void 0,"tgykab");
w={};return _.k("yt-smartimation",{class:_.cl(X.className,"smartimation",(w["smartimation--experiment-enabled"]=function(){return V().experimentEnabled},w["smartimation--active-border"]=z,w["smartimation--enable-masking"]=P3f(),w))},_.k(_.d,{cond:function(){return V().experimentEnabled},
then:function(){return _.k("div",{class:"smartimation__border"},_.k(_.D8,{className:"smartimation__border-gradient",data:b,animationName:function(){return b().animationConfig.name}}))}}),_.k("div",{class:"smartimation__content"},X.children))},"D");
B00.idomCompat=!0;_.DW(B00,"yt-smartimation",{props:{className:_.bR,settings:_.bR}});var EI=function(){var X=_.O.apply(this,arguments)||this;X.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};X.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};X.shouldEnableSmartimation=!1;return X};
_.S(EI,_.O);EI.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
EI.prototype.onDataChanged=function(){var X,t;this.shouldEnableSmartimation=(((X=this.data)==null?void 0:(t=X.timedAnimationData)==null?void 0:t.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
EI.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var X=_.Y(this.data.likeButton,_.yq),t=_.Y(this.data.dislikeButton,_.yq);return!!((X==null?0:X.isToggled)||(t==null?0:t.isToggled))};
EI.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]]"}}}}}};
_.ke.Object.defineProperties(EI.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var X,t,G=((X=this.data)==null?void 0:(t=X.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"like-dislike",timings:G,enabled:this.shouldEnableSmartimation,experimentEnabled:G.length>0}}}});
EI.prototype.onDataChanged=EI.prototype.onDataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],EI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],EI.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],EI.prototype,"likeButtonOverride",void 0);_.E([_.K(),_.U("design:type",Object)],EI.prototype,"dislikeButtonOverride",void 0);
_.E([_.C("shouldEnableSmartimation"),_.U("design:type",Object),_.U("design:paramtypes",[])],EI.prototype,"smartimationSettings",null);_.E([_.cW("data"),_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],EI.prototype,"onDataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],EI);
_.N(EI,"ytd-segmented-like-dislike-button-renderer",function(){if(DXh!==void 0)return DXh;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return DXh=X},{mode:1});var CH4;var KgJ;(KgJ=document.body)==null||KgJ.setAttribute("rounded-container","");var OK4={};OK4.YtToggleButtonBehavior=[_.sb.YtActionHandlerBehavior,Eb.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 X=this.data.isToggled;if(!this.isModal_(X)){if(!this.data.preventAutoToggle){this.toggle();var t={toggled:this.data.isToggled,actions:{}};t.actions[this.buttonIcon]=this.data.isToggled;_.Yt(this.hostElement,"yt-toggle-button",t)}t=this.data.defaultServiceEndpoint||null;var G=this.data.toggledServiceEndpoint||null;if(t&&G||t&&this.data.preventAutoToggle)X=X?G:t,t=this.disableCommandHandlerOverride,_.A("killswitch_toggle_button_behavior_resolve_command")||t?_.hE(this.hostElement,
[X]):_.cj(X,this.hostElement),_.Yt(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:X})}},
stateChanged_:function(){var X=this.data;if(X){var t=X.isToggled;this._setEndpoint(this.computeEndpoint_(X));this._setServiceEndpoint(this.computeServiceEndpoint_(X));this._setButtonIcon(this.computeButtonIcon_(X,t));this._setButtonText(this.computeButtonText_(X,t));this._setButtonAccessibility(this.computeAccessibility_(X,t));this._setButtonTooltip(this.computeTooltip_(X,t));this._setButtonClass(this.computeButtonClass_(X,t));this._setIconPositionType(this.computeIconPositionType_(X));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=t):this.elements_.button.setAttribute("aria-pressed",t));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=t)}},
shouldSetIconActiveState_:function(){return _.A("kevlar_system_icons")},
toggle:function(X){this.set("data.isToggled",X!==void 0?X:!this.data.isToggled);_.A("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(X){if(X){var t,G;return!!((t=this.data)==null?0:(G=t.toggledServiceEndpoint)==null?0:G.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(X){return X&&X.defaultNavigationEndpoint||null},
computeButtonIcon_:function(X,t){var G=X&&X.defaultIcon?_.Q2(X.defaultIcon.iconType):null;X=X&&X.toggledIcon?_.Q2(X.toggledIcon.iconType):G;return t?X:G},
handleUpdateToggleButtonStateCommand_:function(X){X=X.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==X.buttonId&&this.toggle(X.toggled)},
computeButtonText_:function(X,t){return X?t&&X.toggledText||X.defaultText||null:null},
computeAccessibility_:function(X,t){return X?(t?this.get("toggledAccessibilityData.accessibilityData",X):this.get("accessibilityData.accessibilityData",X))||X.accessibility||null:null},
computeTooltip_:function(X,t){return X?t&&X.toggledTooltip||X.defaultTooltip||null:null},
computeButtonClass_:function(X,t){if(!X)return"";var G="",y=X.toggledStyle||X.style;if(t=t?y:X.style){t.styleType&&(t=t.styleType);try{G+=t.toLowerCase().replace(/_/g,"-")+" "}catch(w){_.XE(w,t,typeof t),_.Mj(w)}}if(X=X.size){X.sizeType&&(X=X.sizeType);try{G+=X.toLowerCase().replace(/_/g,"-")+" "}catch(w){_.XE(w,X,typeof X),_.Mj(w)}}return G.trim()},
computeIconPositionType_:function(X){return X&&X.iconPosition||null},
computeServiceEndpoint_:function(X){var t=X&&X.serviceEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:G&&X.command?X.command:null},
handleUpdateToggleButtonTextAction_:function(X){X=X.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==X.buttonId&&(this.set("data.defaultText",X.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",X.toggledText),this.notifyPath("data.toggledText"))}}];_.Xa("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var u_4=_.A("web_button_rework")&&_.X3("BUTTON_REWORK")||_.A("web_button_rework_with_live"),UI=function(){var X=_.O.apply(this,arguments)||this;X.systemIcons=_.A("kevlar_system_icons");X.roundedContainer=!0;return X};
_.S(UI,_.O);UI.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
UI.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var X=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var t={toggled:!!this.data.isToggled,actions:{}};t.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var G,y;t.actions.playlistId=(G=this.data.defaultServiceEndpoint)==null?void 0:(y=G.playlistEditEndpoint)==null?void 0:y.playlistId;_.Yt(this.hostElement,"yt-toggle-button",t)}(X=X?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(X)}};
UI.prototype.onYtNavigate=function(X){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(X.detail.endpoint);t&&(X.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(t))};
_.ke.Object.defineProperties(UI,{template:{configurable:!0,enumerable:!0,get:function(){if(CH4===void 0){var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);CH4=X}X=CH4;return X}}});
UI.prototype.onYtNavigate=UI.prototype.onYtNavigate;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],UI.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],UI.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(OK4.YtToggleButtonBehavior),_.U("design:type",Object)],UI.prototype,"ytToggleButtonBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],UI.prototype,"data",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],UI.prototype,"showTooltips",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],UI.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],UI.prototype,"roundedContainer",void 0);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],UI.prototype,"onYtNavigate",null);
_.E([_.p({is:"ytd-toggle-button-renderer",disableElementRegistration:u_4})],UI);var QGS;_.mD=new _.FB("PANEL_CONTROLLER_TOKEN");_.RJ=new _.FB("SHEET_CONTROLLER_TOKEN");_.ia=new _.FB("DIALOG_CONTROLLER_TOKEN");QGS=new _.FB("DIALOG_CONTAINER_TOKEN");var lVh=_.Qf("DOWNLOAD",{},"Download"),xaA=_.Qf("DOWNLOADING",{},"Downloading"),fVG=_.Qf("DOWNLOADED",{},"Downloaded"),MXE=_.Qf("RETRY",{},"Retry");var $Xf=[],tZG=!1;var ISh=_.Fp(function(X){var t=oR_,G=function(){return""},y=y1v(X.data),w=wo6(X.data),z=zds(X.data),B=HKA(X.data);
t=function(){var V=X.data(),b=v8Y(V,y(),w(),z(),B()),e=!!V.videoId,g=b.text;return{title:e?g:void 0,tooltip:e?void 0:g,accessibilityText:g,onTap:b.onTap,iconName:b.iconType,style:V.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:b.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:V.buttonSize}};
G={};G=_.cl("ytDownloadButtonViewModelHost",(G.ytDownloadButtonViewModelIsHidden=function(){var V=X.data(),b=B();return V.playlistId||b()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||b()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},G));
return _.k("download-button-view-model",{class:G},_.k(_.QK,{data:t}))},"E");
ISh.idomCompat=!0;var c1q=_.Fp(function(X){var t=X.backgroundLottieRef;var G=X.foregroundLottieRef;var y=X.children;var w=X.wrapperClass;var z=X.disableAnimation;X=function(){return(_.A("web_animated_actions")||_.A("web_animated_actions_v2"))&&!(z==null?0:z())};
return _.k("yt-animated-action",{class:_.cl("animated-action__container",w)},_.k("div",{class:"animated-action__content-with-background"},_.k(_.d,{cond:X,then:function(){return _.k(Wgh,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:t==null?void 0:t(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(J1Y()?"dark":"light")+"_v5.json"}}}})}}),y),_.k(_.d,{cond:X,
then:function(){return _.k(Wgh,{lottiePlayerProps:function(){return{animationRef:G==null?void 0:G(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(J1Y()?"dark":"light")+"_v4.json"}}}})}}))},"F");
c1q.idomCompat=!0;var Wgh=_.Fp(function(X){var t=X.wrapperClass;var G=X.lottieClass;var y=X.lottiePlayerProps;return _.k("div",{class:_.cl("animated-action__lottie",t),"aria-hidden":"true"},_.k(_.D8,{className:G,data:y,animationName:function(){return y().animationConfig.name}}))},"G");var B4s={isOpen:!1};var VZA={isAllowed:!1};var kgV={errorMessage:"",title:"",privacy:"",isDisabled:!0};var edE={isOpen:!1};var gRV={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var poz={response:void 0};var T4J=function(X,t){X=X===void 0?poz:X;switch(t.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},X,{response:t.payload});default:return X}};var r1o={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var A1f=function(X,t){X=X===void 0?r1o:X;switch(t.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},X,{nextDisabled:t.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},X,{nextCommand:t.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},X,{footerSubmissionData:t.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},X,{isImpersonationValid:t.payload});default:return X}};var N44={reportFormData:void 0,reportDetailsFormData:void 0};var YjY=function(X,t){X=X===void 0?N44:X;switch(t.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},X,{reportFormData:t.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},X,{reportDetailsFormData:t.payload});default:return X}};var PHR=void 0;_.A("mweb_enable_redux_store_on_demand")||(PHR=new k1(sGA()));var L8=_.A("enable_web_delhi_icons");var ERt=_.Fp(function(X){X=_.jx(X,{themeOverride:void 0,animationRef:{}});var t=X.animatedIconType,G=X.active,y=X.themeOverride,w=X.animationRef;X=X.staticIconFn;var z=_.J(_.sm(void 0,void 0,"P5a72b")),B=z.next().value,V=z.next().value,b=function(){a:{var W=t();var c=y==null?void 0:y();var P;c=(c==null?void 0:c.useDarkTheme)||((P=_.gw().resolve(_.jH(_.kI)))==null?void 0:P());switch(W){case "LIKE":PHR||(PHR=new k1(sGA()));W=(W=TWJ(PHR.getState()))&&W.animationLightUrl&&W.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:c?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:c?W.animationDarkUrl:W.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(W){c=W;break a}c="animated_like_icon_"+(c?"dark":"light")+"_"+(L8?"v5":"v4");c={lottiePlayerProps:{animationConfig:{name:c,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+c+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(L8?" animated-like-icon-delhi":"")}}},totalFrames:L8?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":c={lottiePlayerProps:{animationConfig:{name:c?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(c?"dark":"light")+(L8?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(L8?" animated-subscribe-icon-delhi":"")}}},totalFrames:L8?120:79,lazyLoad:!1};break a}c=
void 0}return c},e=function(){var W,c;
return(c=(W=b())==null?void 0:W.lottiePlayerProps.animationConfig.name)!=null?c:""},g=function(){if(b()){var W=b().lottiePlayerProps.animationConfig.path;
return Wl.get(W)||B()}};
z=_.J(_.sm(!1,void 0,"h6xR3c"));var F=z.next().value;z=z.next().value;var T=Sjs(z),D=function(){var W=b(),c,P,l;return(l=W==null?void 0:(c=W.lottiePlayerProps.animationConfig)==null?void 0:(P=c.rendererSettings)==null?void 0:P.className)!=null?l:""},h=void 0,u=void 0;
_.Em(function(){var W=b(),c=e(),P=g(),l=F(),R=G();if(W&&(u!==c&&(u=c,h=R,c=w(),T.animationConfig=W.lottiePlayerProps.animationConfig,T.animationRef=c,P&&(T.animationConfig.animationData=P,T.animationConfig.path=void 0),c=W.lottiePlayerProps.animationConfig.path,!Wl.get(c)&&W.lazyLoad&&c&&DXJ(c,V)),!(l||W.lazyLoad&&!P))){if(P=!w().lottieEl)R?(l=W.totalFrames,T.animationConfig.initialSegment=[l-1,l]):T.animationConfig.initialSegment=void 0;if(h!==R&&!P)if(P=w(),R){var L;(L=P.lottieEl)==null||L.playSegments([0,
W.totalFrames],!0)}else{var x;(x=P.lottieEl)==null||x.playSegments([0,1],!0)}h=R}},"YCYOCe");
return _.k("animated-icon",{class:"ytAnimatedIconHost"},_.k(_.d,{cond:function(){var W,c;return!((W=b())==null||!W.lottiePlayerProps.animationConfig.path||((c=b())==null?0:c.lazyLoad)&&!g()||F())},
then:function(){return _.k(_.D8,{data:T,animationName:e,className:D,animationRef:w})},
else:X}))},"H");_.vV=_.Fp(function(X){var t=_.nl("yt-subscribe-button-view-model"),G=_.nl("div"),y=_.nl("div"),w=_.Is(),z=_.Is(),B=_.Is(),V=_.Pk(YkE,function(){return X.data().stateEntityStoreKey}),b=_.Pk(sps,function(){var ll,go;
return(go=(ll=X.data().notificationStateEntityStoreKeys)==null?void 0:ll.subsNotificationStateKey)!=null?go:""}),e=function(){return!X.data().enableSubscribeButtonPostClickAnimation},g=_.J(_.sm(0,void 0,"eTsWvc")),F=g.next().value,T=g.next().value;
g=_.J(_.sm(0,void 0,"dniDQ"));var D=g.next().value,h=g.next().value;g=_.J(_.sm(!1,void 0,"EluPic"));var u=g.next().value,W=g.next().value;g=_.J(_.sm(!1,void 0,"r0jnre"));var c=g.next().value,P=g.next().value;g=_.J(_.sm(!1,void 0,"KMvoQe"));var l=g.next().value,R=g.next().value,L;g=_.J(_.sm(!1,void 0,"aSENce"));var x=g.next().value,w6=g.next().value,BY=function(){P(!0);_.Rs(_.vz,function(){P(!1)},1500)};
_.Em(function(){var ll=c();YH(function(){ll&&!e()&&V()&&WgJ(w,z,B)})},"LgmX6c");
_.Em(function(){var ll=V();YH(function(){if(!e()&&ll){var go;((go=X.animateWidth)==null?0:go.call(X))&&ISJ(t.value,!!ll.subscribed,F(),D());var kh,Aq;((kh=L)==null?0:kh.subscribed)||!ll.subscribed||ll.key!==((Aq=L)==null?void 0:Aq.key)||BY();L=ll}})},"iZzoUb");
g=_.qt(function(){var ll,go,kh,Aq=X.data(),OR=!((ll=V())==null||!ll.subscribed);ll=!((go=X.isOverlay)==null||!go.call(X));go=u()?t:void 0;var Mz=(kh=b())==null?void 0:kh.state;kh=x();QGY(Aq,Mz);return qjv({model:Aq,subscribed:OR,isOverlay:ll,element:go,notificationState:Mz,disableTextEllipsis:!0,focused:kh})},void 0,"yGQGue");
var kJ=function(){var ll;if(!e()&&((ll=X.animateWidth)==null?0:ll.call(X))&&(G==null?0:G.value)&&(y==null?0:y.value)&&!l()){ll=V();var go=_.J((ll==null?0:ll.subscribed)?[G,y]:[y,G]),kh=go.next().value;go=go.next().value;kh=Math.ceil(kh.value.getBoundingClientRect().width);go=Math.ceil(go.value.getBoundingClientRect().width);T(kh);h(go);ISJ(t.value,!(ll==null||!ll.subscribed),kh,go);R(!0)}},Ss=_.NI(function(ll){kJ();
var go=V();go&&(ll.detail.endpoint.subscribeEndpoint||ll.detail.endpoint.unsubscribeEndpoint)&&Kgl(t.value,!go.subscribed,go)}),C_=function(){var ll=_.gw().resolve(_.jH(_.Z8));
ll&&w6(ll.isKeyBoardInUse())},Fv=function(){w6(!1)};
_.Bq("yt-player-subscribe",function(ll){var go=V();go&&ll===X.data().channelId&&Kgl(t.value,!0,go)});
_.Bq("yt-player-unsubscribe",function(ll){var go=V();go&&ll===X.data().channelId&&Kgl(t.value,!1,go)});
_.Bq("yt-update-subscribe-button-action",function(ll){ll=_.Y(ll,t24);var go=V();go&&ll&&ll.channelId===X.data().channelId&&Kgl(t.value,!!ll.subscribed,go)});
_.LY(function(){t.value&&(t.value.addEventListener("focusin",C_),t.value.addEventListener("focusout",Fv));var ll=_.PO(_.vz,function(){kJ()});
W(!0);_.Um(function(){_.vz.cancelJob(ll);t.value&&(t.value.removeEventListener("focusin",C_),t.value.removeEventListener("focusout",Fv))})});
var Uh=function(){var ll,go,kh;if(kh=!((ll=V())==null||!ll.subscribed))ll=!!X.data().disableNotificationBell,kh=(go=b())==null?void 0:go.state,kh=!ll&&!!kh;return kh},cY=function(){var ll;
return!((ll=V())==null?0:ll.subscribed)},f_=function(){var ll,go;
if(go=cY()){go=!!X.data().disableNotificationBell;var kh=(ll=b())==null?void 0:ll.state;go=!go&&!!kh}return go},sq={},oq={};
return _.k("yt-subscribe-button-view-model",{class:_.cl(X.className,"yt-subscribe-button-view-model-wiz",(sq["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var ll,go;return!((ll=V())==null||!ll.subscribed)&&((go=X.animateWidth)==null?void 0:go.call(X))&&c()},sq["yt-subscribe-button-view-model-wiz--hidden"]=function(){var ll;
return!((ll=V())==null?0:ll.subscribed)&&X.data().hideWhenUnsubscribed},sq)),
el:t,"on:yt-service-request-sent":Ss},_.k(c1q,{backgroundLottieRef:w,foregroundLottieRef:z,wrapperClass:_.cl("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(oq["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var ll;return((ll=X.animateWidth)==null?void 0:ll.call(X))&&c()},oq["yt-subscribe-button-view-model-wiz__static-width"]=function(){var ll;
return!((ll=X.animateWidth)==null?0:ll.call(X))},oq)),
disableAnimation:e},_.k("div",{el:G,class:"yt-subscribe-button-view-model-wiz__container"},_.k(_.jh,{data:g,icon:function(){return _.k(_.d,{cond:Uh,then:function(){var ll=function(){var go;return CHv((go=b())==null?void 0:go.state)};
return _.k(_.d,{cond:function(){return e()||ll()!=="NOTIFICATIONS_NONE"},
then:function(){return _.k(_.mw,{icon:ll})},
else:function(){return _.k(ERt,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:B})}})}})},
secondaryIconName:function(){return Uh()?"EXPAND":void 0}}))),_.k("div",{el:y,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.k(_.d,{cond:function(){var ll;return((ll=X.animateWidth)==null?void 0:ll.call(X))&&!e()&&!l()},
then:function(){return _.k(_.jh,{data:_.qt(function(){var ll;return qjv({model:X.data(),subscribed:cY(),isOverlay:!((ll=X.isOverlay)==null||!ll.call(X)),element:t,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var ll;return f_()?CHv((ll=b())==null?void 0:ll.state):void 0},
secondaryIconName:function(){return f_()?"EXPAND":void 0}})}})))},"I");
_.vV.idomCompat=!0;var c1V=new _.FB("RENDERER_STAMPER_OPTIONS_TOKEN");var UXS=_.Fp(function(X){var t=X.data;var G=_.Pk(YkE,function(){return t().subscriptionStateEntityKey});
return _.k(_.d,{cond:function(){var y=t(),w=G();return!y.hideWhenUnsubscribed||(w==null?0:w.subscribed)?_.Y(t().button,_.vk):void 0},
then:function(y){return _.k("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.k(_.QK,{data:y,buttonOverrides:function(){return{toggled:!0}}}))}})},"J");
UXS.idomCompat=!0;var Lgh=_.L5({buttonViewModel:_.QK,subscribeButtonViewModel:_.vV,downloadButtonViewModel:ISh,toggleButtonViewModel:_.Lv,subscribePlusButtonViewModel:UXS});_.FE(aSG);var oLV=new _.FB("RENDERER_LOGGER_TOKEN");var xW;_.lX=new P$q;xW=new Map;var wRG="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),Hn6=["notificationTextRenderer","notificationMultiActionRenderer"],z3_="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
yuA=lSA(function(X){return _.R5(X==null?void 0:X.targetId)}).useUpdatableData;var G3V=0;_.M7.debugName="EjJbCe";var mXB=_.Fp(function(X){return _.k(_.M7,{data:function(){return X.actionRow().actions}},{buttonViewModel:function(t){var G=t.data;
return _.k(aJ,{isRow:X.isRow,isIconOnlyButton:function(){return Jul(G())},
useIntrinsicWidth:X.useIntrinsicWidth},_.k(_.QK,{data:G}))},
subscribeButtonViewModel:function(t){return _.k(aJ,{isRow:X.isRow},_.k(_.vV,{data:t.data,isOverlay:!1,animateWidth:function(){return!X.isRow()}}))},
downloadButtonViewModel:function(t){var G=t.data;return _.k(aJ,{isRow:X.isRow,isIconOnlyButton:function(){return!!G().playlistId}},_.k(ISh,{data:G}))},
toggleButtonViewModel:function(t){var G=t.data;return _.k(aJ,{isRow:X.isRow,isIconOnlyButton:function(){var y=G();return Jul(_.Y(y.isToggled?y.toggledButtonViewModel:y.defaultButtonViewModel,_.vk))}},_.k(_.Lv,{data:G}))},
subscribePlusButtonViewModel:function(t){return _.k(aJ,{isRow:X.isRow},_.k(UXS,{data:t.data}))}})},"K"),aJ=_.Fp(function(X){var t={};
return _.k("div",{class:_.cl("yt-flexible-actions-view-model-wiz__action",(t["yt-flexible-actions-view-model-wiz__action--row-action"]=X.isRow,t["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=X.useIntrinsicWidth,t["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,t["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=X.isIconOnlyButton,t))},X.children)},"L"),RdB=_.Fp(function(X){var t=function(){var y;
return((y=X.layout)==null?void 0:y.call(X))===1},G={};
return _.k("yt-flexible-actions-view-model",{class:_.cl("yt-flexible-actions-view-model-wiz",X.className,(G["yt-flexible-actions-view-model-wiz--inline"]=function(){return!t()},G["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return X.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},G))},_.k(_.pY,{each:function(){return X.data().actionsRows||[]}},function(y){return _.k(_.d,{cond:t,
then:function(){return _.k("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.k(mXB,{actionRow:y,isRow:t,useIntrinsicWidth:function(){return!!X.data().respectActionIntrinsicWidth}}))},
else:function(){return _.k(mXB,{actionRow:y,isRow:t})}})}))},"M"),la=_.A("web_enable_sink_yt_flexible_actions_view_model")?RdB:_.rr(aSG);
RdB.idomCompat=!0;_.DW(la,"yt-flexible-actions-view-model",{props:{data:_.bR,layout:_.bR,justifyContentOverride:_.bR,className:_.bR}});_.xj=_.Fp(function(X){var t=_.Pk(zz,function(){var w;return(w=X.data().dislikeEntityKey)!=null?w:""}),G=_.qt(function(){var w=t();
return w?w.likeStatus==="DISLIKE":_.Y(X.data().toggleButtonViewModel,_.as).isToggled},void 0,"B2tgKf"),y=_.qt(function(){return Object.assign({},_.Y(X.data().toggleButtonViewModel,_.as),{isToggled:G()})},void 0,"otfIbf");
return _.k("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.k(_.Lv,{data:y,buttonShapeOverrides:X.buttonShapeOverrideables,onToggle:function(w){var z=t();z&&w!==(z.likeStatus==="DISLIKE")&&z.key&&_.dX(_.Xc("likeStatusEntity",z.key,{likeStatus:w?"DISLIKE":"INDIFFERENT",hadUserInteraction:w}))}}))},"N");
_.xj.idomCompat=!0;_.f8=_.Fp(function(X){var t=_.A("web_supports_animations_api"),G=AH(function(T){var D=e();if(!T){var h,u;return{numberText:(u=D==null?void 0:(h=D.likeCountIfIndifferent)==null?void 0:h.content)!=null?u:"",numberValue:Number(D==null?void 0:D.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var W;h=(D==null?void 0:(W=D.likeCountIfIndifferent)==null?void 0:W.content)!==T.numberText;if(V()||!h)return T;var c;return{numberText:(D==null?void 0:(c=D.likeCountIfIndifferent)==null?void 0:c.content)||
"",numberValue:Number(D==null?void 0:D.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!D}}),y=AH(function(T){var D=e();
if(!T){var h,u;return{numberText:(u=D==null?void 0:(h=D.likeCountIfLiked)==null?void 0:h.content)!=null?u:"",numberValue:Number(D==null?void 0:D.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var W;h=(D==null?void 0:(W=D.likeCountIfIndifferent)==null?void 0:W.content)!==T.numberText;if(V()||!h)return T;var c;return{numberText:(D==null?void 0:(c=D.likeCountIfLiked)==null?void 0:c.content)||"",numberValue:Number(D==null?void 0:D.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!D}}),w=_.J(_.sm(void 0,
void 0,"xYSlUe")),z=w.next().value,B=w.next().value,V=z,b=_.Pk(zz,function(){var T,D;
return(D=(T=X.data())==null?void 0:T.likeStatusEntityKey)!=null?D:""}),e=_.Pk(M5w,function(){var T,D;
return((T=X.likeCountEntity)==null?void 0:(D=T.call(X))==null?void 0:D.key)||""}),g=_.qt(function(){var T;
return((T=b())==null?void 0:T.likeStatus)==="LIKE"},void 0,"DG5Osd"),F=function(){var T;
return t&&!((T=X.likeCountEntity)==null||!T.call(X))};
return _.k("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.k(_.Lv,{data:function(){var T=Object,D=T.assign,h;var u=_.Y((h=X.data())==null?void 0:h.toggleButtonViewModel,_.as);return D.call(T,{},u||{},{isToggled:g()})},
buttonShapeOverrides:X.buttonShapeOverrideables,animatedTextPropsDefault:function(){return F()?G():void 0},
animatedTextPropsToggled:function(){return F()?y():void 0},
onToggle:function(T){Bm0(T,b(),V(),B)},
style:function(){var T;return((T=X.disableIconAnimation)==null?0:T.call(X))?void 0:{animateIcon:"true"}}}))},"O");
_.f8.idomCompat=!0;var iKY=_.Fp(function(X){var t=function(){return _.Y(X.data().likeButtonViewModel,_.fe)},G=function(){var w;
return((w=t())==null?void 0:w.likeStatusEntityKey)||""},y=_.qt(function(){var w,z;
var B=(z=_.Pk(zz,G)())!=null?z:(w=t())==null?void 0:w.likeStatusEntity;w=X.data();var V;w=(w==null?void 0:(V=w.timedAnimationData)==null?void 0:V.animationTiming)||[];return{uniqueId:"like-dislike",timings:w,enabled:(B==null?void 0:B.likeStatus)==="INDIFFERENT"&&w.length>0,experimentEnabled:w.length>0}},void 0,"hGh9Td");
return _.k("segmented-like-dislike-button-view-model",{class:_.cl("ytSegmentedLikeDislikeButtonViewModelHost",X.className),"button-renderer":!0},_.k(B00,{settings:y},_.k("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.k(_.d,{cond:t,then:function(w){return _.k(_.f8,{data:w,likeCountEntity:function(){return X.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.k(_.d,{cond:function(){return _.Y(X.data().dislikeButtonViewModel,_.x_)},
then:function(w){return _.k(_.xj,{data:w,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"P");
iKY.idomCompat=!0;_.DW(iKY,"segmented-like-dislike-button-view-model",{props:{data:_.bR,className:_.bR}});var Lgq=_.Fp(function(X){var t=X.data;var G=X.className;var y=X.setMinWidth;var w=X.forceIconOnly;var z=_.nl("account-link-button-view-model"),B=_.Pk(_.nLA,function(){var T;return(T=t().accountLinkStatusEntityKey)!=null?T:""}),V=_.Pk(_.nLA,function(){var T;
return(T=t().accountLinkStatusSecondaryEntityKey)!=null?T:""}),b=function(){if(!_.A("web_account_link_secondary_killswitch")){var T,D;
return((T=B())==null?void 0:T.linked)||((D=V())==null?void 0:D.linked)}var h;return(h=B())==null?void 0:h.linked};
_.Em(function(){var T=B();if(T){var D=$DP(new XBq,f4h(new xTo,!!T.linked));_.uX().then(function(h){h&&(h.setAccountLinkState(_.i2(D.JSC$12046_serializeBinary(),4)),h.updateAccountLinkingConfig(!!T.linked))})}},"b9pSsf");
var e=function(){return _.Y(t().toggleButtonViewModel,_.as)};
_.Bq("yt-signal-action-show-account-link-dialog",function(){if(e()){var T=b()?e().toggledButtonViewModel:e().defaultButtonViewModel;T=_.Y(T,_.vk);var D;if((D=B())==null?0:D.isWarning){D=_.Y(t().warningButtonViewModel,_.vk);if(!D){_.yQ(Error("Ah"));return}T=D}var h;(D=_.wr((h=T)==null?void 0:h.onTap))&&_.Kq([D],z.value)}else _.yQ(Error("Bh"))});
var g=function(){var T=e();return Object.assign({},T,{isToggled:b()})},F=function(){return(w==null?0:w())?{iconPosition:"icon-only"}:{}};
return _.k("account-link-button-view-model",{class:_.cl("ytwAccountLinkButtonViewModelHost",G,function(){return(y==null?0:y())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:z,"button-renderer":!0},_.k("div",null,_.k(_.d,{cond:function(){var T;if((T=B())==null?0:T.isWarning)return(T=_.Y(t().warningButtonViewModel,_.vk))||_.yQ(Error("Ah")),T},
then:function(T){return _.k(_.QK,{data:T,buttonOverrides:F})},
else:function(){return _.k(_.Lv,{data:g,buttonShapeOverrides:F})}})))},"Q");_.DW(Lgq,"account-link-button-view-model",{props:{data:_.bR,className:_.sd,setMinWidth:_.sd,forceIconOnly:_.sd}});_.Xa("menuRenderer","menuRenderer","ytd-menu-renderer");
var vRq={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"}},
aSe=_.A("web_fix_missing_action_buttons")?100:200,ME=function(){var X=_.O.apply(this,arguments)||this;X.safeArea=!_.A("kevlar_flex_menu_safe_area_killswitch");X.tonalOverride=!1;X.threeDotSize="M";X.isOverlay=!1;X.useOverlayDark=!1;X.topLevelIconsOnly=!1;X.JSC$14513_lastWidth=0;X.maybeUpdateFlexibleMenu=function(){_.A("web_fix_missing_action_buttons")?requestAnimationFrame(X.maybeUpdateFlexibleMenuImpl):X.maybeUpdateFlexibleMenuImpl()};
X.maybeUpdateFlexibleMenuImpl=function(){var t;if((t=X.data)!=null&&t.flexibleItems){X.maybeFlushDebouncer();t=X.hostElement.clientWidth;var G=t>X.JSC$14513_lastWidth,y,w=((y=X.topLevelButtonsContainer)==null?void 0:y.scrollHeight)||0,z;y=((z=X.flexibleItemButtonsContainer)==null?void 0:z.scrollHeight)||0;z=X.hostElement.scrollHeight>Math.max(w,y)+8;G?(X.resetFlexibleItems(),X.JSC$14513_lastWidth=X.hostElement.clientWidth,X.maybeUpdateFlexibleMenu()):z&&(X.shrinkFlexibleMenu(),X.JSC$14513_lastWidth=
t)}};
X.computeThreeDotButtonShape=function(){if(X.tonalOverride)return Object.assign({},{onTap:function(){X.onOverflowTap()},
iconPosition:"icon-only",style:X.isOverlay?X.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:X.threeDotSize,state:"active",accessibilityLabel:X.computeAccessibilityLabel(X.data)},X.threeDotButtonOverride)};
X.onOverflowTap=function(){if(X.data.fetchMenuCommand)_.gw().resolve(_.F3).resolveCommand(X.data.fetchMenuCommand,{form:{element:X.hostElement}});else if(X.data.isDisabled&&X.data.disabledCommand)_.cj(X.data.disabledCommand,X.hostElement);else{var t=X.createMenuRendererVe(),G={items:X.items};X.data.menuPopupAccessibility&&(G.menuPopupAccessibility=X.data.menuPopupAccessibility);X.data.footer&&(G.footer=X.data.footer);t={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:G},veData:t}};
_.gw().resolve(_.RJ).openSheet({openPopupActionCommand:t},X.hostElement)}};
return X};
_.S(ME,_.O);_.H=ME.prototype;_.H.updateButtonOverrides=function(){if(!_.A("menu_renderer_label_update_upkillswitch")){var X=_.Sm(this.hostElement).querySelector("yt-button-view-model");X&&(X.buttonOverrides=this.buttonOverrides)}};
_.H.computeHasItems=function(){var X;return((X=this.topLevelButtonData)==null?void 0:X.length)||this.hasFlexibleItems};
_.H.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.H.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Kd(this.hostElement,{"--ytd-menu-renderer-button-color":_.Gq(this.data.iconColor)}))};
_.H.onStamperFinished=function(){this.JSC$14513_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.H.setupFlexibleMenu=function(){var X=this,t;(t=this.data)!=null&&t.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.d2(this.maybeUpdateFlexibleMenu,aSe,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){X.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))};
_.H.maybeFlushDebouncer=function(){if(_.A("web_replace_formatted_with_attributed_string")){var X;(X=this.topLevelButtons)==null||X.forEach(function(G){var y;(G=(y=G.getElementsByTagName("yt-attributed-string"))==null?void 0:y[0])&&kb_(G)});
var t;(t=this.flexibleItemButtons)==null||t.forEach(function(G){var y;(G=(y=G.getElementsByTagName("yt-attributed-string"))==null?void 0:y[0])&&kb_(G)})}};
_.H.resetFlexibleItems=function(){var X;if((X=this.data)!=null&&X.flexibleItems){_.A("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var t;this.flexAsTopLevelButtons=(t=this.data.flexibleItems)==null?void 0:t.map(function(G){return _.Y(G,_.Zeq).topLevelButton});
_.A("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.H.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.H.shrinkFlexibleMenu=function(){var X;(X=this.flexAsTopLevelButtons)!=null&&X.length&&(this.flexAsTopLevelButtons=[].concat(_.RY(this.flexAsTopLevelButtons.slice(0,-1))))};
_.H.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:vRq,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:vRq,events:!0}}};
_.H.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.H.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.H.detached=function(){this.icon="MORE_VERT"};
_.H.computeTopLevelButtonData=function(X){if(!X)return[];var t;X=(t=X==null?void 0:X.topLevelButtons)!=null?t:[];return _.RH.unsafeClone([].concat(_.RY(X)))};
_.H.computeItems=function(X,t){if(!X)return[];var G=[];if(t){var y=(X.flexibleItems||[]).map(function(B){return _.Y(B,_.Zeq)});
y=_.J(y);for(var w=y.next();!w.done;w=y.next())w=w.value,t.includes(w.topLevelButton)||(w=w.menuItem)&&G.push(w)}var z;X=(z=X==null?void 0:X.items)!=null?z:[];return[].concat(_.RY(G),_.RY(X))};
_.H.computeMenuActive=function(X,t){return X||t};
_.H.onPopupOpened=function(){this.overlayOpen=!0;_.Yt(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.H.onPopupClosed=function(){this.overlayOpen=!1;_.Yt(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.H.onPopupCanceled=function(){this.overlayOpen=!1;_.Yt(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.H.computeAccessibilityLabel=function(X){return this.get("accessibility.accessibilityData.label",X)};
_.H.isHidden=function(X,t){return this.tonalOverride||!X?!0:X.fetchMenuCommand||X.isDisabled&&X.disabledCommand?!1:!(t==null?0:t.length)};
_.H.isModernOverflowHidden=function(X,t){return this.tonalOverride&&X?X.fetchMenuCommand?!1:!(t==null?0:t.length):!0};
_.H.createMenuRendererVe=function(){var X=this.data.trackingParams,t=_.lw(),G=_.a4();return X&&t&&G?(X=_.i$(X),G=_.ai(7591),_.A("combine_ve_grafts")?_.Cc(_.Pj(),G,X):_.w9(t,X,G),G):null};
_.ke.Object.defineProperties(ME.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.flexAsTopLevelButtons)==null||!X.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
ME.prototype.onPopupCanceled=ME.prototype.onPopupCanceled;ME.prototype.onPopupClosed=ME.prototype.onPopupClosed;ME.prototype.onPopupOpened=ME.prototype.onPopupOpened;ME.prototype.tonalOverrideChanged=ME.prototype.tonalOverrideChanged;ME.prototype.resetFlexibleItems=ME.prototype.resetFlexibleItems;ME.prototype.setupFlexibleMenu=ME.prototype.setupFlexibleMenu;ME.prototype.iconButtonColorChanged=ME.prototype.iconButtonColorChanged;ME.prototype.updateButtonOverrides=ME.prototype.updateButtonOverrides;
_.E([_.q(_.dQ),_.U("design:type",Object)],ME.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.E([_.rt("#button-shape"),_.U("design:type",HTMLElement)],ME.prototype,"buttonShape",void 0);_.E([_.rt("#button"),_.U("design:type",Object)],ME.prototype,"button",void 0);
_.E([_.K(),_.U("design:type",Object)],ME.prototype,"data",void 0);_.E([_.K({computed:"computeTopLevelButtonData(data)"}),_.U("design:type",Array)],ME.prototype,"topLevelButtonData",void 0);_.E([_.K(),_.U("design:type",Array)],ME.prototype,"flexAsTopLevelButtons",void 0);_.E([_.K({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.U("design:type",Array)],ME.prototype,"items",void 0);_.E([_.K({value:"MORE_VERT"}),_.U("design:type",String)],ME.prototype,"icon",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ME.prototype,"safeArea",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.U("design:type",Boolean)],ME.prototype,"menuActive",void 0);_.E([_.K(),_.U("design:type",Boolean)],ME.prototype,"menuFocused",void 0);_.E([_.K({value:"bottom"}),_.U("design:type",String)],ME.prototype,"buttonTooltipPosition",void 0);_.E([_.K(),_.U("design:type",Boolean)],ME.prototype,"overlayOpen",void 0);
_.E([_.K({value:!0}),_.U("design:type",Boolean)],ME.prototype,"forceIconButton",void 0);_.E([_.K(),_.U("design:type",Boolean)],ME.prototype,"styleActionButton",void 0);_.E([_.K(),_.U("design:type",Boolean)],ME.prototype,"disableTextTransformOnButtons",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ME.prototype,"tonalOverride",void 0);_.E([_.K(),_.U("design:type",Object)],ME.prototype,"threeDotSize",void 0);
_.E([_.K(),_.U("design:type",Object)],ME.prototype,"threeDotButtonOverride",void 0);_.E([_.K(),_.U("design:type",Object)],ME.prototype,"isOverlay",void 0);_.E([_.K(),_.U("design:type",Object)],ME.prototype,"useOverlayDark",void 0);_.E([_.K({computed:"computeButtonOverride(tonalOverride)"}),_.U("design:type",Object)],ME.prototype,"buttonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],ME.prototype,"hasCustomIconColor",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("flexAsTopLevelButtons"),_.U("design:type",Object),_.U("design:paramtypes",[])],ME.prototype,"hasFlexibleItems",null);_.E([_.K({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.U("design:type",Boolean)],ME.prototype,"hasItems",void 0);_.E([_.K(),_.U("design:type",Object)],ME.prototype,"topLevelIconsOnly",void 0);
_.E([_.cW("topLevelIconsOnly"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ME.prototype,"updateButtonOverrides",null);_.E([_.C("topLevelIconsOnly"),_.U("design:type",Object),_.U("design:paramtypes",[])],ME.prototype,"buttonOverrides",null);_.E([_.rt("#top-level-buttons-computed"),_.U("design:type",HTMLElement)],ME.prototype,"topLevelButtonsContainer",void 0);_.E([_.NS(".top-level-buttons > *"),_.U("design:type",Array)],ME.prototype,"topLevelButtons",void 0);
_.E([_.rt("#flexible-item-buttons"),_.U("design:type",HTMLElement)],ME.prototype,"flexibleItemButtonsContainer",void 0);_.E([_.NS("#flexible-item-buttons > *"),_.U("design:type",Array)],ME.prototype,"flexibleItemButtons",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ME.prototype,"iconButtonColorChanged",null);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ME.prototype,"setupFlexibleMenu",null);_.E([_.U0("topLevelIconsOnly"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ME.prototype,"resetFlexibleItems",null);_.E([_.cW("tonalOverride"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ME.prototype,"tonalOverrideChanged",null);
_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ME.prototype,"onPopupOpened",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ME.prototype,"onPopupClosed",null);_.E([_.WW("yt-popup-canceled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ME.prototype,"onPopupCanceled",null);
_.N(ME,"ytd-menu-renderer",function(){if(dXe===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);dXe=X}X=dXe;return X},{mode:_.Cz("kevlar_poly_si_batch_j030")?1:2});var lSq;var xXq;_.X9=_.Fp(function(X){var t=X.data;var G=function(){if(t().icon)a:{var y={iconName:t().icon};for(var w=_.gw().resolve(_.IL),z=_.J([12,24]),B=z.next();!B.done;B=z.next()){var V=B.value;B=Object.assign({},y,{iconStyle:"youtube_fill",iconSize:V});V=Object.assign({},y,{iconStyle:"youtube_outline",iconSize:V});if(w.resolveIcon(B)){y=B;break a}if(w.resolveIcon(V)){y=V;break a}}y=void 0}else y=void 0;return y};
X={};return _.k("badge-shape",{class:_.cl("badge-shape-wiz",function(){return jWE(t().type)},(X["badge-shape-wiz--overlay"]=function(){return t().isOverlay},X["badge-shape-wiz--ads-include-dot"]=function(){return t().adsIncludeDot},X["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(t().type){case 16:case 17:case 18:var y=!0;
break a;default:y=!1}return y},X["badge-shape-wiz--status-badge"]=function(){a:switch(t().type){case 11:case 12:case 13:case 14:case 15:var y=!0;
break a;default:y=!1}return y},X["badge-shape-wiz--no-text"]=function(){return!t().text},X["badge-shape-wiz--modern"]=function(){return t().modern||_.A("web_modern_badge_shape")},X)),
style:_.Ud({"background-color":function(){var y;return(y=t().customColors)==null?void 0:y.backgroundColor}}),
role:function(){return t().accessibilityText?"img":void 0},
"aria-label":function(){return t().accessibilityText}},_.k(_.d,{cond:function(){return t().animation},
then:function(y){return _.k(_.D8,{className:"badge-shape-wiz__icon",data:y,animationName:function(){return y().animationConfig.name||""}})}}),_.k(_.d,{cond:function(){var y;
return G()&&!((y=t())==null?0:y.animation)},
then:function(){return _.k("div",{class:"badge-shape-wiz__icon"},_.k(Ow6,{data:function(){return G()}}))}}),_.k("div",{class:"badge-shape-wiz__text"},function(){var y;
return(y=t())==null?void 0:y.text}))},"R");
_.X9.idomCompat=!0;_.DW(_.X9,"badge-shape",{props:{data:_.bR}});var $K=function(){var X=_.O.apply(this,arguments)||this;X.systemIcons=_.A("kevlar_system_icons");X.animated=_.A("animated_live_badge_icon");X.useBadgeShape=_.A("web_badge_shape_defrag");return X};
_.S($K,_.O);_.H=$K.prototype;_.H.addTooltips=function(){for(var X=_.Sm(this.hostElement).querySelectorAll(".badge"),t=0,G;G=X[t++];){var y=this.repeatElement.itemForElement(G);G=_.Sm(G);G.lastChild&&G.lastChild.is==="tp-yt-paper-tooltip"&&G.removeChild(G.lastChild);if(y=y.metadataBadgeRenderer&&y.metadataBadgeRenderer.tooltip){var w=_.FP("tp-yt-paper-tooltip");(0,_.Cd)(w).textContent=y;w.setAttribute("position","top");w.setAttribute("aria-hidden","true");G.appendChild(w)}}};
_.H.badgesChanged=function(){var X=this;_.wv().parkOrScheduleJob(function(){X.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.H.standaloneRoundedBadgeChanged=function(){var X=this.useRoundedBadge?this.useRoundedBadge:void 0;X&&(this.useRoundedBadge=X)};
_.H.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.H.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.H.computeStyle=function(X){_.A("enable_html5_teal_ad_badge")&&X==="BADGE_STYLE_TYPE_AD"&&(X="badge-style-type-ad-alternate");_.A("kevlar_ytb_live_badges")&&X==="BADGE_STYLE_TYPE_LIVE_NOW"&&(X="badge-style-type-live-now-alternate");return X?X.toLowerCase().replace(/_/g,"-"):""};
_.H.computeRole=function(X){return this.computeAriaLabel(X)?"img":"status"};
_.H.computeAriaLabel=function(X){var t;return(X==null?void 0:(t=X.accessibilityData)==null?void 0:t.label)||(X==null?void 0:X.label)};
_.H.computeBadgeShape=function(X){var t;if(X){var G,y=dnE(X.style),w=e36(X.style),z=X.label,B=((G=X.accessibilityData)==null?void 0:G.label)||X.label;X=(t=X.icon)==null?void 0:t.iconType;t={type:y,brNzRatingBadgeType:w,text:z,accessibilityText:B,icon:X!=="PREMIUM"?X:void 0}}else t={};return t};
_.H.updateComputedBadges=function(X,t,G){var y=this;(t=t?[t]:G?[G]:void 0)?this.computedBadges=t:this.computedBadges=X==null?void 0:X.filter(function(w){var z;if((z=w.metadataBadgeRenderer)==null?0:z.groups){z=!1;w=_.J(w.metadataBadgeRenderer.groups);for(var B=w.next();!B.done;B=w.next()){B=B.value;var V=void 0;z=z||((V=y.hiddenBadgeGroups)==null?void 0:V.includes(B))}return!z}return!0})};
_.H.useFilledIcons=function(X){return _.A("kevlar_system_icons")&&(X==="AUDIO_BADGE"||X==="CHECK_CIRCLE_THICK"||X==="OFFICIAL_ARTIST_BADGE"||X==="SPONSORSHIP_STAR"||X==="PERSON_RADAR_FILLED"||X==="PERSON_RADAR")};
_.H.computeBadgeShapeStyle=function(X){return this.useBadgeShape?X==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||X==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.H.computeIcon=function(X){var t,G;X=X==null?void 0:(t=X.metadataBadgeRenderer)==null?void 0:(G=t.icon)==null?void 0:G.iconType;if(X!=="PREMIUM"&&X)return _.Q2(X)};
_.H.computeStandaloneBadge=function(X){var t;X=X==null?void 0:(t=X.icon)==null?void 0:t.iconType;return X==="PREMIUM_STANDALONE"||X==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
$K.prototype.hiddenBadgeGroupsChanged=$K.prototype.hiddenBadgeGroupsChanged;$K.prototype.standaloneBadgeChanged=$K.prototype.standaloneBadgeChanged;$K.prototype.standaloneRoundedBadgeChanged=$K.prototype.standaloneRoundedBadgeChanged;$K.prototype.badgesChanged=$K.prototype.badgesChanged;_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"hidden",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],$K.prototype,"componentBehavior",void 0);
_.E([_.K(),_.U("design:type",Array)],$K.prototype,"badges",void 0);_.E([_.K(),_.U("design:type",Object)],$K.prototype,"topStandaloneBadge",void 0);_.E([_.K(),_.U("design:type",Object)],$K.prototype,"bottomStandaloneBadge",void 0);_.E([_.K(),_.U("design:type",Object)],$K.prototype,"computedBadges",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"mediumFontAdBadge",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"useRoundedBadge",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"largeFontAdBadge",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"overlayAd",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"overlayPremium",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"noDotAdBadge",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"collectionTruncate",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"isThumbnailBadge",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],$K.prototype,"wrapBadges",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],$K.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],$K.prototype,"animated",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],$K.prototype,"useBadgeShape",void 0);_.E([_.K({value:[]}),_.U("design:type",Array)],$K.prototype,"hiddenBadgeGroups",void 0);_.E([_.rt("#repeat"),_.U("design:type",x3)],$K.prototype,"repeatElement",void 0);_.E([_.U0("badges"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],$K.prototype,"badgesChanged",null);
_.E([_.U0("useRoundedBadge"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],$K.prototype,"standaloneRoundedBadgeChanged",null);_.E([_.U0("topStandaloneBadge","bottomStandaloneBadge"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],$K.prototype,"standaloneBadgeChanged",null);_.E([_.U0("hiddenBadgeGroups"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],$K.prototype,"hiddenBadgeGroupsChanged",null);
_.E([_.p({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],$K);
var fSP=_.qi()($K,"ytd-badge-supported-renderer",function(){if(xXq===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);xXq=X}X=xXq;return X},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Cz("kevlar_poly_si_batch_j053")?1:2});var tD=function(){var X=_.O.apply(this,arguments)||this;X.iconType="STAR";X.standardizeIconSize=_.A("kevlar_system_icons");X.mediaHoverOverlayInitialVisibility=_.A("enable_top_landscape_image_button_command_web");X.noBottomMargin=!1;X.thumbnailObjectFit="CONTAIN";X.thumbnailFitHeight=!0;X.actionMap={"yt-mute-ad-action":"handleMuteAd"};return X};
_.S(tD,_.O);_.H=tD.prototype;
_.H.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"}}}};
_.H.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",tD.JSC$14525_DEFAULT_CLICK_LOCATION_BEHAVIOR,tD.JSC$14525_CLICK_LOCATION_ID_MAP))};
_.H.onTap=function(X){if(!_.A("use_on_click_for_desktop_display_ad"))this.onTapOrClick(X)};
_.H.onClick=function(X){if(_.A("use_on_click_for_desktop_display_ad"))this.onTapOrClick(X)};
_.H.onTapOrClick=function(X){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,X,!1)};
_.H.updateMediaBackgroundImage=function(){var X=this.get("data.image.thumbnail.thumbnails");X&&(X=_.S_(X,0))&&_.Kd(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+X+")"})};
_.H.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var X=0;X<this.data.impressionEndpoints.length;X++){var t=this.data.impressionEndpoints[X];t.clickTrackingParams&&delete t.clickTrackingParams;_.gw().resolve(_.F3).resolveCommand(t,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var G;((G=this.data)==null?0:G.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.H.handleMuteAd=function(){};
_.H.attached=function(){var X=this;_.A("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&X.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.H.detached=function(){_.A("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ke.Object.defineProperties(tD.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.titleText)return"";var t;return _.Qf("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((t=this.data)==null?void 0:t.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.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 X;return!((X=this.data)==null||!X.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"}}});
tD.prototype.onClick=tD.prototype.onClick;tD.prototype.onTap=tD.prototype.onTap;tD.prototype.dataChanged=tD.prototype.dataChanged;
tD.JSC$14525_CLICK_LOCATION_ID_MAP=_.A("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"]]);
tD.JSC$14525_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.A("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"}];_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],tD.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.tV),_.U("design:type",Object)],tD.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],tD.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],tD.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.q(fr),_.U("design:type",Object)],tD.prototype,"ytdActiveViewBehavior",void 0);_.E([_.q([_.sb.YtActionHandlerBehavior]),_.U("design:type",Object)],tD.prototype,"actionHandlerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],tD.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],tD.prototype,"clickCommand",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],tD.prototype,"miniMode",void 0);_.E([_.K(),_.U("design:type",String)],tD.prototype,"iconType",void 0);_.E([_.C("data.titleText"),_.U("design:type",String),_.U("design:paramtypes",[])],tD.prototype,"titleAriaLabel",null);
_.E([_.C("data.rating"),_.U("design:type",Object),_.U("design:paramtypes",[])],tD.prototype,"getRating",null);_.E([_.C("data.price"),_.U("design:type",Object),_.U("design:paramtypes",[])],tD.prototype,"getPrice",null);_.E([_.C("data.thirdLine"),_.U("design:type",Object),_.U("design:paramtypes",[])],tD.prototype,"getThirdLine",null);_.E([_.C("data.fourthLine"),_.U("design:type",Object),_.U("design:paramtypes",[])],tD.prototype,"getFourthLine",null);
_.E([_.C("data.fifthLine"),_.U("design:type",Object),_.U("design:paramtypes",[])],tD.prototype,"getFifthLine",null);_.E([_.C("getRating"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tD.prototype,"computeRatingHidden",null);_.E([_.C("getPrice"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tD.prototype,"computePriceHidden",null);_.E([_.C("getThirdLine"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tD.prototype,"computeThirdLineHidden",null);
_.E([_.C("getFourthLine"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tD.prototype,"computeFourthLineHidden",null);_.E([_.C("getFifthLine"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tD.prototype,"computeFifthLineHidden",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.energyIcon"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tD.prototype,"hasEnergyIcon",null);
_.E([_.C("computePriceHidden","computeRatingHidden"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tD.prototype,"computeSecondaryTextHidden",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],tD.prototype,"standardizeIconSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],tD.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],tD.prototype,"noBottomMargin",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data.layout"),_.U("design:type",String),_.U("design:paramtypes",[])],tD.prototype,"layout",null);_.E([_.C("data.layout"),_.U("design:type",Object),_.U("design:paramtypes",[])],tD.prototype,"mediaThumbnailWidth",null);_.E([_.C("layout"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tD.prototype,"useRoundedBadge",null);_.E([_.K(),_.U("design:type",String)],tD.prototype,"thumbnailObjectFit",void 0);
_.E([_.K(),_.U("design:type",Object)],tD.prototype,"thumbnailFitHeight",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],tD.prototype,"dataChanged",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],tD.prototype,"onTap",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],tD.prototype,"onClick",null);
_.E([_.p({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],tD);
_.N(tD,"ytd-display-ad-renderer",function(){if(lSq!==void 0)return lSq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return lSq=X},{mode:1});var MZP;var XRt;var $nB;var gLY=new Map;var tWq=!1;var GP=function(){var X=_.O.apply(this,arguments)||this;X.DEFAULT_TOOLTIP_OFFSET="10";X.TOOLTIP_OFFSET_NO_BANNER="-8";X.badges=null;X.noEndpoints=!1;X.wrapText=!1;X.forceVerified=!1;X.tooltipPosition="top";X.compactStyle=!1;X.height=0;X.lineHeight=0;return X};
_.S(GP,_.O);_.H=GP.prototype;_.H.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.H.attached=function(){var X=this;this.observer=new MutationObserver(function(t,G){X.handleResized();G.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.H.detached=function(){this.observer&&this.observer.disconnect()};
_.H.logTooltipEvent=function(){_.A("kevlar_wiz_tooltip_event_killswitch")||tWq||(_.Fj0("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),tWq=!0)};
_.H.handleWindowResized=function(){this.handleResized()};
_.H.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")))};
_.H.onHeightChanged=function(){if(this.verified){var X=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Md("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=X:this.textContainerEl.style.marginRight=X}};
_.H.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Md("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.H.handleResized=function(){var X=this;this.verified&&_.vz.addLowPriorityJob(function(){X.fitBackgroundToText();var t=getComputedStyle(X.hostElement).lineHeight;t&&(t=t.match(/\d+/))&&t.length&&(X.lineHeight=Number(t[0]));X.height=X.lineHeight&&!X.wrapText?X.lineHeight:X.textEl.offsetHeight})};
_.H.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var X=document.createRange(),t=_.Sm(this.textEl).children;t.length>0?X.selectNodeContents(t[0]):X.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(X.getBoundingClientRect().width)+"px"}};
_.H.computeChannelBadgeStyle=function(X){var t;if((X==null?0:(t=X.runs)==null?0:t.length)&&X.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Gq(X.runs[0].textColor)+";"};
_.ke.Object.defineProperties(GP.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"?_.Vl(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var X=this.get("badges.0.metadataBadgeRenderer.tooltip");if(X)return X}return _.bu(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
GP.prototype.onLineHeightChanged=GP.prototype.onLineHeightChanged;GP.prototype.onHeightChanged=GP.prototype.onHeightChanged;GP.prototype.onChannelNameChanged=GP.prototype.onChannelNameChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],GP.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],GP.prototype,"badges",void 0);_.E([_.K(),_.U("design:type",Object)],GP.prototype,"channelName",void 0);
_.E([_.K(),_.U("design:type",Object)],GP.prototype,"noEndpoints",void 0);_.E([_.K(),_.U("design:type",Object)],GP.prototype,"wrapText",void 0);_.E([_.K(),_.U("design:type",Object)],GP.prototype,"forceVerified",void 0);_.E([_.K(),_.U("design:type",Object)],GP.prototype,"tooltipPosition",void 0);_.E([_.K(),_.U("design:type",String)],GP.prototype,"tooltip",void 0);_.E([_.K(),_.U("design:type",Boolean)],GP.prototype,"hasChannelArt",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],GP.prototype,"compactStyle",void 0);_.E([_.rt("#text-container"),_.U("design:type",HTMLElement)],GP.prototype,"textContainerEl",void 0);_.E([_.rt("#text"),_.U("design:type",Object)],GP.prototype,"textEl",void 0);_.E([_.rt("#verified-tooltip"),_.U("design:type",HTMLElement)],GP.prototype,"verifiedTooltip",void 0);_.E([_.K(),_.U("design:type",Object)],GP.prototype,"height",void 0);
_.E([_.K(),_.U("design:type",Object)],GP.prototype,"lineHeight",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("badges","forceVerified"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],GP.prototype,"verified",null);_.E([_.C("badges","verified"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],GP.prototype,"hideBadges",null);_.E([_.C("channelName"),_.U("design:type",Object),_.U("design:paramtypes",[])],GP.prototype,"formattedName",null);
_.E([_.C("badges","verified","formattedName"),_.U("design:type",String),_.U("design:paramtypes",[])],GP.prototype,"tooltipText",null);_.E([_.C("hasChannelArt"),_.U("design:type",String),_.U("design:paramtypes",[])],GP.prototype,"tooltipOffset",null);_.E([_.cW("channelName"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GP.prototype,"onChannelNameChanged",null);
_.E([_.cW("height"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GP.prototype,"onHeightChanged",null);_.E([_.cW("lineHeight","height"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GP.prototype,"onLineHeightChanged",null);_.E([_.p({is:"ytd-channel-name",disableElementRegistration:!0})],GP);
_.N(GP,"ytd-channel-name",function(){if($nB!==void 0)return $nB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return $nB=X},{mode:_.Cz("kevlar_poly_si_batch_j036")?1:2});var wK=function(){var X=_.O.apply(this,arguments)||this;X.standardizeIconSize=_.A("kevlar_system_icons");return X};
_.S(wK,_.O);wK.prototype.basicPaletteChanged=function(){var X;(X=this.data.color)!=null&&X.basicColorPaletteData&&_.fX(this.hostElement,this.data.color.basicColorPaletteData)};
wK.prototype.useFilledIcons=function(X){return _.A("kevlar_system_icons")&&(X==="CHECK_CIRCLE_THICK"||X==="OFFICIAL_ARTIST_BADGE")};
_.ke.Object.defineProperties(wK.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return this.data.authorCreator||((X=this.data)==null?void 0:(t=X.color)==null?void 0:(G=t.basicColorPaletteData)==null?void 0:G.backgroundColor)}}});
wK.prototype.basicPaletteChanged=wK.prototype.basicPaletteChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],wK.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],wK.prototype,"standardizeIconSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.authorUnifiedVerified"),_.U("design:type",Object),_.U("design:paramtypes",[])],wK.prototype,"verified",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],wK.prototype,"creator",null);_.E([_.cW("data.color.basicColorPaletteData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wK.prototype,"basicPaletteChanged",null);_.E([_.p({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],wK);
_.N(wK,"ytd-author-comment-badge-renderer",function(){if(XRt!==void 0)return XRt;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return XRt=X},{mode:1});var G3q;var zP=function(){return _.O.apply(this,arguments)||this};
_.S(zP,_.O);zP.prototype.computeThumbnailWidth=function(X){if(X==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],zP.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.U("design:type",String)],zP.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],zP.prototype,"surface",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.A("enable_shrink_image_size_on_web_posts_singleton")}),_.U("design:type",Boolean)],zP.prototype,"searchSxsUx",void 0);_.E([_.p({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],zP);
_.N(zP,"ytd-backstage-image-renderer",function(){if(G3q!==void 0)return G3q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return G3q=X},{mode:1});var yuq;var H7=function(){var X=_.O.apply(this,arguments)||this;X.isLoading=!1;X.selectedItemIndex=-1;return X};
_.S(H7,_.O);_.H=H7.prototype;_.H.computeIsChannelOwner=function(X){if(!X)return!0;X=X[0];return!(X&&(X.signinEndpoint||X.selectServiceEndpoint))};
_.H.computeIsImagePoll=function(X){return(X==null?void 0:X.type)==="POLL_TYPE_IMAGE"};
_.H.computeIsTotalVotesDisabled=function(X){return!(X==null?0:X.totalVotes)};
_.H.thumbnailSrc=function(X){var t,G,y,w;return(X==null?0:(t=X.thumbnails)==null?0:(G=t[0])==null?0:G.url)?_.l_((y=X.thumbnails)==null?void 0:(w=y[0])==null?void 0:w.url):void 0};
_.H.progressWidth=function(X){return"width:"+(X?X*100:0)+"%;"};
_.H.textAreaWidth=function(X){return this.isImagePoll?null:"width:"+(X?X*100:0)+"%;"};
_.H.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.H.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var X=this.data.choices,t=0;t<X.length;t++)if(X[t].selected){this.selectedItemIndex=t;break}};
_.H.onPopupClosed=function(X,t){X=Number(this.pollVotes.selected);t.confirmed&&(this.selectChoice(X,!1),_.sl(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.H.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.H.onYtCommentPollRevert=function(X,t){t&&(this.selectChoice(t.selectedChoiceIndex,!0),this.set("data.totalVotes",t.totalVotes))};
_.H.onYtServiceRequestSent=function(X,t){if(t.actions)for(X=0;X<t.actions.length;X++){var G=t.actions[X];_.Y(G,RM)&&this.set("data.totalVotes",_.Y(G,RM).totalVotes)}};
_.H.onYtServiceRequestCompleted=function(X){var t=this.get("detail.data.actionResults.0.feedback",X);X=this.get("detail.data.actionResults.0.status",X);if(t==="FEEDBACK_DESELECT"||t==="FEEDBACK_SELECT")this.isLoading=!1,X==="STATUS_FAILED"?_.Yt(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.H.getEndpoint=function(X,t){return t===X?this.data.choices[t].deselectServiceEndpoint||null:this.data.choices[X].selectServiceEndpoint||null};
_.H.selectChoice=function(X,t){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var G=0;G<this.data.choices.length;G++){var y;if(X===this.selectedItemIndex){var w=!1;var z=y=null}else y=(w=G===X)?this.data.choices[G].voteRatioIfSelected:this.data.choices[G].voteRatioIfNotSelected,z=w?this.data.choices[G].votePercentageIfSelected:this.data.choices[G].votePercentageIfNotSelected;this.set("data.choices."+G+".voteRatio",y);
this.set("data.choices."+G+".votePercentage",z);this.set("data.choices."+G+".selected",w)}t||(this.isLoading=!0,(t=this.getEndpoint(X,this.selectedItemIndex))&&_.gw().resolve(_.F3).resolveCommand(t,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===X?-1:X};
_.ke.Object.defineProperties(H7.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
H7.prototype.onYtServiceRequestCompleted=H7.prototype.onYtServiceRequestCompleted;H7.prototype.onYtServiceRequestSent=H7.prototype.onYtServiceRequestSent;H7.prototype.onYtCommentPollRevert=H7.prototype.onYtCommentPollRevert;H7.prototype.onPopupClosed=H7.prototype.onPopupClosed;H7.prototype.dataChanged=H7.prototype.dataChanged;_.E([_.q(_.bY),_.U("design:type",Object)],H7.prototype,"paperItemBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],H7.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],H7.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],H7.prototype,"isLoading",void 0);_.E([_.K({computed:"computeIsChannelOwner(data.choices)"}),_.U("design:type",Boolean)],H7.prototype,"isChannelOwner",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.U("design:type",Boolean)],H7.prototype,"isImagePoll",void 0);_.E([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.U("design:type",Boolean)],H7.prototype,"isTotalVotesDisabled",void 0);_.E([_.K(),_.U("design:type",Object)],H7.prototype,"previousPollInfo",void 0);_.E([_.K(),_.U("design:type",Object)],H7.prototype,"selectedItemIndex",void 0);_.E([_.rt("#poll-votes"),_.U("design:type",Object)],H7.prototype,"pollVotes",void 0);
_.E([_.C("isChannelOwner"),_.U("design:type",Object),_.U("design:paramtypes",[])],H7.prototype,"endpointStyle",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],H7.prototype,"dataChanged",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],H7.prototype,"onPopupClosed",null);
_.E([_.WW("yt-comment-poll-revert"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],H7.prototype,"onYtCommentPollRevert",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],H7.prototype,"onYtServiceRequestSent",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],H7.prototype,"onYtServiceRequestCompleted",null);_.E([_.p({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],H7);
_.N(H7,"ytd-backstage-poll-renderer",function(){if(yuq!==void 0)return yuq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return yuq=X},{mode:2});var wRe;var z34={autoplay:!1,loop:!1},Hno={simpleText:""},ol=function(){var X=_.O.apply(this,arguments)||this;X.isLoading=!1;X.usesPanelLockup=!1;X.selectedItemIndex=-1;X.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},z34,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});X.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},z34,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});X.correctnessAnimationProps=[];X.correctnessAnimationRefs=[];return X};
_.S(ol,_.O);_.H=ol.prototype;_.H.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.H.computeIsChannelOwner=function(X){if(!X)return!0;X=X[0];return!(X&&(X.signinEndpoint||X.selectServiceEndpoint))};
_.H.computeIsTotalVotesDisabled=function(X){return!(X==null?0:X.totalVotes)};
_.H.computeIsImageQuiz=function(X){return(X==null?void 0:X.type)==="POLL_TYPE_IMAGE"};
_.H.onExplanationChanged=function(){this.expander.reset()};
_.H.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var X=this.data.choices;if(X){this.maybeInitializeQuizLotties(X);for(var t=0;t<X.length;t++)if(X[t].isSelected||this.isChannelOwner&&X[t].isCorrect){this.selectedItemIndex=t;return}this.selectedItemIndex=-1}}};
_.H.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var X=this.selectedItemIndex,t=Number(this.quizVotes.selected);this.selectChoice(t);this.sendVoteAction(t,X);this.quizVotes.selected=-1;var G;X=!((G=this.data)==null?0:G.enableAnimation);this.maybePlayAnswerAnimations(X)}};
_.H.onYtCommentPollRevert=function(X,t){t&&(this.selectChoice(t.selectedChoiceIndex),this.set("data.totalVotes",t.totalVotes))};
_.H.onYtServiceRequestSent=function(X,t){if(t.actions)for(X=_.J(t.actions),t=X.next();!t.done;t=X.next())(t=_.Y(t.value,RM))&&this.set("data.totalVotes",t.totalVotes)};
_.H.onYtServiceRequestCompleted=function(X){var t=this.get("detail.data.actionResults.0.feedback",X);X=this.get("detail.data.actionResults.0.status",X);if(t==="FEEDBACK_DESELECT"||t==="FEEDBACK_SELECT")this.isLoading=!1,X==="STATUS_FAILED"?_.Yt(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.H.getAnimationPropsForChoiceIndex=function(X,t){return t[X]};
_.H.maybePlayAnswerAnimations=function(X){X=X===void 0?!1:X;var t;if((t=this.data)!=null&&t.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){t=_.J(this.correctnessAnimationRefs);for(var G=t.next();!G.done;G=t.next()){var y=void 0,w=void 0;(y=G.value)==null||(w=y.lottieEl)==null||w.stop()}if(!(this.selectedItemIndex<0)){t=0;X&&(t=this.isCorrect?37:25);var z,B;(z=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(B=z.lottieEl)==null||B.goToAndPlay(X?t:0,!0);if(!(this.isCorrect||
(z=this.data.choices.findIndex(function(g){return g.isCorrect}),z<0))){var V,b;
(b=(V=this.correctnessAnimationRefs[z])==null?void 0:V.lottieEl)==null||b.goToAndPlay(37,!0);var e;V=(e=this.fadeContainers)==null?void 0:e.item(z);!X&&V&&this.fadeIn(V)}}}};
_.H.thumbnailSrc=function(X){var t,G,y,w;return(X==null?0:(t=X.thumbnails)==null?0:(G=t[0])==null?0:G.url)?_.l_((y=X.thumbnails)==null?void 0:(w=y[0])==null?void 0:w.url):void 0};
_.H.a11yVotedText=function(X,t){var G,y,w=((G=this.data)==null?void 0:(y=G.correctVotedText)==null?void 0:y.simpleText)||"",z,B;G=((z=this.data)==null?void 0:(B=z.votedText)==null?void 0:B.simpleText)||"";if(!t)return"";var V,b;if((V=this.data)==null?0:(b=V.choices)==null?0:b[X].isCorrect)return w;var e,g;return((e=this.data)==null?0:(g=e.choices)==null?0:g[X].isSelected)?G:""};
_.H.getEndpoint=function(X,t){return t===X?this.data.choices[X].deselectServiceEndpoint||null:this.data.choices[X].selectServiceEndpoint||null};
_.H.sendVoteAction=function(X,t){if(X=this.getEndpoint(X,t))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(X)};
_.H.selectChoice=function(X){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var t=0;t<this.data.choices.length;t++)this.set("data.choices."+t+".isSelected",X===this.selectedItemIndex?!1:t===X);this.selectedItemIndex=this.selectedItemIndex===X?-1:X};
_.H.maybeInitializeQuizLotties=function(X){var t=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=X.map(function(G){return{animationConfig:G.isCorrect?t.baseCorrectLottiePlayerAnimationConfig:t.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){t.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(G){return G.animationRef||{}})};
_.H.fadeIn=function(X){X.classList.add("fade-in");_.CX(_.vz,function(){X.classList.remove("fade-in")},900)};
_.ke.Object.defineProperties(ol.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.A("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.bu(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 X,t;return((X=this.data)==null?void 0:(t=X.choices)==null?void 0:t.some(function(G){return G.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null||!X.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?Hno:this.data.choices[this.selectedItemIndex].explanation||Hno}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null||!X.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
ol.prototype.onYtServiceRequestCompleted=ol.prototype.onYtServiceRequestCompleted;ol.prototype.onYtServiceRequestSent=ol.prototype.onYtServiceRequestSent;ol.prototype.onYtCommentPollRevert=ol.prototype.onYtCommentPollRevert;ol.prototype.dataChanged=ol.prototype.dataChanged;ol.prototype.onExplanationChanged=ol.prototype.onExplanationChanged;_.E([_.q(_.bY),_.U("design:type",Object)],ol.prototype,"paperItemBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ol.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.gG.YtTaskEmitterBehavior),_.U("design:type",Object)],ol.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],ol.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ol.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],ol.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",Object)],ol.prototype,"usesPanelLockup",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.U("design:type",Boolean)],ol.prototype,"isChannelOwner",void 0);_.E([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.U("design:type",Boolean)],ol.prototype,"isTotalVotesDisabled",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.U("design:type",Boolean)],ol.prototype,"isImageQuiz",void 0);_.E([_.K(),_.U("design:type",Object)],ol.prototype,"previousQuizInfo",void 0);_.E([_.K(),_.U("design:type",Object)],ol.prototype,"selectedItemIndex",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data","usesPanelLockup"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ol.prototype,"shouldUseModernUi",null);
_.E([_.NS(".fade-container"),_.U("design:type",Object)],ol.prototype,"fadeContainers",void 0);_.E([_.K(),_.U("design:type",Array)],ol.prototype,"correctnessAnimationProps",void 0);_.E([_.C("explanation","showCorrectAnswer"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ol.prototype,"showExplanation",null);_.E([_.C("isChannelOwner","isAttempted"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ol.prototype,"showCorrectAnswer",null);
_.E([_.C("isChannelOwner","isAttempted","data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ol.prototype,"isQuizAnsweringDisabled",null);_.E([_.C("isQuizAnsweringDisabled"),_.U("design:type",Object),_.U("design:paramtypes",[])],ol.prototype,"endpointStyle",null);_.E([_.C("data","selectedItemIndex"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ol.prototype,"isAttempted",null);
_.E([_.C("data","selectedItemIndex"),_.U("design:type",Object),_.U("design:paramtypes",[])],ol.prototype,"explanation",null);_.E([_.C("data","selectedItemIndex"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ol.prototype,"isCorrect",null);_.E([_.rt("ytd-expander"),_.U("design:type",Object)],ol.prototype,"expander",void 0);_.E([_.rt("#quiz-votes"),_.U("design:type",Object)],ol.prototype,"quizVotes",void 0);
_.E([_.cW("explanation"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ol.prototype,"onExplanationChanged",null);_.E([_.cW("data","isChannelOwner"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ol.prototype,"dataChanged",null);_.E([_.WW("yt-comment-quiz-revert"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],ol.prototype,"onYtCommentPollRevert",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],ol.prototype,"onYtServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],ol.prototype,"onYtServiceRequestCompleted",null);_.E([_.p({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],ol);
_.N(ol,"ytd-backstage-quiz-renderer",function(){if(wRe!==void 0)return wRe;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return wRe=X},{mode:1});var oLq;var JD=function(){return _.O.apply(this,arguments)||this};
_.S(JD,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],JD.prototype,"data",void 0);_.E([_.p({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],JD);
_.N(JD,"ytd-post-uploaded-video-renderer",function(){if(oLq!==void 0)return oLq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return oLq=X},{mode:1});var JuJ;var B7=function(){return _.O.apply(this,arguments)||this};
_.S(B7,_.O);B7.prototype.useFilledIcons=function(X){return X==="SPONSORSHIP_STAR"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],B7.prototype,"data",void 0);_.E([_.p({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],B7);
var BmR=_.qi()(B7,"ytd-sponsors-only-badge-renderer",function(){if(JuJ===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);JuJ=X}X=JuJ;return X},{allowedProps:["data"],
mode:1});var nLq;var nZ=function(){return _.O.apply(this,arguments)||this};
_.S(nZ,_.O);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],nZ.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],nZ.prototype,"data",void 0);_.E([_.p({is:"ytd-child-video-renderer",disableElementRegistration:!0})],nZ);
_.N(nZ,"ytd-child-video-renderer",function(){if(nLq!==void 0)return nLq;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return nLq=X},{mode:1});var VWJ;var bnh;var Vt=function(){var X=_.O.apply(this,arguments)||this;X.size=0;X.enableWebModernCollectionsV2=_.A("web_modern_collections_v2");X.fallbackImageSize={height:void 0,width:9999};X.webModernCollections=!1;return X};
_.S(Vt,_.O);_.H=Vt.prototype;_.H.computeBlurredImageSize=function(X){return X?{height:X*2,width:X*2}:this.fallbackImageSize};
_.H.computeImageSize=function(X){return X?{height:X,width:X}:this.fallbackImageSize};
_.H.computeObjectFit=function(X){return X?"FILL":"CONTAIN"};
_.H.computePreserve=function(X){return X?!0:!1};
_.H.setBackground=function(){var X,t;_.A("web_modern_collections_v2")&&((X=this.data)==null?0:(t=X.thumbnail)==null?0:t.sampledThumbnailColor)&&(X=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+X.red+","+X.green+","+X.blue+",1)")};
Vt.prototype.setBackground=Vt.prototype.setBackground;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Vt.prototype,"watchFeedThumbnail",void 0);_.E([_.K(),_.U("design:type",Object)],Vt.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Vt.prototype,"size",void 0);
_.E([_.K({computed:"computeBlurredImageSize(size)"}),_.U("design:type",Object)],Vt.prototype,"blurredImageSize",void 0);_.E([_.K({computed:"computeImageSize(size)"}),_.U("design:type",Object)],Vt.prototype,"imageSize",void 0);_.E([_.K({computed:"computePreserve(size)"}),_.U("design:type",String)],Vt.prototype,"preserve",void 0);_.E([_.K({computed:"computeObjectFit(size)"}),_.U("design:type",String)],Vt.prototype,"objectFit",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Vt.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Vt.prototype,"webModernCollections",void 0);_.E([_.cW("data.thumbnail.sampledThumbnailColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Vt.prototype,"setBackground",null);_.E([_.p({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Vt);
_.N(Vt,"ytd-playlist-custom-thumbnail-renderer",function(){if(bnh!==void 0)return bnh;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return bnh=X},{mode:1});var k3o;var bD=function(){return _.O.apply(this,arguments)||this};
_.S(bD,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bD.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],bD.prototype,"width",void 0);_.E([_.p({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],bD);
_.N(bD,"ytd-playlist-video-thumbnail-renderer",function(){if(k3o!==void 0)return k3o;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return k3o=X},{mode:1});var dnt;var kK=function(){return _.O.apply(this,arguments)||this};
_.S(kK,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],kK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],kK.prototype,"width",void 0);_.E([_.p({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],kK);
_.N(kK,"ytd-show-custom-thumbnail-renderer",function(){if(dnt!==void 0)return dnt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return dnt=X},{mode:1});var e3o;var dK=function(){return _.O.apply(this,arguments)||this};
_.S(dK,_.O);dK.prototype.useFilledIcons=function(X){return X==="MUSIC"||X==="COURSE"};
dK.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=wt(this.overlayColor,"0.8");else if(this.overlayColor){var X=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+X.red+","+X.green+","+X.blue+",0.8)"}};
_.ke.Object.defineProperties(dK.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)}}});
dK.prototype.overlayColorChanged=dK.prototype.overlayColorChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],dK.prototype,"overlayColor",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.icon","data.text"),_.U("design:type",Object),_.U("design:paramtypes",[])],dK.prototype,"overlayStyle",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data.icon","data.text"),_.U("design:type",Object),_.U("design:paramtypes",[])],dK.prototype,"overlayTextStyle",null);_.E([_.cW("overlayColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dK.prototype,"overlayColorChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],dK);
_.N(dK,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(e3o!==void 0)return e3o;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return e3o=X},{mode:1});var jWt;var e9=function(){var X=_.O.apply(this,arguments)||this;X.active=!1;return X};
_.S(e9,_.O);e9.prototype.computeIsSpinnerHidden=function(X){return(X==null?void 0:X.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
e9.prototype.computeOverlayIcon=function(X){return(X==null?void 0:X.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(X==null?void 0:X.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],e9.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],e9.prototype,"active",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],e9);
_.N(e9,"ytd-thumbnail-overlay-downloading-renderer",function(){if(jWt!==void 0)return jWt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return jWt=X},{mode:1});var gLS;var j9=function(){return _.O.apply(this,arguments)||this};
_.S(j9,_.O);_.ke.Object.defineProperties(j9.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],j9.prototype,"data",void 0);_.E([_.C("data.text"),_.U("design:type",Object),_.U("design:paramtypes",[])],j9.prototype,"text",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],j9);
_.N(j9,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(gLS!==void 0)return gLS;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return gLS=X},{mode:1});var FjR,Tmo=function(){if(FjR!==void 0)return FjR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return FjR=X};var gK=function(){return _.O.apply(this,arguments)||this};
_.S(gK,_.O);_.ke.Object.defineProperties(gK,{template:{configurable:!0,enumerable:!0,get:function(){return Tmo()}}});
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],gK.prototype,"animateEqualizer",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],gK);_.qi()(gK,"ytd-thumbnail-overlay-equalizer",function(){return Tmo()},{allowedProps:["animateEqualizer"],
mode:1});var Aut;var F9=function(){var X=_.O.apply(this,arguments)||this;X.nowPlayingBadge=_.A("web_now_playing_badge");X.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return X};
_.S(F9,_.O);F9.prototype.activeChanged=function(){var X=this;_.A("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.V8(this,function(){_.Yt(X.hostElement,"yt-playlist-lockup-now-playing-active",X)})};
F9.prototype.onMiniplayerPlayStateChanged=function(X){var t,G=(t=_.Y(_.cF().currentEndpoint,_.nq))==null?void 0:t.videoId;this.isVideoPlaying=X&&(_.A("web_limit_now_playing_animation_killswitch")||this.videoId===G)};
F9.prototype.activeChanged=F9.prototype.activeChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],F9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],F9.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],F9.prototype,"isVideoPlaying",void 0);_.E([_.K(),_.U("design:type",String)],F9.prototype,"videoId",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],F9.prototype,"equalizerOnly",void 0);_.E([_.K(),_.U("design:type",Boolean)],F9.prototype,"isActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],F9.prototype,"nowPlayingBadge",void 0);_.E([_.cW("isActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],F9.prototype,"activeChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],F9);
_.N(F9,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Aut!==void 0)return Aut;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Aut=X},{mode:1});var YOJ;var TP=function(){return _.O.apply(this,arguments)||this};
_.S(TP,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],TP.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],TP);
_.N(TP,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(YOJ!==void 0)return YOJ;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return YOJ=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var sWB;var AD=function(){return _.O.apply(this,arguments)||this};
_.S(AD,_.O);AD.prototype.onDurationChanged=function(){var X,t;_.Sm(this.hostElement).querySelector("#progress").style.width=((t=(X=this.data)==null?void 0:X.percentDurationWatched)!=null?t:0)+"%"};
AD.prototype.onDurationChanged=AD.prototype.onDurationChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],AD.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],AD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],AD.prototype,"isLive",void 0);_.E([_.cW("data.percentDurationWatched"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],AD.prototype,"onDurationChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],AD);
_.N(AD,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(sWB!==void 0)return sWB;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return sWB=X},{mode:1});var Dne;var YK=function(){var X=_.O.apply(this,arguments)||this;X.bottomPanel=!1;X.richGridOverlay=!1;X.watchFeedOverlay=!1;X.isCompact=!1;return X};
_.S(YK,_.O);YK.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.ke.Object.defineProperties(YK.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:(t=X.icon)==null?void 0:t.iconType)==="PLAY_ALL"&&_.A("kevlar_system_icons")}}});
YK.prototype.widthChanged=YK.prototype.widthChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],YK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],YK.prototype,"width",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],YK.prototype,"bottomPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],YK.prototype,"richGridOverlay",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],YK.prototype,"watchFeedOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],YK.prototype,"isCompact",void 0);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],YK.prototype,"isIconFilled",null);_.E([_.cW("width","watchFeedOverlay"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],YK.prototype,"widthChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],YK);
_.N(YK,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Dne!==void 0)return Dne;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Dne=X},{mode:1});var SOh;var h3R=["CLIP","SHORTS"],sK=function(){var X=_.O.apply(this,arguments)||this;X.animated=_.A("animated_live_badge_icon");X.hasIcon=!1;X.updateTimerIntervalId=0;X.timeSinceLive=0;return X};
_.S(sK,_.O);_.H=sK.prototype;_.H.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.H.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.H.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.H.hasIconOrText=function(){var X,t;return!!(((X=this.data)==null?0:X.icon)||((t=this.data)==null?0:t.text))};
_.H.initializeLiveBadgeTimer=function(){var X=this,t,G=(t=this.liveBadgeData)==null?void 0:t.startTimestampSec;if(G&&this.canShowLiveBadgeTimer()){var y;t=Number((y=this.liveBadgeData)==null?void 0:y.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(G);this.updateTimerIntervalId=_.ht(function(){X.canShowLiveBadgeTimer()?X.timeSinceLive++:(X.timeSinceLive=0,window.clearInterval(X.updateTimerIntervalId))},t)}else this.timeSinceLive=0};
_.H.canShowLiveBadgeTimer=function(){var X=Date.now(),t,G;return X<(Number((t=this.liveBadgeData)==null?void 0:t.endTimestampSec)-1)*1E3&&X>Number((G=this.liveBadgeData)==null?void 0:G.startTimestampSec)*1E3};
_.ke.Object.defineProperties(sK.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X=this.data;var t=this.timeSinceLive;var G,y,w,z;a:{var B=X.style;if(B===void 0)B=16;else switch(B){case "LIVE":B=17;break a;default:B=16}}t={type:B,text:t?aBE({seconds:t}):_.bu(X.text),accessibilityText:(G=X.text)==null?void 0:(y=G.accessibility)==null?void 0:(w=y.accessibilityData)==null?void 0:w.label,icon:(z=X.icon)==null?void 0:z.iconType}}else t={};return t}},
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 X;return(X=this.data)==null?void 0:X.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 h3R.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
sK.prototype.initializeLiveBadgeTimer=sK.prototype.initializeLiveBadgeTimer;sK.prototype.dataChanged=sK.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],sK.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sK.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.U("design:type",String)],sK.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],sK.prototype,"animated",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.U("design:type",Boolean)],sK.prototype,"hideTimeStatus",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sK.prototype,"hasIcon",void 0);_.E([_.K(),_.U("design:type",Object)],sK.prototype,"timeSinceLive",void 0);_.E([_.C("data","timeSinceLive"),_.U("design:type",Object),_.U("design:paramtypes",[])],sK.prototype,"badgeShapeData",null);
_.E([_.C("data","overlayType"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sK.prototype,"hideBadgeShape",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sK.prototype,"dataChanged",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.style"),_.U("design:type",Object),_.U("design:paramtypes",[])],sK.prototype,"overlayStyle",null);
_.E([_.C("data.liveBadgeData"),_.U("design:type",Object),_.U("design:paramtypes",[])],sK.prototype,"liveBadgeData",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.type"),_.U("design:type",Object),_.U("design:paramtypes",[])],sK.prototype,"overlayType",null);_.E([_.C("overlayType","overlayStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sK.prototype,"useFilledIcon",null);
_.E([_.U0("liveBadgeData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sK.prototype,"initializeLiveBadgeTimer",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],sK);
_.N(sK,"ytd-thumbnail-overlay-time-status-renderer",function(){if(SOh!==void 0)return SOh;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return SOh=X},{mode:_.Cz("kevlar_poly_si_batch_j035")?1:2});var Znz;var Dn=function(){return _.O.apply(this,arguments)||this};
_.S(Dn,_.O);Dn.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"}}}}};
Dn.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(X){if(this.hasPlaybackProgressBar)return{percentDurationWatched:X.percentDurationWatched}};
Dn.prototype.computeHasPlaybackProgressBar=function(X){return!!X.percentDurationWatched&&X.percentDurationWatched>0};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Dn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.U("design:type",Boolean)],Dn.prototype,"hasPlaybackProgressBar",void 0);
_.E([_.p({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Dn);
_.N(Dn,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Znz!==void 0)return Znz;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Znz=X},{mode:1});var qOz;var Cb4=_.Fp(function(X){var t=X.data;var G=X.children;var y=function(){return!!t().doubleStack},w=function(){return!!t().includeStackHeight};
return _.k("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!t().experimentEnabled}},_.k(_.d,{cond:t,
then:function(){var z={};return _.k(_.gn,null,_.k(_.d,{cond:w,then:function(){var B={};return _.k("div",{class:_.cl("collections-stack-wiz__spacer",(B["collections-stack-wiz__spacer--double-stack"]=y,B))})}}),_.k("div",{class:_.cl((z["collections-stack-wiz__relative-stack"]=w,z))},_.k(_.d,{cond:y,
then:function(){var B={};return _.k("div",{class:_.cl("collections-stack-wiz__collection-stack2",function(){return t().customClassName2ndStack},(B["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return t().enableResponsiveMode},B)),
style:_.Ud({"background-color":function(){return AuE(t())}})})}}),_.k("div",{class:_.cl("collections-stack-wiz__collection-stack1",function(){return t().customClassName1stStack},function(){return Tm6(t().thumbnailSize?t().thumbnailSize:"medium")}),
style:_.Ud({"background-color":function(){return AuE(t())}})}),G))}}))},"S");_.DW(Cb4,"yt-collections-stack",{props:{data:_.bR}});var S9=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};X.webModernCollections=!1;X.isSearch=!1;X.isDoubleStack=!1;X.thumbnailSize="medium";X.enableWebModernCollectionsV2=_.A("web_modern_collections_v2");return X};
_.S(S9,_.O);_.H=S9.prototype;
_.H.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]]"}}}}}};
_.H.getThumbnailDetails=function(X){if(X!=null&&X.thumbnailRenderer){var t=X.thumbnailRenderer,G;if((G=t.playlistVideoThumbnailRenderer)==null?0:G.thumbnail)return t.playlistVideoThumbnailRenderer.thumbnail;var y;if((y=t.playlistCustomThumbnailRenderer)==null?0:y.thumbnail)return t.playlistCustomThumbnailRenderer.thumbnail;X=X.thumbnailRenderer;var w;if((w=X.showCustomThumbnailRenderer)==null?0:w.thumbnail)return X.showCustomThumbnailRenderer.thumbnail}};
_.H.computeOverlayColor=function(X){var t,G;if((t=this.getThumbnailDetails(X))==null?0:(G=t.darkColorPalette)==null?0:G.section2Color)return this.getThumbnailDetails(X).darkColorPalette.section2Color;var y;return(y=this.getThumbnailDetails(X))==null?void 0:y.sampledThumbnailColor};
_.H.computeWebModernCollections=function(X){if(X==null||!X.thumbnailOverlays)return!1;X=_.J(X.thumbnailOverlays);for(var t=X.next();!t.done;t=X.next()){var G=void 0;if((G=t.value)==null?0:G.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.H.computeNavigationEndpoint=function(X){return qC6(X==null?void 0:X.navigationEndpoint)};
_.ke.Object.defineProperties(S9.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var X=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:X==null?void 0:X.sampledThumbnailColor,vibrantColorPalette:X==null?void 0:X.vibrantColorPalette,darkColorPalette:X==null?void 0:X.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],S9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(N8S),_.U("design:type",Object)],S9.prototype,"ytdThumbnailBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],S9.prototype,"componentBehavior",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],S9.prototype,"watchFeedThumbnail",void 0);_.E([_.K(),_.U("design:type",Number)],S9.prototype,"customThumbnailSize",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],S9.prototype,"hideAria",void 0);_.E([_.K(),_.U("design:type",Object)],S9.prototype,"data",void 0);_.E([_.K({computed:"computeOverlayColor(data)"}),_.U("design:type",Object)],S9.prototype,"overlayColor",void 0);
_.E([_.K({computed:"computeWebModernCollections(data)"}),_.U("design:type",Object)],S9.prototype,"webModernCollections",void 0);_.E([_.K({computed:"computeNavigationEndpoint(data)"}),_.U("design:type",Object)],S9.prototype,"computedNavigationEndpoint",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],S9.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],S9.prototype,"isDoubleStack",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],S9.prototype,"thumbnailSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],S9.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.C("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.U("design:type",Object),_.U("design:paramtypes",[])],S9.prototype,"collectionStack",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],S9);
_.N(S9,"ytd-playlist-thumbnail",function(){if(qOz!==void 0)return qOz;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return qOz=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var Kjz;var hD=function(){var X=_.O.apply(this,arguments)||this;X.noEndpoints=!1;X.amsterdamPostMvp=_.A("web_amsterdam_post_mvp_playlists");X.badges=[];X.transferState="TRANSFER_STATE_UNKNOWN";return X};
_.S(hD,_.O);_.H=hD.prototype;_.H.getMetadata=function(X){if(!X)return[];var t=[],G=X.shortViewCountText||X.viewCountText;G&&t.push(_.bu(G));X.publishedTimeText&&t.push(_.bu(X.publishedTimeText));X.upcomingEventData&&X.upcomingEventData.upcomingEventText&&t.push(_.X7(_.bu(X.upcomingEventData.upcomingEventText),Number(X.upcomingEventData.startTime)));return t};
_.H.observeDataForBylineSeparator=function(){this.data&&_.Zk(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.H.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Gq(this.metadataColor)};
_.H.getSimpleString=function(X){return _.bu(X)};
_.H.isBylineHidden=function(X){return this.noByline||!((X==null?0:X.longBylineText)||(X==null?0:X.shortBylineText))};
_.H.isMetadataHidden=function(X){var t;return((t=this.getMetadata(X))==null?void 0:t.length)===0};
_.H.isBylineMetadataSeparatorHidden=function(X){return this.isMetadataHidden(X)||!this.shouldShowVideoInfo};
_.H.isLongByline=function(X,t){return t&&!(X==null||!X.longBylineText)};
_.ke.Object.defineProperties(hD.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var X;return this.amsterdamPostMvp&&!((X=this.data)==null||!X.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 _.A("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
hD.prototype.metadataColorChanged=hD.prototype.metadataColorChanged;hD.prototype.observeDataForBylineSeparator=hD.prototype.observeDataForBylineSeparator;_.E([_.q(_.MZ),_.U("design:type",Object)],hD.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],hD.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],hD.prototype,"noEndpoints",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],hD.prototype,"isSlimShort",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],hD.prototype,"radioMeta",void 0);_.E([_.K({selector:_.yE}),_.U("design:type",Object)],hD.prototype,"isGridViewEnabled",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],hD.prototype,"richMeta",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],hD.prototype,"amsterdamPostMvp",void 0);_.E([_.K(),_.U("design:type",Boolean)],hD.prototype,"noByline",void 0);
_.E([_.K({computed:"isLongByline(data, radioMeta)"}),_.U("design:type",Boolean)],hD.prototype,"longByline",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],hD.prototype,"truncateMetadataLine",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],hD.prototype,"miniMode",void 0);_.E([_.K(),_.U("design:type",Number)],hD.prototype,"metadataColor",void 0);_.E([_.K(),_.U("design:type",Array)],hD.prototype,"badges",void 0);
_.E([_.K({selector:_.$1,selectorArgs:["data.videoId"]}),_.U("design:type",String)],hD.prototype,"transferState",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],hD.prototype,"isDownloading",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],hD.prototype,"typographyBump",void 0);_.E([_.rt("#metadata-line"),_.U("design:type",HTMLElement)],hD.prototype,"metadataLine",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hD.prototype,"observeDataForBylineSeparator",null);_.E([_.cW("metadataColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hD.prototype,"metadataColorChanged",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],hD.prototype,"shouldShowVideoInfo",null);
_.E([_.C("badges"),_.U("design:type",String),_.U("design:paramtypes",[])],hD.prototype,"inlineBadgeClass",null);_.E([_.C("longByline"),_.U("design:type",String),_.U("design:paramtypes",[])],hD.prototype,"longBylineClass",null);_.E([_.C("data","longByline"),_.U("design:type",Object),_.U("design:paramtypes",[])],hD.prototype,"bylineText",null);_.E([_.C("isGridViewEnabled","data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],hD.prototype,"watchFeedBigThumbs",null);
_.E([_.p({is:"ytd-video-meta-block",disableElementRegistration:!0})],hD);
_.N(hD,"ytd-video-meta-block",function(){if(Kjz!==void 0)return Kjz;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Kjz=X},{mode:_.Cz("kevlar_poly_si_batch_j080")?1:2});_.Xa("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Zn=function(){var X=_.O.apply(this,arguments)||this;X.displayItemCount=2;X.isBackstagePlaylist=!1;X.isPostCompactPlaylist=!1;X.shouldShowChannelThumbnail=!1;X.useModernCollectionsV2=_.A("web_modern_collections_v2");return X};
_.S(Zn,_.O);_.H=Zn.prototype;_.H.computeFirstVideos=function(X,t){return X===void 0||t===void 0?[]:X.slice(0,t)};
_.H.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var X=this.data.thumbnailRenderer;X.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",X.playlistVideoThumbnailRenderer.thumbnail);X.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",X.playlistCustomThumbnailRenderer.thumbnail)}};
_.H.computeThumbnailHeight=function(X,t,G,y,w){return y?w==="BIG"?280:w==="MASSIVE"?337:234:G?240:t?72:X?118:138};
_.H.computeThumbnailWidth=function(X,t,G,y,w){return y?w==="MEDIUM"?450:w==="BIG"?500:w==="MASSIVE"?600:420:G?360:t?128:X?210:246};
_.H.computeUseBiggerThumbs=function(X){return X&&_.A("enable_desktop_search_bigger_thumbs")};
_.H.computeShouldShowChannelThumbnail=function(X,t){return X&&!(t==null||!t.channelThumbnail)};
_.ke.Object.defineProperties(Zn.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Zn.prototype.dataChanged=Zn.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],Zn.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Zn.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Zn.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Zn.prototype,"displayItemCount",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Zn.prototype,"isBackstagePlaylist",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Zn.prototype,"isPostCompactPlaylist",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Zn.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.U("design:type",Boolean)],Zn.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.Yx("desktop_search_bigger_thumbs_style")}}),
_.U("design:type",String)],Zn.prototype,"biggerThumbsStyle",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Zn.prototype,"isDownloads",void 0);_.E([_.K({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.U("design:type",Object)],Zn.prototype,"shouldShowChannelThumbnail",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Zn.prototype,"useModernCollectionsV2",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Zn.prototype,"dataChanged",null);_.E([_.C("isSearch"),_.U("design:type",String),_.U("design:paramtypes",[])],Zn.prototype,"stackThumbnailSize",null);_.E([_.p({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Zn);
_.N(Zn,"ytd-playlist-renderer",function(){if(VWJ===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);VWJ=X}X=VWJ;return X},{mode:1});var On4;var udS;var qh=function(){var X=_.O.apply(this,arguments)||this;X.collections=!!_.A("web_modern_collections_v2");X.startX=0;return X};
_.S(qh,_.O);qh.prototype.onEndpointMouseDown=function(X){this.startX=X.clientX};
qh.prototype.onEndpointClick=function(X){this.startX!==X.clientX&&(X.preventDefault(),X.stopPropagation())};
qh.prototype.computeObjectFit=function(X){return X==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||X==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||X==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
qh.prototype.computeCardStyle=function(X){return X?X.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.ke.Object.defineProperties(qh.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var X,t;return this.collections&&((X=this.data)==null?void 0:(t=X.searchRefinementCardRendererStyle)==null?void 0:t.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}}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qh.prototype,"data",void 0);_.E([_.K({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.U("design:type",Number)],qh.prototype,"objectFit",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.U("design:type",String)],qh.prototype,"cardStyle",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.U("design:type",Boolean)],qh.prototype,"roundContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],qh.prototype,"collections",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],qh.prototype,"isAlbumCard",null);_.E([_.C("data","collections","isAlbumCard"),_.U("design:type",Object),_.U("design:paramtypes",[])],qh.prototype,"collectionStack",null);
_.E([_.p({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],qh);
_.N(qh,"ytd-search-refinement-card-renderer",function(){if(udS!==void 0)return udS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return udS=X},{mode:1});var QWe;var CZ=function(){var X=_.O.apply(this,arguments)||this;X.isRichGrid=!1;return X};
_.S(CZ,_.O);_.E([_.K(),_.U("design:type",Object)],CZ.prototype,"data",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],CZ.prototype,"componentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],CZ.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],CZ.prototype,"isRichGrid",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],CZ.prototype,"miniMode",void 0);
_.E([_.p({is:"ytd-game-details-renderer",disableElementRegistration:!0})],CZ);
_.N(CZ,"ytd-game-details-renderer",function(){if(QWe!==void 0)return QWe;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return QWe=X},{mode:1});var IiB;var WjS;var KZ=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return X};
_.S(KZ,_.O);_.H=KZ.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.currentStateData=function(X){var t=X||this.data;return t&&t.states&&t.currentStateId!=null?t.states.find(function(G){return G.stateId===t.currentStateId})||null:null};
_.H.currentStateRendererData=function(X){return(X=this.currentStateData(X))&&X.state&&X.state.buttonRenderer?X.state.buttonRenderer:null};
_.H.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())};
_.H.computeButtonIcon=function(X){X=this.currentStateRendererData(X);var t;return(X==null?0:(t=X.icon)==null?0:t.iconType)?X.icon.iconType.toLowerCase():null};
_.H.computeAccessibility=function(X){return(X=this.currentStateRendererData(X))&&X.accessibilityData?X.accessibilityData.accessibilityData||null:null};
_.H.computeButtonClass=function(X){var t=this.currentStateRendererData(X);if(!t)return"";X="";var G=t.style;G&&(X+=G.toLowerCase().replace(/_/g,"-")+" ");(t=t.size)&&(X+=t.toLowerCase().replace(/_/g,"-")+" ");return X.trim()};
_.H.computeServiceEndpoint=function(X){if(!X)return null;var t=X&&X.serviceEndpoint,G=this.get("command.commandMetadata.webCommandMetadata.sendPost",X);return t?t:G&&X.command?X.command:null};
_.H.computeBellMenuItemParams=function(X){var t;X=(t=_.Y(X==null?void 0:X.command,_.Cq))==null?void 0:t.commands;if(!X||X.length===0)return null;t=_.Y(X[0],_.iY);var G,y;return(t==null?0:(G=t.popup)==null?0:(y=G.menuPopupRenderer)==null?0:y.items)?t.popup.menuPopupRenderer.items.map(function(w){return w.menuServiceItemRenderer.trackingParams}):null};
_.H.handleBellMenuOpenSelectedAction=function(X){var t=X.trackingParams,G=this.computeBellMenuItemParams(this.data);this.data&&t&&G&&G.includes(t)&&this.ytRenderButtonBehavior._setButtonIcon(X.icon.iconType.toLowerCase())};
_.H.onYtServiceRequestCompleted=function(X,t){(X=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",t))&&this.set("data",X)};
_.H.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.H.resetState=function(){this.set("data.currentStateId",3)};
_.H.onYtButtonTapHandler=function(){if(this.data){var X=this.currentStateRendererData(this.data);X&&this.ytRendererBehavior.logExplicitClick(X)}};
KZ.prototype.onYtServiceRequestError=KZ.prototype.onYtServiceRequestError;KZ.prototype.onYtServiceRequestCompleted=KZ.prototype.onYtServiceRequestCompleted;KZ.prototype.stateChanged=KZ.prototype.stateChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],KZ.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(Eb.YtRenderButtonBehavior),_.U("design:type",Object)],KZ.prototype,"ytRenderButtonBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],KZ.prototype,"data",void 0);_.E([_.U0("data","data.currentStateId"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],KZ.prototype,"stateChanged",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],KZ.prototype,"onYtServiceRequestCompleted",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],KZ.prototype,"onYtServiceRequestError",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],KZ);
_.N(KZ,"ytd-subscription-notification-toggle-button-renderer",function(){if(WjS!==void 0)return WjS;var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return WjS=X},{mode:1});var cuJ;var OK=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};X.tapHandler=function(){if(X.data){var t=X.currentStateRendererData();t&&X.ytRendererBehavior.logExplicitClick(t)}};
return X};
_.S(OK,_.O);_.H=OK.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.currentStateData=function(){var X=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(t){return t.stateId===X.data.currentStateId})||null:null};
_.H.currentStateRendererData=function(){var X=this.currentStateData();return X&&X.state&&X.state.buttonRenderer?X.state.buttonRenderer:null};
_.H.computeAccessibilityLabel=function(){var X,t,G;return(X=this.currentStateRendererData())==null?void 0:(t=X.accessibilityData)==null?void 0:(G=t.accessibilityData)==null?void 0:G.label};
_.H.computeBellMenuItemParams=function(){var X,t,G=(t=_.Y((X=this.data)==null?void 0:X.command,_.Cq))==null?void 0:t.commands;if(!G||G.length===0)return null;X=_.Y(G[0],_.iY);var y,w;return(X==null?0:(y=X.popup)==null?0:(w=y.menuPopupRenderer)==null?0:w.items)?X.popup.menuPopupRenderer.items.map(function(z){return z.menuServiceItemRenderer.trackingParams}):null};
_.H.handleBellMenuOpenSelectedAction=function(X){var t=X.trackingParams,G=this.computeBellMenuItemParams();if(this.data&&t&&G&&G.includes(t)&&(X==null||!X.isDisabled)){var y;((y=_.Y(X.serviceEndpoint,_.Ol))==null?void 0:y.signal)!=="CLIENT_SIGNAL"&&(this.icon=X.icon.iconType)}};
_.H.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.H.onYtServiceRequestCompleted=function(X,t){if(X=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",t))this.icon=void 0,this.set("data",X)};
_.H.onYtServiceRequestError=function(){this.icon=void 0};
_.ke.Object.defineProperties(OK.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X=this.data,t=this.textLabel,G=this.hostElement,y=this.computeAccessibilityLabel(),w=this.tapHandler,z=this.isOverlay?"overlay":"mono",B=(X==null?0:X.disableButton)?"disabled":"active";t=t?_.$I(t):void 0;return{style:z,type:"tonal",state:B,size:"M",focused:!1,formattedButtonText:t,iconPosition:"leading-trailing",onTap:sWV(X,w,G),accessibilityLabel:y}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var X=this.currentStateRendererData(),t,G,y=(G=this.icon)!=null?G:X==null?void 0:(t=X.icon)==null?void 0:t.iconType;if(y)return _.Q2(y)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(X=this.data)==null?void 0:(t=X.secondaryIcon)==null?void 0:t.iconType;if(G)return _.Q2(G)}}});
OK.prototype.onYtServiceRequestError=OK.prototype.onYtServiceRequestError;OK.prototype.onYtServiceRequestCompleted=OK.prototype.onYtServiceRequestCompleted;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],OK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],OK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],OK.prototype,"textLabel",void 0);
_.E([_.K(),_.U("design:type",String)],OK.prototype,"icon",void 0);_.E([_.K(),_.U("design:type",Boolean)],OK.prototype,"isOverlay",void 0);_.E([_.C("data.*","textLabel"),_.U("design:type",Object),_.U("design:paramtypes",[])],OK.prototype,"computedButtonShape",null);_.E([_.C("data.*","icon"),_.U("design:type",Object),_.U("design:paramtypes",[])],OK.prototype,"computedIcon",null);_.E([_.C("data.*"),_.U("design:type",Object),_.U("design:paramtypes",[])],OK.prototype,"computedSecondaryIcon",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],OK.prototype,"onYtServiceRequestCompleted",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],OK.prototype,"onYtServiceRequestError",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],OK);
_.N(OK,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(cuJ!==void 0)return cuJ;var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return cuJ=X},{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var pR4;_.DW(c1q,"yt-animated-action",{props:{backgroundLottieRef:_.bR,foregroundLottieRef:_.bR,wrapperClass:_.bR,disableAnimation:_.bR},unsafeExternallySettableAttributes:new Set(["key"])});var uD=function(){var X=_.O.apply(this,arguments)||this;X.animatedActionEnabled=_.A("web_animated_actions");X.foregroundLottieRef={};X.backgroundLottieRef={};X.forceIconOnly=!1;X.showTextWhileAnimating=!1;X.keyboardFocused=!1;X.isAnimating=!1;X.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return X};
_.S(uD,_.O);_.H=uD.prototype;_.H.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.H.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]]"}}}}}};
_.H.attached=function(){this.keyboardFocused=!1};
_.H.onYtServiceRequestSent=function(X,t){(this.get("endpoint.subscribeEndpoint",t)||this.get("endpoint.unsubscribeEndpoint",t))&&this.updateSubscriptionState(!this.subscribed)};
_.H.onYtServiceRequestCompleted=function(X,t){(X=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",t.data))&&this.bellButton&&(this.bellButton.data=X)};
_.H.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Kd(this.hostElement)};
_.H.onPlayerSubscribe=function(X){this.isCompactRed()||X!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.H.onPlayerUnsubscribe=function(X){this.isCompactRed()||X!==this.data.channelId||this.updateSubscriptionState(!1)};
_.H.handleUpdateSubscribeButtonAction=function(X){X=_.Y(X,t24);var t;X&&X.channelId===((t=this.data)==null?void 0:t.channelId)&&this.updateSubscriptionState(!!X.subscribed)};
_.H.computeButtonStyle=function(X){return this.get("style.styleType",X)||null};
_.H.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.H.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.H.updateSubscriptionState=function(X){if(X!==this.subscribed){this.set("data.subscribed",X);var t,G=(t=this.data)==null?void 0:t.subscribedEntityKey;G&&this.ytdReduxBehavior.dispatch(_.EW("subscriptionStateEntity",G,{key:G,subscribed:X}));this.isCompactRed()||_.Yt(this.hostElement,"yt-subscription-changed",X);X||(_.sl(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!X),X&&this.hasBellButton&&this.startAnimation())}};
_.H.startAnimation=function(){var X=this;if(!this.isAnimating){var t=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var G;(G=this.backgroundLottieRef.lottieEl)==null||G.goToAndPlay(0);var y;(y=this.foregroundLottieRef.lottieEl)==null||y.goToAndPlay(0);_.vz.addJob(function(){X.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.vz.addJob(function(){X.updateContainerToFitContent(!!X.subscribed,!0)},2,1500);
_.vz.addJob(function(){X.isAnimating=!1},2,t)}};
_.H.maybeAnimateBellIcon=function(){var X=_.hb(this.hostElement).querySelector("yt-animated-icon");if(X){var t;(t=X.animationRef.lottieEl)==null||t.goToAndPlay(0)}};
_.H.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.H.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.H.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var X;this.unsubscribedWidth=(X=this.subscribeButtonShape)==null?void 0:X.getBoundingClientRect().width}var t;this.subscribedWidth=(t=this.bellButton)==null?void 0:t.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.H.updateContainerToFitContent=function(X,t){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(X?(X=this.subscribedWidth,t=this.isAnimating&&!t,this.subscribedIconOnlyWidth===void 0||t||(X=this.subscribedIconOnlyWidth),this.hostElement.style.width=X+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.H.clearContainerSize=function(){this.hostElement.style.width=""};
_.H.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.H.maybeSetSubscribedButtonIconOnlyWidth=function(){var X=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 t;X.subscribedIconOnlyWidth=(t=X.bellButton)==null?void 0:t.getBoundingClientRect().width;requestAnimationFrame(function(){if(X.bellButton){var G;X.bellButton.textLabel=
(G=X.data)==null?void 0:G.subscribedButtonText}})})))};
_.ke.Object.defineProperties(uD.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 X;return(X=this.data)==null?void 0:X.subscribedButtonText}var t;return this.forceIconOnly?void 0:(t=this.data)==null?void 0:t.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var X,t,G=((X=this.data)==null?void 0:(t=X.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"subscribe",timings:G,enabled:G.length>0&&!this.subscribed,experimentEnabled:G.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var X;return!this.subscribed&&((X=this.data)==null?void 0:X.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 X={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var t=X.renderer;var G=X.element;var y=X.subscribed;var w=X.commandController;var z=X.isOverlay;X=X.stopPropagation;var B=Znw(t,y);z&&(B.style="overlay");z=Object;var V=z.assign,b;a:switch((b=t.style)==null?void 0:b.styleType){case "COMPACT_GRAY":case "COMPACT_RED":b={size:"S"};break a;default:b={size:"M"}}var e=h30(t,
y);var g=(g=y?t.subscribedButtonText:t.unsubscribedButtonText)?_.$I(g):void 0;return V.call(z,{},B,b,{focused:!1,toggled:y,accessibilityLabel:e,formattedButtonText:g,onTap:SOJ(t,y,G,w,X)})}}}});
uD.prototype.onMouseDown=uD.prototype.onMouseDown;uD.prototype.onDataChanged=uD.prototype.onDataChanged;uD.prototype.observedSubscribed=uD.prototype.observedSubscribed;uD.prototype.onYtServiceRequestCompleted=uD.prototype.onYtServiceRequestCompleted;uD.prototype.onYtServiceRequestSent=uD.prototype.onYtServiceRequestSent;uD.prototype.maybeUpdateBellButtonText=uD.prototype.maybeUpdateBellButtonText;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],uD.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],uD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],uD.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uD.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.subscribedEntityKey"],selector:YkE}),_.U("design:type",Object)],uD.prototype,"subscriptionStateEntity",void 0);_.E([_.K({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.U("design:type",Boolean)],uD.prototype,"subscribed",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],uD.prototype,"branded",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uD.prototype,"animatedActionEnabled",void 0);
_.E([_.K(),_.U("design:type",Object)],uD.prototype,"foregroundLottieRef",void 0);_.E([_.K(),_.U("design:type",Object)],uD.prototype,"backgroundLottieRef",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],uD.prototype,"overlayButton",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.U("design:type",Object)],uD.prototype,"buttonStyle",void 0);_.E([_.K(),_.U("design:type",Object)],uD.prototype,"forceIconOnly",void 0);
_.E([_.K(),_.U("design:type",Object)],uD.prototype,"showTextWhileAnimating",void 0);_.E([_.K({value:function(){return!!_.gw().resolve(_.jH(_.Z8))&&_.A("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.U("design:type",Boolean)],uD.prototype,"useKeyboardFocused",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uD.prototype,"keyboardFocused",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uD.prototype,"isAnimating",void 0);_.E([_.C("data.notificationPreferenceButton.*"),_.U("design:type",Object),_.U("design:paramtypes",[])],uD.prototype,"hasBellButton",null);
_.E([_.cW("subscribedButtonText"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uD.prototype,"maybeUpdateBellButtonText",null);_.E([_.C("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.U("design:type",Object),_.U("design:paramtypes",[])],uD.prototype,"subscribedButtonText",null);_.E([_.C("data.timedAnimationData.animationTiming","subscribed"),_.U("design:type",Object),_.U("design:paramtypes",[])],uD.prototype,"smartimationSettings",null);
_.E([_.K({reflectToAttribute:!0}),_.C("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.U("design:type",Object),_.U("design:paramtypes",[])],uD.prototype,"subscribeButtonHidden",null);_.E([_.K({reflectToAttribute:!0}),_.C("subscribed","hasBellButton"),_.U("design:type",Object),_.U("design:paramtypes",[])],uD.prototype,"subscribeButtonInvisible",null);
_.E([_.K({reflectToAttribute:!0}),_.C("subscribed"),_.U("design:type",Object),_.U("design:paramtypes",[])],uD.prototype,"unsubscribeButtonHidden",null);_.E([_.rt("ytd-subscription-notification-toggle-button-renderer-next"),_.U("design:type",Object)],uD.prototype,"bellButton",void 0);_.E([_.rt("#subscribe-button-shape"),_.U("design:type",HTMLElement)],uD.prototype,"subscribeButtonShape",void 0);
_.E([_.C("overlayButton","subscribed","data"),_.U("design:type",Object),_.U("design:paramtypes",[])],uD.prototype,"buttonShape",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],uD.prototype,"onYtServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],uD.prototype,"onYtServiceRequestCompleted",null);
_.E([_.cW("subscribed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uD.prototype,"observedSubscribed",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uD.prototype,"onDataChanged",null);_.E([_.WW("mousedown"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uD.prototype,"onMouseDown",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],uD);
_.N(uD,"ytd-subscribe-button-renderer",function(){if(pR4!==void 0)return pR4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return pR4=X},{mode:1});var Qt=function(){var X=_.O.apply(this,arguments)||this;X.isRichGrid=!1;return X};
_.S(Qt,_.O);Qt.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Qt.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qt.prototype,"isRichGrid",void 0);_.E([_.p({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Qt);
_.N(Qt,"ytd-game-card-renderer",function(){if(IiB!==void 0)return IiB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return IiB=X},{mode:1});var Il={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.A("defer_menus")&&!sRY?0:void 0,waitForSignal:"eocs"};var ruz;var Nm4;var W7=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return X};
_.S(W7,_.O);_.H=W7.prototype;_.H.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.H.onSeriesReminderStateEntityChange=function(){var X,t,G;((X=this.eventReminderStateEntity)==null?0:X.key)&&((t=this.seriesReminderStateEntity)==null?void 0:t.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((G=this.eventReminderStateEntity)==null?void 0:G.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.EW("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.H.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.H.onYtServiceRequestError=function(){var X;this.updateReminderStateEntitiesFromButtonState((X=this.data)==null?void 0:X.currentState)};
_.H.handleUpdateUpcomingEventReminderButtonStateCommand=function(X){if(X=_.Y(X,A_o)){var t,G=(t=this.data)==null?void 0:t.targetId;G&&X.targetId===G&&_.oL(this.updateReminderStateEntitiesFromButtonState.bind(this,X.state))}};
_.H.getButtonStateFromReminderState=function(){var X;if(((X=this.seriesReminderStateEntity)==null?void 0:X.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var t;if(((t=this.eventReminderStateEntity)==null?void 0:t.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var G,y;if(((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((y=this.eventReminderStateEntity)==
null?void 0:y.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var w;return(w=this.data)==null?void 0:w.currentState};
_.H.updateReminderStateEntitiesFromButtonState=function(X){if(X){switch(X){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":X="UPCOMING_EVENT_REMINDER_STATE_NONE";var t="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":X="UPCOMING_EVENT_REMINDER_STATE_SINGLE";t="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":X="UPCOMING_EVENT_REMINDER_STATE_NONE";t="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var G;
((G=this.eventReminderStateEntity)==null?0:G.key)&&this.ytdReduxBehavior.dispatch(_.EW("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:X})));var y;((y=this.seriesReminderStateEntity)==null?0:y.key)&&this.ytdReduxBehavior.dispatch(_.EW("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:t})))}};
_.ke.Object.defineProperties(W7.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var X=this.getButtonStateFromReminderState(),t,G;if(X&&((t=this.data)==null?0:(G=t.states)==null?0:G.length))for(t=_.J(this.data.states),G=t.next();!G.done;G=t.next()){G=G.value;var y=void 0;if(((y=_.Y(G,Y2t))==null?void 0:y.state)===X)return _.Y(G,Y2t)}}}});
W7.prototype.onYtServiceRequestError=W7.prototype.onYtServiceRequestError;W7.prototype.onYtServiceRequestCompleted=W7.prototype.onYtServiceRequestCompleted;W7.prototype.onSeriesReminderStateEntityChange=W7.prototype.onSeriesReminderStateEntityChange;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],W7.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],W7.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],W7.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Da6}),_.U("design:type",Object)],W7.prototype,"eventReminderStateEntity",void 0);
_.E([_.K({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(X,t){return _.Kg(X.entities,"sportsSeriesReminderStateEntity",t)}}),
_.U("design:type",Object)],W7.prototype,"seriesReminderStateEntity",void 0);_.E([_.C("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],W7.prototype,"currentButtonStateRenderer",null);_.E([_.cW("seriesReminderStateEntity"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],W7.prototype,"onSeriesReminderStateEntityChange",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],W7.prototype,"onYtServiceRequestCompleted",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],W7.prototype,"onYtServiceRequestError",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],W7);
_.N(W7,"ytd-upcoming-event-reminder-button-renderer",function(){if(Nm4!==void 0)return Nm4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return Nm4=X},{mode:1});var PbY;var c7=function(){return _.O.apply(this,arguments)||this};
_.S(c7,_.O);c7.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.ke.Object.defineProperties(c7.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(_.A("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],c7.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],c7.prototype,"shelfDismissal",void 0);_.E([_.C("data.responseText"),_.U("design:type",Object),_.U("design:paramtypes",[])],c7.prototype,"text",null);
_.E([_.C("data.responseText"),_.U("design:type",Object),_.U("design:paramtypes",[])],c7.prototype,"textAriaLabel",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],c7);
_.N(c7,"ytd-notification-multi-action-renderer",function(){if(PbY!==void 0)return PbY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return PbY=X},{mode:1});var EL4;var pZ=function(){return _.O.apply(this,arguments)||this};
_.S(pZ,_.O);pZ.prototype.ready=function(){var X=this;_.Sm(this.hostElement).querySelector("#undo").addEventListener("tap",function(){X.onUndoTap()})};
pZ.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.gw().resolve(_.F3).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],pZ.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],pZ);
_.N(pZ,"ytd-notification-text-renderer",function(){if(EL4!==void 0)return EL4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return EL4=X},{mode:1});var Un4;var rK=function(){var X=_.O.apply(this,arguments)||this;X.mouseOverDelayJobId=0;X.fadeInImageDelayJobId=0;X.startTimeMs=-1;X.loadingStartTimeMs=-1;X.loadingEndTimeMs=-1;X.hasVideoPreview=!1;return X};
_.S(rK,_.O);_.H=rK.prototype;_.H.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.H.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.H.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.H.showThumbnail=function(){var X=this;this.csn=_.lw();_.xt("fmth");_.vz.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.CX(_.vz,function(){X.loadingStartTimeMs=(0,_.gl)();var t=_.Sm(X.hostElement).querySelector("#thumbnail");t.complete?X.displayMouseOverImage():t.addEventListener("load",_.Ik(X,X.displayMouseOverImage))},150):_.Zk(_.Sm(this.hostElement).querySelector("#play"),"show",!0)};
_.H.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.H.onTap=function(){this.removeVideoPreview()};
_.H.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var X=this.videoId,t=this.csn,G=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,y=this.startTimeMs,w=this.hasVideoPreview,z=_.i$(this.trackingParams),B={isMovingThumbnail:w};w&&y>0&&(G>0&&(B.movingThumbnailLoadingDurationMs=Math.round(G)),B.durationHoveredMs=Math.round((0,_.gl)()-y));X&&(B.videoId=X);_.V1(t,z,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:B});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.H.removeVideoPreview=function(){_.vz.cancelJob(this.mouseOverDelayJobId);_.vz.cancelJob(this.fadeInImageDelayJobId);var X=_.Sm(this.hostElement).querySelector("#thumbnail");_.Zk(X,"fade-in",!1);X.removeEventListener("load",_.Ik(this,this.displayMouseOverImage));X=_.Sm(this.hostElement).querySelector("#play");_.Zk(X,"fade-in",!1);_.Zk(X,"show",!1)};
_.H.displayMouseOverImage=function(){var X=_.Sm(this.hostElement).querySelector("#thumbnail"),t=_.Sm(this.hostElement).querySelector("#play");this.isImageAvailable(X)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.gl)(),this.startTimeMs=(0,_.gl)(),this.fadeInImageDelayJobId=_.CX(_.vz,function(){_.Zk(X,"fade-in",!0)},50)):_.Zk(t,"fade-in",!0)};
_.H.computeThumbnail=function(X,t){var G;X&&X.movingThumbnailDetails&&X.movingThumbnailDetails.thumbnails&&t?G=_.S_(X.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):G=t?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(G)return _.l_(G)};
_.H.isImageAvailable=function(X){return!(!X.src||X.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||X.naturalWidth===120)};
rK.prototype.onTap=rK.prototype.onTap;rK.prototype.dataChanged=rK.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],rK.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],rK.prototype,"csn",void 0);_.E([_.K(),_.U("design:type",Object)],rK.prototype,"trackingParams",void 0);
_.E([_.K(),_.U("design:type",String)],rK.prototype,"videoId",void 0);_.E([_.K(),_.U("design:type",Boolean)],rK.prototype,"isAttachedAndDataSet",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rK.prototype,"dataChanged",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rK.prototype,"onTap",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],rK);
_.N(rK,"ytd-moving-thumbnail-renderer",function(){if(Un4!==void 0)return Un4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Un4=X},{mode:1});var mn4;_.hi=function(X){this.hostElement=X;this.eventSink=null;this.eventList=[]};
_.hi.prototype.shouldForward=function(){var X,t;return(t=(X=this.eventSink)==null?void 0:X.isConnected)!=null?t:document.body.contains(this.eventSink)};
_.hi.prototype.start=function(X,t){this.eventSink&&this.stop();for(var G=0;G<X.length;G++)this.hostElement.addEventListener(X[G],_.Ik(this,this.forwardEvent));var y;this.eventSink=(y=t.hostElement)!=null?y:t;this.eventList=X};
_.hi.prototype.stop=function(){for(var X=0;X<this.eventList.length;X++)this.hostElement.removeEventListener(this.eventList[X],_.Ik(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.hi.prototype.forwardEvent=function(X,t){this.shouldForward()&&(X.stopPropagation(),this.eventSink instanceof Element?_.Yt(this.eventSink,X.type,t):_.Mj(new _.NJ("eventSink is not an element")))};_.Nh={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.hi(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(X,t){this.forwarder_.start(X,t)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var P7=function(){return _.O.apply(this,arguments)||this};
_.S(P7,_.O);_.H=P7.prototype;_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.Md("HTML_DIR")==="rtl"?"right":"left"};
_.H.dataChanged=function(){this.popupOpen=!1};
_.H.computeAriaLabel=function(X){return _.Y(X,DFJ).label};
_.H.onTap=function(X){X.stopPropagation();X.preventDefault();this.data.command&&_.gw().resolve(_.F3).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.H.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.H.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
P7.prototype.onPopupClosed=P7.prototype.onPopupClosed;P7.prototype.onPopupOpened=P7.prototype.onPopupOpened;P7.prototype.onTap=P7.prototype.onTap;P7.prototype.dataChanged=P7.prototype.dataChanged;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],P7.prototype,"eventForwardingBehavior",void 0);_.E([_.q(_.xr),_.U("design:type",Object)],P7.prototype,"ironButtonState",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],P7.prototype,"componentBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],P7.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:-1}),_.U("design:type",Number)],P7.prototype,"tabindex",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.U("design:type",Object)],P7.prototype,"ariaLabel",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],P7.prototype,"disableTooltips",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],P7.prototype,"popupOpen",void 0);
_.E([_.K(),_.U("design:type",Element)],P7.prototype,"eventSink",void 0);_.E([_.rt("#tooltip"),_.U("design:type",Object)],P7.prototype,"tooltip",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],P7.prototype,"dataChanged",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],P7.prototype,"onTap",null);
_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],P7.prototype,"onPopupOpened",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],P7.prototype,"onPopupClosed",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],P7);
_.N(P7,"ytd-thumbnail-overlay-button-renderer",function(){if(mn4!==void 0)return mn4;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return mn4=X},{mode:1});var R3B;var EK=function(){return _.O.apply(this,arguments)||this};
_.S(EK,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],EK.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],EK.prototype,"disableAnimation",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],EK.prototype,"rounded",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],EK.prototype,"transparentBackground",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],EK.prototype,"noPadding",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],EK);
_.N(EK,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(R3B!==void 0)return R3B;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return R3B=X},{mode:1});var inq;var UK=function(){return _.O.apply(this,arguments)||this};
_.S(UK,_.O);UK.prototype.computeIconPosition=function(X){return this.get("iconPosition",X)||null};
UK.prototype.computeIconStyle=function(X){return this.get("iconStyle",X)||null};
UK.prototype.computeIsIconStyleFilled=function(X){if(!X)return!1;var t;return X.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((t=X.icon)==null?void 0:t.iconType)==="ERROR_BLACK"};
_.E([_.K(),_.U("design:type",Object)],UK.prototype,"data",void 0);_.E([_.K({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.U("design:type",Object)],UK.prototype,"iconPosition",void 0);_.E([_.K({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.U("design:type",Object)],UK.prototype,"iconStyle",void 0);_.E([_.K({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],UK.prototype,"iconStyleFilled",void 0);
_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],UK);
_.N(UK,"ytd-thumbnail-overlay-icon-renderer",function(){if(inq!==void 0)return inq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return inq=X},{mode:1});var LjY;var ml=function(){return _.O.apply(this,arguments)||this};
_.S(ml,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ml.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],ml);
_.N(ml,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(LjY!==void 0)return LjY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return LjY=X},{mode:1});var vLt;var Rl=function(){var X=_.O.apply(this,arguments)||this;X.isPreviewLoading=!1;return X};
_.S(Rl,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Rl.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Rl.prototype,"isPreviewLoading",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Rl);
_.N(Rl,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(vLt!==void 0)return vLt;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return vLt=X},{mode:1});var aie;var iD=function(){return _.O.apply(this,arguments)||this};
_.S(iD,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iD.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],iD);
_.N(iD,"ytd-thumbnail-overlay-pinking-renderer",function(){if(aie!==void 0)return aie;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return aie=X},{mode:1});var liS;var LZ=function(){var X=_.O.apply(this,arguments)||this;X.disableTooltips=!1;X.isLoading=!1;X.useExpandableTooltip=!1;X.toggled=!1;X.hovered=!1;X.mouseoverDelayJobId=0;X.toggleDelayJobId=0;X.expandAnimationDelayJobId=0;return X};
_.S(LZ,_.O);_.H=LZ.prototype;_.H.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");_.Sm(this.hostElement).querySelector("#tooltip").position=_.Md("HTML_DIR")==="rtl"?"right":"left"};
_.H.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.vz.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.vz.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.vz.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.H.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.vz.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.vz.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.vz.cancelJob(this.expandAnimationDelayJobId)};
_.H.computeIcon=function(X,t,G){return(X=G?t:X)&&X.iconType?_.Q2(X.iconType):void 0};
_.H.computeAriaLabel=function(X,t,G){return _.Y(G?t:X,DFJ).label};
_.H.computeTooltip=function(X,t,G){return G?t:X};
_.H.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.H.computeIconOnHover=function(X,t){if((X==null?0:X.iconType)&&!t)return _.Q2(X.iconType)};
_.H.onTap=function(X){var t=this;X.stopPropagation();X.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(X=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(X),this.useExpandableTooltip&&(this.toggleDelayJobId=_.CX(_.vz,function(){t.hovered=!1;t.data&&!t.data.toggledServiceEndpoint&&(t.expandAnimationDelayJobId=_.CX(_.vz,function(){t.set("data.isToggled",
!1)},200))},2E3))};
_.H.onMouseenter=function(){var X=this;this.mouseoverDelayJobId=_.CX(_.vz,function(){X.hovered=!0},300)};
_.H.onMouseleave=function(){_.vz.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.H.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.H.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.H.onServiceRequestCompleted=function(X,t){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(t)||this.set("data.isToggled",!this.data.isToggled)};
_.H.serviceRequestWasSuccessful=function(X){return _.Y(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Xs)?X.data.status==="STATUS_SUCCEEDED":!0};
LZ.prototype.onServiceRequestCompleted=LZ.prototype.onServiceRequestCompleted;LZ.prototype.onPopupClosed=LZ.prototype.onPopupClosed;LZ.prototype.onPopupOpened=LZ.prototype.onPopupOpened;LZ.prototype.onMouseleave=LZ.prototype.onMouseleave;LZ.prototype.dataChanged=LZ.prototype.dataChanged;_.E([_.q(_.xr),_.U("design:type",Object)],LZ.prototype,"ironButtonState",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],LZ.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],LZ.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],LZ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.U("design:type",Object)],LZ.prototype,"ariaLabel",void 0);_.E([_.K(),_.U("design:type",Object)],LZ.prototype,"disableTooltips",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],LZ.prototype,"popupOpen",void 0);_.E([_.K(),_.U("design:type",Object)],LZ.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",Element)],LZ.prototype,"eventSink",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],LZ.prototype,"useExpandableTooltip",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.U("design:type",Object)],LZ.prototype,"toggled",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],LZ.prototype,"hovered",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.U("design:type",Object)],LZ.prototype,"iconOnHover",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],LZ.prototype,"dataChanged",null);
_.E([_.WW("mouseleave"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],LZ.prototype,"onMouseleave",null);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],LZ.prototype,"onPopupOpened",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],LZ.prototype,"onPopupClosed",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],LZ.prototype,"onServiceRequestCompleted",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],LZ);
_.N(LZ,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(liS!==void 0)return liS;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return liS=X},{mode:_.Cz("kevlar_poly_si_batch_j053")?1:2});var xnR;var fiJ=_.Fp(function(X){var t=X.data;var G=X.thumbnailSize;var y=function(){return t().enableSegmentView};
return _.k("yt-thumbnail-overlay-progress-bar-view-model",{class:_.cl("ytThumbnailOverlayProgressBarHost",function(){return qOw(G==null?void 0:G())})},_.k(_.d,{cond:y,
then:function(){return _.k("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.k("div",{class:_.pX("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+t().startPercent+"%"}}),_.k("div",{class:_.pX("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+t().segmentDurationPercent+"%"}},_.k("div",{class:_.pX("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.k("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.k("div",null," ",function(){return t().segmentLabel})),_.k("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.k("div",{class:_.pX("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.k(_.d,{cond:function(){return!y()&&t().startPercent},
then:function(){var w={};return _.k("div",{class:_.pX("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(w.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.A("web_enable_modern_progress_bar_overlay"),w))},_.k("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+t().startPercent+"%"}}))}}))},"T");
fiJ.idomCompat=!0;var MWq=_.Fp(function(X){var t=_.Is(),G=_.w5(function(w){var z,B,V;a:{var b=(z=X.data())==null?void 0:z.animationActivationTargetId;z=((B=X.data())==null?void 0:B.animationActivationEntityKey)||"";B=(V=X.data())==null?void 0:V.animationActivationEntitySelectorType;if(z&&b)switch(B){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":w=_.Kg(w.entities,"playerStateEntity",z);V=_.gw().resolve(_.jH(_.G2));b=!!(w&&w.videoId===b&&(V==null?0:V.isMiniplayerActive()));b={activated:b,playAnimation:b&&
w.playerState==="PLAYER_STATE_PLAYING"};break a}b=void 0}return b});
_.Em(function(){var w;if((w=G())==null?0:w.activated){var z;if((z=G())==null?0:z.playAnimation){var B;(B=t.lottieEl)==null||B.goToAndPlay(0)}else{var V;(V=t.lottieEl)==null||V.goToAndStop(0)}}},"MDTl2e");
var y=function(){var w,z=!((w=G())==null||!w.activated);if(X.data()){w=X.data();var B=void 0;w.icon&&(B=_.$UG(w.icon),B=oNw(B));var V=void 0,b;if((b=w.backgroundColor)==null?0:b.lightTheme){var e;V={backgroundColor:wt((e=w.backgroundColor)==null?void 0:e.lightTheme,"0.8")}}if(w.text||B||z){if(z&&w.lottieData&&t){e=w.lottieData;var g,F,T;b={animationConfig:{name:e.url,path:e.url,autoplay:(g=e.settings)==null?void 0:g.autoplay,loop:(T=(F=e.settings)==null?void 0:F.loop)!=null?T:!0},animationRef:t}}else b=
void 0;if(z)g=16;else b:switch(w.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":g=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":g=18;break b;default:g=16}z={type:g,text:z&&w.animatedText?w.animatedText:w.text,icon:B,customColors:V,animation:b}}else z=void 0}else z=void 0;return z};
return _.k("yt-thumbnail-badge-view-model",{class:_.cl("yt-thumbnail-badge-view-model-wiz",X.class)},_.k(_.d,{cond:y,then:function(){return _.k(_.X9,{data:function(){return y()}})}}))},"U");var XUt=_.Fp(function(X){var t={},G={};return _.k("yt-thumbnail-bottom-overlay-view-model",{class:_.cl("ytThumbnailBottomOverlayViewModelHost",(t.ytThumbnailBottomOverlayViewModelHostBackground=function(){return X.data().enableGradientBackground},t))},_.k(_.M7,{data:function(){return X.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(y){return _.k(fiJ,{data:y.data,
thumbnailSize:X.thumbnailSize})}}),_.k("div",{class:_.cl("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var y;
return Cb_((y=X.thumbnailSize)==null?void 0:y.call(X))},(G.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var y;
return(y=X.isClip)==null?void 0:y.call(X)},G.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var y;
return!_.A("web_enable_modern_progress_bar_overlay")&&((y=X.thumbnailSize)==null?void 0:y.call(X))==="small"},G))},_.k(_.M7,{data:function(){return X.data().badge}},{thumbnailBadgeViewModel:function(y){return _.k(MWq,{data:y.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.k(_.M7,{data:function(){return X.data().badges}},{thumbnailBadgeViewModel:function(y){return _.k(MWq,{data:y.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"V");
XUt.idomCompat=!0;_.DW(XUt,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.sd,thumbnailSize:_.sd,isClip:_.sd}});var Nm_={calledOnce:!1,state:"visible"},Pbs={calledOnce:!1,state:"hidden"};var v7=_.Fp(function(X){var t=X.data;var G=X.className;X=X.alwaysShow;var y=_.udY(),w={};return _.k("thumbnail-hover-overlay-view-model",{el:_.T7(_.zF(function(){return t().rendererContext})),
class:_.cl("ytThumbnailHoverOverlayViewModelHost",G,(w.ytThumbnailHoverOverlayViewModelHostForceHover=X,w)),"aria-label":function(){var z;return(z=_.Y(t().rendererContext,_.N0))==null?void 0:z.label},
role:function(){return _.yj(t().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.yj(t().rendererContext)!==void 0?0:void 0},
"on:keypress":y},_.k("div",{class:_.cl("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(t().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var z="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:z="ytThumbnailHoverOverlayViewModelStyleCover"}return z})},_.k(_.d,{cond:function(){return t().icon},
then:function(z){return _.k(_.gr,{data:z,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.k(_.d,{cond:function(){return t().text},
then:function(z){return _.k(_.eh,{text:z,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"W");
v7.idomCompat=!0;var $bS=_.Fp(function(X){var t=X.data;return _.k(_.M7,{data:function(){return t==null?void 0:t().overlays}},{thumbnailHoverOverlayViewModel:v7})},"X");
$bS.idomCompat=!0;var tAq={};var GDB=_.Fp(function(X){var t=X.data;var G=X.image;var y=X.state;var w=X.iconType;var z=X.overlays;var B=X.isOverlay;var V=_.VN("div");X=_.J(_.sm(!0,void 0,"sUzEZ"));var b=X.next().value,e=X.next().value,g=function(){return!!t().onTap},F=_.ex(w,"LIVE");
_.Em(function(){var D=t();requestAnimationFrame(function(){if(V.value===null)var h=!0;else{var u=V.value;h=D.badgeText;var W=mnv(D.size);h in tAq?u=tAq[h]:(u=u.clientWidth,tAq[h]=u);(h=u>W)?V.value.style.display="none":V.value.style.visibility="visible"}e(h)})},"SpVcNb");
var T=function(){var D={};return D["yt-spec-avatar-shape__image"]=!0,D["yt-spec-avatar-shape__image--ads-app"]=t().type===1,D};
return _.k("yt-avatar-shape",null,_.k("div",{el:_.T7(inh(g,{keydown:function(D){if(D.key==="Enter"){var h;(h=D.currentTarget)==null||h.click()}},
click:function(D){var h,u;return void((u=(h=t()).onTap)==null?void 0:u.call(h,D))}})),
class:function(){var D={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},h=t();D=(D[h.clusterLayoutConfig?aiG(h.clusterLayoutConfig):liY(h.size)]=!0,D["yt-spec-avatar-shape__button--tappable"]=g(),D);(h=t().avatarButtonCustomClassName)&&(D[h]=!0);return _.pX(D)},
"aria-label":function(){return g()?t().accessibilityText:""},
role:function(){return g()?"button":void 0},
tabindex:function(){return g()?0:void 0}},_.k("div",{class:function(){var D,h=t(),u=y==null?void 0:y(),W=B==null?void 0:B(),c=!((D=h.decorations)==null||!D.includes(2)||h.size!=="medium"&&h.size!=="large"),P=h.size==="tiny"||h.size==="extra-small",l,R,L,x,w6={};
D=(w6["yt-spec-avatar-shape--live-ring"]=!!(((l=h.decorations)==null?0:l.includes(0))&&fil(h.size)),w6["yt-spec-avatar-shape--stories-watched"]=c&&!(u==null||!u.storiesWatched),w6["yt-spec-avatar-shape--stories-unwatched"]=c&&!(u==null?0:u.storiesWatched),w6["yt-spec-avatar-shape--background-border"]=MWh(h.decorations)&&!P,w6["yt-spec-avatar-shape--background-border-thin"]=MWh(h.decorations)&&P,w6["yt-spec-avatar-shape__on-select-border"]=!((R=h.decorations)==null||!R.includes(4)),w6["yt-spec-avatar-shape__white-border"]=
!((L=h.decorations)==null||!L.includes(5)),w6["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((x=h.decorations)==null?0:x.includes(5))&&P),w6["yt-spec-avatar-shape--is-overlay"]=!!W,w6);return _.pX(D)},
style:function(){a:{var D=t().clusterLayoutConfig;if(D){b:{var h=D.numAvatarsInCluster;var u=D.avatarIndex;if(u!==h-1){switch(D.clusterSize){case "small":D="32";break;case "medium":D="36";break;case "40":D="40";break;default:h=void 0;break b}h="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+D+"x"+D+"_avatars_"+h+"_index_"+u+".svg"}else h=void 0}if(h){h=_.Ud({"-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}},_.k("div",{class:function(){var D={};
var h=t();D=(D[h.clusterLayoutConfig?Ljs(h.clusterLayoutConfig):vLE(h.size)]=!0,D["yt-spec-avatar-shape--no-margin"]=MWh(t().decorations),D);return _.pX(D)}},_.k(_.gr,{data:G,
alt:function(){return!g()&&t().accessibilityText?t().accessibilityText:""},
targetWidth:function(){return xn0(t().size)},
targetHeight:function(){return xn0(t().size)},
className:function(){return _.pX(T())}}),_.k(_.d,{cond:function(){var D;
return((D=t().decorations)==null?void 0:D.includes(0))&&fil(t().size)},
then:function(){return _.k("div",{class:function(){var D={};D=(D["yt-spec-avatar-shape__live-badge"]=!0,D["yt-spec-avatar-shape__live-badge--badge-small"]=t().size==="small",D["yt-spec-avatar-shape__live-badge--badge-medium"]=t().size==="medium"||t().size==="48",D["yt-spec-avatar-shape__live-badge--badge-large"]=t().size==="large",D["yt-spec-avatar-shape__live-badge--badge-extra-large"]=t().size==="extra-large"||t().size==="extra-extra-large"||t().size==="giant",D);return _.pX(D)}},_.k(_.d,{cond:function(){return t().badgeText},
then:function(D){return _.k("div",{class:"yt-spec-avatar-shape__badge-text",el:V},D)}}),_.k(_.d,{cond:b,
then:function(){return _.k("div",{class:"yt-spec-avatar-shape__badge-icon"},_.k(_.mw,{icon:F,size:function(){a:switch(t().size){case "extra-large":var D=16;break a;default:D=13}return D}}))}}))}}),_.k(_.d,{cond:function(){var D,h;
return((D=t().decorations)==null?void 0:D.includes(1))||((h=t().decorations)==null?void 0:h.includes(0))&&!fil(t().size)},
then:function(){return _.k("div",{class:function(){var D=t(),h,u,W={};var c=(W["yt-spec-avatar-shape__live-dot"]=!((h=D.decorations)==null||!h.includes(0)||fil(D.size)),W["yt-spec-avatar-shape__new-content"]=!((u=D.decorations)==null||!u.includes(1)),W);return _.pX(c)}})}}),_.k(_.d,{cond:function(){return!!z},
then:function(){return _.k("div",{class:function(){var D={};D=Object.assign((D["yt-spec-avatar-shape__image-overlays"]=!0,D),T());return _.pX(D)}},z==null?void 0:z())}})))))},"Y");
GDB.idomCompat={callbacks:{overlays:!0}};_.al=_.Fp(function(X){function t(){G().endpoint&&_.JH(G().endpoint)}
var G=X.data;var y=X.decorations;var w=X.avatarButtonCustomClassName;var z=X.isOverlay;var B=X.clusterLayoutConfig;return _.k("avatar-view-model",null,_.k(_.d,{cond:function(){return G().image},
then:function(V){return _.k(GDB,{data:function(){return $bY({data:G(),onTap:G().endpoint?t:void 0,decorations:y==null?void 0:y(),badgeText:void 0,accessibilityText:G().accessibilityText,avatarButtonCustomClassName:w==null?void 0:w(),clusterLayoutConfig:B==null?void 0:B()})},
image:V,iconType:"RADAR_LIVE",overlays:function(){return _.k($bS,{data:G})},
isOverlay:z})}}))},"Z");
_.al.idomCompat=!0;_.lD=_.Fp(function(X){var t=X.data;X=X.className;var G=_.VN("yt-decorated-avatar-view-model"),y=function(){return _.Y(t().avatar,_.Hv)},w=_.qt(function(){var z,B=t(),V=y(),b=_.yj(t().rendererContext),e=(z=G.value)!=null?z:void 0,g;
if(V){e={data:B,avatar:V,onTap:b,element:e};z=e.data;B=e.avatar;V=e.onTap;b=e.element;e=e.commandController;V=V?wUG(V,b,e):void 0;b=[];z.liveData&&b.push(0);var F;e=(F=z.liveData)==null?void 0:F.liveBadgeText;F=(g=_.Y(z.rendererContext,_.N0))==null?void 0:g.label;g=$bY({data:B,onTap:V,decorations:b,badgeText:e,accessibilityText:F?F:z.a11yLabel})}else g={size:"medium"};return g},void 0,"H8tk9d");
return _.k("yt-decorated-avatar-view-model",{class:_.cl("yt-decorated-avatar-view-model-wiz",X),el:G},_.k(_.d,{cond:function(){var z;return(z=y())==null?void 0:z.image},
then:function(z){return _.k(GDB,{data:w,image:z,iconType:"RADAR_LIVE",overlays:function(){return _.k($bS,{data:y})}})}}))},"$");
_.lD.idomCompat=!0;_.xK=_.Fp(function(X){var t=function(){var V;return Object.assign({},X.data(),(V=X.overrides)==null?void 0:V.call(X))},G=function(){return _.w2(t().rendererContext)},y=function(){var V=t().avatars,b,e;
return(e=(b=(V==null?0:V[0])?_.Y(V[0],_.Hv):void 0)==null?void 0:b.avatarImageSize)!=null?e:"AVATAR_SIZE_UNKNOWN"},w=function(){return y9_(t())},z=function(){if(t().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var V=void 0;
else if((V=X.decorations)==null?0:V.call(X))V=X.decorations();else{V=t();var b=0;V.avatars&&(b+=V.avatars.length);V.decoratedText&&(b+=1);V=b>1?[3]:[]}return V},B={};
return _.k("yt-avatar-stack-view-model",{el:_.T7(_.zF(function(){return t().rendererContext})),
class:_.cl("yt-avatar-stack-view-model-wiz",X.className,(B["yt-avatar-stack-view-model-wiz--tappable"]=G,B["yt-avatar-stack-view-model-wiz--is-overlay"]=X.isOverlay,B["yt-avatar-stack-view-model-wiz--medium-text"]=X.useMediumText,B)),tabindex:function(){return G()?0:void 0},
role:function(){return G()?"link":void 0},
"aria-label":function(){var V,b;return(b=(V=_.Y(t().rendererContext,_.N0))==null?void 0:V.label)!=null?b:""}},_.k(_.d,{cond:function(){var V;
return t().avatars&&!((V=X.hideAvatar)==null?0:V.call(X))},
then:function(){return _.k("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.k(_.d,{cond:function(){return t().decoratedText},
then:function(V){var b={};return _.k("div",{class:_.cl("yt-avatar-stack-view-model-wiz__text-container",(b["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return y()==="AVATAR_SIZE_XXS"||y()==="AVATAR_SIZE_XS"},b["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var e;
return((e=X.isOverlay)==null?void 0:e.call(X))&&(y()==="AVATAR_SIZE_XXS"||y()==="AVATAR_SIZE_XS")},b)),
style:_.Ud({width:function(){return w().avatarSizeInPx+"px"},
height:function(){return w().avatarSizeInPx+"px"}})},_.k(_.eh,{text:V,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.k("div",{style:function(){return _.Ud(w().avatarStackStyle)()},
class:function(){return w().avatarStackClass}},_.k(_.M7,{data:function(){return w().avatars.reverse()}},{avatarViewModel:function(V,b){return _.k("div",{style:function(){var e,g;
return _.Ud((g=(e=w()).avatarStyle)==null?void 0:g.call(e,b()))()},
class:function(){return w().avatarClass}},_.k(_.al,{data:V.data,
decorations:z,avatarButtonCustomClassName:function(){return w().avatarButtonCustomClassName},
isOverlay:X.isOverlay,clusterLayoutConfig:function(){var e,g;return(g=(e=w()).clusterLayoutConfig)==null?void 0:g.call(e,b())}}))},
decoratedAvatarViewModel:function(V,b){return _.k("div",{style:function(){var e,g;return _.Ud((g=(e=w()).avatarStyle)==null?void 0:g.call(e,b()))()},
class:function(){return w().avatarClass}},_.k(_.lD,{data:V.data}))}})))}}),_.k(_.d,{cond:function(){return t().text},
then:function(V){return _.k(_.eh,{text:V,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"aa");
_.xK.idomCompat=!0;_.DW(_.Fp(function(X){var t=X.data;var G=X.thumbnailSize;return _.k("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.k("div",{class:_.cl("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return zNV(G==null?void 0:G())})},_.k(_.M7,{data:function(){return t().avatarStack}},{avatarStackViewModel:function(y){return _.k(_.xK,{data:y.data,
decorations:[5]})}})))},"ba"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.bR,
thumbnailSize:_.bR}});var y94=_.Fp(function(X){X=_.jx(X,{hidden:!1});var t=X.data;return _.k("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:X.hidden},_.k(_.eh,{text:function(){return t().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.k(_.d,{cond:function(){return t().subtitle},
then:function(){return _.k(_.eh,{text:function(){return t().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ca");
y94.idomCompat=!0;_.DW(y94,"yt-thumbnail-overlay-title-view-model",{props:{data:_.bR,hidden:_.bR}});var wUe=_.Fp(function(X){X=_.jx(X,{isClip:!1});var t=X.data,G=X.thumbnailSize,y={};return _.k("yt-thumbnail-overlay-badge-view-model",{class:_.cl("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(t().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var w="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:w="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return w},function(){return HFY(G==null?void 0:G())},(y["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
X.isClip,y))},_.k(_.M7,{data:function(){return t().thumbnailBadges}},{thumbnailBadgeViewModel:function(w){return _.k(MWq,{data:w.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"da");
wUe.idomCompat=!0;_.DW(wUe,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.bR,thumbnailSize:_.bR,isClip:_.bR}});_.FE(osA);_.up(osA,"yt-page-indicator-view-model",{propNames:["data"]});var fZ=function(){var X=_.O.apply(this,arguments)||this;X.eventSink=function(){return X};
X.disableInteraction=!1;X.noRoundedCorners=!1;X.isPreviewLoading=!1;X.isOriginalAspectRatio=!1;X.computedObjectFit=!1;X.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return X};
_.S(fZ,_.O);_.H=fZ.prototype;
_.H.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:_.A("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"}}};
_.H.onImageLoaded=function(){this.loaded=!0};
_.H.onImageUnloaded=function(){this.loaded=!1};
_.H.computeRichThumbnail=function(X,t,G,y){if(X&&t&&!y&&!_.A("disable_moving_thumbs_handling")&&!G)return t};
_.H.computeImageWidth=function(X,t){return t||9999};
_.H.computeIsOriginalAspectRatio=function(X){return X};
_.H.computeIsLive=function(X){if(X==null?0:X.badges)for(var t=0;t<X.badges.length;t++){var G=X.badges[t];if(G.metadataBadgeRenderer&&G.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(X==null?0:X.thumbnailOverlays)for(t=0;t<X.thumbnailOverlays.length;t++)if(G=X.thumbnailOverlays[t],G.thumbnailOverlayTimeStatusRenderer&&G.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.H.computeObjectFit=function(X,t){return t||(X?"CONTAIN":"")};
_.H.computeNavigationEndpoint=function(X,t,G){return X?t:G};
_.H.computeHasClip=function(X){X=_.J(X||[]);for(var t=X.next();!t.done;t=X.next())if(t.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.H.computeOverlayColor=function(X){var t;return(X==null?0:(t=X.darkColorPalette)==null?0:t.section2Color)?X.darkColorPalette.section2Color:X==null?void 0:X.sampledThumbnailColor};
_.ke.Object.defineProperties(fZ.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return uwG(this.width)}}});
fZ.prototype.onImageUnloaded=fZ.prototype.onImageUnloaded;fZ.prototype.onImageLoaded=fZ.prototype.onImageLoaded;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],fZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(N8S),_.U("design:type",Object)],fZ.prototype,"ytdThumbnailBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],fZ.prototype,"componentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],fZ.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],fZ.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],fZ.prototype,"circular",void 0);
_.E([_.K({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.U("design:type",Object)],fZ.prototype,"richThumbnail",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.U("design:type",Boolean)],fZ.prototype,"hasClip",void 0);_.E([_.K(),_.U("design:type",Object)],fZ.prototype,"eventSink",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],fZ.prototype,"queued",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],fZ.prototype,"richGridThumbnail",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],fZ.prototype,"useExpandableTooltip",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],fZ.prototype,"useUntranslatedNavigationEndpoint",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fZ.prototype,"disableInteraction",void 0);
_.E([_.K({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.U("design:type",Object)],fZ.prototype,"computedNavigationEndpoint",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],fZ.prototype,"nowPlayingEqualizerOnly",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],fZ.prototype,"hidePlaybackStatus",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],fZ.prototype,"objectFit",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fZ.prototype,"noRoundedCorners",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],fZ.prototype,"watchFeedThumbnail",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fZ.prototype,"isPreviewLoading",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.U("design:type",Object)],fZ.prototype,"isOriginalAspectRatio",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.U("design:type",Object)],fZ.prototype,"computedObjectFit",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.U("design:type",Boolean)],fZ.prototype,"isLiveVideo",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],fZ.prototype,"loaded",void 0);_.E([_.K({computed:"computeOverlayColor(data.thumbnail)"}),_.U("design:type",Object)],fZ.prototype,"overlayColor",void 0);_.E([_.K({selector:_.hO_}),_.U("design:type",Boolean)],fZ.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.K(),_.U("design:type",Number)],fZ.prototype,"width",void 0);
_.E([_.C("inlinePreviewIsEnabled"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fZ.prototype,"isPreviewDisabled",null);_.E([_.C("width"),_.U("design:type",String),_.U("design:paramtypes",[])],fZ.prototype,"thumbnailSize",null);_.E([_.WW("image-loaded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fZ.prototype,"onImageLoaded",null);
_.E([_.WW("image-unloaded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fZ.prototype,"onImageUnloaded",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-thumbnail"})],fZ);
var zNB=_.qi()(fZ,"ytd-thumbnail",function(){if(xnR===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);xnR=X}X=xnR;return X},{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 VAE=function(X){var t=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14788_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14788_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(G){HFS(t,G)};
this.onLockupMouseLeaveFn=function(G){G=G.relatedTarget;var y,w;((y=document.getElementsByTagName("ytd-video-preview"))==null?0:(w=y.item(0))==null?0:w.contains(G))||(t.terminateVideoPreview(),Mh(t))};
this.onThumbnailMouseDownFn=function(){t.terminateVideoPreview();Mh(t)};
this.onTouchStart=function(){t.JSC$14788_touched=!0};
this.mediaRenderer=X.mediaRenderer;this.thumbnailElement=X.thumbnailElement;this.lockupElement=X.lockupElement;this.videoPreviewOptsInput=X.videoPreviewOpts;osq(this);XF(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)):
_.Mj(Error("Ch")):_.Mj(Error("Dh")):J9B(this)},gP=function(X){J9B(X);
var t;(t=X.lockupElement)==null||t.removeEventListener("mouseenter",X.onMouseMoveFn);var G;(G=X.lockupElement)==null||G.removeEventListener("mouseleave",X.onLockupMouseLeaveFn);var y;(y=X.lockupElement)==null||y.removeEventListener("touchstart",X.onTouchStart);var w;(w=X.thumbnailElement)==null||w.removeEventListener("mousedown",X.onThumbnailMouseDownFn);Mh(X)},osq=function(X){X.inlinePreviewIsEnabledForUser=_.dV().getState().ui.inlinePreviewIsEnabled;
X.unsubscribeFromInlinePreviewIsEnabled=_.rz(_.dV(),_.hO_,function(t){(X.inlinePreviewIsEnabledForUser=t)||Mh(X)});
X.JSC$14788_unsubscribeFromInlinePreviewIsActive=_.rz(_.dV(),_.SEh,function(t){(X.inlinePreviewIsActive=t)||Mh(X)})},J9B=function(X){X.unsubscribeFromInlinePreviewIsEnabled();
X.unsubscribeFromInlinePreviewIsEnabled=function(){};
X.JSC$14788_unsubscribeFromInlinePreviewIsActive();X.JSC$14788_unsubscribeFromInlinePreviewIsActive=function(){}},HFS=function(X,t){t.buttons>0||(t=_.At("kevlar_lockup_hover_delay",-1),X.JSC$14788_touched&&t>=0?(_.vz.cancelJob(X.videoPreviewJobId),X.videoPreviewJobId=_.CX(_.vz,function(){BMS(X)},t),X.JSC$14788_touched=!1):BMS(X))},TcA=function(X){X.videoPreviewJobId=_.CX(_.vz,function(){var t,G,y,w;
return _.n(function(z){if(z.nextAddress==1){if(!XF(X))return z.return();t=X.getVideoPreviewOpts();if(!t)return z.return();t.isAutoplay=!0;return(y=(G=_.D0(X.mediaRenderer.hostElement,"yt-open-video-preview-action",[t]))&&G[0])?z.yield(G[0],3):z.jumpTo(2)}z.nextAddress!=2&&(y=z.yieldResult===1);y&&BMY((w=X.mediaRenderer)==null?void 0:w.data);_.W$(z)})})},BMS=function(X){!X.previewTriggered&&XF(X)&&(X.inlinePreviewIsActive&&X.terminateVideoPreview(),X.previewTriggered=!0,X.mediaRenderer.isInlinePreviewTriggered=
!0,_.vz.cancelJob(X.videoPreviewJobId),X.videoPreviewJobId=_.CX(_.vz,function(){var t,G,y,w;
return _.n(function(z){if(z.nextAddress==1){if(!XF(X))return z.return();t=X.getVideoPreviewOpts();return t?(y=(G=_.D0(X.mediaRenderer.hostElement,"yt-open-video-preview-action",[t]))&&G[0])?z.yield(G[0],3):z.jumpTo(2):z.return()}z.nextAddress!=2&&(y=z.yieldResult===1);y&&BMY((w=X.mediaRenderer)==null?void 0:w.data);_.W$(z)})}))};
VAE.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var X,t;if((t=(X=this.videoPreviewOptsInput)==null?void 0:X.videoPreviewData)!=null)X=t;else if(X=this.mediaRenderer.data)if(J9V(X))X={inlinePlaybackEndpoint:_.wr(X.inlinePlayerData.onVisible),navigationEndpoint:_.wr(X.onTap),thumbnail:"image"in X?X.image:X.thumbnail,thumbnailOverlays:void 0,accessibilityText:nsV(X)};else if("multipleInlinePlaybackEndpoint"in X){var G=_.Y(_.Y(X.multipleInlinePlaybackEndpoint,WpJ),cJS);if(G!=
null&&G.playerDescriptors){t=[];G=_.J(G.playerDescriptors);for(var y=G.next();!y.done;y=G.next())y=y.value,t.push({inlinePlaybackEndpoint:y.inlinePlaybackEndpoint,navigationEndpoint:y.navigationEndpoint,thumbnail:y.thumbnail,thumbnailOverlays:y.thumbnailOverlays,accessibilityText:nsV(X)});X=t}else X=void 0}else X={inlinePlaybackEndpoint:X.inlinePlaybackEndpoint,navigationEndpoint:X.navigationEndpoint,thumbnail:X.thumbnail,thumbnailOverlays:X.thumbnailOverlays,accessibilityText:nsV(X)};else X=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:X,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var XF=function(X){var t;if(t=X.inlinePreviewIsEnabledForUser)t=(X=X.mediaRenderer.data)?"inlinePlaybackEndpoint"in X&&X.inlinePlaybackEndpoint||J9V(X)&&X.inlinePlayerData||"multipleInlinePlaybackEndpoint"in X&&X.multipleInlinePlaybackEndpoint?!0:!1:!1;return t};
VAE.prototype.terminateVideoPreview=function(){_.sl(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Mh=function(X){_.vz.cancelJob(X.videoPreviewJobId);X.inlinePreviewIsActive=!1;X.previewTriggered=!1;X.mediaRenderer.isInlinePreviewTriggered=!1};var nsB=_.Vc(["#"]),$M=function(){var X=_.O.apply(this,arguments)||this;X.isDisabled=!1;return X};
_.S($M,_.O);_.H=$M.prototype;_.H.configureRendererStamper=function(){return{"data.menu":Il,"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"}}}};
_.H.attached=function(){this.updateInlinePreviewHoverListeners()};
_.H.detached=function(){this.clearInlinePreviewHoverListeners()};
_.H.getMetadata=function(X){var t=[];if(X.metadataText&&Object.keys(X.metadataText).length>0){var G=this.ytRendererBehavior.getSimpleString(X.metadataText);X.upcomingEventData&&X.upcomingEventData.upcomingEventText&&(G=_.X7(G,Number(X.upcomingEventData.startTime)));t.push(G)}else X.shortViewCountText&&t.push(this.ytRendererBehavior.getSimpleString(X.shortViewCountText)),X.publishedTimeText&&t.push(this.ytRendererBehavior.getSimpleString(X.publishedTimeText)),X.upcomingEventData&&X.upcomingEventData.upcomingEventText&&
(G=this.ytRendererBehavior.getSimpleString(X.upcomingEventData.upcomingEventText),t.push(_.X7(G,Number(X.upcomingEventData.startTime))));return t};
_.H.calculateBylineText=function(X){return X.shortBylineText?X.shortBylineText:X.bylineText?X.bylineText:null};
_.H.calculateIsDisabled=function(X){return!!X.isDisabled};
_.H.computeHrefWithDefault=function(X){return this.ytComponentBehavior.computeHref_(X)||_.NNh(nsB)};
_.H.onDetailsTap=function(X){var t=this.data&&this.data.navigationEndpoint;t&&!_.Fa(_.be(X)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.A("kevlar_grid_video_renderer_killswitch")?_.Yt(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t))};
_.H.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14793_inlinePreviewHoverListener=oD({mediaRenderer:this,lockupElement:_.Sm(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Sm(this.hostElement).querySelector("ytd-thumbnail")})};
_.H.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$14793_inlinePreviewHoverListener)==null||gP(X)};
_.H.computeThumbnailWidth=function(X,t){return t&&t>0?t:X?360:210};
_.H.computeShowChannelThumbnail=function(X,t){var G;return t&&!!(X==null?0:(G=X.channelThumbnailSupportedRenderers)==null?0:G.channelThumbnailWithLinkRenderer)};
_.ke.Object.defineProperties($M.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$14793_inlinePreviewHoverListener)==null?0:XF(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
$M.prototype.dataChanged=$M.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],$M.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],$M.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.q(_.JV),_.U("design:type",Object)],$M.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],$M.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$M.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],$M.prototype,"noEndpoints",void 0);_.E([_.K({computed:"calculateBylineText(data)"}),_.U("design:type",Object)],$M.prototype,"bylineText",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],$M.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],$M.prototype,"isDownloading",void 0);_.E([_.K({reflectToAttribute:!0,value:0}),_.U("design:type",Number)],$M.prototype,"width",void 0);_.E([_.K({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.U("design:type",Object)],$M.prototype,"isDisabled",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],$M.prototype,"dataChanged",null);_.E([_.C("lockupIsHovered"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],$M.prototype,"isHovered",null);_.E([_.p({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],$M);
_.N($M,"ytd-grid-video-renderer",function(){if(ruz!==void 0)return ruz;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ruz=X},{mode:_.Cz("kevlar_poly_si_batch_j047")?1:2});var VAt;var te=function(){var X=_.O.apply(this,arguments)||this;X.roundedContainer=!0;X.skipRoundingTop=!1;X.disableTopPadding=!1;X.amsterdamEnabled=_.A("enable_desktop_amsterdam_info_panels");return X};
_.S(te,_.O);te.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
te.prototype.onClick=function(X){var t,G=(t=this.data)==null?void 0:t.sourceEndpoint;!_.Fa(_.be(X),this.hostElement,["A".toString()])&&G&&_.Yt(this.hostElement,"yt-navigate",{endpoint:G})};
_.ke.Object.defineProperties(te.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 X;return!((X=this.data)==null||!X.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=(X=this.data)==null?void 0:X.paragraphMaxLines)!=null?t:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],te.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],te.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],te.prototype,"showVerticalDividers",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],te.prototype,"roundedContainer",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],te.prototype,"skipRoundingTop",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],te.prototype,"disableTopPadding",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],te.prototype,"amsterdamEnabled",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],te.prototype,"showMetadataAtTop",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],te.prototype,"showMetadataBelowTitle",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.menu"),_.U("design:type",Object),_.U("design:paramtypes",[])],te.prototype,"hasMenu",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.truncateParagraphs"),_.U("design:type",Object),_.U("design:paramtypes",[])],te.prototype,"truncateParagraphs",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data.paragraphMaxLines"),_.U("design:type",Number),_.U("design:paramtypes",[])],te.prototype,"paragraphMaxLines",null);_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.C("data.background"),_.U("design:type",Object),_.U("design:paramtypes",[])],te.prototype,"background",null);_.E([_.p({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],te);
_.N(te,"ytd-info-panel-content-renderer",function(){if(VAt!==void 0)return VAt;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return VAt=X},{mode:_.Cz("kevlar_poly_si_batch_j076")?1:2});var bFR;var kDz;var dbt;var eN4;var wg=function(){return _.O.apply(this,arguments)||this};
_.S(wg,_.O);wg.prototype.computeStyle=function(X){return X};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],wg.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.U("design:type",String)],wg.prototype,"style_",void 0);_.E([_.$F({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],wg);
_.N(wg,"yt-channel-thumbnail-with-link-renderer",function(){if(eN4===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;dbt===void 0&&(dbt=document.createElement("template"));var y=dbt;G.call(t,y.content.cloneNode(!0),X.content.firstChild);eN4=X}X=eN4;return X},{mode:2});var zH=function(){var X=_.O.apply(this,arguments)||this;X.modernTypography=_.A("web_modern_typography");return X};
_.S(zH,_.O);zH.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"}}}};
zH.prototype.computeTitleStyle=function(X){return X||null};
zH.prototype.computeAvatarStyle=function(X){return X||null};
zH.prototype.computeShowNavigationButton=function(X,t){return!(X==null||!X.navigationButton||t)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],zH.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.U("design:type",String)],zH.prototype,"titleStyle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.U("design:type",String)],zH.prototype,"avatarStyle",void 0);_.E([_.K(),_.U("design:type",Boolean)],zH.prototype,"hideNavigationButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],zH.prototype,"isModernSd",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zH.prototype,"modernTypography",void 0);
_.E([_.p({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],zH);
_.N(zH,"ytd-rich-list-header-renderer",function(){if(kDz!==void 0)return kDz;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return kDz=X},{mode:_.Cz("kevlar_poly_si_batch_j058")?1:2});var H5=function(){return _.O.apply(this,arguments)||this};
_.S(H5,_.O);H5.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]]"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],H5.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],H5.prototype,"isSearch",void 0);_.E([_.p({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],H5);
_.N(H5,"ytd-preview-card-renderer",function(){if(bFR!==void 0)return bFR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return bFR=X},{mode:1});var jKP;var oy=function(){return _.O.apply(this,arguments)||this};
_.S(oy,_.O);oy.prototype.configureRendererStamper=function(){return{"data.menu":Il}};
oy.prototype.dataChanged=function(){var X=this.get("colorExtractionPalette.section1Color",this.data);X=_.Gq(X);_.Kd(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":X})};
oy.prototype.computeCardStyle=function(X){return this.get("style.value",X)||null};
oy.prototype.dataChanged=oy.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],oy.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],oy.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.U("design:type",String)],oy.prototype,"cardStyle",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oy.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],oy);
_.N(oy,"ytd-compact-channel-recommendation-card-renderer",function(){if(jKP!==void 0)return jKP;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return jKP=X},{mode:1});var gst;var Fre;var Je=function(){var X=_.O.apply(this,arguments)||this;X.alignAuto=!1;X.collapsed=!0;X.isToggled=!1;X.alwaysCollapsed=!1;X.canToggle=!0;X.collapsedHeight=80;X.disableToggle=!1;X.alwaysToggleable=!1;X.reversed=!1;X.shouldUseNumberOfLines=!1;X.recomputeOnResize=!1;X.canToggleJobId=0;X.lastReversed=!1;return X};
_.S(Je,_.O);_.H=Je.prototype;_.H.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.H.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.H.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var X=_.Sm(this.hostElement),t=X.childNodes,G=document.createDocumentFragment(),y=X.childNodes.length-1;y>=0;y--)_.Sm(G).appendChild(t[y]);_.A("enable_shadydom_free_scoped_node_methods")?_.hb(this.hostElement).appendChild(G):X.appendChild(G)}};
_.H.ready=function(){var X=this;_.oL(function(){X.initChildrenObserver()},1)};
_.H.detached=function(){this.detachObserver()};
_.H.toggle=function(X,t){this.canToggle&&(this.isToggled=t,_.Yt(this.hostElement,"yt-refit"),X&&X.stopPropagation())};
_.H.reset=function(){this.childrenChanged()};
_.H.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.H.computeIsMoreVisible=function(X,t){return X&&!t};
_.H.computeShouldUseNumberOfLines=function(X){try{return!!X&&window.CSS.supports("-webkit-line-clamp","1")}catch(t){}return!1};
_.H.computeIsLessVisible=function(X,t){return X&&t};
_.H.observeCollapsedHeightAndMaxLines=function(){var X=this.collapsedHeight,t=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Kd(this.hostElement,{"--ytd-expander-max-lines":""+t,"--ytd-expander-collapsed-height":""}):_.Kd(this.hostElement,{"--ytd-expander-collapsed-height":X+"px","--ytd-expander-max-lines":""})};
_.H.handleMoreTap=function(X){this.disableToggle||(_.Yt(this.hostElement,"yt-expander-more-tapped"),this.toggle(X,!0))};
_.H.handleLessTap=function(X){_.Yt(this.hostElement,"yt-expander-less-tapped");this.toggle(X,!1)};
_.H.initChildrenObserver=function(){var X=this;this.observer=new MutationObserver(function(){X.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.H.childrenChanged=function(){var X=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){qI(function(){X.canToggleJobId=0;X.calculateCanCollapse()})}))};
_.H.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};
_.H.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.H.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("collapsed-changed",this.collapsed))};
_.H.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("is-toggled-changed",this.isToggled))};
_.H.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("can-toggle-changed",this.canToggle))};
_.ke.Object.defineProperties(Je.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Je.prototype.canToggleChangedForBinding=Je.prototype.canToggleChangedForBinding;Je.prototype.isToggledChangedForBinding=Je.prototype.isToggledChangedForBinding;Je.prototype.collapsedChangedForBinding=Je.prototype.collapsedChangedForBinding;Je.prototype.observeCollapsedHeightAndMaxLines=Je.prototype.observeCollapsedHeightAndMaxLines;Je.prototype.onIronResize=Je.prototype.onIronResize;Je.prototype.reversedChanged=Je.prototype.reversedChanged;Je.prototype.toggledChanged=Je.prototype.toggledChanged;
Je.prototype.alwaysToggleableChanged=Je.prototype.alwaysToggleableChanged;_.E([_.q(_.ax),_.U("design:type",Object)],Je.prototype,"ironResizableBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Je.prototype,"alignAuto",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Je.prototype,"collapsed",void 0);_.E([_.K(),_.U("design:type",Object)],Je.prototype,"isToggled",void 0);_.E([_.K(),_.U("design:type",Object)],Je.prototype,"alwaysCollapsed",void 0);
_.E([_.K(),_.U("design:type",Object)],Je.prototype,"canToggle",void 0);_.E([_.K(),_.U("design:type",Object)],Je.prototype,"collapsedHeight",void 0);_.E([_.K(),_.U("design:type",Object)],Je.prototype,"disableToggle",void 0);_.E([_.K(),_.U("design:type",Object)],Je.prototype,"alwaysToggleable",void 0);_.E([_.K(),_.U("design:type",Object)],Je.prototype,"reversed",void 0);_.E([_.K(),_.U("design:type",Number)],Je.prototype,"maxNumberOfLines",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.U("design:type",Object)],Je.prototype,"shouldUseNumberOfLines",void 0);_.E([_.K(),_.U("design:type",Object)],Je.prototype,"recomputeOnResize",void 0);_.E([_.rt("#content"),_.U("design:type",HTMLDivElement)],Je.prototype,"content",void 0);_.E([_.U0("alwaysToggleable"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Je.prototype,"alwaysToggleableChanged",null);
_.E([_.U0("isToggled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Je.prototype,"toggledChanged",null);_.E([_.C("canToggleJobId"),_.U("design:type",Object),_.U("design:paramtypes",[])],Je.prototype,"isResetting",null);_.E([_.cW("reversed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Je.prototype,"reversedChanged",null);
_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Je.prototype,"onIronResize",null);_.E([_.cW("maxNumberOfLines","collapsedHeight"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Je.prototype,"observeCollapsedHeightAndMaxLines",null);_.E([_.cW("collapsed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Je.prototype,"collapsedChangedForBinding",null);
_.E([_.cW("isToggled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Je.prototype,"isToggledChangedForBinding",null);_.E([_.cW("canToggle"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Je.prototype,"canToggleChangedForBinding",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-expander"})],Je);
_.N(Je,"ytd-expander",function(){if(Fre!==void 0)return Fre;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Fre=X},{mode:1});var B5=function(){return _.O.apply(this,arguments)||this};
_.S(B5,_.O);B5.prototype.computeIsCarousel=function(X){return!!X.isCarousel};
B5.prototype.observeLightsourcePalette=function(){var X,t=(X=this.data)==null?void 0:X.vibrantsourceColorPaletteData;t&&_.fX(this.hostElement,t)};
B5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
B5.prototype.observeLightsourcePalette=B5.prototype.observeLightsourcePalette;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],B5.prototype,"data",void 0);_.E([_.K({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],B5.prototype,"isCarousel",void 0);
_.E([_.cW("data.vibrantsourceColorPaletteData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],B5.prototype,"observeLightsourcePalette",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],B5);
_.N(B5,"ytd-media-upsell-renderer",function(){if(gst!==void 0)return gst;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return gst=X},{mode:2});var TMq;var n$=function(){var X=_.O.apply(this,arguments)||this;X.JSC$14821_playerEvents=new Map;X.listeningToPlayer=!1;X.startX=0;X.active=!1;X.shouldShowButtons=_.A("web_buttons_hidden_killswitch");X.isHighlighted=!1;X.useHighlightStyling=_.A("web_enable_deeper_metadata_highlight_styling");X.modern=_.A("kevlar_modern_sd");X.enableProblemWalkthrough=_.A("problem_walkthrough_sd");return X};
_.S(n$,_.O);_.H=n$.prototype;
_.H.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}}}}}};
_.H.created=function(){this.JSC$14821_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.H.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Ik(this,this.onRepeatButtonToggle));_.A("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Ik(this,this.onActiveUpdate))};
_.H.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Ik(this,this.onRepeatButtonToggle));_.A("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Ik(this,this.onActiveUpdate))};
_.H.onDataChanged=function(){this.removePlayerListeners()};
_.H.onColorPaletteChange=function(){var X={},t;if(_.Lp()==="USER_INTERFACE_THEME_DARK"&&((t=this.data)==null?0:t.darkColorPalette)){var G=this.data.darkColorPalette;X["--ytd-macro-markers-list-item-background-color"]=_.yY(this.get("section2Color",G))}else{var y;_.Lp()==="USER_INTERFACE_THEME_LIGHT"&&((y=this.data)==null?0:y.lightColorPalette)&&(G=this.data.lightColorPalette,X["--ytd-macro-markers-list-item-background-color"]=_.yY(this.get("section3Color",G)))}G?(X["--ytd-macro-markers-list-item-title-color"]=
_.yY(this.get("primaryTitleColor",G)),X["--ytd-macro-markers-list-item-secondary-color"]=_.yY(this.get("secondaryTitleColor",G)),X["--ytd-macro-markers-list-item-timestamp-background-color"]=_.yY(this.get("section1Color",G)),this.customButtonProperties={customColors:{color:_.yY(this.get("primaryTitleColor",G))}},this.useColorSampling=!0):(X["--ytd-macro-markers-list-item-background-color"]="initial",X["--ytd-macro-markers-list-item-title-color"]="initial",X["--ytd-macro-markers-list-item-secondary-color"]=
"initial",X["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Kd(this.hostElement,X)};
_.H.onEndpointMouseDown=function(X){this.startX=X.clientX};
_.H.onEndpointClick=function(X){var t=this,G,y,w;return _.n(function(z){if(z.nextAddress==1){if(t.startX!==X.clientX)return X.preventDefault(),z.return();t.data&&t.ytRendererBehavior.logExplicitClick(t.data);if(!t.seekWithAnimationOnClick)return z.jumpTo(0);if(X.button!==0||X.shiftKey||X.altKey||X.metaKey||X.ctrlKey||_.Fa(_.be(X),t.hostElement,["BUTTON".toString()]))return z.return();X.stopPropagation();X.preventDefault();return t.data?z.yield(_.DR().getPlayerPromise(),3):z.return()}G=z.yieldResult;
w=(y=_.Y(t.data.onTap,_.nq))==null?void 0:y.startTimeSeconds;w!==void 0&&G.seekToTimeWithAnimation(w*1E3,_.bu(t.data.title));_.W$(z)})};
_.H.computeLayout=function(X){return X};
_.H.computeIsHighlighted=function(X){return!!X};
_.H.computeCarouselType=function(X){return X};
_.H.hideModernCarousel=function(X){return this.modern&&this.hideThumbnail(X)};
_.H.hideThumbnail=function(X){return this.enableProblemWalkthrough&&X!==null&&X==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.H.onRepeatButtonToggle=function(X){var t=this;X.detail.toggled&&_.DR().getPlayerPromise().then(function(G){t.ytPlayerListenerBehavior.listenToPlayerEvents(G,t.JSC$14821_playerEvents);t.listeningToPlayer=!0})};
_.H.onLoopRangeChange=function(X){var t=_.Sm(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(t){var G=t.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",t.polymerController.data);if(G){var y=Number(G.endTimeMs);if(Number(G.startTimeMs)!==(X==null?void 0:X.startTimeMs)||y!==(X==null?void 0:X.endTimeMs))t.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.H.removePlayerListeners=function(){var X=this;this.listeningToPlayer&&_.DR().getPlayerPromise().then(function(t){X.ytPlayerListenerBehavior.unlistenFromPlayerEvents(t,X.JSC$14821_playerEvents);X.listeningToPlayer=!1})};
_.H.onActiveUpdate=function(X){this.active=X.detail.active};
n$.prototype.onColorPaletteChange=n$.prototype.onColorPaletteChange;n$.prototype.onDataChanged=n$.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],n$.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],n$.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],n$.prototype,"useCustomColors",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],n$.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],n$.prototype,"shouldShowButtons",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.U("design:type",String)],n$.prototype,"layout",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.U("design:type",Object)],n$.prototype,"isHighlighted",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],n$.prototype,"useHighlightStyling",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],n$.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],n$.prototype,"enableProblemWalkthrough",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.U("design:type",String)],n$.prototype,"carouselType",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],n$.prototype,"useColorSampling",void 0);_.E([_.K(),_.U("design:type",Boolean)],n$.prototype,"seekWithAnimationOnClick",void 0);_.E([_.K(),_.U("design:type",Object)],n$.prototype,"customButtonProperties",void 0);
_.E([_.rt("#repeat-button"),_.U("design:type",HTMLElement)],n$.prototype,"repeatButton",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],n$.prototype,"onDataChanged",null);_.E([_.cW("data.lightColorPalette","data.darkColorPalette"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],n$.prototype,"onColorPaletteChange",null);_.E([_.p({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],n$);
_.N(n$,"ytd-macro-markers-list-item-renderer",function(){if(TMq!==void 0)return TMq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return TMq=X},{mode:1});var A9t;var Yfq;var VV=function(){var X=_.O.apply(this,arguments)||this;X.modernTypography=_.A("web_modern_typography");return X};
_.S(VV,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],VV.prototype,"ytRendererBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],VV.prototype,"modernTypography",void 0);_.E([_.K(),_.U("design:type",Object)],VV.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],VV);
_.N(VV,"ytd-title-and-button-list-header-renderer",function(){if(Yfq!==void 0)return Yfq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Yfq=X},{mode:1});var sKq;var DbR=new _.FB("BUTTON_RENDERER_WIZ_TOKEN"),SfR=new _.FB("BUTTON_RENDERER_TOKEN");_.bZ=_.Fp(function(X){var t=_.gw().resolve(_.jH(DbR));if(t)return _.k(t,Object.assign({},X));var G=_.gw().resolve(SfR);return G?_.k($sV,null,function(){return _.k(bC,null,function(){var y,w,z,B,V,b,e,g,F,T,D,h;return void G(X.data(),{onButtonClickCallback:X.onButtonClickCallback,shouldShowIcons:(y=X.shouldShowIcons)==null?void 0:y.call(X),icon:(w=X.icon)==null?void 0:w.call(X),processAllEndpoints:(z=X.processAllEndpoints)==null?void 0:z.call(X),preventDefault:(B=X.preventDefault)==null?void 0:B.call(X),
stopPropagation:(V=X.stopPropagation)==null?void 0:V.call(X),disableButtonRendererClickHandling:(b=X.disableButtonRendererClickHandling)==null?void 0:b.call(X),className:(e=X.className)==null?void 0:e.call(X),buttonOverrides:(g=X.buttonOverrides)==null?void 0:g.call(X),forceModernIconButton:(F=X.forceModernIconButton)==null?void 0:F.call(X),isSubscribe:(T=X.isSubscribe)==null?void 0:T.call(X),alignByText:(D=X.alignByText)==null?void 0:D.call(X),forceDisabled:(h=X.forceDisabled)==null?void 0:h.call(X)})})}):
_.k(_.gn,null)},"ea");
_.bZ.idomCompat=!0;var hN4=_.Fp(function(X){var t=X.data,G=_.ex(X.useSquareAspectRatio,!1);return _.k("dismissed-mini-game-card-view-model",null,_.k(_.d,{cond:function(){var y,w;return(y=t().responseText)==null?void 0:(w=y.runs)==null?void 0:w.length},
then:function(){var y={};return _.k("div",{class:_.cl("yt-mini-game-card-view-model__dismissed-card",(y["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!G()},y["yt-mini-game-card-view-model--dismissed-square-card"]=G,y))},_.k("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.k(_.d,{cond:function(){return t().responseText.runs[0].text},
then:function(w){return _.k("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:w},w)}}),_.k(_.M7,{data:function(){return t().buttons}},{buttonRenderer:_.bZ,
buttonViewModel:_.QK})))}}))},"fa");var QKJ=_.Fp(function(X){X=_.jx(X,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var t=X.data,G=X.useFullWidth,y=X.isDesktopWeb,w=X.addSearchResultTopMargin,z=function(){return t().layout},B=function(){return t().title},V=function(){return t().metadataText?t().metadataText:t().genre},b=function(){return t().channelName},e=function(){return t().image},g=function(){return t().colorPalette},F=function(){return t().actionButton},T=function(){return t().overflowButton},
D=function(){return t().avatar},h=function(){var P={};
P=_.cl("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(P["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return y()},P));
return _.k("div",{class:P},_.k(ZF4,{imageData:e,colorPalette:g}),_.k(qft,{onTap:function(){return t().onTap},
imageData:e,accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
isDesktopWeb:y}),_.k(_.d,{cond:function(){return!y()},
then:function(){return _.k(_.gn,null,_.k(CBt,{layout:z,colorPalette:g,isDesktopWeb:y,overflowButton:T,avatar:D,onTap:function(){return t().onTap},
genre:V,title:B,channelName:b}),_.k(KrB,{actionButton:F}))}}))},u=function(){var P={};
P=_.cl((P["yt-mini-game-card-view-model--search-result-desktop"]=function(){return y()},P["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!y()},P["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return w()},P));
return _.k("div",{class:P},h(),_.k(OFq,{description:function(){return t().description},
isDesktopWeb:y,title:B,genre:V,onTap:function(){return t().onTap},
actionButton:F,overflowButton:T,avatar:D,channelName:b}))},W=function(){var P={};
P=_.cl("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(P["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return y()},P["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return y()&&t().width===135},P["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return y()},P["yt-mini-game-card-view-model--big-metadata-font"]=function(){return t().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},P["yt-mini-game-card-view-model--use-full-width"]=
function(){return G()},P["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!F()},P));
return _.k("div",{class:P},_.k(uth,{colorPalette:g,isDesktopWeb:y,onTap:function(){return t().onTap},
accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
actionButton:F,imageData:e}),_.k(CBt,{layout:z,colorPalette:g,isDesktopWeb:y,overflowButton:T,avatar:D,onTap:function(){return t().onTap},
genre:V,title:B,channelName:b}))},c=function(){var P={};
P=_.cl("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(P["yt-mini-game-card-view-model--square-card-desktop"]=function(){return y()},P["yt-mini-game-card-view-model--use-full-width"]=function(){return G()},P));
return _.k("div",{class:P},_.k(qft,{onTap:function(){return t().onTap},
imageData:e,accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
isDesktopWeb:y}),_.k(CBt,{layout:z,colorPalette:g,isDesktopWeb:y,overflowButton:T,avatar:D,onTap:function(){return t().onTap},
genre:V,title:B,channelName:b}))};
return _.k("mini-game-card-view-model",{class:X.className},_.k(_.P0,null,_.k(_.rn,{when:function(){return z()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return W()}),_.k(_.rn,{when:function(){return z()==="MINI_APP_LAYOUT_SQUARE"}},function(){return c()}),_.k(_.rn,{when:function(){return z()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return u()})))},"ga");
QKJ.idomCompat=!0;var KrB=_.Fp(function(X){var t=_.ex(X.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.k(_.M7,{data:X.actionButton},{buttonViewModel:function(G){return _.k("div",{class:t},_.k(_.QK,{data:G.data}))}})},"ha"),qft=_.Fp(function(X){var t=X.onTap;
var G=X.imageData;var y=X.accessibilityText;var w=X.overlayBadgeText;var z=X.iconName;var B=X.unplayableInlinePlaybackIconName;X=X.isDesktopWeb;return _.k(_.J4,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:t},_.k(_.gr,{data:G,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(y==null?void 0:y())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.k(IrB,{overlayBadgeText:w,iconName:z,unplayableInlinePlaybackIconName:B,isDesktopWeb:X}))},"ia"),IrB=_.Fp(function(X){var t=X.overlayBadgeText;
var G=X.iconName;var y=X.unplayableInlinePlaybackIconName;var w=X.isDesktopWeb;return _.k("div",{class:"yt-mini-game-card-view-model__badge-container"},_.k(_.d,{cond:G,then:function(z){return _.k("div",{class:"yt-mini-game-card-view-model__badge"},_.k("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.k(_.mw,{icon:z,className:"yt-mini-game-card-view-model__icon",size:12}),_.k("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},t)))}}),_.k(_.d,{cond:function(){return!G()&&
t()},
then:function(){return _.k("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},t)}}),_.k(_.d,{cond:function(){return y()&&w()},
then:function(){return _.k("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.k(_.mw,{icon:y,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ja"),ZF4=_.Fp(function(X){var t=X.colorPalette;
var G=X.imageData;var y=function(){return t().vibrantColorPalette?t().vibrantColorPalette.section2Color:t().sectionTwoColor};
return _.k(_.gn,null,_.k("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Ud({"background-color":function(){return wt(y(),"1")}})}),_.k("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Ud({"background-image":function(){return"url("+G().sources[0].url+")"}})}),_.k("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Ud({background:function(){return"linear-gradient(180deg,\n    "+wt(y(),".8")+" 0%,\n    "+wt(y(),".4")+" 25%,\n    "+wt(t().vibrantColorPalette?t().vibrantColorPalette.section4Color:t().sectionFourColor,".8")+" 100%)"}})}))},"ka"),CBt=_.Fp(function(X){var t=X.layout;
var G=X.colorPalette;var y=X.overflowButton;var w=X.avatar;var z=X.onTap;var B=X.title;var V=X.channelName;var b=X.genre;var e=function(){var g;return t()!=="MINI_APP_LAYOUT_SQUARE"&&((g=G())==null?0:g.textPrimaryColor)?"color: "+wt(G().textPrimaryColor,".7"):""};
return _.k("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.k(_.d,{cond:w,then:function(){return _.k("div",{class:"yt-mini-game-card-view-model__avatar"},_.k(_.M7,{data:w},{avatarViewModel:_.al}))}}),_.k(_.J4,{command:z,
className:"yt-mini-game-card-view-model__metadata-details"},_.k("h3",{class:"yt-mini-game-card-view-model__title",title:B},B),_.k(_.d,{cond:w,then:function(){return _.k("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.k("span",{class:"yt-mini-game-card-view-model__genre",title:V,style:e},V),_.k("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:e},b))},
else:function(){return _.k("span",{class:"yt-mini-game-card-view-model__genre",title:b},b)}})),_.k("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.k(_.M7,{data:y},{buttonViewModel:function(g){var F=g.data;
return _.k(_.QK,{data:function(){return Object.assign({},F(),{customFontColor:t()==="MINI_APP_LAYOUT_SINGLETON"?F().customFontColor:void 0})}})}})))},"la"),uth=_.Fp(function(X){var t=X.colorPalette;
var G=X.isDesktopWeb;var y=X.onTap;var w=X.accessibilityText;var z=X.overlayBadgeText;var B=X.iconName;var V=X.unplayableInlinePlaybackIconName;var b=X.actionButton;X=X.imageData;return _.k("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.k(ZF4,{imageData:X,colorPalette:t}),_.k(qft,{onTap:y,imageData:X,accessibilityText:w,overlayBadgeText:z,iconName:B,unplayableInlinePlaybackIconName:V,isDesktopWeb:G}),_.k(_.d,{cond:function(){return b==null?void 0:b()},
then:function(){return _.k(KrB,{actionButton:b})}}))},"ma"),OFq=_.Fp(function(X){var t=X.description;
var G=X.isDesktopWeb;var y=X.title;var w=X.genre;var z=X.onTap;var B=X.actionButton;var V=X.overflowButton;var b=X.avatar;X=X.channelName;var e={};e=_.cl("yt-mini-game-card-view-model--search-result-metadata-wrapper",(e["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=G,e["yt-mini-game-card-view-model--show-unplayable-on-hover"]=G,e["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!G()},e));
var g={};g=_.cl("yt-mini-game-card-view-model__search-result-info-row",(g["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!G()},g));
return _.k("div",{class:e},_.k("div",{class:g},_.k(_.J4,{command:z,className:"yt-mini-game-card-view-model__metadata-details"},_.k("h3",{class:"yt-mini-game-card-view-model__title",title:y},y),_.k("span",{class:"yt-mini-game-card-view-model__genre",title:w},w)),_.k(KrB,{actionButton:B,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.k("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.k(_.M7,{data:V},{buttonViewModel:_.QK}))),_.k("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.k("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.k("div",{class:"yt-mini-game-card-view-model__avatar"},_.k(_.M7,{data:b},{avatarViewModel:function(F){var T=F.data;return _.k(_.al,{data:function(){return Object.assign({},T(),{avatarImageSize:G()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.k(_.J4,{command:z,
className:"yt-mini-game-card-view-model__description"},_.k("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},X)),_.k(_.J4,{command:z,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.k("div",null)))),_.k(_.d,{cond:G,then:function(){return _.k(_.J4,{command:z,className:"yt-mini-game-card-view-model__description"},t)}}))},"na");_.DW(QKJ,"mini-game-card-view-model",{props:{data:_.bR,className:_.bR,useFullWidth:_.bR,isDesktopWeb:_.bR,addSearchResultTopMargin:_.bR}});_.DW(hN4,"dismissed-mini-game-card-view-model",{props:{data:_.bR,useSquareAspectRatio:_.bR}});var kM=function(){var X=_.O.apply(this,arguments)||this;X.isSearch=!1;X.isRichGrid=!1;return X};
_.S(kM,_.O);_.H=kM.prototype;_.H.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.H.dismissibleItemOnYtServiceRequestSent=function(X,t){t.actions&&this.dismissibleItemProcessActions(X,t.actions)};
_.H.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.H.dataChanged=function(){this.dismissibleItemReset()};
_.H.dismissibleItemProcessActions=function(X,t){for(var G=0;G<t.length;G++){var y=t[G];_.Y(y,_.Et)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.Y(y,_.Et)),X.stopPropagation())}};
_.H.dismissibleItemHandleReplaceEnclosingAction=function(X){this.dismissedRenderer=X.item;this.isDismissed=!0};
_.ke.Object.defineProperties(kM.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var X;return!!this.data&&!((X=this.dismissedRenderer)==null?0:X.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.dismissedRenderer)==null||!X.notificationMultiActionRenderer)}}});
kM.prototype.dataChanged=kM.prototype.dataChanged;kM.prototype.dismissibleItemOnRequestSent=kM.prototype.dismissibleItemOnRequestSent;kM.prototype.dismissibleItemOnYtServiceRequestSent=kM.prototype.dismissibleItemOnYtServiceRequestSent;_.E([_.K(),_.U("design:type",Object)],kM.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kM.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],kM.prototype,"isDismissed",void 0);
_.E([_.K(),_.U("design:type",Object)],kM.prototype,"dismissedRenderer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kM.prototype,"isRichGrid",void 0);_.E([_.C("data.layout"),_.U("design:type",Object),_.U("design:paramtypes",[])],kM.prototype,"useSquareAspectRatio",null);_.E([_.C("data","dismissedRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],kM.prototype,"showCard",null);
_.E([_.C("data","dismissedRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],kM.prototype,"showDismissed",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],kM.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.E([_.WW("yt-service-request-sent-button-renderer"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],kM.prototype,"dismissibleItemOnRequestSent",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kM.prototype,"dataChanged",null);_.E([_.$F({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],kM);
_.N(kM,"ytd-mini-game-card-view-model",function(){if(sKq!==void 0)return sKq;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return sKq=X},{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var Wr4;var c9e;var dg=function(){return _.du.apply(this,arguments)||this};
_.S(dg,_.du);dg.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
dg.prototype.getContinuationUrl=function(X){var t={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(t.itct=this.data.clickTrackingParams);return _.ns(X,t)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dg.prototype,"data",void 0);_.E([_.$F({is:"yt-reload-continuation",noInjection:!0})],dg);var pUR;var r9t;var e1=function(){var X=_.O.apply(this,arguments)||this;X.notificationData={};return X};
_.S(e1,_.O);_.H=e1.prototype;_.H.isMenuExpanded=function(X){return X&&X.length<=1?"undefined":"false"};
_.H.dataChanged_=function(){this.selected=void 0;var X=this.computeSelectedIndex_(this.data);X>=0&&(this.selected=X);X=this.data&&this.data.length>1;_.Zk(this.hostElement,"has-items",X);_.Sm(this.hostElement).querySelector("#label").tabIndex=X?0:-1};
_.H.onDropdownOpen=function(){var X=_.lw();if(this.parentTrackingParams&&this.data){var t=_.i$(this.parentTrackingParams);this.data.forEach(function(G){X&&t&&G.trackingParams&&(G=_.i$(G.trackingParams),_.w9(X,t,G),_.o$(X,[G]))})}else this.parentTrackingParams||_.Mj(new _.NJ("No parent tracking params passed in for yt-dropdown-menu."))};
_.H.hasNotification=function(X){var t;if(X.targetId&&((t=this.notificationData)==null?0:t.targetId)){var G;return X.targetId===((G=this.notificationData)==null?void 0:G.targetId)}};
_.H.computeSelectedIndex_=function(X){if(X)for(var t=0,G=X.length;t<G;t++)if(X[t].selected)return t;return-1};
_.H.computeLabel_=function(X){return this.data&&X!=void 0?this.data[X].title:""};
_.H.computeShowIcon_=function(X,t){return!t&&!!X};
_.H.computeVerticalOffset_=function(X){return X?36:0};
_.H.computeEndpoint_=function(X){return X.endpoint||X.navigationEndpoint};
_.H.onLabelClick_=function(X){this.data&&this.data.length<=1?X.stopPropagation():this.menuExpanded="true"};
_.H.onIronActivate_=function(X){X=X.detail.item;var t=_.Sm(this.hostElement).querySelector("#repeat").itemForElement(X);if(t&&t.trackingParams){var G=_.lw(),y=_.i$(t.trackingParams);G&&_.BK(G,y)}if(t&&t.serviceEndpoint)_.A("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(t.serviceEndpoint):_.hE(this.hostElement,[t.serviceEndpoint]),_.Yt(this.hostElement,"yt-playlist-reloading");else a:{if((t=X.querySelector("yt-supported-renderers"))&&
(t=t.rendererElement)&&t.is=="yt-reload-continuation"){t.trigger();break a}(X=X.querySelector("yt-reload-continuation"))&&X.trigger()}};
_.H.onTap_=function(X){X.preventDefault()};
_.H.onItemTap_=function(X){this.ytEndpointBehavior.onEndpointTap_(X)};
_.H.onLinkFocus_=function(X){try{var t=X.target}catch(y){}if(t){var G=t.querySelector("tp-yt-paper-item");G&&_.Jm(this,"focus",function(){G.focus()})}};
_.H.onMenuClose_=function(){this.menuExpanded="false"};
_.H.isLabelIconActive_=function(X){return X==="true"};
_.H.computeHasSubtitle_=function(X){return!!X};
_.H.computeHrefForItem_=function(X){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(X))};
_.H.updateSelectedFromBinding=function(X){this.selected=X.detail.value};
_.ke.Object.defineProperties(e1.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
e1.prototype.onMenuClose_=e1.prototype.onMenuClose_;e1.prototype.onTap_=e1.prototype.onTap_;e1.prototype.onIronActivate_=e1.prototype.onIronActivate_;e1.prototype.onDropdownOpen=e1.prototype.onDropdownOpen;e1.prototype.dataChanged_=e1.prototype.dataChanged_;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.pv.YtEndpointBehavior),_.U("design:type",Object)],e1.prototype,"ytEndpointBehavior",void 0);
_.E([_.K(),_.U("design:type",Array)],e1.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],e1.prototype,"parentTrackingParams",void 0);_.E([_.K(),_.U("design:type",Object)],e1.prototype,"selected",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],e1.prototype,"useLabel",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],e1.prototype,"useComputedAriaLabel",void 0);_.E([_.K(),_.U("design:type",String)],e1.prototype,"icon",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],e1.prototype,"iconLabel",void 0);_.E([_.K(),_.U("design:type",String)],e1.prototype,"ariaLabel",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],e1.prototype,"disabled",void 0);_.E([_.K({computed:"isMenuExpanded(data)"}),_.U("design:type",String)],e1.prototype,"menuExpanded",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],e1.prototype,"closeOnActivate",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.A("web_modern_buttons")}),_.U("design:type",Boolean)],e1.prototype,"modernButtons",void 0);_.E([_.K(),_.U("design:type",Object)],e1.prototype,"notificationData",void 0);_.E([_.C("ariaLabel, selected"),_.K(),_.U("design:type",String),_.U("design:paramtypes",[])],e1.prototype,"computedAriaLabel",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],e1.prototype,"dataChanged_",null);
_.E([_.WW("paper-dropdown-open"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],e1.prototype,"onDropdownOpen",null);_.E([_.WW("iron-activate"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],e1.prototype,"onIronActivate_",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],e1.prototype,"onTap_",null);
_.E([_.WW("iron-overlay-closed"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],e1.prototype,"onMenuClose_",null);_.E([_.$F({is:"yt-dropdown-menu",disableElementRegistration:!0})],e1);
_.N(e1,"yt-dropdown-menu",function(){if(r9t===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;pUR===void 0&&(pUR=document.createElement("template"));var y=pUR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);r9t=X}X=r9t;return X},{mode:2});var j1=function(){var X=_.O.apply(this,arguments)||this;X.hasNotification=!1;return X};
_.S(j1,_.O);j1.prototype.computeId=function(X){return X};
j1.prototype.computeHorizontalAlign=function(X){return X?"right":"left"};
j1.prototype.computeAccessibilityLabel=function(X){var t,G;return((t=X.accessibility)==null?void 0:(G=t.accessibilityData)==null?void 0:G.label)||null};
j1.prototype.notificationDataChanged=function(){var X;this.hasNotification=!!this.notificationData&&!((X=this.data)==null?0:X.icon)};
j1.prototype.notificationDataChanged=j1.prototype.notificationDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.wG.YtLiveChatTooltipTargetingBehavior),_.U("design:type",Object)],j1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],j1.prototype,"data",void 0);_.E([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.U("design:type",String)],j1.prototype,"id",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],j1.prototype,"isRightAligned",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],j1.prototype,"disabled",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],j1.prototype,"closeOnActivate",void 0);_.E([_.K(),_.U("design:type",Object)],j1.prototype,"notificationData",void 0);_.E([_.K(),_.U("design:type",Object)],j1.prototype,"hasNotification",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],j1.prototype,"useComputedAriaLabel",void 0);_.E([_.cW("notificationData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],j1.prototype,"notificationDataChanged",null);_.E([_.$F({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],j1);
_.N(j1,"yt-sort-filter-sub-menu-renderer",function(){if(c9e===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Wr4===void 0&&(Wr4=document.createElement("template"));var y=Wr4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);c9e=X}X=c9e;return X},{mode:2});var NMY=_.rr(bF0);_.FE(bF0);_.DW(NMY,"place-data-view-model",{props:{data:_.bR}});var PBt=new _.FB("INLINE_PLAYBACK_HOOK_TOKEN");var EsS=function(X){this.setActiveSlideIndex=X;this.jobIds=[];this.isSlideshowPlaying=!1},RNB=function(X,t){X.isSlideshowPlaying||(X.isSlideshowPlaying=!0,Ubt(X),mbe(X,t,0))},Ubt=function(X){_.CX(_.vz,function(){X.setActiveSlideIndex(0)},1)},mbe=function(X,t,G){X.jobIds.push(_.CX(_.vz,function(){var y=G<t-1?G+1:0;
X.setActiveSlideIndex(y);mbe(X,t,y)},1800))};var iFY=new _.FB("IMAGE_ON_LOAD_HANDLER_TOKEN");var LrP=_.Fp(function(X){return _.k("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.k(_.d,{cond:function(){var t;return(t=X.data())==null?void 0:t.thumbnail},
then:function(t){return _.k(_.gr,{data:t,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"oa");_.vsR=_.Fp(function(X){var t=X.data;var G=X.lockupExperiments;X={};return _.k("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.k("div",{class:_.cl("ytThumbnailOverlayButtonViewModelButton",(X.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var y;return G&&((y=G())==null?void 0:y.useLegacySizedIconButton)},X))},_.k(_.M7,{data:function(){return t().overlayButton}},{buttonViewModel:function(y){return _.k(_.QK,{data:y.data,
buttonOverrides:function(){var w;return G&&((w=G())==null?0:w.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"pa");
_.vsR.idomCompat=!0;var arJ=_.Fp(function(X){return _.k("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.NI(function(t){t.preventDefault();return!1})},_.k(_.M7,{data:function(){return X.data().buttons}},{toggleButtonViewModel:function(t){return _.k("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.k(_.Lv,{data:t.data}))}}))},"qa");
arJ.idomCompat=!0;var lrh=_.Fp(function(X){var t=function(){var G;return((G=_.Y(X.data().rendererContext,_.N0))==null?void 0:G.label)||""};
return _.k("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.k(_.d,{cond:function(){return X.data().image},
then:function(){return _.k("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.k(_.gr,{data:function(){return X.data().image},
alt:t}))}}),_.k(_.d,{cond:function(){return X.data().text},
then:function(){return _.k("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return X.data().text})}}))},"ra");_.gg=_.Fp(function(X){var t=[],G=function(){var T,D;return uwG((T=X.width)==null?void 0:T.call(X),(D=X.height)==null?void 0:D.call(X))},y=_.gw().resolve(_.jH(iFY)),w=_.nl("yt-thumbnail-view-model",function(){t.push("elRef.value set");
var T;(T=X.playbackRef)==null||T.call(X,{thumbnailElRef:w,thumbnail:X.data().image,thumbnailOverlays:X.data().overlays,thumbnailSize:G()})});
_.LY(function(){t.push("onInit");_.Um(function(){t.push("onCleanup")})});
var z=_.w5(dbE),B=function(){var T,D;return(D=(T=X.aspectRatio)==null?void 0:T.call(X))!=null?D:0},V=function(){return(X.data().image?_.Xbv(X.data().image):B())<=1&&B()===0},b=function(){return V()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},e=function(){w.value||_.Mj(new _.NJ("Thumbnail elRef.value is null",t.join("\n")));
y&&w.value&&y(w.value)},g=function(){var T,D;
return((T=X.hovered)==null?void 0:T.call(X))&&G()!=="large"&&((D=X.data().overlays)==null?void 0:D.some(function(h){return _.Y(h,UW4)}))},F={};
return _.k("yt-thumbnail-view-model",{class:_.cl("yt-thumbnail-view-model",X.className,function(){return gsE(B())},function(){var T,D;
a:{var h=G(),u=(T=X.disableRounding)==null?void 0:T.call(X);T=(D=X.isClip)==null?void 0:D.call(X);if(!u&&!T)switch(h){case "large":D="yt-thumbnail-view-model--large";break a;case "small":D="yt-thumbnail-view-model--small";break a;default:D="yt-thumbnail-view-model--medium";break a}D=void 0}return D},(F["yt-thumbnail-view-model--cinematic"]=V,F)),
style:_.Ud({"background-color":function(){var T,D=V()?(T=X.data().backgroundColor)==null?void 0:T.lightTheme:void 0;return D?wt(D,"1"):void 0}}),
el:w},_.k(_.d,{cond:V,then:function(){return _.k("div",{class:"yt-thumbnail-view-model__blurred-image"},_.k(_.gr,{data:function(){return X.data().image},
alt:"",contentMode:b,targetWidth:X.width,onload:e}))}}),_.k("div",{class:"yt-thumbnail-view-model__image"},_.k(_.gr,{data:function(){return X.data().image},
alt:"",contentMode:b,targetWidth:X.width,onload:e}),null),_.k(_.M7,{data:function(){return g()?void 0:X.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:y94,thumbnailOverlayBadgeViewModel:function(T){return _.k(wUe,{data:T.data,thumbnailSize:G,isClip:X.isClip})},
thumbnailBottomOverlayViewModel:function(T){return _.k(XUt,{data:T.data,thumbnailSize:G,isClip:X.isClip})},
thumbnailOverlayFullViewModel:lrh,thumbnailOverlayButtonViewModel:function(T){return _.k(_.vsR,{data:T.data,lockupExperiments:X.lockupExperiments})}}),_.k(_.M7,{data:function(){var T;
return((T=X.hovered)==null?0:T.call(X))?X.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(T){return _.k(v7,{data:T.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:arJ}),_.k(_.M7,{data:function(){var T;return((T=X.hovered)==null?0:T.call(X))&&z()?X.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:LrP}),_.k(_.d,{cond:X.isClip,then:function(){return _.k("div",{class:"yt-pinking"},_.k("svg",{class:"yt-pinking__pinking-left"},_.k("defs",null,_.k("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.k("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.k("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.k("svg",{class:"yt-pinking__pinking-right"},_.k("defs",null,_.k("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.k("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.k("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"sa");
_.gg.idomCompat={callbacks:{playbackRef:!0}};var xbR=_.Fp(function(X){var t=_.J(_.sm(-1,void 0,"IOLZ0b")),G=t.next().value,y=t.next().value;_.LY(function(){var w=new EsS(y);RNB(w,X.data().thumbnails.length);_.Um(function(){if(w.isSlideshowPlaying){w.isSlideshowPlaying=!1;for(var z=w.jobIds,B=0,V=z.length;B<V;B++)_.vz.cancelJob(z[B]);w.jobIds.length=0}})});
return _.k("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.k(_.M7,{data:function(){return X.data().thumbnails}},{thumbnailViewModel:function(w,z){return _.k("div",{class:function(){var B=!X.data().primaryThumbnail,V=z(),b=G(),e=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
B&&V===0&&e.push("yt-collection-thumbnail-slideshow--first-slide");V<=b&&e.push("yt-collection-thumbnail-slideshow--show-slide");return e.join(" ")}},_.k(_.gg,{data:w.data,
disableRounding:X.disableRounding}))}}))},"ta");
xbR.idomCompat=!0;var FrG=new _.FB("DWELL_DETECTOR_REGISTRY_TOKEN");var MAe=_.Fp(function(X){var t=TMV(X.triggeringElement),G=function(){return!!X.data().primaryThumbnail},y=function(){var z,B=(z=X.data())==null?void 0:z.maxHeight,V;
z=(V=X.maxHeight)==null?void 0:V.call(X);return B!=null&&z!=null?Math.min(B,z):z!=null?z:B},w=function(){var z=y();
if(z){var B;if(G()&&(B=X.includeStackHeight)!=null&&B.call(X)){var V;B=((V=X.doubleStack)==null?0:V.call(X))?8:4}else B=0;z=z-B-1;if(!(z<0)){V=Math;B=V.ceil;var b,e;var g=OQV((e=(b=X.aspectRatio)==null?void 0:b.call(X))!=null?e:0);return B.call(V,z*g)}}};
return _.k("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.Ud({height:function(){return y()?y()+"px":void 0},
width:function(){return w()?w()+"px":void 0}})},_.k(frq,{stackEnabled:G,
thumbnailSize:function(){var z,B;return uwG((z=X.width)==null?void 0:z.call(X),(B=X.height)==null?void 0:B.call(X))},
doubleStack:X.doubleStack,stackColor:function(){return X.data().stackColor},
includeStackHeight:X.includeStackHeight},_.k(_.M7,{data:function(){return X.data().primaryThumbnail}},{thumbnailViewModel:function(z){var B={};
return _.k(_.gg,{data:z.data,width:X.width,height:X.height,aspectRatio:X.aspectRatio,disableRounding:X.disableRounding,className:_.cl((B["yt-collection-thumbnail-view-model--has-stacks"]=G,B)),hovered:X.hovered,playbackRef:X.playbackRef})}}),_.k(_.d,{cond:function(){var z;
return t()&&((z=X.data().thumbnails)==null?void 0:z.length)},
then:function(){return _.k("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.k(xbR,{data:X.data,disableRounding:function(){return!G()}}))}})))},"ua");
MAe.idomCompat={callbacks:{playbackRef:!0}};
var frq=_.Fp(function(X){var t=X.children;var G=X.stackEnabled;var y=X.thumbnailSize;var w=X.doubleStack;var z=X.stackColor;var B=X.includeStackHeight;var V,b=(V=_.gw().resolve(_.jH(_.kI)))==null?void 0:V();return _.k(_.d,{cond:G,then:function(){return _.k(Cb4,{data:function(){var e,g;return{experimentEnabled:!0,thumbnailSize:y(),doubleStack:w==null?void 0:w(),color:b?z==null?void 0:(e=z())==null?void 0:e.darkTheme:z==null?void 0:(g=z())==null?void 0:g.lightTheme,enableResponsiveMode:!1,includeStackHeight:B==
null?void 0:B()}}},t)},
else:function(){return t}})},"va");var XJq=new _.FB("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var TH;_.FF={calledOnce:!0,state:"visible"};TH={calledOnce:!0,state:"hidden"};_.Ae=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;var y=X.className;var w=X.delayedClassName;var z=X.animationEntityKey;var B=X.isCompactWidth;var V=_.ex(z,""),b=_.Pk(gfY,V),e=function(){var BY,kJ;return(kJ=(BY=b())==null?void 0:BY.value)!=null?kJ:!1},g=function(){_.dX(_.EW("booleanEntity",V(),{key:V(),
value:!0}));P=void 0};
X=_.J(_.Ed(e));var F=X.next().value,T=X.next().value;X=_.J(_.Ed(e));var D=X.next().value,h=X.next().value;X=_.J(_.Ed(function(){var BY;return e()?(BY=t().styleTransitionConfig)==null?void 0:BY.destinationStyle:void 0}));
var u=X.next().value,W=X.next().value,c=function(){var BY=Object.assign({},t(),u()&&{style:u()}),kJ,Ss,C_=BY.label,Fv=(kJ=BY.interaction)==null?void 0:(Ss=kJ.accessibility)==null?void 0:Ss.label;kJ=BY.iconImage?BY.label&&BY.label.content?BY.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:C_,accessibilityLabel:Fv,style:Db0(BY.style),type:Sf0(BY.style),state:"active",size:sKA(BY.size),iconPosition:kJ,disabled:!1,aTagConfig:YfA(BY,G)}},P;
X=_.gS({visibilityCallback:function(BY){var kJ,Ss=(kJ=t().interaction)==null?void 0:kJ.onFirstVisible;BY&&Ss&&_.JH(Ss)},
showOption:_.FF});var l=function(){return Ri(c(),!!t().iconImage)};
z={};y=_.cl(function(){return"ytwAdButtonViewModelHost"},function(){return t().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var BY=!!t().delayedAppearanceConfig,kJ=F();
return BY?kJ?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var BY=!!t().delayedAppearanceConfig,kJ=D();
return BY?kJ?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!t().delayedAppearanceConfig||F()?w==null?void 0:w():""},(z.ytwAdButtonViewModelHostCompactWidth=function(){return B==null?void 0:B()},z),y!=null?y:"");
var R=function(){var BY,kJ=(BY=t().delayedAppearanceConfig)==null?void 0:BY.delayedInvisibleSeconds;kJ&&(P=_.Rs(_.vz,function(){T(!0);L()},kJ*1E3))},L=function(){var BY,kJ=(BY=t().delayedAppearanceConfig)==null?void 0:BY.delayedVisibleSeconds;
kJ&&(P=_.Rs(_.vz,function(){h(!0);x()},kJ*1E3))},x=function(){var BY,kJ=(BY=t().styleTransitionConfig)==null?void 0:BY.styleTransitionSeconds,Ss,C_=(Ss=t().styleTransitionConfig)==null?void 0:Ss.destinationStyle;
kJ&&C_?P=_.Rs(_.vz,function(){W(C_);g()},kJ*1E3):g()},w6=function(){var BY;
return(BY=t().delayedAppearanceConfig)==null?void 0:BY.transitionDurationSeconds};
_.LY(function(){R()});
_.Um(function(){P&&_.vz.cancelJob(P)});
return _.k("ad-button-view-model",{class:y,el:_.T7(X),style:_.Ud({"transition-duration":function(){return w6()?w6()+"s":void 0}})},_.k(_.d,{cond:c,
then:function(){return _.k(_.jh,{data:c,icon:function(){return _.k(_.d,{cond:function(){return t().iconImage},
then:function(BY){return _.k(_.gr,{data:BY,alt:"",targetWidth:l,targetHeight:l,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"wa");var $A4=_.Fp(function(X){var t=X.data;X=_.gS({visibilityCallback:function(y){var w,z=(w=t().interaction)==null?void 0:w.onFirstVisible;y&&z&&_.JH(z)},
showOption:_.FF});var G={};return _.k("ad-button-group-view-model",{class:_.cl("ytwAdButtonGroupViewModelHost",(G.ytwAdButtonGroupViewModelHostCompactWidth=function(){return t().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},G)),
el:_.T7(X)},_.k("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.k(_.M7,{data:function(){return t().secondaryAdButton}},{adButtonViewModel:function(y){return _.k(_.Ae,{data:y.data})}})),_.k("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.k(_.M7,{data:function(){return t().primaryAdButton}},{adButtonViewModel:function(y){return _.k(_.Ae,{data:y.data})}})))},"xa");var trq=_.Fp(function(X){var t=function(){var G;return((G=X.data())==null?void 0:G.answers)||[]};
return _.k("yt-survey-icons",{class:"ytSurveyIconsHost"},_.k("div",{class:"ytSurveyIconsHeader"},_.k("div",{class:"ytSurveyIconsTitle"},function(){var G;return(G=X.data())==null?void 0:G.text}),_.k("div",null,_.k(_.jh,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var G;(G=X.onDismiss)==null||G.call(X)}}},
iconName:"DISMISSAL"}))),_.k("div",null,_.k("div",{class:"ytSurveyIconsAnswers"},_.k(_.pY,{each:function(){return t()},
keyBy:"INDEX"},function(G,y){return _.k("div",null,_.k(_.jh,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var w;(w=X.onSelect)==null||w.call(X,G(),y)}}},
icon:function(){return _.k(_.mw,{icon:function(){var w,z;return(w=G())==null?void 0:(z=w.icon)==null?void 0:z.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.k("div",{class:"ytSurveyIconsAnswersText"},_.k("div",null,function(){return t().length?t()[0].text:""}),_.k("div",null,function(){return t().length?t()[t().length-1].text:""}))))},"ya");var GRq=_.Fp(function(X){var t=_.T7(_.zF(function(){var b;return(b=X.data())==null?void 0:b.rendererContext},void 0,void 0,void 0,!0)),G=_.J(_.sm(!1,void 0,"YxWRNc")),y=G.next().value,w=G.next().value,z=_.Pk(VWl,function(){var b;
return(b=X.data().keys)==null?void 0:b.surveyEntityKey}),B=_.Pk(bnJ,function(){var b;
return(b=X.data().keys)==null?void 0:b.surveyStateEntityKey});
_.Bq("ytd-slimline-survey-show-action",function(){w(!1)});
var V=function(){var b,e;var g=(b=B())==null?void 0:(e=b.questionStack)==null?void 0:e[0];if(g!==void 0){var F,T;return(F=z())==null?void 0:(T=F.questions)==null?void 0:T[g]}};
G={};return _.k("yt-slimline-survey-view-model",{el:t,class:_.cl("ytSlimlineSurveyViewModelHost",(G.ytSlimlineSurveyViewModelCollapsed=function(){return y()},G))},_.k("div",{class:"ytSlimlineSurveyViewModelContainer"},_.k(_.d,{cond:function(){var b;
return((b=V())==null?void 0:b.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.k(trq,{data:function(){return V()},
onSelect:function(b,e){var g,F;return _.n(function(T){w(!0);if(F=(g=X.data())==null?void 0:g.onSelectRating)_.JH(F),_.dX(Bgo(e));_.W$(T)})},
onDismiss:function(){w(!0);var b;var e=(b=z())==null?void 0:b.dismissalFeedbackToken;b=e?{feedbackEndpoint:{feedbackToken:e}}:void 0;b&&_.z7(b,{form:{element:t.value}})}})}})))},"za");var yr4=_.Fp(function(X){return _.k("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.k(_.M7,{data:function(){var t;return(t=X.data())==null?void 0:t.attachments}},{flexibleActionsViewModel:function(t){return _.k("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.k(RdB,{data:t.data,
layout:function(){var G;return((G=X.lockupStyle())==null?void 0:G.arrangement)===1?0:1},
justifyContentOverride:function(){var G;return((G=X.lockupStyle())==null?void 0:G.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(t){return _.k("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.k(GRq,{data:t.data}))},
expandableMetadataViewModel:function(t){t=t.data;var G;return _.k("div",{class:_.cl("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(G=_.gw().resolve(_.jH(XJq)))==null?void 0:G({data:t}))},
adButtonGroupViewModel:function(t){return _.k("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.k($A4,{data:t.data}))},
adButtonViewModel:function(t){return _.k("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.k(_.Ae,{data:t.data,isCompactWidth:!0}))}}))},"Aa");var OFV=_.At("rich_grid_min_item_width",310),CBE=_.At("rich_grid_max_item_width",500);var wJJ=_.Fp(function(X){var t=X.data;return _.k("br-nz-badge-shape",{class:_.cl(function(){return NMs(t().brNzRatingBadgeType)}),
role:function(){return t().accessibilityText?"img":void 0},
"aria-label":function(){return t().accessibilityText}},function(){var G;
return(G=t())==null?void 0:G.text})},"Ba");_.YM=_.Fp(function(X){var t=function(){var G=X.data(),y,w;if(G){var z=!((y=X.workaroundShortsIsThumbnailBadge)==null||!y.call(X));y=(w=X.modern)==null?void 0:w.call(X);a:switch(G.badgeStyle){case "BADGE_OVERLAY":w=!0;break a;default:w=!1}G={type:z?16:PBE(G.badgeStyle),brNzRatingBadgeType:EsY(G.badgeStyle),text:G.badgeText,icon:G.iconName,isOverlay:w,modern:y||_.A("web_modern_badge_view_model"),accessibilityText:G.accessibilityLabel}}else G=void 0;return G};
return _.k("yt-badge-view-model",{class:_.cl("yt-badge-view-model-wiz",X.class)},_.k(_.P0,null,_.k(_.rn,{when:function(){var G;return!((G=t())==null||!G.brNzRatingBadgeType)}},function(){return _.k(wJJ,{data:function(){return t()}})}),_.k(_.rn,{when:function(){return!!t()&&!t().brNzRatingBadgeType}},function(){return _.k(_.X9,{data:function(){return t()}})})))},"Ca");
_.YM.idomCompat=!0;var mbG,UbE;mbG=16/9;UbE=2/3;_.sY=_.Fp(function(X){var t=X.data;var G=X.className;var y=X.imageSizeConfig;var w=X.notifyOnLoaded;var z=function(){return t().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},B=function(){var T;
return _.w2((T=t())==null?void 0:T.rendererContext)};
X={};X=(X["yt-content-preview-image-view-model-wiz"]=!0,X["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return z()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},X["yt-content-preview-image-view-model-wiz--tappable"]=function(){return B()},X);
var V=function(){var T,D;return(D=(T=_.Y(t().rendererContext,_.N0))==null?void 0:T.label)!=null?D:""},b=function(){return iFs(t())},e=function(){var T=RNV(z(),t().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",y==null?void 0:y(),Lrf(b()),t().layoutWidth,t().layoutHeight),D=Object.assign({},T);
T.width&&(D.width=Math.round(T.width));T.height&&(D.height=Math.round(T.height));T.maxWidth&&(D.maxWidth=Math.round(T.maxWidth));T.maxHeight&&(D.maxHeight=Math.round(T.maxHeight));return D},g=_.qt(function(){return e().height},void 0,"Cn10Ce"),F=_.qt(function(){return e().width},void 0,"laoove");
return _.k("yt-content-preview-image-view-model",{el:_.T7(_.zF(function(){var T;return(T=t())==null?void 0:T.rendererContext})),
role:function(){return B()?"link":void 0},
tabindex:function(){return B()?0:void 0},
class:_.cl(G,X,function(){var T=z();var D=y==null?void 0:y();T=T==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||T==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||T==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||T==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(D==null?void 0:D.size)!=null&&D.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(D==null?void 0:D.size)!=null&&D.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return T}),
style:function(){var T=e(),D=[];T.width&&D.push("width: "+T.width+"px");T.height&&D.push("height: "+T.height+"px");T.maxWidth&&D.push("max-width: "+T.maxWidth+"px");T.maxHeight&&D.push("max-height: "+T.maxHeight+"px");T.fullWidth&&D.push("width: 100%");return D.join(";")}},_.k(_.d,{cond:b,
then:function(T){return _.k(_.gr,{data:T,alt:V,"data-disabled$":function(){return!V()},
notifyOnLoaded:w,targetWidth:F,targetHeight:g,preserveWidth:function(){return!!F()},
preserveHeight:function(){return!!g()}})}}),_.k(_.M7,{data:function(){var T;
return(T=t())==null?void 0:T.overlays}},{thumbnailHoverOverlayViewModel:v7,
thumbnailOverlayButtonViewModel:_.vsR}))},"Da");
_.sY.idomCompat=!0;var HM4=_.Fp(function(X){var t=X.data;var G=X.className;var y=X.useSmallLayout;X=X.useMediumText;var w={};X=(w["yt-attribution-view-model-wiz"]=!0,w["yt-attribution-view-model-wiz--medium-text"]=X,w);return _.k("yt-attribution-view-model",{el:_.T7(_.zF(function(){var z;return(z=t())==null?void 0:z.rendererContext})),
class:_.cl(G,X)},_.k(_.d,{cond:function(){return _.w2(t().rendererContext)},
then:function(){return _.k("button",{class:"yt-attribution-view-model-wiz--tappable"},_.k(zRh,{data:t,useSmallLayout:y}))},
else:function(){return _.k(zRh,{data:t,useSmallLayout:y})}}))},"Ea"),zRh=_.Fp(function(X){var t=X.data;
var G=X.useSmallLayout;var y=function(){return{size:(G==null?0:G())?16:24}};
return _.k(_.gn,null,_.k(_.M7,{data:function(){return t().contentPreviewImage}},{contentPreviewImageViewModel:function(w){return _.k(_.sY,{data:w.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:y})}}),_.k(_.M7,{data:function(){return t().badge}},{badgeViewModel:function(w){return _.k(_.YM,{data:w.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.k(_.d,{cond:function(){return t().text},
then:function(){return _.k(_.eh,{text:function(){return t().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.k(_.d,{cond:function(){return t().suffix},
then:function(){return _.k(_.eh,{text:function(){return t().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Fa");
HM4.idomCompat=!0;var o$Y,Jrq,Bd4,n$e,Vrt;o$Y=_.Fp(function(X){var t=X.delimiter;var G=X.max;var y=X.index;var w=X.isStandalone;return _.k(_.d,{cond:function(){return G()-1>y()},
then:function(){var z={};return _.k("span",{class:_.cl("yt-content-metadata-view-model-wiz__delimiter",(z["yt-content-metadata-view-model-wiz__delimiter--standalone"]=w,z)),"aria-hidden":!0},t)}})},"Ga");
Jrq=_.Fp(function(X){var t=X.metadataPart;var G=X.maxLines;return _.k(_.eh,{text:function(){return t().text},
linkInheritColor:!0,className:function(){return vs0(G())},
userInput:!0})},"Ha");
Bd4=_.Fp(function(X){var t=X.metadataPart;var G=X.maxLines;return _.k(_.d,{cond:function(){return t().tooltip},
then:function(y){return _.k("span",{title:y,role:"tooltip"},_.k(Jrq,{metadataPart:t,maxLines:G}))},
else:function(){return _.k(Jrq,{metadataPart:t,maxLines:G})}})},"Ia");
n$e=_.Fp(function(X){var t=X.metadataPart;var G=X.isOverlay;var y=X.useMediumText;var w=X.hideAvatar;var z=function(){return t().maxLines!==void 0?t().maxLines:1};
return _.k(_.gn,null,_.k(_.M7,{data:function(){return t().avatarStack}},{avatarStackViewModel:function(B){return _.k(_.xK,{data:B.data,
isOverlay:G,useMediumText:y,hideAvatar:w})},
badgeViewModel:_.YM}),_.k(_.d,{cond:function(){return t().leadingIcon},
then:function(B){return _.k(_.mw,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return B().name},
size:function(){return B().width}})}}),_.k(_.d,{cond:function(){return t().text},
then:function(){return _.k(Bd4,{metadataPart:t,maxLines:z})}}),_.k(_.d,{cond:function(){return t().icon},
then:function(B){return _.k(_.mw,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return B().name},
size:function(){return B().width}})}}))},"Ja");
Vrt=_.Fp(function(X){var t=X.metadataRow;var G=X.isInline;var y=X.delimiter;var w=X.isOverlay;var z=X.useMediumText;var B=X.extensions;var V=function(){var e,g=B==null?void 0:(e=B())==null?void 0:e.lockupMetadata;e=t();var F,T;return!!((g==null?0:(F=g.byline)==null?0:F.hideAvatar)&&((T=_.Y(e,IGq))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},b=function(){return t().metadataParts||[]};
X={};return _.k("div",{class:_.cl("yt-content-metadata-view-model-wiz__metadata-row",(X["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=G,X["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var e,g=B==null?void 0:(e=B())==null?void 0:e.lockupMetadata;e=t();var F,T;return!!((g==null?0:(F=g.byline)==null?0:F.addPadding)&&((T=_.Y(e,IGq))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},X["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var e;
return!!(B==null?0:(e=B())==null?0:e.lockupMetadata)&&t().badges&&!t().metadataParts},X))},_.k(_.M7,{data:function(){return t().badges}},{badgeViewModel:function(e){return _.k("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.k(_.YM,{data:e.data}))}}),_.k(_.pY,{each:b},function(e,g){return _.k(_.gn,null,_.k(n$e,{metadataPart:e,
isOverlay:w,useMediumText:z,hideAvatar:V}),_.k(o$Y,{delimiter:y,max:function(){return b().length},
index:g,isStandalone:!1}))}),_.k(_.d,{cond:function(){return t().isSpacerRow&&!G()},
then:function(){return _.k("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ka");
_.DT=_.Fp(function(X){X=_.jx(X,{layout:0,isOverlay:!1});var t=X.data,G=X.layout,y=X.isOverlay,w=X.useMediumText,z=X.extensions,B=function(){return G()===0},V=function(){var e;
return((e=t().metadataRows)==null?void 0:e.filter(function(g){var F,T=z==null?void 0:(F=z())==null?void 0:F.lockupMetadata,D,h;F=!!((T==null?0:(D=T.description)==null?0:D.hideDescription)&&((h=_.Y(g,IGq))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var u,W;return!((T==null?0:(u=T.spacer)==null?0:u.hideSpacer)&&((W=_.Y(g,IGq))==null?void 0:W.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||F)}))||[]},b={};
return _.k("yt-content-metadata-view-model",{class:_.cl(X.className,"yt-content-metadata-view-model-wiz",(b["yt-content-metadata-view-model-wiz--inline"]=B,b["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.w2(t().rendererContext)},b["yt-content-metadata-view-model-wiz--medium-text"]=w,b)),
el:_.T7(_.zF(function(){return t().rendererContext}))},_.k(_.pY,{each:V},function(e,g){return _.k(_.gn,null,_.k(Vrt,{metadataRow:e,
isInline:B,delimiter:function(){return t().delimiter},
isOverlay:y,useMediumText:w,extensions:z}),_.k(_.d,{cond:function(){return B()&&!e.isSpacerRow},
then:function(){return _.k(o$Y,{delimiter:function(){return t().delimiter},
max:function(){return V().length},
index:g,isStandalone:!0})}}))}))},"La");
_.DT.idomCompat=!0;var bMo=_.Fp(function(X){var t={};return _.k("yt-lockup-metadata-view-model",{class:_.cl("yt-lockup-metadata-view-model-wiz",function(){a:{var G=X.lockupStyle();if(G==null?0:G.isOverlay)G="yt-lockup-metadata-view-model-wiz--overlay";else switch(G==null?void 0:G.arrangement){case 1:G="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:G="yt-lockup-metadata-view-model-wiz--vertical"}}return G},function(){a:{var G=X.lockupStyle();
if(G==null?0:G.isTiny)G="yt-lockup-metadata-view-model-wiz--tiny";else switch(G==null?void 0:G.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":G="yt-lockup-metadata-view-model-wiz--compact";break a;default:G="yt-lockup-metadata-view-model-wiz--standard"}}return G},(t["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var G;
return(G=X.lockupStyle())==null?void 0:G.isOverlay},t["yt-lockup-metadata-view-model-wiz--card"]=function(){var G;
return(G=X.lockupStyle())==null?void 0:G.isCard},t["yt-lockup-metadata-view-model-wiz--centered"]=function(){var G;
return(G=X.lockupStyle())==null?void 0:G.isCentered},t["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var G;
return(G=X.lockupStyle())==null?void 0:G.typographyBump},t["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var G;
return(G=X.lockupStyle())==null?void 0:G.useLegacyTypography},t["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var G;
return(G=X.lockupStyle())==null?void 0:G.useRichGridLegacyTypography},t))},_.k(_.M7,{data:function(){return X.data().image}},{avatarStackViewModel:function(G){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.k(_.xK,{data:G.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(G){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.k(_.al,{data:G.data}))},
decoratedAvatarViewModel:function(G){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.k(_.lD,{data:G.data}))}}),_.k("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.k("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var G;return(G=X.data().title)==null?void 0:G.content}},_.k(_.d,{cond:function(){return X.data().title},
then:function(G){return _.k(_.J4,{command:X.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:X.lockupAccessibilityLabel},_.k(_.eh,{text:G,userInput:!0}))}})),_.k("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.k(_.M7,{data:function(){return X.data().metadata}},{contentMetadataViewModel:function(G){return _.k(_.DT,{data:G.data,
layout:1,useMediumText:function(){var y,w;return((y=X.lockupStyle())==null?void 0:y.typographyBump)||((w=X.lockupStyle())==null?void 0:w.useRichGridLegacyTypography)},
extensions:function(){var y,w,z,B;return{lockupMetadata:{byline:{hideAvatar:((y=X.lockupStyle())==null?void 0:y.arrangement)===0,addPadding:((w=X.lockupStyle())==null?void 0:w.arrangement)===1},description:{hideDescription:!((z=X.lockupStyle())==null||!z.compactMetadata)},spacer:{hideSpacer:!((B=X.lockupStyle())==null||!B.compactMetadata)}}}}})}})),_.k(_.M7,{data:function(){return X.data().attribution}},{attributionViewModel:function(G){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.k(HM4,{data:G.data,
useSmallLayout:!0}))}})),_.k("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.k(_.M7,{data:function(){return X.data().menuButton}},{buttonViewModel:function(G){return _.k(_.QK,{data:G.data,
buttonOverrides:function(){var y;return((y=X.lockupStyle())==null?0:y.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ma");
bMo.idomCompat=!0;var kRt=_.Fp(function(X){var t=_.nl("notification-multi-action-renderer");_.R2(function(){requestAnimationFrame(function(){_.bx(t.value)})});
var G={},y={},w={};return _.k("notification-multi-action-renderer",{class:_.cl("ytNotificationMultiActionRendererHost",(G.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var z;return(z=X.useLegacyShelfStyle)==null?void 0:z.call(X)},G)),
el:t},_.k("span",{"aria-live":"polite",class:_.cl("ytNotificationMultiActionRendererTextContainer",(y.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var z;return(z=X.useLegacyShelfStyle)==null?void 0:z.call(X)},y))},_.k(_.eh,{text:function(){return X.data().responseText}})),_.k("div",{class:_.cl("ytNotificationMultiActionRendererButtonContainer",(w.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var z;
return(z=X.useLegacyShelfStyle)==null?void 0:z.call(X)},w))},_.k(_.M7,{data:function(){var z;
return(z=X.data().buttons)==null?void 0:z.map(function(B){if(B=B.buttonRenderer){var V,b=Object,e=b.assign,g=(V=B.icon)==null?void 0:V.iconType;V=(V=B.command||B.serviceEndpoint||B.navigationEndpoint)?{innertubeCommand:V}:void 0;B={buttonViewModel:e.call(b,{},{iconName:g,onTap:V,trackingParams:B.trackingParams,titleFormatted:B.text?_.$I(B.text):void 0},arl(B))}}else B=void 0;return B}).filter(function(B){return!!B})}},{buttonViewModel:function(z,B){return _.k("div",null,_.k(_.QK,{data:z.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var V;return((V=X.useModernStyles)==null?0:V.call(X))?{type:B()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Na");var dA4=_.Fp(function(X){var t=_.nl("notification-text-renderer");_.R2(function(){requestAnimationFrame(function(){_.bx(t.value)})});
return _.k("notification-text-renderer",{el:t,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.k(_.eh,{text:function(){return X.data().successResponseText}}))},"Oa");_.S1=_.Fp(function(X){var t=_.Pk(C36,function(){var y;return lrJ((y=X.contentId)==null?void 0:y.call(X))}),G=function(){var y;
return _.Y((y=t())==null?void 0:y.command,_.Et)};
return _.k(_.d,{cond:function(){var y;if(!(y=G())){var w;y=_.Y((w=t())==null?void 0:w.command,ONY)}return y},
then:function(){return _.k(_.d,{cond:G,then:function(){var y={};return _.k("div",{class:_.cl("ytDismissibleItemReplacedContent",function(){var w;return xb0((w=X.aspectRatio)==null?void 0:w.call(X))})},_.k("div",{class:_.cl((y.ytDismissibleItemAspectRatioContainer=function(){var w;
return((w=X.aspectRatio)==null?void 0:w.call(X))!==void 0},y))},_.k(_.M7,{data:function(){var w;
return(w=G())==null?void 0:w.item}},{notificationMultiActionRenderer:function(w){return _.k(kRt,{data:w.data,
useModernStyles:X.useModernStyle,useLegacyShelfStyle:X.useLegacyShelfStyle})},
notificationTextRenderer:dA4})))}})},
else:X.children})},"Pa");_.eRS=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;X=_.T7(_.gS({visibilityCallback:function(z){var B,V=(B=t().interaction)==null?void 0:B.onFirstVisible;z&&V&&_.JH(V)},
showOption:_.FF}));var y=function(){var z;return((z=t().interaction)==null?0:z.onTap)?function(B){var V;A9E(B,(V=t().interaction)==null?void 0:V.onTap,G)}:void 0},w=function(){var z,B=t(),V=y(),b=(z=_.Y(t().rendererContext,_.N0))==null?void 0:z.label;
a:switch(B.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":z=1;break a;default:z=0}return{size:XJA(B.size),type:z,onTap:V,accessibilityText:b}};
return _.k("ad-avatar-view-model",{class:function(){var z;return((z=t().interaction)==null?0:z.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:X},_.k(_.d,{cond:function(){return t().image},
then:function(z){return _.k(GDB,{data:w,image:z})}}))},"Qa");_.he=_.Fp(function(X){var t=_.jx(X,{hasDot:!1});X=Object.assign({},t);var G=t.data,y=t.hasDot;t=t.customCommandResolver;var w=(delete X.data,delete X.hasDot,delete X.customCommandResolver,X);X=function(){return G().style};
X!==void 0&&X!==null||_.yQ(Error("Eh"));X=_.ny(function(){return G().interaction},t);
return _.k("ad-badge-view-model",{class:_.cl(function(){var z;return((z=G().interaction)==null?0:z.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var z=w.adRenderingContextType();
G();return z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.T7(X)},_.k(_.X9,{data:function(){var z;G();return{type:2,text:(z=G().label)==null?void 0:z.content,adsIncludeDot:y(),isOverlay:G().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ra");var jPq;_.ZT=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;var y=X.adRenderingContextType;return _.k("ad-details-line-view-model",{class:function(){var w;return((w=t().interaction)==null?0:w.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.T7(_.gS({visibilityCallback:function(w){var z,B=(z=t().interaction)==null?void 0:z.onFirstVisible;w&&B&&_.JH(B)},
showOption:_.FF}),_.ny(function(){return t().interaction},G))},_.k(_.d,{cond:function(){return t().style},
then:function(w){return _.k(_.pY,{each:function(){var z;return((z=t())==null?void 0:z.attributes)||[]},
keyBy:"INDEX"},function(z){return _.k(jPq,{attribute:z,style:w,adRenderingContextType:function(){return y()}})})}}))},"Sa");
jPq=_.Fp(function(X){var t=X.attribute;var G=X.style;var y=X.adRenderingContextType;return _.k(_.d,{cond:function(){return t().text},
then:function(w){return _.k(_.eh,{text:w,className:function(){var z=y();G();return z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ta");var g$t=_.Fp(function(X){var t=X.data;var G=X.typographyBump;var y=function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
X={};return _.k(_.gn,null,_.k("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.k(_.eh,{text:function(){return t().headline},
className:_.cl("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(X.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return y==null?void 0:y()},X.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(G==null?void 0:G())&&!(y==null?0:y())},X)),
linkInheritColor:!0}),_.k(_.d,{cond:function(){return t().description},
then:function(w){var z={};return _.k(_.eh,{text:w,className:_.cl("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return y==null?void 0:y()},z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(G==null?void 0:G())&&!(y==null?0:y())},z)),
linkInheritColor:!0})}}),_.k(_.d,{cond:function(){return t().secondaryDescription},
then:function(w){var z={};return _.k(_.eh,{text:w,className:_.cl("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(z.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return G==null?void 0:G()},z)),
linkInheritColor:!0})}}),_.k("div",{class:function(){return y()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.k(_.d,{cond:function(){return t().adAvatar},
then:function(){return _.k("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.k(_.M7,{data:function(){return t().adAvatar}},{adAvatarViewModel:_.eRS}))}}),_.k(_.M7,{data:function(){return t().adBadge}},{adBadgeViewModel:function(w){return _.k(_.he,{data:w.data,
hasDot:function(){return!!t().adDetailsLine},
adRenderingContextType:function(){return t().adRenderingContextType}})}}),_.k(_.M7,{data:function(){return t().adDetailsLine}},{adDetailsLineViewModel:function(w){return _.k(_.ZT,{data:w.data,
adRenderingContextType:function(){return t().adRenderingContextType}})}}))),_.k("div",{class:function(){return y()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.k(_.M7,{data:function(){return t().menu}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
buttonOverrides:function(){a:switch(t().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var z="S";break a;default:z="M"}return{size:z}}})}})))},"Ua"),Fmt=_.Fp(function(X){var t=X.data;
var G=X.noBottomMargin;var y=X.useVideoLockupTopPadding;var w=X.typographyBump;X={};X=_.cl("ytwFeedAdMetadataViewModelHostMetadata",(X.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return G==null?void 0:G()},X.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return y==null?void 0:y()},X));
var z=function(){return t().adBadge};
z!==void 0&&z!==null||_.yQ(Error("Fh"));z={};var B={};return _.k(_.gn,null,_.k(_.d,{cond:function(){return t().adAvatar},
then:function(){return _.k("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.k(_.M7,{data:function(){return t().adAvatar}},{adAvatarViewModel:function(V){return _.k(_.eRS,{data:V.data})}}))}}),_.k("div",{class:X},_.k("div",{class:_.cl("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return w==null?void 0:w()},z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(w==
null?void 0:w())&&_.A("web_enable_typography_bump_v2")},z))},_.k(_.eh,{text:function(){return t().headline},
linkInheritColor:!0})),_.k(_.d,{cond:function(){return t().description},
then:function(V){return _.k(_.eh,{text:V,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.k("div",{class:function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.A("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.k(_.M7,{data:function(){return t().adBadge}},
{adBadgeViewModel:function(V){return _.k(_.he,{data:V.data,
hasDot:function(){return!!t().adDetailsLine},
adRenderingContextType:function(){return t().adRenderingContextType}})}}),_.k(_.M7,{data:function(){return t().adDetailsLine}},{adDetailsLineViewModel:function(V){return _.k(_.ZT,{data:V.data,
adRenderingContextType:function(){return t().adRenderingContextType}})}})),_.k(_.d,{cond:function(){return t().secondaryDescription},
then:function(V){return _.k(_.eh,{text:V,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.k("div",{class:_.cl("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(B.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return y==null?void 0:y()},B))},_.k(_.M7,{data:function(){return t().menu}},{buttonViewModel:_.QK})))},"Va"),TdR=_.Fp(function(X){var t=X.data;
var G=X.noBottomMargin;var y=X.listenToTapEvent;var w=X.setTouchEndHandler;var z=X.useVideoLockupTopPadding;var B=X.typographyBump;X=_.gS({visibilityCallback:function(F){var T,D=(T=t().interaction)==null?void 0:T.onFirstVisible;F&&D&&_.JH(D)},
showOption:_.FF});var V=_.ny(function(){return t().interaction},void 0,function(){return y==null?void 0:y()}),b=_.J(_.sm(!1,void 0,"p7Js8e")),e=b.next().value,g=b.next().value;
b=_.NI(function(F){(w==null?0:w())&&!e()&&(F.currentTarget.click(),g(!0),setTimeout(function(){g(!1)},100));
return!1});
return _.k("feed-ad-metadata-view-model",{class:function(){var F;return((F=t().interaction)==null?0:F.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.T7(X,V),"on:touchend":b},_.k(_.P0,null,_.k(_.rn,{when:function(){return t().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.k(g$t,{data:t,
typographyBump:B})}),_.k(_.rn,{when:function(){return t().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.k(Fmt,{data:t,
noBottomMargin:G,useVideoLockupTopPadding:z,typographyBump:B})})))},"Wa");var ArB;_.qL=_.Fp(function(X){return _.k("yt-lockup-view-model",{class:_.cl(X.className)},_.k(_.S1,{contentId:function(){return X.data().contentId},
useModernStyle:!0,aspectRatio:function(){var t,G;return((t=X.containerType)==null?void 0:t.call(X))!==3?pU0(X.data().contentType,(G=X.force16By9ThumbnailAspectRatio)==null?void 0:G.call(X)):void 0}},function(){return _.k(ArB,Object.assign({},X))}))},"Xa");
ArB=_.Fp(function(X){X=_.jx(X,{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 t=X.data,G=X.containerLayoutConfig,y=X.containerType,w=X.sizing,z=X.protectBackground,B=X.typographyBump,V=X.force16By9ThumbnailAspectRatio,b=X.thumbnailFixedWidth,e=X.thumbnailTargetWidth,g=X.lockupExperiments,F=X.elementsPerRow;
X=_.T7(_.zF(function(){var Fv;return(Fv=t())==null?void 0:Fv.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 T=_.w5(eN_),D=_.gw().resolve(_.jH(PBt)),h=D?{}:void 0,u=function(){var Fv,Uh,cY;return(cY=(Uh=_.Y((Fv=t())==null?void 0:Fv.rendererContext,_.N0))==null?void 0:Uh.label)!=null?cY:void 0},W=function(){var Fv=G==null?void 0:G(),Uh;
if(Fv==null?0:Fv.containerType){var cY=(Uh=t())==null?void 0:Uh.contentType;Uh=g();var f_=B(),sq=e(),oq=z();Fv=Object.assign({},r9E(IrV(Fv),utJ(Fv.responsiveSize),f_,cY,Fv.force16By9ThumbnailAspectRatio,sq,oq,Uh),{thumbnailFixedWidth:Fv.contentPreviewWidth})}else Fv=r9E(y(),w(),B(),(cY=t())==null?void 0:cY.contentType,V(),e(),z(),g());return Fv};
D&&h&&D({enabled:function(){return T()},
itemPlaybackModel:function(){return t().itemPlayback},
thumbnailElRef:function(){return h.thumbnailElRef},
containerElRef:X,options:function(){var Fv,Uh=(Fv=_.Y(t().metadata,W4Y))==null?void 0:Fv.endorsement;Fv=h.thumbnailOverlays||[];Uh&&Fv.push(Uh);var cY,f_;return{thumbnail:h.thumbnail,thumbnailOverlays:Fv,accessibilityText:u(),thumbnailSize:h.thumbnailSize,enableRounding:W().isCollection,containPlayerWithinThumbnail:W().isCollection,trackingParams:(cY=_.Y(t().rendererContext,_.EV))==null?void 0:(f_=cY.loggingDirectives)==null?void 0:f_.trackingParams}}});
var c=0;D=_.J(_.sm(!1,void 0,"GH4i8d"));var P=D.next().value,l=D.next().value;D=_.J(_.sm(!1,void 0,"hS52Ob"));var R=D.next().value,L=D.next().value;D=_.NI(function(){var Fv=T()&&t().itemPlayback;R()?(_.vz.cancelJob(c),c=_.vz.addJob(function(){l(!Fv)},8,32)):l(!Fv);
return!0});
var x=_.NI(function(){c&&(_.vz.cancelJob(c),c=0);l(!1)});
_.Um(function(){c&&(_.vz.cancelJob(c),c=0)});
var w6=MAG(function(){L(!0)}),BY=w6.touchFeedbackEvents,kJ=w6.touchFeedbackOnPointerUp,Ss=w6.touchFeedbackOnPointerDown;
w6=w6.touchFeedbackOnPointerLeave;var C_={};return _.k("div",{el:X,class:_.cl("yt-lockup-view-model-wiz",function(){a:{var Fv=W();if(Fv.isOverlay)Fv="yt-lockup-view-model-wiz--overlay";else switch(Fv.arrangement){case 1:Fv="yt-lockup-view-model-wiz--horizontal";break a;default:Fv="yt-lockup-view-model-wiz--vertical"}}return Fv},function(){a:{var Fv=W();
if(Fv.isOverlay)Fv="yt-lockup-view-model-wiz--overlay";else{switch(Fv.collectionStackNumber){case 1:Fv="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:Fv="yt-lockup-view-model-wiz--collection-stack-2";break a}Fv=void 0}}return Fv},(C_["yt-lockup-view-model-wiz--card"]=function(){return W().isCard},C_["yt-lockup-view-model-wiz--compact"]=function(){return W().isTiny||W().sizing!=="STANDARD"},C_["yt-lockup-view-model-wiz--protect-background"]=z,C_["yt-lockup-view-model-wiz--add-margins"]=
function(){return W().addMarginForFullbleed},C_["yt-lockup-view-model-wiz--centered"]=function(){return W().isCentered},C_["yt-lockup-view-model-wiz--fullbleed"]=function(){return W().fullbleed},C_["yt-lockup-view-model-wiz--single-column-grid"]=function(){return F()===1&&y()===2},C_["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var Fv;
return(Fv=g())==null?void 0:Fv.useRichGridLegacyMargin},C_)),
"on:mousedown":Ss,"on:mouseleave":x,"on:mouseup":kJ,"on:mouseover":D,"on:touchstart":Ss,"on:touchend":kJ,"on:pointerleave":w6},_.k(_.J4,{command:function(){var Fv;return _.yj((Fv=t())==null?void 0:Fv.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return b()&&W().arrangement===1?"width: "+b():""}},_.k(_.M7,{data:function(){var Fv;
return(Fv=t())==null?void 0:Fv.contentImage}},{thumbnailViewModel:function(Fv){return _.k(_.gg,{data:Fv.data,
aspectRatio:function(){return W().aspectRatio},
disableRounding:function(){return W().disableRounding},
width:e,hovered:P,isClip:function(){var Uh;return((Uh=t())==null?void 0:Uh.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:kDw(h),lockupExperiments:function(){return g()}})},
collectionThumbnailViewModel:function(Fv){return _.k(MAe,{data:Fv.data,aspectRatio:function(){return W().aspectRatio},
disableRounding:function(){return W().disableRounding},
width:e,doubleStack:function(){return W().collectionStackNumber===2},
hovered:P,playbackRef:kDw(h)})},
decoratedAvatarViewModel:_.lD})),_.k("div",{class:"yt-lockup-view-model-wiz__metadata"},_.k(_.M7,{data:function(){var Fv;return(Fv=t())==null?void 0:Fv.metadata}},{lockupMetadataViewModel:function(Fv){return _.k(bMo,{data:Fv.data,
lockupStyle:W,lockupCommand:function(){var Uh;return _.yj((Uh=t())==null?void 0:Uh.rendererContext)},
lockupAccessibilityLabel:function(){return u()}})},
feedAdMetadataViewModel:function(Fv){return _.k(TdR,{data:Fv.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:B})}}),_.k(_.M7,{data:function(){var Fv;
return(Fv=t())==null?void 0:Fv.attachmentSlot}},{lockupAttachmentsViewModel:function(Fv){return _.k(yr4,{data:Fv.data,
lockupStyle:W})}})),_.k(_.LX,{model:function(){a:{switch(W().collectionStackNumber){case 1:var Fv=8;
break a;case 2:Fv=12;break a}Fv=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:Fv}},
pointerDownEvent:BY.pointerDownEvent,pointerUpEvent:BY.pointerUpEvent,pointerLeaveEvent:BY.pointerLeaveEvent}))},"Ya");
_.qL.idomCompat=!0;_.DW(_.qL,"yt-lockup-view-model",{props:{data:_.bR,containerLayoutConfig:_.bR,containerType:_.bR,sizing:_.bR,protectBackground:_.bR,typographyBump:_.bR,thumbnailFixedWidth:_.bR,thumbnailTargetWidth:_.bR,force16By9ThumbnailAspectRatio:_.bR,className:_.bR,lockupExperiments:_.bR,elementsPerRow:_.bR}});var yrv;_.FE(Jrh);var bM6,Yoq=_.Fp(function(X){var t=_.jx(X,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),G=t.text,y=t.alwaysShowTruncationText;X=t.truncationText;var w=t.onTextClick,z=t.maxLines,B=t.disableTextMask,V=t.textStyle,b=t.accessibilityLabel,e=t.textSize,g=t.alwaysTruncateAtMaxLines,F=t.expandOnClick;t=_.J(_.sm(!1,void 0,"Qz8MWe"));var T=t.next().value,D=t.next().value;t=_.NI(function(){F()&&D(!T());w==null||w()});
var h=function(){a:switch(e()){case "medium":var x=2;break a;case "large":x=2.2;break a;default:x=1.8}return x},u=jPV(G,function(){return T()?Infinity:z()},h,B,g),W=u.isTruncated;
G=u.displayText;g=u.contentRef;var c=u.hiddenRef,P=u.placeholderTruncationTextRef,l=u.hiddenTruncationTextRef;u=u.truncationTextRef;var R={},L={};return _.k("truncated-text",{class:_.cl((R["truncated-text-wiz"]=!0,R["truncated-text-wiz--overlay"]=function(){return V()==="overlay"},R["truncated-text-wiz--medium-text"]=function(){return e()==="medium"},R["truncated-text-wiz--large-text"]=function(){return e()==="large"},R["truncated-text-wiz--primary-text"]=function(){return V()==="primary-text"},R)),
"on:click":t,style:function(){return"line-height: "+h()+"rem;"}},_.k("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:g,style:function(){return T()?"":"max-height: "+z()*h()+"rem;"}},_.k(_.eh,{text:G}),_.k("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:P,style:function(){return"line-height: "+h()+"rem;"}},_.k(_.eh,{text:X}))),_.k("truncated-text-content",{class:_.cl("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:c,style:function(){return T()?"":"max-height: "+z()*h()+"rem;"},
"aria-hidden":"true"},_.k(_.eh,{text:G}),_.k("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:l,style:function(){return"line-height: "+h()+"rem;"}},_.k(_.eh,{text:X}))),_.k("button",{"aria-label":b,
class:_.cl((L["truncated-text-wiz__absolute-button"]=function(){return!B()},L["truncated-text-wiz__bottom-button"]=function(){return B()},L["truncated-text-wiz--hidden"]=function(){return!(!T()&&(y!=null&&y()||W()))},L)),
el:u,style:function(){return"line-height: "+h()+"rem;"}},_.k(_.eh,{text:X})))},"Za"),hR0=_.A("web_enable_sink_truncated_text")?Yoq:Jrh,sPh=_.A("web_enable_sink_truncated_text")?Yoq:_.rr(hR0,{callbacks:{onTextClick:!0}});
Yoq.idomCompat={callbacks:{onTextClick:!0}};_.FE(FmE);var ZM0=_.L5({buttonViewModel:_.QK});_.FE(DAf);_.FE(YoV);_.FE(sPJ);var hRR=_.Fp(function(X){var t=X.data;X=X.className;var G=_.qt(function(){return C6s(t())},void 0,"Db3J3e");
return _.k("yt-video-attribute-view-model",{class:X},_.k("div",{class:function(){var y=t();a:switch(y.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var w="yt-video-attribute-view-model--vertical";break a;default:w="yt-video-attribute-view-model--horizontal"}a:switch(y.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var z="yt-video-attribute-view-model--image-small";break a;default:z="yt-video-attribute-view-model--image-large"}a:switch(y.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var B=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":B="yt-video-attribute-view-model--image-avatar";break a;default:B=""}a:switch(y.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var V="yt-video-attribute-view-model--metadata-header";break a;default:V=""}a:switch(y.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var b="yt-video-attribute-view-model--container-card";break a;default:b=""}return["yt-video-attribute-view-model",w,z,
B,V,b,C6s(y)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Ud({"background-color":function(){var y=t();if(y.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var w="";else{w=y.lightColorPalette;y=y.darkColorPalette;var z,B=((z=_.gw().resolve(_.jH(_.kI)))==null?0:z())&&y?y:w;w=(w=B==null?void 0:B.section2Color)?_.yY(w):""}return w}})},_.k(_.d,{cond:function(){return G()||!_.A("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.k(_.J4,{className:"yt-video-attribute-view-model__content-container",command:G,role:"group",ariaLabel:function(){return t().title}},_.k(_.d,{cond:function(){return t().heroText||t().image},
then:function(){return _.k(DAP,{data:t})}}),_.k(Sot,{data:t,
sizeSmall:function(){return t().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.k("div",{class:"yt-video-attribute-view-model__content-container"},_.k(_.d,{cond:function(){return t().heroText||t().image},
then:function(){return _.k(DAP,{data:t})}}),_.k(Sot,{data:t,
sizeSmall:function(){return t().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"ab");
hRR.idomCompat=!0;var ZMR=_.A("web_enable_sink_yt_video_attribute_view_model")?hRR:_.rr(DAf),DAP=_.Fp(function(X){var t=X.data;var G,y=(G=_.gw().resolve(_.jH(_.kI)))==null?void 0:G(),w=function(){return y&&t().darkThemeImage?t().darkThemeImage:t().image},z=_.qt(function(){return Kmf(t())},void 0,"Mkm2tb");
return _.k("div",{class:"yt-video-attribute-view-model__hero-section"},_.k(_.P0,null,_.k(_.rn,{when:w},function(){return _.k(_.gr,{data:function(){return w()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.k(_.rn,{when:function(){return t().heroText}},function(){return _.k("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.k("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return t().heroText}))})),_.k(_.d,{cond:function(){return t().overflowMenuOnTap},
then:function(){return _.k("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.k(_.jh,{data:z,iconName:"MORE_VERT"}))}}))},"bb");
DAP.idomCompat=!0;var Sot=_.Fp(function(X){var t=X.data;X=X.sizeSmall;var G=function(){return t().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},y=_.qt(function(){return oi(_.Hl({innertubeCommand:C6s(t())}))?"link":"group"},void 0,"tvI7S"),w={};
return _.k("div",{class:_.cl("yt-video-attribute-view-model__metadata",(w["yt-video-attribute-view-model--small-font"]=X,w)),role:y},_.k("h1",{class:"yt-video-attribute-view-model__title"},function(){return t().title}),_.k(_.d,{cond:function(){return t().subtitle},
then:function(){return _.k("h4",{class:"yt-video-attribute-view-model__subtitle"},_.k(_.d,{cond:G,then:function(){return _.k(sPh,{text:function(){return qoJ(t().subtitle)},
truncationText:function(){return qoJ(t().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.k("span",null,function(){return t().subtitle})}}))}}),_.k(_.d,{cond:function(){return t().secondarySubtitle},
then:function(z){return _.k("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.k(_.eh,{text:function(){var B=z();if(B!=null&&B.attachmentRuns){for(var V=[],b=_.J(B.attachmentRuns),e=b.next();!e.done;e=b.next())e=e.value,e.element&&V.push(Object.assign({},e,{element:Object.assign({},e.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));B=Object.assign({},B,{attachmentRuns:V})}return B}}))}}),_.k(_.M7,
{data:function(){return t().buttonViewModel}},{buttonViewModel:function(z){return _.k(_.QK,{data:z.data,
className:"yt-video-attribute-view-model__button"})}}))},"cb");
Sot.idomCompat=!0;_.DW(ZMR,"yt-video-attribute-view-model",{props:{data:_.bR,className:_.bR}});var C$=function(){var X=_.O.apply(this,arguments)||this;X.useHighlightStyling=_.A("web_enable_deeper_metadata_highlight_styling");X.isSearch=!1;X.JSC$15031_lastScrollContainerWidth=NaN;X.pageLoadingFromNavigation=!1;X.currentIndex=0;X.supportComponentResize=!1;return X};
_.S(C$,_.O);_.H=C$.prototype;
_.H.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}}}}}};
_.H.attached=function(){document.addEventListener("yt-page-type-changed",_.Ik(this,this.onPageChange))};
_.H.detached=function(){document.removeEventListener("yt-page-type-changed",_.Ik(this,this.onPageChange))};
_.H.getItemsPath=function(){return"data.cards"};
_.H.onIronResize=function(){this.updateListStyles()};
_.H.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var X;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(X=this.data)==null?void 0:X.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.A("problem_walkthrough_sd")&&!!this.centerItems};
_.H.computeCardListStyle=function(X){return X||null};
_.H.computeEmpty=function(X){return!this.get("cards.length",X)};
_.H.computeThumbnailStyle=function(X){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",X)||null};
_.H.computeHasSubtitle=function(X){return!!this.get("header.richListHeaderRenderer.subtitle",X)};
_.H.computeInitialCountNumber=function(X){return this.hasSquareMiniApp&&X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.H.computeUseFloorScrolling=function(X){return X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.H.computeHasGameCard=function(X){return(X=this.get("cards",X))?X.some(function(t){return t.gameCardRenderer}):!1};
_.H.computeCenterHeaderTitle=function(X){return!(X==null||!X.centerHeaderTitle)};
_.H.computeHasPortraitMiniApp=function(X){return(X=X==null?void 0:X.cards)?X.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.H.computeHasSquareMiniApp=function(X){return(X=X==null?void 0:X.cards)?X.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.H.computeHasSkinnyWidthPortraitMiniApp=function(X){return(X=X==null?void 0:X.cards)?X.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.width===135}):!1};
_.H.computeCenterItems=function(X){return!!X};
_.H.computeHasInfoPanel=function(X){var t;return X==null?void 0:(t=X.cards)==null?void 0:t.some(function(G){return G.infoPanelContentRenderer})};
_.H.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.H.getItemByIndex=function(X){var t=this.items.children;return t&&t.length>X?t[X]:void 0};
_.H.onPageChange=function(){var X=this;this.pageLoadingFromNavigation=!0;_.vz.addJob(function(){X.pageLoadingFromNavigation=!1;_.D0(X.hostElement,"yt-terminate-video-preview-action")},8)};
_.H.updateListStyles=function(){if(_.A("problem_walkthrough_sd")&&this.JSC$15031_scrollContainer!==void 0){var X=this.JSC$15031_scrollContainer.clientWidth;X!==this.JSC$15031_lastScrollContainerWidth&&(this.JSC$15031_lastScrollContainerWidth=X,_.Kd(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(X*.8,415)+"px"}),_.Yt(this.hostElement,"iron-resize"))}};
_.ke.Object.defineProperties(C$.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.A("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return!!((X=this.data)==null?0:(t=X.cards)==null?0:(G=t[0])==null?0:G.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return!!((X=this.data)==null?0:(t=X.cards)==null?0:(G=t[0])==null?0:G.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return _.A("enable_desktop_amsterdam_info_panels")&&!!((X=this.data)==null?0:(t=X.cards)==null?0:(G=t[0])==null?0:G.infoPanelContentRenderer)}}});
C$.prototype.dataChanged=C$.prototype.dataChanged;C$.prototype.onIronResize=C$.prototype.onIronResize;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.Yj.YtdHorizontalListBehavior),_.U("design:type",Object)],C$.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.q(_.tV),_.U("design:type",Object)],C$.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],C$.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],C$.prototype,"useCustomColors",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],C$.prototype,"useHighlightStyling",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.U("design:type",Object)],C$.prototype,"cardListStyle",void 0);_.E([_.K({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.U("design:type",Boolean)],C$.prototype,"empty",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.U("design:type",Boolean)],C$.prototype,"hasSubtitle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.U("design:type",Boolean)],C$.prototype,"thumbnailStyle",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.U("design:type",Boolean)],C$.prototype,"hasGameCard",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.U("design:type",Boolean)],C$.prototype,"centerHeaderTitle",void 0);
_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.U("design:type",Boolean)],C$.prototype,"hasPortraitMiniApp",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.U("design:type",Boolean)],C$.prototype,"hasSquareMiniApp",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.U("design:type",Boolean)],C$.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.U("design:type",Boolean)],C$.prototype,"hasInfoPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],C$.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],C$.prototype,"inlineStructuredDescription",void 0);_.E([_.rt("#scroll-container"),_.U("design:type",HTMLDivElement)],C$.prototype,"JSC$15031_scrollContainer",void 0);
_.E([_.K({computed:"computeInitialCountNumber(data.style.type)"}),_.U("design:type",Number)],C$.prototype,"initialCount",void 0);_.E([_.K({computed:"computeUseFloorScrolling(data.style.type)"}),_.U("design:type",Boolean)],C$.prototype,"useFloorScrolling",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.U("design:type",Boolean)],C$.prototype,"centerItems",void 0);_.E([_.K(),_.U("design:type",Object)],C$.prototype,"pageLoadingFromNavigation",void 0);
_.E([_.K(),_.U("design:type",Object)],C$.prototype,"currentIndex",void 0);_.E([_.K(),_.U("design:type",Number)],C$.prototype,"scrollCount",void 0);_.E([_.K(),_.U("design:type",Object)],C$.prototype,"supportComponentResize",void 0);_.E([_.rt("#items"),_.U("design:type",HTMLDivElement)],C$.prototype,"items",void 0);_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],C$.prototype,"onIronResize",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],C$.prototype,"dataChanged",null);_.E([_.K({reflectToAttribute:!0}),_.C("inlineStructuredDescription"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],C$.prototype,"hideNavigationButton",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],C$.prototype,"modernChapters",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],C$.prototype,"hasVideoAttributeViewModels",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],C$.prototype,"modernInfoPanels",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],C$);
_.N(C$,"ytd-horizontal-card-list-renderer",function(){if(A9t!==void 0)return A9t;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return A9t=X},{mode:_.Cz("kevlar_poly_si_batch_j072")?1:2});var qoh=_.Fp(function(X){var t=X.data;var G={};return _.k("video-summary-content-view-model",{class:_.cl("video-summary-content-view-model-wiz",X.className,(G["video-summary-content-view-model-wiz--is-search"]=X.isSearch,G))},_.k(_.pY,{each:function(){var y=[],w=t().paragraphs;if(w==null||!w.length)return[];for(var z=0;z<w.length;z++){var B=_.Y(w[z],NxJ),V=void 0;z>0&&(V=_.Y(w[z-1],NxJ));V&&!!V.marker===!!B.marker?y[y.length-1].paragraphs.push(B):y.push({isList:!!B.marker,paragraphs:[B]})}return y},
keyBy:"INDEX"},function(y){return _.k(_.d,{cond:function(){return y().isList},
then:function(){return _.k("ul",{class:"video-summary-content-view-model-wiz__list"},_.k(_.pY,{each:function(){return y().paragraphs},
keyBy:"INDEX"},function(w){return _.k("li",{class:"video-summary-content-view-model-wiz__list-item"},_.k(_.eh,{text:function(){return w().text}}))}))},
else:function(){return _.k(_.pY,{each:function(){return y().paragraphs},
keyBy:"INDEX"},function(w){return _.k("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.k(_.eh,{text:function(){return w().text}}))})}})}),_.k(_.d,{cond:function(){return!!_.Y(t().likeButtonViewModel,_.fe)&&!!_.Y(t().dislikeButtonViewModel,_.x_)},
then:function(){return _.k("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.k("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.k(_.f8,{data:function(){return _.Y(t().likeButtonViewModel,_.fe)},
disableIconAnimation:!0})),_.k(_.xj,{data:function(){return _.Y(t().dislikeButtonViewModel,_.x_)}}))}}))},"db");
qoh.idomCompat=!0;_.DW(qoh,"video-summary-content-view-model",{props:{data:_.bR,isSearch:_.bR,className:_.bR}});var K$=function(){var X=_.O.apply(this,arguments)||this;var t,G;X.isExpanded=(G=(t=X.data)==null?void 0:t.isExpanded)!=null?G:!1;X.disableExpand=!1;X.showProminentLabel=!1;X.showRightSideLabel=!0;X.toggleExpandableContent=function(y){X.disableExpand||(y.stopPropagation(),_.Tz(_.be(y),X.hostElement,["info","expanded-subtitle"])||(X.isExpanded=!X.isExpanded,X.ytRendererBehavior.logExplicitClick(X.data),X.JSC$15042_cardList&&!_.A("expandable_metadata_a11y_fix_ks")&&_.V8(X,function(){_.VG(X.hostElement)})))};
X.useSquareThumbnail=!1;X.contentHiddenWithDisplayNone=_.A("web_expandable_metadata_content_hidden_with_display_none");X.startX=0;return X};
_.S(K$,_.O);_.H=K$.prototype;_.H.computeUseSquareThumbnail=function(){var X;return(X=this.data)==null?void 0:X.useSquareThumbnail};
_.H.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"}}}}};
_.H.dataChanged=function(){if(this.data){var X,t;this.isExpanded=(t=(X=this.data)==null?void 0:X.isExpanded)!=null?t:!1;var G,y,w,z;if(X=this.isDarkTheme()?(G=this.data)==null?void 0:(y=G.colorData)==null?void 0:y.darkColorPalette:(w=this.data)==null?void 0:(z=w.colorData)==null?void 0:z.lightColorPalette){var B,V;if((B=this.data)==null?0:(V=B.colorData)==null?0:V.vibrantColorPalette)X.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.fX(this.hostElement,X)}}};
_.H.isExpandedChanged=function(){this.isExpanded&&this.JSC$15042_cardList&&_.Yt(this.JSC$15042_cardList,"iron-resize")};
_.H.computeIsExpanded=function(X){return!!X.isExpanded};
_.H.computeShowProminentLabel=function(X,t){var G;return!!(X==null?0:(G=X.header)==null?0:G.showLeadingCollapsedLabel)&&!t};
_.H.computeShowRightSideLabel=function(X,t){var G;return!(X==null?0:(G=X.header)==null?0:G.showLeadingCollapsedLabel)&&!t};
_.H.captureContentClick=function(X){if(!this.disableExpand)if(_.A("expandable_metadata_fix_killswitch")){var t=X.target;_.bTq(t,"ytd-macro-markers-list-item-renderer")||X.stopPropagation();(t==null?void 0:t.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Tz(_.be(X),this.hostElement,["items"])||_.Fa(_.be(X),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.H.timestampClick=function(X){X.stopPropagation();var t,G;(X=(t=this.data)==null?void 0:(G=t.header)==null?void 0:G.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(X)};
_.H.onDown=function(X){X.stopPropagation();this.startX=X.detail?X.detail.x:0};
_.H.onUp=function(X){this.skipKeyInteraction(X)&&X.stopPropagation()};
_.H.skipKeyInteraction=function(X){var t=X.target;if((t==null?void 0:t.id)==="scroll-container"||(t==null?void 0:t.id)==="items"||X.detail&&X.detail.x!==this.startX)return!0;X=_.be(X);X=_.J(X);for(t=X.next();!t.done;t=X.next()){t=t.value;if(t===this.hostElement)break;if(t.hasAttribute&&t.hasAttribute("skip-key-interaction"))return!0}return!1};
_.H.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.ke.Object.defineProperties(K$.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.Y((X=this.data)==null?void 0:X.expandedContent,rzq)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.Y((X=this.data)==null?void 0:X.expandedContent,_.c_S)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null||!X.useCustomColors)&&!((t=this.data)==null||!t.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var X,t;return!!((X=this.data)==null?0:(t=X.header)==null?0:t.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var X,t;return!!((X=this.data)==null?0:(t=X.header)==null?0:t.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var X,t;return!!((X=this.data)==null?0:(t=X.header)==null?0:t.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.A("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
K$.prototype.onUp=K$.prototype.onUp;K$.prototype.onDown=K$.prototype.onDown;K$.prototype.isExpandedChanged=K$.prototype.isExpandedChanged;K$.prototype.dataChanged=K$.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],K$.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],K$.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],K$.prototype,"isExpanded",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],K$.prototype,"disableExpand",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],K$.prototype,"isSearch",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],K$.prototype,"isWatch",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.U("design:type",Object)],K$.prototype,"showProminentLabel",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.U("design:type",Object)],K$.prototype,"showRightSideLabel",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],K$.prototype,"hasVideoSummary",null);_.E([_.K({value:!1,reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],K$.prototype,"hasLockupViewModel",null);_.E([_.K({reflectToAttribute:!0}),_.C("data","isWatch"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],K$.prototype,"useCustomColors",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data","isExpanded"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],K$.prototype,"showInfoButton",null);_.E([_.C("data","isExpanded"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],K$.prototype,"showTimestamp",null);_.E([_.C("data","isExpanded"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],K$.prototype,"showExpandedSubtitle",null);
_.E([_.C("data","isExpanded"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],K$.prototype,"showThumbnail",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],K$.prototype,"useVppShoppingDestinationStyle",null);_.E([_.K(),_.U("design:type",Object)],K$.prototype,"toggleExpandableContent",void 0);_.E([_.rt("ytd-horizontal-card-list-renderer"),_.U("design:type",Object)],K$.prototype,"JSC$15042_cardList",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.U("design:type",Object)],K$.prototype,"useSquareThumbnail",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],K$.prototype,"contentHiddenWithDisplayNone",void 0);_.E([_.C("isExpanded"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],K$.prototype,"contentHidden",null);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],K$.prototype,"dataChanged",null);_.E([_.cW("isExpanded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],K$.prototype,"isExpandedChanged",null);_.E([_.WW("down"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],K$.prototype,"onDown",null);
_.E([_.WW("up"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],K$.prototype,"onUp",null);_.E([_.p({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],K$);
_.N(K$,"ytd-expandable-metadata-renderer",function(){if(On4!==void 0)return On4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return On4=X},{mode:1});var C6Y,KmP=function(){if(C6Y!==void 0)return C6Y;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return C6Y=X};_.DW(_.xK,"yt-avatar-stack-view-model",{props:{className:_.bR,data:_.bR,overrides:_.bR,isOverlay:_.bR,useMediumText:_.bR,decorations:_.bR,hideAvatar:_.bR}});_.Xa("itemSectionRenderer","videoRenderer","ytd-video-renderer");var OY=function(){var X=_.O.apply(this,arguments)||this;X.disableExpand=!1;X.shouldShowChannelInfo=!1;X.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return X};
_.S(OY,_.O);_.H=OY.prototype;_.H.computeUseSearchUi=function(){var X,t;return this.isSearch||((X=this.data)==null?void 0:(t=X.style)==null?void 0:t.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.H.computeUseThreeLineTitle=function(){var X;return((X=this.data)==null?void 0:X.maxTitleLines)===3};
_.H.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.A("polymer_video_renderer_defer_menu")&&!sRY?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"}}}};
_.H.attached=function(){_.Zk(this.hostElement,"blue-links",_.A("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.H.detached=function(){this.clearInlinePreviewHoverListeners()};
_.H.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.qS(_.Sm(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var X=this.get("data.buttons.buttonRenderer.serviceEndpoint"),t;X&&((t=_.Y(X.commandMetadata,_.Le))==null?0:t.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(X);this.updateInlinePreviewHoverListeners()};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15047_inlinePreviewHoverListener=oD({mediaRenderer:this,lockupElement:this.JSC$15047_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.H.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15047_inlinePreviewHoverListener)==null||gP(X)};
_.H.onTextWrapperClick=function(X){var t,G,y=this.hideTranslation?(t=this.data)==null?void 0:t.untranslatedNavigationEndpoint:(G=this.data)==null?void 0:G.navigationEndpoint;t=_.Tz(_.be(X),this.hostElement,["expandable-metadata"]);!y||t&&!_.A("expandable_metadata_fix_killswitch")||_.Fa(_.be(X),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Yt(this.hostElement,"yt-navigate",{endpoint:y})};
_.H.computeThumbnailWidth=function(X,t,G,y,w){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:y?w==="MASSIVE"?600:w==="BIG"?500:w==="MEDIUM"?450:420:G?360:t?128:X?210:246};
_.H.computeUseBiggerThumbs=function(X){return X&&_.A("enable_desktop_search_bigger_thumbs")};
_.H.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.H.computeVideoStyle=function(){if(_.A("enable_video_style")){var X,t;return(X=this.data)==null?void 0:(t=X.style)==null?void 0:t.value}};
_.H.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.H.handleHideItemSectionVideosByIdCommand=function(X){var t;X=(t=_.Y(X,Hmt))==null?void 0:t.videoId;this.data&&this.data.videoId===X&&(this.isHidden=!0)};
_.H.getMetadataSnippetContainerClass=function(X){return X?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.H.computeTitleText=function(X,t,G){return X?G:t};
_.H.computeDescriptionSnippet=function(X,t,G){return X?G:t};
_.H.computeSnippetText=function(X,t,G){return X?G:t};
_.H.computeNavigationEndpoint=function(X,t){return X?t==null?void 0:t.untranslatedNavigationEndpoint:t==null?void 0:t.navigationEndpoint};
_.H.hideInlineTitleIcon=function(X,t){return X||!t};
_.ke.Object.defineProperties(OY.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 X;return(X=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?X:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return!!(this==null?0:(X=this.data)==null?0:(t=X.channelThumbnailSupportedRenderers)==null?0:(G=t.channelThumbnailWithLinkRenderer)==null?0:G.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.Y((X=this.data)==null?void 0:X.avatar,pN4)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15047_inlinePreviewHoverListener)==null?0:XF(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.ke.Object.defineProperties(OY,{template:{configurable:!0,enumerable:!0,get:function(){return KmP()}}});
OY.prototype.dataChanged=OY.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],OY.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.q(_.JV),_.U("design:type",Object)],OY.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],OY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],OY.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],OY.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],OY.prototype,"isBackstageVideo",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],OY.prototype,"isPostCompactVideo",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],OY.prototype,"isHistory",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],OY.prototype,"isRichGridVideoPost",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],OY.prototype,"isHidden",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],OY.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.U("design:type",Boolean)],OY.prototype,"useSearchUi",void 0);_.E([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.U("design:type",Boolean)],OY.prototype,"useThreeLineTitle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.U("design:type",Boolean)],OY.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.U("design:type",Object)],OY.prototype,"videoStyle",void 0);_.E([_.K({computed:"computeDisableExpand(videoStyle)"}),_.U("design:type",Object)],OY.prototype,"disableExpand",void 0);
_.E([_.K({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.U("design:type",Object)],OY.prototype,"shouldShowChannelInfo",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.Yx("desktop_search_bigger_thumbs_style")}}),
_.U("design:type",String)],OY.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.U("design:type",String)],OY.prototype,"inlineTitleIcon",void 0);_.E([_.K({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.U("design:type",Object)],OY.prototype,"computedNavigationEndpoint",void 0);_.E([_.K({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(X,t){return _.Kg(X.entities,"searchVideoResultEntity",t)}}),
_.U("design:type",Object)],OY.prototype,"searchVideoResultEntity",void 0);_.E([_.rt("ytd-thumbnail"),_.U("design:type",HTMLElement)],OY.prototype,"thumbnail",void 0);_.E([_.rt("#dismissible"),_.U("design:type",HTMLElement)],OY.prototype,"JSC$15047_dismissibleMedia",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OY.prototype,"dataChanged",null);
_.E([_.C("searchVideoResultEntity"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],OY.prototype,"hideTranslation",null);_.E([_.C("searchVideoResultEntity"),_.U("design:type",Array),_.U("design:paramtypes",[])],OY.prototype,"hiddenBadgeGroups",null);_.E([_.C("data","useAvatar"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],OY.prototype,"shouldShowChannelThumbnail",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],OY.prototype,"useAvatar",null);
_.E([_.C("lockupIsHovered"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],OY.prototype,"isHovered",null);_.E([_.p({is:"ytd-video-renderer",disableElementRegistration:!0})],OY);_.N(OY,"ytd-video-renderer",function(){return KmP()},{mode:_.Cz("kevlar_poly_si_batch_j047")?1:2});var uZ=function(){var X=_.O.apply(this,arguments)||this;X.editDialog=null;X.roundedContainer=!0;X.isLoading=!1;X.isRichGrid=!1;X.isRichGridRepost=!1;X.reduceSidePaddings=_.A("reduce_side_paddings_in_shelf");X.JSC$15054_spinnerEl=null;return X};
_.S(uZ,_.O);_.H=uZ.prototype;
_.H.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"}}}};
_.H.contentTextChanged=function(){this.expander.reset()};
_.H.dataChanged=function(){var X=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var t=0,G=this.data.actions&&this.data.actions.length;t<G;t++)this.openEditDialog(_.Y(this.data.actions[t],YHz));if((t=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(t=this.get("buttonRenderer.hint.hintRenderer.hintId",t))&&t.startsWith("share-post-hint")){var y=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(y){_.A_.getInstance();var w=Y6(_.Vl(_.Qf("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.vz.addLowPriorityJob(function(){_.Z0(X.hostElement,w,y)})}}}};
_.H.updatePoll=function(X){X>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.H.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15054_spinnerEl||(this.JSC$15054_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Sm(this.hostElement).appendChild(this.JSC$15054_spinnerEl));this.JSC$15054_spinnerEl&&(this.JSC$15054_spinnerEl.active=this.isLoading)};
_.H.onYtNavigate=function(X){var t=this.get("updateCommentDialogEndpoint",X.detail.endpoint);t&&(this.openEditDialog(t),X.stopPropagation())};
_.H.onYtCommentboxDismiss=function(){this.editDialog=null};
_.H.onYtCommentPollRevert=function(X,t){t&&this.updatePoll(t.selectedChoiceIndex)};
_.H.onYtServiceRequestSent=function(X,t){var G;t.endpoint&&(_.Y(t.endpoint,a9o)||_.Y(t.endpoint,v_P)&&((G=_.Y(t.endpoint,v_P))==null||!G.clientActions))&&(this.isLoading=!0);if(t.actions)for(X=0;X<t.actions.length;X++)G=t.actions[X],_.Y(G,RM)&&(G=this.get("updateBackstagePollAction.selectedChoiceIndex",G),G==void 0&&(G=-1),this.updatePoll(G))};
_.H.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.H.openEditDialog=function(X){X&&X.dialog&&(this.editDialog=X.dialog,X=this.editDialogEl.firstElementChild)&&(X.focus(),X.openDialog&&X.openDialog())};
_.H.computeIsPostHidden=function(X,t){return!!X||t};
_.H.computeSurfaceType=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.H.computeUsesCompactLockup=function(X){return X==="BACKSTAGE_SURFACE_TYPE_HOME"||X==="BACKSTAGE_SURFACE_TYPE_SEARCH"||X==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||X==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||X==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||X==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.H.computeShowWithoutToolbar=function(X){return!X.actionButtons&&!X.actionMenu};
_.H.computePostAttachment=function(X){if(X.backstageAttachment){if(_.Y(X.backstageAttachment,qtB))return"poll";if(_.Y(X.backstageAttachment,Vfq))return"quiz";if(_.Y(X.backstageAttachment,_.wz))return"video";if(_.Y(X.backstageAttachment,beo))return"uploaded-videos";if(_.Y(X.backstageAttachment,LPS))return X.contentText?"image":"image-only";if(_.Y(X.backstageAttachment,o_4))return"playlist"}return"none"};
_.H.computePostTabIndex=function(X){return X?0:-1};
_.H.computeButtonTooltipPosition=function(X){return this.computeUsesCompactLockup(X)?"top":"bottom"};
_.H.computeHasText=function(X){return!(X==null||!X.contentText)};
_.H.onTap=function(X){var t,G;if(((t=this.data)==null?0:t.navigationEndpoint)&&((G=this.data)==null?void 0:G.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var y;((y=this.data)==null?0:y.navigationEndpoint)&&!_.Fa(_.be(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.ke.Object.defineProperties(uZ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.voteCount)||_.Vl("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,qtB))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,beo))}}});
uZ.prototype.onYtServiceRequestCompleted=uZ.prototype.onYtServiceRequestCompleted;uZ.prototype.onYtServiceRequestSent=uZ.prototype.onYtServiceRequestSent;uZ.prototype.onYtCommentPollRevert=uZ.prototype.onYtCommentPollRevert;uZ.prototype.onYtCommentboxDismiss=uZ.prototype.onYtCommentboxDismiss;uZ.prototype.onYtNavigate=uZ.prototype.onYtNavigate;uZ.prototype.isLoadingChanged=uZ.prototype.isLoadingChanged;uZ.prototype.dataChanged=uZ.prototype.dataChanged;uZ.prototype.contentTextChanged=uZ.prototype.contentTextChanged;
_.E([_.q(_.tV),_.U("design:type",Object)],uZ.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],uZ.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uZ.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],uZ.prototype,"editDialog",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uZ.prototype,"roundedContainer",void 0);_.E([_.K(),_.U("design:type",Object)],uZ.prototype,"isLoading",void 0);_.E([_.K({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.U("design:type",String)],uZ.prototype,"surface",void 0);
_.E([_.K({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.U("design:type",Boolean)],uZ.prototype,"usesCompactLockup",void 0);_.E([_.K({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],uZ.prototype,"showWithoutToolbar",void 0);_.E([_.K({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.U("design:type",String)],uZ.prototype,"attachment",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uZ.prototype,"isRichGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uZ.prototype,"isRichGridRepost",void 0);_.E([_.K({reflectToAttribute:!0,value:_.A("use_better_post_dismissals")}),_.U("design:type",Boolean)],uZ.prototype,"useBetterPostDismissals",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uZ.prototype,"reduceSidePaddings",void 0);
_.E([_.K({computed:"computeHasText(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],uZ.prototype,"hasText",void 0);_.E([_.rt("#expander"),_.U("design:type",Object)],uZ.prototype,"expander",void 0);_.E([_.rt("#action-buttons"),_.U("design:type",Object)],uZ.prototype,"actionButtons",void 0);_.E([_.rt("#edit-dialog"),_.U("design:type",HTMLElement)],uZ.prototype,"editDialogEl",void 0);
_.E([_.cW("data.contentText"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uZ.prototype,"contentTextChanged",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uZ.prototype,"dataChanged",null);_.E([_.cW("isLoading"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uZ.prototype,"isLoadingChanged",null);
_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uZ.prototype,"onYtNavigate",null);_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uZ.prototype,"onYtCommentboxDismiss",null);_.E([_.WW("yt-comment-poll-revert"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],uZ.prototype,"onYtCommentPollRevert",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],uZ.prototype,"onYtServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],uZ.prototype,"onYtServiceRequestCompleted",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],uZ.prototype,"voteCount",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],uZ.prototype,"commentCount",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],uZ.prototype,"hasPoll",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],uZ.prototype,"hasUploadedVideo",null);_.E([_.p({is:"ytd-post-renderer",disableElementRegistration:!0})],uZ);
_.N(uZ,"ytd-post-renderer",function(){if(MZP!==void 0)return MZP;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return MZP=X},{mode:1});var OMR;var urR;var QV=function(){return _.O.apply(this,arguments)||this};
_.S(QV,_.O);QV.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],QV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.Yj.YtdHorizontalListBehavior),_.U("design:type",Object)],QV.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],QV.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],QV.prototype,"data",void 0);
_.E([_.K({value:"$.items.children"}),_.U("design:type",String)],QV.prototype,"itemsPath",void 0);_.E([_.K({value:1}),_.U("design:type",Number)],QV.prototype,"initialCount",void 0);_.E([_.K(),_.U("design:type",String)],QV.prototype,"surface",void 0);_.E([_.p({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],QV);
_.N(QV,"ytd-post-multi-image-renderer",function(){if(urR!==void 0)return urR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return urR=X},{mode:_.Cz("kevlar_poly_si_batch_j079")?1:2});var QPt={"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"}}},Iy=function(){var X=_.O.apply(this,arguments)||this;X.hasInlineCommentSection=!1;X.editDialog=null;X.isLoading=!1;X.shouldHideAuthor=!1;X.shouldShowVideoTime=!1;
X.isInEngagementPanel=!1;X.hideBorder=!1;X.usesFullLockup=!1;X.shouldShowMenuInCompactView=!1;X.JSC$15070_spinnerEl=null;X.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return X};
_.S(Iy,_.O);_.H=Iy.prototype;_.H.configureRendererStamper=function(){return QPt};
_.H.computeIsPollHeaderEnabled=function(X){return(X==null?void 0:X.pollMetadataIcon)!=null};
_.H.getPublishTimeStampString=function(X,t){t=new Date((Number(t)-60*((new Date).getTimezoneOffset()-(new Date(Number(t)*1E3)).getTimezoneOffset()))*1E3);t=(new By(10)).format(t);if(X&&X.runs&&X.runs.length)for(var G=0;G<X.runs.length;G++)X.runs[G].text&&(X.runs[G].text=X.runs[G].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",t));return X};
_.H.created=function(){this.JSC$15070_spinnerEl=null};
_.H.contentTextChanged=function(){this.expander.reset()};
_.H.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var X;if((X=this.data)==null?0:X.actions){X=_.J(this.data.actions);for(var t=X.next();!t.done;t=X.next())this.openEditDialog(_.Y(t.value,YHz))}};
_.H.handleSignalActionOpenPostCommentDialogAction=function(){_.Sm(this.hostElement).querySelector("#action-buttons").reply()};
_.H.updatePoll=function(X,t){t&&this.set("data.pollMetadataVoteCountText",t);this.hasInlineCommentSection&&(X=X>=0,t=_.Sm(this.hostElement).querySelector("#action-buttons"),X?t.reply():t.hideReplyDialog())};
_.H.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15070_spinnerEl||(this.JSC$15070_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Sm(this.hostElement).appendChild(this.JSC$15070_spinnerEl));this.JSC$15070_spinnerEl&&(this.JSC$15070_spinnerEl.active=this.isLoading)};
_.H.onYtNavigate=function(X){var t=this.get("updateCommentDialogEndpoint",X.detail.endpoint);t&&(this.openEditDialog(t),X.stopPropagation())};
_.H.onYtCommentboxDismiss=function(){this.editDialog=null};
_.H.onYtCommentPollRevert=function(X,t){t&&this.updatePoll(t.selectedChoiceIndex,t.totalVotes)};
_.H.onYtServiceRequestSent=function(X,t){X.stopPropagation();X=_.Y(t.endpoint,v_P);if(_.Y(t.endpoint,a9o)||X&&!X.clientActions)this.isLoading=!0;if(t.actions)for(X=0;X<t.actions.length;X++){var G=t.actions[X],y=_.Y(G,RM);y&&(G=this.get("updateBackstagePollAction.selectedChoiceIndex",G),G===void 0&&(G=-1),this.updatePoll(G,y.totalVotes))}};
_.H.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.H.openEditDialog=function(X){X&&X.dialog&&(this.editDialog=X.dialog,X=this.editDialogElement.firstElementChild)&&(X.focus(),X.openDialog&&X.openDialog())};
_.H.computeIsBodyHidden=function(X,t){return!!X||t};
_.ke.Object.defineProperties(Iy.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var X,t;if((X=this.data)==null?0:(t=X.pollMetadataIcon)==null?0:t.iconType)return _.Q2(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.voteCount)||_.Vl("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,qtB))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,Vfq))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,beo))}}});
Iy.prototype.onYtServiceRequestCompleted=Iy.prototype.onYtServiceRequestCompleted;Iy.prototype.onYtServiceRequestSent=Iy.prototype.onYtServiceRequestSent;Iy.prototype.onYtCommentPollRevert=Iy.prototype.onYtCommentPollRevert;Iy.prototype.onYtCommentboxDismiss=Iy.prototype.onYtCommentboxDismiss;Iy.prototype.onYtNavigate=Iy.prototype.onYtNavigate;Iy.prototype.isLoadingChanged=Iy.prototype.isLoadingChanged;Iy.prototype.dataChanged=Iy.prototype.dataChanged;Iy.prototype.contentTextChanged=Iy.prototype.contentTextChanged;
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Iy.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Iy.prototype,"rendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Iy.prototype,"rendererstamperBehavior",void 0);_.E([_.rt("#contentTextExpander"),_.U("design:type",Object)],Iy.prototype,"expander",void 0);
_.E([_.rt("#edit-dialog"),_.U("design:type",Element)],Iy.prototype,"editDialogElement",void 0);_.E([_.K(),_.U("design:type",Object)],Iy.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Iy.prototype,"hasInlineCommentSection",void 0);_.E([_.K(),_.U("design:type",Object)],Iy.prototype,"editDialog",void 0);_.E([_.K(),_.U("design:type",Object)],Iy.prototype,"isLoading",void 0);
_.E([_.K({computed:"computeIsPollHeaderEnabled(data)"}),_.U("design:type",Boolean)],Iy.prototype,"isPollHeaderEnabled",void 0);_.E([_.K(),_.U("design:type",Object)],Iy.prototype,"shouldHideAuthor",void 0);_.E([_.K(),_.U("design:type",Object)],Iy.prototype,"shouldShowVideoTime",void 0);_.E([_.K(),_.U("design:type",Object)],Iy.prototype,"isInEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Iy.prototype,"hideBorder",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Iy.prototype,"usesFullLockup",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Iy.prototype,"shouldShowMenuInCompactView",void 0);_.E([_.C("isInEngagementPanel"),_.U("design:type",Number),_.U("design:paramtypes",[])],Iy.prototype,"postTextMaxLines",null);_.E([_.C("data.icon.iconType"),_.U("design:type",Object),_.U("design:paramtypes",[])],Iy.prototype,"pollIcon",null);
_.E([_.cW("data.contentText"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Iy.prototype,"contentTextChanged",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Iy.prototype,"dataChanged",null);_.E([_.cW("isLoading"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Iy.prototype,"isLoadingChanged",null);
_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Iy.prototype,"onYtNavigate",null);_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Iy.prototype,"onYtCommentboxDismiss",null);_.E([_.WW("yt-comment-poll-revert"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Iy.prototype,"onYtCommentPollRevert",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],Iy.prototype,"onYtServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Iy.prototype,"onYtServiceRequestCompleted",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Iy.prototype,"voteCount",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Iy.prototype,"commentCount",null);_.E([_.C("data.backstageAttachment"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Iy.prototype,"hasPoll",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Iy.prototype,"hasQuiz",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Iy.prototype,"hasUploadedVideo",null);
_.E([_.p({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Iy);
_.N(Iy,"ytd-backstage-post-renderer",function(){if(OMR!==void 0)return OMR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return OMR=X},{mode:1});var I3o;var W5=function(){var X=_.O.apply(this,arguments)||this;X.editDialog=null;X.showExpandButton=!1;X.isRichGrid=!1;X.usesFullLockup=!1;return X};
_.S(W5,_.O);_.H=W5.prototype;_.H.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"}}}};
_.H.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.H.computeShowExpandButton=function(X){return this.usesCompactLockup||X&&X.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.H.computeUsesCompactLockup=function(X){return!!X.condensedContent};
_.H.computeShowFullContentText=function(X){return!X};
_.H.onYtNavigate=function(X){X=this.get("updateCommentDialogEndpoint",X.detail.endpoint);this.openEditDialog(X)};
_.H.onYtCommentboxDismiss=function(){this.editDialog=null};
_.H.openEditDialog=function(X){X&&X.dialog&&(this.editDialog=X.dialog,X=this.repostEditDialogEl.firstElementChild)&&(X.focus(),X.openDialog&&X.openDialog())};
_.H.onTap=function(X){if(this.data){var t=null;this.usesCompactLockup&&!_.Fa(_.be(X)||[],this.hostElement,["YT-IMG-SHADOW"])?t=this.get("navigationEndpoint",this.data):X.target===this.moreButtonEl&&(t=this.get("navigationEndpoint",X.target.data));t&&_.Yt(this.hostElement,"yt-navigate",{endpoint:t})}};
W5.prototype.onYtCommentboxDismiss=W5.prototype.onYtCommentboxDismiss;W5.prototype.onYtNavigate=W5.prototype.onYtNavigate;W5.prototype.dataChanged=W5.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],W5.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],W5.prototype,"editDialog",void 0);_.E([_.K({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],W5.prototype,"usesCompactLockup",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],W5.prototype,"showExpandButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],W5.prototype,"isRichGrid",void 0);
_.E([_.K({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.U("design:type",Boolean)],W5.prototype,"showFullContentText",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],W5.prototype,"usesFullLockup",void 0);_.E([_.rt("#more"),_.U("design:type",Object)],W5.prototype,"moreButtonEl",void 0);_.E([_.rt("#repost-content-text"),_.U("design:type",HTMLElement)],W5.prototype,"repostContentTextEl",void 0);
_.E([_.rt("#repost-edit-dialog"),_.U("design:type",HTMLElement)],W5.prototype,"repostEditDialogEl",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],W5.prototype,"dataChanged",null);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],W5.prototype,"onYtNavigate",null);
_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],W5.prototype,"onYtCommentboxDismiss",null);_.E([_.p({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],W5);
_.N(W5,"ytd-shared-post-renderer",function(){if(I3o!==void 0)return I3o;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return I3o=X},{mode:1});var Wmt;var cr4;var c5=function(){return _.O.apply(this,arguments)||this};
_.S(c5,_.O);c5.prototype.attached=function(){var X=this;this.networkStatusManager||(this.networkStatusManager=new _.Jv,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){X.onlineHandler()}))};
c5.prototype.detached=function(){var X=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){X.onlineHandler()}),delete this.networkStatusManager)};
c5.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],c5.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],c5.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],c5);
_.N(c5,"ytd-reload-page-button-renderer",function(){if(cr4!==void 0)return cr4;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return cr4=X},{mode:1});var pJB={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"},p$=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(p$,_.O);_.H=p$.prototype;_.H.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.H.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.H.computeHasBodyText=function(X){return!!X.bodyText};
_.H.computeButtons=function(X){var t=[];X.ctaButton&&t.push(X.ctaButton);X.secondaryButton&&t.push(X.secondaryButton);return t};
_.H.computeRendererStyle=function(X){return X.style?X.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():X.icon?"":"no-icon"};
_.H.getIconName=function(X,t){t=t===void 0?!1:t;if(X===void 0)return"";X=this.get("icon.iconType",X);var G;_.A("enable_hlp_client_icon_pick")?G=this.getThemedIcon(X,t):G=X;(t=pJB[G])||(t="yt-icons");return[t,G].join(":")};
_.H.getThemedIcon=function(X,t){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(X)?t?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(X)?t?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":X};
_.H.isThumbnail=function(X){return!!X.thumbnail};
_.H.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.H.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],p$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],p$.prototype,"data",void 0);
_.E([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.U("design:type",String)],p$.prototype,"rendererStyle",void 0);_.E([_.K({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.U("design:type",String)],p$.prototype,"iconName",void 0);_.E([_.K({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],p$.prototype,"thumbnail",void 0);_.E([_.K({computed:"computeButtons(data)"}),_.U("design:type",Array)],p$.prototype,"buttons",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],p$.prototype,"isDarkTheme",void 0);_.E([_.K({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],p$.prototype,"hasBodyText",void 0);_.E([_.p({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],p$);
_.N(p$,"ytd-background-promo-renderer",function(){if(Wmt!==void 0)return Wmt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Wmt=X},{mode:1});var rrS;var rg=function(){var X=_.O.apply(this,arguments)||this;X.collections=_.A("web_modern_collections_v2");return X};
_.S(rg,_.O);_.ke.Object.defineProperties(rg.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y,w,z;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(X=this.data)==null?void 0:(t=X.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(y=G.thumbnail)==null?void 0:y.vibrantColorPalette,darkColorPalette:(w=this.data)==null?void 0:(z=w.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rg.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],rg.prototype,"collections",void 0);_.E([_.C("data","collections"),_.U("design:type",Object),_.U("design:paramtypes",[])],rg.prototype,"collectionStack",null);_.E([_.p({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],rg);
_.N(rg,"ytd-compact-station-renderer",function(){if(rrS!==void 0)return rrS;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return rrS=X},{mode:1});var Ndt;var NL=function(){var X=_.O.apply(this,arguments)||this;X.isRichGrid=!1;return X};
_.S(NL,_.O);NL.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]]"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],NL.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],NL.prototype,"isRichGrid",void 0);_.E([_.p({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],NL);
_.N(NL,"ytd-grid-channel-renderer",function(){if(Ndt!==void 0)return Ndt;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Ndt=X},{mode:1});var P6t;var P5=function(){return _.O.apply(this,arguments)||this};
_.S(P5,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],P5.prototype,"data",void 0);_.E([_.p({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],P5);
_.N(P5,"ytd-grid-movie-playlist-renderer",function(){if(P6t!==void 0)return P6t;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return P6t=X},{mode:1});var E$e;var EY=function(){var X=_.O.apply(this,arguments)||this;X.downloadProgress=0;X.transferState="TRANSFER_STATE_UNKNOWN";X.modernButtons=_.A("web_modern_buttons");X.useModernCollectionsV2=_.A("web_modern_collections_v2");return X};
_.S(EY,_.O);EY.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
EY.prototype.configureRendererStamper=function(){return{"data.menu":Il}};
EY.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
EY.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.A("woffle_playlist_renderer_killswitch")){var X,t=Tvl(this.entityInfo,this.transferState,this.downloadProgress,(X=this.data)==null?void 0:X.playlistId,this.isOnline);X=t.viewPlaylistText;var G=t.badges;t=t.thumbnailOverlays;this.isDownloads=!!X||!!G;this.set("data.viewPlaylistText",X);G&&G.length>0&&this.set("data.badges",G);t&&t.length>0&&this.set("data.thumbnailOverlays",
t)}};
_.ke.Object.defineProperties(EY.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 X;return!((X=this.data)==null?0:X.menu)}}});
EY.prototype.transferStateChanged=EY.prototype.transferStateChanged;EY.prototype.dataChanged=EY.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],EY.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],EY.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K({selector:_.IBw,selectorArgs:["data.playlistId"]}),_.U("design:type",Object)],EY.prototype,"downloadProgress",void 0);_.E([_.K({selector:_.tp,selectorArgs:["data.playlistId"]}),_.U("design:type",Object)],EY.prototype,"transferState",void 0);_.E([_.K({selector:Q9V,selectorArgs:["data.playlistId"]}),_.U("design:type",Object)],EY.prototype,"entityInfo",void 0);_.E([_.K({selector:_.X0}),_.U("design:type",Boolean)],EY.prototype,"isOnline",void 0);
_.E([_.K(),_.U("design:type",Object)],EY.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],EY.prototype,"downloadRenderData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],EY.prototype,"modernButtons",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],EY.prototype,"isDownloads",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],EY.prototype,"useModernCollectionsV2",void 0);
_.E([_.C("transferState"),_.K({reflectToAttribute:!0}),_.U("design:type",String),_.U("design:paramtypes",[])],EY.prototype,"downloadState",null);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],EY.prototype,"menuHidden",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],EY.prototype,"dataChanged",null);
_.E([_.U0("transferState","downloadProgress","isOnline"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],EY.prototype,"transferStateChanged",null);_.E([_.p({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],EY);
_.N(EY,"ytd-grid-playlist-renderer",function(){if(E$e!==void 0)return E$e;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return E$e=X},{mode:1});var UA4;var UY=function(){var X=_.O.apply(this,arguments)||this;X.collections=_.A("web_modern_collections_v2");return X};
_.S(UY,_.O);UY.prototype.configureRendererStamper=function(){return{"data.menu":Il,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ke.Object.defineProperties(UY.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y,w,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(X=this.data)==null?void 0:(t=X.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(y=G.thumbnail)==null?void 0:y.vibrantColorPalette,darkColorPalette:(w=this.data)==null?void 0:(z=w.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],UY.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],UY.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],UY.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],UY.prototype,"collections",void 0);_.E([_.C("data","collections"),_.U("design:type",Object),_.U("design:paramtypes",[])],UY.prototype,"collectionStack",null);_.E([_.p({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],UY);
_.N(UY,"ytd-grid-radio-renderer",function(){if(UA4!==void 0)return UA4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return UA4=X},{mode:1});var mAt;var mi=function(){var X=_.O.apply(this,arguments)||this;X.useModernCollectionsV2=_.A("web_modern_collections_v2");return X};
_.S(mi,_.O);mi.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
mi.prototype.computeNavigationEndpoint=function(X){return qC6(X==null?void 0:X.navigationEndpoint)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],mi.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mi.prototype,"data",void 0);_.E([_.K({computed:"computeNavigationEndpoint(data)"}),_.U("design:type",Object)],mi.prototype,"computedNavigationEndpoint",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mi.prototype,"useModernCollectionsV2",void 0);_.E([_.p({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],mi);
_.N(mi,"ytd-grid-show-renderer",function(){if(mAt!==void 0)return mAt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return mAt=X},{mode:1});var RRo;_.Ry=function(X){this.playerClient=X};
_.iMJ=function(X,t,G){G=G===void 0?{}:G;return X.playerClient.setOption("ad",t,G)};
_.Ry.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Ry.prototype.executeCommand=function(X,t){this.getOptions().includes("executeCommand")?_.iMJ(this,"executeCommand",{command:X,layoutId:t}):_.g2("Calling executeCommand when adModule is not loaded")};var iZ=function(){return _.O.apply(this,arguments)||this};
_.S(iZ,_.O);iZ.prototype.getLayoutId=function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.layoutId:null};
iZ.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var X=_.sW(),t=this.getLayoutId(),G=this.data.clickthroughEndpoint;X&&t&&_.A("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?X.getPlayerPromise().then(function(y){(new _.Ry(y)).executeCommand(G,t)}):_.Yt(this.hostElement,"yt-navigate",{endpoint:G})}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iZ.prototype,"data",void 0);_.E([_.p({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],iZ);
_.N(iZ,"ytd-shopping-companion-item-renderer",function(){if(RRo!==void 0)return RRo;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return RRo=X},{mode:1});var Lme;var L$=function(){var X=_.O.apply(this,arguments)||this;X.isExpandableContent=!1;return X};
_.S(L$,_.O);_.ke.Object.defineProperties(L$.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.data)==null?void 0:X.price)||((t=this.data)==null?void 0:(G=t.dealsData)==null?void 0:G.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var X,t;if((X=this.data)!=null&&X.dealsData&&((t=this.data)==null||!t.priceReplacementText)){X=this.data.dealsData;var G,y,w;return((G=X.salesData)==null?void 0:G.originalPrice)||((y=X.priceDropData)==null?void 0:y.referencePrice)||((w=X.promotionData)==null?void 0:w.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var X,t;return(X=this.data)==null?void 0:(t=X.dealsData)==null?void 0:t.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],L$.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],L$.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],L$.prototype,"isExpandableContent",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"showCta",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"ctaText",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"hasPriceTopPosition",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"hasPriceBottomPosition",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"useNewStyle",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"showPriceReplacementText",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"priceValue",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"showDeal",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"showAffiliateDisclaimer",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"useSaleStyle",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"useFromBrandCtaStyle",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"useFromVendorCtaStyle",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L$.prototype,"useShoppingCollectionCtaStyle",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],L$);
_.N(L$,"ytd-vertical-product-card-renderer",function(){if(Lme!==void 0)return Lme;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Lme=X},{mode:1});var v$4;var v5=function(){return _.O.apply(this,arguments)||this};
_.S(v5,_.O);v5.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],v5.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],v5.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],v5);
_.N(v5,"ytd-grid-movie-renderer",function(){if(v$4!==void 0)return v$4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return v$4=X},{mode:1});var a3q;var ay=function(){var X=_.O.apply(this,arguments)||this;X.rounded=!0;X.itemStyle="small-item";return X};
_.S(ay,_.O);ay.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var X,t,G,y,w=(t=_.Y((X=this.data)==null?void 0:X.buttonCommand,_.PM))==null?void 0:(G=t.item)==null?void 0:(y=G.notificationTextRenderer)==null?void 0:y.successResponseText;w&&_.OM0(this.hostElement,w)}};
_.ke.Object.defineProperties(ay.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:X.isProductPlaceholder)!==void 0&&((t=this.data)==null?void 0:t.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.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}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ay.prototype,"rounded",void 0);_.E([_.K(),_.U("design:type",Object)],ay.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],ay.prototype,"itemStyle",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ay.prototype,"hasPrice",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ay.prototype,"hasPriceReplacementText",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ay.prototype,"hasAdditionalFeesText",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ay.prototype,"hasAffiliateDisclaimer",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ay.prototype,"isProductPlaceholder",null);
_.E([_.K(),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ay.prototype,"hideOpenInNewIcon",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ay.prototype,"ariaLabel",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],ay);
_.N(ay,"ytd-merch-shelf-item-renderer",function(){if(a3q!==void 0)return a3q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return a3q=X},{mode:1});var l3h=_.Fp(function(X){return _.k("button-card-view-model",{el:_.T7(_.zF(function(){return X.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return X.data().title},
role:"button"},_.k(_.LX,{model:{}}),_.k("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.k("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.k(_.d,{cond:function(){return X.data().image},
then:function(t){return _.k(_.gr,{data:t,alt:function(){var G;return(G=X.data().title)!=null?G:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.k("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return X.data().title})))},"eb");_.A("web_button_view_model_wcw_registration_killswitch")||_.DW(l3h,"button-card-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){X=_.jx(X,{className:void 0});var t=X.data;X=X.className;var G=_.qt(function(){return t().onTapCommand},void 0,"NprDr");
return _.k("ytd-shopping-item-card",{class:_.cl("ytdShoppingItemCardHost",X)},_.k(_.J4,{command:G,className:"ytdShoppingItemCardHostLink"},_.k("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.k(_.M7,{data:function(){return t().thumbnailViewModel}},{thumbnailViewModel:function(y){return _.k(_.gg,{data:y.data,
aspectRatio:3})}})),_.k("div",null,_.k("p",{class:"ytdShoppingItemCardHostItemTitle"},_.k(_.eh,{text:function(){return t().itemTitle}})),_.k("p",{class:"ytdShoppingItemCardHostPrice"},_.k(_.eh,{text:function(){return t().priceOrStatus}})))))},"fb"),"ytd-shopping-item-card",{props:{data:_.bR,
className:_.bR}});var xAq={isAdsVideo:!0},f3q={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Mrz={showPlayerControls:!1,videoPreviewDurationMs:15E3},X9Y={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.A("web_shorts_imp_fullwidth_killswitch")};var TF=null,ur0={};var WmE="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(" "),lZ={},crv=(lZ.FEwhat_to_watch="home",lZ.FEhashtag="hashtag",lZ.FEtrending="trending",lZ.FEhistory="history",lZ.SPunlimited="premium",lZ.FEmemberships_and_purchases="paid_memberships",lZ.SPredeem_code="redeem",lZ.SPverify_location="locate",lZ.SPminor_moment="minor_moment",
lZ.FEmini_app_container="mini_app",lZ.FEnews_destination="news",lZ.SPopen_in_app="open_in_app",lZ.FEexplore="explore",lZ.FEsubscriptions="subscriptions",lZ.FEsfv_audio_pivot="sfv_audio_pivot",lZ.FEplaylist_aggregation="playlist_aggregation",lZ);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");_.qY("init");var $5o=function(){},w9R=_.Fp(function(X){var t=X.data;
var G=X.inlineMetadata;var y=X.aspectRatio;var w=X.scrimStyle;var z=X.className;var B=X.useDefaultStyle;var V=new $5o,b=_.A("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",e=_.qt(function(){return(B==null?0:B())?b==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gDCMs"),g=_.qt(function(){return _.R5(G)||e()||!1},void 0,"x8cr8b"),F=function(){return(w==null?void 0:w())!==void 0?w==null?void 0:w():1},T=_.qt(function(){return t().belowThumbnailMetadata||
!g()},void 0,"Q84Mmb");
X=_.gS({visibilityCallback:function(L){var x=t().onFirstVisible;L&&x&&_.JH(x)},
showOption:{calledOnce:!0,state:"visible"}});var D=_.T7(),h={};h=_.cl(function(){return e(),"shortsLockupViewModelHostThumbnailContainer"},(h.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.R5(y)===1},h.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.R5(y)===2},h.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!e()},h.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.A("web_shorts_2_by_3_lockups_study")&&
!_.A("desktop_search_enable_two_by_three_shorts_aspect_ratio")},h));
var u,W=function(){if(V){var L;(L=u)==null||gP(L);var x;V.hostElement&&((x=V.data)==null?0:x.inlinePlayerData)&&(u=oD({mediaRenderer:V,lockupElement:V.hostElement,thumbnailElement:D.value,videoPreviewOpts:X9Y}))}};
_.Em(function(){V&&(V.data=t(),W())},"RII9Hf");
var c=_.qt(function(){return t().thumbnail},void 0,"QlEII"),P=_.qt(function(){return t().badge},void 0,"ODd68c"),l=_.qt(function(){return t().onTap},void 0,"lgNBIc"),R={};
return _.k("ytm-shorts-lockup-view-model",{el:_.T7(function(L){V&&(V.hostElement=L)},W,X),
class:_.cl("shortsLockupViewModelHost",z)},_.k(_.gn,null,_.k(_.J4,{command:l,className:_.cl("shortsLockupViewModelHostEndpoint",(R.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!T()},R),"reel-item-endpoint",""),
ariaHidden:function(){return!g()},
tabIndex:function(){return g()?0:-1}},_.k("div",{el:D,
class:h},_.k(_.d,{cond:c,then:function(){return _.k(_.gr,{data:function(){var L;return(L=c==null?void 0:c())!=null?L:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.k(_.d,{cond:g,
then:function(){return _.k(tpB,{data:t,scrimStyle:F,useDefaultStyle:B})}}),_.k(_.M7,{data:P},{badgeViewModel:function(L){return _.k(_.YM,{data:L.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.k(_.d,{cond:function(){return g()&&t().menuOnTap},
then:function(){return _.k(Gtz,{data:t,inlineMetadata:!0})}}),_.k(_.d,{cond:T,
then:function(){return _.k(ydB,{data:t,useDefaultStyle:B,inlineMetadata:g})}})))},"gb"),tpB=_.Fp(function(X){var t=X.data;
var G=X.scrimStyle;var y=X.useDefaultStyle;var w=_.A("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=y&&_.A("web_hide_primary_text_for_pivot_panel"),B=_.qt(function(){return(y==null?0:y())?w==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"cCbMlb");
X={};X=_.cl("shortsLockupViewModelHostInlineMetadata",(X.shortsLockupViewModelHostMetadataRounded=function(){return!B()},X.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(G==null?void 0:G())===3&&!_.A("enable_shorts_lockup_new_scrim")},X.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(G==null?void 0:G())===3&&_.A("enable_shorts_lockup_new_scrim")},X.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(G==null?void 0:G())===2||(G==null?void 0:
G())===4},X.shortsLockupViewModelHostShowOverPlayer=function(){return!0},X),"image-overlay-text");
var V={};return _.k("div",{class:X},_.k("h3",{class:_.cl("shortsLockupViewModelHostMetadataTitle",(V.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(G==null?void 0:G())===4},V)),
"aria-label":function(){return t().accessibilityText}},_.k(_.d,{cond:function(){var b;
return!((b=t().overlayMetadata)==null||!b.primaryText)&&!z},
then:function(){return _.k(_.eh,{text:function(){var b;return(b=t().overlayMetadata)==null?void 0:b.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.k(_.d,{cond:function(){var b;
return(b=t().overlayMetadata)==null?void 0:b.secondaryText},
then:function(){return _.k(zEB,{data:t,scrimStyle:G,className:void 0})}}))},"hb"),ydB=_.Fp(function(X){var t=X.data;
var G=X.useDefaultStyle;var y=X.inlineMetadata;var w=_.A("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=_.qt(function(){return(G==null?0:G())?w==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"KburAe");
X=_.cl(function(){return z()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var B=_.T7(),V,b=_.NI(function(h){if(_.GF(_.t4(h),B.value,["AVATAR-VIEW-MODEL"]))return!1;var u;(u=V)==null||u.click();return!1}),e=_.qt(function(){return t().belowThumbnailMetadata||t().overlayMetadata},void 0,"c3tkld"),g=function(){return t().menuOnTap&&!y()},F=function(){var h;
return(h=e())==null?void 0:h.avatar},T={},D={};
return _.k("div",{class:_.cl(X,(T.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!F()},T.shortsLockupViewModelHostOutsideMetadataHasMenu=g,T)),
"on:click":b,el:B},_.k(_.M7,{data:F},{avatarViewModel:function(h){return _.k("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.k(_.al,{data:h.data}))}}),_.k("div",null,_.k("h3",{class:_.cl("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(D.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var h,u;
return!((h=e())==null?0:(u=h.primaryText)==null?0:u.content)},D)),
"aria-label":function(){return t().accessibilityText}},_.k(_.J4,{ref:function(h){return void(V=h)},
command:function(){return t().onTap},
className:_.cl("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var h,u;return(h=e())==null?void 0:(u=h.primaryText)==null?void 0:u.content}},_.k(_.d,{cond:function(){var h;
return(h=e())==null?void 0:h.primaryText},
then:function(h){return _.k(_.eh,{text:h,noEndpoints:!0,noStyleRuns:!0})}}))),_.k(_.d,{cond:function(){var h;
return(h=e())==null?void 0:h.secondaryText},
then:function(h){return _.k("div",{class:_.cl("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.k(_.eh,{text:h,noStyleRuns:!0}))}})),_.k(_.d,{cond:g,
then:function(){return _.k(Gtz,{data:t,inlineMetadata:!1})}}))},"ib"),zEB=_.Fp(function(X){var t=X.data;
var G=X.scrimStyle;X=X.className;var y={};return _.k("div",{class:_.cl((y.shortsLockupViewModelHostMetadataSubhead=function(){return(G==null?void 0:G())!==4},y.shortsLockupViewModelHostMetadataSubheadNew=_.A("enable_shorts_lockup_new_scrim"),y.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(G==null?void 0:G())===4},y),X),
"aria-hidden":"true"},_.k(_.eh,{text:function(){var w;return(w=t().overlayMetadata)==null?void 0:w.secondaryText},
noStyleRuns:!0}))},"jb"),Gtz=_.Fp(function(X){var t=X.data;
var G=X.inlineMetadata;X={};X=_.cl((X.shortsLockupViewModelHostInlineMetadataMenu=function(){return G()},X.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!G()},X.shortsLockupViewModelHostShowOverPlayer=function(){return!0},X),"image-overlay-text");
return _.k("div",{class:X},_.k(_.jh,{data:function(){return{style:G()?"overlay":"mono",accessibilityLabel:t().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(y){y.preventDefault();y.stopPropagation();var w=_.Hl({elementsCommand:t().menuOnTap,forceNewState:!0});if(w==null?0:w.onclick)w.onclick(y)}}},
iconName:"MORE_VERT"}))},"kb");var HRo=_.Fp(function(X){var t=X.data;var G=X.inlineMetadata;var y=X.aspectRatio;var w=X.scrimStyle;var z=X.className;var B=X.useDefaultStyle;X=_.qt(function(){var V=t().entityId;return V?V.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.k("ytm-shorts-lockup-view-model-v2",{class:_.cl("shortsLockupViewModelHost",z)},_.k(_.S1,{contentId:X,aspectRatio:function(){return(y==null?void 0:y())===1?1:(y==null?void 0:y())===2?2:4}},function(){return _.k(w9R,{data:t,
inlineMetadata:G,aspectRatio:y,scrimStyle:w,className:z,useDefaultStyle:B})}))},"lb");_.DW(HRo,"ytm-shorts-lockup-view-model-v2",{props:{data:_.sd,inlineMetadata:_.sd,aspectRatio:_.sd,scrimStyle:_.sd,className:_.sd,useDefaultStyle:_.sd}});var okh=16/9*210,xM=function(){var X=_.O.apply(this,arguments)||this;X.isExpandableContent=!1;X.hideShelfHeader=!1;X.engagementPanel=!1;X.buttonClasses=["arrow"];X.isSearch=!1;X.disableScrollEventListener=!1;X.containsLockup=!1;X.overrideArrowPositionForProductCard=!1;X.overrideArrowPositionForShoppingItemCard=!1;X.overrideArrowPositionForReelItems=!1;X.overrideArrowPositionForGridMovie=!1;X.overrideArrowPositionToCenter=!1;X.isSearchPostShelf=!1;X.overrideArrowPositionForMixedShelf=!1;X.overrideArrowPositionForMixedShelfShortsOnly=
!1;X.hasBigThumbsReelItems=!1;X.shouldUseMixedListHeight=!1;X.shouldUseShortsListHeight=!1;X.gridVideoWidth=0;X.isSearchVodShelf=!1;X.disableWheelScroll=!1;X.sizing="COMPACT";X.shortsLockupAspectRatio=0;return X};
_.S(xM,_.O);_.H=xM.prototype;
_.H.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]]"}}}}};
_.H.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.A("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.H.computeInitialCountNumber=function(X){if(!X)return 6;var t=X.items.some(function(z){return!!z.topicRecommendationsChipRenderer}),G=X.items.some(function(z){return!!z.displayAdRenderer}),y=this.computeShouldListItemsHaveEqualHeight(X),w=X.items.some(function(z){return!!z.gridPlaylistRenderer});
X=X.items.some(function(z){return!!z.shoppingItemCardViewModel});
return t?9:G?8:w||y?10:X?7:6};
_.H.computeContainsPost=function(X){return!!X&&!!X.items&&X.items.some(function(t){return!!t.postRenderer})};
_.H.computeContainsLockup=function(){if(_.A("web_horizontal_list_lockup_arrow_killswitch"))return!1;var X,t;return(X=this.data)==null?void 0:(t=X.items)==null?void 0:t.some(function(G){return!!G.lockupViewModel})};
_.H.maybeUpdateLockupAspectRatio=function(){var X,t;if(this.computeContainsLockup()&&((X=this.data)==null?0:(t=X.items)==null?0:t.length)){var G;X=pU0((G=this.data.items[0].lockupViewModel)==null?void 0:G.contentType,this.data.force16By9ThumbnailAspectRatio);G=Q1h(X);G=this.computeLockupWidth()/G;_.Kd(this.hostElement,{"--yt-horizontal-list-content-height":G+"px"})}};
_.H.computeOverrideArrowPositionForProductCard=function(X){if(this.isExpandableContent)return!1;var t;return!!(X==null?0:(t=X.items)==null?0:t.some(function(G){return!!G.verticalProductCardRenderer}))};
_.H.computeOverrideArrowPositionForShoppingItemCard=function(X){var t;return!!(X==null?0:(t=X.items)==null?0:t.some(function(G){return!!G.shoppingItemCardViewModel}))};
_.H.computeOverrideArrowPositionForReelItemRenderer=function(X){return this.containsReelItemRenderer(X)};
_.H.computeHasBigThumbsReelItems=function(X,t){return X&&this.containsReelItemRenderer(t)};
_.H.computeShouldListItemsHaveEqualHeight=function(X){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(X==null?void 0:X.itemSizeConstraint)};
_.H.computeShouldListItemsHaveShortsHeight=function(X){return this.computeShouldListItemsHaveEqualHeight(X)&&!this.containsGridVideoRenderer(X)};
_.H.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.H.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.H.containsReelItemRenderer=function(X){var t;return!!(X==null?0:(t=X.items)==null?0:t.some(function(G){return!(!G.reelItemRenderer&&!G.shortsLockupViewModel)}))};
_.H.containsGridVideoRenderer=function(X){var t;return!!(X==null?0:(t=X.items)==null?0:t.some(function(G){return!!G.gridVideoRenderer||!!G.lockupViewModel}))};
_.H.computeContainsGridMovieRenderer=function(X){var t;return!!(X==null?0:(t=X.items)==null?0:t.some(function(G){return!!G.gridMovieRenderer}))};
_.H.computeOverrideArrowPositionToCenter=function(X){return this.computeIsSearchPostShelf(X)};
_.H.computeIsSearchPostShelf=function(X){var t;return!!(X==null?0:(t=X.items)==null?0:t.some(function(G){var y,w;return((w=(y=G.postRenderer)==null?void 0:y.surface)!=null?w:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.H.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(X){var t;return!!(X==null?0:(t=X.items)==null?0:t.some(function(G){var y,w,z;return((z=(y=G.backgroundPromoRenderer)==null?void 0:(w=y.style)==null?void 0:w.value)!=null?z:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.H.computeIsSearchVodShelf=function(X,t){return X&&this.containsGridVideoRenderer(t)};
_.H.computeDisableWheelScroll=function(X,t){return this.computeIsSearchVodShelf(X,t)};
_.H.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.H.computeShortsLockupAspectRatio=function(){return 1};
_.H.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Kd(this.hostElement,{"--ytd-reel-item-thumbnail-height":okh+"px"})};
xM.prototype.dataChanged=xM.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.Yj.YtdHorizontalListBehavior),_.U("design:type",Object)],xM.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xM.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],xM.prototype,"isExpandableContent",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"hideShelfHeader",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"engagementPanel",void 0);_.E([_.K(),_.U("design:type",Array)],xM.prototype,"buttonClasses",void 0);_.E([_.K(),_.U("design:type",Object)],xM.prototype,"isSearch",void 0);
_.E([_.K(),_.U("design:type",Object)],xM.prototype,"disableScrollEventListener",void 0);_.E([_.K({computed:"computeInitialCountNumber(data)"}),_.U("design:type",Number)],xM.prototype,"initialCount",void 0);_.E([_.K({computed:"computeContainsPost(data)"}),_.U("design:type",Boolean)],xM.prototype,"supportComponentResize",void 0);_.E([_.K({computed:"computeContainsPost(data)"}),_.U("design:type",Boolean)],xM.prototype,"containsPost",void 0);
_.E([_.K({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"containsLockup",void 0);_.E([_.K({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],xM.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.E([_.K({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"overrideArrowPositionForProductCard",void 0);_.E([_.K({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.E([_.K({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"overrideArrowPositionForReelItems",void 0);_.E([_.K({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"overrideArrowPositionForGridMovie",void 0);
_.E([_.K({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"overrideArrowPositionToCenter",void 0);_.E([_.K({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"isSearchPostShelf",void 0);_.E([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.E([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.E([_.K({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"hasBigThumbsReelItems",void 0);
_.E([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"shouldUseMixedListHeight",void 0);_.E([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"shouldUseShortsListHeight",void 0);_.E([_.K({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"gridVideoWidth",void 0);
_.E([_.K({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"isSearchVodShelf",void 0);_.E([_.K({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.U("design:type",Object)],xM.prototype,"disableWheelScroll",void 0);_.E([_.K({computed:"computeSizing(isSearch)"}),_.U("design:type",Object)],xM.prototype,"sizing",void 0);
_.E([_.K({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.U("design:type",Object)],xM.prototype,"shortsLockupAspectRatio",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xM.prototype,"dataChanged",null);
_.N(xM,"yt-horizontal-list-renderer",function(){if(kgB===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);kgB=X}X=kgB;return X},{mode:1});var JdB;var B7B=[10,12,14,16,18,20,24,28,32,36],nko=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],f$=function(){var X=_.O.apply(this,arguments)||this;X.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";X.hideOverflow=!1;X.useRoboto=!1;X.fontClass="";X.overflown=!1;X.actionMap={"yt-window-resized":"resize"};return X};
_.S(f$,_.O);_.H=f$.prototype;
_.H.attached=function(){var X=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();_.V8(this,function(){X.resize()});
if(!_.Z_){var t,G,y;(t=document)==null||(G=t.fonts)==null||(y=G.ready)==null||y.then(function(){X.resize()})}};
_.H.dataChanged=function(){this.resize()};
_.H.guideIsExpandedChanged=function(){this.resize()};
_.H.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 X=this.getMaxNumLines(),t=this.getMinFont(),G=this.getMaxFont(),y=this.useRoboto?B7B:nko;for(y=y.filter(function(z){return z<=G&&z>=t});y.length>1;){var w=Math.floor(y.length/2);
this.updateFontSize(y[w]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=X)y=y.slice(w,y.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>X)y=y.slice(0,w);else break}this.updateFontSize(y[y.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(X)}};
_.H.handleOverflow=function(X){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>X&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",X.toString()))};
_.H.updateFontSize=function(X){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+X;this.textNode.classList.add(this.fontClass)};
_.H.getMaxFont=function(){var X=this.useRoboto?B7B:nko;X=X[X.length-1];return this.maxFontSize&&this.maxFontSize<=X?this.maxFontSize:X};
_.H.getMinFont=function(){var X=(this.useRoboto?B7B:nko)[0];return this.minFontSize&&this.minFontSize>=X?this.minFontSize:X};
_.H.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.H.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.H.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.bu(this.text).split("\n").length-1:Infinity};
_.H.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
f$.prototype.guideIsExpandedChanged=f$.prototype.guideIsExpandedChanged;f$.prototype.dataChanged=f$.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],f$.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],f$.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],f$.prototype,"text",void 0);
_.E([_.K(),_.U("design:type",String)],f$.prototype,"fontFamily",void 0);_.E([_.K(),_.U("design:type",Number)],f$.prototype,"maxWidth",void 0);_.E([_.K(),_.U("design:type",Number)],f$.prototype,"maxHeight",void 0);_.E([_.K(),_.U("design:type",Number)],f$.prototype,"maxFontSize",void 0);_.E([_.K(),_.U("design:type",Number)],f$.prototype,"minFontSize",void 0);_.E([_.K(),_.U("design:type",Number)],f$.prototype,"maxLines",void 0);_.E([_.K(),_.U("design:type",Object)],f$.prototype,"hideOverflow",void 0);
_.E([_.K({selector:_.YE0}),_.U("design:type",Boolean)],f$.prototype,"guideIsExpanded",void 0);_.E([_.rt("#container"),_.U("design:type",HTMLElement)],f$.prototype,"containerNode",void 0);_.E([_.rt("#text"),_.U("design:type",HTMLElement)],f$.prototype,"textNode",void 0);_.E([_.U0("text"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],f$.prototype,"dataChanged",null);
_.E([_.U0("guideIsExpanded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],f$.prototype,"guideIsExpandedChanged",null);_.E([_.p({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],f$);
_.N(f$,"yt-dynamic-sizing-formatted-string",function(){if(JdB!==void 0)return JdB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return JdB=X},{mode:1});var Vpq;_.bRq=function(X){_.Xv.call(this,X)};
_.S(_.bRq,_.Xv);var ktY=function(X){_.Xv.call(this,X)};
_.S(ktY,_.bRq);var ML=function(){return _.O.apply(this,arguments)||this};
_.S(ML,_.O);ML.prototype.onTapSuspendedChannel=function(){var X;if((X=this.data)!=null&&X.serviceEndpoint){var t,G;(X=(G=_.Y((t=this.data)==null?void 0:t.serviceEndpoint,_.zj))==null?void 0:G.url)?_.ok(X,void 0,void 0,window.top):(t=new ktY("Did not handle suspended account tap. No appealUrl."),_.xA(t))}else t=new ktY("Did not handle suspended account tap. No serviceEndpoint."),_.xA(t)};
ML.prototype.onTap=function(){var X=this,t=_.Pj(),G,y=(G=_.Ni(t,{veType:7116}))!=null?G:void 0;_.n5(t,{visualElement:y});_.zq();this.saveRoleText();var w;if((w=this.data)==null?0:w.youtubeSuspended)this.onTapSuspendedChannel();else{var z=!1,B,V;(t=(V=_.Y((B=this.data)==null?void 0:B.serviceEndpoint,_.$Po))==null?void 0:V.supportedTokens)&&t.forEach(function(b){if(b.accountSigninToken)if(z=!0,X.onAccountItemTap)X.onAccountItemTap(b.accountSigninToken.signinUrl);else _.ok(b.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!z){if(B=this.get("serviceEndpoint",this.data))z=!0,this.ytComponentBehavior.resolveCommand(B);z||_.fh(new ktY("Did not handle account switch tap. No token."))}}};
ML.prototype.saveRoleText=function(){if(this.data){var X=this.data,t=X.channelDelegationRole;if(t){var G,y=(G=_.Y(X==null?void 0:X.serviceEndpoint,_.$Po))==null?void 0:G.supportedTokens;if(!y){var w,z,B,V;y=(w=_.Y(X==null?void 0:X.serviceEndpoint,_.iY))==null?void 0:(z=w.popup)==null?void 0:(B=z.confirmDialogRenderer)==null?void 0:(V=B.confirmButton)==null?void 0:V.buttonRenderer;var b;y=(b=_.Y(y==null?void 0:y.command,_.Cq))==null?void 0:b.commands;if(!y)return;var e;y=(e=_.Y(y[1],_.$Po))==null?
void 0:e.supportedTokens}if(y){b=void 0;e=_.J(y);for(y=e.next();!y.done;y=e.next())if(y=y.value,y.datasyncIdToken){b=y.datasyncIdToken.datasyncIdToken;break}if(b){var g;a:{if(_.UEh()&&(e=_.t7E(b+"::pom"))){e=new ij(e);break a}e=void 0}(g=e)==null||g.set("role_text",t);if((t9v?t9v:window.location).href.indexOf("studio")!==-1&&(g=mEh())){e=g.src?(new URL(g.src)).origin:"*";var F;(F=g.contentWindow)==null||F.postMessage({action:"save_pom_role",datasyncId:b,roleText:t},e)}}}}}};
_.ke.Object.defineProperties(ML.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(X=this.data)==null?void 0:(t=X.accountPhoto)==null?void 0:t.thumbnails;return G&&G.length>0&&(G[0].height===36||G[0].height===48)?G[0].height:40}}});
ML.prototype.onTap=ML.prototype.onTap;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ML.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ML.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!1}),_.U("design:type",Function)],ML.prototype,"onAccountItemTap",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ML.prototype,"enableRingForActiveAccount",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],ML.prototype,"thumbnailSize",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ML.prototype,"onTap",null);_.E([_.p({is:"ytd-account-item-renderer",disableElementRegistration:!0})],ML);
_.N(ML,"ytd-account-item-renderer",function(){if(Vpq!==void 0)return Vpq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Vpq=X},{mode:1});var d5q;var X$=function(){return _.O.apply(this,arguments)||this};
_.S(X$,_.O);X$.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.gw().resolve(_.F3).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],X$.prototype,"data",void 0);_.E([_.p({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],X$);
_.N(X$,"ytd-identity-chip-renderer",function(){if(d5q!==void 0)return d5q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return d5q=X},{mode:1});var eEz;var jtz;var gke;var FRz;var $U=function(){var X=_.O.apply(this,arguments)||this;X.richItemMinWidth=_.At("wn_grid_min_item_width",310);X.isShorts=!1;X.isWatchNext=!1;X.isExploreHub=!1;return X};
_.S($U,_.O);_.ke.Object.defineProperties($U.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var X=[],t=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Kd(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var G;if(((G=this.data)==null?0:G.rows)&&t)for(t*=this.data.rows,G=0;G<t;G++)X.push({});return X}}});
_.E([_.q(_.MZ),_.U("design:type",Object)],$U.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$U.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.x0,value:3}),_.U("design:type",Number)],$U.prototype,"itemsPerRow",void 0);_.E([_.K({selector:_.APJ,value:6}),_.U("design:type",Number)],$U.prototype,"slimItemsPerRow",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Number)],$U.prototype,"richItemMinWidth",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],$U.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],$U.prototype,"isShorts",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],$U.prototype,"isWatchNext",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],$U.prototype,"isExploreHub",void 0);
_.E([_.C("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.U("design:type",Array),_.U("design:paramtypes",[])],$U.prototype,"cardItems",null);_.E([_.p({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],$U);
_.T7B=_.qi()($U,"ytd-ghost-grid-renderer",function(){if(FRz===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);FRz=X}X=FRz;return X},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.DW(_.Fp(function(X){var t=_.jx(X,{numberOfComments:3}).numberOfComments,G=_.jx(X,{isInitialLoad:!1}).isInitialLoad,y=_.jx(X,{engagementPanel:!1}).engagementPanel,w=function(){return Math.min(Number(t==null?void 0:t())||20,20)};
return _.k("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.k(_.d,{cond:function(){return!(y==null?0:y())&&(G==null?void 0:G())},
then:function(){return _.k("div",{class:"ytGhostCommentsComments"},_.k("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.k("div",{class:_.cl("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.k("div",{class:_.cl("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.k("div",{class:"ytGhostCommentsGhostCard"},_.k("div",{class:"ytGhostCommentsAvatar"},_.k("div",{class:"ytGhostCommentsCircle"})),_.k("div",{class:"ytGhostCommentsComments"},_.k("div",{class:"ytGhostCommentsMeta"},
_.k("div",{class:_.cl("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.k("div",{class:_.cl("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.k("div",{class:"ytGhostCommentsComments"},_.k(_.pY,{each:function(){return Array((w==null?void 0:w())||3)}},function(){return _.k("div",{class:"ytGhostCommentsGhostCard"},_.k("div",{class:"ytGhostCommentsAvatar"},_.k("div",{class:"ytGhostCommentsCircle"})),_.k("div",{class:"ytGhostCommentsHost"},_.k("div",{class:"ytGhostCommentsMeta"},
_.k("div",{class:_.cl("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.k("div",{class:_.cl("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.k("div",{class:_.cl("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.k("div",{class:"ytGhostCommentsGhostLikeDislike"},_.k("div",{class:_.cl("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.k("div",{class:_.cl("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"mb"),"yt-ghost-comments",{props:{numberOfComments:_.bR,
isInitialLoad:_.bR,engagementPanel:_.bR}});_.Xa("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var tX=function(){var X=_.O.apply(this,arguments)||this;X.isOverridable=!1;X.spinnerActive=!1;X.showButton=!1;X.isCommentsSection=!1;X.engagementPanel=!0;X.isShortsGrid=!1;X.isShortsPage=!1;X.isWatchPage=!1;X.ghostCardExperimentEnabled=_.A("show_ghost_comments_shorts_watch")||_.A("show_ghost_comments_desktop_watch");X.originalShowButton=!1;X.endOfList=!1;return X};
_.S(tX,_.O);_.H=tX.prototype;_.H.resetIntersectionObserver=function(){var X;(X=this.observer)==null||X.disconnect();this.observer=void 0};
_.H.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var X,t;((X=this.data)==null?void 0:X.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((t=this.data)==null?0:t.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.H.initializeIntersectionObserver=function(){var X=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(t){t=_.J(t);for(var G=t.next();!G.done;G=t.next())G.value.isIntersecting&&(X.triggerContinuation(),X.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.H.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]]"}}}}}};
_.H.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var X;((X=this.data)==null?0:X.continuationEndpoint)&&(X=_.Y(this.data.continuationEndpoint,_.Hk))&&this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:X}}))};
_.H.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.H.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.H.onServiceRequestCompleted=function(X,t){if(!_.A("kevlar_hide_spinner_on_empty_continuation_killswitch")){var G;(G=t.actions)!=null&&G.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.H.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.H.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.H.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.H.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var X=3;if(this.engagementPanel){var t,G,y;X=Math.floor(((((t=this.hostElement)==null?void 0:(G=t.parentElement)==null?void 0:(y=G.parentElement)==null?void 0:y.scrollHeight)||108)-108)/108);X=this.isInitialLoad?Math.max(X,3):3}t=[].concat(_.RY(this.hostElement.querySelectorAll("yt-ghost-comments")));t=_.J(t);for(G=t.next();!G.done;G=t.next())G=G.value,G.numberOfComments=X,G.isInitialLoad=this.isInitialLoad,G.engagementPanel=
this.engagementPanel}};
_.H.detached=function(){this.resetIntersectionObserver()};
_.ke.Object.defineProperties(tX.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.A("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.A("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
tX.prototype.numberOfGhostCommentsChanged=tX.prototype.numberOfGhostCommentsChanged;tX.prototype.continuationTriggerOffsetChanged=tX.prototype.continuationTriggerOffsetChanged;tX.prototype.showButtonChanged=tX.prototype.showButtonChanged;tX.prototype.onYtServiceRequestCompletedForButtonRenderer=tX.prototype.onYtServiceRequestCompletedForButtonRenderer;tX.prototype.onServiceRequestCompleted=tX.prototype.onServiceRequestCompleted;tX.prototype.onYtServiceRequestSentForButtonRenderer=tX.prototype.onYtServiceRequestSentForButtonRenderer;
tX.prototype.observeData=tX.prototype.observeData;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.JC.YtVisibilityBehavior),_.U("design:type",Object)],tX.prototype,"ytVisibilityBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],tX.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],tX.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],tX.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],tX.prototype,"isOverridable",void 0);_.E([_.K(),_.U("design:type",Object)],tX.prototype,"spinnerActive",void 0);_.E([_.K(),_.U("design:type",Object)],tX.prototype,"showButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],tX.prototype,"isCommentsSection",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],tX.prototype,"engagementPanel",void 0);_.E([_.K(),_.U("design:type",Object)],tX.prototype,"isShortsGrid",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.DPf}),_.U("design:type",Object)],tX.prototype,"isShortsPage",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.MQ}),_.U("design:type",Object)],tX.prototype,"isWatchPage",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],tX.prototype,"ghostCardExperimentEnabled",void 0);
_.E([_.K(),_.U("design:type",Number)],tX.prototype,"continuationTriggerOffset",void 0);_.E([_.K(),_.U("design:type",Object)],tX.prototype,"endOfList",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],tX.prototype,"isInitialLoad",void 0);_.E([_.rt("ytd-button-renderer"),_.U("design:type",_.jC)],tX.prototype,"buttonRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],tX.prototype,"buttonOverrides",void 0);
_.E([_.K(),_.C("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.U("design:type",Object),_.U("design:paramtypes",[])],tX.prototype,"isShortsCommentsSection",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],tX.prototype,"observeData",null);
_.E([_.WW("yt-service-request-sent-button-renderer"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],tX.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],tX.prototype,"onServiceRequestCompleted",null);
_.E([_.WW("yt-service-request-completed-button-renderer"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],tX.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.E([_.U0("showButton"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],tX.prototype,"showButtonChanged",null);
_.E([_.U0("continuationTriggerOffset"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],tX.prototype,"continuationTriggerOffsetChanged",null);_.E([_.cW("isInitialLoad","engagementPanel"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],tX.prototype,"numberOfGhostCommentsChanged",null);_.E([_.p({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],tX);
_.N(tX,"ytd-continuation-item-renderer",function(){if(gke!==void 0)return gke;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return gke=X},{mode:1});var AdY;var GM=function(){var X=_.O.apply(this,arguments)||this;X.downloadProgress=0;X.transferState="TRANSFER_STATE_UNKNOWN";X.downloadState="DOWNLOAD_STATE_UNKNOWN";X.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";X.offlineVideoPolicyExpirationTimestamp=0;X.downloadedVideoPlaybackPosition=0;return X};
_.S(GM,_.O);GM.prototype.dataChanged=function(){var X;this.videoData=_.Y((X=this.data)==null?void 0:X.renderer,QMY);this.transferStateChanged()};
GM.prototype.downloadProgressChanged=function(){if(this.entityInfo){var X=Object.assign({},this.videoData),t=A_6(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),G=t.publishedTimeText,y=t.badges;X.shortViewCountText=t.shortViewCountText;X.publishedTimeText=G;X.badges=y;this.set("videoData",X)}};
GM.prototype.transferStateChanged=function(){if(this.entityInfo){var X=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",t=_.NQ(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!r9(this.entityInfo.policyEntity),G=Object.assign({},this.videoData),y=A_6(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),w=y.publishedTimeText,z=y.badges;G.shortViewCountText=
y.shortViewCountText;G.publishedTimeText=w;G.badges=z;G.isDisabled=t;G.isWatched=this.downloadedVideoPlaybackPosition>0;G.navigationEndpoint=t?void 0:hF0(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var B;X&&((B=this.videoData)==null?0:B.videoId)&&!_.A("dl_resume_click_killswitch")&&(G.isDisabled=!1,G.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});G.thumbnailOverlays=F4V(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",G)}};
GM.prototype.transferStateChanged=GM.prototype.transferStateChanged;GM.prototype.downloadProgressChanged=GM.prototype.downloadProgressChanged;GM.prototype.dataChanged=GM.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],GM.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],GM.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],GM.prototype,"videoData",void 0);_.E([_.K({selector:G8,selectorArgs:["videoData.videoId"]}),_.U("design:type",Object)],GM.prototype,"downloadProgress",void 0);_.E([_.K(),_.U("design:type",Number)],GM.prototype,"relativeDateReference",void 0);_.E([_.K({selector:_.$1,selectorArgs:["videoData.videoId"]}),_.U("design:type",Object)],GM.prototype,"transferState",void 0);
_.E([_.K({selector:ROf,selectorArgs:["videoData.videoId"]}),_.U("design:type",Object)],GM.prototype,"downloadState",void 0);_.E([_.K({selector:Cg_,selectorArgs:["videoData.videoId"]}),_.U("design:type",Object)],GM.prototype,"offlinePolicyAction",void 0);_.E([_.K({selector:KYl,selectorArgs:["videoData.videoId"]}),_.U("design:type",Object)],GM.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.E([_.K({selector:yl,selectorArgs:["videoData.videoId"]}),_.U("design:type",Object)],GM.prototype,"downloadedVideoPlaybackPosition",void 0);_.E([_.K({selector:usE,selectorArgs:["videoData.videoId"]}),_.U("design:type",Object)],GM.prototype,"entityInfo",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],GM.prototype,"isDownloading",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GM.prototype,"dataChanged",null);
_.E([_.U0("downloadProgress"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GM.prototype,"downloadProgressChanged",null);_.E([_.U0("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GM.prototype,"transferStateChanged",null);
_.E([_.p({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],GM);
_.N(GM,"ytd-downloaded-video-grid-video-renderer",function(){if(AdY!==void 0)return AdY;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return AdY=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var YNS;var yD=function(){};
yD.prototype.resolve=function(X,t){var G=this;return _.n(function(y){return y.yield(G.resolveCommand(X,t),0)})};var stJ,wf;stJ=lSA(function(X){return X.targetId},{shouldPersist:!1});
wf=stJ.updateData;_.D5Y=stJ.useUpdatableData;var SNJ,hEt;SNJ=lSA(function(X){return X.targetId});
hEt=SNJ.updateData;_.ZRJ=SNJ.useUpdatableData;var qNS=NdE.bind(null,wf),C9J=NdE.bind(null,hEt);(function(X,t,G){var y=_.Y(G==null?void 0:G.updatedRenderer,_.JZo);return y?X({targetId:t},function(){return y}):!1}).bind(null,wf);var zM=function(){};
_.S(zM,yD);zM.prototype.resolveCommand=function(X){var t;return _.n(function(G){t=_.Y(X,_.YJV);if(!t)return G.return();qNS(t.targetId,t);_.W$(G)})};var H8=function(){var X=_.PW.apply(this,arguments)||this;X.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return X};
_.S(H8,_.PW);_.H=H8.prototype;_.H.configureContinuationPathMap=function(){return{}};
_.H.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.H.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.H.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.H.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.H.handleAppendContinuationItemsAction=function(X){var t=_.Y(X,_.p6e);if(this.data&&this.data.targetId&&t&&this.continuationPathMap&&t.targetId===this.data.targetId){var G=FAh(X),y=G&&this.continuationPathMap[G];if(y&&G)if(X=this.get(y,this.data)){a:{for(G=0;G<X.length;G++){var w=X[G],z=void 0,B=!!_.Y((z=_.Y(w,Ypq))==null?void 0:z.content,_.CYq);if(_.Y(w,_.Fc)||B)break a}G=X.length}y="data."+y;t.continuationItems?G===X.length-1?(this.pop(y),this.push.apply(this,[y].concat(_.RY(t.continuationItems)))):
G===X.length?this.push.apply(this,[y].concat(_.RY(t.continuationItems))):this.splice.apply(this,[y,G,1].concat(_.RY(t.continuationItems))):this.splice(y,G,1);(_.A("web_enable_voting_animation")||_.A("enable_music_web_cairo_voting_animation"))&&_.Yt(this.hostElement,"yt-append-continuation-items-action-finished");_.Yt(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Mj(new _.NJ("append continuation items does not exist",G));else _.Mj(new _.NJ("append continuation path does not exist",
G))}};
_.H.handleReloadContinuationItemsCommand=function(X){var t=_.Y(X,_.YJV);if(this.data&&t){if(_.A("web_explore_hub")||_.A("web_client_explore_hub")||_.A("web_explore_hub_on_hover")||_.A("web_client_explore_hub_on_hover"))try{_.gw().resolve(zM).resolveCommand(X)}catch(z){}if(this.data.targetId&&this.continuationPathMap&&t.targetId===this.data.targetId&&(!_.A("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||t.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var G,y=
(G=t.slot)==null?void 0:G.replace("RELOAD_CONTINUATION_SLOT_","");G=(X=FAh(X)+"-"+(y==null?void 0:y.toLowerCase()))&&this.continuationPathMap[X];if(!G||!X||!y)_.Mj(new _.NJ("reload continuation path does not exist",X));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(t)){if(t.replaceWithFirstItem){var w;this.set("data."+G,((w=t.continuationItems)==null?0:w.length)?t.continuationItems[0]:{})}else this.set("data."+G,t.continuationItems?t.continuationItems:
[]);this.continuationIsReloading=!1;_.Yt(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.H.handleShowReloadUiCommand=function(X){X=_.Y(X,Moe);var t;((t=this.data)==null?0:t.targetId)&&(X==null?0:X.targetId)&&X.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
H8.prototype.observeData=H8.prototype.observeData;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],H8.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],H8.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],H8.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],H8.prototype,"continuationIsReloading",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],H8.prototype,"observeData",null);_.E([_.E0()],H8);_.oT=[_.zw.YtComponentBehavior,_.sb.YtActionHandlerBehavior,H8.prototype];_.JX={};_.JX.YtNextContinuationBehavior=[_.gG.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",_.Ik(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Ik(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(X,t){X.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,t,{}):(X={locationRetrieved:function(G){this.makeNextContinuationRequest_(G,t,{})}.bind(this)},_.Yt(this.hostElement,"yt-retrieve-location",X))},
makeNextContinuationRequest_:function(X,t,G){_.xt("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();X=t(X);var y;this.canUseContextualNetworkManager_()&&(y=this.getNetworkManager());y||(y=_.gw().resolve(_.fp));t=_.VE.instance;if(_.Md("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&t){y=_.el([X.startsWith("/")?X.substr(1):X]);var w,z;G=_.t_(t,{},y,G==null?void 0:(w=G.context)==null?void 0:(z=w.clickTracking)==null?void 0:z.clickTrackingParams).then(function(B){return{response:B}})}else G=
this.nextContinuation.usePost?y.postData(X,G):y.fetchData(X);
G.then(this.updateNextContinuationData_.bind(this,X));this.pendingContinuationRequest_=G;this.startListeningForNavigate_()},
updateNextContinuationData_:function(X,t){var G=this;_.xt("ncl");this.pendingContinuationRequest_=void 0;if(t){var y={};this.nextContinuation&&(y=this.nextContinuation);if(t.response&&t.response.continuationContents&&t.response.continuationContents[y.continuationType]){X=t.response.continuationContents[y.continuationType];var w=y.header||"data.header",z=X[y.responseHeaderKey||"header"];z&&this.set(w,z);w=y.contentsArray||"data.contents";z=this.getContents_(X,y.responseContentsKey||"contents")||[];
this.pathExists_(w)?(z.unshift(w),this.push.apply(this,z)):this.set(w,z);z&&(P6E(_.Pj(),t.response,this.hostElement,function(B){_.sl(G.hostElement,"yt-store-grafted-ve-action",[B])}),_.Yt(this.hostElement,"yt-next-continuation-data-updated",{continuationData:t,
page:this,contentsArray:w}));this.set(y.continuationsArray||"data.continuations",X[y.responseContinuationsKey||"continuations"]||[])}else t.reload?_.Mj(new _.NJ("Reloading from continuation is unsupported")):t.responseContext&&t.responseContext.errors||(delete t.xsrf_token,delete t.timing,delete t.endpoint,delete t.csn,t.responseContext&&delete t.responseContext.serviceTrackingParams,w={request:_.Bx(X,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(t).sort()},t.response&&(w.responseContentKeys=
Object.keys(t.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(w.continuationType=this.nextContinuation.continuationType.substr(0,256)),t=new _.NJ("Malformed continuation",w),X.indexOf("/comment_service_ajax")==0?_.Mj(t):_.xA(t)),this.set(y.continuationsArray||"data.continuations",[])}else _.fh(new _.NJ("Missing continuation response",X))},
getContents_:function(X,t){t=t.split(".");return _.RH.getValueByKeys(X,t)},
pathExists_:function(X){var t=this;X=X.toString().split(".");for(var G=0;G<X.length;G++)if(t=t[X[G]],t===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var KRq;var ORY;var B8=function(){var X=_.O.apply(this,arguments)||this;X.triggered_=!1;return X};
_.S(B8,_.O);_.H=B8.prototype;_.H.attached=function(){this.maybeTriggerAutoload()};
_.H.detached=function(){this.hasBeenTriggered_=!1};
_.H.onPrescanVisible=function(){this.onShow()};
_.H.onShow=function(){this.showButton||this.trigger()};
_.H.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Yt(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.H.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.H.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.H.computeLabel_=function(X,t){return X===void 0?null:X.label||!t?X.label:this.showMoreText_};
_.H.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.H.getContinuationUrl=function(X){var t={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(t.itct=this.data.clickTrackingParams);return _.ns(X,t)};
_.H.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
B8.prototype.showButtonChanged_=B8.prototype.showButtonChanged_;B8.prototype.observeData_=B8.prototype.observeData_;_.E([_.q(_.JC.YtVisibilityBehavior),_.U("design:type",Object)],B8.prototype,"ytVisibilityBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],B8.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],B8.prototype,"showButton",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],B8.prototype,"showIcon",void 0);_.E([_.K({computed:"computeLabel_(data, showButton)"}),_.U("design:type",Object)],B8.prototype,"label",void 0);_.E([_.K({value:_.Vl(_.Qf("SHOW_MORE",void 0,"Show More"))}),_.U("design:type",Object)],B8.prototype,"showMoreText_",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],B8.prototype,"spinnerActive_",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],B8.prototype,"hasBeenTriggered_",void 0);
_.E([_.K({value:void 0}),_.U("design:type",String)],B8.prototype,"observeVisibleOption",void 0);_.E([_.K({value:void 0}),_.U("design:type",String)],B8.prototype,"observeHiddenOption",void 0);_.E([_.K({value:"observe_once"}),_.U("design:type",Object)],B8.prototype,"observePrescanOption",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],B8.prototype,"observeData_",null);
_.E([_.cW("showButton"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],B8.prototype,"showButtonChanged_",null);_.E([_.$F({is:"yt-next-continuation",disableElementRegistration:!0})],B8);
_.N(B8,"yt-next-continuation",function(){if(ORY===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;KRq===void 0&&(KRq=document.createElement("template"));var y=KRq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ORY=X}X=ORY;return X},{mode:2});var u8B;var QtB;var nk=function(){return _.O.apply(this,arguments)||this};
_.S(nk,_.O);nk.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],nk.prototype,"data",void 0);_.E([_.$F({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],nk);
_.N(nk,"yt-music-pass-small-feature-info-renderer",function(){if(QtB===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;u8B===void 0&&(u8B=document.createElement("template"));var y=u8B;G.call(t,y.content.cloneNode(!0),X.content.firstChild);QtB=X}X=QtB;return X},{mode:2});_.Xa("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var VD=function(){var X=_.O.apply(this,arguments)||this;X.isCollapsible=!1;X.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return X};
_.S(VD,_.O);_.H=VD.prototype;_.H.computeIsCollapsible=function(X){return!!(((X==null?0:X.showMoreText)||(X==null?0:X.visibleRowCount))&&(X==null?0:X.isCollapsible))};
_.H.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"}}}};
_.H.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.H.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.H.onIronResize=function(){var X=this;_.Jm(this,"updateGridInitItems",function(){X.maybeUpdateInitialItemsDisplayed()})};
_.H.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var X=this.getVisibleWidth();X!==0&&(X=Math.floor(X/214)*(this.data.visibleRowCount||2),X!==this.initialCount&&(this.initialCount=X,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.H.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.H.computeExpandVisible=function(X,t,G,y){return X&&t&&G&&!!y&&!!y.showMoreText};
_.H.computeShowMoreButton=function(X){return{text:X,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.H.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.H.initCollapsed=function(){var X=this;this.ytLazyListBehavior.canShowMore=!1;var t;(this.collapsed=!((t=this.data)==null||!t.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.V8(this,function(){_.D0(X.hostElement,"yt-refit-popups-action")})};
_.H.fillRestIfNotCollapsible=function(){var X=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!X||this.ytLazyListBehavior.fillRemainingListItems()};
_.H.computeViewAllHidden=function(X,t){return X||!t.viewAllEndpoint};
VD.prototype.fillRestIfNotCollapsible=VD.prototype.fillRestIfNotCollapsible;VD.prototype.initCollapsed=VD.prototype.initCollapsed;VD.prototype.onIronResize=VD.prototype.onIronResize;VD.prototype.persistentGuideChanged=VD.prototype.persistentGuideChanged;_.E([_.q(_.ax),_.U("design:type",Object)],VD.prototype,"ironResizableBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.AV.YtLazyListBehavior),_.U("design:type",Object)],VD.prototype,"ytLazyListBehavior",void 0);_.E([_.q(_.JX.YtNextContinuationBehavior),_.U("design:type",Object)],VD.prototype,"ytNextContinuationBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],VD.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.q(_.oT),_.U("design:type",Object)],VD.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],VD.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],VD.prototype,"collapsed",void 0);_.E([_.K(),_.U("design:type",Number)],VD.prototype,"initialCount",void 0);_.E([_.K({computed:"computeShowMoreButton(data.showMoreText)"}),_.U("design:type",Object)],VD.prototype,"showMoreButton",void 0);
_.E([_.K({computed:"computeIsCollapsible(data)"}),_.U("design:type",Object)],VD.prototype,"isCollapsible",void 0);_.E([_.rt("#items"),_.U("design:type",HTMLElement)],VD.prototype,"items",void 0);_.E([_.U0("guidePersistentAndVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VD.prototype,"persistentGuideChanged",null);_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VD.prototype,"onIronResize",null);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VD.prototype,"initCollapsed",null);_.E([_.U0("canShowMore"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VD.prototype,"fillRestIfNotCollapsible",null);_.E([_.p({is:"ytd-grid-renderer",disableElementRegistration:!0})],VD);
_.N(VD,"ytd-grid-renderer",function(){if(YNS!==void 0)return YNS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return YNS=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var bO=function(){return _.O.apply(this,arguments)||this};
_.S(bO,_.O);
bO.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"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bO.prototype,"data",void 0);_.E([_.p({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],bO);
_.N(bO,"ytd-carousel-ad-renderer",function(){if(jtz!==void 0)return jtz;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return jtz=X},{mode:1});var I2S;var kU=function(){return _.O.apply(this,arguments)||this};
_.S(kU,_.O);_.H=kU.prototype;_.H.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"}}}};
_.H.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,kU.JSC$15244_CLICK_LOCATION_ID_MAP))};
_.H.onSitelinkTap=function(X){X.stopPropagation();var t,G,y=X==null?void 0:(t=X.model)==null?void 0:(G=t.item)==null?void 0:G.onTap;y&&this.ytSparklesClickLocationBehavior.handleClick(y,X,!1)};
_.H.onTap=function(X){var t=this.data&&this.data.content&&this.data.content.navigationEndpoint;t&&this.ytSparklesClickLocationBehavior.handleClick(t,X,!1)};
_.H.sendImpression=function(){if(this.data&&this.data.content)for(var X=_.J(this.data.content.impressionEndpoints||[]),t=X.next();!t.done;t=X.next()){t=_.J(t.value.loggingUrls||[]);for(var G=t.next();!G.done;G=t.next())G=G.value,G.baseUrl&&o7(G.baseUrl,G.attributionSrcMode)}};
kU.prototype.onTap=kU.prototype.onTap;kU.prototype.dataChanged=kU.prototype.dataChanged;kU.JSC$15244_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"]]);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],kU.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],kU.prototype,"data",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kU.prototype,"dataChanged",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],kU.prototype,"onTap",null);_.E([_.p({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],kU);
_.N(kU,"ytd-promoted-sparkles-text-search-renderer",function(){if(I2S!==void 0)return I2S;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return I2S=X},{mode:1});var WRJ;var df=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-mute-ad-action":"handleMuteAd"};return X};
_.S(df,_.O);_.H=df.prototype;
_.H.configureRendererStamper=function(){return{"data.menu":{id:_.A("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]]"}}}}}};
_.H.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.H.computeHasAdBadge=function(X){return!(X==null||!X.adBadge)};
_.H.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",df.JSC$15253_DEFAULT_AD_BADGE_RENDERER),_.Zk(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,df.JSC$15253_CLICK_LOCATION_ID_MAP))};
_.H.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var X;(((X=this.data)==null?void 0:X.impressionCommands)||[]).forEach(function(t){t=_.J(t.loggingUrls||[]);for(var G=t.next();!G.done;G=t.next())G=G.value,G.baseUrl&&o7(G.baseUrl,G.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.H.onTap=function(X){var t,G=(t=this.data)==null?void 0:t.navigationEndpoint,y;(t=(y=this.data)==null?void 0:y.thumbnailNavigationEndpoint)&&_.Tz(_.be(X),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(t,X,!1):G&&this.ytSparklesClickLocationBehavior.handleClick(G,X,!1)};
_.H.handleMuteAd=function(){this.collapsed=!0};
_.H.attached=function(){var X=this;_.A("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&X.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.H.detached=function(){_.A("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ke.Object.defineProperties(df.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var X;return!(((X=this.data)==null?void 0:X.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var X;return!(((X=this.data)==null?void 0:X.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.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}}});
df.prototype.dataChanged=df.prototype.dataChanged;
df.JSC$15253_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"]]);
df.JSC$15253_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Qf("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.E([_.q(fr),_.U("design:type",Object)],df.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.q([_.sb.YtActionHandlerBehavior]),_.U("design:type",Object)],df.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],df.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],df.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],df.prototype,"collapsed",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_desktop_search_bigger_thumbs")}}),
_.U("design:type",Boolean)],df.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.Yx("desktop_search_bigger_thumbs_style")}}),
_.U("design:type",String)],df.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.U("design:type",Boolean)],df.prototype,"fixAlignmentSmallScreens",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_desktop_search_bigger_thumbs_square")}}),
_.U("design:type",Boolean)],df.prototype,"useBiggerThumbsSquare",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.mediaHoverOverlay"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],df.prototype,"hideHoverOverlay",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.promotedSparklesWebStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],df.prototype,"webSearchLayout",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],df.prototype,"webSearchLayoutLandscape",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],df.prototype,"webSearchLayoutSquare",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data.promotedSparklesWebStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],df.prototype,"sparklesCtaNoBackground",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.actionButton"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],df.prototype,"hideActionButton",null);_.E([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.U("design:type",Object)],df.prototype,"buttonOverride",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.U("design:type",Boolean)],df.prototype,"hasNewAdBadge",void 0);_.E([_.C("data.promotedSparklesWebStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],df.prototype,"useRoundedBadge",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],df.prototype,"dataChanged",null);_.E([_.p({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],df);
_.N(df,"ytd-promoted-sparkles-web-renderer",function(){if(WRJ!==void 0)return WRJ;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return WRJ=X},{mode:1});var cdJ;var eN=function(){var X=_.O.apply(this,arguments)||this;X.isInlinePreviewTriggered=!1;X.enableMonoStyle=_.A("enable_default_mono_cta_migration_web_client");return X};
_.S(eN,_.O);_.H=eN.prototype;_.H.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]]"}}}}}};
_.H.computeShowCta=function(X){return!(X==null||!X.ctaRenderer)};
_.H.onCtaClick=function(){var X,t,G,y=(X=this.data)==null?void 0:(t=X.ctaRenderer)==null?void 0:(G=t.buttonRenderer)==null?void 0:G.command;y&&this.ytComponentBehavior.resolveCommand(y)};
_.H.onWatchButtonClick=function(){var X,t,G,y=(X=this.data)==null?void 0:(t=X.watchButtonRenderer)==null?void 0:(G=t.buttonRenderer)==null?void 0:G.command;y&&this.ytComponentBehavior.resolveCommand(y)};
_.H.onTap=function(){};
_.H.dataChanged=function(){if(this.data){var X;_.A("enable_inline_muted_playback_on_web_search")&&((X=this.data)==null?0:X.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",eN.JSC$15257_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",eN.JSC$15257_DEFAULT_CLICK_LOCATION_BEHAVIOR,eN.JSC$15257_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(X=this.thumbnail.getElementsByTagName("a"),X.length>0&&(X=X.namedItem("thumbnail"))&&X.removeAttribute("href"))}};
_.H.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var X=_.J(this.data.impressionUrls),t=X.next();!t.done;t=X.next())t=t.value,ymw(t,zjf(t));this.data.impressionsFired=!0}};
_.H.maybeComputeHref=function(){return null};
_.H.computeIsShortDR=function(X){return!(X==null||!X.watchButtonRenderer)&&!(X==null||!X.ctaRenderer)&&!!this.enableShortDR};
_.H.computeIsNewUiOrShortDr=function(X){return!!this.enableUiUpdate||this.computeIsShortDR(X)};
_.H.computeIsNewUiAndNotShortDr=function(X){return!!this.enableUiUpdate&&!this.computeIsShortDR(X)};
_.H.computeHideAvatar=function(X){return!((X==null?0:X.channelThumbnail)&&this.computeIsNewUiOrShortDr(X))};
_.H.onClick=function(X){var t,G=(t=this.data)==null?void 0:t.navigationEndpoint;if(this.enableShortDR&&G&&(_.Y(G,_.nq)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(G,X,!!_.Y(G,_.nq)),X.stopPropagation();else if(G&&_.Y(G,_.nq))this.ytSparklesClickLocationBehavior.handleClick(G,X,!0),X.stopPropagation();else if(G){var y,w;((y=this.data)==null?0:y.navigationEndpoint)&&((w=this.data)==null?0:w.adPlaybackContextParams)&&vX0(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(G)}};
_.H.computeButtonOverride=function(X){if(this.computeIsNewUiOrShortDr(X))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.H.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.H.onThumbnailContainerClick=function(X){this.onClick(X)};
_.H.computeThumbnailWidth=function(X,t){return X?t==="MASSIVE"?600:t==="BIG"?500:t==="MEDIUM"?450:420:360};
_.H.attached=function(){var X=this,t;_.A("enable_inline_muted_playback_on_web_search")&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.A("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&X.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.H.detached=function(){var X;_.A("enable_inline_muted_playback_on_web_search")&&((X=this.data)==null?0:X.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.A("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15258_inlinePreviewHoverListener=oD({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:xAq})};
_.H.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15258_inlinePreviewHoverListener)==null||gP(X)};
eN.prototype.dataChanged=eN.prototype.dataChanged;eN.prototype.onTap=eN.prototype.onTap;eN.JSC$15257_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Qf("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};eN.JSC$15257_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
eN.JSC$15257_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"}];_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.E([_.q(fr),_.U("design:type",Object)],eN.prototype,"ytdActiveViewBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],eN.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],eN.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.rt("#main-container"),_.U("design:type",HTMLElement)],eN.prototype,"mainContainer",void 0);_.E([_.K(),_.U("design:type",Object)],eN.prototype,"isInlinePreviewTriggered",void 0);_.E([_.K(),_.U("design:type",Object)],eN.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_desktop_search_bigger_thumbs")}}),
_.U("design:type",Boolean)],eN.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_video_display_compact_button_group_for_desktop_search")}}),
_.U("design:type",Boolean)],eN.prototype,"enableShortDR",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_vac_ui_update_for_desktop_search")}}),
_.U("design:type",Boolean)],eN.prototype,"enableUiUpdate",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.Yx("desktop_search_bigger_thumbs_style")}}),
_.U("design:type",String)],eN.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.U("design:type",Boolean)],eN.prototype,"showCta",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.U("design:type",Boolean)],eN.prototype,"isShortDr",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.U("design:type",Boolean)],eN.prototype,"isShortDrOrNewUi",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.U("design:type",Boolean)],eN.prototype,"isNewUiAndNotShortDr",void 0);_.E([_.K({computed:"computeButtonOverride(data)"}),_.U("design:type",Object)],eN.prototype,"buttonOverride",void 0);_.E([_.K({computed:"computeSecondaryButtonOverride(data)"}),_.U("design:type",Object)],eN.prototype,"secondaryButtonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eN.prototype,"enableMonoStyle",void 0);
_.E([_.rt("ytd-thumbnail"),_.U("design:type",HTMLElement)],eN.prototype,"thumbnail",void 0);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eN.prototype,"onTap",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eN.prototype,"dataChanged",null);_.E([_.p({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],eN);
_.N(eN,"ytd-promoted-video-renderer",function(){if(cdJ!==void 0)return cdJ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return cdJ=X},{mode:1});var p9J;var jN=function(){var X=_.O.apply(this,arguments)||this;X.useRoundedBadge=!0;X.sitelinkIds=[];return X};
_.S(jN,_.O);_.H=jN.prototype;
_.H.configureRendererStamper=function(){return{"data.menu":{id:_.A("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]]"}}}}}};
_.H.dataChanged=function(){var X;(X=this.data)!=null&&X.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,jN.JSC$15263_CLICK_LOCATION_ID_MAP)};
_.H.onTap=function(X){var t,G=(t=this.data)==null?void 0:t.navigationCommand;G&&!_.Tz(_.be(X),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(G,X,!1)};
_.H.onSitelinkTap=function(X){var t,G,y=X==null?void 0:(t=X.model)==null?void 0:(G=t.item)==null?void 0:G.onTap;y&&this.ytSparklesClickLocationBehavior.handleClick(y,X,!1)};
_.H.configureSitelinkClickTargets=function(){var X=this,t,G,y=(t=this.data)==null?void 0:(G=t.clickLocationTargets)==null?void 0:G.find(function(w){return w.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
y&&_.Sm(this.hostElement).querySelectorAll(".sitelink").forEach(function(w){_.Zk(w,"yt-simple-endpoint",!0);X.sitelinkIds.push(w.id);var z,B;(z=X.ytSparklesClickLocationBehavior)==null||(B=z.clickTargetMap)==null||B.set(w.id,y)})};
_.H.sendImpression=function(){var X,t,G=((X=this.data)==null?void 0:(t=X.impressionCommand)==null?void 0:t.loggingUrls)||[];X=_.J(G);for(t=X.next();!t.done;t=X.next())t=t.value,t.baseUrl&&o7(t.baseUrl,t.attributionSrcMode)};
_.H.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.ke.Object.defineProperties(jN.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
jN.prototype.onTap=jN.prototype.onTap;jN.prototype.dataChanged=jN.prototype.dataChanged;jN.JSC$15263_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"]]);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],jN.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],jN.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],jN.prototype,"showFavicon",null);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_desktop_search_bigger_thumbs")}}),
_.U("design:type",Boolean)],jN.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.Yx("desktop_search_bigger_thumbs_style")}}),
_.U("design:type",String)],jN.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.U("design:type",Boolean)],jN.prototype,"enableThumbnailScalingFix",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],jN.prototype,"dataChanged",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],jN.prototype,"onTap",null);_.E([_.p({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],jN);
_.N(jN,"ytd-text-image-no-button-layout-renderer",function(){if(p9J!==void 0)return p9J;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return p9J=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var rdo;var gf=function(){var X=_.O.apply(this,arguments)||this;X.isInlinePlaybackState=!1;X.uiUpdate=_.A("web_modern_buttons");X.hideCta=_.A("hide_cta_for_home_web_video_ads");X.noBottomMargin=!1;X.animateInTimeStamp=_.At("hide_cta_for_home_web_video_ads_animate_in_time");X.animateInCta=!1;X.isHovered=!1;X.enableMonoStyle=_.A("enable_default_mono_cta_migration_web_client");X.player=null;X.JSC$15270_playerEvents=new Map;X.JSC$15270_preventProgressSaveTimer=null;X.delayedCtaJobId=null;return X};
_.S(gf,_.O);_.H=gf.prototype;_.H.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]]"}}}}}};
_.H.attached=function(){this.JSC$15270_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15270_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.A("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.H.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15270_playerEvents)};
_.H.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",gf.JSC$15269_DEFAULT_CLICK_LOCATION_BEHAVIOR,gf.JSC$15269_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.H.hoverChanged=function(){var X=this;this.delayedCtaJobId&&(_.vz.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.A("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Rs(_.vz,function(){X.buttonContainer.classList.add("show-delayed-buttons")},_.At("delayed_cta_on_web_delay_milliseconds")))};
_.H.setPlayer=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return(t=_.D0(X.hostElement,"yt-get-inline-preview-player-action"))&&t[0]?G.yield(t[0].getPlayerPromise(),3):G.jumpTo(0);X.player=G.yieldResult;X.ytPlayerListenerBehavior.listenToPlayerEvents(X.player,X.JSC$15270_playerEvents);_.W$(G)})};
_.H.onPlaybackStart=function(){var X=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15270_preventProgressSaveTimer=_.CX(_.vz,function(){X.JSC$15270_preventProgressSaveTimer=null},1E4))};
_.H.onVideoProgress=function(X){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&X>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.H.resetPreventProgressSaveTimer=function(){_.vz.cancelJob(this.JSC$15270_preventProgressSaveTimer);this.JSC$15270_preventProgressSaveTimer=null};
_.H.getSimpleString=function(X){return _.bu(X)};
_.H.onClick=function(X){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var t,G=(t=this.data)==null?void 0:t.navigationEndpoint,y;t=(y=this.data)==null?void 0:y.channelEndpoint;var w,z;(y=(z=_.Y((w=this.data)==null?void 0:w.adCtaButton,_.G4))==null?void 0:z.command)&&_.Tz(_.be(X),this.hostElement,["call-to-action"])?_.A("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(y,X,!1):t&&_.Tz(_.be(X),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(t,X,!1):!_.Tz(_.be(X),this.hostElement,["secondary-button"])&&G&&(_.A("enable_short_dr_for_desktop_launchable")?(w=!!_.Y(G,_.nq),this.isInlinePlaybackState&&w&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(G,X,w)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(G,X,!0)))}};
_.H.updateWatchEndpointStartTime=function(){var X,t;this.player&&((X=this.data)==null?0:X.inlinePlaybackEndpoint)&&((t=this.data)==null?0:t.navigationEndpoint)&&!this.JSC$15270_preventProgressSaveTimer&&(X=Math.floor(this.player.getCurrentTime()),_.Y(this.data.navigationEndpoint,_.nq).startTimeSeconds=X,_.Y(this.data.inlinePlaybackEndpoint,_.nq).startTimeSeconds=X)};
_.H.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.H.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.ke.Object.defineProperties(gf.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.A("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null||!X.watchButton)&&!((t=this.data)==null||!t.adCtaButton)}}});
gf.prototype.hoverChanged=gf.prototype.hoverChanged;gf.prototype.dataChanged=gf.prototype.dataChanged;
gf.JSC$15269_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"]]);
gf.JSC$15269_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"}];
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],gf.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],gf.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],gf.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gf.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gf.prototype,"isInlinePlaybackState",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],gf.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gf.prototype,"uiUpdate",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gf.prototype,"hideCta",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gf.prototype,"noBottomMargin",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gf.prototype,"animateInCta",void 0);_.E([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.U("design:type",Object)],gf.prototype,"buttonOverride",void 0);
_.E([_.K({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.U("design:type",Object)],gf.prototype,"secondaryButtonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gf.prototype,"isHovered",void 0);_.E([_.rt("#button-container"),_.U("design:type",HTMLElement)],gf.prototype,"buttonContainer",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],gf.prototype,"typographyBump",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("typographyBump"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],gf.prototype,"typographyBumpV2",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gf.prototype,"enableMonoStyle",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gf.prototype,"dataChanged",null);
_.E([_.cW("isHovered"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gf.prototype,"hoverChanged",null);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],gf.prototype,"isButtonGroup",null);_.E([_.p({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],gf);
_.N(gf,"ytd-ad-inline-playback-meta-block",function(){if(rdo!==void 0)return rdo;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return rdo=X},{mode:_.Cz("kevlar_poly_si_batch_j065")?1:2});var N7t;var F$=function(){var X=_.O.apply(this,arguments)||this;X.noBottomMargin=!1;X.isInlinePreviewTriggered=!1;X.JSC$15275_activeViewMeasurementDataResolver=_.d5();return X};
_.S(F$,_.O);_.H=F$.prototype;_.H.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H.attached=function(){var X=this;this.updateInlinePreviewHoverListeners();this.JSC$15275_activeViewMeasurementDataResolver.promise.then(function(t){X.ytdActiveViewBehavior.enableActiveViewMeasurement(t,15)});
_.A("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&X.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.H.detached=function(){this.clearInlinePreviewHoverListeners();_.A("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15275_inlinePreviewHoverListener=oD({mediaRenderer:this,lockupElement:this.JSC$15275_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:xAq})};
_.H.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15275_inlinePreviewHoverListener)==null||gP(X)};
_.H.onDataChanged=function(){var X;((X=this.data)==null?0:X.activeView)&&this.JSC$15275_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",F$.JSC$15274_DEFAULT_CLICK_LOCATION_BEHAVIOR,F$.JSC$15274_CLICK_LOCATION_ID_MAP);this.thumbnail&&(X=this.thumbnail.getElementsByTagName("a"),X.length>0&&(X=X.namedItem("thumbnail"))&&X.removeAttribute("href"));var t;if((t=this.data)==
null?0:t.forceImpAutoplay){var G;(G=this.JSC$15275_inlinePreviewHoverListener)==null||TcA(G)}};
_.H.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.H.onThumbnailContainerClick=function(X){if(this.data&&this.data.navigationEndpoint){var t,G=(t=this.data)==null?void 0:t.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(G,X,!!_.Y(G,_.nq));X.stopPropagation()}};
_.H.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.H.impressionLog=function(){var X=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var t,G,y=(G=_.Y((t=this.data)==null?void 0:t.onImpression,_.Cq))==null?void 0:G.commands;y&&(y.forEach(function(w){w.clickTrackingParams&&delete w.clickTrackingParams;X.ytComponentBehavior.resolveCommand(w)}),this.data.impressionsFired=!0)}};
_.ke.Object.defineProperties(F$.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15275_inlinePreviewHoverListener)==null?0:XF(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
F$.prototype.onTypographyBumpChanged=F$.prototype.onTypographyBumpChanged;F$.prototype.onDataChanged=F$.prototype.onDataChanged;F$.JSC$15274_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);F$.JSC$15274_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"}];
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],F$.prototype,"ytComponentBehavior",void 0);_.E([_.q(fr),_.U("design:type",Object)],F$.prototype,"ytdActiveViewBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],F$.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.q(_.JV),_.U("design:type",Object)],F$.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],F$.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],F$.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],F$.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],F$.prototype,"noBottomMargin",void 0);
_.E([_.K(),_.U("design:type",Object)],F$.prototype,"isInlinePreviewTriggered",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],F$.prototype,"miniMode",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],F$.prototype,"typographyBump",void 0);_.E([_.rt("ytd-thumbnail"),_.U("design:type",HTMLElement)],F$.prototype,"thumbnail",void 0);_.E([_.rt("#dismissible"),_.U("design:type",HTMLElement)],F$.prototype,"JSC$15275_dismissibleMedia",void 0);
_.E([_.rt("ytd-ad-inline-playback-meta-block"),_.U("design:type",HTMLElement)],F$.prototype,"adInlinePlaybackMetaBlock",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],F$.prototype,"onDataChanged",null);_.E([_.U0("typographyBump"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],F$.prototype,"onTypographyBumpChanged",null);
_.E([_.C("lockupIsHovered"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],F$.prototype,"isHovered",null);_.E([_.p({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],F$);
_.N(F$,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(N7t!==void 0)return N7t;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return N7t=X},{mode:1});var P9Y;var TM=function(){var X=_.O.apply(this,arguments)||this;X.isInlinePreviewTriggered=!1;X.JSC$15278_activeViewMeasurementDataResolver=_.d5();return X};
_.S(TM,_.O);_.H=TM.prototype;_.H.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H.attached=function(){var X=this;this.updateInlinePreviewHoverListeners();this.JSC$15278_activeViewMeasurementDataResolver.promise.then(function(t){X.ytdActiveViewBehavior.enableActiveViewMeasurement(t,15)})};
_.H.detached=function(){this.clearInlinePreviewHoverListeners()};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15278_inlinePreviewHoverListener=oD({mediaRenderer:this,lockupElement:this.JSC$15278_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:xAq})};
_.H.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15278_inlinePreviewHoverListener)==null||gP(X)};
_.H.onDataChanged=function(){var X;((X=this.data)==null?0:X.activeView)&&this.JSC$15278_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",TM.JSC$15277_DEFAULT_CLICK_LOCATION_BEHAVIOR,TM.JSC$15277_CLICK_LOCATION_ID_MAP);this.thumbnail&&(X=this.thumbnail.getElementsByTagName("a"),X.length>0&&(X=X.namedItem("thumbnail"))&&X.removeAttribute("href"))};
_.H.onThumbnailContainerClick=function(X){if(this.data&&this.data.navigationEndpoint){var t,G=(t=this.data)==null?void 0:t.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(G,X,!0);X.stopPropagation()}};
_.H.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.H.impressionLog=function(){var X=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var t,G,y=(G=_.Y((t=this.data)==null?void 0:t.onImpression,_.Cq))==null?void 0:G.commands;y&&(y.forEach(function(w){w.clickTrackingParams&&delete w.clickTrackingParams;_.gw().resolve(_.F3).resolveCommand(w,{form:{element:X.hostElement}})}),this.data.impressionsFired=!0)}};
_.ke.Object.defineProperties(TM.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15278_inlinePreviewHoverListener)==null?0:XF(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
TM.prototype.onDataChanged=TM.prototype.onDataChanged;TM.JSC$15277_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);TM.JSC$15277_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"}];_.E([_.q(fr),_.U("design:type",Object)],TM.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],TM.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],TM.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],TM.prototype,"ytdReduxBehavior",void 0);
_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],TM.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],TM.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],TM.prototype,"isInlinePreviewTriggered",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],TM.prototype,"miniMode",void 0);_.E([_.rt("ytd-thumbnail"),_.U("design:type",HTMLElement)],TM.prototype,"thumbnail",void 0);
_.E([_.rt("#dismissible"),_.U("design:type",HTMLElement)],TM.prototype,"JSC$15278_dismissibleMedia",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TM.prototype,"onDataChanged",null);_.E([_.C("lockupIsHovered"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TM.prototype,"isHovered",null);_.E([_.p({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],TM);
_.N(TM,"ytd-video-display-full-buttoned-renderer",function(){if(P9Y!==void 0)return P9Y;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return P9Y=X},{mode:1});var Z7=function(X,t,G,y){y=y===void 0?!1:y;_.Xv.call(this,X);this.adsClientErrorMessage=G;this.aggressivelySample=y;this.args=[];t&&this.args.push(t)};
_.S(Z7,_.Xv);var Sh=function(X,t,G,y){y=y===void 0?!1:y;_.Xv.call(this,X);this.adsClientErrorMessage=G;this.aggressivelySample=y;this.args=[];t&&this.args.push(t)};
_.S(Sh,_.Xv);var Ek4=function(X){_.po.call(this);var t=this;this.initializationFunction=X;this.instance=null;this.addOnDisposeCallback(function(){_.Vs(t.instance);t.instance=null})};
_.S(Ek4,_.po);Ek4.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.g2("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var a3h=function(){var X=new Map;[].forEach(function(t){X.set(t.JSC$30134_getType(),t)});
this.getters=X};new Promise(function(){});var mAE=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"]]),E$G=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"}]]),U5S=function(X){this.experimentApiProvider=X;X=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=X<.1};var AX=function(X,t,G,y){_.po.call(this);this.adsControlFlowEventListeners=t;this.adEventLogger=G;this.experimentApiProvider=y;this.adsControlFlowManagerHelper=X(this,this,this,this,this);_.h6(this,this.adsControlFlowManagerHelper);X=_.J(t);for(t=X.next();!t.done;t=X.next())_.h6(this,t.value)};
_.S(AX,_.po);var m5R=function(X,t,G,y){YU(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",t,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y);X=_.J(X.adsControlFlowEventListeners);for(y=X.next();!y.done;y=X.next())m5R(y.value,t,G)};
_.H=AX.prototype;_.H.onOpportunityProcessedExternallyManaged=function(X,t,G,y){YU(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",X,G,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y)};
_.H.onSlotReceivedExternallyManaged=function(X,t){sL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",X,t)};
_.H.onSlotEntered=function(X){if(Dm(this.adsControlFlowManagerHelper,X)!=null){sL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",X);this.adsControlFlowManagerHelper.onSlotEntered(X);for(var t=_.J(this.adsControlFlowEventListeners),G=t.next();!G.done;G=t.next())G.value.onSlotEntered(X);if(Dm(this.adsControlFlowManagerHelper,X)!=null&&Dm(this.adsControlFlowManagerHelper,X).isOccupyingSlotType()&&SN(this.adsControlFlowManagerHelper,X)&&!REq(this.adsControlFlowManagerHelper,X)){var y;OL(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",X,(y=SN(this.adsControlFlowManagerHelper,X))!=null?y:void 0);X=Dm(this.adsControlFlowManagerHelper,X);X.slotLifecycleStage!=="entered"&&uO(X.slot,X.slotLifecycleStage,"enterLayoutForSlot");X.slotLifecycleStage="rendering";X.registeredLayoutRenderingAdapter.startRendering(X.layout)}}};
_.H.onSlotExited=function(X){if(Dm(this.adsControlFlowManagerHelper,X)!=null){sL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",X);this.adsControlFlowManagerHelper.onSlotExited(X);for(var t=_.J(this.adsControlFlowEventListeners),G=t.next();!G.done;G=t.next())G.value.onSlotExited(X);Dm(this.adsControlFlowManagerHelper,X)!=null&&Dm(this.adsControlFlowManagerHelper,X).markedForUnscheduleAfterOutboundAdapterRequests&&iRS(this,X)}};
_.H.onLayoutReceivedExternallyManaged=function(X,t,G){X.managerLayer!=="core"&&OL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",X,t,G)};
var LRh=function(X,t,G){if(Dm(X.adsControlFlowManagerHelper,t)!=null){OL(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",t,G);X=_.J(X.adsControlFlowEventListeners);for(var y=X.next();!y.done;y=X.next())LRh(y.value,t,G)}};
AX.prototype.onLayoutExited=function(X,t,G){if(Dm(this.adsControlFlowManagerHelper,X)!=null){OL(this.adEventLogger,UAv(G),X,t);this.adsControlFlowManagerHelper.onLayoutExited(X,t);for(var y=_.J(this.adsControlFlowEventListeners),w=y.next();!w.done;w=y.next())w.value.onLayoutExited(X,t,G);(G=SN(this.adsControlFlowManagerHelper,X))&&t.layoutId===G.layoutId&&vkq(this,X)}};
AX.prototype.disposeInternal=function(){var X=a2h(this.adsControlFlowManagerHelper);X=_.J(X);for(var t=X.next();!t.done;t=X.next())iRS(this,t.value);_.po.prototype.disposeInternal.call(this)};
var iRS=function(X,t){if(Dm(X.adsControlFlowManagerHelper,t)!=null)if(Dm(X.adsControlFlowManagerHelper,t).JSC$30164_isSlotExitRequested()||Dm(X.adsControlFlowManagerHelper,t).JSC$30164_isLayoutExitRequested())Dm(X.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Dm(X.adsControlFlowManagerHelper,t).isOccupyingSlotType())Dm(X.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests=!0,vkq(X,t);else if(Dm(X.adsControlFlowManagerHelper,t).JSC$30164_isSlotFillRequested())Dm(X.adsControlFlowManagerHelper,
t).markedForUnscheduleAfterOutboundAdapterRequests=!0,Dm(X.adsControlFlowManagerHelper,t)!=null&&(sL(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",t),t=Dm(X.adsControlFlowManagerHelper,t),t.fulfillmentLifecycleStage="fill_cancel_requested",t.registeredFulfillmentAdapter.cancelSlotFilling());else{var G=SN(X.adsControlFlowManagerHelper,t),y;X.experimentApiProvider.get();(y=_.A("h5_enable_layout_unscheduling_events"))&&(G?l2R(X,t,G):_.g2(Error("Ih"),t,G,void 0,!1));sL(X.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",t);var w=Dm(X.adsControlFlowManagerHelper,t),z=t.slotEntryTrigger,B=w.registeredSlotEntryTriggerAdapters.get(z.triggerId);B&&(B.unregisterTrigger(z),w.registeredSlotEntryTriggerAdapters.delete(z.triggerId));z=_.J(t.slotFulfillmentTriggers);for(B=z.next();!B.done;B=z.next()){B=B.value;var V=w.registeredFulfillmentTriggerAdapters.get(B.triggerId);V&&(V.unregisterTrigger(B),w.registeredFulfillmentTriggerAdapters.delete(B.triggerId))}z=_.J(t.slotExpirationTriggers);
for(B=z.next();!B.done;B=z.next())if(B=B.value,V=w.registeredExpirationTriggerAdapters.get(B.triggerId))V.unregisterTrigger(B),w.registeredExpirationTriggerAdapters.delete(B.triggerId);w.hasLayout()&&(z=w.layout,QD(w,z.layoutExitNormalTriggers),QD(w,z.layoutExitSkipTriggers),QD(w,z.layoutExitMuteTriggers),QD(w,z.layoutExitUserInputSubmittedTriggers),QD(w,z.layoutExitUserCancelledTriggers));w.registeredFulfillmentAdapter=void 0;w.registeredSlotAdapter!=null&&(w.registeredSlotAdapter.release(),w.registeredSlotAdapter=
void 0);w.registeredLayoutRenderingAdapter!=null&&(w.registeredLayoutRenderingAdapter.release(),w.registeredLayoutRenderingAdapter=void 0);w=X.adsControlFlowManagerHelper;Dm(w,t)&&(w=x5o(w,t.slotType+"_"+t.slotPhysicalPosition))&&w.delete(t.slotId);sL(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",t);X=_.J(X.adsControlFlowEventListeners);for(w=X.next();!w.done;w=X.next())w=w.value,w.onSlotUnscheduled(t),G&&!y&&l2R(w,t,G)}},l2R=function(X,t,G){OL(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
t,G);
OL(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",t,G);X=_.J(X.adsControlFlowEventListeners);for(var y=X.next();!y.done;y=X.next())y=y.value,G&&l2R(y,t,G)},vkq=function(X,t){if(Dm(X.adsControlFlowManagerHelper,t)!=null&&Dm(X.adsControlFlowManagerHelper,t).isOccupyingSlotType()){var G=SN(X.adsControlFlowManagerHelper,t);
if(G&&REq(X.adsControlFlowManagerHelper,t)){if(Dm(X.adsControlFlowManagerHelper,t)!=null){var y=X.adEventLogger,w;var z=((w=E$G.get("abandoned"))==null?void 0:w.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";OL(y,z,t,G);X=Dm(X.adsControlFlowManagerHelper,t);X.slotLifecycleStage!=="rendering"&&uO(X.slot,X.slotLifecycleStage,"exitLayout");X.slotLifecycleStage="rendering_stop_requested";X.registeredLayoutRenderingAdapter.stopRendering(G,"abandoned")}}else{sL(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
t);try{y=Dm(X.adsControlFlowManagerHelper,t);if(!y)throw new Sh("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");y.slotLifecycleStage!=="enter_requested"&&y.slotLifecycleStage!=="entered"&&y.slotLifecycleStage!=="rendering"&&uO(y.slot,y.slotLifecycleStage,"exitSlot");y.slotLifecycleStage="exit_requested";if(y.registeredSlotAdapter===void 0)throw y.slotLifecycleStage="scheduled",new Sh("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
y.registeredSlotAdapter.exit()}catch(B){B instanceof Sh&&B.adsClientErrorMessage?(f2R(X.adEventLogger,B.adsClientErrorMessage,t),_.g2(B,t,void 0,void 0,B.aggressivelySample)):(f2R(X.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",t),_.g2(B,t))}}}};var IT=function(X,t,G,y,w,z){_.po.call(this);this.registry=X;this.experimentApiProvider=z;this.slotMap=new Map};
_.S(IT,_.po);var x5o=function(X,t){return(X=X.slotMap.get(t))?X:new Map},Dm=function(X,t){return x5o(X,t.slotType+"_"+t.slotPhysicalPosition).get(t.slotId)},a2h=function(X){var t=[];
X.slotMap.forEach(function(G){G=_.J(G.values());for(var y=G.next();!y.done;y=G.next())t.push(y.value.slot)});
return t};
IT.prototype.onSlotEntered=function(X){X=Dm(this,X);X.slotLifecycleStage!=="enter_requested"&&uO(X.slot,X.slotLifecycleStage,"onSlotEntered");X.slotLifecycleStage="entered"};
var REq=function(X,t){X=Dm(X,t);return X.hasLayout()&&X.isRendering()},SN=function(X,t){(X=Dm(X,t))?X.hasLayout()&&!X.layout&&_.g2("Unexpected empty layout",t):_.g2("Unexpected undefined slotState",t);
return(X==null?void 0:X.layout)||null};
IT.prototype.onSlotExited=function(X){X=Dm(this,X);X.slotLifecycleStage!=="exit_requested"&&uO(X.slot,X.slotLifecycleStage,"onSlotExited");X.slotLifecycleStage="scheduled"};
IT.prototype.onLayoutExited=function(X,t){X=Dm(this,X);X.isPrimaryLayout(t)&&(X.slotLifecycleStage!=="rendering_stop_requested"&&uO(X.slot,X.slotLifecycleStage,"onLayoutExited"),X.slotLifecycleStage="entered")};
var QD=function(X,t){t=_.J(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;var y=X.registeredLayoutExitTriggerAdapters.get(G.triggerId);y&&(y.unregisterTrigger(G),X.registeredLayoutExitTriggerAdapters.delete(G.triggerId))}},uO=function(X,t,G){_.g2("Slot stage was "+t+" when calling method "+G,X)};var XGY=function(X){_.po.call(this);this.deps=X;this.JSC$15328_adsControlFlowManager=Mpq(this)};
_.S(XGY,_.po);var Mpq=function(X){var t=new AX(function(G,y,w,z){return new IT(X.deps.registry,G,y,w,z,X.deps.experimentApiProvider)},new Set(v$v(X.deps.registry).concat(X.deps.listeners)),X.deps.adEventLogger,X.deps.experimentApiProvider);
_.h6(X,t);return t};var $H4=function(){};var tno=function(X,t){_.po.call(this);this.experimentApiProvider=X;this.eventLoggingSettingsProvider=t;this.eventCount=0;this.premiumAdSeenEventLogger=_.gw().resolve(_.jH($H4))};
_.S(tno,_.po);tno.prototype.logEvent=function(X){YU(this,X)};
var sL=function(X,t,G,y){YU(X,t,void 0,void 0,void 0,G,void 0,void 0,void 0,G.adSlotLoggingData,void 0,void 0,y)},OL=function(X,t,G,y,w){YU(X,t,void 0,void 0,void 0,G,y?y:void 0,void 0,void 0,G.adSlotLoggingData,y?y.adLayoutLoggingData:void 0,void 0,w);
G=_.gw().resolve(_.jH(mu))==null?void 0:R7();t=G==null?void 0:G.adsSeenHotConfig;G=G==null?void 0:G.adsHotConfig;(t==null?0:t.logOnAdsSeen)&&(G==null?0:G.webEnablePremiumAdsSeenLogging)&&GJz(X,y?y:void 0,w)},f2R=function(X,t,G){YU(X,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,G,void 0,void 0,void 0,G.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:t})},YU=function(X,t,G,y,w,z,B,V,b,e,g,F,T){T=T===void 0?0:T;
y$R(X.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+t,"slot:",z,"layout:",B,"ping:",V,"Opportunity:",{opportunityType:G,associatedSlotId:y,slotsFromOpportunity:w,triggerBundle:b,adSlotLoggingData:e,adLayoutLoggingData:g});try{var D=function(){X.experimentApiProvider.get();if(t!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){t||_.g2("Empty PACF event type",z,B);var h=X.eventLoggingSettingsProvider.get();var u;(u=h.alwaysIncludeDebugData)||(h.experimentApiProvider.get(),u=
!1);h=u;u={eventType:t,eventOrder:++X.eventCount};var W={};z&&(W.slotData=iMl(h,z));if(B){var c={type:B.layoutType,controlFlowManagerLayer:mAE.get(B.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};h&&(c.debugData={layoutId:B.layoutId});W.layoutData=c}V&&(W.pingData={pingDispatchStatus:V.dispatchStatus,serializedAdPingMetadata:V.ping.serializedAdPingMetadata,pingIndex:V.index});b&&(W.triggerData=RR6(b.trigger,b.category));G&&(W.opportunityData=LmG(h,G,y,w));u.adClientData=W;e&&(u.serializedSlotAdServingData=
e.serializedSlotAdServingDataEntry);g&&(u.serializedAdServingData=g.serializedAdServingDataEntry);F&&(u.errorInfo=F);_.a7("adsClientStateChange",{adsClientEvent:u})}};
T&&T>0?_.PO(_.va(),function(){return D()},T):D()}catch(h){y$R(X.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.PO(_.va(),function(){_.g2(h instanceof Error?h:String(h),z,B,{pacf_message:"exception during pacf logging"})})}},GJz=function(X,t,G){if(t){var y=t.adLayoutLoggingData;
_.PO(_.va(),function(){if(X.premiumAdSeenEventLogger!=null){var w=Date.now().toString();y&&_.a7("adsSeenClientLogging",{adsSeenClientLogging:{serializedAdServingDataEntry:y.serializedAdServingDataEntry},eventTimeMs:w})}},G!=null?G:0)}};var wGP=function(X,t){tno.call(this,X,t)};
_.S(wGP,tno);var zn4=function(){},y$R=function(X,t){return _.A(t)};var oze=function(){var X=new Hjq;this.JSC$15354_adsControlFlowManager=(new XGY(X)).JSC$15328_adsControlFlowManager},Hjq=function(){_.po.call(this);
var X=this;this.experimentApiProvider=new Ek4(function(){return new zn4});
var t=new Ek4(function(){return new U5S(X.experimentApiProvider)});
this.adEventLogger=new wGP(this.experimentApiProvider,t);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.S(Hjq,_.po);var J$Y=function(){},BJ4,W8=function(){BJ4||(BJ4=new J$Y);
return BJ4},c8=function(X){if(!X.JSC$15365_externallyManagedSlotAdapterCallback){var t=(new oze).JSC$15354_adsControlFlowManager;
X.JSC$15365_externallyManagedSlotAdapterCallback=t}return X.JSC$15365_externallyManagedSlotAdapterCallback},nzB=function(X,t,G){var y=t.opportunityType,w=Error("Jh");
if(y!==void 0){var z=c8(X);m5R(z,y,void 0,G)}else _.g2(w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});z=[];if(t.adSlotAndLayoutMetadata!==void 0){t=_.J(t.adSlotAndLayoutMetadata);for(var B=t.next();!B.done;B=t.next()){var V=B.value;if(B=V.adSlotMetadata)if(z.push(B),X.onSlotReceivedExternallyManaged(B,G),V.adLayoutMetadata){V=_.J(V.adLayoutMetadata);for(var b=V.next();!b.done;b=V.next())X.onLayoutReceivedExternallyManaged(B,b.value,G)}else G>0&&_.g2("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else G>0&&_.g2("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else G>0&&_.g2("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(y!==void 0)X.onOpportunityProcessedExternallyManaged(y,z,void 0,G);else _.g2(w,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
J$Y.prototype.onSlotReceivedExternallyManaged=function(X,t){X=h4(X);if(X instanceof Sh)_.g2(X,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else c8(this).onSlotReceivedExternallyManaged(X,t)};
J$Y.prototype.onLayoutReceivedExternallyManaged=function(X,t,G){X=h4(X);t=l3J(t);if(X instanceof Sh)_.g2(X,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(t instanceof Z7)_.g2(t,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else c8(this).onLayoutReceivedExternallyManaged(X,t,G)};
J$Y.prototype.onOpportunityProcessedExternallyManaged=function(X,t,G,y){var w=[];t=_.J(t);for(var z=t.next();!z.done;z=t.next())z=h4(z.value),z instanceof Sh?_.g2(z,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):w.push(z);c8(this).onOpportunityProcessedExternallyManaged(X,w,G,y)};
var Vnz=function(X,t){t=h4(t);if(t instanceof Sh)_.g2(t,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var G=c8(X);sL(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",t);G=_.J(G.adsControlFlowEventListeners);for(var y=G.next();!y.done;y=G.next())y=Dm(y.value,t),y.slotLifecycleStage!=="not_scheduled"&&uO(y.slot,y.slotLifecycleStage,"onSlotScheduled"),y.slotLifecycleStage="scheduled";X=c8(X);sL(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",t);X=_.J(X.adsControlFlowEventListeners);
for(G=X.next();!G.done;G=X.next())G.value.onSlotEntered(t)}},bjo=function(X,t){t=h4(t);
if(t instanceof Sh)_.g2(t,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var G=c8(X);sL(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",t);G=_.J(G.adsControlFlowEventListeners);for(var y=G.next();!y.done;y=G.next())y.value.onSlotExited(t);X=c8(X);sL(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",t);X=_.J(X.adsControlFlowEventListeners);for(G=X.next();!G.done;G=X.next())G.value.onSlotUnscheduled(t)}},kJz=function(X,t,G){t=h4(t);
G=l3J(G);if(t instanceof Sh)_.g2(t,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(G instanceof Z7)_.g2(G,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var y=c8(X);OL(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",t,G);y=_.J(y.adsControlFlowEventListeners);for(var w=y.next();!w.done;w=y.next())w.value.onLayoutScheduled(t,G);X=c8(X);OL(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",t,G);X=_.J(X.adsControlFlowEventListeners);
for(y=X.next();!y.done;y=X.next())LRh(y.value,t,G)}},pk=function(X,t,G){t=h4(t);
G=l3J(G);if(t instanceof Sh)_.g2(t,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(G instanceof Z7)_.g2(G,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var y=c8(X);OL(y.adEventLogger,UAv("normal"),t,G);y=_.J(y.adsControlFlowEventListeners);for(var w=y.next();!w.done;w=y.next())w.value.onLayoutExited(t,G,"normal");X=c8(X);X=_.J(X.adsControlFlowEventListeners);for(y=X.next();!y.done;y=X.next())l2R(y.value,t,G)}};_.rf=_.Fp(function(X){var t=_.jx(X,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});X=Object.assign({},t);var G=t.data;t=t.customCommandResolver;var y=(delete X.data,delete X.customCommandResolver,X);X=_.gS({visibilityCallback:function(V,b){var e,g=(e=G().interaction)==null?void 0:e.onFirstVisible;V&&(g&&_.JH(g),y.setOnErrorHandler()&&xAA(b))},
showOption:_.FF});t=_.ny(function(){return G().interaction},t,function(){var V;
return(V=y.listenToTapEvent)==null?void 0:V.call(y)});
var w=_.J(_.sm(!1,void 0,"nqIeMd")),z=w.next().value,B=w.next().value;w=_.NI(function(V){var b;((b=y.setTouchEndHandler)==null?0:b.call(y))&&!z()&&(V.currentTarget.click(),B(!0),setTimeout(function(){B(!1)},100));
return!1});
return _.k("ad-image-view-model",{class:function(){var V,b=[((V=G().interaction)==null?0:V.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],e;((e=y.isGridViewEnabled)==null?0:e.call(y))&&b.push("ytwAdImageViewModelHostInGridView");return b.join(" ")},
el:_.T7(X,t),"on:touchend":w},_.k("div",{class:"ytwAdImageViewModelHostImageContainer"},_.k(_.gr,{data:function(){var V;return{sources:G().imageSources,contentMode:(V=G().imageProperties)==null?void 0:V.contentMode}},
alt:function(){var V,b;return((V=G().interaction)==null?void 0:(b=V.accessibility)==null?void 0:b.label)||""},
targetHeight:y.targetHeight,targetWidth:y.targetWidth,preserveHeight:y.preserveHeight,preserveWidth:y.preserveWidth,useWidth:y.useWidth,style:function(){var V,b;return"vertical-align: bottom;"+(((V=G().background)==null?0:V.color)?"background-color:"+_.Gq((b=G().background)==null?void 0:b.color)+";":"")},
className:function(){return y.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var V,b;return(b=(V=y.setDraggable)==null?void 0:V.call(y))!=null?b:void 0}})))},"nb");var dHR=_.Fp(function(X){var t=X.data,G=X.listenToTapEvent,y=function(){};
return _.k("ad-button-hover-overlay-view-model",{"on:click":_.NI(function(w){if(_.A("enable_web_home_top_landscape_image_layout_legacy_click_command")){var z,B=(z=t().interaction)==null?void 0:z.onTap;B&&_.Yt(w.currentTarget,"yt-navigate",{endpoint:_.wr(B)})}}),
class:function(){var w;return((w=t().interaction)==null?0:w.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.T7(_.gS({visibilityCallback:function(w){var z,B=(z=t().interaction)==null?void 0:z.onFirstVisible;w&&B&&_.JH(B)},
showOption:_.FF}),_.ny(function(){return t().interaction},void 0,function(){return!_.A("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(G==null?void 0:G())}))},function(){return _.A("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.k(_.M7,{data:function(){return t().button}},{adButtonViewModel:function(w){return _.k(_.Ae,{data:w.data,
customCommandResolver:y})}}):_.k(_.M7,{data:function(){return t().button}},{adButtonViewModel:_.Ae})}())},"ob");var qs;_.DW(_.Fp(function(X){var t=X.data;X=_.gS({visibilityCallback:function(V,b){if(V){var e;(V=(e=t().interaction)==null?void 0:e.onFirstVisible)&&_.JH(V);var g;if(e=(g=t().adLayoutData)==null?void 0:g.activeViewData)Cy(b,e),_.A("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ky(b)})}else _.A("stop_av_measurement_on_detach")&&Ky(b)},
showOption:_.FF,hideOption:TH});var G=_.ny(function(){return t().interaction},void 0,function(){return!0}),y=_.J(_.sm(!1,void 0,"K1MNM")),w=y.next().value,z=y.next().value;
y=_.NI(function(){z(!0)});
var B=_.NI(function(){z(!1)});
return _.k("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.T7(X,ydV,G),"on:mouseenter":y,"on:mouseleave":B},_.k("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Ud({"max-width":function(){return _.A("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.k("div",{class:function(){var V;
a:{var b;switch((V=_.Y(t().thumbnailImage,UF4))==null?void 0:(b=V.imageProperties)==null?void 0:b.renderingAspect){case "RENDERING_ASPECT_SQUARE":V="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":V="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}V=void 0}return V}},_.k(_.M7,{data:function(){return t().thumbnailImage}},{adImageViewModel:function(V){return _.k(_.rf,
{data:V.data,
listenToTapEvent:!0,setTouchEndHandler:_.A("enable_top_landscape_image_experiment_dom_id_web")})}})),_.k("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.k(_.d,{cond:function(){var V,b,e;
return(V=_.Y(t().thumbnailImage,UF4))==null?void 0:(b=V.imageProperties)==null?void 0:(e=b.overlayIcon)==null?void 0:e.iconImage},
then:function(V){return _.k(_.gr,{data:V,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.k("div",{class:function(){return w()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.k(_.M7,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(V){return _.k(dHR,
{data:V.data,
listenToTapEvent:!0})}}))),_.k("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.k(_.M7,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(V){return _.k(TdR,{data:V.data,
listenToTapEvent:!0,setTouchEndHandler:_.A("enable_top_landscape_image_experiment_dom_id_web")})}})))},"pb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;X=_.gS({visibilityCallback:function(V,b){if(V){var e;(V=(e=t().interaction)==null?void 0:e.onFirstVisible)&&_.JH(V);var g;if(e=(g=t().adLayoutData)==null?void 0:g.activeViewData)Cy(b,e),_.A("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ky(b)})}else _.A("stop_av_measurement_on_detach")&&Ky(b)},
showOption:_.FF,hideOption:TH});var G=_.w5(_.yE),y=_.ny(function(){return t().interaction}),w={},z={},B={};
return _.k("square-image-layout-view-model",{class:_.cl("ytwSquareImageLayoutViewModelHost",(w.ytwSquareImageLayoutViewModelHostColumn=G,w)),el:_.T7(X,w90,y)},_.k("div",{class:_.cl("ytwSquareImageLayoutViewModelHostImage",(z.ytwSquareImageLayoutViewModelHostColumnImage=G,z))},function(){return _.k(_.M7,{data:function(){return t().adImage}},{adImageViewModel:function(V){return _.k(_.rf,{data:V.data,
isGridViewEnabled:G,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.k("div",{class:_.cl("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(B.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=G,B))},_.k(_.M7,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:TdR}),function(){return _.k(_.M7,{data:function(){return t().adButton}},{adButtonViewModel:function(V){var b={};
return _.k(_.Ae,{data:V.data,className:_.cl((b.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,b.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=G,b))})}})}()))},"qb"),"square-image-layout-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;var G=X.noBottomMargin;var y=X.typographyBump;X=_.gS({visibilityCallback:function(F,T){if(F){var D;(F=(D=t().interaction)==null?void 0:D.onFirstVisible)&&_.JH(F);var h;if(D=(h=t().adLayoutData)==null?void 0:h.activeViewData)Cy(T,D),_.A("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ky(T)})}else _.A("stop_av_measurement_on_detach")&&Ky(T)},
showOption:_.FF,hideOption:TH});var w=_.ny(function(){return t().interaction},void 0,function(){return _.A("enable_web_home_top_landscape_image_layout_level_click")}),z=function(){return t().interaction};
z!==void 0&&z!==null||_.yQ(Error("Kh"));var B=function(){var F,T,D;return(F=_.Y(t().thumbnailImage,UF4))==null?void 0:(T=F.background)==null?void 0:(D=T.backgroundImageSource)==null?void 0:D.imageSources};
z=_.J(_.sm(!1,void 0,"pZPLOd"));var V=z.next().value,b=z.next().value;z=_.NI(function(){b(!0)});
var e=_.NI(function(){b(!1)}),g=function(){return V()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.k("top-landscape-image-layout-view-model",{class:function(){var F;return((F=t().interaction)==null?0:F.onTap)&&_.A("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.T7(X,zEV,w),"on:mouseenter":z,"on:mouseleave":e},_.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.k(_.d,{cond:function(){return B()&&B().length>0},
then:function(){return _.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Ud({top:"0","background-image":function(){return"url("+String(B()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.k(_.d,{cond:function(){return!!t().adButtonHoverOverlay},
then:function(){return _.k("div",{class:g},_.k(_.M7,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:dHR}))}}),_.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.k(_.M7,{data:function(){return t().thumbnailImage}},{adImageViewModel:function(F){return _.k(_.rf,{data:F.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.A("enable_web_home_top_landscape_image_layout_level_click")})}})),_.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.k(_.gr,{data:{sources:[{clientResource:{imageName:_.A("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.k(_.M7,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(F){return _.k(TdR,{data:F.data,
noBottomMargin:function(){return G==null?void 0:G()},
listenToTapEvent:function(){return _.A("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return y==null?void 0:y()}})}})))},"rb"),"top-landscape-image-layout-view-model",{props:{data:_.bR,
noBottomMargin:_.bR,typographyBump:_.bR}});_.DW(_.Fp(function(X){var t=X.data;var G=X.typographyBump;return _.k("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.T7(_.gS({visibilityCallback:function(y,w){if(y){var z;(y=(z=t().interaction)==null?void 0:z.onFirstVisible)&&_.JH(y);var B;z=(B=t().adLayoutData)==null?void 0:B.activeViewData;!_.A("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&z&&Cy(w,z)}},
showOption:_.FF,hideOption:TH}))},_.k("div",null,_.k(_.M7,{data:function(){return t().videoLockup}},{lockupViewModel:function(y){return _.k(_.qL,{data:y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:G})}})))},"sb"),"video-display-button-group-layout-view-model",{props:{data:_.bR,
noBottomMargin:_.bR,typographyBump:_.bR}});_.DW(_.Fp(function(X){var t=X.data;var G=X.className;var y=X.typographyBump;return _.k("video-display-compact-button-group-layout-view-model",{el:_.T7(_.gS({visibilityCallback:function(w,z){if(w){var B;(w=(B=t().interaction)==null?void 0:B.onFirstVisible)&&_.JH(w);var V;(B=(V=t().adLayoutData)==null?void 0:V.activeViewData)&&Cy(z,B)}},
showOption:_.FF})),class:_.cl("videoDisplayCompactButtonGroupLayoutViewModelHost",G)},_.k(_.M7,{data:function(){return t().videoLockup}},{lockupViewModel:function(w){return _.k(_.qL,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:y})}}))},"tb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.bR,
className:_.bR,typographyBump:_.bR}});_.DW(_.Fp(function(X){var t=X.data;var G=X.className;var y=X.typographyBump;return _.k("video-display-compact-buttoned-layout-view-model",{el:_.T7(_.gS({visibilityCallback:function(w,z){if(w){var B;(w=(B=t().interaction)==null?void 0:B.onFirstVisible)&&_.JH(w);var V;(B=(V=t().adLayoutData)==null?void 0:V.activeViewData)&&Cy(z,B)}},
showOption:_.FF})),class:_.cl("videoDisplayCompactButtonedLayoutViewModelHost",G)},_.k(_.M7,{data:function(){return t().videoLockup}},{lockupViewModel:function(w){return _.k(_.qL,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:y})}}))},"ub"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.bR,
className:_.bR,typographyBump:_.bR}});_.DW(_.Fp(function(X){var t=X.data;var G=X.className;var y=X.typographyBump;var w=function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},z=_.w5(_.yE);
X=_.gS({visibilityCallback:function(e,g){if(e){var F=t();e=F.adLayoutData;var T;(F=(T=F.interaction)==null?void 0:T.onFirstVisible)&&_.JH(F);(T=e==null?void 0:e.activeViewData)&&Cy(g,T)}},
showOption:_.FF});var B=_.qt(function(){return{containerType:w()&&z()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),V=_.qt(function(){return w()&&z()?"":w()?"168px":"50%"},void 0,"ikSkm"),b=_.qt(function(){return w()&&z()?9999:void 0},void 0,"M8rucc");
return _.k("video-display-compact-layout-view-model",{el:_.T7(X),class:_.cl("videoDisplayCompactLayoutViewModelHost",G)},_.k(_.M7,{data:function(){return t().videoLockup}},{lockupViewModel:function(e){return _.k(_.qL,{data:e.data,
containerLayoutConfig:B,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:V,thumbnailTargetWidth:b,typographyBump:y})}}))},"vb"),"video-display-compact-layout-view-model",{props:{data:_.bR,
className:_.bR,typographyBump:_.bR}});_.DW(_.Fp(function(X){var t=X.data;var G=X.typographyBump;return _.k("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.T7(_.gS({visibilityCallback:function(y,w){if(y){var z;(y=(z=t().interaction)==null?void 0:z.onFirstVisible)&&_.JH(y);var B;z=(B=t().adLayoutData)==null?void 0:B.activeViewData;!_.A("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&z&&Cy(w,z)}},
showOption:_.FF,hideOption:TH}))},_.k("div",null,_.k(_.M7,{data:function(){return t().videoLockup}},{lockupViewModel:function(y){return _.k(_.qL,{data:y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:G})}})))},"wb"),"video-display-full-layout-view-model",{props:{data:_.bR,
noBottomMargin:_.bR,typographyBump:_.bR}});_.enq=_.Fp(function(X){var t=X.data;X=_.nl("ad-card-badge-view-model");return _.k("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:X},_.k(_.d,{cond:function(){return t().imageBadge},
then:function(G){return _.k(_.gr,{data:G,alt:""})}}))},"xb");var jXq=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;return _.k("carousel-ad-card-image-view-model",{class:function(){var y;return((y=t().interaction)==null?0:y.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.T7(_.gS({visibilityCallback:function(y){var w,z=(w=t().interaction)==null?void 0:w.onFirstVisible;y&&z&&_.JH(z)},
showOption:_.FF}),_.ny(function(){return t().interaction},G)),
"aria-label":function(){var y,w;return(y=t().interaction)==null?void 0:(w=y.accessibility)==null?void 0:w.label}},_.k(_.M7,{data:function(){return t().adImage}},{adImageViewModel:function(y){return _.k(_.rf,{data:y.data,
customCommandResolver:G})}}),_.k("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.k(_.M7,{data:function(){return t().badge}},{adCardBadgeViewModel:_.enq})),_.k(_.LX,{model:{color:4}}))},"yb");var gze=_.Fp(function(X){var t=_.J(_.sm(0,void 0,"o9Bzd")),G=t.next().value;t.next();var y=t.next().value,w=_.J(_.sm(!1,void 0,"KLdzYe"));t=w.next().value;var z=w.next().value,B;_.Um(function(){clearTimeout(B)});
w=_.NI(function(){var e;((e=X.animate)==null?0:e.call(X))?(z(!0),B=setTimeout(function(){z(!1);V()},200)):V();
return!1});
var V=function(){y(function(e){return(e+X.numShownItems())%X.data().length})},b={};
return _.k("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.k("div",{class:_.cl("ytwHorizontalCarouselCarouselWrapper")},_.k("div",{class:_.cl("ytwHorizontalCarouselCarouselInnerWrapper",(b.ytwHorizontalCarouselAnimating=t,b))},_.k(_.pY,{each:X.data,keyBy:"INDEX"},function(e,g){return _.k("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Ud({"flex-basis":function(){return"calc((100% - (8px * "+(X.numShownItems()-1)+")) / "+X.numShownItems()+")"},
order:function(){var F=g-G();F<0&&(F+=X.data().length);return F}})},X.children(e,g))}))),_.k("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":w},X.nextButton()))},"zb");var FLY=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;var y=X.expansive;return _.k("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.T7(_.gS({visibilityCallback:function(w){var z,B=(z=t().interaction)==null?void 0:z.onFirstVisible;w&&B&&_.JH(B)},
showOption:_.FF}))},_.k(gze,{data:function(){var w;return((w=t())==null?void 0:w.carouselAdCards)||[]},
nextButton:function(){return _.k(_.M7,{data:function(){return t().nextButton}},{buttonViewModel:function(w){var z=w.data;
return _.k(_.QK,{data:function(){return(y==null?0:y())?Object.assign({},z(),{style:"mono"}):z()},
className:_.A("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(w){return _.k(_.M7,{data:w},{carouselAdCardImageViewModel:function(z){return _.k(jXq,{data:z.data,customCommandResolver:G})}})}))},"Ab");var TJB=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;var y=X.className;var w=X.buttonClassName;var z=X.animationEntityKey;var B=X.expansive;return _.k("carousel-button-view-model",{class:_.cl("ytwCarouselButtonViewModelHost",y)},_.k(_.M7,{data:function(){return t().carousel}},{carouselAdCardCollectionViewModel:function(V){return _.k(FLY,{data:V.data,
customCommandResolver:G,expansive:B})}}),_.k(_.M7,{data:function(){return t().button}},{adButtonViewModel:function(V){var b=V.data;
return _.k(_.Ae,{data:function(){return(B==null?0:B())?Object.assign({},b(),{style:"AD_BUTTON_STYLE_TONAL"}):b()},
className:w,customCommandResolver:G,animationEntityKey:z})}}))},"Bb");_.A$z=_.Fp(function(X){var t=X.data;X=X.className;var G=_.nl("pivot-button-view-model");_.LY(function(){var y;((y=t())==null?0:y.backgroundColor)&&G.value.setAttribute("data-background-color",String(t().backgroundColor))});
return _.k("pivot-button-view-model",{el:G,class:_.cl("ytwPivotButtonViewModelHost",X)},_.k(_.J4,{command:function(){var y=t();y=y.onClickCommand?_.wr(y.onClickCommand):y.contentDescription?_.F0(y.contentDescription):void 0;return y},
ariaLabel:function(){return t().contentDescription}},_.k(_.d,{cond:function(){return t().thumbnail},
then:function(y){return _.k(_.gr,{data:y,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.k(_.d,{cond:function(){return t().icon},
then:function(y){return _.k(_.mw,{icon:function(){return y().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cb");_.Y3q=_.Fp(function(X){var t=X.data;var G=X.buttonShapeOverrideables;return _.k("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.k(_.M7,{data:function(){return t().buttonViewModels}},{buttonViewModel:function(y){return _.k(_.QK,{data:y.data,
buttonOverrides:G})},
likeButtonViewModel:function(y){return _.k(_.f8,{data:y.data,buttonShapeOverrideables:G})},
dislikeButtonViewModel:function(y){return _.k(_.xj,{data:y.data,buttonShapeOverrideables:G})},
toggleButtonViewModel:function(y){return _.k(_.Lv,{data:y.data,buttonShapeOverrides:G})}}))},"Db");var sXq=_.Fp(function(X){var t=X.avatar;var G=X.headline;var y=X.badge;var w=X.description;var z=X.expansive;X={};return _.k("yt-ad-metadata-shape",{class:_.cl("ytAdMetadataShapeHost",(X.ytAdMetadataShapeHostLarge=z,X))},_.k("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.k(_.d,{cond:t,then:function(B){return _.k(_.eRS,{data:function(){return(z==null?0:z())?Object.assign({},B(),{size:"AD_AVATAR_SIZE_MPLUS"}):B()}})}}),_.k("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.k(_.eh,{text:G,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.k(_.d,{cond:y,then:function(B){return _.k(_.he,{data:function(){return(z==null?0:z())?Object.assign({},B(),{style:"AD_BADGE_STYLE_STARK"}):B()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.k("h2",{class:"ytAdMetadataShapeHostDescription"},_.k(_.eh,{text:w,
linkInheritColor:!0})))},"Eb");var DH4=_.Fp(function(X){var t=X.data;var G=X.onShow;var y=X.expansive;X=_.ny(function(){return t().interaction});
_.LY(function(){var z,B=(z=t().animatedRenderingConfig)==null?void 0:z.delayedSecondsToVisible;if(B){var V=setTimeout(G,B*1E3);_.Um(function(){clearTimeout(V)})}});
var w={};return _.k("reels-ad-card-buttoned-view-model",{class:_.cl(function(){var z;return((z=t().interaction)==null?0:z.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(w.ytwReelsAdCardButtonedViewModelHostExpansive=y,w)),
el:_.T7(X)},_.k(sXq,{avatar:function(){return _.Y(t().avatar,PMR)},
headline:function(){return t().headline},
badge:function(){return _.Y(t().adBadge,Eoz)},
description:function(){return t().description},
expansive:y}),_.k(_.M7,{data:function(){return t().ctaButton}},{adButtonViewModel:function(z){var B=z.data;
return _.k(_.Ae,{data:function(){return(y==null?0:y())?Object.assign({},B(),{style:"AD_BUTTON_STYLE_FILLED"}):B()}})}}))},"Fb");var S3P=_.Fp(function(X){var t=X.data;X=X.expansive;var G=_.A("web_ad_metadata_clickable")?_.ny(function(){return t().interaction},void 0,function(){return _.A("web_ad_metadata_clickable")}):void 0,y={};
y=_.pX("ytwReelsAdMetadataViewModelHost",(y.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.A("web_ad_metadata_clickable"),y));return _.k("reels-ad-metadata-view-model",{class:y,el:_.T7(G)},_.k(sXq,{avatar:function(){return _.Y(t().avatar,PMR)},
headline:function(){return t().headline},
badge:function(){return _.Y(t().adBadge,Eoz)},
description:function(){return t().description},
expansive:X}))},"Gb");var hnY={iconPosition:"icon-with-label",size:"L"},Zj4=_.Fp(function(X){var t=X.data;var G=X.overlayDensity;X=_.nl("reels-player-overlay-layout-view-model");var y=_.ex(G,0),w=function(){var F;return(F=t().reelsAdCardButtonedEntityKey)!=null?F:""},z=function(){return w()+"/ad_button"},B=_.Pk(gfY,w),V=function(){var F,T;
return(T=(F=B())==null?void 0:F.value)!=null?T:!1},b=_.w5(HR6),e=function(){return Object.assign({},hnY,(b()||y()===2)&&{style:"overlay-dark"})};
G={};var g={};return _.k("reels-player-overlay-layout-view-model",{class:_.cl("ytwReelsPlayerOverlayLayoutViewModelHost",(G.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!t().extension},G.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},G)),
"overlay-density":function(){return String(y())},
el:X},_.k("div",{class:_.cl("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(g.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},g))},_.k("div",{"aria-hidden":function(){return V()},
class:_.cl("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return V()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Ud({"transition-duration":function(){return nk6(t())}})},_.k(_.M7,{data:function(){return t().adMetadata}},{reelsAdMetadataViewModel:function(F){return _.k(S3P,{data:F.data,
expansive:function(){return y()===1}})}}),_.k(_.d,{cond:function(){return t().extension},
then:function(F){return _.k("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.k(_.M7,{data:F},{adButtonViewModel:function(T){return _.k(_.Ae,{data:T.data,animationEntityKey:z,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(T){return _.k(TJB,{data:T.data,animationEntityKey:z,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return y()===1}})}}))}})),_.k("div",{"aria-hidden":function(){return!V()},
class:_.cl("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return V()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Ud({"transition-duration":function(){return nk6(t())}})},_.k(_.M7,{data:function(){return t().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(F){return _.k(DH4,{data:F.data,
onShow:function(){_.dX(_.EW("booleanEntity",w(),{key:w(),value:!0}))},
expansive:function(){return y()===1}})}}))),_.k("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.k(_.M7,{data:function(){return t().actions}},{reelActionBarViewModel:function(F){return _.k(_.Y3q,{data:F.data,
buttonShapeOverrideables:e})}}),_.k(_.M7,{data:function(){return t().menu}},{buttonViewModel:function(F){return _.k(_.QK,{data:F.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},e(),{type:"tonal"})}})}}),_.k(_.M7,{data:function(){return t().pivotButton}},{pivotButtonViewModel:function(F){return _.k(_.A$z,{data:F.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hb");_.DW(Zj4,"reels-player-overlay-layout-view-model",{props:{data:_.bR,overlayDensity:_.bR}});var NK=function(){var X=_.O.apply(this,arguments)||this;X.noBottomMargin=!1;X.overlayDensity=0;return X};
_.S(NK,_.O);_.H=NK.prototype;
_.H.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.A("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]]"}}}}}};
_.H.ready=function(){var X=this;XTJ(function(){X.isAttached&&se(X.JSC$15408_storedAdSlotMetadata,X.JSC$15408_storedAdLayoutMetadata,X.adSlotMetadata,X.adLayoutMetadata)&&pk(W8(),X.JSC$15408_storedAdSlotMetadata,X.JSC$15408_storedAdLayoutMetadata)})};
_.H.attached=function(){se(this.JSC$15408_storedAdSlotMetadata,this.JSC$15408_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&kJz(W8(),this.JSC$15408_storedAdSlotMetadata,this.JSC$15408_storedAdLayoutMetadata)};
_.H.detached=function(){se(this.JSC$15408_storedAdSlotMetadata,this.JSC$15408_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&pk(W8(),this.JSC$15408_storedAdSlotMetadata,this.JSC$15408_storedAdLayoutMetadata)};
_.H.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.H.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15408_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15408_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15408_storedAdLayoutMetadata!==void 0&&this.JSC$15408_storedAdSlotMetadata!==void 0&&pk(W8(),this.JSC$15408_storedAdSlotMetadata,this.JSC$15408_storedAdLayoutMetadata),kJz(W8(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15408_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15408_storedAdSlotMetadata=this.adSlotMetadata)};
_.ke.Object.defineProperties(NK.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.adLayoutMetadata}}});
NK.prototype.onAdMetadataChanged=NK.prototype.onAdMetadataChanged;NK.prototype.onTypographyBumpChanged=NK.prototype.onTypographyBumpChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],NK.prototype,"rendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],NK.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],NK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],NK.prototype,"noBottomMargin",void 0);_.E([_.K(),_.U("design:type",Object)],NK.prototype,"overlayDensity",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],NK.prototype,"typographyBump",void 0);_.E([_.C("data.adLayoutMetadata"),_.U("design:type",Object),_.U("design:paramtypes",[])],NK.prototype,"adLayoutMetadata",null);_.E([_.K(),_.U("design:type",Object)],NK.prototype,"adSlotMetadata",void 0);
_.E([_.rt("ytd-video-display-full-buttoned-and-button-group-renderer"),_.U("design:type",HTMLElement)],NK.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.E([_.cW("typographyBump"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],NK.prototype,"onTypographyBumpChanged",null);_.E([_.cW("adLayoutMetadata","adSlotMetadata"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],NK.prototype,"onAdMetadataChanged",null);
_.E([_.p({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],NK);
_.N(NK,"ytd-in-feed-ad-layout-renderer",function(){if(eEz!==void 0)return eEz;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return eEz=X},
{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var q3S;var CrB;var P8=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return X};
_.S(P8,_.O);_.H=P8.prototype;_.H.computeHasLiveDescription=function(X){return!(X==null||!X.liveDescription)};
_.H.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.H.onYtToggleButton=function(X){var t,G=(t=this.data)==null?void 0:t.videoReminderEntityKey;G&&this.ytdReduxBehavior.dispatch(_.EW("upcomingEventReminderStateEntity",G,{key:G,state:X.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.H.attached=function(){this.updateChannelBanner()};
_.H.dataChanged=function(){this.updateChannelBanner()};
_.H.videoReminderStateChanged=function(){var X;this.videoReminderState&&_.Y((X=this.data)==null?void 0:X.cta,_.yq)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.H.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var X=_.S_(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);X&&(X.startsWith("//")&&(X="https:"+X),this.hostElement.classList.add("channel-banner"),_.Kd(this.hostElement,{"--ytvmh-channel-banner":"url("+X+")"}))}else _.A("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.H.onPlayerReady=function(){this.onIronResize()};
_.H.maybeFlushDebouncer=function(){_.A("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(X){var t;X=(t=X.getElementsByTagName("yt-attributed-string"))==null?void 0:t[0];kb_(X==null?void 0:X.polymerController)})};
_.H.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var X=_.Sm(this.hostElement).querySelector("#live-description"),t;X&&((t=this.data)==null?0:t.shortLiveDescription)&&X.clientWidth<X.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
P8.prototype.onIronResize=P8.prototype.onIronResize;P8.prototype.videoReminderStateChanged=P8.prototype.videoReminderStateChanged;P8.prototype.dataChanged=P8.prototype.dataChanged;P8.prototype.onYtToggleButton=P8.prototype.onYtToggleButton;_.E([_.q(_.ax),_.U("design:type",Object)],P8.prototype,"ironResizableBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],P8.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],P8.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],P8.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:Da6}),_.U("design:type",Object)],P8.prototype,"videoReminderState",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.A("web_modern_buttons")}),_.U("design:type",Boolean)],P8.prototype,"rounded",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.U("design:type",Boolean)],P8.prototype,"hasLiveDescription",void 0);_.E([_.K({reflectToAttribute:!0,value:_.A("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.U("design:type",Boolean)],P8.prototype,"resizableAdBannerSafariFix",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.A("align_three_dot_menu_with_title_description")}),_.U("design:type",Boolean)],P8.prototype,"menuFix",void 0);_.E([_.NS("yt-formatted-string"),_.U("design:type",Array)],P8.prototype,"formattedStrings",void 0);_.E([_.rt("#cta-button"),_.U("design:type",HTMLElement)],P8.prototype,"ctaButton",void 0);_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],P8.prototype,"onYtToggleButton",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],P8.prototype,"dataChanged",null);_.E([_.cW("videoReminderState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],P8.prototype,"videoReminderStateChanged",null);_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],P8.prototype,"onIronResize",null);
_.E([_.p({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],P8);
_.N(P8,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(CrB!==void 0)return CrB;var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return CrB=X},{mode:1});var KLS;var EL=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};X.isLocked=!1;return X};
_.S(EL,_.O);_.H=EL.prototype;_.H.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.H.onExpandedChanged=function(){this.expanded&&_.D0(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.H.onMouseOver=function(){this.maybeExpand()};
_.H.onTap=function(){this.maybeExpand()};
_.H.onExpandableTileExpanding=function(X){X!==this&&(this.expanded=!1)};
_.H.onExpandableTileLockAndCollapse=function(X){this.isLocked=!0;X!==this&&(this.expanded=!1)};
_.H.onExpandableTileUnlock=function(){this.isLocked=!1};
EL.prototype.onTap=EL.prototype.onTap;EL.prototype.onMouseOver=EL.prototype.onMouseOver;EL.prototype.onExpandedChanged=EL.prototype.onExpandedChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],EL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],EL.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],EL.prototype,"expanded",void 0);_.E([_.U0("expanded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],EL.prototype,"onExpandedChanged",null);_.E([_.WW("mouseover"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],EL.prototype,"onMouseOver",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],EL.prototype,"onTap",null);
_.E([_.p({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],EL);
_.N(EL,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(KLS!==void 0)return KLS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return KLS=X},{mode:1});var Ojq;var UL=function(){var X=_.O.apply(this,arguments)||this;X.buttonOverrides={style:"overlay"};X.useYtdPlayer=_.A("use_ytd_player_for_desktop_masthead");X.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};X.playbackFinished=!1;X.JSC$15420_playerManager=null;X.JSC$15420_mastheadCounter=new r6q;return X};
_.S(UL,_.O);_.H=UL.prototype;_.H.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"}}}};
_.H.created=function(){this.JSC$15420_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15420_playerManager=new Lu)};
_.H.ready=function(){var X=this;this.JSC$15420_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var t=_.Sm(this.hostElement).querySelector("#player");this.useYtdPlayer?t.style.display="none":(this.ytdPlayer.style.display="none",cYz(this.JSC$15420_playerManager,t,function(){X.onPlaybackEnded()}),_.Sm(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var G;
((G=X.data)==null?0:G.navigationEndpoint)&&_.Yt(X.hostElement,"yt-navigate",{endpoint:X.data.navigationEndpoint})}))};
_.H.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15420_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.H.attached=function(){var X=this;_.oL(function(){X.maybePlayVideo()})};
_.H.maybePlayVideo=function(){var X=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$15420_playerManager.playVideo(),this.getPlayerPromise().then(function(){X.JSC$15420_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.H.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15420_playerManager.stopVideo()};
_.H.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var X,t={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((X=this.data.playbackStartMs)!=null?X:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(t);this.setupYtdPlayer()}else rYo(this.JSC$15420_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(p_o(this.JSC$15420_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.H.getPlayerPromise=function(){return this.JSC$15420_playerManager.getPlayerPromise()};
_.H.onYtToggleButton=function(X){this.useYtdPlayer?this.toggleMute(X.detail.toggled):X.detail.toggled?this.JSC$15420_playerManager.mute():this.JSC$15420_playerManager.unMute()};
_.H.onYtNavigate=function(X){var t=w76(X.detail.endpoint),G=zDY(this.data.clickthroughReportingData);t&&G&&(X.detail.endpoint.watchEndpoint?X.detail.tempData=G:_.dk(t,G,30))};
_.H.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.H.onExpandedChanged=function(){this.expanded?(_.D0(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.H.onMouseOver=function(){this.maybeExpand()};
_.H.onTap=function(){this.maybeExpand()};
_.H.onExpandableTileExpanding=function(X){X!==this&&(this.stopVideo(),this.expanded=!1)};
_.H.onExpandableTileLockAndCollapse=function(X){X!==this&&(this.isLocked=!0,this.expanded=!1)};
_.H.onExpandableTileUnlock=function(){this.isLocked=!1};
_.H.lockAndCollapseExpandableTiles=function(){_.sl(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.H.unlockExpandableTiles=function(){_.sl(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.H.setupYtdPlayer=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return G.yield(X.ytdPlayer.getPlayerPromise(),2);t=G.yieldResult;t.addEventListener("onStateChange",function(y){X.onPlayerStateChange(y)});
t.addEventListener("onCueRangeExit",function(y){X.onCueRangeExit(y)});
_.W$(G)})};
_.H.onPlayerStateChange=function(X){if(X===1&&(X=this.ytdPlayer.getPlayer())){var t=X.getCurrentTime(),G,y,w=t+((y=(G=this.data)==null?void 0:G.playbackDurationMs)!=null?y:0)/1E3;X.addCueRange("playback",t,w);this.JSC$15420_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.H.onCueRangeExit=function(X){X==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.H.toggleMute=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(t.ytdPlayer.getPlayerPromise(),2);G=y.yieldResult;X?G.mute():G.unMute();_.W$(y)})};
UL.prototype.onTap=UL.prototype.onTap;UL.prototype.onMouseOver=UL.prototype.onMouseOver;UL.prototype.onExpandedChanged=UL.prototype.onExpandedChanged;UL.prototype.onYtNavigate=UL.prototype.onYtNavigate;UL.prototype.onYtToggleButton=UL.prototype.onYtToggleButton;UL.prototype.dataChanged=UL.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],UL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],UL.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],UL.prototype,"expanded",void 0);_.E([_.K(),_.U("design:type",Object)],UL.prototype,"buttonOverrides",void 0);
_.E([_.K(),_.U("design:type",Object)],UL.prototype,"useYtdPlayer",void 0);_.E([_.rt("#ytd-player"),_.U("design:type",Object)],UL.prototype,"ytdPlayer",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UL.prototype,"dataChanged",null);_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],UL.prototype,"onYtToggleButton",null);
_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],UL.prototype,"onYtNavigate",null);_.E([_.U0("expanded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UL.prototype,"onExpandedChanged",null);_.E([_.WW("mouseover"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UL.prototype,"onMouseOver",null);
_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UL.prototype,"onTap",null);_.E([_.p({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],UL);
_.N(UL,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Ojq!==void 0)return Ojq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Ojq=X},{mode:1});var uGB;var mK=function(){return _.O.apply(this,arguments)||this};
_.S(mK,_.O);mK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
mK.prototype.onShow=function(){var X=_.Sm(this.hostElement).querySelector("#live-description"),t;X&&((t=this.data)==null?0:t.shortLiveDescription)&&X.clientWidth<X.scrollWidth&&this.hostElement.classList.add("short-live-description")};
mK.prototype.onYtToggleButton=function(X){var t,G=(t=this.data)==null?void 0:t.videoReminderEntityKey;G&&this.ytdReduxBehavior.dispatch(_.EW("upcomingEventReminderStateEntity",G,{key:G,state:X.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
mK.prototype.videoReminderStateChanged=function(){var X;this.videoReminderState&&_.Y((X=this.data)==null?void 0:X.cta,_.yq)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
mK.prototype.videoReminderStateChanged=mK.prototype.videoReminderStateChanged;mK.prototype.onYtToggleButton=mK.prototype.onYtToggleButton;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],mK.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mK.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:Da6}),_.U("design:type",Object)],mK.prototype,"videoReminderState",void 0);_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],mK.prototype,"onYtToggleButton",null);_.E([_.cW("videoReminderState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],mK.prototype,"videoReminderStateChanged",null);
_.E([_.p({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],mK);
_.N(mK,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(uGB!==void 0)return uGB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return uGB=X},{mode:_.Cz("kevlar_poly_si_batch_j065")?1:2});var QXt;var RT=function(){var X=_.O.apply(this,arguments)||this;X.useYtdPlayer=_.A("use_ytd_player_for_desktop_masthead");X.buttonOverrides={style:"overlay"};X.JSC$15428_playerManager=null;X.JSC$15428_mastheadCounter=new r6q;X.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return X};
_.S(RT,_.O);_.H=RT.prototype;_.H.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"}}}};
_.H.created=function(){this.JSC$15428_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15428_playerManager=new Lu)};
_.H.ready=function(){var X=this;this.JSC$15428_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var t;(t=this.embeddedPlayer)==null||t.remove()}else{var G;(G=this.ytdPlayer)==null||G.remove();cYz(this.JSC$15428_playerManager,this.embeddedPlayer,function(){X.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){X.data&&X.data.navigationEndpoint&&_.Yt(X.hostElement,"yt-navigate",{endpoint:X.data.navigationEndpoint})})}};
_.H.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15428_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.H.dataChanged=function(){var X=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var t=!this.data.disableAutoPlayback,G,y={autoplay:t,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((G=this.data.playbackStartMs)!=null?G:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(t?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(y);this.setupYtdPlayer()}else rYo(this.JSC$15428_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(p_o(this.JSC$15428_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15428_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.sl(X.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");X.JSC$15428_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.H.getPlayerPromise=function(){return this.JSC$15428_playerManager.getPlayerPromise()};
_.H.onYtToggleButton=function(X){this.useYtdPlayer?this.toggleMute(X.detail.toggled):X.detail.toggled?this.JSC$15428_playerManager.mute():this.JSC$15428_playerManager.unMute()};
_.H.onYtNavigate=function(X){var t=w76(X.detail.endpoint),G=zDY(this.data.clickthroughReportingData);t&&G&&(X.detail.endpoint.watchEndpoint?X.detail.tempData=G:_.dk(t,G,30))};
_.H.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15428_playerManager.stopVideo()};
_.H.setupYtdPlayer=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return G.yield(X.ytdPlayer.getPlayerPromise(),2);t=G.yieldResult;t.addEventListener("onStateChange",function(y){X.onPlayerStateChange(y)});
t.addEventListener("onCueRangeExit",function(y){X.onCueRangeExit(y)});
_.W$(G)})};
_.H.onPlayerStateChange=function(X){if(X===1&&(X=this.ytdPlayer.getPlayer())){var t=X.getCurrentTime(),G,y,w=t+((y=(G=this.data)==null?void 0:G.playbackDurationMs)!=null?y:0)/1E3;X.addCueRange("playback",t,w);_.sl(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15428_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.H.onCueRangeExit=function(X){X==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.H.toggleMute=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(t.ytdPlayer.getPlayerPromise(),2);G=y.yieldResult;X?G.mute():G.unMute();_.W$(y)})};
_.ke.Object.defineProperties(RT.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var X,t;if(!((X=this.data)==null?0:(t=X.accessibilityData)==null?0:t.label))return"Ad primary link";var G,y;return _.Qf("AD_TITLE",{title:(G=this.data)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label})}}});
RT.prototype.onYtMastheadHidden=RT.prototype.onYtMastheadHidden;RT.prototype.onYtNavigate=RT.prototype.onYtNavigate;RT.prototype.onYtToggleButton=RT.prototype.onYtToggleButton;RT.prototype.dataChanged=RT.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],RT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],RT.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],RT.prototype,"useYtdPlayer",void 0);_.E([_.rt("ytd-toggle-button-renderer"),_.U("design:type",Object)],RT.prototype,"muteButton",void 0);_.E([_.K(),_.U("design:type",Object)],RT.prototype,"buttonOverrides",void 0);
_.E([_.C("data.accessibilityData.label"),_.U("design:type",String),_.U("design:paramtypes",[])],RT.prototype,"titleAriaLabel",null);_.E([_.rt("#replay-button"),_.U("design:type",Object)],RT.prototype,"replayButton",void 0);_.E([_.rt("#player-container"),_.U("design:type",Object)],RT.prototype,"playerContainer",void 0);_.E([_.rt("#player"),_.U("design:type",Object)],RT.prototype,"embeddedPlayer",void 0);_.E([_.rt("#ytd-player"),_.U("design:type",Object)],RT.prototype,"ytdPlayer",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],RT.prototype,"dataChanged",null);_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],RT.prototype,"onYtToggleButton",null);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],RT.prototype,"onYtNavigate",null);
_.E([_.WW("yt-masthead-hidden"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],RT.prototype,"onYtMastheadHidden",null);_.E([_.p({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],RT);
_.N(RT,"ytd-video-masthead-ad-primary-video-renderer",function(){if(QXt!==void 0)return QXt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return QXt=X},{mode:2});var I$q;var iO=function(){var X=_.O.apply(this,arguments)||this;X.collapsed=!1;X.impressionResolver=_.d5();X.JSC$15432_activeViewMeasurementDataResolver=_.d5();X.actionMap={"yt-mute-ad-action":"handleMuteAd"};return X};
_.S(iO,_.O);_.H=iO.prototype;_.H.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"}}}};
_.H.ready=function(){var X=this;_.Sm(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){X.expandAd()});
this.hostElement.addEventListener("yt-action",function(t){if(t.detail.actionName==="yt-service-request"){var G=t.detail.args[1];G.videoMastheadAdMuteCommand&&(X.collapseAd(G.videoMastheadAdMuteCommand.encryptedMastheadId),t.stopPropagation())}})};
_.H.attached=function(){var X=this;_.oL(function(){X.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(t){if(!X.collapsed){t=_.J(t);for(var G=t.next();!G.done;G=t.next())G=G.value,o7(G.baseUrl,G.attributionSrcMode);X.data.impressionCommand=void 0}});
this.JSC$15432_activeViewMeasurementDataResolver.promise.then(function(t){X.ytdActiveViewBehavior.enableActiveViewMeasurement(t,15)});
_.A("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&X.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.H.dataChanged=function(){var X;((X=this.data.impressionCommand)==null?0:X.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var t;((t=this.data)==null?0:t.activeView)&&this.JSC$15432_activeViewMeasurementDataResolver.resolve(this.data.activeView);(X=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(X.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.H.computeWidescreen=function(X){var t;return!!(X&&((t=_.Y(X,WPq))==null?0:t.isWidescreen))};
_.H.computeExpandable=function(X){return!!(X&&X.length>0)};
_.H.onIronResize=function(){if(this.expandable){var X=_.Sm(this.hostElement).querySelector("#expandable-tile-container :first-child");X&&!X.expanded&&(X.expanded=!0)}};
_.H.handleMuteAd=function(){this.collapseAd(null)};
_.H.restoreCollapsedState=function(X){this.collapsed=_.cP().get("HIDDEN_MASTHEAD_ID")===X};
_.H.collapseAd=function(X){if(X){var t=_.cP();t.set("HIDDEN_MASTHEAD_ID",X);t.save()}(X=_.Sm(this.hostElement).querySelector("#video"))&&_.Yt(X,"yt-masthead-hidden");this.collapsed=!0};
_.H.expandAd=function(){var X=_.cP();X.set("HIDDEN_MASTHEAD_ID",!1);X.save();location.reload()};
_.H.detached=function(){_.A("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
iO.prototype.onIronResize=iO.prototype.onIronResize;iO.prototype.dataChanged=iO.prototype.dataChanged;_.E([_.q(_.ax),_.U("design:type",Object)],iO.prototype,"ironResizableBehavior",void 0);_.E([_.q(fr),_.U("design:type",Object)],iO.prototype,"ytdActiveViewBehavior",void 0);_.E([_.q(_.y_),_.U("design:type",Object)],iO.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],iO.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iO.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.U("design:type",Boolean)],iO.prototype,"widescreen",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.U("design:type",Boolean)],iO.prototype,"expandable",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],iO.prototype,"collapsed",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],iO.prototype,"dataChanged",null);
_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],iO.prototype,"onIronResize",null);_.E([_.p({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],iO);
_.N(iO,"ytd-video-masthead-ad-v3-renderer",function(){if(I$q!==void 0)return I$q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return I$q=X},{mode:2});var Lk=function(){return _.O.apply(this,arguments)||this};
_.S(Lk,_.O);_.H=Lk.prototype;_.H.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.H.ready=function(){var X=this;XTJ(function(){X.isAttached&&se(X.JSC$15437_storedAdSlotMetadata,X.JSC$15437_storedAdLayoutMetadata,X.adSlotMetadata,X.adLayoutMetadata)&&pk(W8(),X.JSC$15437_storedAdSlotMetadata,X.JSC$15437_storedAdLayoutMetadata)})};
_.H.attached=function(){se(this.JSC$15437_storedAdSlotMetadata,this.JSC$15437_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&kJz(W8(),this.JSC$15437_storedAdSlotMetadata,this.JSC$15437_storedAdLayoutMetadata)};
_.H.detached=function(){se(this.JSC$15437_storedAdSlotMetadata,this.JSC$15437_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&pk(W8(),this.JSC$15437_storedAdSlotMetadata,this.JSC$15437_storedAdLayoutMetadata)};
_.H.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15437_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15437_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15437_storedAdLayoutMetadata!==void 0&&this.JSC$15437_storedAdSlotMetadata!==void 0&&pk(W8(),this.JSC$15437_storedAdSlotMetadata,this.JSC$15437_storedAdLayoutMetadata),kJz(W8(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15437_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15437_storedAdSlotMetadata=this.adSlotMetadata)};
_.ke.Object.defineProperties(Lk.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.adLayoutMetadata}}});
Lk.prototype.onAdMetadataChanged=Lk.prototype.onAdMetadataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Lk.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Lk.prototype,"data",void 0);_.E([_.C("data.adLayoutMetadata"),_.U("design:type",Object),_.U("design:paramtypes",[])],Lk.prototype,"adLayoutMetadata",null);
_.E([_.K(),_.U("design:type",Object)],Lk.prototype,"adSlotMetadata",void 0);_.E([_.cW("adLayoutMetadata","adSlotMetadata"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Lk.prototype,"onAdMetadataChanged",null);_.E([_.p({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Lk);
_.N(Lk,"ytd-page-top-ad-layout-renderer",function(){if(q3S!==void 0)return q3S;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return q3S=
X},{mode:_.Cz("kevlar_poly_si_batch_j070")?1:2});var WLo;var aT=function(){var X=_.O.apply(this,arguments)||this;X.noBottomMargin=!1;X.overlayDensity=0;X.typographyBump=!1;return X};
_.S(aT,_.O);_.H=aT.prototype;
_.H.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]]"}}}}}};
_.H.ready=function(){var X=this;XTJ(function(){X.isAttached&&X.adSlotMetadata&&bjo(W8(),X.adSlotMetadata)})};
_.H.attached=function(){if(this.adSlotMetadata){var X;if(this.adSlotMetadata===((X=this.data)==null?void 0:X.adSlotMetadata))Vnz(W8(),this.adSlotMetadata);else{var t;_.Mj(Error("Lh`"+this.adSlotMetadata+"`"+((t=this.data)==null?void 0:t.adSlotMetadata)))}}};
_.H.detached=function(){this.adSlotMetadata&&bjo(W8(),this.adSlotMetadata)};
_.H.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.H.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&bjo(W8(),this.adSlotMetadata),Vnz(W8(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.ke.Object.defineProperties(aT.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var X,t,G=_.Y((X=this.data)==null?void 0:(t=X.fulfillmentContent)==null?void 0:t.fulfilledLayout,_.pIh),y;return(X=(y=_.Y(G==null?void 0:G.renderingContent,clR))==null?void 0:y.layout)?X.toLowerCase().replace(/_/g,"-"):""}}});
aT.prototype.onAdSlotMetadataChanged=aT.prototype.onAdSlotMetadataChanged;aT.prototype.onTypographyBumpChanged=aT.prototype.onTypographyBumpChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],aT.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],aT.prototype,"rendererBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],aT.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],aT.prototype,"noBottomMargin",void 0);_.E([_.K(),_.U("design:type",Object)],aT.prototype,"overlayDensity",void 0);_.E([_.K(),_.U("design:type",Object)],aT.prototype,"typographyBump",void 0);_.E([_.rt("ytd-in-feed-ad-layout-renderer"),_.U("design:type",HTMLElement)],aT.prototype,"inFeedAdLayoutRenderer",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],aT.prototype,"layout",null);_.E([_.cW("typographyBump"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],aT.prototype,"onTypographyBumpChanged",null);_.E([_.cW("data.adSlotMetadata"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],aT.prototype,"onAdSlotMetadataChanged",null);
_.E([_.p({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],aT);
_.N(aT,"ytd-ad-slot-renderer",function(){if(WLo!==void 0)return WLo;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return WLo=X},{mode:_.Cz("kevlar_poly_si_batch_j077")?
1:2});var c$4;var lO=function(){return _.O.apply(this,arguments)||this};
_.S(lO,_.O);_.H=lO.prototype;_.H.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"}}}};
_.H.maybeComputeHref=function(X){return _.A("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(X)};
_.H.onTap=function(){_.A("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&vX0(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.H.onThumbnailContainerClick=function(X){this.onClick(X)};
_.H.onClick=function(X){if(_.A("enable_handle_watch_endpoint_click_for_vdc")){var t,G=(t=this.data)==null?void 0:t.navigationEndpoint;G&&_.Y(G,_.nq)&&(this.ytSparklesClickLocationBehavior.handleClick(G,X,!1),X.stopPropagation())}};
_.H.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var X=_.J(this.data.impressionUrls),t=X.next();!t.done;t=X.next())t=t.value,ymw(t,zjf(t));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.A("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",lO.JSC$15445_DEFAULT_CLICK_LOCATION_BEHAVIOR,lO.JSC$15445_CLICK_LOCATION_ID_MAP),this.thumbnail&&(X=this.thumbnail.getElementsByTagName("a"),
X.length>0&&(X=X.namedItem("thumbnail"))&&X.removeAttribute("href")))}};
_.H.attached=function(){var X=this;_.A("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&X.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.H.detached=function(){_.A("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ke.Object.defineProperties(lO.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.A("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.A("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
lO.prototype.dataChanged=lO.prototype.dataChanged;lO.prototype.onTap=lO.prototype.onTap;lO.JSC$15445_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
lO.JSC$15445_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"}];_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.E([_.q(fr),_.U("design:type",Object)],lO.prototype,"ytdActiveViewBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],lO.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],lO.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],lO.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.K({selector:_.yE}),_.U("design:type",Object)],lO.prototype,"isGridViewEnabled",void 0);_.E([_.C("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],lO.prototype,"watchFeedBigThumbs",null);_.E([_.C("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.U("design:type",String),_.U("design:paramtypes",[])],lO.prototype,"thumbnailWidth",null);_.E([_.K(),_.U("design:type",Object)],lO.prototype,"data",void 0);
_.E([_.rt("ytd-thumbnail"),_.U("design:type",HTMLElement)],lO.prototype,"thumbnail",void 0);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],lO.prototype,"onTap",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],lO.prototype,"dataChanged",null);_.E([_.p({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],lO);
_.N(lO,"ytd-compact-promoted-video-renderer",function(){if(c$4!==void 0)return c$4;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return c$4=X},{mode:1});var pGP;_.Xa("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var xU=function(){return _.O.apply(this,arguments)||this};
_.S(xU,_.O);xU.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xU.prototype,"data",void 0);_.E([_.p({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],xU);
_.N(xU,"ytd-search-pyv-renderer",function(){if(pGP!==void 0)return pGP;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return pGP=X},{mode:1});var r$J;_.Xa("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var fk=function(){var X=_.O.apply(this,arguments)||this;X.roundedContainer=!0;X.JSC$15453_handleOpenPostCommentDialogActionAfterStamp=!1;X.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return X};
_.S(fk,_.O);_.H=fk.prototype;
_.H.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}}};
_.H.onStampFinished=function(){this.JSC$15453_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.H.handleSignalActionOpenPostCommentDialogAction=function(){var X=_.Sm(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");X?X.openDialog():this.JSC$15453_handleOpenPostCommentDialogActionAfterStamp=!0};
_.H.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.H.computeHideBorder=function(){return this.isInEngagementPanel};
_.H.computeIsCompact=function(){return this.isInEngagementPanel};
_.H.computeUsesCompactLockup=function(X){return X==="BACKSTAGE_SURFACE_TYPE_HOME"||X==="BACKSTAGE_SURFACE_TYPE_SEARCH"||X==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||X==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||X==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||X==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.H.computeUsesFullLockup=function(){var X,t=(X=this.data)==null?void 0:X.post,G;X=(G=_.Y(t,voR))==null?void 0:G.surface;var y;G=(y=_.Y(t,xFJ))==null?void 0:y.originalPost;var w;if(y=X||((w=_.Y(G,voR))==null?void 0:w.surface))return!this.computeUsesCompactLockup(y)&&this.useUpdatedRepostUi;var z;return((z=_.Y(t,xFJ))==null?void 0:z.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.ke.Object.defineProperties(fk.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var X,t;return((t=_.Y((X=this.data)==null?void 0:X.post,voR))==null?void 0:t.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.useUpdatedRepostUi}}});
fk.prototype.onYtCommentModerationPanelEmpty=fk.prototype.onYtCommentModerationPanelEmpty;fk.prototype.onStampFinished=fk.prototype.onStampFinished;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],fk.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],fk.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fk.prototype,"roundedContainer",void 0);_.E([_.K({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.U("design:type",Boolean)],fk.prototype,"hideBorder",void 0);_.E([_.K({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.U("design:type",Boolean)],fk.prototype,"isCompact",void 0);
_.E([_.K({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.U("design:type",Boolean)],fk.prototype,"usesFullLockup",void 0);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fk.prototype,"onStampFinished",null);
_.E([_.WW("ytd-comment-moderation-panel-empty"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],fk.prototype,"onYtCommentModerationPanelEmpty",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fk.prototype,"isInEngagementPanel",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fk.prototype,"useUpdatedRepostUi",null);
_.E([_.p({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],fk);
_.N(fk,"ytd-backstage-post-thread-renderer",function(){if(r$J!==void 0)return r$J;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return r$J=X},{mode:1});var NJq;var MK=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(MK,_.O);MK.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
MK.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var X=this.data.thumbnail.thumbnails;this.isDarkTheme&&(X=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(X=_.S_(X,24,void 0,"height"))?X:void 0}};
MK.prototype.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
MK.prototype.computeHasText=function(){var X;return!((X=this.data)==null||!X.text)};
_.ke.Object.defineProperties(MK.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.l_(this.bannerImageUrl))+'");'}}});
MK.prototype.computeHasText=MK.prototype.computeHasText;MK.prototype.computeBannerImageUrl=MK.prototype.computeBannerImageUrl;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],MK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],MK.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],MK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],MK.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",String)],MK.prototype,"bannerImageUrl",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.U("design:type",Boolean)],MK.prototype,"hasText",void 0);_.E([_.cW("data","isDarkTheme"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],MK.prototype,"computeBannerImageUrl",null);
_.E([_.cW("data.text"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],MK.prototype,"computeHasText",null);_.E([_.C("bannerImageUrl"),_.U("design:type",Object),_.U("design:paramtypes",[])],MK.prototype,"bannerStyle",null);_.E([_.p({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],MK);
_.N(MK,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(NJq!==void 0)return NJq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return NJq=X},{mode:1});var Prq;var XU=function(){return _.O.apply(this,arguments)||this};
_.S(XU,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],XU.prototype,"data",void 0);_.E([_.p({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],XU);
_.N(XU,"ytd-backstage-zero-state-renderer",function(){if(Prq!==void 0)return Prq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Prq=X},{mode:1});var Ezq;var $q=function(){return _.O.apply(this,arguments)||this};
_.S($q,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$q.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.U("design:type",String)],$q.prototype,"icon",void 0);_.E([_.p({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],$q);
_.N($q,"ytd-post-filter-zero-state-renderer",function(){if(Ezq!==void 0)return Ezq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Ezq=X},{mode:1});var UHe;var mHP={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},tY=function(){return _.O.apply(this,arguments)||this};
_.S(tY,_.O);tY.prototype.configureRendererStamper=function(){return mHP};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],tY.prototype,"rendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],tY.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.U("design:type",String)],tY.prototype,"icon",void 0);_.E([_.p({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],tY);
_.N(tY,"ytd-post-scheduling-zero-state-renderer",function(){if(UHe!==void 0)return UHe;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return UHe=X},{mode:1});var Rnq;var Gb=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return X};
_.S(Gb,_.O);Gb.prototype.onTabsActivate=function(X){this.data&&this.data.tabs&&_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[X.detail.selected].navigationEndpoint})};
Gb.prototype.shouldShowTotalCount=function(X){return X&&X.totalCount!==void 0};
Gb.prototype.handleUpdatePostsTotalCountAction=function(X){var t=this.get(["data.tabs",1,"totalCount"]),G=this.get("updatePostsTotalCountAction.updateType",X);X=this.get("updatePostsTotalCountAction.number",X);t!==void 0&&G!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&X&&(G==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(t)+X):G==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(t)-X))};
_.ke.Object.defineProperties(Gb.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var X=0,t=this.data.tabs.length;X<t;X++)if(this.data.tabs[X].selected)return X;return 0}}});
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Gb.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Gb.prototype,"rendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Gb.prototype,"data",void 0);_.E([_.C("data.tabs"),_.U("design:type",Number),_.U("design:paramtypes",[])],Gb.prototype,"selected",null);_.E([_.p({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Gb);
_.N(Gb,"ytd-post-stream-filter-renderer",function(){if(Rnq!==void 0)return Rnq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Rnq=X},{mode:1});var ijq;var yy=function(){return _.O.apply(this,arguments)||this};
_.S(yy,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],yy.prototype,"kevlarBehaviors",void 0);_.E([_.K(),_.U("design:type",Object)],yy.prototype,"data",void 0);_.E([_.p({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],yy);
_.N(yy,"ytd-channel-age-gate-renderer",function(){if(ijq!==void 0)return ijq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ijq=X},{mode:1});var LLh;_.Xa("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var wR=function(){var X=_.O.apply(this,arguments)||this;X.data=null;return X};
_.S(wR,_.O);wR.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ke.Object.defineProperties(wR.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.data)==null?0:(t=X.title)==null?0:(G=t.runs)==null?0:G.length)?147:160}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],wR.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],wR.prototype,"imageSizePx",null);_.E([_.p({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],wR);
_.N(wR,"ytd-channel-owner-empty-state-renderer",function(){if(LLh!==void 0)return LLh;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return LLh=X},{mode:1});var vzJ;var a$z;var zb=function(){var X=_.O.apply(this,arguments)||this;X.boundSubmitSearch=function(){X.submitSearch()};
X.boundClearSearch=function(){X.clearSearch()};
return X};
_.S(zb,_.O);_.H=zb.prototype;_.H.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]]"}}}}}};
_.H.toggleClearButton=function(){this.hideClearButton=DOw||!this.input.value};
_.H.submitOnEnterKeyUp=function(X){X.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.H.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.H.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.H.submit=function(){_.Yt(this.hostElement,"search-query-changed",this.input.value)};
zb.prototype.toggleClearButton=zb.prototype.toggleClearButton;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],zb.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],zb.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],zb.prototype,"hideClearButton",void 0);_.E([_.K(),_.U("design:type",Object)],zb.prototype,"boundSubmitSearch",void 0);_.E([_.K(),_.U("design:type",Object)],zb.prototype,"boundClearSearch",void 0);_.E([_.rt("#input"),_.U("design:type",Object)],zb.prototype,"input",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zb.prototype,"toggleClearButton",null);
_.E([_.p({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],zb);
_.N(zb,"ytd-channel-switcher-search-box-renderer",function(){if(a$z!==void 0)return a$z;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return a$z=X},{mode:1});var l$Y;var H_=function(){var X=_.O.apply(this,arguments)||this;X.boundSubmit=function(){X.submit()};
return X};
_.S(H_,_.O);_.H=H_.prototype;_.H.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"}}}}};
_.H.ready=function(){var X=this;this.form.addEventListener("submit",function(t){return X.onSubmit(t)})};
_.H.onSubmit=function(X){X.preventDefault();return!1};
_.H.toggleClearButton=function(){this.hideClearButton=DOw||!this.input.value};
_.H.submitOnEnterKeyUp=function(X){X.keyCode===13&&this.submit()};
_.H.submit=function(){var X=this.data.endpoint,t=(0,_.RH.unsafeClone)(X);_.Y(t,_.pp)?_.Y(t,_.pp).query=this.input.value:_.Y(t,_.rV)&&(_.Y(t,_.rV).query=this.input.value);var G=_.Y(t.commandMetadata,_.jQ);(G==null?0:G.url)?(G.url=_.ta(G.url,"query",this.input.value),_.Yt(this.hostElement,"yt-navigate",{endpoint:t})):_.Y(t,KPq)?(_.Y(t,KPq).channelSwitcherQuery=this.input.value,_.gw().resolve(_.F3).resolveCommand(t,{form:{element:this.hostElement}})):(X=Error("Mh`"+JSON.stringify(X)),_.xA(X))};
_.H.getUrl=function(X){return this.get("commandMetadata.webCommandMetadata.url",X)};
H_.prototype.toggleClearButton=H_.prototype.toggleClearButton;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],H_.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],H_.prototype,"hideClearButton",void 0);
_.E([_.K(),_.U("design:type",Object)],H_.prototype,"boundSubmit",void 0);_.E([_.rt("#form"),_.U("design:type",HTMLFormElement)],H_.prototype,"form",void 0);_.E([_.rt("#input"),_.U("design:type",Object)],H_.prototype,"input",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],H_.prototype,"toggleClearButton",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],H_);
_.N(H_,"ytd-search-box-renderer",function(){if(l$Y!==void 0)return l$Y;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return l$Y=X},{mode:2});var oR=function(){var X=_.O.apply(this,arguments)||this;X.showSearchBox=!0;return X};
_.S(oR,_.O);oR.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],oR.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],oR.prototype,"showSearchBox",void 0);_.E([_.p({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],oR);
_.N(oR,"ytd-channel-switcher-header-renderer",function(){if(vzJ!==void 0)return vzJ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return vzJ=X},{mode:1});var xHe;var f$o;var JY=function(){var X=_.O.apply(this,arguments)||this;X.isDisplayed=!0;return X};
_.S(JY,_.O);_.H=JY.prototype;_.H.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.dataChanged=function(){this.isDisplayed=!0};
_.H.computeType=function(X){return X||"UNKNOWN"};
_.H.onYtServiceRequestCompleted=function(X){X.stopPropagation();this.isDisplayed=!1};
_.H.onClose=function(){this.isDisplayed=!1};
JY.prototype.onYtServiceRequestCompleted=JY.prototype.onYtServiceRequestCompleted;JY.prototype.dataChanged=JY.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],JY.prototype,"data",void 0);
_.E([_.K({computed:"computeType(data.type)",reflectToAttribute:!0}),_.U("design:type",String)],JY.prototype,"type",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],JY.prototype,"isDisplayed",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],JY.prototype,"dataChanged",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],JY.prototype,"onYtServiceRequestCompleted",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],JY);
_.N(JY,"ytd-alert-with-button-renderer",function(){if(f$o!==void 0)return f$o;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return f$o=X},{mode:1});var B_=function(){var X=_.O.apply(this,arguments)||this;X.noResult=!1;X.enableAlertBanner=!1;X.dismissedAlertBanner=!1;X.hideCreateChannelButton=!1;X.boundDismissAlertBanner=function(){X.dismissAlertBanner()};
X.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return X};
_.S(B_,_.O);_.H=B_.prototype;_.H.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.H.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.H.updateChannelSwitcherAction=function(X){var t;X=(t=_.Y(X,AJq))==null?void 0:t.page;_.Y(X,TEh)!==void 0&&(this.data=_.Y(X,TEh))};
_.H.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]]"}}}}}};
_.H.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.H.searchQueryChanged=function(X,t){if(this.data&&this.data.contents&&this.data.contents.length){X=[];var G=[];this.hideCreateChannelButton=this.noResult=!1;for(var y=document.querySelectorAll("ytd-account-item-renderer"),w=_.J(y),z=w.next();!z.done;z=w.next())z=z.value,G.push(z),z.style.display="block";this.resetRightBorder(G);if(t){this.hideCreateChannelButton=!0;for(G=1;G<this.data.contents.length;G++)if(z=this.data.contents[G],_.Y(z,ZNY)){var B=void 0,V=void 0;w=(B=_.Y(z,ZNY))==null?void 0:(V=
B.accountName)==null?void 0:V.simpleText;V=B=void 0;z=(B=_.Y(z,ZNY))==null?void 0:(V=B.channelHandle)==null?void 0:V.simpleText;(B=y[G-1])&&w&&_.V0(w,t)?X.push(B):_.A("enable_handle_search_on_channel_switcher")&&B&&z&&_.V0(z.toString(),t.toString())?X.push(B):B.style.display="none"}X.length===0&&(this.noResult=!0);this.resetRightBorder(X)}}};
_.H.resetRightBorder=function(X){for(var t=0;t<X.length;t++)X[t].style.borderRight=!this.hideCreateChannelButton&&(t+2)%3===0||this.hideCreateChannelButton&&(t+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.H.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.H.setShowSearchBox=function(X){if(X&&X.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var t=0;t<X.contents.length;t++)_.Y(X.contents[t],_.Fc)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.H.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.ke.Object.defineProperties(B_.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null?0:X.contents)}}});
B_.prototype.onContinuationItemsUpdated=B_.prototype.onContinuationItemsUpdated;B_.prototype.searchQueryChanged=B_.prototype.searchQueryChanged;B_.prototype.onDataChanged=B_.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],B_.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],B_.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],B_.prototype,"data",void 0);_.E([_.rt("ytd-channel-switcher-header-renderer"),_.U("design:type",Object)],B_.prototype,"channelSwitcherHeaderRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],B_.prototype,"noResult",void 0);
_.E([_.K(),_.U("design:type",Object)],B_.prototype,"enableAlertBanner",void 0);_.E([_.K(),_.U("design:type",Object)],B_.prototype,"dismissedAlertBanner",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],B_.prototype,"hideCreateChannelButton",void 0);_.E([_.C("data.contents"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],B_.prototype,"isLoading",null);_.E([_.K(),_.U("design:type",Object)],B_.prototype,"boundDismissAlertBanner",void 0);
_.E([_.K({computed:"computeButtonOverride()"}),_.U("design:type",Object)],B_.prototype,"buttonOverride",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],B_.prototype,"onDataChanged",null);_.E([_.WW("search-query-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,String]),_.U("design:returntype")],B_.prototype,"searchQueryChanged",null);
_.E([_.WW("yt-next-continuation-data-updated"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],B_.prototype,"onContinuationItemsUpdated",null);_.E([_.p({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],B_);
_.N(B_,"ytd-channel-switcher-page-renderer",function(){if(xHe!==void 0)return xHe;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return xHe=X},{mode:1});var Mn4;var XuR;var ni=function(){var X=_.O.apply(this,arguments)||this;X.images=[];X.selectedImageIndex=0;return X};
_.S(ni,_.O);_.H=ni.prototype;
_.H.ready=function(){_.vj(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.vj(this.JSC$15498_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.vj(this.JSC$15498_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.vj(this.JSC$15498_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.H.onThumbnailClick=function(X){if(X=X.event_.detail)this.selectedImageIndex=this.images.indexOf(X)};
_.H.updateImageThumbnails=function(X){X=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:X.event_.detail});this.images.splice(this.selectedImageIndex,1,X);this.images=[].concat(_.RY(this.images))};
_.H.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Yt(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.H.saveImageRepositions=function(){this.selectedImageIndex=0;_.Yt(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.ke.Object.defineProperties(ni.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var X=this;return(this.images||[]).map(function(t,G){return{image:t,selected:G===X.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.E([_.rt("ytd-backstage-image-preview-renderer"),_.U("design:type",Object)],ni.prototype,"JSC$15498_imagePreviewContainer",void 0);_.E([_.rt(".thumbnail-images-container"),_.U("design:type",HTMLElement)],ni.prototype,"thumbnailImagesContainer",void 0);_.E([_.K(),_.U("design:type",Array)],ni.prototype,"images",void 0);
_.E([_.K(),_.U("design:type",Object)],ni.prototype,"repositionInstructions",void 0);_.E([_.K(),_.U("design:type",Object)],ni.prototype,"selectedImageIndex",void 0);_.E([_.C("images","selectedImageIndex"),_.U("design:type",Array),_.U("design:paramtypes",[])],ni.prototype,"thumbnailRendererDatas",null);_.E([_.C("images","selectedImageIndex"),_.U("design:type",Object),_.U("design:paramtypes",[])],ni.prototype,"selectedImageData",null);
_.E([_.p({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],ni);
_.N(ni,"ytd-backstage-multi-image-reposition-renderer",function(){if(XuR!==void 0)return XuR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return XuR=X},{mode:1});var Vy=function(X,t){_.P6.call(this);this.uploadUrl=X;this.channelId=t;this.imagesUploadData=[]};
_.S(Vy,_.P6);Vy.prototype.getAllUploadStatuses=function(){var X=this,t,G,y;return _.n(function(w){if(w.nextAddress==1)return w.yield($2q(X),2);t=w.yieldResult;G=t.get("succeed");y=t.get("failed");return w.return(G.concat(y))})};
var Gnq=function(X){var t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield($2q(X),2);t=y.yieldResult;G=t.get("failed");G.length>0&&t6q(X,G);return y.return(X.getAllUploadStatuses())})},$2q=function(X){var t,G,y,w,z,B,V;
return _.n(function(b){if(b.nextAddress==1)return t=new Map,b.yield(Promise.allSettled(X.imagesUploadData.map(function(e){return e.uploadPromise})),2);
G=b.yieldResult;y=[];w=_.J(G);for(z=w.next();!z.done;z=w.next())B=z.value,B.status==="fulfilled"&&y.push(B.value);V=X.imagesUploadData.map(function(e){return e.image}).filter(function(e){return y.every(function(g){return g.id!==e.id})});
t.set("succeed",y);t.set("failed",V);return b.return(t)})},t6q=function(X,t){t=_.J(t);
for(var G=t.next();!G.done;G=t.next()){var y=X;G=G.value;yno(y,G.id)>=0&&y.cancel(G.id);var w=new wuJ(G),z=_.dFR(y.uploadUrl,{"X-YouTube-ChannelId":y.channelId},G.imageBlob);w.transfer=z;w.uploadPromise=z6q(z,G);y.imagesUploadData.push(w);z.run()}};
Vy.prototype.cancel=function(X){var t=yno(this,X);t!==-1&&((t=this.imagesUploadData[t].transfer)&&t.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(G){return G.image.id!==X}))};
var yno=function(X,t){return X.imagesUploadData.findIndex(function(G){return G.image.id===t})},z6q=function(X,t){return new Promise(function(G,y){X.listen("l",function(){var w=X.getResponseText();
w?(w=JSON.parse(w).encryptedBlobId,t.encryptedBlobId=w,G(t)):y("upload failed")});
X.listen("n",function(){y("upload failed")})})},wuJ=function(X){this.image=X};var VpV=function(X,t,G,y,w){this.id=X;this.imageBlob=t;this.localImageSrc=G;this.naturalWidth=y;this.naturalHeight=w;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var HOo=[".jpeg",".jpg",".png"],bN=function(){var X=_.O.apply(this,arguments)||this;X.showImagesPreview=!1;X.pollOptions=[];X.errorMessage="";X.optionPlaceholderText="";X.optionDefaultText="";X.JSC$15509_imageId=0;X.maxFileSizeMb=0;X.maxAspectRatio=0;X.invalidFileSizeError="";X.invalidAspectRatioError="";X.invalidFileTypeError="";X.imageSelector=new Ot(null,"single_file",HOo);return X};
_.S(bN,_.O);_.H=bN.prototype;_.H.ready=function(){_.vj(this.imageSelector,"j",this.onImageSelect,!1,this);_.vj(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.vj(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.H.dataChanged=function(){var X,t,G=_.Y((X=this.data)==null?void 0:(t=X.cellTemplate)==null?void 0:t.onEmptyCellTap,YCq);if(G&&G.uploadUrl&&G.channelId){var y;this.maxFileSizeMb=((y=G.imageValidationInfo)==null?void 0:y.maxFileSizeMb)||0;var w;this.maxAspectRatio=((w=G.imageValidationInfo)==null?void 0:w.allowedMaxAspectRatio)||0;var z;this.invalidFileSizeError=this.getSimpleString((z=this.data)==null?void 0:z.invalidFileSizeError);var B;this.invalidAspectRatioError=this.getSimpleString((B=this.data)==
null?void 0:B.invalidAspectRatioError);var V;this.invalidFileTypeError=this.getSimpleString((V=this.data)==null?void 0:V.invalidFileTypeError);this.uploadManager=new Vy(G.uploadUrl,G.channelId)}};
_.H.onEditorInfoChange=function(){this.optionPlaceholderText=_.bu(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.bu(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.H.observeAddImageError=function(){this.errorMessage!==""&&_.Yt(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.H.onPollOptionsChange=function(){for(var X=!1,t=[],G=0;G<this.pollOptions.length;G++){var y=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(G+1);this.pollOptions[G].placeholderText!==y?(X=!0,t.push(Object.assign({},this.pollOptions[G],{placeholderText:y}))):t.push(this.pollOptions[G])}X&&(this.pollOptions=t);this.isValid()?_.Yt(this.hostElement,"yt-commentbox-post-enable"):_.Yt(this.hostElement,"yt-commentbox-post-disable")};
_.H.createPollOptions=function(X){var t=[],G;X=(G=X==null?void 0:X.minPollOptions)!=null?G:0;for(G=0;G<X;G++)t.push(this.createPollOption());return t};
_.H.onImageSelect=function(X){var t=this,G,y,w,z,B,V;return _.n(function(b){if(b.nextAddress==1){if(t.selectedImageIndex===void 0)return b.jumpTo(0);G=X.files[0];t.errorMessage="";y=t.validateImage(G);if(y!=="")return t.errorMessage=y,b.return();w=new bg(t.maxAspectRatio,!1,!0);return b.yield(w.transform(G),3)}if(b.nextAddress!=4)return z=b.yieldResult,z.transformedData?z.invalidAspectRatio?(t.errorMessage=t.invalidAspectRatioError,b.return()):b.yield(bRh(t.JSC$15509_imageId,X.files[0],z.transformedData),
4):(t.errorMessage=t.invalidFileTypeError,b.return());B=b.yieldResult;t.JSC$15509_imageId++;t6q(t.uploadManager,[B]);V=Object.assign({},t.pollOptions[t.selectedImageIndex],{image:B});t.pollOptions.splice(t.selectedImageIndex,1,V);t.refreshPollOptions();_.Yt(t.hostElement,"yt-backstage-poll-image-select");_.W$(b)})};
_.H.validateImage=function(X){return X.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.H.refreshPollOptions=function(){this.pollOptions=[].concat(_.RY(this.pollOptions))};
_.H.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.RY(this.pollOptions),[this.createPollOption()]))};
_.H.onRemovePollOption=function(X){var t=this.pollOptions[X.model.index];t&&t.image&&this.uploadManager.cancel(t.image.id);this.pollOptions.splice(X.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Yt(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.H.onTextInput=function(){this.refreshPollOptions()};
_.H.onImageButtonClick=function(X){this.selectedImageIndex=X.model.index;this.imageSelector.click()};
_.H.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.H.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.H.saveImageRepositions=function(X){X=X.event_.detail;for(var t=0,G=[],y=_.J(this.pollOptions),w=y.next();!w.done;w=y.next())w=w.value,w.image!==void 0?(w=Object.assign({},w,{image:X[t]}),G.push(w),t++):G.push(w);this.showImagesPreview=!1;this.pollOptions=[].concat(_.RY(G))};
_.H.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 X=0,t=_.J(this.pollOptions),G=t.next();!G.done;G=t.next())if(G=G.value,G.optionText.trim()!==""||G.image!==void 0){if(!G.image||this.hasCustomOptionText&&G.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;X++}return X>=Number(this.editorInfo.minPollOptions)};
_.H.getAllUploadStatuses=function(){var X=this,t,G,y,w;return _.n(function(z){if(z.nextAddress==1)return z.yield(X.uploadManager.getAllUploadStatuses(),2);t=z.yieldResult;G=_.J(t);for(y=G.next();!y.done;y=G.next())if(w=y.value,w.encryptedBlobId===void 0)return z.return(Gnq(X.uploadManager));return z.return(t)})};
_.H.getPostCreateOptions=function(){for(var X=[],t=_.J(this.pollOptions),G=t.next();!G.done;G=t.next())G=G.value,G.image!==void 0&&X.push({text:this.hasCustomOptionText?G.optionText:G.placeholderText,image:G.image});return X};
_.H.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.H.createButtonRenderer=function(X,t){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:X,accessibilityData:{accessibilityData:{label:this.getSimpleString(X)}},isDisabled:t}};
_.H.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.H.computeThumbnailRendererData=function(X){return X?{image:X,selected:!1}:void 0};
_.H.getSimpleString=function(X){return _.bu(X)};
_.H.updateOptionTextFromBinding=function(X){if(X.target){var t=Array.from(_.Sm(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(X.target);if(t>=0){var G;this.pollOptions[t].optionText=(G=X.detail.value)!=null?G:""}}};
_.ke.Object.defineProperties(bN.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var X,t;return this.pollOptions.length<((t=(X=this.editorInfo)==null?void 0:X.maxPollOptions)!=null?t:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(X){return X.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(X){return X.image}).map(function(X){return X.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(X){return X.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var X,t=(X=this.data)==null?void 0:X.addOptionButtonText;return t?this.createButtonRenderer(t,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var X,t=(X=this.data)==null?void 0:X.repositionImagesButtonLabel;return t?this.createButtonRenderer(t,!this.hasImages):void 0}}});
bN.prototype.onPollOptionsChange=bN.prototype.onPollOptionsChange;bN.prototype.observeAddImageError=bN.prototype.observeAddImageError;bN.prototype.onEditorInfoChange=bN.prototype.onEditorInfoChange;bN.prototype.dataChanged=bN.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.rt("ytd-backstage-multi-image-reposition-renderer"),_.U("design:type",Object)],bN.prototype,"imageRepositionContainer",void 0);
_.E([_.K(),_.U("design:type",Object)],bN.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],bN.prototype,"editorInfo",void 0);_.E([_.K(),_.U("design:type",Vy)],bN.prototype,"uploadManager",void 0);_.E([_.K(),_.U("design:type",Object)],bN.prototype,"showImagesPreview",void 0);_.E([_.K(),_.U("design:type",Array)],bN.prototype,"pollOptions",void 0);_.E([_.K(),_.U("design:type",Object)],bN.prototype,"errorMessage",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bN.prototype,"dataChanged",null);_.E([_.U0("editorInfo"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bN.prototype,"onEditorInfoChange",null);_.E([_.cW("errorMessage"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bN.prototype,"observeAddImageError",null);
_.E([_.U0("pollOptions"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bN.prototype,"onPollOptionsChange",null);_.E([_.C("pollOptions","editorInfo"),_.U("design:type",Object),_.U("design:paramtypes",[])],bN.prototype,"isAllowedToAddOption",null);_.E([_.C("pollOptions"),_.U("design:type",Object),_.U("design:paramtypes",[])],bN.prototype,"hasImages",null);
_.E([_.C("pollOptions"),_.U("design:type",Object),_.U("design:paramtypes",[])],bN.prototype,"imagesToReposition",null);_.E([_.C("pollOptions"),_.U("design:type",Object),_.U("design:paramtypes",[])],bN.prototype,"hasCustomOptionText",null);_.E([_.C("data","isAllowedToAddOption"),_.U("design:type",Object),_.U("design:paramtypes",[])],bN.prototype,"addOptionButton",null);_.E([_.C("data","hasImages"),_.U("design:type",Object),_.U("design:paramtypes",[])],bN.prototype,"repositionImagesButton",null);
_.E([_.p({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],bN);
_.N(bN,"ytd-backstage-image-poll-editor-renderer",function(){if(Mn4!==void 0)return Mn4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Mn4=X},{mode:2});var oiJ={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 Jnt;var kq=function(){var X=_.O.apply(this,arguments)||this;X.a11yConfig=oiJ;X.imageDisplayOffsetTop=0;X.imageDisplayOffsetLeft=0;X.pickerDisplayOffsetTop=0;X.pickerDisplayOffsetLeft=0;X.showPreviewContainer=!0;X.startPicker=!1;X.repositionOptional=!1;X.editOnlyMode=!1;X.savedImageDisplayOffsetTop=0;X.savedImageDisplayOffsetLeft=0;return X};
_.S(kq,_.O);_.H=kq.prototype;_.H.created=function(){_.wB.requestAvailability()};
_.H.ready=function(){};
_.H.onArrowKeysDown=function(X){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){X.detail.keyboardEvent.preventDefault();var t=0,G=0,y="";switch(X.detail.keyboardEvent.key){case "ArrowUp":kts(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?y=this.a11yConfig.reachBottomOfImage:t=this.imageHeight*.05*-1;break;case "ArrowDown":kts(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?y=this.a11yConfig.reachTopOfImage:
t=this.imageHeight*.05;break;case "ArrowLeft":kts(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?y=this.a11yConfig.reachRightOfImage:G=this.imageWidth*.05*-1;break;case "ArrowRight":kts(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?y=this.a11yConfig.reachLeftOfImage:G=this.imageWidth*.05}y&&_.Qf(y)&&_.Yt(this.hostElement,"iron-announce",{text:_.Qf(y)});if(G||t)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+t)),X=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),X=_.Qf(this.a11yConfig.imageVerticalPosition,{x_percent:""+X,y_percent:""+(100-X)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+G)),X=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),X=_.Qf(this.a11yConfig.imageHorizontalPosition,{x_percent:""+X,y_percent:""+(100-X)})),X&&_.Yt(this.hostElement,"iron-announce",{text:X})}};
_.H.getPreviewPosition=function(X,t,G,y){return Math.round(100*(X+t*.5-G)/y)};
_.H.calculateDisplayPosition=function(){var X=this.imageData.naturalWidth,t=this.imageData.naturalHeight;this.displayScale=Math.max(200/X,200/t);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var G=X*this.displayScale*this.imageData.previewCoordinates.left,y=t*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=t>X?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-G;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=X>t?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-y;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=X*this.displayScale;this.imageHeight=t*this.displayScale};
_.H.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.H.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.H.getSignedPosition=function(X,t,G){return t==="X"&&_.Md("HTML_DIR")==="rtl"?G==="-"?X+"px":X*-1+"px":G==="-"?X*-1+"px":X+"px"};
_.H.pickerMove=function(X){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var t=this.pickerOffsetX-X.clientX,G=this.pickerOffsetY-X.clientY;this.pickerOffsetX=X.clientX;this.pickerOffsetY=X.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
G)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-t))}};
_.H.pickerMoveStart=function(X){this.startPicker=!0;this.pickerOffsetX=X.clientX;this.pickerOffsetY=X.clientY};
_.H.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var X=this.generateCropPreview();X&&_.Yt(this.hostElement,"ytd-backstage-image-preview-coordinates-update",X)};
_.H.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Yt(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.H.deleteImage=function(){_.Yt(this.hostElement,"ytd-backstage-image-preview-delete")};
_.H.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.H.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var X=this.generateCropPreview();X&&_.Yt(this.hostElement,"ytd-backstage-image-preview-coordinates-save",X)};
_.H.getPreviewOffset=function(X,t,G){return t&&X?(G==="X"&&_.Md("HTML_DIR")==="rtl"?300/t*X:300/t*X*-1)+"px":"0px"};
_.H.getSimpleText=function(X){return X?_.bu(X):""};
_.H.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}};
_.ke.Object.defineProperties(kq.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var X=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Qf(this.a11yConfig.imageVerticalPosition,{x_percent:""+X,y_percent:""+(100-X)})+"\n"+_.Qf(this.a11yConfig.verticalRepositionInstruction)}X=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Qf(this.a11yConfig.imageHorizontalPosition,{x_percent:""+X,y_percent:""+(100-X)})+"\n"+_.Qf(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 X,t,G=(X=this.instruction)==null?void 0:(t=X.previewInstruction)==null?void 0:t.editButtonLabel;return G?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y,w=this.editOnlyMode?(X=this.instruction)==null?void 0:(t=X.editInstruction)==null?void 0:t.saveImagesButtonLabel:(G=this.instruction)==null?void 0:(y=G.editInstruction)==null?void 0:y.saveButtonLabel;return w?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(X=this.instruction)==null?void 0:(t=X.previewInstruction)==null?void 0:t.deleteButtonLabel;return G?{size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(X=this.instruction)==null?void 0:(t=X.editInstruction)==null?void 0:t.cancelButtonLabel;X=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return G?{style:X,size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}: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"}}});
kq.prototype.onEditOnlyModeUpdate=kq.prototype.onEditOnlyModeUpdate;kq.prototype.onImageChange=kq.prototype.onImageChange;_.E([_.K(),_.U("design:type",VpV)],kq.prototype,"imageData",void 0);_.E([_.K(),_.U("design:type",Object)],kq.prototype,"instruction",void 0);_.E([_.K(),_.U("design:type",Object)],kq.prototype,"a11yConfig",void 0);_.E([_.K(),_.U("design:type",Number)],kq.prototype,"imageWidth",void 0);_.E([_.K(),_.U("design:type",Number)],kq.prototype,"imageHeight",void 0);
_.E([_.K(),_.U("design:type",Number)],kq.prototype,"displayScale",void 0);_.E([_.K(),_.U("design:type",Object)],kq.prototype,"imageDisplayOffsetTop",void 0);_.E([_.K(),_.U("design:type",Object)],kq.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.K(),_.U("design:type",Object)],kq.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.K(),_.U("design:type",Object)],kq.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.K(),_.U("design:type",Object)],kq.prototype,"showPreviewContainer",void 0);
_.E([_.K(),_.U("design:type",Object)],kq.prototype,"startPicker",void 0);_.E([_.K(),_.U("design:type",Number)],kq.prototype,"pickerOffsetX",void 0);_.E([_.K(),_.U("design:type",Number)],kq.prototype,"pickerOffsetY",void 0);_.E([_.K(),_.U("design:type",Object)],kq.prototype,"repositionOptional",void 0);_.E([_.K(),_.U("design:type",Object)],kq.prototype,"editOnlyMode",void 0);_.E([_.rt("#picker-container"),_.U("design:type",HTMLElement)],kq.prototype,"JSC$15522_pickerContainer",void 0);
_.E([_.rt("#picker"),_.U("design:type",HTMLElement)],kq.prototype,"picker",void 0);_.E([_.rt("#preview-clipper"),_.U("design:type",HTMLElement)],kq.prototype,"previewClipper",void 0);_.E([_.rt("#image-in-picker-background"),_.U("design:type",HTMLImageElement)],kq.prototype,"JSC$15522_imageInBackground",void 0);_.E([_.rt("#image-in-picker"),_.U("design:type",HTMLImageElement)],kq.prototype,"JSC$15522_imageInPicker",void 0);
_.E([_.rt("#image-in-preview-clipper"),_.U("design:type",HTMLImageElement)],kq.prototype,"JSC$15522_imageInPreviewClipper",void 0);_.E([_.C("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.U("design:type",String),_.U("design:paramtypes",[])],kq.prototype,"altLabelForImage",null);_.E([_.C("imageHeight","imageWidth"),_.U("design:type",Number),_.U("design:paramtypes",[])],kq.prototype,"pickerSize",null);
_.E([_.C("imageHeight","imageWidth"),_.U("design:type",Object),_.U("design:paramtypes",[])],kq.prototype,"imageOrientationStyle",null);_.E([_.C("instruction"),_.U("design:type",Object),_.U("design:paramtypes",[])],kq.prototype,"editButton",null);_.E([_.C("instruction","editOnlyMode"),_.U("design:type",Object),_.U("design:paramtypes",[])],kq.prototype,"saveButton",null);_.E([_.C("instruction"),_.U("design:type",Object),_.U("design:paramtypes",[])],kq.prototype,"deleteButton",null);
_.E([_.C("instruction","editOnlyMode"),_.U("design:type",Object),_.U("design:paramtypes",[])],kq.prototype,"cancelButton",null);_.E([_.C("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.U("design:type",Number),_.U("design:paramtypes",[])],kq.prototype,"cropOffsetTop",null);_.E([_.C("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.U("design:type",Number),_.U("design:paramtypes",[])],kq.prototype,"cropOffsetLeft",null);
_.E([_.C("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.U("design:type",String),_.U("design:paramtypes",[])],kq.prototype,"pickerBackgroundStyle",null);_.E([_.C("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.U("design:type",String),_.U("design:paramtypes",[])],kq.prototype,"pickerDisplayStyle",null);_.E([_.C("cropOffsetLeft","cropOffsetTop"),_.U("design:type",String),_.U("design:paramtypes",[])],kq.prototype,"imageInPickerStyle",null);
_.E([_.C("cropOffsetLeft","cropOffsetTop","pickerSize"),_.U("design:type",String),_.U("design:paramtypes",[])],kq.prototype,"previewClipperStyle",null);_.E([_.U0("imageData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kq.prototype,"onImageChange",null);_.E([_.U0("editOnlyMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kq.prototype,"onEditOnlyModeUpdate",null);
_.E([_.C("showPreviewContainer"),_.U("design:type",String),_.U("design:paramtypes",[])],kq.prototype,"pickerModeStyle",null);_.E([_.p({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],kq);
_.N(kq,"ytd-backstage-image-preview-renderer",function(){if(Jnt!==void 0)return Jnt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Jnt=X},{mode:1});var BCP;var ni4={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 V6o;var bOq;var dR=function(){var X=_.O.apply(this,arguments)||this;X.a11yConfig=ni4;X.imageDisplayOffsetTop=0;X.imageDisplayOffsetLeft=0;X.pickerDisplayOffsetTop=0;X.pickerDisplayOffsetLeft=0;X.cropCoordinatesSaved=!1;X.previewSize=0;X.startPicker=!1;X.repositionOptional=!1;return X};
_.S(dR,_.O);_.H=dR.prototype;_.H.created=function(){_.wB.requestAvailability()};
_.H.ready=function(){};
_.H.onArrowKeysDown=function(X){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){X.detail.keyboardEvent.preventDefault();var t=0,G=0,y="";switch(X.detail.keyboardEvent.key){case "ArrowUp":d5h(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?y=this.a11yConfig.reachBottomOfImage:t=this.imageHeight*.05*-1;break;case "ArrowDown":d5h(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?y=this.a11yConfig.reachTopOfImage:
t=this.imageHeight*.05;break;case "ArrowLeft":d5h(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?y=this.a11yConfig.reachRightOfImage:G=this.imageWidth*.05*-1;break;case "ArrowRight":d5h(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?y=this.a11yConfig.reachLeftOfImage:G=this.imageWidth*.05}y&&_.Qf(y)&&_.Yt(this.hostElement,"iron-announce",{text:_.Qf(y)});if(G||t)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+t)),X=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),X=_.Qf(this.a11yConfig.imageVerticalPosition,{x_percent:""+X,y_percent:""+(100-X)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+G)),X=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),X=_.Qf(this.a11yConfig.imageHorizontalPosition,{x_percent:""+X,y_percent:""+(100-X)})),X&&_.Yt(this.hostElement,"iron-announce",{text:X})}};
_.H.getPreviewPosition=function(X,t,G,y){return Math.round(100*(X+t*.5-G)/y)};
_.H.displayImage=function(){var X=this.JSC$15533_pickerContainer.getBoundingClientRect().width,t=this.JSC$15533_pickerContainer.getBoundingClientRect().height,G=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),y=this.JSC$15533_imageInBackground.naturalWidth,w=this.JSC$15533_imageInBackground.naturalHeight;this.displayScale=Math.max(G/y,G/w);this.imageWidth=y*this.displayScale;this.imageHeight=w*this.displayScale;this.pickerDisplayOffsetLeft=(X-G)/2;this.pickerDisplayOffsetTop=
(t-G)/2;this.imageDisplayOffsetLeft=w>y?this.pickerDisplayOffsetLeft:(X-this.imageWidth)/2;this.imageDisplayOffsetTop=y>w?this.pickerDisplayOffsetTop:(t-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.H.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15533_imageInBackground.src=this.imageData.toString(),this.JSC$15533_imageInPicker.src=this.imageData.toString(),this.JSC$15533_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.H.getSignedPosition=function(X,t,G){return t==="X"&&_.Md("HTML_DIR")==="rtl"?G==="-"?X+"px":X*-1+"px":G==="-"?X*-1+"px":X+"px"};
_.H.pickerMove=function(X){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var t=this.pickerOffsetX-X.clientX,G=this.pickerOffsetY-X.clientY;this.pickerOffsetX=X.clientX;this.pickerOffsetY=X.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
G)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-t))}};
_.H.pickerMoveStart=function(X){this.startPicker=!0;this.pickerOffsetX=X.clientX;this.pickerOffsetY=X.clientY};
_.H.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.H.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Yt(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.H.getPreviewOffset=function(X,t,G,y){return t&&X&&G?(y==="X"&&_.Md("HTML_DIR")==="rtl"?G/t*X:G/t*X*-1)+"px":"0px"};
_.H.getSimpleText=function(X){return X?_.bu(X):""};
_.H.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var X=this.cropOffsetTop/this.imageHeight,t=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,G=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,y=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Sm(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Yt(this.hostElement,"yt-img-crop-coordinates-update",{top:X,right:t,bottom:G,left:y})}};
_.ke.Object.defineProperties(dR.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var X=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Qf(this.a11yConfig.imageVerticalPosition,{x_percent:""+X,y_percent:""+(100-X)})+"\n"+_.Qf(this.a11yConfig.verticalRepositionInstruction)}X=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Qf(this.a11yConfig.imageHorizontalPosition,{x_percent:""+X,y_percent:""+(100-X)})+"\n"+_.Qf(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 X,t=(X=this.learnMore.runs[0])==null?void 0:X.navigationEndpoint,G;return((G=_.Y(t,_.zj))==null?void 0:G.url)||void 0}}}});
dR.prototype.onImageDataChange=dR.prototype.onImageDataChange;_.E([_.K(),_.U("design:type",Object)],dR.prototype,"imageData",void 0);_.E([_.K(),_.U("design:type",Object)],dR.prototype,"instruction",void 0);_.E([_.K(),_.U("design:type",Object)],dR.prototype,"a11yConfig",void 0);_.E([_.K(),_.U("design:type",Number)],dR.prototype,"imageWidth",void 0);_.E([_.K(),_.U("design:type",Number)],dR.prototype,"imageHeight",void 0);_.E([_.K(),_.U("design:type",Number)],dR.prototype,"displayScale",void 0);
_.E([_.K(),_.U("design:type",Object)],dR.prototype,"imageDisplayOffsetTop",void 0);_.E([_.K(),_.U("design:type",Object)],dR.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.K(),_.U("design:type",Object)],dR.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.K(),_.U("design:type",Object)],dR.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.K(),_.U("design:type",Object)],dR.prototype,"cropCoordinatesSaved",void 0);_.E([_.K(),_.U("design:type",Object)],dR.prototype,"previewSize",void 0);
_.E([_.K(),_.U("design:type",Object)],dR.prototype,"startPicker",void 0);_.E([_.K(),_.U("design:type",Number)],dR.prototype,"pickerOffsetX",void 0);_.E([_.K(),_.U("design:type",Number)],dR.prototype,"pickerOffsetY",void 0);_.E([_.K(),_.U("design:type",Object)],dR.prototype,"repositionOptional",void 0);_.E([_.rt("#picker-container"),_.U("design:type",HTMLElement)],dR.prototype,"JSC$15533_pickerContainer",void 0);_.E([_.rt("#picker"),_.U("design:type",HTMLElement)],dR.prototype,"picker",void 0);
_.E([_.rt("#image-in-picker-background"),_.U("design:type",HTMLImageElement)],dR.prototype,"JSC$15533_imageInBackground",void 0);_.E([_.rt("#image-in-picker"),_.U("design:type",HTMLImageElement)],dR.prototype,"JSC$15533_imageInPicker",void 0);_.E([_.rt("#image-in-preview-clipper"),_.U("design:type",HTMLImageElement)],dR.prototype,"JSC$15533_imageInPreviewClipper",void 0);_.E([_.rt("#full-image-as-preview"),_.U("design:type",HTMLImageElement)],dR.prototype,"imageAsPreview",void 0);
_.E([_.C("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.U("design:type",String),_.U("design:paramtypes",[])],dR.prototype,"altLabelForImage",null);_.E([_.C("imageHeight","imageWidth"),_.U("design:type",Number),_.U("design:paramtypes",[])],dR.prototype,"pickerSize",null);_.E([_.C("imageHeight","imageWidth"),_.U("design:type",Object),_.U("design:paramtypes",[])],dR.prototype,"imageOrientationStyle",null);
_.E([_.C("instruction.previewInstruction.editButtonLabel"),_.U("design:type",Object),_.U("design:paramtypes",[])],dR.prototype,"editButton",null);_.E([_.C("instruction.editInstruction.saveButtonLabel"),_.U("design:type",Object),_.U("design:paramtypes",[])],dR.prototype,"saveButton",null);_.E([_.C("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.U("design:type",Number),_.U("design:paramtypes",[])],dR.prototype,"cropOffsetTop",null);
_.E([_.C("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.U("design:type",Number),_.U("design:paramtypes",[])],dR.prototype,"cropOffsetLeft",null);_.E([_.C("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.U("design:type",String),_.U("design:paramtypes",[])],dR.prototype,"pickerBackgroundStyle",null);_.E([_.C("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.U("design:type",String),_.U("design:paramtypes",[])],dR.prototype,"pickerDisplayStyle",null);
_.E([_.C("cropOffsetLeft","cropOffsetTop"),_.U("design:type",String),_.U("design:paramtypes",[])],dR.prototype,"imageInPickerStyle",null);_.E([_.C("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.U("design:type",String),_.U("design:paramtypes",[])],dR.prototype,"previewClipperStyle",null);_.E([_.cW("imageData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dR.prototype,"onImageDataChange",null);
_.E([_.C("cropCoordinatesSaved"),_.U("design:type",String),_.U("design:paramtypes",[])],dR.prototype,"pickerModeStyle",null);_.E([_.C("instruction.editInstruction.learnMore"),_.U("design:type",Object),_.U("design:paramtypes",[])],dR.prototype,"learnMore",null);_.E([_.C("learnMore"),_.U("design:type",Object),_.U("design:paramtypes",[])],dR.prototype,"learnMoreUrl",null);_.E([_.$F({is:"yt-img-crop-picker",disableElementRegistration:!0})],dR);
_.N(dR,"yt-img-crop-picker",function(){if(bOq===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;V6o===void 0&&(V6o=document.createElement("template"));var y=V6o;G.call(t,y.content.cloneNode(!0),X.content.firstChild);bOq=X}X=bOq;return X},{mode:2});var eF=function(){var X=_.O.apply(this,arguments)||this;X.errorMessage="";X.hasPreview=!1;X.isBackstagePost=!1;X.dismissButtonOverrides={size:"XS"};return X};
_.S(eF,_.O);_.H=eF.prototype;_.H.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"}}}};
_.H.detached=function(){this.removeOverlay()};
_.H.setPreview=function(X){_.Sm(this.hostElement).querySelector("#preview-picker").imageData=X;this.hasPreview=!0;_.Yt(this.hostElement,"yt-backstage-image-select-preview")};
_.H.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var X=_.Sm(this.hostElement).querySelector("#dropzone");X.classList.remove("dragover");X.classList.remove("error");_.Yt(this.hostElement,"yt-backstage-image-select-cancel")};
_.H.setupOverlay=function(){var X=this.imageUploadEndpoint;this.removeOverlay();if(X&&X.imageValidationInfo){var t=_.Sm(this.hostElement).querySelector("#dropzone"),G=_.Sm(this.hostElement).querySelector("#select");this.overlay=new dz(X.uploadUrl,X.channelId,X.imageValidationInfo.maxFileSizeMb,X.imageValidationInfo.allowedMaxAspectRatio,t,G,!0);_.vj(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.vj(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.vj(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.vj(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.vj(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.H.removeOverlay=function(){this.overlay&&(_.No(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.No(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.No(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.No(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.No(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.H.onDragOver=function(X){var t=_.Sm(this.hostElement).querySelector("#dropzone");_.Zk(t,"dragover",X.value)};
_.H.onPreview=function(X){this.setPreview(X.value)};
_.H.onImageError=function(X){if(X.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var t;X=(t=this.data)==null?void 0:t.fileSizeError}else if(X.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var G;X=(G=this.data)==null?void 0:G.invalidError}else if(X.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var y;X=(y=this.data)==null?void 0:y.invalidAspectRatioError}else return;this.errorMessage=_.bu(X);_.Sm(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.H.onImageAlert=function(X){this.onImageError(X)};
_.H.uploadPromise=function(){var X=this,t=this.overlay&&this.overlay.uploadPromise();if(t)return t.catch(function(){throw Error(X.data?_.bu(X.data.uploadFailureError):"");})};
_.ke.Object.defineProperties(eF.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var X,t;if((X=this.data)==null?0:(t=X.icon)==null?0:t.iconType)return _.Q2(this.data.icon.iconType)}}});
eF.prototype.setupOverlay=eF.prototype.setupOverlay;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],eF.prototype,"rendererStamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eF.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],eF.prototype,"imageUploadEndpoint",void 0);_.E([_.K(),_.U("design:type",Object)],eF.prototype,"errorMessage",void 0);
_.E([_.K(),_.U("design:type",dz)],eF.prototype,"overlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eF.prototype,"hasPreview",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eF.prototype,"isBackstagePost",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],eF.prototype,"selectionCancel",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],eF.prototype,"previewCancel",null);
_.E([_.C("data.icon.iconType"),_.U("design:type",Object),_.U("design:paramtypes",[])],eF.prototype,"icon",null);_.E([_.K(),_.U("design:type",Object)],eF.prototype,"dismissButtonOverrides",void 0);_.E([_.cW("imageUploadEndpoint"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eF.prototype,"setupOverlay",null);_.E([_.p({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],eF);
_.N(eF,"ytd-backstage-image-select-renderer",function(){if(BCP!==void 0)return BCP;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return BCP=X},{mode:1});var kno;var d24;var jF=function(){var X=_.O.apply(this,arguments)||this;X.selected=!1;return X};
_.S(jF,_.O);_.H=jF.prototype;_.H.computeSelected=function(X){return X==null?void 0:X.selected};
_.H.computeTransform=function(X,t,G){var y,w,z=(w=(y=this.imageContainer)==null?void 0:y.getBoundingClientRect())!=null?w:{width:0,height:0};y=Math.max(z.width/t,z.height/G);G=G*y*X.top;return"translateX("+this.getSignedPosition(t*y*X.left,"X","-")+") translateY("+this.getSignedPosition(G,"Y","-")+")"};
_.H.getSignedPosition=function(X,t,G){return t==="X"&&_.Md("HTML_DIR")==="rtl"?G==="-"?X+"px":X*-1+"px":G==="-"?X*-1+"px":X+"px"};
_.H.onClick=function(){var X;_.Yt(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(X=this.data)==null?void 0:X.image)};
_.H.onKeyPress=function(X){if(X.keyCode===13)this.onClick()};
_.ke.Object.defineProperties(jF.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:(t=X.image)==null?void 0:t.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)!=null&&X.image){var t;X=(t=this.data)==null?void 0:t.image;return X.previewCoordinates.top!==0||X.previewCoordinates.left!==0?(t=this.computeTransform(X.previewCoordinates,X.naturalWidth,X.naturalHeight),X.naturalHeight>=X.naturalWidth?"width:inherit;transform:"+t+";":"height:inherit;transform:"+t+";"):X.naturalHeight>=X.naturalWidth?"width:inherit;":"height:inherit;"}}}});
jF.prototype.onKeyPress=jF.prototype.onKeyPress;_.E([_.rt(".image-container"),_.U("design:type",HTMLElement)],jF.prototype,"imageContainer",void 0);_.E([_.K(),_.U("design:type",Object)],jF.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.U("design:type",Object)],jF.prototype,"selected",void 0);_.E([_.C("data.image"),_.U("design:type",Object),_.U("design:paramtypes",[])],jF.prototype,"thumbnailUrl",null);
_.E([_.C("data.image","data.image.previewCoordinates"),_.U("design:type",Object),_.U("design:paramtypes",[])],jF.prototype,"thumbnailStyle",null);_.E([_.WW("keypress"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],jF.prototype,"onKeyPress",null);_.E([_.p({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],jF);
_.N(jF,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(d24!==void 0)return d24;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return d24=X},{mode:2});var gR=function(X,t,G){G=G===void 0?!1:G;_.P6.call(this);var y=this;this.dropZoneOverlay=new Ke(X);this.selectOverlay=G?new Ot(t,"multiple_file",["image/*"]):new Ot(t,"single_file",["image/*"]);this.handler=new _.AL(this);_.h6(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(t,"click",function(){y.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.S(gR,_.P6);gR.prototype.onChange=function(X){var t;(t=X.files)!=null&&t.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:X.files}))};var FU=function(){var X=_.O.apply(this,arguments)||this;X.addImageErrorMessage="";X.errorMessage="";X.images=[];X.selectedImageIndex=0;X.modern=_.A("web_modern_buttons");X.maxNumImagesPerPost=_.At("max_num_images_per_post_web_ui");X.JSC$15548_imageId=0;return X};
_.S(FU,_.O);_.H=FU.prototype;_.H.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Yt(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.H.observeDragToReorder=function(){var X=this;if(this.showImagesPreview){var t,G=hzR(_.A_.getInstance(),(t=this.data)==null?void 0:t.dragToReorderTooltip);_.vz.addLowPriorityJob(function(){_.Z0(X.hostElement,G,X.thumbnailDragDropArea)})}};
_.H.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}}};
_.H.computeThumbnail=function(X){return(X==null?void 0:X.localImageSrc)||void 0};
_.H.onRendererstamperFinished=function(){_.jpq(this.ytReorderableBehavior,_.Sm(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Sm(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.H.handleDrop=function(X){var t=X.currDragItem;if(t!=null&&t.data){X=this.images[this.selectedImageIndex];var G=t.data.image,y=this.images.indexOf(G)||0;t=_.PY(t.parentNode.children,t);this.images.splice(y,1);this.images.splice(t,0,G);this.images=[].concat(_.RY(this.images));this.selectedImageIndex=this.images.indexOf(X)}};
_.H.setUpImagePicker=function(){var X=this.imageUploadEndpoint;X&&X.imageValidationInfo&&(this.uploadManager=new Vy(X.uploadUrl,X.channelId),this.initialPicker||(this.initialPicker=new gR(this.dropzone,this.selectLink,!0),_.vj(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new gR(this.addImageButtonContainer,this.addImageSelectButton),_.vj(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.vj(this.JSC$15548_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.vj(this.JSC$15548_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.vj(_.Sm(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.H.detached=function(){this.initialPicker&&(_.No(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.No(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.H.onInitialSelectImages=function(X){var t=this;return _.n(function(G){return G.yield(t.onSelectImages(X,!1),0)})};
_.H.onAddImage=function(X){var t=this;return _.n(function(G){return G.yield(t.onSelectImages(X,!0),0)})};
_.H.onSelectImages=function(X,t){var G=this,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L,x;return _.n(function(w6){switch(w6.nextAddress){case 1:t?G.addImageErrorMessage="":(G.images=[],G.errorMessage="");y=X.detail;w=G.validateImages([].concat(_.RY(y)));if(w!=="")return t?G.addImageErrorMessage=w:G.errorMessage=w,w6.return();z=[].concat(_.RY(y)).map(function(BY){return(new bg(G.maxAspectRatio,!1,!0)).transform(BY)});
return w6.yield(Promise.allSettled(z),2);case 2:B=w6.yieldResult,V=_.J(B.entries()),b=V.next();case 3:if(b.done){w6.jumpTo(5);break}e=b.value;g=_.J(e);F=g.next().value;T=g.next().value;D=F;h=T;if(h.status!=="fulfilled"){c=W=u=void 0;t?G.addImageErrorMessage=_.bu((u=G.data)==null?void 0:u.invalidError):G.errorMessage=G.errorMessage===""?_.bu((W=G.data)==null?void 0:W.invalidError):_.bu((c=G.data)==null?void 0:c.multiFileError);w6.jumpTo(4);break}P=h.value;P.cropped&&_.Yt(G.hostElement,"yt-backstage-multi-image-cropped");
if(P.invalidAspectRatio){L=R=l=void 0;t?G.addImageErrorMessage=_.bu((l=G.data)==null?void 0:l.invalidAspectRatioError):G.errorMessage=G.errorMessage===""?_.bu((R=G.data)==null?void 0:R.invalidAspectRatioError):_.bu((L=G.data)==null?void 0:L.multiFileError);w6.jumpTo(4);break}return w6.yield(bRh(G.JSC$15548_imageId,X.detail[D],P.transformedData),8);case 8:x=w6.yieldResult,G.images.push(x),G.JSC$15548_imageId++;case 4:b=V.next();w6.jumpTo(3);break;case 5:if(G.errorMessage!==""||G.addImageErrorMessage!==
"")return w6.return();t?t6q(G.uploadManager,[G.images[G.images.length-1]]):t6q(G.uploadManager,G.images);G.images=[].concat(_.RY(G.images));G.selectedImageIndex=t?Math.max(G.images.length-1,0):0;_.Yt(G.hostElement,"yt-backstage-multi-image-select");_.W$(w6)}})};
_.H.onThumbnailClick=function(X){if(X=X.event_.detail)this.selectedImageIndex=this.images.indexOf(X)};
_.H.validateImages=function(X){if(X.length>this.maxNumImagesPerPost){var t;return _.bu((t=this.data)==null?void 0:t.multiImageExceedMaxImageCountError)}var G=1048576*this.maxFileSizeMb;X=X.filter(function(z){return z.size>G}).length;
if(X===0)return"";var y,w;X=X>1?(y=this.data)==null?void 0:y.multiFileError:(w=this.data)==null?void 0:w.fileSizeError;return _.bu(X)};
_.H.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.RY(this.images));this.selectedImageIndex=0};
_.H.repositionImage=function(X){this.images[this.selectedImageIndex].previewCoordinates=X.event_.detail;this.images=[].concat(_.RY(this.images))};
_.H.getAllUploadStatuses=function(){var X=this,t,G,y,w;return _.n(function(z){if(z.nextAddress==1)return z.yield(X.uploadManager.getAllUploadStatuses(),2);t=z.yieldResult;G=_.J(t);for(y=G.next();!y.done;y=G.next())if(w=y.value,w.encryptedBlobId===void 0)return z.return(Gnq(X.uploadManager));return z.return(t)})};
_.H.hasImages=function(){return this.images.length>0};
_.H.cancel=function(){for(var X=this.uploadManager,t=_.J(X.imagesUploadData),G=t.next();!G.done;G=t.next())X.cancel(G.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Yt(this.hostElement,"yt-backstage-multi-image-cancel")};
_.ke.Object.defineProperties(FU.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.imageUploadEndpoint)==null?void 0:(t=X.imageValidationInfo)==null?void 0:t.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.imageUploadEndpoint)==null?void 0:(t=X.imageValidationInfo)==null?void 0:t.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var X,t;if((X=this.data)==null?0:(t=X.icon)==null?0:t.iconType)return _.Q2(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.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 X=this;return(this.images||[]).map(function(t,G){return{renderer:{image:t,selected:G===X.selectedImageIndex}}})}}});
FU.prototype.setUpImagePicker=FU.prototype.setUpImagePicker;FU.prototype.onRendererstamperFinished=FU.prototype.onRendererstamperFinished;FU.prototype.observeDragToReorder=FU.prototype.observeDragToReorder;FU.prototype.observeAddImageError=FU.prototype.observeAddImageError;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],FU.prototype,"rendererStamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.g8Y),_.U("design:type",Object)],FU.prototype,"ytReorderableBehavior",void 0);_.E([_.rt("#dropzone"),_.U("design:type",HTMLElement)],FU.prototype,"dropzone",void 0);_.E([_.rt("#select-link"),_.U("design:type",HTMLElement)],FU.prototype,"selectLink",void 0);_.E([_.rt("#thumbnail-drag-drop-area"),_.U("design:type",HTMLElement)],FU.prototype,"thumbnailDragDropArea",void 0);_.E([_.rt("#add-image-button-container"),_.U("design:type",HTMLElement)],FU.prototype,"addImageButtonContainer",void 0);
_.E([_.rt("#add-image-button"),_.U("design:type",HTMLElement)],FU.prototype,"addImageSelectButton",void 0);_.E([_.rt("#image-preview-container"),_.U("design:type",Object)],FU.prototype,"JSC$15548_imagePreviewContainer",void 0);_.E([_.K(),_.U("design:type",Object)],FU.prototype,"addImageErrorMessage",void 0);_.E([_.K(),_.U("design:type",Object)],FU.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],FU.prototype,"errorMessage",void 0);
_.E([_.K(),_.U("design:type",Object)],FU.prototype,"imageUploadEndpoint",void 0);_.E([_.K(),_.U("design:type",Array)],FU.prototype,"images",void 0);_.E([_.K(),_.U("design:type",gR)],FU.prototype,"initialPicker",void 0);_.E([_.K(),_.U("design:type",gR)],FU.prototype,"addImagePicker",void 0);_.E([_.K(),_.U("design:type",Vy)],FU.prototype,"uploadManager",void 0);_.E([_.K(),_.U("design:type",Object)],FU.prototype,"selectedImageIndex",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],FU.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],FU.prototype,"maxNumImagesPerPost",void 0);_.E([_.C("imageUploadEndpoint"),_.U("design:type",Number),_.U("design:paramtypes",[])],FU.prototype,"maxAspectRatio",null);_.E([_.C("imageUploadEndpoint"),_.U("design:type",Number),_.U("design:paramtypes",[])],FU.prototype,"maxFileSizeMb",null);
_.E([_.C("data.icon.iconType"),_.U("design:type",Object),_.U("design:paramtypes",[])],FU.prototype,"dropIcon",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],FU.prototype,"selectionCancel",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],FU.prototype,"previewCancel",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],FU.prototype,"dataForAddImageButton",null);
_.E([_.C("errorMessage"),_.U("design:type",String),_.U("design:paramtypes",[])],FU.prototype,"dropzoneClass",null);_.E([_.C("images"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],FU.prototype,"showImagesPreview",null);_.E([_.C("images"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],FU.prototype,"containMaxImages",null);_.E([_.cW("addImageErrorMessage"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],FU.prototype,"observeAddImageError",null);
_.E([_.cW("showImagesPreview"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],FU.prototype,"observeDragToReorder",null);_.E([_.C("images","selectedImageIndex"),_.U("design:type",Object),_.U("design:paramtypes",[])],FU.prototype,"selectedImageData",null);_.E([_.C("images","selectedImageIndex"),_.U("design:type",Array),_.U("design:paramtypes",[])],FU.prototype,"thumbnailRenderers",null);
_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],FU.prototype,"onRendererstamperFinished",null);_.E([_.cW("imageUploadEndpoint"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],FU.prototype,"setUpImagePicker",null);_.E([_.p({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],FU);
_.N(FU,"ytd-backstage-multi-image-select-renderer",function(){if(kno!==void 0)return kno;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return kno=X},{mode:1});var e6z;var jg4;var gi4;var Tb=function(){var X=_.O.apply(this,arguments)||this;X.boundCaptureFocus=function(t){X.onCaptureFocus(t)};
return X};
_.S(Tb,_.O);_.H=Tb.prototype;_.H.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.H.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.H.onCaptureFocus=function(X){_.be(X).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.H.getIconType=function(X){return X?"yt-icons:"+X.toLowerCase():null};
_.H.onSelect=function(){var X;if((X=this.data)==null?0:X.onSelectCommand)if(_.A("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var t;((t=_.Y(this.data.onSelectCommand.commandMetadata,_.jQ))==null?0:t.url)?_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.gw().resolve(_.F3).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.ke.Object.defineProperties(Tb.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.bu(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}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Tb.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Tb.prototype,"data",void 0);_.E([_.rt("#item"),_.U("design:type",HTMLElement)],Tb.prototype,"item",void 0);_.E([_.C("data.label"),_.U("design:type",String),_.U("design:paramtypes",[])],Tb.prototype,"label",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Tb.prototype,"value",null);_.E([_.p({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Tb);
_.N(Tb,"ytd-privacy-dropdown-item-renderer",function(){if(gi4!==void 0)return gi4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return gi4=X},{mode:1});var AY=function(){var X=_.O.apply(this,arguments)||this;X.value="";X.label="";X.disabled=!1;return X};
_.S(AY,_.O);_.H=AY.prototype;_.H.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"}}}};
_.H.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.H.dataChanged=function(){this.reset()};
_.H.valueChanged=function(){var X;if(this.value&&(X=this.data)!=null&&X.entries){X=_.J(this.data.entries);for(var t=X.next();!t.done;t=X.next())if((t=this.getRendererForEntry(t.value))&&this.getItemRendererValue(t)===this.value){this.label=this.ytComponentBehavior.getSimpleString(t.label);break}}};
_.H.setInitialLabel=function(){if(this.data&&this.data.entries)for(var X=_.J(this.data.entries),t=X.next();!t.done;t=X.next())if(t=this.getRendererForEntry(t.value)){if(t.isSelected){this.label=this.ytComponentBehavior.getSimpleString(t.label);break}this.data.label&&(this.label=this.data.label)}};
_.H.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var X=_.J(this.data.entries),t=X.next();!t.done;t=X.next()){t=this.getRendererForEntry(t.value);var G=void 0;if((G=t)==null?0:G.isSelected)return this.getItemRendererValue(t)||-1}return-1};
_.H.getItemRendererValue=function(X){return"stringValue"in X||"int32Value"in X?X.stringValue||X.int32Value||null:null};
_.H.getRendererForEntry=function(X){return X.dropdownItemRenderer||X.privacyDropdownItemRenderer||X.navigationDropdownItemRenderer||null};
_.H.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("value-changed",this.value))};
_.H.updateValueFromBinding=function(X){this.value=X.detail.value};
AY.prototype.valueChangedForBinding=AY.prototype.valueChangedForBinding;AY.prototype.valueChanged=AY.prototype.valueChanged;AY.prototype.dataChanged=AY.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],AY.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],AY.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],AY.prototype,"value",void 0);_.E([_.K(),_.U("design:type",Object)],AY.prototype,"label",void 0);_.E([_.rt("#entries"),_.U("design:type",Object)],AY.prototype,"entries",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],AY.prototype,"disabled",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],AY.prototype,"dataChanged",null);
_.E([_.U0("value"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],AY.prototype,"valueChanged",null);_.E([_.cW("value"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],AY.prototype,"valueChangedForBinding",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],AY);
_.N(AY,"ytd-flat-dropdown-renderer",function(){if(jg4!==void 0)return jg4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return jg4=X},{mode:1});var FJq;var Yq=function(){var X=_.O.apply(this,arguments)||this;X.quizOptions=[];X.explanationPlaceholderText="";X.optionPlaceholderText="";X.correctAnswerIndex=-1;X.isMarkAnswerTooltipShown=!1;X.timer=0;return X};
_.S(Yq,_.O);_.H=Yq.prototype;_.H.dataChanged=function(){this.optionPlaceholderText=_.bu(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.bu(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.H.onMarkCorrectAnswer=function(X){var t,G=((t=this.quizOptions[this.correctAnswerIndex])==null?void 0:t.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[X.model.index]=Object.assign({},this.quizOptions[X.model.index],{explanationText:G,isCorrect:!0});this.correctAnswerIndex=X.model.index;this.quizOptions=[].concat(_.RY(this.quizOptions))};
_.H.updatePlaceholderTexts=function(){for(var X=!1,t=[],G=0;G<this.quizOptions.length;G++){var y=this.optionPlaceholderText+" "+(G+1),w=void 0;((w=this.quizOptions[G])==null?void 0:w.placeholderText)!==y?(X=!0,t.push(Object.assign({},this.quizOptions[G],{placeholderText:y}))):t.push(this.quizOptions[G])}X&&(this.quizOptions=t);this.isValid()?_.Yt(this.hostElement,"yt-commentbox-post-enable"):_.Yt(this.hostElement,"yt-commentbox-post-disable")};
_.H.getSimpleString=function(X){return _.bu(X)};
_.H.createQuizOptions=function(X){var t=[],G;X=(G=X==null?void 0:X.minQuizOptions)!=null?G:0;for(G=0;G<X;G++)t.push(this.createQuizOption());return t};
_.H.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.RY(this.quizOptions),[this.createQuizOption()]))};
_.H.onInput=function(){this.quizOptions=[].concat(_.RY(this.quizOptions))};
_.H.onExplanationInput=function(){_.Yt(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.H.onRemoveQuizOption=function(X){this.quizOptions.splice(X.model.index,1);X.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:X.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.RY(this.quizOptions));this.quizOptions.length===0&&_.Yt(this.hostElement,"yt-quiz-attachment-dismiss")};
_.H.updateHintRenderer=function(){var X=this;clearTimeout(this.timer);this.timer=setTimeout(function(){X.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.H.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var X=0,t=0,G=_.J(this.quizOptions),y=G.next();!y.done;y=G.next()){y=y.value;var w=void 0;if(((w=y.optionText)==null?void 0:w.trim())!==""||y.isCorrect){y.isCorrect&&t++;w=void 0;if(this.hasCustomOptionText&&((w=y.optionText)==null?void 0:w.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;X++}}return X>=
Number(this.editorInfo.minQuizOptions)&&t===1};
_.H.getPostCreateOptions=function(){for(var X=[],t=_.J(this.quizOptions),G=t.next();!G.done;G=t.next()){G=G.value;var y=void 0;((y=G.optionText)==null?void 0:y.trim())!==""&&X.push({pollOption:{text:G.optionText,explanation:G.explanationText},isCorrect:G.isCorrect})}return X};
_.H.getExplanationText=function(){var X;return((X=this.quizOptions[this.correctAnswerIndex])==null?void 0:X.explanationText)||""};
_.H.maybeDisplayMarkAnswerEduToolTip=function(){var X,t,G,y,w,z,B;this.shouldShowMarkAnswerTooltip()&&((X=this.editorInfo)==null?0:(t=X.markAnswerButton)==null?0:(G=t.buttonRenderer)==null?0:(y=G.hint)==null?0:(w=y.hintRenderer)==null?0:(z=w.content)==null?0:(B=z.bubbleHintRenderer)==null?0:B.text)&&(_.A_.getInstance(),X=Y6(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,(X==null?void 0:X.length)>0&&this.optionSelectors&&_.cj(X[0],this.optionSelectors[0]))};
_.H.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var X=0,t=_.J(this.quizOptions),G=t.next();!G.done;G=t.next()){G=G.value;var y=void 0;((y=G.optionText)==null?void 0:y.trim())!==""&&X++;if(G.isCorrect)return!1}return X<2?!1:!0};
_.H.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.H.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.H.updateOptionTextFromBinding=function(X){if(X.target){var t=Array.from(_.Sm(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(X.target);if(t>=0){var G;this.quizOptions[t].optionText=(G=X.detail.value)!=null?G:""}}};
_.ke.Object.defineProperties(Yq.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(X=this.editorInfo)==null?void 0:(t=X.addOptionButton)==null?void 0:t.buttonRenderer;G&&(G.style="STYLE_SUGGESTIVE",G.size="SIZE_SMALL",G.isDisabled=!this.isAllowedToAddOption);return(G==null?0:G.text)?G:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var X,t;return this.quizOptions.length<((t=(X=this.editorInfo)==null?void 0:X.maxQuizOptions)!=null?t:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(X){var t;return(t=X.optionText)==null?void 0:t.trim()})}}});
Yq.prototype.updatePlaceholderTexts=Yq.prototype.updatePlaceholderTexts;Yq.prototype.dataChanged=Yq.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],Yq.prototype,"editorInfo",void 0);_.E([_.K(),_.U("design:type",Array)],Yq.prototype,"quizOptions",void 0);_.E([_.K(),_.U("design:type",Object)],Yq.prototype,"explanationPlaceholderText",void 0);_.E([_.NS(".option-selector-button"),_.U("design:type",Array)],Yq.prototype,"optionSelectors",void 0);
_.E([_.U0("editorInfo"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Yq.prototype,"dataChanged",null);_.E([_.C("editorInfo","isAllowedToAddOption","quizOptions"),_.U("design:type",Object),_.U("design:paramtypes",[])],Yq.prototype,"addAnswerButton",null);_.E([_.C("editorInfo","quizOptions"),_.U("design:type",Object),_.U("design:paramtypes",[])],Yq.prototype,"isAllowedToAddOption",null);
_.E([_.U0("quizOptions"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Yq.prototype,"updatePlaceholderTexts",null);_.E([_.C("quizOptions"),_.U("design:type",Object),_.U("design:paramtypes",[])],Yq.prototype,"hasCustomOptionText",null);_.E([_.p({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Yq);
_.N(Yq,"ytd-backstage-quiz-editor-renderer",function(){if(FJq!==void 0)return FJq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return FJq=X},{mode:2});var TCo;var AnR=(Ee.FIRSTDAYOFWEEK+1)%7;var Y4q;var sgq=[],D2S=0,S4q=0;D2S=0;S4q=24;if(.25*(S4q-D2S)<0)Y4q=[];else{for(var h6J=D2S;h6J<S4q;h6J+=.25)sgq.push(h6J);Y4q=sgq}var ZOP=Y4q.map(function(X){X=X*60*60;return{secondsSinceMidnight:X,text:(new By(7)).format(new Date(0,0,0,0,0,X))}});var q4o;var sD=function(){var X=_.O.apply(this,arguments)||this;X.skipNextOpenDialog=!1;X.errorMessage="";return X};
_.S(sD,_.O);_.H=sD.prototype;_.H.attached=function(){var X=this,t=new MutationObserver(function(){X.JSC$15591_calendarMain.scrollHeight>0&&(t.disconnect(),X.calendarConfig&&X.calendarConfig.selectedDate&&X.scrollToDate())});
t.observe(this.JSC$15591_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){t.disconnect()},1E3)};
_.H.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.H.onDateTextChange=function(){if(this.calendarConfig){var X=this.validateDateText();X.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(X.details)):this.textbox.setAttribute("invalid","")}};
_.H.handleDayClick=function(X){X.model.day.date&&(this.commitDate(X.model.day.date),this.dialog.close())};
_.H.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var X=D5s(this.calendarConfig.selectedDate,this.renderData);X!==void 0&&this.JSC$15591_calendarMain.scrollToIndex(X)}};
_.H.scrollToNextMonth=function(){this.JSC$15591_calendarMain.scrollToIndex(this.JSC$15591_calendarMain.firstVisibleIndex+1)};
_.H.scrollToPrevMonth=function(){this.JSC$15591_calendarMain.firstVisibleIndex===0&&this.JSC$15591_calendarMain.scrollTo(0,0);this.JSC$15591_calendarMain.scrollToIndex(this.JSC$15591_calendarMain.firstVisibleIndex-1)};
_.H.onFormSubmit=function(X){X.preventDefault();this.calendarConfig&&(X=this.validateDateText(),X.isValid&&(this.commitDate(X.details),this.dialog.close()))};
_.H.onEscOrClickingOutside=function(X){X=X.detail.path&&!!X.detail.path.length&&X.detail.path[0];if(X.classList.contains("ytd-calendar-date-picker")){X===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var t=0;t<this.dropdownButton.children.length;t++)this.dropdownButton.children[t]===X&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}X=this.textbox.value!==this.dateText;t=this.validateDateText();X&&t.isValid&&this.commitDate(t.details);this.dialog.close();this.textbox.value=
this.dateText};
_.H.commitDate=function(X){this.calendarConfig&&(this.set("calendarConfig.selectedDate",X),_.Yt(this.hostElement,"ytd-calendar-date-selected",X))};
_.H.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var X=this.textbox.value;var t=new Date;X=(new m50(2)).parse(X,t,{validate:!0})===X.length?YNY(t):void 0;if(!X)return this.errorMessage=_.Qf("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};t=this.calendarConfig.start;var G=this.calendarConfig.end;if(jtw(X,t))return this.errorMessage=_.Qf("ENTER_DATE_OR_LATER",{allowed_date:Ads(t)}),{isValid:!1,details:void 0};if(jtw(G,X))return this.errorMessage=
_.Qf("ENTER_DATE_OR_EARLIER",{allowed_date:Ads(G)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:X}};
_.ke.Object.defineProperties(sD.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Ads(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var X=this.calendarConfig,t=[],G=0;G<7;G++)t.push(Ee.NARROWWEEKDAYS[(G+AnR)%7]);G=[];for(var y=new Date(X.start.year,X.start.month);y.getFullYear()<X.end.year||y.getFullYear()===X.end.year&&y.getMonth()<=X.end.month;){var w=G,z=w.push,B=y.getFullYear(),V=y.getMonth(),b=X,e=void 0,g=[],F=Object.freeze({extraCssClass:"invisible",debugClass:""}),T=new Date(B,V),D=YNY(T);T=T.getDay();for(var h=YNY(new Date);D.month===
V;){T!==AnR&&e||(e=Array.from({length:7}).fill(F),g.push(e));var u={date:{year:B,month:V,day:D.day},extraCssClass:"",debugClass:""};b.selectedDate&&u.date&&eEw(u.date,b.selectedDate)&&(u.extraCssClass+=" selected");if(jtw(D,b.start)||jtw(b.end,D))u.extraCssClass+=" disabled";eEw(D,h)&&(u.extraCssClass+=" today");u.extraCssClass=u.extraCssClass.trim();e[(T-AnR+7)%7]=u;D=FRw(D);T=(T+1)%7}z.call(w,{weeks:g,monthLabel:Ee.SHORTMONTHS[V]+" "+B,year:B,month:V,monthLabelExtraCssClass:g[0][2]===F?"shift-down-label":
""});y.setMonth(y.getMonth()+1)}return{months:G,daysOfWeekLabel:t}}}}});
sD.prototype.onEscOrClickingOutside=sD.prototype.onEscOrClickingOutside;sD.prototype.scrollToDate=sD.prototype.scrollToDate;_.E([_.K(),_.U("design:type",Object)],sD.prototype,"calendarConfig",void 0);_.E([_.K(),_.U("design:type",Object)],sD.prototype,"skipNextOpenDialog",void 0);_.E([_.K(),_.U("design:type",Object)],sD.prototype,"errorMessage",void 0);_.E([_.rt("#textbox"),_.U("design:type",HTMLInputElement)],sD.prototype,"textbox",void 0);
_.E([_.rt("#calendar-dialog"),_.U("design:type",Object)],sD.prototype,"dialog",void 0);_.E([_.rt("#calendar-main"),_.U("design:type",Object)],sD.prototype,"JSC$15591_calendarMain",void 0);_.E([_.rt("#date-picker"),_.U("design:type",HTMLElement)],sD.prototype,"dropdownButton",void 0);_.E([_.C("calendarConfig.selectedDate"),_.U("design:type",String),_.U("design:paramtypes",[])],sD.prototype,"dateText",null);
_.E([_.C("calendarConfig","calendarConfig.selectedDate"),_.U("design:type",Object),_.U("design:paramtypes",[])],sD.prototype,"renderData",null);_.E([_.cW("renderData","calendarConfig.selectedDate"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sD.prototype,"scrollToDate",null);_.E([_.WW("iron-overlay-canceled"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],sD.prototype,"onEscOrClickingOutside",null);
_.E([_.$F({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],sD);
_.N(sD,"ytd-calendar-date-picker",function(){if(q4o!==void 0)return q4o;var X=document.createElement("template");_.Z(X,'\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" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return q4o=X},{mode:2});var CPq=_.Qf("UTC_OFFSET_FORMAT",{utc_offset:(new By("Z")).format(new Date)}),KJJ=(new Date).getTimezoneOffset()*-60,OO4=new Date,unY,Qgz=Jp(OO4.getTimezoneOffset());unY=Abt(skq(Qgz,OO4));var I5h=_.Qf("LOCAL_TIME_GMT_LABEL",{gmt_text:unY.replace("+0","+").replace("-0","-").replace(":00","")}),Dj=function(){var X=_.O.apply(this,arguments)||this;X.selectedTimeIndex=0;X.selectedTimezoneIndex=0;X.timeOfDayOptions=ZOP;return X};
_.S(Dj,_.O);_.H=Dj.prototype;_.H.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var X=T7V();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=X,this.selectedTimeIndex=0;else{var t=stl(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},X,{selectedDate:t.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(G){return G.secondsSinceMidnight===t.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.H.onDatePicked=function(X){this.selectedDate=X.detail};
_.H.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Yt(this.hostElement,"ytd-date-time-selection-cancelled")};
_.H.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var X=this.selectedDate;X=new Date(X.year,X.month,X.day);_.Yt(this.hostElement,"ytd-date-time-selection-update",Math.floor(X.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+X.getTimezoneOffset()*60))}};
_.H.getTimezoneFormat=function(X){return X.localizedDisplayText?X.localizedDisplayText:_.Qf("TIMEZONE_FORMAT",{utc_offset_text:""+X.localizedUtcOffset,city_name:""+X.localizedName})};
_.H.updateSelectedTimeIndexFromBinding=function(X){this.selectedTimeIndex=X.detail.value};
_.H.updateSelectedTimezoneIndexFromBinding=function(X){this.selectedTimezoneIndex=X.detail.value};
_.ke.Object.defineProperties(Dj.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X=this.data.timezoneOptions;var t={name:"Etc/Unknown",localizedName:_.Qf("LOCAL_TIME_LABEL"),localizedUtcOffset:CPq,utcOffsetSec:""+KJJ,localizedDisplayText:I5h};X?X.length&&X[0].name!==t.name&&(X[0].localizedDisplayText||(t.localizedDisplayText=""),X.unshift(t)):X=[t];return X}}},
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]}}});
Dj.prototype.onDateTimeTimezoneChange=Dj.prototype.onDateTimeTimezoneChange;Dj.prototype.onDatePicked=Dj.prototype.onDatePicked;Dj.prototype.updateDefaultSelectedValue=Dj.prototype.updateDefaultSelectedValue;_.E([_.K(),_.U("design:type",Object)],Dj.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Dj.prototype,"calendarConfig",void 0);_.E([_.K(),_.U("design:type",Object)],Dj.prototype,"selectedDate",void 0);_.E([_.K(),_.U("design:type",Object)],Dj.prototype,"selectedTimeIndex",void 0);
_.E([_.K(),_.U("design:type",Object)],Dj.prototype,"selectedTimezoneIndex",void 0);_.E([_.rt("#time-listbox"),_.U("design:type",Object)],Dj.prototype,"timeListBox",void 0);_.E([_.rt("#timezone-listbox"),_.U("design:type",Object)],Dj.prototype,"timezoneListBox",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Dj.prototype,"rendererStamperBehavior",void 0);_.E([_.C("data.timezoneOptions"),_.U("design:type",Object),_.U("design:paramtypes",[])],Dj.prototype,"timeZones",null);
_.E([_.U0("data","timeZones"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Dj.prototype,"updateDefaultSelectedValue",null);_.E([_.C("selectedTimezoneIndex","timeZones"),_.U("design:type",Object),_.U("design:paramtypes",[])],Dj.prototype,"selectedTimezone",null);_.E([_.C("selectedTimeIndex"),_.U("design:type",Object),_.U("design:paramtypes",[])],Dj.prototype,"selectedTime",null);
_.E([_.WW("ytd-calendar-date-selected"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Dj.prototype,"onDatePicked",null);_.E([_.cW("selectedTimezone","selectedTime","selectedDate"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Dj.prototype,"onDateTimeTimezoneChange",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Dj);
_.N(Dj,"ytd-date-time-picker-renderer",function(){if(TCo!==void 0)return TCo;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return TCo=X},{mode:1});var WJt;var SF=function(){var X=_.O.apply(this,arguments)||this;X.boundOnTapDismissButton=function(){X.dismissTapHandler()};
X.dismissButtonOverrides={size:"XS"};return X};
_.S(SF,_.O);SF.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}}}}}};
SF.prototype.dismissTapHandler=function(){_.Yt(this.hostElement,"yt-backstage-attachment-dismissed")};
SF.prototype.computeAttachmentType=function(X){return X?X.backstageImageRenderer?"image":X.videoRenderer?"video":"none":"none"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],SF.prototype,"attachmentPreview",void 0);_.E([_.K(),_.U("design:type",Object)],SF.prototype,"dismissButton",void 0);_.E([_.K(),_.U("design:type",Object)],SF.prototype,"boundOnTapDismissButton",void 0);
_.E([_.K(),_.U("design:type",Object)],SF.prototype,"dismissButtonOverrides",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.U("design:type",String)],SF.prototype,"attachmentType",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],SF);
_.N(SF,"ytd-backstage-dismissable-attachment",function(){if(WJt!==void 0)return WJt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return WJt=X},{mode:1});var cnh;var hY=function(){var X=_.O.apply(this,arguments)||this;X.selectedVideoId=void 0;X.picker=void 0;X.dismissButtonOverrides={size:"XS"};X.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return X};
_.S(hY,_.O);_.H=hY.prototype;_.H.onServiceRequestCompleted=function(X){X.stopPropagation()};
_.H.handleAddVideoPreviewAction=function(X){X=this.get("addVideoPreviewAction",X);this.onGetVideoPreviewSuccess(X)};
_.H.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}}}}}};
_.H.onLaunchVideoPicker=function(X){var t=this,G=_.bu(this.get("addVideoLinkAction.title",X)),y=this.get("addVideoLinkAction.onePickHostId",X);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",X);y&&(this.picker||(G=_.eZ4(_.ojh(y).setTitle(G).addView(VHJ()).addView(nxz()),function(w){t.onPickVideo(w)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",X)||G.addView("youtube"),this.picker=G.build()),this.picker.setVisible(!0))};
_.H.onPickVideo=function(X){if(X)if(X.action==="cancel")_.Yt(this.hostElement,"yt-video-link-button-cancel");else if(X.action==="picked"){X=X.docs;if(!X||X.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(X=(X==null?0:X.length)?X[0]:void 0)?X.id:void 0;this.setVideoPreview()}};
_.H.setVideoPreview=function(){var X=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){X.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.H.onGetVideoPreviewSuccess=function(X){if(X&&X.videoPreview&&X.cancelButton)this.videoPreview=X.videoPreview,this.cancelButton=X.cancelButton,_.Yt(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.H.onGetVideoPreviewError=function(){this.cancel()};
_.H.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Yt(this.hostElement,"yt-video-link-cancel")};
_.H.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
hY.prototype.onServiceRequestCompleted=hY.prototype.onServiceRequestCompleted;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],hY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],hY.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],hY.prototype,"videoPreview",void 0);_.E([_.K(),_.U("design:type",Object)],hY.prototype,"cancelButton",void 0);_.E([_.K(),_.U("design:type",Object)],hY.prototype,"getVideoPreviewCommand",void 0);_.E([_.K(),_.U("design:type",Object)],hY.prototype,"dismissButtonOverrides",void 0);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],hY.prototype,"onServiceRequestCompleted",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],hY);
_.N(hY,"ytd-backstage-video-link-attachment",function(){if(cnh!==void 0)return cnh;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return cnh=X},{mode:1});var puR;var rnq;var NC4;var Zj=function(){return _.O.apply(this,arguments)||this};
_.S(Zj,_.O);Zj.prototype.dataChanged=function(){this.active=!1};
Zj.prototype.onTap=function(){_.Yt(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Zj.prototype.identity=function(X){return X};
_.ke.Object.defineProperties(Zj.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y;if((X=this.data)==null?0:(t=X.image)==null?0:(G=t.thumbnails)==null?0:(y=G[0])==null?0:y.url)return X=this.data.image.thumbnails[0].url,X.startsWith("data:image/svg+xml")?Ui(X):_.l_(X)}}});
Zj.prototype.dataChanged=Zj.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],Zj.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Zj.prototype,"active",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Zj.prototype,"dataChanged",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Zj.prototype,"imageSrc",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Zj);
_.N(Zj,"ytd-emoji-suggestion",function(){if(NC4!==void 0)return NC4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return NC4=X},{mode:1});var PPP=/.*([:@#].*?)$/,q6=function(){var X=_.O.apply(this,arguments)||this;X.suggestions=[];X.suggestionIndex=-1;X.JSC$15619_lastSuggestionRange=null;return X};
_.S(q6,_.O);_.H=q6.prototype;_.H.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.H.getSuggestions=function(X){var t=[],G=Fs4(this.emojiManager,X.substr(0,3));if(G)for(var y in G)if(y.toLocaleLowerCase().indexOf(X)===0){var w=G[y];if(w&&w.emojiId){w=yM(this.emojiManager,w.emojiId);var z=void 0,B=void 0,V=void 0,b=void 0,e=((z=w)==null?0:z.isCustomEmoji)?(B=w)==null?void 0:(V=B.shortcuts)==null?void 0:V[0]:(b=w)==null?void 0:b.emojiId;z=void 0;t.push({suggestion:{image:(z=w)==null?void 0:z.image,alt:e,text:y}});if(t.length>=64)break}}return t?t.sort(function(g,F){return F.suggestion.text<
g.suggestion.text?-1:F.suggestion.text===g.suggestion.text?0:1}):null};
_.H.insertSuggestion=function(X){_.Yt(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15619_lastSuggestionRange,text:X.alt});this.dropdown.opened=!1};
_.H.updateSuggestionsAtCaret=function(X){this.updateSuggestions(X,this.retrieveTextBeforeRange(X))};
_.H.offsetStartOfRangeBy=function(X,t){X.startOffset>=t&&X.setStart(X.startContainer,X.startOffset-t)};
_.H.updateSuggestions=function(X,t){var G=this;this.JSC$15619_lastSuggestionRange&&(this.JSC$15619_lastSuggestionRange.detach(),this.JSC$15619_lastSuggestionRange=null);if((t=PPP.exec(t))&&t.length&&(t=t[t.length-1].toLocaleLowerCase(),t.length>2||t===":_")&&(this.offsetStartOfRangeBy(X,t.length),this.JSC$15619_lastSuggestionRange=X,(X=this.getSuggestions(t))&&X.length)){this.suggestions=X;_.V8(this,function(){G.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(X.length-1);return}this.dropdown.opened=!1};
_.H.onKeyDown=function(X){if(this.dropdown.opened)switch(X.key){case "Escape":this.dropdown.opened=!1;X.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);X.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);X.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),X.preventDefault()}};
_.H.onKeyUp=function(X,t){switch(X.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(t);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(t)}};
_.H.onKeyPress=function(X){X.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),X.preventDefault())};
_.H.changeSuggestionIndex=function(X){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(X+this.suggestions.length)%this.suggestions.length,X=this.dropdownContent.children[this.suggestionIndex],X.active=!0,this.dropdownContent.scrollTop=X.offsetTop)};
_.H.retrieveTextBeforeRange=function(X){var t=X.startContainer;return t&&t.nodeType===Node.TEXT_NODE?t.textContent.substr(0,X.startOffset):""};
q6.prototype.onKeyPress=q6.prototype.onKeyPress;q6.prototype.onKeyUp=q6.prototype.onKeyUp;q6.prototype.onKeyDown=q6.prototype.onKeyDown;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Array)],q6.prototype,"suggestions",void 0);_.E([_.K(),_.U("design:type",_.tB)],q6.prototype,"emojiManager",void 0);_.E([_.K(),_.U("design:type",Number)],q6.prototype,"verticalSuggestionsOffset",void 0);
_.E([_.rt("#dropdown"),_.U("design:type",Object)],q6.prototype,"dropdown",void 0);_.E([_.rt("#dropdown-content"),_.U("design:type",HTMLDivElement)],q6.prototype,"dropdownContent",void 0);_.E([_.WW("keydown"),_.U("design:type",Function),_.U("design:paramtypes",[KeyboardEvent]),_.U("design:returntype")],q6.prototype,"onKeyDown",null);_.E([_.WW("keyup"),_.U("design:type",Function),_.U("design:paramtypes",[KeyboardEvent,Range]),_.U("design:returntype")],q6.prototype,"onKeyUp",null);
_.E([_.WW("keypress"),_.U("design:type",Function),_.U("design:paramtypes",[KeyboardEvent]),_.U("design:returntype")],q6.prototype,"onKeyPress",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-emoji-input"})],q6);
_.N(q6,"ytd-emoji-input",function(){if(rnq!==void 0)return rnq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return rnq=X},{mode:2});var EiS;var Ci=function(){var X=_.O.apply(this,arguments)||this;X.hasMaxOptions=!1;return X};
_.S(Ci,_.O);_.H=Ci.prototype;_.H.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.H.setPrefilledChoices=function(X){var t=this;this.set("pollOptions",[]);var G;for(G=0;G<Math.min(X.length,this.data.maxPollOptions);G++)this.push("pollOptions",X[G].substring(0,this.data.maxPollOptionChars));for(;G<this.data.minPollOptions;G++)this.push("pollOptions","");this.hasMaxOptions=G>=this.data.maxPollOptions;_.V8(this,function(){for(var y=t.pollOptions,w=_.Sm(t.hostElement).querySelectorAll(".poll-option-input"),z=0;z<w.length;z++)w[z].value=y[z]})};
_.H.focusChanged=function(){_.Kd(this.hostElement)};
_.H.onInput=function(){var X=this;_.Jm(this,"onInput",function(){X.isValid()?_.Yt(X.hostElement,"yt-commentbox-post-enable"):_.Yt(X.hostElement,"yt-commentbox-post-disable")},300)};
_.H.setPollOptions=function(){var X=[],t,G=((t=this.data)==null?0:t.minPollOptions)?this.data.minPollOptions:0;for(t=0;t<G;t++)X.push("");return X};
_.H.addPollOption=function(){var X=this;_.Yt(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.vz.addLowPriorityJob(function(){var t;(t=_.Sm(X.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||t.focus()})};
_.H.onRemovePollOption=function(X){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Yt(this.hostElement,"yt-poll-attachment-dismiss")):(X=this.repeat.indexForElement(X.target.parentNode),X!==null&&(this.splice("pollOptions",X,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Yt(this.hostElement,"yt-commentbox-post-enable"))))};
_.H.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.H.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var X=0,t=this.pollOptions.length;X<t;X++)if(this.pollOptions[X].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.H.getPollOptions=function(){return this.pollOptions};
_.H.setPollOptionsFromInputs=function(){for(var X=_.Sm(this.hostElement).querySelectorAll(".poll-option-input"),t=0;t<X.length;t++)this.pollOptions[t]=X[t].value.trim()};
_.H.clearPollOptions=function(){var X=_.Sm(this.hostElement).querySelectorAll(".poll-option-input");X=_.J(X);for(var t=X.next();!t.done;t=X.next())t.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.H.getSimpleString=function(X){return _.bu(X)};
_.H.updateValueFromBinding=function(X){if(X.target&&this.pollOptions){var t=Array.from(_.Sm(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(X.target);if(t>=0){var G;this.pollOptions[t]=(G=X.detail.value)!=null?G:"";this.notifyPath("pollOptions."+t)}}};
Ci.prototype.dataChanged=Ci.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ci.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Array)],Ci.prototype,"pollOptions",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Ci.prototype,"hasMaxOptions",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Ci.prototype,"enableCreationBox",void 0);
_.E([_.rt("#repeat"),_.U("design:type",x3)],Ci.prototype,"repeat",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ci.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Ci);
_.N(Ci,"ytd-poll-attachment",function(){if(EiS!==void 0)return EiS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return EiS=X},{mode:2});var U2z;var m2z;var R6J;var iOP;var Ki=function(){return _.O.apply(this,arguments)||this};
_.S(Ki,_.O);_.ke.Object.defineProperties(Ki.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ki.prototype,"rendererBehaviors",void 0);_.E([_.K(),_.U("design:type",Object)],Ki.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Ki.prototype,"focused",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("focused"),_.U("design:type",Object),_.U("design:paramtypes",[])],Ki.prototype,"ariaSelected",null);_.E([_.$F({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Ki);
_.N(Ki,"yt-user-mention-suggestion-renderer",function(){if(iOP===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;R6J===void 0&&(R6J=document.createElement("template"));var y=R6J;G.call(t,y.content.cloneNode(!0),X.content.firstChild);iOP=X}X=iOP;return X},{mode:2});var LJe;var vio;var OD=function(){var X=_.O.apply(this,arguments)||this;X.focusedSuggestionIndex=-1;return X};
_.S(OD,_.O);_.H=OD.prototype;_.H.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.H.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.H.setFocusedSuggestionIndex=function(X){!this.data||!this.data.suggestions||X<0||X>=this.data.suggestions.length||(this.focusedSuggestionIndex=X,X=this.getSuggestionId(X),this._setFocusedSuggestionId(X))};
_.H.advanceSuggestion=function(X){this.focusedSuggestionIndex===-1||X!==-1&&X!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+X),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.H.ensureSuggestionVisible=function(X){X=this.getSuggestionId(X);X=_.Sm(this.hostElement).querySelector("[id="+X+"]");X!=null&&(X.offsetTop<this.hostElement.scrollTop?X.scrollIntoView(!0):X.offsetTop+X.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&X.scrollIntoView(!1))};
_.H.getSuggestionId=function(X){return"user-mention-suggestion-"+X};
_.H.onSuggestionTap=function(X){var t=_.Y(X.model.item,jIR);this.ytRendererBehavior.logExplicitClick(t);_.Yt(this.hostElement,"yt-user-mention-suggestion-selected",{data:t,index:X.model.index})};
_.H.onSuggestionMouseMove=function(X){X.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(X.model.index)};
_.H.isSuggestionFocused=function(X,t){return X===t};
_.H.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.H.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("focused-suggestion-id-changed",this.focusedSuggestionId))};
OD.prototype.focusedSuggestionIdChangedForBinding=OD.prototype.focusedSuggestionIdChangedForBinding;OD.prototype.onDomChange=OD.prototype.onDomChange;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],OD.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],OD.prototype,"focusedSuggestionIndex",void 0);_.E([_.K({readOnly:!0}),_.U("design:type",String)],OD.prototype,"focusedSuggestionId",void 0);
_.E([_.WW("dom-change"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],OD.prototype,"onDomChange",null);_.E([_.cW("focusedSuggestionId"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OD.prototype,"focusedSuggestionIdChangedForBinding",null);_.E([_.$F({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],OD);
_.N(OD,"yt-user-mention-suggestions-dropdown",function(){if(vio===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;LJe===void 0&&(LJe=document.createElement("template"));var y=LJe;G.call(t,y.content.cloneNode(!0),X.content.firstChild);vio=X}X=vio;return X},{mode:2});var uN=function(){var X=_.O.apply(this,arguments)||this;X.suggestionsResponse=null;X.activeMention=null;X.selectionChangeListener=X.onSelectionChange.bind(X);X.handlesEnabled=_.A("enable_handles_in_mention_suggest_posts");X.handlesInMentionSuggestionsEnabled=_.A("handles_in_mention_suggest_posts");X.zeroPrefixMentionSuggestionEnabled=_.A("enable_zero_prefix_mention_suggestion_web");X.pendingQuery=null;X.flowNonce=null;return X};
_.S(uN,_.O);_.H=uN.prototype;_.H.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.H.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.H.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.H.hasSuggestions=function(X){return!!(X&&X.suggestions&&X.suggestions.length>0)};
_.H.onInput=function(){var X=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var t=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),G=this.activeMention.JSC$11223_getText().slice(-1)===" ",y=this.activeMention.JSC$11223_getText().slice(-2,-1)===" ",w="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11223_getText().slice(-2,
-1))>=0;w=this.zeroPrefixMentionSuggestionEnabled&&w;if(this.activeMention.isCollapsed()||(t||y||w)&&G)this.cancelActiveMention();else{var z=this.activeMention.JSC$11223_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Jm(this,"requestSuggestions",function(){X.requestSuggestions(z)},100)}}}};
_.H.onServiceRequestSent=function(X){X.stopPropagation()};
_.H.onServiceRequestCompleted=function(X){X.stopPropagation();X=X.detail.data;X.query&&(!this.pendingQuery||this.pendingQuery!==X.query)||!this.zeroPrefixMentionSuggestionEnabled&&X.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=X,this.hasSuggestions(X)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.H.onServiceRequestError=function(X){X.stopPropagation()};
_.H.onUserMentionSuggestionSelected=function(X){this.selectSuggestion(X.detail.data,X.detail.index)};
_.H.onSelectionChange=function(){if(this.activeMention){var X=_.cv(),t=this.activeMention.JSC$11223_containsRange(X);X=X&&this.containsHelper(this.dropdown,X.getContainer());t||X||this.cancelActiveMention()}};
_.H.containsHelper=function(X,t){var G;if(((G=window.ShadyDOM)==null?void 0:G.noPatch)===!0)return X.contains(t);for(;t;){if(t===X)return!0;t=t instanceof ShadowRoot?t.host:t.parentNode}return!1};
_.H.maybeStartSuggest=function(){var X=_.cv();if(X&&X.isCollapsed()){var t=X.JSC$11223_getStartNode(),G=X.JSC$11223_getStartOffset();if(t instanceof Text&&!(G<1)){var y=t.textContent;!(y=y&&y.charAt(G-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(y)<0||(this.activeMention=_.t0(t,G-1,X.JSC$11223_getEndNode(),X.JSC$11223_getEndOffset()),this.flowNonce=LE(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.H.updateActiveMention=function(){if(this.activeMention){var X=_.cv();X&&X.isCollapsed()&&(this.activeMention=_.t0(this.activeMention.JSC$11223_getStartNode(),this.activeMention.JSC$11223_getStartOffset(),X.JSC$11223_getEndNode(),X.JSC$11223_getEndOffset()))}};
_.H.requestSuggestions=function(X){if(this.activeMention){var t={suggestions_query:X};this.pendingQuery=X;_.hE(this.hostElement,[this.suggestionsEndpoint,t])}};
_.H.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()};
_.H.focusPreviousSuggestion=function(X){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),X.preventDefault())};
_.H.focusNextSuggestion=function(X){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),X.preventDefault())};
_.H.selectFocusedSuggestion=function(X){if(this.hasSuggestions(this.suggestionsResponse)){var t=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.Y(t,jIR)&&(this.selectSuggestion(_.Y(t,jIR),this.dropdown.focusedSuggestionIndex),X.preventDefault())}};
_.H.selectSuggestion=function(X,t){if(X){var G=this.activeMention;if(G){var y=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&X.handle?_.XA(y,"\u00a0\u2068@"+X.handle+"\u2069\u00a0"):this.handlesEnabled?_.XA(y,"\u00a0"+X.displayName+"\u00a0"):_.XA(y,"\u00a0@"+X.displayName+"\u00a0");XM(y,"/channel/"+X.channelId);y.classList.add("yt-formatted-string","yt-simple-endpoint");y.setAttribute("spellcheck","false");G.isCollapsed()||G.JSC$11223_removeContents();G.insertNode(y,!0);X=document.createTextNode(" ");
y.parentNode.insertBefore(X,y.nextSibling);window.getSelection().collapse(X,1);t={suggestionSelected:{suggestionIndex:t}};if(this.zeroPrefixMentionSuggestionEnabled){var w;t.suggestionSelected.isZeroPrefix=((w=this.suggestionsResponse)==null?void 0:w.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",t);this.cancelActiveMention();_.Yt(this.hostElement,"yt-mention-inserted")}}};
_.H.getPositionTarget=function(X){return X&&X.getBrowserRangeObject()};
_.H.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.H.onFocusedSuggestionIdChanged=function(X){var t=_.V1s(this.hostElement)[0];t&&(X.detail.value?t.setAttribute("aria-activedescendant",X.detail.value):t.removeAttribute("aria-activedescendant"))};
_.H.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.H.logGELEvent=function(X,t){X={eventType:X,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};t&&(X=Object.assign(X,t));_.a7("userMentionAutoCompleteBoxEvent",X)};
uN.prototype.onDomChange=uN.prototype.onDomChange;uN.prototype.onUserMentionSuggestionSelected=uN.prototype.onUserMentionSuggestionSelected;uN.prototype.onServiceRequestError=uN.prototype.onServiceRequestError;uN.prototype.onServiceRequestCompleted=uN.prototype.onServiceRequestCompleted;uN.prototype.onServiceRequestSent=uN.prototype.onServiceRequestSent;uN.prototype.onInput=uN.prototype.onInput;_.E([_.q(_.NN),_.U("design:type",Object)],uN.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],uN.prototype,"suggestionsEndpoint",void 0);_.E([_.K(),_.U("design:type",Object)],uN.prototype,"suggestionsResponse",void 0);_.E([_.K(),_.U("design:type",Object)],uN.prototype,"activeMention",void 0);_.E([_.rt("#dropdown"),_.U("design:type",Object)],uN.prototype,"dropdown",void 0);_.E([_.rt("#iron-dropdown"),_.U("design:type",Object)],uN.prototype,"ironDropdown",void 0);
_.E([_.WW("input"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],uN.prototype,"onInput",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uN.prototype,"onServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uN.prototype,"onServiceRequestCompleted",null);
_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uN.prototype,"onServiceRequestError",null);_.E([_.WW("yt-user-mention-suggestion-selected"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uN.prototype,"onUserMentionSuggestionSelected",null);
_.E([_.WW("dom-change"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uN.prototype,"onDomChange",null);_.E([_.$F({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],uN);
_.N(uN,"yt-user-mention-autosuggest-input",function(){if(m2z===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;U2z===void 0&&(U2z=document.createElement("template"));var y=U2z;G.call(t,y.content.cloneNode(!0),X.content.firstChild);m2z=X}X=m2z;return X},{mode:2});var Qy=null;
_.le({is:"ytd-commentbox",_template:function(){if(puR!==void 0)return puR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return puR=X},
behaviors:[_.mLJ.YtHostElementBehavior,_.NN,_.sb.YtActionHandlerBehavior,_.zw.YtComponentBehavior,_.YZ.YtRendererstamperBehavior,_.rxh.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(X,t){return _.Kg(X.entities,"aadcGuidelinesStateEntityPayload",t)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(X,t){return _.Kg(X.entities,"commentboxStateEntity",t)},
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 _.wQ}},
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:_.A("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.A("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",_.Ik(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(X){this.fire(X?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(X){this.set("submitButtonDisabled",void 0);this.clear();X&&this.computeIsEmojiButtonDisplayed_(X)&&(X=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&X.updateEmojiCategories()},
observePrefilledImage_:function(X,t,G){this.isValidPrefilledImage_(X,t,G)&&(this.prefilledAttachment_="image",this.prefilledImageData_=t,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(X,t){this.isValidPrefilledVideo_(X,t)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(X){X&&X.pollData&&X.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(X.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.O_();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ik(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(X){X=X.detail;X=X.isCustomEmoji?X.shortcuts[0]:X.emojiId;var t=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(t,X);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var X=_.cv();if(X){X=X.getBrowserRangeObject();for(var t=X.commonAncestorContainer;t;){if(t===this.getEditableTextArea_())return X;t=t.parentNode}}X=this.getEditableTextArea_();X=_.$r(X,X.childNodes.length);X.select();return X.getBrowserRangeObject()},
insertTextWithEmojis_:function(X,t,G){(t=this.emojiManager.createDocumentFragment(t,!0,!1,G===void 0?!0:G))&&t.childNodes.length!==0&&(X.collapsed||X.deleteContents(),G=t.lastChild,X.insertNode(t),_.Urq(G).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var X=_.cv();if(X){var t=X.JSC$11223_getStartNode(),G=X.JSC$11223_getEndNode();if(SNl(t)&&SNl(G)){var y=X.JSC$11223_getStartOffset(),w;if(_.Ox&&t.nodeType===Node.ELEMENT_NODE&&(w=_.mzB(t)))_.$r(w,0).select();else{w=Qj(t)?t:_.xT(t,Qj);var z=Qj(G)?G:_.xT(G,Qj);if(w||z)if(X.isCollapsed()){if(t.nodeType===Node.TEXT_NODE){X=!0;y===t.length&&(X=!1);if(Qy==="end"||Qy==="right")X=!1;t=t.parentNode;X=[].concat(_.RY(t.parentNode.childNodes)).indexOf(t)+(X?0:1);_.$r(t.parentNode,
X).select()}}else w?w.previousSibling&&w.previousSibling.length>0?_.t0(G,X.JSC$11223_getEndOffset(),w.previousSibling,w.previousSibling.length-1).select():(t=document.createTextNode("\u200b"),w.parentNode.insertBefore(t,w),_.t0(G,X.JSC$11223_getEndOffset(),t,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.t0(t,X.JSC$11223_getStartOffset(),z.nextSibling,1).select():(G=document.createTextNode("\u200b"),z.parentNode.insertBefore(G,z.nextSibling),_.t0(t,X.JSC$11223_getStartOffset(),G,G.length).select()));
Qy=null}}else Qy=null}else Qy=null},
leftKeyPressed_:function(){Qy="left"},
rightKeyPressed_:function(){Qy="right"},
endKeyPressed_:function(){Qy="end"},
maybeDeleteChip_:function(){var X=ORs(!0);if(X){var t=_.cv(),G=t.JSC$11223_getStartNode();t=t.JSC$11223_getStartOffset();_.ly(G,t,X,X.childNodes.length).select()}},
maybeBackspaceChip_:function(){var X=ORs(!1);if(X){var t=_.cv(),G=t.JSC$11223_getStartNode();t=t.JSC$11223_getStartOffset();_.ly(G,t,X,0).select()}},
maybeBackspaceChipWordMode_:function(X){var t=_.cv();if(t.isCollapsed()){var G=t.JSC$11223_getStartNode();t=t.JSC$11223_getStartOffset();var y=u8V(G,t,!0);y&&(_.ly(G,t,y,0).select(),document.execCommand("delete"),X.preventDefault(),X.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(X){var t=_.cv();if(t.isCollapsed()){var G=t.JSC$11223_getStartNode();t=t.JSC$11223_getStartOffset();var y=u8V(G,t,!1);y&&(_.ly(G,t,y,y.childNodes.length).select(),document.execCommand("delete"),X.preventDefault(),X.stopImmediatePropagation())}},
onTap_:function(X){if(!X.defaultPrevented&&(X.currentTarget.tagName==="YTD-COMMENTBOX"&&Qj(X.target)&&X.preventDefault(),this.isEmojiPickerDisplayed)){var t=this.$$("#emojis"),G=this.$$("#emoji-button"),y=this.getEditableTextArea_();if((X=X.path?X.path:X.composedPath&&X.composedPath())&&!X.includes(t)&&!X.includes(y)&&!X.includes(G))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(X,t,G){return X==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&t!==void 0&&t.encryptedBlobId!==null&&t.sourceExternalVideoId!==null&&G!==void 0&&G.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(X,t){return X==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!t&&!!t.videoRenderer&&!!t.videoRenderer.videoId},
isValidPrefilledAttachment_:function(X,t,G){return this.isValidPrefilledImage_(X,t,G)||this.isValidPrefilledVideo_(X,G)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.A("enable_multi_image_post_creation")){var X=this.$$("ytd-backstage-multi-image-select-renderer");X&&X.hasImages()&&X.cancel()}else(X=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&X.cancel();(X=this.$["poll-attachment"])&&this.hasPoll_&&X.clearPollOptions();(X=this.$["image-poll-attachment"])&&this.hasImagePoll_&&X.resetPollOptions();(X=this.$["quiz-attachment"])&&this.hasQuiz_&&X.resetQuizOptions();
(X=this.$["video-link-attachment"])&&this.hasVideo_&&X.cancel();(X=this.$["access-restrictions-selector"].firstElementChild)&&X.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 _.Sm(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Sm(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(X,t){X=ZRl(X,this.emojiManager,t).cloneNode(!0);for(t=X.firstChild;t;)if(t.nodeType!==1)t=t.nextSibling;else switch(t.tagName){case "BR":var G=_.vI();_.fPe(G,t);t=G.nextSibling;break;case "DIV":(G=t.lastChild)&&t.nextSibling&&_.fN(_.vI(),G);t.previousSibling&&(t.previousSibling.nodeType===1||t.previousSibling.nodeType===3&&!t.previousSibling.textContent.endsWith("\n"))&&_.xo(_.vI(),t);G&&G.nodeName==="BR"&&_.uf(G);G=t;t.hasChildNodes()?(t=t.firstChild,
_.MYe(G)):(t=t.nextSibling,_.uf(G));break;default:t=t.nextSibling}return QtV(X)},
onAddImageError_:function(X){X.stopPropagation();this.errorMessage_=_.Vl(X.detail)},
setTextAreaValue_:function(X){X||(X="");var t=this.getEditableFormattedString_();t.text="";this.getEditableTextArea_().innerText="";typeof X==="string"&&(X={runs:[{text:X}]});t.text=X},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Qy=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var X=this.getEditableTextArea_();X&&(_.$r(X,X.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Md("HTML_DIR")==="rtl"){var X=this.getEditableTextArea_(),t=this.getTextAreaValue()!==""?"auto":"rtl";X.setAttribute("dir",t)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var X;return lMs((X=this.$["quiz-attachment"])==null?void 0:X.getExplanationText())||lMs(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var X=null;if(this.isEmojiButtonDisplayed){var t=this.getInputRange_();t&&(X=this.emojiInput.retrieveTextBeforeRange(t))}this.insertText_(X,!0);this.updateCharCount_();this.setSubmitButton_();X=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=X.scrollHeight>X.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var X=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:X})},
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(X){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(X)},
onPasteEmoji_:function(X){X.preventDefault();X.stopImmediatePropagation();X=X.clipboardData.getData("text/plain");this.insertText_(X,!1,!1)},
insertText_:function(X,t,G){t=t===void 0?!1:t;G=G===void 0?!0:G;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&X){var y=this.getInputRange_().cloneRange();this.emojiManager&&y&&(t&&this.emojiInput.offsetStartOfRangeBy(y,X.length),this.insertTextWithEmojis_(y,X,G),hEE(this.getEditableTextArea_().lastChild)||(y=this.getInputRange_().cloneRange()),y&&(this.emojiInput.updateSuggestions(y,X),this.updateSuggestionOffset_(y)))}},
setSubmitButton_:function(){if(this.data){var X=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",t=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(X||t){var G=this.getTextAreaValue().trim();t=G===this.previousText_;G=!G||this.aboveCharLimit_;X&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(G=this.aboveCharLimit_);this.submitButtonDisabled=
t||G||!this.getTextLength();X&&_.A("enable_post_scheduling")&&(this.submitButtonDisabled=t&&!this.scheduledPublishTimeSec_||G)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.bu,computeCreationBoxClass_:function(X){return X?"focused":"not-focused"},
computeFooterMessageClass_:function(X,t){return t?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(X,t){return t?t:X},
computeFooterMessageHidden_:function(X,t){return!t&&!X},
computePlaceholderText_:function(X,t,G){return(G==="video"||G==="image")&&(X==null?0:X.prefilledPlaceholderText)?X==null?void 0:X.prefilledPlaceholderText:t==="poll"||t==="image-poll"?X==null?void 0:X.pollPostPlaceholderText:t==="quiz"?X==null?void 0:X.quizPostPlaceholderText:t==="image"?X==null?void 0:X.imagePostPlaceholderText:X==null?void 0:X.placeholderText},
computeHideAttachmentButtons_:function(X,t,G,y){return X===void 0?!1:y&&this.getSimpleString(y)===this.getSimpleString(X.rateLimitErrorMessage)?!0:t!=="none"||G!=="none"||!X.videoLinkButton&&!X.pollButton&&!X.imagePollButton&&!X.quizButton&&!X.imageButton},
computeHideDismissableAttachment_:function(X){return X!=="image"&&X!=="video"},
computeHasVideo_:function(X){return X==="video"},
computeHasImage_:function(X){return X==="image"},
computeHasPoll_:function(X){return X==="poll"},
computeHasImagePoll_:function(X){return X==="image-poll"},
computeHasQuiz_:function(X){return X==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(X){return X&&X.backstageAttachment?X.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!X.backstageAttachment.quizRenderer&&!X.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(X){if(this.isValidPrefilledAttachment_(X.purpose,X.prefilledImageData,X.backstageAttachment))return X.backstageAttachment},
computeEditAttachment_:function(X){if(this.computePrefilledContent_(X)===void 0)return X.backstageAttachment},
computeAuthorThumbnailDimension_:function(X,t){return X&&!t?24:40},
computeImageUploadEndpoint_:function(X){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",X)},
computeRateLimitErrorCommands_:function(X){var t,G;return X==null?void 0:(t=X.advancedTierFeatures)==null?void 0:(G=t.rateLimit)==null?void 0:G.rateLimitCommands},
computeIsBackstageComment_:function(X){return!(!X||X!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(X){return this.get("submitButton.buttonRenderer.serviceEndpoint",X)||this.get("replyButton.buttonRenderer.serviceEndpoint",X)||this.get("postButton.buttonRenderer.serviceEndpoint",X)},
computeSubmitButtonOverride:function(){if(_.A("web_modern_buttons")){var X,t;return{segmentedPosition:this.dropdownSchedulePanel_||!((X=this.data)==null?0:(t=X.postOptionsMenu)==null?0:t.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.A("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(X,t){X=this.get("submitButton.buttonRenderer",X)||this.get("replyButton.buttonRenderer",X)||this.get("postButton.buttonRenderer",X);t&&(X=t);X&&(X=Object.assign({},X),X.serviceEndpoint=void 0,X.isDisabled=this.submitButtonDisabled);return X},
computeHasExternalLinksAccess_:function(X){if(_.A("enable_rfa_external_links")){var t,G,y;return(y=X==null?void 0:(t=X.advancedTierFeatures)==null?void 0:(G=t.externalLinks)==null?void 0:G.allowExternalLinks)!=null?y:!0}return!0},
computeIsEmojiButtonDisplayed_:function(X){return X.emojiButton&&X.emojiPicker&&X.emojiPicker.emojiPickerRenderer&&X.emojiPicker.emojiPickerRenderer.categories?X.emojiPicker.emojiPickerRenderer.categories.find(function(t){return t.emojiPickerCategoryRenderer?t.emojiPickerCategoryRenderer.emojiIds&&t.emojiPickerCategoryRenderer.emojiIds.length>0:t.emojiPickerUpsellCategoryRenderer?t.emojiPickerUpsellCategoryRenderer.emojis&&t.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(X){return X.charLimit?X.charLimit:null},
computeDropdownSchedulingPanel_:function(X,t){if(X==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&t)return t},
computeInlineSchedulingPanel_:function(X,t){if(X==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&t)return t},
computeHideAuthorThumbnail_:function(X,t){return X||this.computeUseIdentityChip_(t)},
computeHideIdentityChipRenderer_:function(X,t){return X||!this.computeUseIdentityChip_(t)},
computeUseIdentityChip_:function(X){return!!X&&!!X.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(X){var t,G,y,w;(X==null?0:(t=X.detail)==null?0:(G=t.endpoint)==null?0:G.ypcGetOffersEndpoint)||(X==null?0:(y=X.detail)==null?0:(w=y.endpoint)==null?0:w.ypcOffersEndpoint)?(X.stopPropagation(),_.hE(this,[X.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",X)&&(X.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(X){this.addedAttachment="video";this.selectedVideoId_=X.detail.videoId},
commentboxStateEntityChanged_:function(X){var t=this;(X==null?void 0:X.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(X==null?void 0:X.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){t.focus()})},
onYtServiceRequestSent_:function(X,t){if(t.actions)for(X=_.J(t.actions),t=X.next();!t.done;t=X.next())t.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(X){this.isLoading=!1;var t=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",X),G,y,w,z=X==null?void 0:(G=X.detail)==null?void 0:(y=G.data)==null?void 0:(w=y.actionResult)==null?void 0:w.commentboxStateEntityKey;if(t)this.errorMessage_=t;else if(z){var B;this.dismissData_=X==null?void 0:(B=X.detail)==null?void 0:B.data;this.commentboxStateKey_=z}else{this.clear();var V;this.fire("yt-commentbox-dismiss",X==null?void 0:(V=X.detail)==
null?void 0:V.data)}},
onYtServiceRequestError_:function(X){X.stopPropagation();this.isLoading=!1;var t,G;if(((t=this.data)==null?void 0:t.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((G=this.data)==null?void 0:G.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(t=this.get("detail.error.args",X)||[],t.length>1&&t[1].message){this.handlePostsServiceRequestError_(t[1].message);return}(X=this.get("detail.error.message",X))?this.errorMessage_=this.data.errorMessage||_.Vl(X):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(X){if(_.A("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var t=_.J(this.rateLimitErrorCommands),G=t.next();!G.done;G=t.next())if(G=G.value,G.errorLabel===X){_.cj(G.command,this.hostElement);return}this.errorMessage_=_.Vl(X)},
submitIfNotBackstagePost_:function(X){if(!this.isBackstagePost)this.onSubmit_(X)},
onSubmit_:function(X){var t=this,G,y,w,z,B,V,b,e,g,F,T,D,h,u,W;return _.n(function(c){switch(c.nextAddress){case 1:X.stopPropagation();if(!t.serviceEndpoint||!t.isValidInput_())return c.return();if(t.shouldShowPostAadcNotice_())return t.showPostAadcNotice_(),c.return();if(t.shouldShowCommentAadcNotice_())return t.showCommentAadcNotice_(),c.return();if(!(t.$$("ytd-backstage-multi-image-select-renderer")&&t.hasImage_&&_.A("enable_multi_image_post_creation"))){c.jumpTo(2);break}G=t.$$("ytd-backstage-multi-image-select-renderer");
return c.yield(G.getAllUploadStatuses(),3);case 3:y=c.yieldResult;if(!y)return c.return();w=_.J(y);for(z=w.next();!z.done;z=w.next())if(B=z.value,B.encryptedBlobId===void 0)return t.isLoading=!1,b=V=void 0,t.errorMessage_=(b=(V=t.imageUploadEndpoint_)==null?void 0:V.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?b:null,c.return();return c.return(t.submitForm_(void 0,void 0,void 0,void 0,G.images,t.taggedVideoId_));case 2:if(!t.hasImagePoll_||!t.$["image-poll-attachment"]){c.jumpTo(4);
break}return c.yield(t.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:e=c.yieldResult;if(!e)return c.return();g=_.J(e);for(F=g.next();!F.done;F=g.next())if(T=F.value,!T.encryptedBlobId)return t.isLoading=!1,D=void 0,t.errorMessage_=(D=t.data.errorMessage)!=null?D:null,c.return();case 4:u=(h=t.$$("ytd-backstage-image-select-renderer"))&&h.uploadPromise(),W=t.getSharedPostId_(),u?u.then(function(){t.submitForm_.apply(t,_.RY(_.f1.apply(0,arguments)))}).catch(function(P){t.isLoading=!1;
t.errorMessage_=_.Vl(P.message)}):t.selectedVideoId_?t.submitForm_(void 0,t.selectedVideoId_):t.prefilledAttachment_==="image"?t.submitForm_(t.prefilledImageData_.encryptedBlobId,void 0,void 0,t.prefilledImageData_.sourceExternalVideoId,void 0,t.taggedVideoId_):t.prefilledAttachment_==="video"?t.submitForm_(void 0,t.data.backstageAttachment.videoRenderer.videoId):W?t.submitForm_(void 0,void 0,W):t.taggedVideoId_!==void 0?t.submitForm_(void 0,void 0,void 0,void 0,void 0,t.taggedVideoId_):t.submitForm_(),
_.W$(c)}})},
openSchedulingPanel:function(X){X&&X.scheduleButton&&X.scheduleButton.buttonRenderer&&(this.scheduleButton_=X.scheduleButton.buttonRenderer);X&&X.dateTimePicker&&this.set("data.schedulingDateTimePicker",X.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(X){X.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(X){X.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(X){X.stopPropagation();X.detail.alertMessage&&(this.alertMessage_=X.detail.alertMessage)},
onImageSelected_:function(X){X.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(X){X.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(X){X.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(X.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(X){X.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(X){var t=this.$["video-link-attachment"];t&&t.onLaunchVideoPicker(X)},
onAttachmentDismiss_:function(X){X.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"&&_.A("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.A("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 X;if(this.addedAttachment==="image-poll"&&((X=this.$["image-poll-attachment"])==null||!X.isValid()))return!1;var t;if(this.addedAttachment==="quiz"&&((t=this.$["quiz-attachment"])==null||!t.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;X=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(X=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")X=!0;return X||!!this.getTextAreaValue().trim()},
submitForm_:function(X,t,G,y,w,z){var B=this.getTextAreaValue().trim(),V={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&B===this.previousText_&&(B=void 0);B!==void 0&&(V.comment_text=B);this.isLoading=!0;z!=void 0&&(V.tagged_video_id=z);X?(V.image_blob_id=X,this.imagePreviewCoordinates_&&(V.image_preview_coordinates=this.imagePreviewCoordinates_)):t?V.attached_video_id=t:G?V.shared_post_id=G:w&&w.length>0&&(V.images_data=w.map(function(b){return{encryptedBlobId:b.encryptedBlobId,
previewCoordinates:b.previewCoordinates}}));
y&&(V.source_video_id=y);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(V.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(V.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(V.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.A("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(V.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.A("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(V.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.hE(this,[this.serviceEndpoint,V])},
onIsInputFocusChanged_:function(X,t){X?this.fire("yt-autonav-pause-focus"):t!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(X){var t=this.getEditableTextArea_();[].concat(_.RY(X.dataTransfer.items)).forEach(function(G){G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(y){t.appendChild(document.createTextNode(y))})});
X.preventDefault()},
preventDefault_:function(X){X.preventDefault()},
onSuggestionInsert_:function(X){this.insertTextWithEmojis_(X.detail.range,X.detail.text)},
onEmojiSuggestionClick_:function(X){this.emojiInput.insertSuggestion(X.detail)},
computeSubmitButtonClass_:function(X,t){return!t||X?"":"with-options"},
updateSuggestionOffset_:function(X){if(this.emojiInput&&_.Sm(this.emojiInput).querySelector("#dropdown")){var t=this.getEditableTextArea_().getBoundingClientRect().bottom,G=X.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(t-G)+5;t=this.getEditableTextArea_().getBoundingClientRect().left;X=X.getBoundingClientRect().left-t;_.Sm(this.emojiInput).querySelector("#dropdown").style.marginLeft=X+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(X){if(_.A("enable_post_scheduling")&&this.data&&this.data.purpose){X=X.detail;if(Math.floor(Date.now()/1E3)>=X)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var t=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(t)||t!==X?this.scheduledPublishTimeSec_=X:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=X;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var X=["image-button","image-poll-button","poll-button"];_.A("enable_quiz_creation")&&X.push("quiz-button");_.A("auto_convert_posts_video_tag")||X.push("video-link-button");return X},
getButtonRenderer:function(X,t){if(X)switch(t){case "video-link-button":var G;return((G=X.videoLinkButton)==null?void 0:G.buttonRenderer)||void 0;case "image-button":var y;return((y=X.imageButton)==null?void 0:y.buttonRenderer)||void 0;case "poll-button":var w;return((w=X.pollButton)==null?void 0:w.buttonRenderer)||void 0;case "image-poll-button":var z;return((z=X.imagePollButton)==null?void 0:z.buttonRenderer)||void 0;case "quiz-button":var B;return((B=X.quizButton)==null?void 0:B.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var X;return(X=this.data)==null||!X.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var X,t;return!((X=this.data)==null||!X.openAadcDialog)&&!((t=this.aadcGuidelinesState_)==null||!t.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Md("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var X;((X=this.data)==null?0:X.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.M1("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(X){X.clickTrackingParams&&_.Pj().clickCommand(X);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.sl(this,"yt-close-popup-action")},
onHideIdentityChip:function(X){var t;this.set("data.placeholderText",(t=X.hideIdentityChipAction)==null?void 0:t.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var IR=function(){var X=_.O.apply(this,arguments)||this;X.isOpen=!1;X.modern=_.A("web_modern_buttons");X.roundedContainer=!0;X.dropdownButtonOverride=_.A("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;X.inPopupContainer=!1;X.isCommentboxLoading=!1;var t=["image-button","image-poll-button","poll-button"];_.A("enable_quiz_creation")&&t.push("quiz-button");_.A("auto_convert_posts_video_tag")||t.push("video-link-button");X.attachmentButtonIds=t;X.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 X};
_.S(IR,_.O);_.H=IR.prototype;_.H.computeButtonOverride=function(){var X;return((X=this.data)==null?0:X.postOptionsMenu)&&_.A("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.H.configureRendererStamper=function(){var X={"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]]"}}}}};_.A("auto_convert_posts_video_tag")||(X["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return X};
_.H.ready=function(){var X=this,t=_.Sm(this.hostElement).querySelector("#placeholder-area"),G=function(y){X.onOpen(y)};
t.addEventListener("tap",G);t.addEventListener("keypress",G)};
_.H.showButtonEduTooltip=function(){var X,t,G,y,w,z,B;if(_.A("enable_quiz_creation")&&((X=this.data)==null?0:(t=X.quizButton)==null?0:(G=t.buttonRenderer)==null?0:(y=G.hint)==null?0:(w=y.hintRenderer)==null?0:(z=w.content)==null?0:(B=z.bubbleHintRenderer)==null?0:B.text)&&(_.A_.getInstance(),X=Y6(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(X==null?void 0:
X.length)>0)){this.ytComponentBehavior.resolveCommand(X[0],{form:{element:this.quizButton}});return}var V;if((V=this.data)==null?0:V.imagePollButtonTooltip)if(_.A_.getInstance(),V=Y6(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(V==null?void 0:V.length)>0){this.ytComponentBehavior.resolveCommand(V[0],{form:{element:this.imagePollButton}});return}var b;_.A("enable_multi_image_post_creation")&&
((b=this.data)==null?0:b.multiImageButtonTooltip)&&(_.A_.getInstance(),b=Y6(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(b==null?void 0:b.length)>0&&this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.imageButton}}))};
_.H.onCreatePollAction=function(X){_.Y(X,TYq)&&(this.JSC$15674_commentbox.addedAttachment="poll",this.openDialog())};
_.H.onAddVideoLinkAction=function(X){if(_.Y(X,eH4))this.JSC$15674_commentbox.onAddVideoLink(X)};
_.H.onShowSchedulingPanelCommand=function(X){(X=_.Y(X,RsJ))&&this.openSchedulingPanel(X)};
_.H.onCreateImagePollCommand=function(X){_.Y(X,BB4)&&(this.JSC$15674_commentbox.openImagePollComponent(),this.openDialog())};
_.H.onCreateQuizCommand=function(X){_.Y(X,n_R)&&(this.JSC$15674_commentbox.openQuizComponent(),this.openDialog())};
_.H.openSchedulingPanel=function(X){_.A("enable_post_scheduling")&&(this.openDialog(),this.JSC$15674_commentbox.openSchedulingPanel(X))};
_.H.onCreateCommentAction=function(X){this.get("createCommentAction.contents",X)&&(this.JSC$15674_commentbox.clear(),this.closeDialog())};
_.H.onOpen=function(X){X instanceof KeyboardEvent&&X.type==="keypress"&&X.keyCode!==13&&X.keyCode!==32||(this.data.prepareAccountEndpoint?_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.H.onYtCommentboxDismiss=function(){this.closeDialog()};
_.H.onYtCommentboxLoadingStart=function(X){X.stopPropagation();this.isCommentboxLoading=!0};
_.H.onYtCommentboxLoadingEnd=function(X){X.stopPropagation();this.isCommentboxLoading=!1};
_.H.onYtVideoLinkButtonCancel=function(X){X.stopPropagation();this.onOpen(X)};
_.H.onYtVideoLinkSelected=function(X){X.stopPropagation();this.onOpen(X)};
_.H.onIronSelect=function(X){X.stopPropagation();X.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=X.detail.item.value&&(this.accessRestriction?(this.accessRestriction=X.detail.item.value,this.onOpen(X)):this.accessRestriction=X.detail.item.value)};
_.H.onYtNavigate=function(X){this.get("detail.endpoint.backstageImageUploadEndpoint",X)&&(this.JSC$15674_commentbox.addedAttachment="image",this.JSC$15674_commentbox.submitButtonDisabled=!0,this.onOpen(X))};
_.H.onRequestSent=function(X){if(_.A("web_button_rework"))for(var t=_.J(X.detail),G=t.next();!G.done;G=t.next())_.Y(G.value,YCq)&&(this.JSC$15674_commentbox.addedAttachment="image",this.JSC$15674_commentbox.submitButtonDisabled=!0,this.onOpen(X))};
_.H.openDialog=function(){this.JSC$15674_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15674_commentbox.focus()};
_.H.onPopupClosed=function(){_.A_.getInstance()};
_.H.computeCreationDisabled=function(X){return!!X};
_.H.computeIsCreationDialog=function(X){return!!X&&X==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.H.computeDisabledPostButton=function(X){if(!X)return null;X.isDisabled=!0;return X};
_.H.computeIsCreationDialogWithHeader=function(X){return!this.inPopupContainer&&!!X&&!!X.authorText&&X.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.H.computeIsHeaderHidden=function(X,t){return!X||t};
_.H.computeDropdownRendererClasses=function(X){return X?["text-secondary-style"]:[]};
_.H.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var X=_.Sm(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;X&&X.reset()};
IR.prototype.onPopupClosed=IR.prototype.onPopupClosed;IR.prototype.onRequestSent=IR.prototype.onRequestSent;IR.prototype.onYtNavigate=IR.prototype.onYtNavigate;IR.prototype.onIronSelect=IR.prototype.onIronSelect;IR.prototype.onYtVideoLinkSelected=IR.prototype.onYtVideoLinkSelected;IR.prototype.onYtVideoLinkButtonCancel=IR.prototype.onYtVideoLinkButtonCancel;IR.prototype.onYtCommentboxLoadingEnd=IR.prototype.onYtCommentboxLoadingEnd;IR.prototype.onYtCommentboxLoadingStart=IR.prototype.onYtCommentboxLoadingStart;
IR.prototype.onYtCommentboxDismiss=IR.prototype.onYtCommentboxDismiss;IR.prototype.showButtonEduTooltip=IR.prototype.showButtonEduTooltip;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],IR.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],IR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],IR.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],IR.prototype,"isOpen",void 0);_.E([_.K({computed:"computeButtonOverride(data)"}),_.U("design:type",Object)],IR.prototype,"buttonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],IR.prototype,"modern",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],IR.prototype,"roundedContainer",void 0);_.E([_.K(),_.U("design:type",Object)],IR.prototype,"dropdownButtonOverride",void 0);_.E([_.K({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.U("design:type",Boolean)],IR.prototype,"creationDisabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],IR.prototype,"enableCreationBox",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.U("design:type",Boolean)],IR.prototype,"isCreationDialog",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],IR.prototype,"inPopupContainer",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.U("design:type",Boolean)],IR.prototype,"isCreationDialogWithHeader",void 0);_.E([_.K(),_.U("design:type",Object)],IR.prototype,"accessRestriction",void 0);
_.E([_.K({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.U("design:type",Array)],IR.prototype,"dropdownRendererClasses",void 0);_.E([_.K(),_.U("design:type",Object)],IR.prototype,"isCommentboxLoading",void 0);_.E([_.K(),_.U("design:type",Array)],IR.prototype,"attachmentButtonIds",void 0);_.E([_.rt("#image-button"),_.U("design:type",HTMLElement)],IR.prototype,"imageButton",void 0);
_.E([_.rt("#image-poll-button"),_.U("design:type",HTMLElement)],IR.prototype,"imagePollButton",void 0);_.E([_.rt("#quiz-button"),_.U("design:type",HTMLElement)],IR.prototype,"quizButton",void 0);_.E([_.rt("#commentbox"),_.U("design:type",Object)],IR.prototype,"JSC$15674_commentbox",void 0);_.E([_.cW("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],IR.prototype,"showButtonEduTooltip",null);
_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],IR.prototype,"onYtCommentboxDismiss",null);_.E([_.WW("yt-commentbox-loading-start"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],IR.prototype,"onYtCommentboxLoadingStart",null);
_.E([_.WW("yt-commentbox-loading-end"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],IR.prototype,"onYtCommentboxLoadingEnd",null);_.E([_.WW("yt-video-link-button-cancel"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],IR.prototype,"onYtVideoLinkButtonCancel",null);
_.E([_.WW("yt-video-link-selected"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],IR.prototype,"onYtVideoLinkSelected",null);_.E([_.WW("iron-select"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],IR.prototype,"onIronSelect",null);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],IR.prototype,"onYtNavigate",null);
_.E([_.WW("yt-service-request-sent-button-renderer"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],IR.prototype,"onRequestSent",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],IR.prototype,"onPopupClosed",null);_.E([_.p({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],IR);
_.N(IR,"ytd-backstage-post-dialog-renderer",function(){if(e6z!==void 0)return e6z;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return e6z=X},{mode:1});var a5o;var l5Y;var W_=function(){return _.O.apply(this,arguments)||this};
_.S(W_,_.O);_.H=W_.prototype;_.H.computeHeartButtonStyle=function(X){return(X==null?0:X.styleType)?X.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.H.onYtButtonTap=function(){if(this.data.isEnabled){var X=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(X=this.getEndpoint(X))&&_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}})}else(X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(X)};
_.H.toggle=function(X){this.set("data.isHearted",X!==void 0?X:!this.data.isHearted)};
_.H.getEndpoint=function(X){var t,G=(t=this.data)==null?void 0:t.heartEndpoint,y;t=(y=this.data)==null?void 0:y.unheartEndpoint;if(G&&t)return X?t:G};
_.H.computeButtonAccessibility=function(X,t){var G,y,w=X==null?void 0:(G=X.heartedAccessibility)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label,z,B;X=X==null?void 0:(z=X.unheartedAccessibility)==null?void 0:(B=z.accessibilityData)==null?void 0:B.label;return t?w:X};
_.ke.Object.defineProperties(W_.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 X;return _.A("kevlar_system_icons")&&!((X=this.data)==null||!X.isHearted)}}});
W_.prototype.onYtButtonTap=W_.prototype.onYtButtonTap;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],W_.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],W_.prototype,"data",void 0);_.E([_.C("data.isHearted"),_.U("design:type",Object),_.U("design:paramtypes",[])],W_.prototype,"heartTooltip",null);
_.E([_.C("data.isHearted"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],W_.prototype,"iconFilled",null);_.E([_.K({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.U("design:type",String)],W_.prototype,"buttonAccessibility",void 0);_.E([_.K({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.U("design:type",String)],W_.prototype,"heartButtonStyle",void 0);
_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],W_.prototype,"onYtButtonTap",null);_.E([_.p({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],W_);
_.N(W_,"ytd-creator-heart-renderer",function(){if(l5Y!==void 0)return l5Y;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return l5Y=X},{mode:1});var c_=function(){var X=_.O.apply(this,arguments)||this;X.hasCreatorReply=!1;X.buttonOverrides={size:"S",iconPosition:"icon-only"};X.replyButtonOverrides={size:"S",type:"text"};X.forceIconButton=!_.A("web_modern_buttons");X.modern=_.A("web_modern_buttons");X.buttonTooltipPosition="bottom";X.systemIcons=_.A("kevlar_system_icons");X.replyDialog=null;return X};
_.S(c_,_.O);_.H=c_.prototype;
_.H.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]]"}}}}}};
_.H.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.H.dataChange=function(){this.replyDialog&&_.Sm(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var X,t,G;this.isLiked=this.systemIcons&&!!((X=this.data)==null?0:(t=X.likeButton)==null?0:(G=t.toggleButtonRenderer)==null?0:G.isToggled)};
_.H.computeShowVoteCountBeginning=function(X,t){return X===void 0||t===void 0?!0:X.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.H.computeShowVoteCountEnd=function(X,t){return X===void 0||t===void 0?!0:X.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.H.computeShowCommentCount=function(X,t){return X===void 0||t===void 0?!0:X.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.H.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.H.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.H.showReplyDialog=function(X){X&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Sm(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=X,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.H.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.H.onRequestSent=function(X){if(_.A("web_button_rework")){X=_.J(X.detail);for(var t=X.next();!t.done;t=X.next())(t=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",t.value))&&this.showReplyDialog(t)}};
_.H.onYtNavigate=function(X){var t,G;(X=(t=_.Y(X.detail.endpoint,_.DNP))==null?void 0:(G=t.dialog)==null?void 0:G.commentReplyDialogRenderer)&&this.showReplyDialog(X)};
_.H.onYtServiceRequestSent=function(X,t){X.stopPropagation();if(t.actions)for(X=0;X<t.actions.length;X++){var G=_.Y(t.actions[X],hHt);G&&this.handleUpdateCommentVoteAction(G)}};
_.H.handleUpdateCommentVoteAction=function(X){this.voteCount=X.voteCount||_.Vl("0");X.voteStatus==="LIKE"?this.JSC$15685_ytdDislikeToggleButtonRenderer.toggle(!1):X.voteStatus==="DISLIKE"?this.JSC$15685_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15685_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15685_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.H.computeReplyButtonHidden=function(X){return X};
_.H.computeReplyButtonBeginning=function(X){return(X==null?0:X.replyButton)&&X.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?X.replyButton:void 0};
_.H.computeReplyButtonEnd=function(X){return(X==null?0:X.replyButton)&&X.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?X.replyButton:void 0};
_.H.computeActionButtonStyle=function(X){return(X==null?0:X.style)?X.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.H.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.H.onYtToggleButton=function(X){var t,G;this.isLiked=this.systemIcons&&!!((t=X.detail)==null?0:(G=t.actions)==null?0:G.like)};
c_.prototype.onYtToggleButton=c_.prototype.onYtToggleButton;c_.prototype.onButtonTooltipPositionChanged=c_.prototype.onButtonTooltipPositionChanged;c_.prototype.onYtServiceRequestSent=c_.prototype.onYtServiceRequestSent;c_.prototype.onYtNavigate=c_.prototype.onYtNavigate;c_.prototype.onRequestSent=c_.prototype.onRequestSent;c_.prototype.onYtCommentboxDismiss=c_.prototype.onYtCommentboxDismiss;c_.prototype.dataChange=c_.prototype.dataChange;
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],c_.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],c_.prototype,"voteCount",void 0);_.E([_.K(),_.U("design:type",Object)],c_.prototype,"commentCount",void 0);_.E([_.K(),_.U("design:type",Object)],c_.prototype,"replyThumbnail",void 0);
_.E([_.K(),_.U("design:type",Object)],c_.prototype,"hasCreatorReply",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],c_.prototype,"enableCreationBox",void 0);_.E([_.K({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.U("design:type",String)],c_.prototype,"actionButtonsStyle",void 0);_.E([_.K({computed:"computeReplyButtonBeginning(data)"}),_.U("design:type",Object)],c_.prototype,"replyButtonBeginning",void 0);
_.E([_.K({computed:"computeReplyButtonEnd(data)"}),_.U("design:type",Object)],c_.prototype,"replyButtonEnd",void 0);_.E([_.K(),_.U("design:type",Object)],c_.prototype,"buttonOverrides",void 0);_.E([_.K(),_.U("design:type",Object)],c_.prototype,"replyButtonOverrides",void 0);_.E([_.K(),_.U("design:type",Object)],c_.prototype,"forceIconButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],c_.prototype,"useCommentIcon",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],c_.prototype,"modern",void 0);_.E([_.K(),_.U("design:type",Object)],c_.prototype,"buttonTooltipPosition",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],c_.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],c_.prototype,"isLiked",void 0);_.E([_.rt("ytd-button-renderer"),_.U("design:type",Object)],c_.prototype,"ytdReplyButtonRenderer",void 0);
_.E([_.rt("#like-button"),_.U("design:type",Object)],c_.prototype,"JSC$15685_ytdLikeToggleButtonRenderer",void 0);_.E([_.rt("#dislike-button"),_.U("design:type",Object)],c_.prototype,"JSC$15685_ytdDislikeToggleButtonRenderer",void 0);_.E([_.rt("#reply-dialog"),_.U("design:type",HTMLElement)],c_.prototype,"replyDialogElement",void 0);_.E([_.rt("#reply-button"),_.U("design:type",HTMLElement)],c_.prototype,"replyButtonElement",void 0);
_.E([_.rt("#reply-button-end"),_.U("design:type",HTMLElement)],c_.prototype,"replyButtonEndElement",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],c_.prototype,"dataChange",null);_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],c_.prototype,"onYtCommentboxDismiss",null);
_.E([_.WW("yt-service-request-sent-button-renderer"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],c_.prototype,"onRequestSent",null);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],c_.prototype,"onYtNavigate",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],c_.prototype,"onYtServiceRequestSent",null);_.E([_.cW("buttonTooltipPosition"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],c_.prototype,"onButtonTooltipPositionChanged",null);
_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],c_.prototype,"onYtToggleButton",null);_.E([_.p({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],c_);
_.N(c_,"ytd-comment-action-buttons-renderer",function(){if(a5o!==void 0)return a5o;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return a5o=X},{mode:1});var x2q;var pi=function(){return _.O.apply(this,arguments)||this};
_.S(pi,_.O);pi.prototype.focus=function(){_.Sm(this.hostElement).querySelector("#commentbox").focus()};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],pi.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],pi.prototype,"zeroStepChannelCreationRenderer",void 0);_.E([_.p({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],pi);
_.N(pi,"ytd-comment-dialog-renderer",function(){if(x2q!==void 0)return x2q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return x2q=X},{mode:1});var f5J;var rR=function(){var X=_.O.apply(this,arguments)||this;X.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.A("enable_web_delhi_icons")};X.replyButtonOverrides={size:"S",type:"text"};return X};
_.S(rR,_.O);_.H=rR.prototype;_.H.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.H.detached=function(){this.replyBox&&this.replyBox.remove()};
_.H.showReplyDialog=function(X){if(X){var t=this.replyBox;t||(t=document.createElement("ytd-comment-reply-dialog-renderer"),t.id="replybox",_.Sm(this.replyDialogDiv).appendChild(t));t.data=X;this.replyDialogDiv.hidden=!1;t.openDialog()}};
_.H.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.H.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var X,t=_.Y((X=this.toolbarSurface)==null?void 0:X.subscribersOnlyDisclaimerSnackbarCommand,_.yL);t&&_.Yt(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:t})}};
_.H.onYtServiceRequestSent=function(X,t){X.stopPropagation();if(t.actions)for(var G=0;G<t.actions.length;G++){var y=_.Y(t.actions[G],hHt);y?this.handleUpdateCommentVoteAction(y):X.target===this.heartButton&&this.toggleHeartState()}};
_.H.handleUpdateCommentVoteAction=function(X){var t;(t=this.toolbarState)!=null&&t.key&&this.ytdReduxBehavior.dispatch(_.Xc("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:X.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":X.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.H.toggleHeartState=function(){var X;(X=this.toolbarState)!=null&&X.key&&this.ytdReduxBehavior.dispatch(_.Xc("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.ke.Object.defineProperties(rR.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return(((X=this.toolbarState)==null?void 0:X.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(t=this.toolbarData)==null?void 0:t.likeCountLiked:(G=this.toolbarData)==null?void 0:G.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.toolbarSurface)==null?void 0:X.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.toolbarSurface)==null?void 0:X.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.toolbarSurface)==null?void 0:X.prepareAccountCommand)!==void 0&&!_.A("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X,t=_.Y((X=this.toolbarSurface)==null?void 0:X.prepareAccountCommand,_.yL),G,y,w,z,B,V,b,e,g;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((G=this.toolbarSharedData)==null||!G.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((y=this.toolbarState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:t!=null?t:_.Y((w=this.toolbarSurface)==null?void 0:w.likeCommand,_.yL),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.Y((z=this.toolbarSurface)==null?void 0:z.unlikeCommand,_.yL),defaultCommand:this.isVisiblyDisabled?_.Y((B=this.toolbarSurface)==null?void 0:B.commentDisabledActionCommand,_.yL):void 0,defaultTooltip:(V=this.toolbarData)==null?void 0:V.likeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:b.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(e=this.toolbarData)==null?void 0:e.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(g=this.toolbarSharedData)==null?void 0:g.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X,t=_.Y((X=this.toolbarSurface)==null?void 0:X.prepareAccountCommand,_.yL),G,y,w,z,B,V,b,e,g,F;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((G=this.toolbarSharedData)==null||!G.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((y=this.toolbarState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.Y((w=this.toolbarSurface)==null?void 0:w.dislikeCommand,_.yL),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.Y((z=this.toolbarSurface)==null?void 0:z.undislikeCommand,_.yL),defaultCommand:this.isVisiblyDisabled?_.Y((B=this.toolbarSurface)==null?void 0:B.commentDisabledActionCommand,_.yL):void 0,defaultTooltip:(V=this.toolbarData)==null?void 0:V.dislikeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:
b.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(e=this.toolbarSharedData)==null?void 0:e.dislikeReplyButtonA11y:(g=this.toolbarSharedData)==null?void 0:g.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(F=this.toolbarSharedData)==null?void 0:F.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var X,t,G;if(((X=this.toolbarState)==null?void 0:X.heartState)!==void 0&&((t=this.toolbarState)==null?void 0:t.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((G=this.toolbarState)==null?void 0:G.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var y,w,z,B,V,b,e,g,F,T,D,h,u,W;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(y=this.toolbarData)==null?void 0:y.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((w=this.toolbarState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((z=this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((B=this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((V=this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.Y((b=this.toolbarSurface)==null?void 0:b.heartCommand,
_.yL),unheartEndpoint:this.isVisiblyDisabled?void 0:_.Y((e=this.toolbarSurface)==null?void 0:e.unheartCommand,_.yL),disabledEndpoint:this.isVisiblyDisabled?_.Y((g=this.toolbarSurface)==null?void 0:g.commentDisabledActionCommand,_.yL):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(F=this.toolbarData)==null?void 0:F.heartActiveTooltip,unheartedTooltip:(T=this.toolbarData)==null?void 0:T.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((D=
this.toolbarState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(h=this.toolbarSharedData)==null?void 0:h.unheartButtonA11y:(u=this.toolbarSharedData)==null?void 0:u.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(W=this.toolbarSharedData)==null?void 0:W.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.toolbarSurface)==null||!X.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(X=this.commentStrings)==null?void 0:X.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.Y((t=this.toolbarSurface)==null?void 0:t.replyCommand,_.yL),command:this.isVisiblyDisabled?_.Y((G=this.toolbarSurface)==null?
void 0:G.commentDisabledActionCommand,_.yL):this.isSubsOnlyCommentsIneligibleUser?_.Y((y=this.toolbarSurface)==null?void 0:y.subscribersOnlySnackbarCommand,_.yL):void 0}}}});
rR.prototype.onYtServiceRequestSent=rR.prototype.onYtServiceRequestSent;rR.prototype.hideReplyDialogDiv=rR.prototype.hideReplyDialogDiv;_.E([_.K(),_.U("design:type",Object)],rR.prototype,"commentStrings",void 0);_.E([_.K(),_.U("design:type",Boolean)],rR.prototype,"isReply",void 0);_.E([_.K(),_.U("design:type",Object)],rR.prototype,"toolbarData",void 0);_.E([_.K(),_.U("design:type",Object)],rR.prototype,"toolbarSharedData",void 0);
_.E([_.K(),_.U("design:type",String)],rR.prototype,"toolbarStateKey",void 0);_.E([_.K(),_.U("design:type",String)],rR.prototype,"toolbarSurfaceKey",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],rR.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],rR.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.dQ),_.U("design:type",Object)],rR.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.rt("#reply-dialog"),_.U("design:type",HTMLElement)],rR.prototype,"replyDialogDiv",void 0);_.E([_.rt("#replybox"),_.U("design:type",Object)],rR.prototype,"replyBox",void 0);_.E([_.rt("ytd-creator-heart-renderer"),_.U("design:type",Object)],rR.prototype,"heartButton",void 0);_.E([_.K({selector:function(X,t){return _.Kg(X.entities,"engagementToolbarStateEntityPayload",t)},
selectorArgs:["toolbarStateKey"]}),_.U("design:type",Object)],rR.prototype,"toolbarState",void 0);_.E([_.K({selector:Sk_,selectorArgs:["toolbarSurfaceKey"]}),_.U("design:type",Object)],rR.prototype,"toolbarSurface",void 0);_.E([_.K(),_.U("design:type",Object)],rR.prototype,"buttonOverrides",void 0);_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rR.prototype,"hideReplyDialogDiv",null);
_.E([_.C("toolbarData","toolbarState"),_.U("design:type",String),_.U("design:paramtypes",[])],rR.prototype,"likeCount",null);_.E([_.C("likeCount"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rR.prototype,"showLikeCount",null);_.E([_.C("toolbarSurface"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rR.prototype,"isVisiblyDisabled",null);_.E([_.C("toolbarSurface"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rR.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.E([_.C("toolbarSurface"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rR.prototype,"isSubsOnlyCommentsEligibleUser",null);_.E([_.C("toolbarSurface"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rR.prototype,"hasPrepareAccountCommand",null);_.E([_.C("toolbarData","toolbarState","toolbarSurface"),_.U("design:type",Object),_.U("design:paramtypes",[])],rR.prototype,"likeToggleButtonRenderer",null);
_.E([_.C("isReply","toolbarData","toolbarState","toolbarSurface"),_.U("design:type",Object),_.U("design:paramtypes",[])],rR.prototype,"dislikeToggleButtonRenderer",null);_.E([_.C("toolbarData","toolbarState","toolbarSurface"),_.U("design:type",Object),_.U("design:paramtypes",[])],rR.prototype,"creatorHeartSupportedRenderer",null);_.E([_.C("toolbarSurface"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rR.prototype,"hasReplyCommand",null);
_.E([_.C("toolbarSurface","commentStrings","isVisiblyDisabled"),_.U("design:type",Object),_.U("design:paramtypes",[])],rR.prototype,"replyButtonRenderer",null);_.E([_.K(),_.U("design:type",Object)],rR.prototype,"replyButtonOverrides",void 0);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],rR.prototype,"onYtServiceRequestSent",null);_.E([_.p({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],rR);
_.N(rR,"ytd-comment-engagement-bar",function(){if(f5J!==void 0)return f5J;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return f5J=X},{mode:1});var M6Y;var N6=function(){return _.O.apply(this,arguments)||this};
_.S(N6,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],N6.prototype,"data",void 0);_.E([_.p({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],N6);
_.N(N6,"ytd-comment-inline-thumbnail-renderer",function(){if(M6Y!==void 0)return M6Y;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return M6Y=X},{mode:1});var XwY;var P_=function(){return _.O.apply(this,arguments)||this};
_.S(P_,_.O);P_.prototype.onMessageTap=function(){if(this.onTapCommand){var X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);X&&this.ytdOpenPopupBehavior.openPopup(X)}};
_.ke.Object.defineProperties(P_.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return(X=this.data)==null?void 0:(t=X.button)==null?void 0:(G=t.buttonRenderer)==null?void 0:G.command}}});
_.E([_.q(_.dQ),_.U("design:type",Object)],P_.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],P_.prototype,"data",void 0);_.E([_.C("data.button.buttonRenderer.command"),_.U("design:type",Object),_.U("design:paramtypes",[])],P_.prototype,"onTapCommand",null);_.E([_.p({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],P_);
_.N(P_,"ytd-comment-pause-composer-renderer",function(){if(XwY!==void 0)return XwY;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return XwY=X},{mode:1});var $GP;var tjY;var ED=function(){var X=_.O.apply(this,arguments)||this;X.isOpen=!1;return X};
_.S(ED,_.O);_.H=ED.prototype;_.H.dataChanged=function(){this.isOpen=!1};
_.H.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.H.focus=function(){this.JSC$15715_commentbox.focus()};
_.H.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.H.openDialog=function(){this.isOpen=!0;this.JSC$15715_commentbox.focus();this.JSC$15715_commentbox.maybeHeightChanged()};
ED.prototype.onYtCommentboxDismiss=ED.prototype.onYtCommentboxDismiss;ED.prototype.dataChanged=ED.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ED.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],ED.prototype,"isOpen",void 0);_.E([_.rt("#commentbox"),_.U("design:type",Object)],ED.prototype,"JSC$15715_commentbox",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ED.prototype,"dataChanged",null);_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],ED.prototype,"onYtCommentboxDismiss",null);_.E([_.p({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],ED);
_.N(ED,"ytd-comment-reply-dialog-renderer",function(){if(tjY!==void 0)return tjY;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return tjY=X},{mode:1});var GWB;var UD=function(){return _.O.apply(this,arguments)||this};
_.S(UD,_.O);_.ke.Object.defineProperties(UD.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(X=this.data)==null?void 0:(t=X.icon)==null?void 0:t.iconType;return G?"yt-icons:"+G.toLowerCase():null}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],UD.prototype,"data",void 0);_.E([_.K(),_.C("data.icon"),_.U("design:type",Object),_.U("design:paramtypes",[])],UD.prototype,"icon",null);_.E([_.p({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],UD);
_.N(UD,"ytd-pinned-comment-badge-renderer",function(){if(GWB!==void 0)return GWB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return GWB=X},{mode:1});var y2B;var wwt={},zyP={input:!0,meta:!0,br:!0,link:!0,img:!0},m0=null;wwt.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(){m0==null&&(m0=document.createElement("tp-yt-paper-tooltip"),m0.offset=8,m0.fitToVisibleBounds=!0)},
onMouseOver_:function(X){if(X=_.xT(X.target,function(w){return w==this||w.getAttribute&&w.getAttribute("shared-tooltip-text")}.bind(this),!0)){var t=X.getAttribute("shared-tooltip-text");
if(t){var G=this,y=null;X!=this&&(X.tagName.toLowerCase()in zyP?G=X.parentElement:G=X,X.id&&(y=X.id));this.polymerController.createTooltipIfRequired_();if(m0.parentElement!=G||m0.for!=y)(0,_.Cd)(m0).textContent=t,_.Sm(G).appendChild(m0),m0.for=y,m0.animationDelay=this.polymerController.sharedTooltipAnimationDelay,m0.position=this.polymerController.sharedTooltipPosition}}}};var RR=function(){return _.O.apply(this,arguments)||this};
_.S(RR,_.O);RR.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]]"}}}}}};
RR.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
RR.prototype.colorChanged=function(){var X,t,G,y=(X=this.data)==null?void 0:(t=X.color)==null?void 0:(G=t.basicColorPaletteData)==null?void 0:G.foregroundBodyColor;y&&(this.rgbBadgeColor=_.Gq(y));_.Sm(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
RR.prototype.tooltipChanged=function(){var X;((X=this.data)==null?0:X.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
RR.prototype.tooltipChanged=RR.prototype.tooltipChanged;RR.prototype.colorChanged=RR.prototype.colorChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(wwt.YtSharedTooltipBehavior),_.U("design:type",Object)],RR.prototype,"ytSharedTooltipBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],RR.prototype,"data",void 0);
_.E([_.K({value:"#4285F4"}),_.U("design:type",String)],RR.prototype,"rgbBadgeColor",void 0);_.E([_.cW("data.color"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],RR.prototype,"colorChanged",null);_.E([_.cW("data.tooltip"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],RR.prototype,"tooltipChanged",null);_.E([_.p({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],RR);
_.N(RR,"ytd-sponsor-comment-badge-renderer",function(){if(y2B!==void 0)return y2B;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return y2B=X},{mode:1});var HaJ;var ome;var iN=function(){return _.O.apply(this,arguments)||this};
_.S(iN,_.O);iN.prototype.computeState=function(X){switch(X==null?void 0:X.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"}};
iN.prototype.updateStateIdentifier=function(X){if(this.viewModel.triStateKey){var t=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Xc("triStateButtonStateEntityPayload",t,{key:t,stateIdentifier:X}))}};
iN.prototype.onClick=function(){var X=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(){X.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){X.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.ke.Object.defineProperties(iN.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 X;return((X=this.data)==null?void 0:X.buttonText)||""}}});
_.E([_.K(),_.U("design:type",Object)],iN.prototype,"viewModel",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],iN.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],iN.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.E([_.K({selector:hxh,selectorArgs:["viewModel.triStateKey"]}),_.U("design:type",Object)],iN.prototype,"triStateButtonStateEntity",void 0);
_.E([_.K({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.U("design:type",String)],iN.prototype,"state",void 0);_.E([_.C("viewModel","state"),_.U("design:type",Object),_.U("design:paramtypes",[])],iN.prototype,"data",null);_.E([_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],iN.prototype,"buttonText",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],iN);
_.N(iN,"ytd-tri-state-button-view-model",function(){if(ome!==void 0)return ome;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ome=X},{mode:1});var J2q;var B0R;var Li=function(){var X=_.O.apply(this,arguments)||this;X.defaultIconToFilled=!_.A("kevlar_fill_comment_chip_icon_killswitch");return X};
_.S(Li,_.O);Li.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Li.prototype.dataChanged=function(){if(this.data){var X,t;((X=this.data.chipColorPalette)==null?0:X.backgroundColor)&&((t=this.data.chipColorPalette)==null?0:t.foregroundTitleColor)&&_.Kd(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.yY(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.yY(this.data.chipColorPalette.foregroundTitleColor)});var G;((G=this.data)==null?0:G.command)?(_.Kd(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Kd(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}};
Li.prototype.onTap=function(){var X;if(this.data&&(X=this.data)!=null&&X.command){var t;this.ytComponentBehavior.resolveCommand((t=this.data)==null?void 0:t.command)}};
Li.prototype.getIconSize=function(){return _.A("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Li.prototype.onTap=Li.prototype.onTap;Li.prototype.dataChanged=Li.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Li.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.NN),_.U("design:type",Object)],Li.prototype,"ironA11yKeysBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Li.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],Li.prototype,"basePriceText",void 0);_.E([_.K(),_.U("design:type",Object)],Li.prototype,"chipIcon",void 0);_.E([_.K(),_.U("design:type",Object)],Li.prototype,"defaultIconToFilled",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Li.prototype,"dataChanged",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Li.prototype,"onTap",null);
_.E([_.$F({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Li);
_.N(Li,"yt-pdg-comment-chip-renderer",function(){if(B0R===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;J2q===void 0&&(J2q=document.createElement("template"));var y=J2q;G.call(t,y.content.cloneNode(!0),X.content.firstChild);B0R=X}X=B0R;return X},{mode:2});var v_=function(){var X=_.O.apply(this,arguments)||this;X.useSmallAvatars=_.A("small_avatars_for_comments");X.webWatchCompactComments=_.A("web_watch_compact_comments");X.editDialog=null;return X};
_.S(v_,_.O);_.H=v_.prototype;_.H.onShow=function(){_.xt("cmv",void 0,"wn_comments")};
_.H.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"}}}};
_.H.detached=function(){this.editDialog=null;this.expander.reset()};
_.H.updateBackgroundColor=function(){if(this.backgroundColor){var X={"--ytd-comment-paid-background-color":_.yY(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Kd(this.hostElement,X)}else _.Kd(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.H.resetExpander=function(){var X;(X=this.expander)==null||X.reset()};
_.H.openEditDialog=function(X){X.dialog&&(this.editDialog=X.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.H.onYtNavigate=function(X){var t=X.detail.endpoint;if(t=_.Y(t,_.SCY)||_.Y(t,_.hFR))X.stopPropagation(),this.openEditDialog(t)};
_.H.onYtCommentboxDismiss=function(){this.editDialog=null;_.Kd(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.H.onAuthorThumbnailClicked=function(){_.A("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.H.onYtCommentboxResize=function(X){var t;(X==null?0:(t=X.detail)==null?0:t.height)&&_.Kd(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":X.detail.height+"px"})};
_.ke.Object.defineProperties(v_.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 X,t=(X=this.commentEntity)==null?void 0:X.author;return t&&(t.isCreator||t.isVerified||t.isArtist)?{renderer:{authorEndpoint:t.channelPageEndpoint?_.Y(t.channelPageEndpoint,_.yL):_.Y(t.channelCommand,_.yL),authorText:{runs:[{text:t.displayName}]},color:t.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:t.isArtist?{iconType:"AUDIO_BADGE"}:
t.isVerified?{iconType:t.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:t.isArtist||t.isVerified?t.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var X,t=(X=this.commentEntity)==null?void 0:X.author;return t!=null&&t.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:t.sponsorBadgeUrl}]},tooltip:t.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var X;return _.Y((X=this.commentSurfaceEntity)==null?void 0:X.pdgCommentChip,_.$0B)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var X;return this.voiceReplyContainerViewModel&&((X=this.voiceReplyContainerViewModel)==null?void 0:X.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var X;return _.Y((X=this.commentSurfaceEntity)==null?void 0:X.voiceReplyContainerViewModel,W9S)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var X;return this.voiceReplyContainerViewModel&&(X=this.voiceReplyContainerViewModel)!=null&&X.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=(X=this.commentSurfaceEntity)==null?void 0:X.commentBackgroundColor)!=null?t:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.A("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var X,t;return(((X=this.commentEntity)==null?void 0:(t=X.properties)==null?void 0:t.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var X,t;if(_.A("enable_profile_cards_on_comments")&&((X=this.commentEntity)==null?0:(t=X.author)==null?0:t.profileCardEndpoint)&&this.viewModel.allowProfileCard){var G,y;return _.Y((G=this.commentEntity)==null?void 0:(y=G.author)==null?void 0:y.profileCardEndpoint,_.yL)}var w,z;return _.Y((w=this.commentEntity)==null?void 0:(z=w.avatar)==null?void 0:z.endpoint,_.yL)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var X,t;if(_.A("enable_profile_cards_on_comments")&&((X=this.commentEntity)==null?0:(t=X.author)==null?0:t.channelPageEndpoint)){var G,y;return _.Y((G=this.commentEntity)==null?void 0:(y=G.author)==null?void 0:y.channelPageEndpoint,_.yL)}var w,z;return _.Y((w=this.commentEntity)==null?void 0:(z=w.avatar)==null?void 0:z.endpoint,_.yL)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y,w=(X=this.commentEntity)==null?void 0:(t=X.avatar)==null?void 0:(G=t.image)==null?void 0:(y=G.sources)==null?void 0:y[0];return w?{thumbnails:[{url:w.url,width:w.width,height:w.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.commentEntity)==null?0:(t=X.author)==null?0:t.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.commentEntity)==null?void 0:(t=X.author)==null?void 0:t.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.commentEntity)==null?void 0:(t=X.properties)==null?void 0:t.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var X;return _.Y((X=this.commentSurfaceEntity)==null?void 0:X.publishedTimeCommand,_.yL)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var X,t;if(((X=this.commentEntity)==null?0:X.translatedContent)&&((t=this.translateButtonState)==null?void 0:t.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var G;if((G=this.voiceReplyContainerViewModel)==null?0:G.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var y,w;return((y=this.commentEntity)==null?void 0:(w=y.properties)==null?void 0:w.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.commentSharedEntity)==null?void 0:(t=X.strings)==null?void 0:t.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.commentSharedEntity)==null?void 0:(t=X.strings)==null?void 0:t.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.commentEntity)==null||!X.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var X,t,G=(t=_.Y((X=this.viewModel)==null?void 0:X.translateButton,Iah))!=null?t:{},y,w,z,B,V,b,e,g,F,T,D;return Object.assign({},G,{untoggledStateData:Object.assign({},G.untoggledStateData,{buttonText:(y=this.commentEntity)==null?void 0:(w=y.translateData)==null?void 0:w.text}),togglingStateData:Object.assign({},G.togglingStateData,{buttonText:(z=this.commentSharedEntity)==null?
void 0:(B=z.strings)==null?void 0:B.translatingText}),toggledStateData:Object.assign({},G.toggledStateData,{buttonText:(V=this.commentSharedEntity)==null?void 0:(b=V.strings)==null?void 0:b.seeOriginalText}),transitionCommand:((e=this.commentEntity)==null?0:e.translatedContent)?void 0:_.Y((g=this.commentEntity)==null?void 0:(F=g.translateData)==null?void 0:F.translateComment,_.yL),triStateKey:(T=this.commentEntity)==null?void 0:(D=T.properties)==null?void 0:D.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((t=_.Y(_.Y((X=this.toolbarSurface)==null?void 0:X.menuCommand,_.yL),ZBR))==null?void 0:(G=t.menu)==null?void 0:G.menuRenderer)||null}}});
v_.prototype.onYtCommentboxResize=v_.prototype.onYtCommentboxResize;v_.prototype.onYtCommentboxDismiss=v_.prototype.onYtCommentboxDismiss;v_.prototype.onYtNavigate=v_.prototype.onYtNavigate;v_.prototype.resetExpander=v_.prototype.resetExpander;v_.prototype.updateBackgroundColor=v_.prototype.updateBackgroundColor;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],v_.prototype,"ytdReduxBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],v_.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.rt("#author-thumbnail > button"),_.U("design:type",HTMLElement)],v_.prototype,"authorThumbnailAnchor",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("viewModel"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],v_.prototype,"linked",null);
_.E([_.C("viewModel","linked"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"linkedCommentBadge",null);_.E([_.K({reflectToAttribute:!0}),_.C("viewModel"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],v_.prototype,"pinned",null);_.E([_.C("viewModel","pinned"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"pinnedCommentBadge",null);
_.E([_.C("commentEntity","commentSharedEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"authorCommentBadge",null);_.E([_.K({reflectToAttribute:!0}),_.C("authorCommentBadge"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"hasAuthorBadge",null);_.E([_.C("commentEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"sponsorCommentBadge",null);
_.E([_.K({reflectToAttribute:!0}),_.C("sponsorCommentBadge"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"hasSponsorBadge",null);_.E([_.C("commentSurfaceEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"pdgCommentChipRenderer",null);_.E([_.K({reflectToAttribute:!0}),_.C("voiceReplyContainerViewModel"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"hasVoiceReply",null);
_.E([_.C("commentSurfaceEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"voiceReplyContainerViewModel",null);_.E([_.C("voiceReplyContainerViewModel"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"voiceReplyUnavailableText",null);_.E([_.K(),_.U("design:type",Object)],v_.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"viewModel",null);
_.E([_.K({selector:function(X,t){return _.Kg(X.entities,"commentSharedEntityPayload",t)},
selectorArgs:["viewModel.sharedKey"]}),_.U("design:type",Object)],v_.prototype,"commentSharedEntity",void 0);_.E([_.K({selector:function(X,t){return _.Kg(X.entities,"commentEntityPayload",t)},
selectorArgs:["viewModel.commentKey"]}),_.U("design:type",Object)],v_.prototype,"commentEntity",void 0);_.E([_.K({selector:function(X,t){return _.Kg(X.entities,"commentSurfaceEntityPayload",t)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.U("design:type",Object)],v_.prototype,"commentSurfaceEntity",void 0);_.E([_.K({selector:Sk_,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.U("design:type",Object)],v_.prototype,"toolbarSurface",void 0);_.E([_.K({selector:hxh,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.U("design:type",Object)],v_.prototype,"translateButtonState",void 0);
_.E([_.C("commentSurfaceEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"backgroundColor",null);_.E([_.K({reflectToAttribute:!0}),_.C("viewModel"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],v_.prototype,"optimalReadingWidthComments",null);_.E([_.rt("ytd-expander"),_.U("design:type",Object)],v_.prototype,"expander",void 0);
_.E([_.cW("backgroundColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],v_.prototype,"updateBackgroundColor",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],v_.prototype,"useSmallAvatars",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],v_.prototype,"webWatchCompactComments",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("commentEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"isReply",null);
_.E([_.C("commentEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"authorThumbnailEndpoint",null);_.E([_.C("commentEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"authorNameEndpoint",null);_.E([_.C("commentEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"authorThumbnail",null);_.E([_.C("commentEntity"),_.U("design:type",String),_.U("design:paramtypes",[])],v_.prototype,"authorTextClass",null);
_.E([_.C("commentEntity"),_.U("design:type",String),_.U("design:paramtypes",[])],v_.prototype,"authorChannelName",null);_.E([_.C("commentEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"publishedTime",null);_.E([_.C("commentSurfaceEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"publishedTimeCommand",null);
_.E([_.C("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"contentText",null);_.E([_.cW("contentText"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],v_.prototype,"resetExpander",null);_.E([_.C("commentEntity"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],v_.prototype,"shouldShowReadMoreInitially",null);
_.E([_.C("commentSharedEntity"),_.U("design:type",String),_.U("design:paramtypes",[])],v_.prototype,"expandText",null);_.E([_.C("commentSharedEntity"),_.U("design:type",String),_.U("design:paramtypes",[])],v_.prototype,"collapseText",null);_.E([_.C("commentEntity"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],v_.prototype,"shouldShowTranslateButton",null);
_.E([_.C("commentEntity","commentSharedEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"translateButton",null);_.E([_.C("toolbarSurface"),_.U("design:type",Object),_.U("design:paramtypes",[])],v_.prototype,"overflowMenuRenderer",null);_.E([_.K(),_.U("design:type",Object)],v_.prototype,"editDialog",void 0);_.E([_.rt("ytd-comment-dialog-renderer"),_.U("design:type",Object)],v_.prototype,"editCommentDialogContainer",void 0);
_.E([_.rt("ytd-comment-reply-dialog-renderer"),_.U("design:type",Object)],v_.prototype,"editReplyDialogContainer",void 0);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],v_.prototype,"onYtNavigate",null);_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],v_.prototype,"onYtCommentboxDismiss",null);
_.E([_.WW("yt-commentbox-resize"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],v_.prototype,"onYtCommentboxResize",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-comment-view-model"})],v_);
_.N(v_,"ytd-comment-view-model",function(){if(HaJ!==void 0)return HaJ;var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return HaJ=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var aR=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("web_modern_buttons");X.commentThreadingEnabled=_.A("web_delhi_comment_threads");X.isWatchGrid=_.A("kevlar_watch_grid");X.buttonOverrides=X.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};X.JSC$15761_spinnerEl=null;return X};
_.S(aR,_.O);_.H=aR.prototype;_.H.configureContinuationPathMap=function(){return _.A("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.H.shouldShowExpandedThreads=function(X,t){return this.commentThreadingEnabled&&!t&&(X==null?void 0:X.length)>0};
_.H.shouldShowCollapsedThreads=function(X,t){return this.commentThreadingEnabled&&t&&X};
_.H.computeThreadRenderer=function(X){return _.Y(X,ZUo)};
_.H.computeIsContinuationItem=function(X){return!!this.computeContinuationItemRenderer(X)};
_.H.computeButtonRenderer=function(X){return _.Y(X,_.G4)};
_.H.computeContinuationItemRenderer=function(X){return _.Y(X,_.Fc)};
_.H.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]]"}}}}}};
_.H.attached=function(){this.isShowRepliesVisible=!0};
_.H.dataChanged=function(){var X=this.expanderContents;X&&(X.hidden=!0);this.isLoading=!1};
_.H.endsInContinuation=function(X){return!!X&&X.length>0&&!!this.computeContinuationItemRenderer(X[X.length-1])};
_.H.computeShouldShowHideRepliesButton=function(X,t){return!X&&t};
_.H.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.H.isLoadingChanged=function(){this.isLoading&&!this.JSC$15761_spinnerEl&&(this.JSC$15761_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Sm(this.expanderContents).appendChild(this.JSC$15761_spinnerEl));this.JSC$15761_spinnerEl&&(this.JSC$15761_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var X;(X=this.contents)==null||X.classList.remove("reloading")}};
_.H.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var X=_.Y(this.data.viewReplies,_.G4);X&&this.ytRendererBehavior.logExplicitClick(X);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.H.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var X=_.Y(this.data.hideReplies,_.G4);X&&this.ytRendererBehavior.logExplicitClick(X);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.H.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var X=_.Sm(this.hostElement).querySelector("#expander-contents");X&&(X.hidden=this.isShowRepliesVisible)}};
_.H.computeAlign=function(){if(this.modern){var X;return!((X=this.data)==null?0:X.viewRepliesCreatorThumbnail)}};
_.ke.Object.defineProperties(aR.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var X,t;return this.endsInContinuation((X=this.data)==null?void 0:X.contents)||this.commentThreadingEnabled&&this.endsInContinuation((t=this.data)==null?void 0:t.subThreads)}}});
aR.prototype.isShowMoreChanged=aR.prototype.isShowMoreChanged;aR.prototype.isLoadingChanged=aR.prototype.isLoadingChanged;aR.prototype.triggerFirstContinuation=aR.prototype.triggerFirstContinuation;aR.prototype.dataChanged=aR.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.oT),_.U("design:type",Object)],aR.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],aR.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],aR.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],aR.prototype,"commentThreadingEnabled",void 0);_.E([_.K(),_.U("design:type",Boolean)],aR.prototype,"collapsed",void 0);
_.E([_.K(),_.U("design:type",Function)],aR.prototype,"toggleCollapsed",void 0);_.E([_.K(),_.U("design:type",Boolean)],aR.prototype,"isLoading",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],aR.prototype,"isShowRepliesVisible",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],aR.prototype,"useNewFormatting",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],aR.prototype,"isWatchGrid",void 0);_.E([_.K(),_.U("design:type",Object)],aR.prototype,"buttonOverrides",void 0);
_.E([_.rt("#expander-contents"),_.U("design:type",HTMLElement)],aR.prototype,"expanderContents",void 0);_.E([_.rt("ytd-continuation-item-renderer"),_.U("design:type",Object)],aR.prototype,"continuationItemRenderer",void 0);_.E([_.rt("#contents"),_.U("design:type",HTMLElement)],aR.prototype,"contents",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],aR.prototype,"dataChanged",null);
_.E([_.C("data.contents","data.subThreads.*"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],aR.prototype,"hasContinuation",null);_.E([_.WW("yt-expander-more-tapped"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],aR.prototype,"triggerFirstContinuation",null);_.E([_.cW("isLoading"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],aR.prototype,"isLoadingChanged",null);
_.E([_.cW("isShowRepliesVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],aR.prototype,"isShowMoreChanged",null);_.E([_.p({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],aR);
_.N(aR,"ytd-comment-replies-renderer",function(){if($GP!==void 0)return $GP;var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return $GP=X},{mode:1});var nm4;var lN=function(){var X=_.O.apply(this,arguments)||this;X.isOpen=!1;X.commentDialog=null;X.useSmallAvatars=_.A("small_avatars_for_comments");X.useSmallAvatarsEngagementPanelOnly=_.A("small_avatars_for_comments_ep");X.placeholderFocusListener=null;X.hasOpenedDialog=!1;X.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return X};
_.S(lN,_.O);_.H=lN.prototype;_.H.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]]"}}}}}};
_.H.ready=function(){var X=this,t=_.Sm(this.hostElement).querySelector("#placeholder-area"),G=_.Sm(this.hostElement).querySelector("#simplebox-placeholder"),y=function(w){w.stopPropagation();w instanceof KeyboardEvent&&w.type==="keypress"&&w.keyCode!==13&&w.keyCode!==32||X.openDialog()};
this.placeholderFocusListener=y;G.addEventListener("focus",this.placeholderFocusListener);t.addEventListener("tap",y);t.addEventListener("keypress",y)};
_.H.maybeRemoveFocusEventListener=function(){var X;(X=this.data)!=null&&X.prepareAccountEndpoint&&!_.A("web_comments_simplebox_modal_focus_on_tap_ks")&&(X=_.Sm(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(X.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.H.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.H.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.A("web_comment_simplebox_resolve_polymer_command_ks")?_.Wj.instance.resolveCommand(this.data.prepareAccountEndpoint):_.cj(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);X&&this.ytdOpenPopupBehavior.openPopup(X);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Sm(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.H.onYtCommentboxDismiss=function(X){X.stopPropagation();this.isOpen=!1};
_.H.onCreateCommentAction=function(X){this.get("createCommentAction.contents",X)&&(this.isOpen=!1)};
_.H.computeCommentDialog=function(X){return{placeholderText:X.placeholderText,authorThumbnail:X.authorThumbnail,submitButton:X.submitButton,imageButton:X.imageButton,cancelButton:X.cancelButton,emojiButton:X.emojiButton,emojis:X.emojis,emojiPicker:X.emojiPicker,aadcGuidelinesStateEntityKey:X.aadcGuidelinesStateEntityKey,openAadcDialog:X.openAadcDialog,unicodeEmojisUrl:X.unicodeEmojisUrl}};
_.H.onHideIdentityChip=function(X){_.Y(X,AyS)&&this.set("data.placeholderText",_.Y(X,AyS).placeholderText)};
lN.prototype.onYtCommentboxDismiss=lN.prototype.onYtCommentboxDismiss;lN.prototype.dataChanged=lN.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],lN.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],lN.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lN.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],lN.prototype,"isOpen",void 0);_.E([_.K(),_.U("design:type",Object)],lN.prototype,"commentDialog",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],lN.prototype,"engagementPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],lN.prototype,"useSmallAvatars",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],lN.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],lN.prototype,"enableCreationBox",void 0);_.E([_.K(),_.U("design:type",Boolean)],lN.prototype,"showCreateDialog",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],lN.prototype,"dataChanged",null);_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],lN.prototype,"onYtCommentboxDismiss",null);_.E([_.p({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],lN);
_.N(lN,"ytd-comment-simplebox-renderer",function(){if(nm4!==void 0)return nm4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return nm4=X},{mode:1});var Vj4;_.Xa("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var xq=function(){var X=_.O.apply(this,arguments)||this;X.addHoverEffect=_.A("swatcheroo_comments_hover_effect");X.useSmallAvatars=_.A("small_avatars_for_comments");X.threadHovered=!1;X.collapsed=!1;X.toggleCollapsed=function(){X.collapsed=!X.collapsed;X.collapsed&&_.A("web_comment_threading_scroll_on_collapse")&&_.sl(X.hostElement,"yt-scroll-to-watch-element",[X.commentElement])};
return X};
_.S(xq,_.O);xq.prototype.onTap=function(X){if(this.addHoverEffect&&!this.engagementPanel&&!_.Fa(_.be(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||_.cj({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
xq.prototype.attached=function(){var X=this,t;(t=this.commentThreadHitbox)==null||t.addEventListener("mouseover",function(){X.threadHovered=!0});
var G;(G=this.commentThreadHitbox)==null||G.addEventListener("mouseout",function(){X.threadHovered=!1});
var y;(y=this.commentThreadHitbox)==null||y.addEventListener("click",function(){X.maybeToggleCollapsed()})};
xq.prototype.maybeToggleCollapsed=function(){var X,t,G,y=(X=this.data)==null?void 0:(t=X.replies)==null?void 0:(G=t.commentRepliesRenderer)==null?void 0:G.subThreads;y&&(y.length===1&&_.Y(y[0],_.Fc)||this.toggleCollapsed())};
_.ke.Object.defineProperties(xq.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)!=null&&X.commentViewModel)return _.Y(this.data.commentViewModel,Q8J)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return _.A("web_delhi_comment_threads")&&!!((X=this.data)==null?0:(t=X.replies)==null?0:(G=t.commentRepliesRenderer)==null?0:G.subThreads)}}});
xq.prototype.onTap=xq.prototype.onTap;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xq.prototype,"addHoverEffect",void 0);_.E([_.K(),_.U("design:type",Object)],xq.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xq.prototype,"useSmallAvatars",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],xq.prototype,"isSubThread",void 0);_.E([_.rt(".thread-hitbox"),_.U("design:type",HTMLElement)],xq.prototype,"commentThreadHitbox",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xq.prototype,"threadHovered",void 0);_.E([_.rt("#comment"),_.U("design:type",HTMLElement)],xq.prototype,"commentElement",void 0);
_.E([_.K(),_.U("design:type",Object)],xq.prototype,"collapsed",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],xq.prototype,"commentViewModel",null);_.E([_.C("data.replies"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],xq.prototype,"hasSubThreading",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],xq.prototype,"engagementPanel",void 0);
_.E([_.WW("tap"),_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],xq.prototype,"onTap",null);_.E([_.p({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],xq);
_.N(xq,"ytd-comment-thread-renderer",function(){if(Vj4!==void 0)return Vj4;var X=document.createElement("template");_.Z(X,'\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  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Vj4=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var bat;var fi=function(){var X=_.O.apply(this,arguments)||this;X.modernTypography=_.A("web_modern_typography");X.compactHeader=_.A("web_watch_compact_comments_header");X.hidePanelButton=!1;X.isPostSchedulingEnabled=_.A("enable_post_scheduling");X.hasFinishedStamping=!1;X.JSC$15779_handleOpenPostCommentDialogActionAfterStamp=!1;X.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return X};
_.S(fi,_.O);_.H=fi.prototype;
_.H.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"}}}};
_.H.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.H.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15779_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.H.onYtServiceRequestSent=function(X,t){if(!_.A("kevlar_command_handler")&&t.actions)for(X=0;X<t.actions.length;X++){var G=t.actions[X];_.Y(G,RsJ)&&_.Sm(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.Y(G,RsJ))}};
_.H.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var X;if(this.getPrefilledBackstagePostDialog((X=this.data)==null?void 0:X.actions)){_.Sm(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var t=_.Sm(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;t&&_.V8(this,function(){t.focus();t.openDialog&&t.openDialog()})}}else this.hasActionsChange=!0};
_.H.computeIsBackstage=function(X){return X};
_.H.onYtCommentboxDismiss=function(){_.Sm(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.H.removePrefilledDialog=function(X){if(X==null?0:X.actions){for(var t=X.actions.length-1;t>=0;t--){var G=void 0;((G=_.Y(X.actions[t],sxo))==null?0:G.dialog)&&delete X.actions[t]}this.set("data",void 0);this.set("data",X)}};
_.H.getPrefilledBackstagePostDialog=function(X){if(X)for(var t=0;t<X.length;t++){var G=X[t],y=void 0;if((y=_.Y(G,sxo))==null?0:y.dialog)return _.Y(G,sxo).dialog}return null};
_.H.computeBackstagePostDialog=function(X){return X&&(this.getPrefilledBackstagePostDialog(X.actions)||X.createRenderer)};
_.H.dataChanged=function(){if(this.data){var X=this.data.customEmojis,t=this.data.unicodeEmojisUrl;_.wQ.clear();t&&_.kUq(_.wQ,t);X&&_.wQ.load(X)}};
_.H.handleSignalActionOpenPostCommentDialogAction=function(){var X=_.Sm(this.hostElement).querySelector("ytd-comment-simplebox-renderer");X?X.openDialog():this.JSC$15779_handleOpenPostCommentDialogActionAfterStamp=!0};
_.ke.Object.defineProperties(fi.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.A("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y,w,z,B;return!this.hidePanelButton&&_.A("kevlar_watch_comments_panel_button")&&((B=_.Y((X=this.data)==null?void 0:(t=X.sortMenu)==null?void 0:(G=t.sortFilterSubMenuRenderer)==null?void 0:(y=G.subMenuItems)==null?void 0:(w=y[0])==null?void 0:(z=w.serviceEndpoint)==null?void 0:z.commandMetadata,_.jQ))==null?void 0:B.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Qf("MINIPLAYER_EXPAND_LABEL"),text:_.Vl(_.Qf("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
fi.prototype.dataChanged=fi.prototype.dataChanged;fi.prototype.onYtCommentboxDismiss=fi.prototype.onYtCommentboxDismiss;fi.prototype.observePrefilledBackstagePostDialog=fi.prototype.observePrefilledBackstagePostDialog;fi.prototype.onYtServiceRequestSent=fi.prototype.onYtServiceRequestSent;fi.prototype.onStampFinished=fi.prototype.onStampFinished;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],fi.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],fi.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fi.prototype,"modernTypography",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fi.prototype,"compactHeader",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],fi.prototype,"engagementPanel",void 0);_.E([_.K(),_.U("design:type",Object)],fi.prototype,"hidePanelButton",void 0);_.E([_.K({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.U("design:type",Boolean)],fi.prototype,"isBackstage",void 0);_.E([_.K({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.U("design:type",Object)],fi.prototype,"backstagePostDialog",void 0);
_.E([_.K(),_.U("design:type",Object)],fi.prototype,"isPostSchedulingEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data","showCommentsPanelButton"),_.U("design:type",Object),_.U("design:paramtypes",[])],fi.prototype,"useSpaceBetween",null);_.E([_.K({reflectToAttribute:!0}),_.C("data","hidePanelButton"),_.U("design:type",Object),_.U("design:paramtypes",[])],fi.prototype,"showCommentsPanelButton",null);
_.E([_.C("data","showCommentsPanelButton"),_.U("design:type",Object),_.U("design:paramtypes",[])],fi.prototype,"commentsPanelButtonData",null);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fi.prototype,"onStampFinished",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],fi.prototype,"onYtServiceRequestSent",null);
_.E([_.cW("data.actions"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fi.prototype,"observePrefilledBackstagePostDialog",null);_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],fi.prototype,"onYtCommentboxDismiss",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fi.prototype,"dataChanged",null);
_.E([_.p({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],fi);
_.N(fi,"ytd-comments-header-renderer",function(){if(bat!==void 0)return bat;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return bat=X},{mode:1});var kWP;var M6=function(){return _.O.apply(this,arguments)||this};
_.S(M6,_.O);_.E([_.K(),_.U("design:type",Object)],M6.prototype,"data",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.E([_.p({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],M6);
_.N(M6,"ytd-destination-button-renderer",function(){if(kWP!==void 0)return kWP;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return kWP=X},{mode:1});var dG4;var Xh=function(){var X=_.O.apply(this,arguments)||this;X.isRichGrid=!1;X.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};X.modernTypography=_.A("web_modern_typography");return X};
_.S(Xh,_.O);_.H=Xh.prototype;_.H.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.H.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.H.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.H.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var X;if((X=this.data)==null||!X.isExpanded){X=this.hostElement.clientWidth;var t;if(X&&(t=this.data)!=null&&t.destinationButtons){t=Math.floor((X+4)/214);X=this.data.destinationButtons.length;var G=Math.ceil(X/t);this.fullyVisibleRows=X%t===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}}}};
_.H.updateRichGridDestinationButtonsVisibility=function(){var X,t;if(this.isRichGrid&&((X=this.data)==null||!X.isExpanded)&&(t=this.data)!=null&&t.destinationButtons){X=this.richGridItemsPerRow+1;t=this.data.destinationButtons.length;var G=Math.ceil(t/X);this.fullyVisibleRows=t%X===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}};
_.H.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Xh.prototype.updateRichGridDestinationButtonsVisibility=Xh.prototype.updateRichGridDestinationButtonsVisibility;_.E([_.K(),_.U("design:type",Object)],Xh.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Number)],Xh.prototype,"fullyVisibleRows",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Xh.prototype,"isShowMoreVisible",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Xh.prototype,"isRichGrid",void 0);
_.E([_.K({selector:_.x0,value:0}),_.U("design:type",Number)],Xh.prototype,"richGridItemsPerRow",void 0);_.E([_.K(),_.U("design:type",Object)],Xh.prototype,"gridStateActionMap",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Xh.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Xh.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Xh.prototype,"modernTypography",void 0);_.E([_.cW("data","richGridItemsPerRow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Xh.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.E([_.p({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Xh);
_.N(Xh,"ytd-destination-shelf-renderer",function(){if(dG4!==void 0)return dG4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return dG4=X},{mode:1});var eyR;var $4=function(){return _.O.apply(this,arguments)||this};
_.S($4,_.O);$4.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$4.prototype,"data",void 0);_.E([_.p({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],$4);
_.N($4,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(eyR!==void 0)return eyR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return eyR=X},{mode:1});var jdJ;var t3=function(){var X=_.O.apply(this,arguments)||this;X.disableAnimation=!1;X.isSlimlineSurvey=!1;X.isSlimlineSurveyFollowUp=!1;X.isShortsStyle=!1;return X};
_.S(t3,_.O);t3.prototype.onTap=function(X){X.preventDefault();this.data&&_.Yt(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.ke.Object.defineProperties(t3.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 X,t,G,y,w;return((X=this.data)==null?0:X.checked)?(t=this.data)==null?void 0:(G=t.onStateIcon)==null?void 0:G.iconType:(y=this.data)==null?void 0:(w=y.defaultStateIcon)==null?void 0:w.iconType}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],t3.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],t3.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],t3.prototype,"disableAnimation",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],t3.prototype,"isSlimlineSurvey",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],t3.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],t3.prototype,"isShortsStyle",void 0);_.E([_.C("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],t3.prototype,"isAnimatedIcon",null);
_.E([_.C("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.U("design:type",Number),_.U("design:paramtypes",[])],t3.prototype,"iconSize",null);_.E([_.C("isShortsStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],t3.prototype,"isDarkTheme",null);_.E([_.C("data.checked"),_.U("design:type",Object),_.U("design:paramtypes",[])],t3.prototype,"icon",null);_.E([_.p({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],t3);
_.N(t3,"ytd-rating-survey-option-renderer",function(){if(jdJ!==void 0)return jdJ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return jdJ=X},{mode:2});var gmh;var GL=function(){var X=_.O.apply(this,arguments)||this;X.firstResponseText=null;X.lastResponseText=null;X.selectedNonStarOption=null;X.hideOptions=!1;X.hideUndoButton=!0;X.disableAnimation=!1;X.showResponseRangeText=!1;X.selectedRatingIndex=-1;X.isSlimlineSurvey=!1;X.isSlimlineSurveyFollowUp=!1;X.isShortsStyle=!1;X.slimlineSurveyRatingSelectedIndex=-1;return X};
_.S(GL,_.O);_.H=GL.prototype;_.H.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.H.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.H.onOptionChange=function(X,t){var G=this;X=t.onStateIcon&&t.defaultStateIcon&&t.onStateIcon.iconType===t.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(B,V){B.responseText===t.responseText?G.isSlimlineSurvey?(G.selectedRatingIndex=V,G.ytdReduxBehavior.dispatch(Bgo(V))):(G.setSurveyOptionValue(V,!0,"checked"),G.setSurveyOptionValue(V,!0,"selected")):(G.setSurveyOptionValue(V,!1,"checked"),G.setSurveyOptionValue(V,
!1,"selected"))});
else if(X)this.selectedNonStarOption=t,this.hideOptions=!0;else{var y=this.ytRendererBehavior.getSimpleString(t.responseText),w=!0;this.getOptionRenderers().forEach(function(B,V){G.setSurveyOptionValue(V,w,"checked");G.setSurveyOptionValue(V,!1,"selected");G.ytRendererBehavior.getSimpleString(B.responseText)===y&&(w=!1,G.setSurveyOptionValue(V,!0,"selected"))})}X=t.responseEndpoint;
var z;t.followUpCommand&&(z=_.Y(t.followUpCommand,aMY));this.isSlimlineSurvey?(this.resetComponent(),_.sl(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.sl(this.hostElement,"ytd-inline-survey-rating-select-action",[X,z])};
_.H.showSelectedOption=function(){var X=this;_.vz.addJob(function(){var t=X.getOptionRenderers()[X.slimlineSurveyRatingSelectedIndex];X.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),t)},8,100)};
_.H.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(X){var t;return(t=_.Y(X,xgS))!=null?t:{}}):[]};
_.H.onUndoClick=function(){this.resetComponent();_.sl(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.H.setSurveyOptionValue=function(X,t,G){this.notifyPath("data.ratings."+X+".ratingSurveyOptionRenderer."+G);this.set("data.ratings."+X+".ratingSurveyOptionRenderer."+G,t)};
_.H.resetComponent=function(){var X=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var t=this.getOptionRenderers(),G,y;this.firstResponseText=(y=(G=t[0])==null?void 0:G.responseText)!=null?y:null;var w,z;this.lastResponseText=(z=(w=t[t.length-1])==null?void 0:w.responseText)!=null?z:null;t.forEach(function(B,V){X.setSurveyOptionValue(V,!1,"checked");X.setSurveyOptionValue(V,!1,"selected")})};
_.ke.Object.defineProperties(GL.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
GL.prototype.onOptionChange=GL.prototype.onOptionChange;GL.prototype.dataChanged=GL.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],GL.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],GL.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],GL.prototype,"firstResponseText",void 0);_.E([_.K(),_.U("design:type",Object)],GL.prototype,"lastResponseText",void 0);_.E([_.K(),_.U("design:type",Object)],GL.prototype,"selectedNonStarOption",void 0);_.E([_.K(),_.U("design:type",Object)],GL.prototype,"hideOptions",void 0);_.E([_.K(),_.U("design:type",Object)],GL.prototype,"hideUndoButton",void 0);_.E([_.K(),_.U("design:type",Object)],GL.prototype,"disableAnimation",void 0);
_.E([_.K(),_.U("design:type",Object)],GL.prototype,"showResponseRangeText",void 0);_.E([_.K(),_.U("design:type",Object)],GL.prototype,"selectedRatingIndex",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],GL.prototype,"isSlimlineSurvey",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],GL.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],GL.prototype,"isShortsStyle",void 0);_.E([_.K({selector:function(X){return X.ui.slimlineSurveyRatingSelectedIndex}}),
_.U("design:type",Object)],GL.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.E([_.C("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],GL.prototype,"isSingleSelect",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GL.prototype,"dataChanged",null);
_.E([_.WW("ytd-rating-survey-option-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],GL.prototype,"onOptionChange",null);_.E([_.p({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],GL);
_.N(GL,"ytd-rating-survey-renderer",function(){if(gmh!==void 0)return gmh;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return gmh=X},{mode:1});var Fzo;var T0Y;var A2o;var P9s=(Ee.FIRSTDAYOFWEEK+1)%7,YQR=function(X,t,G,y){var w="";if(y.selection&&cdl(y.selection))r2(X,y.selection)&&(w+=" selected");else if(y.selection&&p9l(y.selection)){var z=y.selection.selectionState||"START_DATE";r2(X,y.selection.start)&&(w+=" period-start ",z==="START_DATE"&&(w+="selected"));r2(X,y.selection.end)&&(w+=" period-end ",z==="END_DATE"&&(w+="selected"));Ns(X,y.selection.start)||Ns(y.selection.end,X)||(w+=" highlighted")}if(Ns(t,y.start)||Ns(y.end,t))w+=" disabled";y.circleToday&&
r2(t,G)&&(w+=" today");return w};var ym=function(){return _.O.apply(this,arguments)||this};
_.S(ym,_.O);_.H=ym.prototype;_.H.attached=function(){var X=this;_.V8(this,function(){X.JSC$15813_calendarMain.scrollHeight>0&&(X.calendarConfig.selection?X.scrollToDate(rd6(X.calendarConfig.selection)):X.scrollToDate(X.calendarConfig.end))})};
_.H.updateSelection=function(X){X=Ek_(Object.assign({},this.calendarConfig,{selection:X}),YQR);this.splice.apply(this,["renderData.months",0,X.length].concat(_.RY(X)))};
_.H.scrollToDate=function(X){this.renderData&&(X=U5Y(X,this.renderData),X!==void 0&&this.JSC$15813_calendarMain.scrollToIndex(X))};
_.H.scrollToNextMonth=function(){this.JSC$15813_calendarMain.scrollToIndex(this.JSC$15813_calendarMain.firstVisibleIndex+1)};
_.H.scrollToPrevMonth=function(){this.JSC$15813_calendarMain.firstVisibleIndex===0&&this.JSC$15813_calendarMain.scrollTo(0,0);this.JSC$15813_calendarMain.scrollToIndex(this.JSC$15813_calendarMain.firstVisibleIndex-1)};
_.H.handleDayClick=function(X){_.sl(this.hostElement,"ytd-calendar-date-clicked",[X.model.day.date])};
_.H.handleDayMouseDown=function(X){X.preventDefault();_.sl(this.hostElement,"ytd-calendar-date-mousedown",[X.model.day.date])};
_.H.handleDayMouseUp=function(X){_.sl(this.hostElement,"ytd-calendar-date-mouseup",[X.model.day.date])};
_.H.handleDayMouseEnter=function(X){X.preventDefault();_.sl(this.hostElement,"ytd-calendar-date-mouseenter",[X.model.day.date])};
_.H.handleDayMouseLeave=function(X){_.sl(this.hostElement,"ytd-calendar-date-mouseleave",[X.model.day.date])};
_.ke.Object.defineProperties(ym.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var X=this.calendarConfig,t=YQR;t=t===void 0?YQR:t;for(var G=[],y=0;y<7;y++)G.push(Ee.NARROWWEEKDAYS[(y+P9s)%7]);return{months:Ek_(X,t),daysOfWeekLabel:G}}}});
_.E([_.K(),_.U("design:type",Object)],ym.prototype,"calendarConfig",void 0);_.E([_.rt("#calendar-main"),_.U("design:type",Object)],ym.prototype,"JSC$15813_calendarMain",void 0);_.E([_.C("calendarConfig"),_.U("design:type",Object),_.U("design:paramtypes",[])],ym.prototype,"renderData",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ym);
_.N(ym,"ytd-scrollable-calendar",function(){if(A2o!==void 0)return A2o;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return A2o=X},{mode:2});var sdq;var DGt;var wI=function(){var X=_.O.apply(this,arguments)||this;X.hideCharCounter=!1;X.hideLabel=!1;X.noLabelFloat=!1;X.autoValidate=!0;X.invalid=!1;X.disabled=!1;X.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return X};
_.S(wI,_.O);_.H=wI.prototype;_.H.reset=function(X){this.value=X&&this.data?this.data.value=X:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.H.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.H.focusTextInput=function(){this.input.focus()};
_.H.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()};
_.H.valueChanged=function(){var X,t;if(((X=this.data)==null?0:X.value)||((t=this.data)==null?void 0:t.value)==="")this.value=this.data.value;else{var G;((G=this.data)==null?void 0:G.value)!==void 0||this.value||(this.value="")}};
_.H.computeLabel=function(X,t){return t?"":_.bu(X)};
_.H.computeAriaLabel=function(X,t){return t?_.bu(X):""};
_.H.computeErrorMessage=function(X,t,G,y){!X&&t?X=G||this.strings.REQUIRED_LABEL:(X=_.bu(y),X=_.n_(X,"&")?"document"in _.tA?WEz(X):cAY(X):X);return X};
_.H.computeType=function(X){return X==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.H.onTextValueChanged=function(X){this.value=X.detail.value;var t;(t=this.onValueChanged)==null||t.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.H.handleUpdateTextInputFormFieldRendererCommand=function(X){(X=_.Y(X,e4q))&&this.data&&this.data.id===X.id&&(X.invalid!==void 0&&(this.invalid=X.invalid),X.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",X.invalidValueErrorMessage))};
_.H.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("value-changed",this.value))};
_.H.updateInvalidFromBinding=function(X){this.invalid=X.detail.value};
_.ke.Object.defineProperties(wI.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var X;return!((X=this.data)==null||!X.isMultiline)}}});
wI.prototype.valueChangedForBinding=wI.prototype.valueChangedForBinding;wI.prototype.valueChanged=wI.prototype.valueChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],wI.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],wI.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],wI.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],wI.prototype,"value",void 0);_.E([_.K(),_.U("design:type",String)],wI.prototype,"pattern",void 0);_.E([_.K(),_.U("design:type",String)],wI.prototype,"errorMessage",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],wI.prototype,"componentStyle",void 0);_.E([_.K(),_.U("design:type",Object)],wI.prototype,"hideCharCounter",void 0);
_.E([_.K(),_.U("design:type",Object)],wI.prototype,"hideLabel",void 0);_.E([_.K(),_.U("design:type",Object)],wI.prototype,"noLabelFloat",void 0);_.E([_.K(),_.U("design:type",Function)],wI.prototype,"onValueChanged",void 0);_.E([_.K(),_.U("design:type",Boolean)],wI.prototype,"isMultilineOverride",void 0);_.E([_.K(),_.U("design:type",Object)],wI.prototype,"autoValidate",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],wI.prototype,"invalid",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],wI.prototype,"disabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],wI.prototype,"enableOverlayTheme",void 0);_.E([_.K({value:{REQUIRED_LABEL:_.Qf("REQUIRED_LABEL",void 0,"Required")}}),_.U("design:type",Object)],wI.prototype,"strings",void 0);_.E([_.rt("#input"),_.U("design:type",Object)],wI.prototype,"input",void 0);
_.E([_.C("data","isMultilineOverride"),_.U("design:type",Object),_.U("design:paramtypes",[])],wI.prototype,"isMultiline",null);_.E([_.U0("data.value"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wI.prototype,"valueChanged",null);_.E([_.cW("value"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wI.prototype,"valueChangedForBinding",null);_.E([_.$F({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],wI);
_.N(wI,"yt-text-input-form-field-renderer",function(){if(DGt===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;sdq===void 0&&(sdq=document.createElement("template"));var y=sdq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);DGt=X}X=DGt;return X},{mode:2});var zL=function(){var X=_.O.apply(this,arguments)||this;X.data=void 0;X.selectionState="START_DATE";X.isStartDateInvalid=!1;X.isEndDateInvalid=!1;X.autoapply=!1;X.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 X};
_.S(zL,_.O);_.H=zL.prototype;_.H.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"}}}}};
_.H.focus=function(){this.startDateInput.focus()};
_.H.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Pv(this.data.selection.start),end:Pv(this.data.selection.end)})};
_.H.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.H.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.zr(this.selectionState)}};
_.H.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.H.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.H.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.H.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var X=this.calendar.calendarConfig,t=X.end;X=REA({start:X.start,end:this.endDate||t},this.startDateInput.value||"");this.isStartDateInvalid=!X.isValid;X.isValid&&(X=X.value,this.selection=this.endDate?{start:X,end:this.endDate}:X,this.calendar.scrollToDate(X));this.updateInvalidState()}};
_.H.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var X=this.calendar.calendarConfig,t=X.start;X=REA({start:this.startDate||t,end:X.end},this.endDateInput.value||"");this.isEndDateInvalid=!X.isValid;X.isValid&&(X=X.value,this.selection={start:this.startDate,end:X},this.calendar.scrollToDate(X));this.updateInvalidState()}};
_.H.handleCalendarDateClicked=function(X){var t=this.selection&&rd6(this.selection),G=this.selection&&N7E(this.selection);t&&!Ns(X,t)&&this.selectionState==="END_DATE"?(this.selection={start:t,end:X},this.selectionState="START_DATE"):(G&&!Ns(G,X)?this.selection={start:X,end:G}:this.selection=X,this.selectionState="END_DATE")};
_.H.handleCalendarDateMouseDown=function(X){this.selection&&!cdl(this.selection)&&(this.dragPivot=r2(X,this.selection.start)?this.selection.end:r2(X,this.selection.end)?this.selection.start:X)};
_.H.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.H.handleCalendarDateMouseEnter=function(X){this.dragPivot&&(this.selection={start:function(t,G){return Ns(t,G)?t:G}(this.dragPivot,X),
end:function(t,G){return Ns(t,G)?G:t}(this.dragPivot,X)},this.dragPivot||(this.selectionState="START_DATE"))};
_.H.handleCalendarDateMouseLeave=function(){};
_.H.handleCalendarSubmitDateRange=function(){this.selection&&!cdl(this.selection)&&_.sl(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.H.updateInvalidState=function(){var X=function(t,G){G?t.setAttribute("invalid",""):t.removeAttribute("invalid")};
X(this.startDateInput,this.isStartDateInvalid);X(this.endDateInput,this.isEndDateInvalid)};
_.H.updateDateStrings=function(){this.selection&&(cdl(this.selection)?WRl(this.selection):(WRl(this.selection.start),WRl(this.selection.end)))};
_.H.updateCalendarSelection=function(X){this.calendar.updateSelection(Object.assign({},X,{selectionState:this.selectionState}))};
_.H.updateIsStartDateInvalidFromBinding=function(X){this.isStartDateInvalid=X.detail.value};
_.H.updateIsEndDateInvalidFromBinding=function(X){this.isEndDateInvalid=X.detail.value};
_.H.updateStartDateStringFromBinding=function(){};
_.H.updateEndDateStringFromBinding=function(){};
_.ke.Object.defineProperties(zL.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Pv(this.data.dateRangeStart),end:Pv(this.data.dateRangeEnd),selection:{start:Pv(this.data.selection.start),end:Pv(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&rd6(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&N7E(this.selection)}}});
zL.prototype.resetTextboxes=zL.prototype.resetTextboxes;zL.prototype.observeSelection=zL.prototype.observeSelection;zL.prototype.dataChanged=zL.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],zL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.rt("#calendar"),_.U("design:type",Object)],zL.prototype,"calendar",void 0);
_.E([_.rt("#start-date"),_.U("design:type",Object)],zL.prototype,"startDateInput",void 0);_.E([_.rt("#end-date"),_.U("design:type",Object)],zL.prototype,"endDateInput",void 0);_.E([_.K(),_.U("design:type",Object)],zL.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],zL.prototype,"selection",void 0);_.E([_.K(),_.U("design:type",String)],zL.prototype,"selectionState",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],zL.prototype,"calendarConfig",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],zL.prototype,"errorMessage",null);_.E([_.C("selection"),_.U("design:type",Object),_.U("design:paramtypes",[])],zL.prototype,"startDate",null);_.E([_.C("selection"),_.U("design:type",Object),_.U("design:paramtypes",[])],zL.prototype,"endDate",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zL.prototype,"dataChanged",null);
_.E([_.cW("selection","selectionState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zL.prototype,"observeSelection",null);_.E([_.cW("selectionState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zL.prototype,"resetTextboxes",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],zL);
_.N(zL,"ytd-date-period-picker-renderer",function(){if(T0Y!==void 0)return T0Y;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return T0Y=X},{mode:1});var HQ=function(){var X=_.O.apply(this,arguments)||this;var t={};X.actionMap=(t["ytd-date-period-picker-apply"]="handleDateRangeUpdated",t);return X};
_.S(HQ,_.O);HQ.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
HQ.prototype.handleDateRangeUpdated=function(){};
_.E([_.K(),_.U("design:type",Object)],HQ.prototype,"data",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],HQ.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],HQ.prototype,"rendererstamperBehavior",void 0);_.E([_.p({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],HQ);
_.N(HQ,"ytd-report-history-section-header-renderer",function(){if(Fzo!==void 0)return Fzo;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Fzo=X},{mode:1});var SQe;var hyq;var Zao;var oU=function(){return _.O.apply(this,arguments)||this};
_.S(oU,_.O);_.ke.Object.defineProperties(oU.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?0:(t=X.icon)==null?0:t.iconType)?_.Q2(this.data.icon.iconType):""}}});
_.E([_.K(),_.U("design:type",Object)],oU.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],oU.prototype,"icon",null);_.E([_.p({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],oU);
_.N(oU,"ytd-report-history-table-text-cell-renderer",function(){if(Zao!==void 0)return Zao;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Zao=X},{mode:1});var J3=function(){return _.O.apply(this,arguments)||this};
_.S(J3,_.O);J3.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],J3.prototype,"data",void 0);_.E([_.p({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],J3);
_.N(J3,"ytd-report-history-table-reason-cell-renderer",function(){if(hyq!==void 0)return hyq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return hyq=X},{mode:1});var BQ=function(){return _.O.apply(this,arguments)||this};
_.S(BQ,_.O);BQ.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"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],BQ.prototype,"rendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],BQ.prototype,"data",void 0);_.E([_.p({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],BQ);
_.N(BQ,"ytd-report-history-table-cell-renderer",function(){if(SQe!==void 0)return SQe;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return SQe=X},{mode:1});var qQR;var nW=function(){var X=_.O.apply(this,arguments)||this;X.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 X};
_.S(nW,_.O);nW.prototype.onDataChanged=function(){var X;if((X=this.data)==null?0:X.style)this.componentStyle=this.getStyleName(this.data.style)};
nW.prototype.getCellForColumn=function(X){return this.cells.find(function(t){var G;return((G=_.Y(t==null?void 0:t.cell,XZJ)||_.Y(t==null?void 0:t.cell,M2t))==null?void 0:G.columnId)===X.type})};
nW.prototype.getClassForColumn=function(X){switch(X){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
nW.prototype.getStyleName=function(X){switch(X){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.ke.Object.defineProperties(nW.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.cells)||[]).map(function(t){return _.Y(t,fMP)})}}});
nW.prototype.onDataChanged=nW.prototype.onDataChanged;_.E([_.K(),_.U("design:type",Object)],nW.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Array)],nW.prototype,"columnRenderData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],nW.prototype,"componentStyle",void 0);_.E([_.C("data"),_.U("design:type",Array),_.U("design:paramtypes",[])],nW.prototype,"cells",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],nW.prototype,"onDataChanged",null);_.E([_.p({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],nW);
_.N(nW,"ytd-report-history-table-row-renderer",function(){if(qQR!==void 0)return qQR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qQR=X},{mode:1});var Coq;var Kzq;var iRY={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},LRJ={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Vm=function(){return _.O.apply(this,arguments)||this};
_.S(Vm,_.O);Vm.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"}}}}}};
Vm.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.ke.Object.defineProperties(Vm.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.columns)?f20(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return l20(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var X=this.tableSpec,t=iRY;t=t===void 0?LRJ:t;t=x56(X.columnDimensions,X.columnsToShow||[],t);X=0;t=_.J(t);for(var G=t.next();!G.done;G=t.next())G=G.value,X+=G.minWidth+G.paddingLeft+G.paddingRight;return X}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.E([_.q(_.oT),_.U("design:type",Object)],Vm.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Vm.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Vm.prototype,"tableSpec",null);_.E([_.C("tableSpec"),_.U("design:type",Array),_.U("design:paramtypes",[])],Vm.prototype,"columnRenderData",null);
_.E([_.C("tableSpec"),_.U("design:type",Number),_.U("design:paramtypes",[])],Vm.prototype,"totalMinWidth",null);_.E([_.C("totalMinWidth"),_.U("design:type",String),_.U("design:paramtypes",[])],Vm.prototype,"tableWidthStyle",null);_.E([_.p({is:"ytd-table-renderer",disableElementRegistration:!0})],Vm);
_.N(Vm,"ytd-table-renderer",function(){if(Kzq!==void 0)return Kzq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Kzq=X},{mode:1});var bd=function(){return _.O.apply(this,arguments)||this};
_.S(bd,_.O);bd.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}}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bd.prototype,"data",void 0);_.E([_.p({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],bd);
_.N(bd,"ytd-report-reason-history-modal-renderer",function(){if(Coq!==void 0)return Coq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Coq=X},{mode:1});var Oa4;var uge;var Qdt;var k4=function(){return _.O.apply(this,arguments)||this};
_.S(k4,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],k4.prototype,"data",void 0);_.E([_.p({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],k4);
_.N(k4,"ytd-profile-column-stats-entry-renderer",function(){if(Qdt!==void 0)return Qdt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Qdt=X},{mode:1});var IJY;var dI=function(){return _.O.apply(this,arguments)||this};
_.S(dI,_.O);dI.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dI.prototype,"data",void 0);_.E([_.p({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],dI);
_.N(dI,"ytd-profile-column-stats-renderer",function(){if(IJY!==void 0)return IJY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return IJY=X},{mode:1});var WzB;var eS=function(){return _.O.apply(this,arguments)||this};
_.S(eS,_.O);_.ke.Object.defineProperties(eS.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.useThumbnailSize)return 80;var t,G;X=(t=this.data)==null?void 0:(G=t.thumbnail)==null?void 0:G.thumbnails;var y;return X&&((y=X[0])==null?void 0:y.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.useThumbnailSize)return 80;var t,G;X=(t=this.data)==null?void 0:(G=t.thumbnail)==null?void 0:G.thumbnails;var y;return X&&((y=X[0])==null?void 0:y.height)||80}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eS.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],eS.prototype,"componentStyle",void 0);_.E([_.C("data.useThumbnailSize"),_.U("design:type",Object),_.U("design:paramtypes",[])],eS.prototype,"thumbnailWidth",null);
_.E([_.C("data.useThumbnailSize"),_.U("design:type",Object),_.U("design:paramtypes",[])],eS.prototype,"thumbnailHeight",null);_.E([_.p({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],eS);
_.N(eS,"ytd-profile-column-user-info-renderer",function(){if(WzB!==void 0)return WzB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return WzB=X},{mode:1});var jS=function(){return _.O.apply(this,arguments)||this};
_.S(jS,_.O);jS.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]]"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],jS.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],jS.prototype,"componentStyle",void 0);_.E([_.p({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],jS);
_.N(jS,"ytd-profile-column-renderer",function(){if(uge!==void 0)return uge;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return uge=X},{mode:1});var gI=function(){var X=_.O.apply(this,arguments)||this;X.componentStyle="NON_CENTERED_PROFILE";return X};
_.S(gI,_.O);gI.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
gI.prototype.getIcon=function(X){return X?"settings:"+X.toLowerCase():null};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],gI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gI.prototype,"data",void 0);_.E([_.p({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],gI);
_.N(gI,"ytd-page-introduction-renderer",function(){if(Oa4!==void 0)return Oa4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Oa4=X},{mode:1});var c2Y;var Fh=function(){return _.O.apply(this,arguments)||this};
_.S(Fh,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Fh.prototype,"data",void 0);_.E([_.p({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Fh);
_.N(Fh,"ytd-report-description-renderer",function(){if(c2Y!==void 0)return c2Y;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return c2Y=X},{mode:1});var pwq;var r2J;var TL=function(){return _.O.apply(this,arguments)||this};
_.S(TL,_.O);TL.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],TL.prototype,"data",void 0);_.E([_.p({is:"ytd-video-report-renderer",disableElementRegistration:!0})],TL);
_.N(TL,"ytd-video-report-renderer",function(){if(r2J!==void 0)return r2J;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return r2J=X},{mode:1});var N0t;_.Xa("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Xa("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var A3=function(){return _.O.apply(this,arguments)||this};
_.S(A3,_.O);A3.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]]"}}}}}};
A3.prototype.computeMessageStyle=function(X){return X};
A3.prototype.computeButtonOverride=function(X){var t;if((X==null?0:(t=X.style)==null?0:t.value)&&X.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],A3.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],A3.prototype,"shelf",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],A3.prototype,"panel",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.U("design:type",Boolean)],A3.prototype,"componentStyle",void 0);_.E([_.K({computed:"computeButtonOverride(data)"}),_.U("design:type",Object)],A3.prototype,"buttonOverride",void 0);_.E([_.p({is:"ytd-message-renderer",disableElementRegistration:!0})],A3);
_.N(A3,"ytd-message-renderer",function(){if(N0t!==void 0)return N0t;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return N0t=X},{mode:1});var Y4=function(){return _.O.apply(this,arguments)||this};
_.S(Y4,_.O);Y4.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"}}}};
Y4.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Y4.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.ke.Object.defineProperties(Y4.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var X,t;return!!(((X=this.data)==null?0:X.header)&&((t=this.data)==null?0:t.table))}}});
Y4.prototype.onRequestError=Y4.prototype.onRequestError;_.E([_.q(_.oT),_.U("design:type",Object)],Y4.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Y4.prototype,"data",void 0);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Y4.prototype,"isUnifiedReportHistory",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Y4.prototype,"onRequestError",null);_.E([_.p({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Y4);
_.N(Y4,"ytd-report-history-section-renderer",function(){if(pwq!==void 0)return pwq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return pwq=X},{mode:1});var Po4;var sZ=function(){var X=_.O.apply(this,arguments)||this;X.answerExpanded=!1;return X};
_.S(sZ,_.O);sZ.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sZ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sZ.prototype,"answerExpanded",void 0);_.E([_.p({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],sZ);
_.N(sZ,"ytd-handles-claiming-faq-renderer",function(){if(Po4!==void 0)return Po4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Po4=X},{mode:1});var EmJ;var UGq=function(){return _.O.apply(this,arguments)||this};
_.S(UGq,_.O);_.E([_.K(),_.U("design:type",Object)],UGq.prototype,"data",void 0);_.E([_.p({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],UGq);
_.N(UGq,"ytd-handles-claiming-faq-section-renderer",function(){if(EmJ!==void 0)return EmJ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return EmJ=X},{mode:1});var mGS;var Dp=function(){var X=_.O.apply(this,arguments)||this;X.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";X.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";X.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";X.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";X.leftSquiggly=X.leftSquigglyLight;X.rightSquiggly=X.rightSquigglyLight;
X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};X.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return X};
_.S(Dp,_.O);_.H=Dp.prototype;_.H.updateLeftSquigglyStyle=function(){_.Kd(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.H.updateRightSquigglyStyle=function(){_.Kd(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.H.ready=function(){var X=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(X)};
_.H.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.set("isDarkTheme",X),X?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.H.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Dp.prototype.updateRightSquigglyStyle=Dp.prototype.updateRightSquigglyStyle;Dp.prototype.updateLeftSquigglyStyle=Dp.prototype.updateLeftSquigglyStyle;_.E([_.K(),_.U("design:type",Object)],Dp.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],Dp.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",String)],Dp.prototype,"leftSquiggly",void 0);_.E([_.K(),_.U("design:type",String)],Dp.prototype,"rightSquiggly",void 0);
_.E([_.cW("leftSquiggly"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Dp.prototype,"updateLeftSquigglyStyle",null);_.E([_.cW("rightSquiggly"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Dp.prototype,"updateRightSquigglyStyle",null);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Dp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Dp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Dp.prototype,"actionButtonOverride",void 0);_.E([_.p({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Dp);
_.N(Dp,"ytd-handles-claiming-header-renderer",function(){if(mGS!==void 0)return mGS;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return mGS=X},{mode:1});var Ryq;var SS=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};X.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";X.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";X.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";X.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
X.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";X.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";X.image0SquigglyBackground=X.image0LightSquigglyBackground;X.image1SquigglyBackground=X.image1LightSquigglyBackground;X.image3SquigglyBackground=X.image3LightSquigglyBackground;return X};
_.S(SS,_.O);_.H=SS.prototype;_.H.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.H.onDataChanged=function(){this.updateTitleAndImages()};
_.H.onThemeChanged=function(){this.updateTitleAndImages()};
_.H.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.isDarkTheme=X)};
_.H.updateImage0SquigglyBackground=function(){_.Kd(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.H.updateImage1SquigglyBackground=function(){_.Kd(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.H.updateImage3SquigglyBackground=function(){_.Kd(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.H.updateTitleAndImages=function(){var X,t;((X=this.data)==null?void 0:(t=X.titleImages)==null?void 0:t.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))};
SS.prototype.updateImage3SquigglyBackground=SS.prototype.updateImage3SquigglyBackground;SS.prototype.updateImage1SquigglyBackground=SS.prototype.updateImage1SquigglyBackground;SS.prototype.updateImage0SquigglyBackground=SS.prototype.updateImage0SquigglyBackground;SS.prototype.onThemeChanged=SS.prototype.onThemeChanged;SS.prototype.onDataChanged=SS.prototype.onDataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],SS.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],SS.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"title0",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"title1",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"title2",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"title3",void 0);
_.E([_.K(),_.U("design:type",Object)],SS.prototype,"title4",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"image0",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"image1",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"image2",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"image3",void 0);_.E([_.K(),_.U("design:type",Object)],SS.prototype,"image4",void 0);_.E([_.K(),_.U("design:type",String)],SS.prototype,"image0SquigglyBackground",void 0);
_.E([_.K(),_.U("design:type",String)],SS.prototype,"image1SquigglyBackground",void 0);_.E([_.K(),_.U("design:type",String)],SS.prototype,"image3SquigglyBackground",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],SS.prototype,"onDataChanged",null);_.E([_.cW("isDarkTheme"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],SS.prototype,"onThemeChanged",null);
_.E([_.cW("image0SquigglyBackground"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],SS.prototype,"updateImage0SquigglyBackground",null);_.E([_.cW("image1SquigglyBackground"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],SS.prototype,"updateImage1SquigglyBackground",null);
_.E([_.cW("image3SquigglyBackground"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],SS.prototype,"updateImage3SquigglyBackground",null);_.E([_.p({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],SS);
_.N(SS,"ytd-handles-claiming-title-images-section-renderer",function(){if(Ryq!==void 0)return Ryq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Ryq=X},{mode:1});var iao;var h3=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(h3,_.O);h3.prototype.ready=function(){var X=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(X)};
h3.prototype.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&this.set("isDarkTheme",X)};
h3.prototype.onCopyButtonClick=function(){var X=this,t,G,y;return _.n(function(w){return(t=X.data)!=null&&t.primaryChannelUrl?w.yield(navigator.clipboard.writeText(((G=X.data)==null?0:G.encodedChannelUrl)?X.data.encodedChannelUrl:"https://"+_.bu((y=X.data)==null?void 0:y.primaryChannelUrl)),0):w.jumpTo(0)})};
_.E([_.K(),_.U("design:type",Object)],h3.prototype,"data",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],h3.prototype,"ytComponentBehavior",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],h3.prototype,"isDarkTheme",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],h3.prototype,"ytActionHandlerBehavior",void 0);_.E([_.p({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],h3);
_.N(h3,"ytd-handles-claiming-update-social-renderer",function(){if(iao!==void 0)return iao;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return iao=X},{mode:1});var Lzz;var Zp=function(){var X=_.O.apply(this,arguments)||this;X.JSC$15907_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";X.JSC$15907_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};X.squigglyBackground=X.JSC$15907_squigglyBackgroundLight;return X};
_.S(Zp,_.O);Zp.prototype.updateSquigglyBackgroundStyle=function(){_.Kd(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Zp.prototype.ready=function(){var X=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",X);this.squigglyBackground=X?this.JSC$15907_squigglyBackgroundDark:this.JSC$15907_squigglyBackgroundLight};
Zp.prototype.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.set("isDarkTheme",X),this.squigglyBackground=X?this.JSC$15907_squigglyBackgroundDark:this.JSC$15907_squigglyBackgroundLight)};
Zp.prototype.updateSquigglyBackgroundStyle=Zp.prototype.updateSquigglyBackgroundStyle;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Zp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Zp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Zp.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Zp.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",String)],Zp.prototype,"squigglyBackground",void 0);_.E([_.cW("squigglyBackground"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Zp.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.p({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Zp);
_.N(Zp,"ytd-handles-claiming-vanity-info-renderer",function(){if(Lzz!==void 0)return Lzz;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Lzz=X},{mode:1});var vmq;var qq=function(){var X=_.O.apply(this,arguments)||this;X.JSC$15910_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";X.JSC$15910_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";X.squigglyBackground=X.JSC$15910_squigglyBackgroundLight;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(qq,_.O);_.H=qq.prototype;_.H.ready=function(){var X=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(X)};
_.H.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.set("isDarkTheme",X),this.squigglyBackground=X?this.JSC$15910_squigglyBackgroundDark:this.JSC$15910_squigglyBackgroundLight)};
_.H.updateSquigglyBackgroundStyle=function(){_.Kd(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.H.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.H.detached=function(){this.stop()};
_.H.stop=function(){this.playerElement.stop()};
_.H.setupVideoPlayer=function(){var X=this,t,G;return _.n(function(y){t=X.data.videoId;G="http://i1.ytimg.com/vi/"+t+"/maxresdefault.jpg";X.playerElement.loadVideoWithPlayerVars({video_id:t,iurlhq:G});_.W$(y)})};
qq.prototype.onDataChanged=qq.prototype.onDataChanged;qq.prototype.updateSquigglyBackgroundStyle=qq.prototype.updateSquigglyBackgroundStyle;_.E([_.K({value:!1}),_.U("design:type",Boolean)],qq.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",String)],qq.prototype,"squigglyBackground",void 0);_.E([_.rt("#player"),_.U("design:type",Object)],qq.prototype,"playerElement",void 0);_.E([_.K(),_.U("design:type",Object)],qq.prototype,"data",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],qq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.cW("squigglyBackground"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],qq.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],qq.prototype,"onDataChanged",null);
_.E([_.p({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],qq);
_.N(qq,"ytd-handles-claiming-video-item-renderer",function(){if(vmq!==void 0)return vmq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return vmq=X},{mode:1});var aJq;var KW=function(){var X=_.PW.apply(this,arguments)||this;X.dragging=!1;X.dragMouseStart=0;X.dragOffsetStart=0;X.containerWidthDiff=0;X.boundPrevClick=function(){X.set("offset",CW(X,X.offset-(X.scrollDistance||320)))};
X.boundNextClick=function(){X.set("offset",CW(X,X.offset+(X.scrollDistance||320)))};
X.boundScrollContainerMouseDown=function(t){X.dragMouseStart=t.clientX;X.dragOffsetStart=X.offset;X.dragging=!0};
X.boundScrollContainerDrag=function(t){X.dragging&&X.set("offset",CW(X,X.dragOffsetStart-(t.clientX-X.dragMouseStart)))};
X.boundMouseUp=function(){X.onMouseUp()};
X.boundWheelScroll=function(t){var G=0;Math.abs(t.deltaX)>=Math.abs(t.deltaY)?G=t.deltaX:t.shiftKey&&(G=t.deltaY);G!==0&&(X.offset+=G,t.stopPropagation(),t.preventDefault())};
X.boundChipCloudChipScrollIntoView=function(t){(t=t.detail)&&X.scrollChipIntoView(t)};
return X};
_.S(KW,_.PW);KW.prototype.attached=function(){var X=_.Sm(this.hostElement).querySelector("#scroll-container");X.addEventListener("wheel",this.boundWheelScroll);X.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);X.style.touchAction="pan-y";X.addEventListener("pointerdown",this.boundScrollContainerMouseDown);X.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
KW.prototype.detached=function(){var X=_.Sm(this.hostElement).querySelector("#scroll-container");X.removeEventListener("wheel",this.boundWheelScroll);X.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);X.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);X.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
KW.prototype.reset=function(){this.set("offset",0);_.V8(this,this.setContainerWidthDiff);OZ(this)};
var CW=function(X,t){return Math.min(Math.max(t,0),X.containerWidthDiff)};
KW.prototype.onMouseUp=function(){this.dragging=!1};
KW.prototype.transformContainer=function(){this.offset=CW(this,this.offset);var X=_.Md("HTML_DIR")==="rtl"?"":"-";_.Sm(this.hostElement).querySelector("#chips").style.transform="translateX("+X+this.offset+"px)";OZ(this)};
var OZ=function(X){_.V8(X,X.setButtonsState)};
KW.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=CW(this,this.offset));this.atStart=this.offset<=0};
KW.prototype.setContainerWidthDiff=function(){var X=_.Sm(this.hostElement).querySelector("#scroll-container"),t=_.Sm(this.hostElement).querySelector("#chips");X&&t&&(this.containerWidthDiff=t.clientWidth-X.clientWidth)};
KW.prototype.scrollChipIntoView=function(X){var t=_.Sm(this.hostElement).querySelector("#scroll-container");if(t){var G=this.atStart?0:106,y=this.atEnd?0:106;X.offsetLeft<this.offset+G?this.offset=CW(this,X.offsetLeft-G):X.offsetLeft+X.clientWidth>this.offset+t.clientWidth-y&&(this.offset=CW(this,X.offsetLeft+X.clientWidth+y-t.clientWidth))}};
KW.prototype.transformContainer=KW.prototype.transformContainer;_.E([_.K({value:0}),_.U("design:type",Number)],KW.prototype,"offset",void 0);_.E([_.K({value:!0,reflectToAttribute:!0}),_.U("design:type",Boolean)],KW.prototype,"atStart",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],KW.prototype,"atEnd",void 0);_.E([_.K(),_.U("design:type",Number)],KW.prototype,"scrollDistance",void 0);
_.E([_.cW("offset"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],KW.prototype,"transformContainer",null);_.E([_.E0()],KW);var lJh;var xGR;var XLt=_.Fp(function(X){var t=X.data;X=_.J(_.sm(!1,void 0,"HDMMr"));var G=X.next().value,y=X.next().value;X={};X=_.cl("ytChipShapeChip",function(){a:switch(t==null?void 0:t().state){case 0:var z="ytChipShapeActive";break a;case 1:z="ytChipShapeDisabled";break a;default:z="ytChipShapeInactive"}return z},function(){var z=t().type===1||t().type===2,B=t();
return z||B!=null&&B.startIcon?B==null||!B.startIcon||B!=null&&B.text?z?"ytChipShapeEndIconPadding":(B==null?0:B.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(X.ytChipShapeFocused=function(){var z;
return G()&&((z=t())==null?void 0:z.state)!==1},X));
var w=function(z){if((t==null?void 0:t().state)!==1){var B,V;(V=(B=t()).onTap)==null||V.call(B,z)}};
return _.k("chip-shape",{class:"ytChipShapeHost","on:focusin":_.NI(function(){var z=_.gw().resolve(_.jH(_.Z8));if(z){y(z.isKeyBoardInUse());var B,V;(V=(B=t()).onFocusIn)==null||V.call(B)}return!1}),
"on:focusout":_.NI(function(){y(!1);return!1})},_.k(fJY,{shouldWrapInButton:function(){return t().type!==2},
selected:function(){return t().state===0},
onClick:w,isDropdown:function(){return t().type===1},
accessibilityLabel:function(){return t().accessibilityLabel}},_.k("div",{class:X},_.k(_.d,{cond:function(){return t().startIcon},
then:function(){return _.k(_.mw,{icon:function(){var z;return(z=t())==null?void 0:z.startIcon},
className:function(){return t().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return t().text},_.k(MjS,{shape:t,
onClick:w}),_.k(_.LX,{model:{borderRadius:"8px"}}))))},"Ib");
XLt.idomCompat=!0;var fJY=_.Fp(function(X){var t=_.NI(function(G){X.onClick(G);return!1});
return _.k(_.d,{cond:X.shouldWrapInButton,then:function(){return _.k("button",{class:"ytChipShapeButtonReset","on:click":t,role:function(){return X.isDropdown()?"combobox":"tab"},
"aria-label":X.accessibilityLabel,"aria-selected":X.selected},X.children)},
else:function(){return X.children}})},"Jb"),MjS=_.Fp(function(X){var t=X.shape;
var G=X.onClick;var y=_.NI(function(w){G(w);return!1});
return _.k(_.P0,null,_.k(_.rn,{when:function(){return t().type===1}},function(){return _.k(_.mw,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.k(_.rn,{when:function(){return t().type===2}},function(){return _.k("button",{class:"ytChipShapeButtonReset",
"on:click":y},_.k(_.mw,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.k(_.rn,{when:function(){return t().type===0}},function(){return _.k(_.gn,null)}))},"Kb");_.DW(XLt,"chip-shape",{props:{data:_.bR}});var ud=function(){var X=_.O.apply(this,arguments)||this;X.disableDeselectEvent=!1;X.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return X};
_.S(ud,_.O);_.H=ud.prototype;_.H.onSelectChipCommand=function(X){if(!this.selected&&this.data&&(X=_.Y(X,HG4),X.targetId&&X.targetId===this.data.targetId))this.onTap()};
_.H.onFilterChipTransformCommand=function(X){if(!this.selected&&this.data){var t;(X=(t=_.Y(X,$o4))==null?void 0:t.chipUniqueId)&&X===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.H.dataChanged=function(){var X=this;_.V8(this,function(){X.data&&X.data.isSelected&&!X.selected&&(X.scrollChipIntoView(),X.onTap())})};
_.H.computeChipStyle=function(X){return X!=null?X:"STYLE_DEFAULT"};
_.H.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.sl(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.sl(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.H.onFocus=function(){var X=_.gw().resolve(_.jH(_.Z8));X&&X.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.H.scrollChipIntoView=function(){_.Yt(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.ke.Object.defineProperties(ud.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return y$0({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
ud.prototype.onFocus=ud.prototype.onFocus;ud.prototype.onTap=ud.prototype.onTap;ud.prototype.dataChanged=ud.prototype.dataChanged;_.E([_.q(_.UC),_.U("design:type",Object)],ud.prototype,"ironButtonState",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],ud.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ud.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.NN),_.U("design:type",Object)],ud.prototype,"ironA11yKeysBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ud.prototype,"disableDeselectEvent",void 0);_.E([_.K(),_.U("design:type",Object)],ud.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.icon"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ud.prototype,"hasIcon",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data.uniqueId"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ud.prototype,"isGnomeChip",null);_.E([_.K({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.U("design:type",String)],ud.prototype,"chipStyle",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],ud.prototype,"selected",void 0);
_.E([_.C("data","selected"),_.U("design:type",Object),_.U("design:paramtypes",[])],ud.prototype,"chipShapeData",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ud.prototype,"dataChanged",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ud.prototype,"onTap",null);
_.E([_.WW("focus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ud.prototype,"onFocus",null);_.E([_.$F({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],ud);
_.N(ud,"yt-chip-cloud-chip-renderer",function(){if(xGR===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;lJh===void 0&&(lJh=document.createElement("template"));var y=lJh;G.call(t,y.content.cloneNode(!0),X.content.firstChild);xGR=X}X=xGR;return X},{mode:2});var Qm=function(){var X=_.O.apply(this,arguments)||this;X.isDarkTheme=!1;X.notSticky=!1;X.transparentBackground=!1;X.shouldHide=!1;X.disableSticky=!1;X.fluidWidth=!1;X.isClipList=!1;X.defaultChipIndex=0;X.isPlaylist=!1;X.playlistVotingAnimationEnabled=_.A("web_enable_voting_animation");X.toolbarHeight=0;X.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return X};
_.S(Qm,_.O);_.H=Qm.prototype;
_.H.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}}}}}};
_.H.attached=function(){var X=this;document.addEventListener("scroll",_.Ik(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var t;this.toolbarHeight=((t=document.querySelector("ytd-masthead"))==null?void 0:t.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(G){X.handleIntersect(G)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){X.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.H.detached=function(){var X;(X=this.intersectionObserver)==null||X.disconnect();var t;(t=this.resizeObserver)==null||t.disconnect();document.removeEventListener("scroll",_.Ik(this,this.updateChipBarWidthAndTop))};
_.H.dataChanged=function(){var X=this,t,G,y;((y=_.Y((t=this.data)==null?void 0:(G=t.contents)==null?void 0:G[0],Oez))==null?void 0:y.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var w=this.findSelectedChipIndex();this.selectedIndex!==w&&(this.selectedIndex=-1);_.V8(this,function(){X.selectedIndex=w;X.updating=!1;X.ytScrollableChipCloudBehavior.reset()})};
_.H.findSelectedChipIndex=function(){var X;if((X=this.data)==null||!X.contents)return 0;X=this.data.contents;for(var t=0;t<X.length;t++){var G=void 0;if((G=_.Y(X[t],Oez))==null?0:G.isSelected)return t}return 0};
_.H.computeStyle=function(X){return X};
_.H.handleChipCloudChipSelectAction=function(X){X=this.JSC$15931_chipsSelector.indexOf(X);X>-1&&this.JSC$15931_chipsSelector.selectIndex(X)};
_.H.handleChipCloudChipDeselectAction=function(){if(_.A("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var X,t,G,y=(G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],Oez))==null?void 0:G.navigationEndpoint;y&&_.sl(this.hostElement,"yt-browse-section-list-reload-endpoint",[y]);this.JSC$15931_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.H.onGuideIsExpandedChanged=function(){var X=this.ytScrollableChipCloudBehavior;_.V8(X,X.setContainerWidthDiff);OZ(this.ytScrollableChipCloudBehavior)};
_.H.onResize=function(){var X=this.ytScrollableChipCloudBehavior;_.V8(X,X.setContainerWidthDiff);OZ(this.ytScrollableChipCloudBehavior)};
_.H.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.H.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.H.handleIntersect=function(X){this.notSticky=this.isChannelPageGrid||this.disableSticky||X[0].intersectionRatio===1};
_.H.updateDimensions=function(){var X=this.ytRendererBehavior.parentComponent;if(X){var t,G=(t=X.headerElement)!=null?t:X;_.Kd(this.hostElement,{"--ytd-rich-grid-chips-bar-width":G.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.H.updateSelectedIndexFromBinding=function(X){this.selectedIndex=X.detail.value};
_.H.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var X;(X=this.sortFilterHeaderRendererElement)==null||X.setAttribute("is-playlist-page-with-filters","")}};
_.H.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(b$q(!this.notSticky))};
_.ke.Object.defineProperties(Qm.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 X,t,G=(X=this.data)==null?void 0:(t=X.contents)==null?void 0:t.find(function(y){return _.Y(y,cZt)});
return{sortFilterHeaderRenderer:_.Y(G,cZt)}}}});
Qm.prototype.dispatchChipBarIsSticky=Qm.prototype.dispatchChipBarIsSticky;Qm.prototype.isPlaylistPageChanged=Qm.prototype.isPlaylistPageChanged;Qm.prototype.updateChipBarWidthAndTop=Qm.prototype.updateChipBarWidthAndTop;Qm.prototype.onResize=Qm.prototype.onResize;Qm.prototype.onGuideIsExpandedChanged=Qm.prototype.onGuideIsExpandedChanged;Qm.prototype.dataChanged=Qm.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Qm.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.ax),_.U("design:type",Object)],Qm.prototype,"ironResizableBehavior",void 0);_.E([_.q(),_.U("design:type",KW)],Qm.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Qm.prototype,"ytdReduxBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],Qm.prototype,"data",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],Qm.prototype,"selectedIndex",void 0);_.E([_.K({value:320}),_.U("design:type",Number)],Qm.prototype,"scrollDistance",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qm.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qm.prototype,"notSticky",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qm.prototype,"transparentBackground",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.U("design:type",String)],Qm.prototype,"componentStyle",void 0);_.E([_.K({selector:_.YE0}),_.U("design:type",Boolean)],Qm.prototype,"guideIsExpanded",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qm.prototype,"shouldHide",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qm.prototype,"disableSticky",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qm.prototype,"fluidWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qm.prototype,"isClipList",void 0);_.E([_.K(),_.U("design:type",Object)],Qm.prototype,"defaultChipIndex",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qm.prototype,"isPlaylist",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Qm.prototype,"playlistVotingAnimationEnabled",void 0);_.E([_.rt("#chips"),_.U("design:type",Object)],Qm.prototype,"JSC$15931_chipsSelector",void 0);_.E([_.rt("ytd-sort-filter-header-renderer"),_.U("design:type",HTMLElement)],Qm.prototype,"sortFilterHeaderRendererElement",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Qm.prototype,"updating",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Qm.prototype,"dataChanged",null);_.E([_.cW("guideIsExpanded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Qm.prototype,"onGuideIsExpandedChanged",null);_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Qm.prototype,"onResize",null);
_.E([_.U0("isChannelPageGrid","disableSticky","data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Qm.prototype,"updateChipBarWidthAndTop",null);_.E([_.C("componentStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Qm.prototype,"isChannelPageGrid",null);_.E([_.C("componentStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Qm.prototype,"isHashtagLandingPage",null);
_.E([_.cW("isPlaylistPage"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Qm.prototype,"isPlaylistPageChanged",null);_.E([_.C("componentStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Qm.prototype,"isPlaylistPage",null);_.E([_.C("componentStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Qm.prototype,"isDisableDeselectEvent",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Qm.prototype,"sortFilterHeaderRendererData",null);_.E([_.K({reflectToAttribute:!0,selector:_.qEl}),_.U("design:type",String)],Qm.prototype,"frostedGlassMode",void 0);_.E([_.cW("notSticky"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Qm.prototype,"dispatchChipBarIsSticky",null);_.E([_.p({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Qm);
_.N(Qm,"ytd-feed-filter-chip-bar-renderer",function(){if(aJq!==void 0)return aJq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return aJq=X},{mode:1});var $pJ;var tLJ=_.Fp(function(X){var t=X.data;var G=X.buttonIndex;var y=X.selectedIndex;var w=X.onSelect;var z=function(){return G()===y()},B=function(){var V,b;
return(b=(V=t().text)==null?void 0:V.content)!=null?b:""};
X=_.On_();return _.k("yt-toggleable-image-button-view-model",{class:function(){var V={};V=(V["toggleable-image-button-view-model-wiz"]=!0,V[""]=!0,V["toggleable-image-button-view-model-wiz__semi-transparent"]=y()!==-1&&!z(),V);return _.pX(V)},
tabindex:0,"aria-label":B,"aria-pressed":z,role:"button","on:keydown":X,"on:click":_.NI(function(){w(t().onSubmitCommand);return!1})},_.k(_.d,{cond:function(){return t().logo},
then:function(V){return _.k(_.gr,{data:V,className:function(){var b={};b=(b["toggleable-image-button-view-model-wiz__image"]=!0,b["toggleable-image-button-view-model-wiz__circular-radius"]=!(!t().backgroundColor||!t().backgroundColorDarkMode),b["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(z()&&t().backgroundColor&&t().backgroundColorDarkMode),b);return _.pX(b)},
alt:B,useWidth:!1,style:function(){if(z()&&t().backgroundColor&&t().backgroundColorDarkMode){var b=wt(Number(t().backgroundColorDarkMode),"1");var e=wt(Number(t().backgroundColor),"1");b="background: linear-gradient(180deg,"+b+","+e+") border-box;"}else b="";return b}})}}),_.k(_.LX,{model:{borderRadius:"16px"}}),_.k("p",{class:function(){var V={};
V=(V["toggleable-image-button-view-model-wiz__label"]=!0,V["toggleable-image-button-view-model-wiz__bold-text"]=z(),V);return _.pX(V)}},_.k(_.eh,{text:function(){return t().text}})))},"Lb");
tLJ.idomCompat=!0;var yTh=_.Fp(function(X){var t=X.data;X=_.J(_.sm({index:-1,command:{}},void 0,"Zcqtsb"));var G=X.next().value,y=X.next().value;return _.k("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.k("div",{class:"nudge-form-view-model-wiz__form-options"},_.k(_.M7,{data:function(){return t().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(w,z){return _.k(tLJ,{data:w.data,buttonIndex:z,selectedIndex:function(){return G().index},
onSelect:function(B){y({index:z(),command:B})}})}})),_.k(_.eh,{text:function(){return t().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.k("div",{class:"nudge-form-view-model-wiz__submit"},_.k(_.M7,{data:function(){return t().submitButton}},{buttonViewModel:function(w){return _.k(GXY,{data:w.data,
isDisabled:function(){return G().index===-1},
onClick:function(){_.JH(G().command)}})}})))},"Mb");
yTh.idomCompat=!0;var GXY=_.Fp(function(X){var t=_.qt(function(){return Object.assign({},X.data(),{state:X.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.k(_.QK,{data:t,onClick:X.onClick})},"Nb");_.DW(yTh,"yt-nudge-form-view-model",{props:{data:_.bR}});var IU=function(){var X=_.O.apply(this,arguments)||this;X.roundedContainer=!0;X.buttonUpdate=_.A("web_modern_buttons");X.isDarkMode=!1;X.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return X};
_.S(IU,_.O);_.H=IU.prototype;_.H.computeNudgeStyle=function(X){return X?"modernized-nudge":""};
_.H.handleDarkModeToggledAction=function(X){this.isDarkMode=X};
_.H.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.H.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"}}}};
_.H.computeIsHorizontalButtons=function(X){return X?!!X.applyModernizedStyle&&!!X.enableHorizontalButtons&&!!X.secondaryButton:!1};
_.ke.Object.defineProperties(IU.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=(X=this.data)==null?void 0:X.backgroundStyle)!=null?t:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=(X=this.data)==null?void 0:X.contentsLocation)!=null?t:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null?0:X.lightIconImage)}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],IU.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],IU.prototype,"actionHandlerBehavior",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("isHideEnclosingAction"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],IU.prototype,"isHidden",null);_.E([_.K(),_.U("design:type",Object)],IU.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],IU.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],IU.prototype,"buttonUpdate",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.U("design:type",String)],IU.prototype,"nudgeStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.trimStyle"),_.U("design:type",String),_.U("design:paramtypes",[])],IU.prototype,"trimStyle",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.backgroundStyle"),_.U("design:type",String),_.U("design:paramtypes",[])],IU.prototype,"backgroundStyle",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data.contentsLocation"),_.U("design:type",String),_.U("design:paramtypes",[])],IU.prototype,"contentsLocation",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.disableDropShadow"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],IU.prototype,"noShadow",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.lightIconImage"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],IU.prototype,"noIcon",null);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.U("design:type",Boolean)],IU.prototype,"isHorizontalButtons",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Object)],IU.prototype,"isDarkMode",void 0);_.E([_.p({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],IU);
_.N(IU,"ytd-feed-nudge-renderer",function(){if($pJ!==void 0)return $pJ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return $pJ=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var wLY;var zJB;var WQ=function(){var X=_.O.apply(this,arguments)||this;X.collapsed=!1;X.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return X};
_.S(WQ,_.O);WQ.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"}}}};
WQ.prototype.handleRatingSelect=function(){var X;((X=this.data)==null?0:X.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
WQ.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],WQ.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],WQ.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.tV),_.U("design:type",Object)],WQ.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],WQ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],WQ.prototype,"collapsed",void 0);_.E([_.p({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],WQ);
_.N(WQ,"ytd-slimline-survey-renderer",function(){if(zJB!==void 0)return zJB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return zJB=X},{mode:1});var HJS;var cQ=function(){return _.O.apply(this,arguments)||this};
_.S(cQ,_.O);cQ.prototype.maybeGetBackgroundColor=function(X){return this.isDarkMode?X.section2Color:X.section3Color};
cQ.prototype.colorPaletteChanged=function(){var X=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;X&&(X==null?0:X.secondaryTitleColor)&&this.maybeGetBackgroundColor(X)?(this.hostElement.style.backgroundColor=_.Gq(this.maybeGetBackgroundColor(X)),this.hostElement.style.color=_.Gq(X.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
cQ.prototype.colorPaletteChanged=cQ.prototype.colorPaletteChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],cQ.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],cQ.prototype,"data",void 0);_.E([_.K({selector:function(X){return X.ui.darkModeIsEnabled}}),
_.U("design:type",Boolean)],cQ.prototype,"isDarkMode",void 0);_.E([_.K(),_.U("design:type",Object)],cQ.prototype,"lightColorPalette",void 0);_.E([_.K(),_.U("design:type",Object)],cQ.prototype,"darkColorPalette",void 0);_.E([_.cW("darkColorPalette","lightColorPalette","data","isDarkMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],cQ.prototype,"colorPaletteChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],cQ);
_.N(cQ,"ytd-endorsement-header-renderer",function(){if(HJS!==void 0)return HJS;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return HJS=X},{mode:1});_.DW(_.lD,"yt-decorated-avatar-view-model",{props:{data:_.bR,className:_.bR}});var pW=function(){var X=_.O.apply(this,arguments)||this;X.fullHeight=_.A("web_rich_grid_media_full_height");X.showChannelAvatar=!0;X.hasPlaylistThumbnail=!1;X.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};X.prepareThumbnailForPageTransition=function(){_.A("web_thumbnail_to_watch_transition")&&(X.thumbnail.style.viewTransitionName="thumbnail-to-watch",X.cleanupThumbnailAfterPageTransition(X.thumbnail))};
return X};
_.S(pW,_.O);_.H=pW.prototype;
_.H.configureRendererStamper=function(){return{lazyLoadMenu:Il,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"}}}};
_.H.attached=function(){this.updateInlinePreviewHoverListeners()};
_.H.detached=function(){this.clearInlinePreviewHoverListeners()};
_.H.shouldLazyLoadMenu=function(){var X=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.A("kevlar_modern_downloads_page")||!X};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15956_inlinePreviewHoverListener=oD({mediaRenderer:this,lockupElement:this.JSC$15956_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.H.getVideoPreviewOpts=function(){var X={},t;if((t=this.data)==null?0:t.multipleInlinePlaybackEndpoint)X=Mrz;this.isRadio&&(X=f3q);return _.A("web_thumbnail_to_watch_transition")?Object.assign({},X,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):X};
_.H.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15956_inlinePreviewHoverListener)==null||gP(X)};
_.H.getOwner=function(){var X,t,G;return((X=this.data)==null?void 0:(t=X.channelThumbnailSupportedRenderers)==null?void 0:t.channelThumbnailWithLinkRenderer)||_.Y((G=this.data)==null?void 0:G.showProviderChannelThumbnail,Vot)};
_.H.updateLockupSize=function(){var X;((X=this.getOwner())==null?0:X.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.H.getFeedbackEndpoint=function(X){if(_.Y(X,_.fV))return X;var t,G;X=(G=(t=_.Y(X,_.Cq))==null?void 0:t.commands)!=null?G:[];t=_.J(X);for(G=t.next();!G.done;G=t.next())if(G=this.getFeedbackEndpoint(G.value))return G;return null};
_.H.computeNavigationEndpoint=function(X){return qC6(X==null?void 0:X.navigationEndpoint)};
_.H.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var X=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(X)!==JSON.stringify(this.data)&&this.set("data",X)}};
_.H.onDataChanged=function(){var X=this,t=this.getOwner();if(t){this.set("data.owner",t);var G,y,w,z,B,V=((G=this.data)==null?void 0:(y=G.shortBylineText)==null?void 0:(w=y.runs)==null?void 0:(z=w[0])==null?void 0:z.text)||((B=t.name)==null?void 0:B.simpleText);this.set("data.owner.title",V)}var b,e,g,F,T,D;t=((b=this.data)==null?void 0:(e=b.thumbnailRenderer)==null?void 0:e.playlistVideoThumbnailRenderer)||((g=this.data)==null?void 0:(F=g.thumbnailRenderer)==null?void 0:F.playlistCustomThumbnailRenderer)||
((T=this.data)==null?void 0:(D=T.thumbnailRenderer)==null?void 0:D.showCustomThumbnailRenderer);var h;((h=this.data)==null?0:h.thumbnail)||!t||this.set("data.thumbnail",t.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){X.updateLockupSize()});
var u;if(b=((u=this.data)==null?void 0:u.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b);var W;((W=this.dismissActionToReplayEntity)==null?0:W.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.H.onHiddenChanged=function(){this.updateLockupSize()};
_.H.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.sl(this.hostElement,"yt-terminate-video-preview-action");else{var X;(X=this.videoTitleLink)==null||X.focus()}};
_.H.metadataColorChanged=function(){var X;if(this.metadataColor&&((X=this.videoTitle)==null?0:X.style))this.videoTitle.style.color=_.Gq(this.metadataColor);else{var t,G;!this.metadataColor&&((t=this.videoTitle)==null?0:(G=t.style)==null?0:G.color)&&(this.videoTitle.style.color="")}};
_.H.onDetailsClick=function(X){var t=this.computedNavigationEndpoint;t&&(_.Fa(_.be(X),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Yt(this.hostElement,"yt-navigate",{endpoint:t}))};
_.H.cleanupThumbnailAfterPageTransition=function(X){_.C$h(document,"yt-page-type-changed",function(){X.style.viewTransitionName=""})};
_.H.onRendererTap=function(){this.prepareThumbnailForPageTransition();var X,t,G=((X=this.data)==null?void 0:X.serviceEndpoint)||this.getFeedbackEndpoint((t=this.data)==null?void 0:t.navigationEndpoint);G&&_.Y(G,_.fV)&&this.ytComponentBehavior.resolveCommand(G)};
_.H.onMouseDown=function(X){var t=X.target,G=this.computedNavigationEndpoint,y;X=t.href||((y=_.Y(G==null?void 0:G.commandMetadata,_.jQ))==null?void 0:y.url);y=t.data||G;X&&y&&NeJ(X,y)};
_.H.computeVideoTitleText=function(){var X;if((X=this.data)==null?0:X.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.H.computeHasPlaylistThumbnail=function(X){var t,G,y,w,z;if((((t=X.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((G=X.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer)||((y=X.thumbnailRenderer)==null?0:y.showCustomThumbnailRenderer)||((w=X.thumbnailRenderer)==null?0:w.playlistVideoThumbnailRenderer)||((z=X.thumbnailRenderer)==null?0:z.playlistCustomThumbnailRenderer))&&X.thumbnailOverlays)for(t=0;t<X.thumbnailOverlays.length;t++)if(G=void 0,(G=X.thumbnailOverlays[t])==
null?0:G.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ke.Object.defineProperties(pW.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.A("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var X;return(X=this.data)==null?void 0:X.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var X;return(X=this.data)==null?void 0:X.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15956_inlinePreviewHoverListener)==null?0:XF(X))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Wy(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:X.videoId)||((t=this.data)==null?void 0:t.playlistId)||""}}});
pW.prototype.onMouseDown=pW.prototype.onMouseDown;pW.prototype.metadataColorChanged=pW.prototype.metadataColorChanged;pW.prototype.onIsDismissedChanged=pW.prototype.onIsDismissedChanged;pW.prototype.onHiddenChanged=pW.prototype.onHiddenChanged;pW.prototype.onDataChanged=pW.prototype.onDataChanged;pW.prototype.handleReloadDownloadsInfo=pW.prototype.handleReloadDownloadsInfo;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],pW.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],pW.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],pW.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],pW.prototype,"ytdReduxBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],pW.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],pW.prototype,"entitySelectorType",void 0);_.E([_.K(),_.U("design:type",Boolean)],pW.prototype,"noEndpoints",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],pW.prototype,"isRadio",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],pW.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pW.prototype,"fullHeight",void 0);
_.E([_.K(),_.U("design:type",Boolean)],pW.prototype,"showDarkVideoMetadata",void 0);_.E([_.K(),_.U("design:type",Boolean)],pW.prototype,"showLightVideoMetadata",void 0);_.E([_.K(),_.U("design:type",Number)],pW.prototype,"metadataColor",void 0);_.E([_.K(),_.U("design:type",Object)],pW.prototype,"showChannelAvatar",void 0);_.E([_.K(),_.U("design:type",Boolean)],pW.prototype,"hidden",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],pW.prototype,"showYtInteraction",void 0);
_.E([_.K(),_.U("design:type",String)],pW.prototype,"dismissedContentId",void 0);_.E([_.K({selectorArgs:["dismissedContentId"],selector:C36}),_.U("design:type",Object)],pW.prototype,"dismissActionToReplayEntity",void 0);
_.E([_.K({selectorArgs:["entitySelectorType","mediaId"],selector:function(X,t,G){if(_.A("kevlar_modern_downloads_page")&&G&&t&&t!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(t){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var y=usE(X,G);if(y){t=_.$1(X,G);var w=G8(X,G),z=ROf(X,G);X=yl(X,G);var B=A_6(y,t,w,z);w=B.shortViewCountText;var V=B.publishedTimeText;B=B.badges;var b=X>0;z=F4V(y,t,z,X);y=_.NQ(t)||t==="TRANSFER_STATE_FAILED"||t==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!r9(y.policyEntity)?
void 0:hF0(G,X,y.videoEntity.lengthSeconds);t==="TRANSFER_STATE_PAUSED_BY_USER"&&G&&!_.A("dl_resume_click_killswitch")&&(y={offlineVideoEndpoint:{videoId:G,action:"ACTION_RESUME"}});G={shortViewCountText:w,publishedTimeText:V,badges:B,isWatched:b,navigationEndpoint:y,thumbnailOverlays:z}}else G=void 0;return G;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(t=Q9V(X,G))if(y=_.tp(X,G),z=_.IBw(X,G),y!=="TRANSFER_STATE_UNKNOWN"){G=Tvl(t,y,z,G,_.X0(X));break a}G=void 0}return G;default:_.Mj(new _.NJ("Error: entitySelectorType defined but not matched in selector.",
X,t))}}}),
_.U("design:type",Object)],pW.prototype,"entityDrivenState",void 0);_.E([_.K({computed:"computeVideoTitleText(data)"}),_.U("design:type",Object)],pW.prototype,"videoTitleText",void 0);_.E([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.U("design:type",Object)],pW.prototype,"hasPlaylistThumbnail",void 0);_.E([_.K({computed:"computeNavigationEndpoint(data)"}),_.U("design:type",Object)],pW.prototype,"computedNavigationEndpoint",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],pW.prototype,"typographyBump",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("typographyBump"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],pW.prototype,"typographyBumpV2",null);_.E([_.rt("#video-title"),_.U("design:type",HTMLElement)],pW.prototype,"videoTitle",void 0);_.E([_.rt("#video-title-link"),_.U("design:type",HTMLElement)],pW.prototype,"videoTitleLink",void 0);
_.E([_.rt("#thumbnail"),_.U("design:type",HTMLElement)],pW.prototype,"thumbnail",void 0);_.E([_.rt("#dismissible"),_.U("design:type",HTMLElement)],pW.prototype,"JSC$15956_dismissibleMedia",void 0);_.E([_.C("data.menu"),_.U("design:type",Object),_.U("design:paramtypes",[])],pW.prototype,"lazyLoadMenu",null);_.E([_.C("data.menu"),_.U("design:type",Object),_.U("design:paramtypes",[])],pW.prototype,"immediateLoadMenu",null);
_.E([_.U0("entityDrivenState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pW.prototype,"handleReloadDownloadsInfo",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pW.prototype,"onDataChanged",null);_.E([_.U0("hidden"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pW.prototype,"onHiddenChanged",null);
_.E([_.cW("isDismissed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pW.prototype,"onIsDismissedChanged",null);_.E([_.cW("metadataColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pW.prototype,"metadataColorChanged",null);_.E([_.WW("mousedown"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],pW.prototype,"onMouseDown",null);
_.E([_.C("lockupIsHovered"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],pW.prototype,"isHovered",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],pW.prototype,"useAvatar",null);_.E([_.C("data","entitySelectorType"),_.U("design:type",String),_.U("design:paramtypes",[])],pW.prototype,"mediaId",null);_.E([_.p({is:"ytd-rich-grid-media",disableElementRegistration:!0})],pW);
var odS=_.qi()(pW,"ytd-rich-grid-media",function(){if(wLY!==void 0)return wLY;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return wLY=X},{mode:_.Cz("kevlar_poly_si_batch_j072")?1:2});var JTJ;var rI=function(){var X=_.O.apply(this,arguments)||this;X.removeMaxWidth=!0;X.insetMetadata=!1;return X};
_.S(rI,_.O);_.H=rI.prototype;_.H.configureRendererStamper=function(){return{innerMenu:Il,outerMenu:Object.assign({},Il,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H.onDataChanged=function(){var X,t=((X=this.data)==null?void 0:X.trackingParams)||"";t&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(t));var G;((G=this.dismissActionToReplayEntity)==null?0:G.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.H.attached=function(){this.updateInlinePreviewHoverListeners()};
_.H.detached=function(){this.clearInlinePreviewHoverListeners()};
_.H.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$15961_inlinePreviewHoverListener=oD({mediaRenderer:this,lockupElement:this.JSC$15961_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:X9Y})};
_.H.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15961_inlinePreviewHoverListener)==null||gP(X)};
_.H.onRendererTap=function(){var X,t,G=(X=this.data)==null?void 0:(t=X.serviceEndpoints)==null?void 0:t[0];_.Y(G,_.fV)&&this.componentBehavior.resolveCommand(G)};
_.H.onDetailsClick=function(X){var t,G=(t=this.data)==null?void 0:t.navigationEndpoint;G&&(_.Fa(_.be(X),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(G))};
_.H.onShow=function(){var X=this.data;X.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(X.onFirstVisibleCommand),delete X.onFirstVisibleCommand)};
_.ke.Object.defineProperties(rI.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var X;return this.insetMetadata?void 0:(X=this.data)==null?void 0:X.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var X;return this.insetMetadata?(X=this.data)==null?void 0:X.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var X=this.data;if(X!=null&&X.badge&&(X=_.Y(X.badge,D0o))){var t,G,y;return[{metadataBadgeRenderer:{label:((t=X.label)==null?void 0:(G=t.runs)==null?void 0:G[0].text)||((y=X.label)==null?void 0:y.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var X=this.data;return Object.assign({},X.headline,{accessibility:X.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return this.isSlimShort?(X=this.computedTitle)==null?void 0:(t=X.accessibility)==null?void 0:(G=t.accessibilityData)==null?void 0:G.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.A("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15961_inlinePreviewHoverListener)==null?0:XF(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
rI.prototype.onDataChanged=rI.prototype.onDataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],rI.prototype,"componentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],rI.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.tV),_.U("design:type",Object)],rI.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],rI.prototype,"ytdReduxBehavior",void 0);_.E([_.rt("ytd-thumbnail"),_.U("design:type",HTMLElement)],rI.prototype,"thumbnail",void 0);_.E([_.rt("#dismissible"),_.U("design:type",HTMLElement)],rI.prototype,"JSC$15961_dismissibleMedia",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],rI.prototype,"removeMaxWidth",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],rI.prototype,"insetMetadata",void 0);_.E([_.K(),_.U("design:type",String)],rI.prototype,"dismissedContentId",void 0);_.E([_.K({selectorArgs:["dismissedContentId"],selector:C36}),_.U("design:type",Object)],rI.prototype,"dismissActionToReplayEntity",void 0);_.E([_.C("insetMetadata"),_.U("design:type",Object),_.U("design:paramtypes",[])],rI.prototype,"thumbnailObjectFit",null);
_.E([_.C("data","insetMetadata"),_.U("design:type",Object),_.U("design:paramtypes",[])],rI.prototype,"innerMenu",null);_.E([_.C("data","insetMetadata"),_.U("design:type",Object),_.U("design:paramtypes",[])],rI.prototype,"outerMenu",null);_.E([_.K(),_.U("design:type",Object)],rI.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],rI.prototype,"miniMode",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rI.prototype,"onDataChanged",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],rI.prototype,"shortsBadges",null);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rI.prototype,"isShort",null);
_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rI.prototype,"isSlimShort",null);_.E([_.C("data","isShort"),_.U("design:type",Object),_.U("design:paramtypes",[])],rI.prototype,"computedTitle",null);_.E([_.C("isSlimShort","computedTitle"),_.U("design:type",Object),_.U("design:paramtypes",[])],rI.prototype,"computedAccessibilityLabel",null);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rI.prototype,"shouldForce2By3",null);_.E([_.C("lockupIsHovered"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rI.prototype,"isHovered",null);_.E([_.p({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],rI);
_.N(rI,"ytd-rich-grid-slim-media",function(){if(JTJ!==void 0)return JTJ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return JTJ=X},{mode:_.Cz("kevlar_poly_si_batch_j063")?1:2});var BcP;var nde;var Nq=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(Nq,_.O);Nq.prototype.computeIcon=function(X){return X&&X.iconType?"yt-sys-icons:"+X.iconType.toLowerCase():""};
Nq.prototype.onMouseEnter=function(){this.isHovered=!0};
Nq.prototype.onMouseLeave=function(){this.isHovered=!1};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Nq.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Nq.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],Nq.prototype,"isHovered",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Nq.prototype,"darkerDarkTheme",void 0);_.E([_.p({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Nq);
_.N(Nq,"ytd-expand-on-hover-card-renderer",function(){if(nde!==void 0)return nde;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return nde=X},{mode:1});var VLe,bJR=function(){if(VLe!==void 0)return VLe;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return VLe=X};_.Xa("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var PQ=function(){var X=_.O.apply(this,arguments)||this;X.compactStyle=!1;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(PQ,_.O);_.H=PQ.prototype;_.H.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.H.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"}}}};
_.H.computeHideDot=function(X){return!(X&&X.subscriberCountText&&X.videoCountText)||this.compactStyle};
_.H.hasDualButtons=function(X){return X&&X.purchaseButton&&X.subscribeButton};
_.H.backgroundColorChanged=function(){if(this.data!==void 0){var X=this.data.backgroundColor;this.isDarkTheme&&(X=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=X!=null?_.Gq(X):"transparent"}};
_.H.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.H.onTap=function(X){var t,G,y=((t=this.data)==null?void 0:t.navigationEndpoint)||((G=this.data)==null?void 0:G.serviceEndpoint);_.Y(y,_.Yy)&&(y&&_.gw().resolve(_.F3).resolveCommand(y,{form:{element:this.hostElement}}),X.preventDefault())};
_.H.computeChannelEndpoint=function(X){return _.Y(X,_.Yy)?null:X};
_.H.computeHrefEndpoint=function(X){return _.Y(X,_.Yy)?null:this.componentBehavior.computeHref_(X)};
_.H.computeChannelRendererStyle=function(X){return X};
_.H.computeIconSize=function(X){return X?108:136};
_.ke.Object.defineProperties(PQ,{template:{configurable:!0,enumerable:!0,get:function(){return bJR()}}});
PQ.prototype.backgroundColorChanged=PQ.prototype.backgroundColorChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],PQ.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],PQ.prototype,"componentBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],PQ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],PQ.prototype,"isDarkTheme",void 0);_.E([_.K({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.U("design:type",String)],PQ.prototype,"channelRendererStyle",void 0);_.E([_.K({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],PQ.prototype,"dualButtons",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_desktop_search_bigger_thumbs")}}),
_.U("design:type",Boolean)],PQ.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.Yx("desktop_search_bigger_thumbs_style")}}),
_.U("design:type",String)],PQ.prototype,"biggerThumbStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],PQ.prototype,"compactStyle",void 0);_.E([_.cW("data","isDarkTheme"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PQ.prototype,"backgroundColorChanged",null);_.E([_.p({is:"ytd-channel-renderer",disableElementRegistration:!0})],PQ);_.N(PQ,"ytd-channel-renderer",function(){return bJR()},{mode:1});var kXS;var dpR;_.Xa("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var EZ=function(){var X=_.O.apply(this,arguments)||this;X.displayItemCount=2;X.collections=_.A("web_modern_collections_v2");X.hasPlaylistThumbnail=!1;X.stackThumbnailSize="large";return X};
_.S(EZ,_.O);_.H=EZ.prototype;_.H.attached=function(){this.updateInlinePreviewHoverListeners()};
_.H.detached=function(){this.clearInlinePreviewHoverListeners()};
_.H.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.H.computeFirstVideos=function(X,t){return X&&t?X.slice(0,t):[]};
_.H.computeThumbnailWidth=function(X,t){return X?t==="BIG"?500:t==="MASSIVE"?600:t==="MEDIUM"?450:420:360};
_.H.computeThumbnailHeight=function(X,t){return X?t==="BIG"?280:t==="MASSIVE"?337:234:202};
_.H.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15974_inlinePreviewHoverListener)==null||gP(X)};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15974_inlinePreviewHoverListener=oD({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Mrz,thumbnailElement:this.thumbnail})};
_.H.computeHasPlaylistThumbnail=function(X){var t,G;if((((t=X.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((G=X.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer))&&X.thumbnailOverlays)for(t=0;t<X.thumbnailOverlays.length;t++)if(G=void 0,(G=X.thumbnailOverlays[t])==null?0:G.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ke.Object.defineProperties(EZ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15974_inlinePreviewHoverListener)==null?0:XF(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
EZ.prototype.dataChanged=EZ.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],EZ.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],EZ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],EZ.prototype,"displayItemCount",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_desktop_search_bigger_thumbs")}}),
_.U("design:type",Boolean)],EZ.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.Yx("desktop_search_bigger_thumbs_style")}}),
_.U("design:type",String)],EZ.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],EZ.prototype,"collections",void 0);_.E([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.U("design:type",Object)],EZ.prototype,"hasPlaylistThumbnail",void 0);_.E([_.K(),_.U("design:type",String)],EZ.prototype,"stackThumbnailSize",void 0);_.E([_.rt("ytd-thumbnail"),_.U("design:type",HTMLElement)],EZ.prototype,"thumbnail",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],EZ.prototype,"dataChanged",null);_.E([_.C("lockupIsHovered"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],EZ.prototype,"isHovered",null);_.E([_.p({is:"ytd-radio-renderer",disableElementRegistration:!0})],EZ);
_.N(EZ,"ytd-radio-renderer",function(){if(dpR!==void 0)return dpR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return dpR=X},{mode:_.Cz("kevlar_poly_si_batch_j058")?1:2});var eJ4;_.Xa("itemSectionRenderer","showRenderer","ytd-show-renderer");var UZ=function(){return _.O.apply(this,arguments)||this};
_.S(UZ,_.O);UZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
UZ.prototype.computeThumbnailWidth=function(X){return X?360:246};
UZ.prototype.computeUseProminentThumbs=function(X){return X};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],UZ.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],UZ.prototype,"isSearch",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.U("design:type",Boolean)],UZ.prototype,"useProminentThumbs",void 0);_.E([_.p({is:"ytd-show-renderer",disableElementRegistration:!0})],UZ);
_.N(UZ,"ytd-show-renderer",function(){if(eJ4!==void 0)return eJ4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return eJ4=X},{mode:1});_.Xa("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var mO=function(){var X=_.O.apply(this,arguments)||this;X.isRichGrid=!1;return X};
_.S(mO,_.O);mO.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"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mO.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mO.prototype,"isRichGrid",void 0);_.E([_.p({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],mO);
_.N(mO,"ytd-feed-entry-renderer",function(){if(kXS!==void 0)return kXS;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return kXS=X},{mode:1});var jrh;var RU=function(){return _.O.apply(this,arguments)||this};
_.S(RU,_.O);RU.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.E([_.q(_.MZ),_.U("design:type",Object)],RU.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],RU.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],RU.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.x0,value:3}),_.U("design:type",Number)],RU.prototype,"itemsPerRow",void 0);
_.E([_.p({is:"ytd-link-card-renderer",disableElementRegistration:!0})],RU);
_.N(RU,"ytd-link-card-renderer",function(){if(jrh!==void 0)return jrh;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return jrh=X},{mode:1});var gd4;var id=function(){return _.O.apply(this,arguments)||this};
_.S(id,_.O);_.H=id.prototype;_.H.configureRendererStamper=function(){return{"data.menu":Il,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H.onRendererTap=function(X){if(!this.ytdDismissibleItemBehavior.isDismissed){var t,G=(t=this.data)==null?void 0:t.navigationEndpoint;G&&!_.Fa(_.be(X),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(G)?_.Fa(_.be(X),this.hostElement,["A"])||_.Yt(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G,{}))}};
_.H.maybeComputeHref=function(X){return this.ytComponentBehavior.computeHref_(X,!0)};
_.H.getNavigationCommand=function(X){return this.isNavigationCommand(X)?X:null};
_.H.isNavigationCommand=function(X){return X?_.Y(X,_.pp)||_.Y(X,_.nq)||_.Y(X,_.zj)?!0:!1:!1};
id.prototype.onRendererTap=id.prototype.onRendererTap;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],id.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],id.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],id.prototype,"data",void 0);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],id.prototype,"onRendererTap",null);_.E([_.p({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],id);
_.N(id,"ytd-lumiere-promo-item-image-renderer",function(){if(gd4!==void 0)return gd4;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return gd4=X},{mode:1});var FcB;var LW=function(){return _.O.apply(this,arguments)||this};
_.S(LW,_.O);LW.prototype.computeLandscapeThumbnail=function(){var X;return((X=this.data)==null?void 0:X.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],LW.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],LW.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],LW.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.x0}),_.U("design:type",Number)],LW.prototype,"itemsPerRow",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.U("design:type",Boolean)],LW.prototype,"landscapeThumbnail",void 0);_.E([_.p({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],LW);
_.N(LW,"ytd-lumiere-shelf-details-renderer",function(){if(FcB!==void 0)return FcB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return FcB=X},{mode:_.Cz("kevlar_poly_si_batch_j076")?1:2});var Tcq;var vQ=function(){return _.O.apply(this,arguments)||this};
_.S(vQ,_.O);vQ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vQ.prototype,"data",void 0);_.E([_.p({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],vQ);
_.N(vQ,"ytd-primetime-promo-details-renderer",function(){if(Tcq!==void 0)return Tcq;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Tcq=X},{mode:1});var ATS;var aU=function(){return _.O.apply(this,arguments)||this};
_.S(aU,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],aU.prototype,"data",void 0);_.E([_.p({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],aU);
_.N(aU,"ytd-panel-show-style-metadata-renderer",function(){if(ATS!==void 0)return ATS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ATS=X},{mode:1});var YBz;var ld=function(){return _.O.apply(this,arguments)||this};
_.S(ld,_.O);_.H=ld.prototype;_.H.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.H.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.H.computeThumbnail=function(X){if(X)return X.smallFormFactorBackgroundThumbnail||X.largeFormFactorBackgroundThumbnail};
_.H.maybeComputeHref=function(X){return this.ytComponentBehavior.computeHref_(X,!0)};
_.H.isNavigationCommand=function(X){return X?_.Y(X,_.pp)||_.Y(X,_.nq)||_.Y(X,_.zj)?!0:!1:!1};
_.H.getNavigationCommand=function(X){return this.isNavigationCommand(X)?X:null};
ld.prototype.onPanelTap=ld.prototype.onPanelTap;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ld.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ld.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.U("design:type",Boolean)],ld.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0,value:_.A("web_modern_buttons")}),_.U("design:type",Boolean)],ld.prototype,"modernButtons",void 0);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ld.prototype,"onPanelTap",null);_.E([_.p({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],ld);
_.N(ld,"ytd-primetime-promo-panel-renderer",function(){if(YBz!==void 0)return YBz;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return YBz=X},{mode:1});_.DW(_.Fp(function(X){X=_.jx(X,{data:{},useFullWidth:!1});var t=X.data,G=X.useFullWidth;X={};return _.k("teaser-card-view-model",{class:_.cl("ytTeaserCardViewModelHost",(X.ytTeaserCardViewModelUseFullWidth=function(){return G()},X))},_.k(_.d,{cond:function(){return t().onTap},
then:function(y){return _.k(_.J4,{className:"ytTeaserCardViewModelLink",command:y},_.k("div",{class:"ytTeaserCardViewModelImageContainer"},_.k(_.d,{cond:function(){return t().image},
then:function(w){return _.k(_.gr,{data:w,className:"ytTeaserCardViewModelImage",alt:""})}})),_.k("p",{class:"ytTeaserCardViewModelCaption"},function(){return t().caption}))}}))},"Ob"),"teaser-card-view-model",{props:{data:_.bR,
useFullWidth:_.bR}});var srh=new _.FB("RICH_GRID_VIDEO_RENDERER_TOKEN");_.DW(_.Fp(function(X){var t=X.data;var G=X.showYtInteractionInContent;var y=function(){return!!t().selectableFeedback};
X=_.J(_.sm(!1,void 0,"nblDw"));var w=X.next().value,z=X.next().value;_.LY(function(){var T=_.Y(t().primaryButton,_.as);(T==null?0:T.isToggled)&&z(T.isToggled)});
X=_.NI(function(T){if(!y())return!1;if(w()){var D;var h=(D=t().selectableFeedback)==null?void 0:D.onDeselect}else{var u;h=(u=t().selectableFeedback)==null?void 0:u.onSelect}h&&_.JH(h,{form:{element:T.target}});z(!w());if(T=_.Y(t().primaryButton,_.as))T.isToggled=w();return!1});
var B=function(){if(!y()){var T,D=(T=t().loggingDirectives)==null?void 0:T.trackingParams;D&&_.ug(_.gw().resolve(_.iR),D)}},V=_.udY(),b=function(){var T;
return y()?(T=t().selectableFeedback)==null?void 0:T.a11yLabel:void 0},e=function(){return y()?{toggled:w()}:{}},g=_.gw().resolve(_.jH(srh)),F={};
return _.k("yt-feedback-item-renderer",{class:_.cl("ytFeedbackItemRendererHost",(F.ytFeedbackItemRendererSelectableFeedback=y,F)),"on:click":X,"on:keydown":V,title:b,"aria-label":b,"aria-pressed":function(){return y()?w():void 0},
tabindex:function(){return y()?0:void 0},
role:function(){return y()?"button":void 0}},_.k("div",{class:"ytFeedbackItemRendererContentContainer"},_.k(_.M7,{data:function(){return t().content}},{videoRenderer:function(T){return _.k(g,{data:T.data,
showYtInteraction:G})},
lockupViewModel:function(T){return _.k(_.qL,{data:T.data,containerType:2})}})),_.k("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.k(_.M7,{data:function(){return t().primaryButton}},{toggleButtonViewModel:function(T){return _.k(_.Lv,{data:T.data,
buttonShapeOverrides:e,disableExplicitClickLogging:!0,onToggle:B})}})))},"Pb"),"yt-feedback-item-renderer",{props:{data:_.bR,
showYtInteractionInContent:_.bR}});var x4=function(){var X=_.O.apply(this,arguments)||this;X.isShortsGrid=!1;X.isCompactGrid=!1;X.isShortsPanelGrid=!1;X.renderedFromRichGrid=!1;X.isInFirstColumn=!1;X.noGutterMargins=!1;X.isInlineGroupItem=!1;X.insetMetadata=!1;X.noBottomMarginInAds=_.A("web_no_bottom_margin_for_home_ad_buttons");X.force16By9ThumbnailAspectRatio=!1;X.useCompactList=!1;X.containerType=2;X.thumbnailTargetWidth=9999;X.isResponsiveGrid=!1;X.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};X.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};X.hoverListener=X.hover.bind(X);X.leaveListener=X.leave.bind(X);X.highlighted=!1;X.JSC$16009_unsubscribeFromInlinePreviewIsActive=function(){};
return X};
_.S(x4,_.O);_.H=x4.prototype;_.H.computeContainerType=function(){return this.useCompactList?3:2};
_.H.computeThumbnailTargetWidth=function(){var X;return(X=this.itemWidth)!=null?X:9999};
_.H.updateIsInFirstColumn=function(){var X;this.isInFirstColumn=((X=this.data)==null?void 0:X.colIndex)===0};
_.H.observerContainerType=function(){if(this.lockup){var X=this.lockup;X.containerType=this.containerType;X.sizing=this.sizing;X.typographyBump=this.typographyBump;X.itemWidth=this.itemWidth}this.richGridMedia&&_.A("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.A("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.H.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]]"}}}}}};
_.H.leave=function(X){X=X.relatedTarget;var t=document.querySelector("ytd-video-preview");X&&t&&_.hb(t).contains(X)||this.removeAndCleanupHighlight()};
_.H.hover=function(){var X;if(!this.highlighted&&(!_.A("web_enable_rich_item_on_focus_effect")||(X=this.data)!=null&&X.onFocusEffect)){var t,G;((t=this.data)==null?void 0:(G=t.onFocusEffect)==null?void 0:G.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(X=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:X,boxShadow:"0 0 0 10px "+X}));var y,w;((y=this.data)==null?void 0:(w=y.onFocusEffect)==null?void 0:
w.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.H.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};
_.H.registerHoverHighlightListeners=function(){var X=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16009_unsubscribeFromInlinePreviewIsActive=_.rz(_.dV(),_.SEh,function(t){X.highlighted&&!t&&X.removeAndCleanupHighlight()})};
_.H.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16009_unsubscribeFromInlinePreviewIsActive()};
_.H.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.H.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.H.getBackgroundColor=function(){var X,t,G=(X=this.data)==null?void 0:(t=X.onFocusEffect)==null?void 0:t.onFocusColor;if(G){if(document.documentElement.hasAttribute("dark")&&(G==null?0:G.darkTheme))return _.Gq(G==null?void 0:G.darkTheme);if(G==null?0:G.lightTheme)return _.Gq(G==null?void 0:G.lightTheme)}};
_.H.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var X=_.lw(),t,G,y;X&&((t=this.data)==null?0:t.trackingParams)&&((G=this.data)==null?void 0:G.colIndex)!=null&&((y=this.data)==null?void 0:y.rowIndex)!=null&&_.d9(X,_.i$(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.H.isSlimMediaRenderer=function(X){return!!_.Y(X==null?void 0:X.content,_.$NR)||!!_.Y(X==null?void 0:X.content,X3t)||!!_.Y(X==null?void 0:X.content,_.tP)||!!_.Y(X==null?void 0:X.content,AZS)};
_.H.isPostRenderer=function(){var X,t;return!!_.Y((X=this.data)==null?void 0:X.content,lFR)||!!_.Y((t=this.data)==null?void 0:t.content,xFJ)};
_.H.computeIsGameCardShelf=function(){var X;return!!_.Y((X=this.data)==null?void 0:X.content,zmo)};
_.H.computeIsMiniGameCardShelf=function(){var X,t;return!!_.Y((X=this.data)==null?void 0:X.content,TAP)||!!_.Y((t=this.data)==null?void 0:t.content,A8Y)};
_.H.computeIsTeaserCard=function(){var X;return!!_.Y((X=this.data)==null?void 0:X.content,A8Y)};
_.H.computeIsSelectableFeedbackItem=function(){var X,t;return!((t=_.Y((X=this.data)==null?void 0:X.content,_.sES))==null||!t.selectableFeedback)};
_.H.computeContainsLumierePosters=function(){var X,t;return((t=_.Y((X=this.data)==null?void 0:X.content,HUq))==null?void 0:t.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.H.computeIsExpandOnHoverCardShelf=function(){var X;return!!_.Y((X=this.data)==null?void 0:X.content,zHq)};
_.H.computeIsLinkCardShelf=function(){var X;return!!_.Y((X=this.data)==null?void 0:X.content,KVR)};
_.H.computeIsReelItemStyleAvatarCircle=function(X){var t;return((t=_.Y(X==null?void 0:X.content,_.tP))==null?void 0:t.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.H.computeIsLinkCardFullWidth=function(X,t){var G;return((G=_.Y(X==null?void 0:X.content,KVR))==null?void 0:G.useFullWidth)||t<=2};
_.ke.Object.defineProperties(x4.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&&_.A("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.A("web_enable_rich_item_on_focus_effect")||_.A("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}}});
x4.prototype.richGridHoverHighlightChanged=x4.prototype.richGridHoverHighlightChanged;x4.prototype.observerContainerType=x4.prototype.observerContainerType;x4.prototype.updateIsInFirstColumn=x4.prototype.updateIsInFirstColumn;_.E([_.q(_.MZ),_.U("design:type",Object)],x4.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],x4.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],x4.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],x4.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.U("design:type",Boolean)],x4.prototype,"isPost",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.U("design:type",Boolean)],x4.prototype,"containsLumierePosters",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.U("design:type",Boolean)],x4.prototype,"isSlimMedia",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.U("design:type",Boolean)],x4.prototype,"isGameCardShelf",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.U("design:type",Boolean)],x4.prototype,"isMiniGameCardShelf",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.U("design:type",Boolean)],x4.prototype,"isTeaserCard",void 0);_.E([_.K({computed:"computeIsSelectableFeedbackItem(data)"}),_.U("design:type",Boolean)],x4.prototype,"isSelectableFeedbackItem",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x4.prototype,"isShortsGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],x4.prototype,"isSlimGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x4.prototype,"isCompactGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x4.prototype,"isShortsPanelGrid",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.U("design:type",Boolean)],x4.prototype,"isExpandOnHoverCardShelf",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.U("design:type",Boolean)],x4.prototype,"isLinkCardShelf",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.x0,value:3}),_.U("design:type",Number)],x4.prototype,"itemsPerRow",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x4.prototype,"renderedFromRichGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x4.prototype,"isInFirstColumn",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x4.prototype,"noGutterMargins",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x4.prototype,"isInlineGroupItem",void 0);_.E([_.K(),_.U("design:type",Object)],x4.prototype,"insetMetadata",void 0);
_.E([_.K(),_.U("design:type",Object)],x4.prototype,"noBottomMarginInAds",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],x4.prototype,"isShelfItem",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.U("design:type",Boolean)],x4.prototype,"isReelItemStyleAvatarCircle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.U("design:type",Boolean)],x4.prototype,"isLinkCardFullWidth",void 0);
_.E([_.K(),_.U("design:type",Object)],x4.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x4.prototype,"useCompactList",void 0);_.E([_.K(),_.U("design:type",String)],x4.prototype,"sizing",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],x4.prototype,"typographyBump",void 0);_.E([_.K(),_.U("design:type",Number)],x4.prototype,"itemWidth",void 0);_.E([_.K(),_.U("design:type",Boolean)],x4.prototype,"isHomeShelf",void 0);
_.E([_.K(),_.U("design:type",Boolean)],x4.prototype,"isHomeGrid",void 0);_.E([_.rt("yt-lockup-view-model"),_.U("design:type",HTMLElement)],x4.prototype,"lockup",void 0);_.E([_.rt("ytd-rich-grid-media"),_.U("design:type",HTMLElement)],x4.prototype,"richGridMedia",void 0);_.E([_.rt("ytd-ad-slot-renderer"),_.U("design:type",HTMLElement)],x4.prototype,"adSlotRenderer",void 0);_.E([_.K({computed:"computeContainerType(useCompactList)"}),_.U("design:type",Object)],x4.prototype,"containerType",void 0);
_.E([_.K({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.U("design:type",Object)],x4.prototype,"thumbnailTargetWidth",void 0);_.E([_.C("showYtInteractionOnRichItem"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],x4.prototype,"showYtInteractionOnRichGridMedia",null);_.E([_.C("isSelectableFeedbackItem","richGridHoverHighlight"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],x4.prototype,"showYtInteractionOnRichItem",null);
_.E([_.C("typographyBump","isHomeGrid"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],x4.prototype,"richTypographyBump",null);_.E([_.K({reflectToAttribute:!0}),_.C("isShortsGrid","isCompactGrid"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],x4.prototype,"richGridHoverHighlight",null);_.E([_.C("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.U("design:type",Number),_.U("design:paramtypes",[])],x4.prototype,"shortsLockupViewModelAspectRatio",null);
_.E([_.C("isInlineGroupItem"),_.U("design:type",Number),_.U("design:paramtypes",[])],x4.prototype,"shortsLockupViewModelScrimStyle",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],x4.prototype,"updateIsInFirstColumn",null);_.E([_.cW("containerType","sizing","typographyBump"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],x4.prototype,"observerContainerType",null);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x4.prototype,"isResponsiveGrid",void 0);_.E([_.K(),_.U("design:type",Object)],x4.prototype,"lockupExperiments",void 0);_.E([_.cW("richGridHoverHighlight"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],x4.prototype,"richGridHoverHighlightChanged",null);_.E([_.p({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],x4);
_.DpB=_.qi()(x4,"ytd-rich-item-renderer",function(){if(BcP===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);BcP=X}X=BcP;return X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var Vnw={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var S3f=_.Vl(_.Qf("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var kJw={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},enA={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},jXV={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var SBh;var fW=function(){var X=_.O.apply(this,arguments)||this;X.useResponsiveGrid=!1;X.hidden=!1;X.standardShelfMargins=_.A("web_rich_grid_standard_shelf_margins");X.isShowMoreHidden=!1;X.isExpanded=!1;X.isInnerShelf=!1;X.allVideosCount=0;X.allPlaylistCount=0;X.haveSmartDownloadsCompleted=!1;X.isShowLessHidden=!0;X.restrictContentsOverflow=!1;X.firstShownIndex=0;X.horizontalOffset=0;X.atEnd=!0;X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};X.nextClick=function(){var t;(t=X.data)!=null&&t.contents&&(X.firstShownIndex+=X.currentElementsPerRow,X.updateHorizontalOffset(),X.updateHorizontalItemVisibility())};
X.previousClick=function(){var t;(t=X.data)!=null&&t.contents&&(X.firstShownIndex-=X.currentElementsPerRow,X.updateHorizontalOffset(),X.updateHorizontalItemVisibility())};
return X};
_.S(fW,_.O);_.H=fW.prototype;
_.H.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Md("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.H.attached=function(){this.requestElementsPerRow()};
_.H.refreshGridLayoutNew=function(){var X;if((X=this.data)!=null&&X.contents&&this.containerWidth){var t;((t=this.data.responsiveContainerConfiguration)==null?0:t.responsiveSize)?(X=_.q3Y(this.data.responsiveContainerConfiguration,this.containerWidth),X=_.Vj(Object.assign({},X,{standardUnitMinWidth:this.standardUnitMinWidth}))):X=_.Vj({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=X.typographyBump;if(this.elementsPerRow!==
X.numItems||this.gutter!==X.gutter)this.elementsPerRow=X.numItems,this.gutter=X.gutter,this.itemWidth=X.itemWidth,_.Kd(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":X.gutter+"px"})}};
_.H.computeSizing=function(){if(!this.isLumiere){var X=_.QKl(this.data);if(X)return X;if(_.A("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.H.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.H.computeButton=function(X){var t=_.Y(X,_.G4);X=Object.assign({},_.Y(X,_.G4));return t?(X.text||(X.text={simpleText:X.tooltip}),X.style="STYLE_MONO_OUTLINE",X.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",X):t};
_.H.onRowIndexChange=function(){var X=_.lw(),t,G;((t=this.data)==null?0:t.trackingParams)&&((G=this.data)==null?void 0:G.rowIndex)!=null&&X&&_.d9(X,_.i$(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.H.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var X,t=((X=this.getRichItemRenderers()[0])==null?void 0:X.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*t;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.H.requestElementsPerRow=function(){_.Yt(this.hostElement,"yt-request-elements-per-row")};
_.H.onUpdateElementsPerRowAction=function(X,t,G,y,w,z){if(this.containerWidth!==z&&(this.containerWidth=z,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&X&&t&&G&&y&&w&&(this.elementsPerRow!==X||this.postsPerRow!==t||this.slimItemsPerRow!==G||this.gameCardsPerRow!==y||this.miniGameCardsPerRow!==w)&&(this.elementsPerRow=X,this.postsPerRow=t,this.slimItemsPerRow=G,this.gameCardsPerRow=y,this.miniGameCardsPerRow=w,this.updateItemVisibility())};
_.H.getRichItemRenderers=function(){return _.Sm(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.H.updateItemVisibility=function(){var X=this;if(this.data&&this.data.contents){var t=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(y,w){var z;((z=X.data)==null?0:z.isExpanded)?(y.hidden=w>t-1,y.ytRendererBehavior.markDirty()):y.hidden=w>X.currentElementsPerRow-1||w>t-1});
var G=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||G||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||G||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.H.setHeightToSingleRow=function(){var X=this.getRichItemRenderers(),t=Number.parseInt(getComputedStyle(X[0]).marginBottom,10)||0;X=X.slice(0,this.currentElementsPerRow).reduce(function(G,y){return Math.max(G,y.getBoundingClientRect().height+t)},0);
this.contents.style.height=X+"px"};
_.H.focusNextExpandedItem=function(){var X;((X=this.data)==null?0:X.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.H.focusItem=function(X,t){var G=this.getRichItemRenderers();if(G[X]&&(X=G[X].querySelector(".focus-on-expand"))){if(t){var y;(y=G[this.currentElementsPerRow])==null||y.scrollIntoView({behavior:"smooth",block:"center"})}X.focus({preventScroll:!0})}};
_.H.onDataChange=function(){var X=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var t;if((t=this.data)==null?0:t.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.V8(this,function(){X.updateItemVisibility()});
var G;if((G=this.data)==null?0:G.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Kd(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),t=0;t<this.data.contents.length;t++)G=_.Y(this.data.contents[t],_.vM)||{},G.colIndex=t,G.rowIndex=this.data.rowIndex};
_.H.handleRerenderDownloadsData=function(){_.A("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())};
_.H.blockInlinePreview=function(X){var t=this,G;return _.n(function(y){(G=t.inlinePreviewIsEnabled)&&t.ytdReduxBehavior.dispatch(_.V1Y(!1));return y.return(new Promise(function(w){X(function(){G&&t.ytdReduxBehavior.dispatch(_.V1Y(!0));w()})}))})};
_.H.expandShelf=function(){var X=this;if(this.data){var t,G=(t=_.Y(this.data.showMoreButton,_.G4))==null?void 0:t.trackingParams;G&&_.ug(_.Pj(),G);this.data.isExpanded=!0;this.blockInlinePreview(function(y){X.setHeightToSingleRow();X.updateItemVisibility();X.contents.style.height=X.contents.scrollHeight+"px";_.vz.addJob(function(){X.contents.style.height="auto";X.focusNextExpandedItem();y()},2,200)})}};
_.H.collapseShelf=function(){var X=this;return _.n(function(t){if(t.nextAddress==1){if(!X.data)return t.return();X.data.isExpanded=!1;return t.yield(X.blockInlinePreview(function(G){X.contents.style.height=X.contents.scrollHeight+"px";X.setHeightToSingleRow();_.vz.addJob(function(){X.updateItemVisibility();X.contents.style.height="auto";G()},2,200)}),2)}_.Yt(X.hostElement,"yt-rich-shelf-renderer-collapse",X.data.trackingParams);
X.focusItem(0,!1);_.W$(t)})};
_.H.updateArrowButtonStatus=function(){var X=this.getRichItemRenderers().length;if(!_.A("web_rich_shelf_renderer_use_data_contents_killswitch")){var t,G;X=((t=this.data)==null?void 0:(G=t.contents)==null?void 0:G.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=X};
_.H.onChildElementFocus=function(X){this.hasChevronButtons&&(X=X.target.closest("#contents > *"),this.contents.contains(X)&&(X.offsetLeft<this.horizontalOffset?this.previousClick():X.offsetLeft+X.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.H.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Md("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.H.updateHorizontalOffset=function(){var X=this.getRichItemRenderers(),t=X.length;if(!_.A("web_rich_shelf_renderer_use_data_contents_killswitch")){var G,y;t=((G=this.data)==null?void 0:(y=G.contents)==null?void 0:y.length)||0}var w;X=((w=X[0])==null?void 0:w.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>t?this.firstShownIndex=t-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*X};
_.H.isSlimMediaShelfRenderer=function(){var X,t,G,y=(G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],_.vM))==null?void 0:G.content;return!!(_.Y(y,_.$NR)||_.Y(y,X3t)||_.Y(y,_.tP)||_.Y(y,AZS))};
_.H.isGameCardShelf=function(){var X,t,G,y=(G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],_.vM))==null?void 0:G.content;return!!_.Y(y,zmo)};
_.H.isGnomeShelf=function(){var X,t,G,y=(G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],_.vM))==null?void 0:G.content;return!!_.Y(y,_.sES)};
_.H.isMiniGameCardShelf=function(){var X,t,G,y=(G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],_.vM))==null?void 0:G.content;return!!_.Y(y,TAP)||!!_.Y(y,A8Y)};
_.H.hasGameBoxArtAvatarStyle=function(){var X;return((X=this.data)==null?void 0:X.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.H.hasRoundedGameBoxArtAvatarStyle=function(){var X;return((X=this.data)==null?void 0:X.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.H.isShortsShelf=function(){var X,t,G,y=(G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],_.vM))==null?void 0:G.content;return!!_.Y(y,_.tP)||!!_.Y(y,AZS)};
_.H.isPostShelfRenderer=function(){var X,t,G,y=(G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],_.vM))==null?void 0:G.content;return!(!_.Y(y,lFR)&&!_.Y(y,xFJ))};
_.H.isLumiereShelf=function(){var X,t,G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],_.vM);return!!_.Y(G==null?void 0:G.content,HUq)};
_.H.isLumiereShelfWithPosters=function(){var X,t,G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],_.vM),y;return((y=_.Y(G==null?void 0:G.content,HUq))==null?void 0:y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.H.isExpandOnHoverCardShelf=function(){var X,t,G,y=(G=_.Y((X=this.data)==null?void 0:(t=X.contents)==null?void 0:t[0],_.vM))==null?void 0:G.content;return!!_.Y(y,zHq)};
_.H.computeHasFeaturedBadge=function(){var X,t,G=_.Y((X=this.data)==null?void 0:(t=X.badges)==null?void 0:t[0],_.Dgq);return G?G.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.H.computeHasPaygatedFeaturedBadge=function(){var X,t,G=_.Y((X=this.data)==null?void 0:(t=X.badges)==null?void 0:t[0],_.Dgq);return G?(G==null?void 0:G.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.H.computeHeaderHidden=function(){var X,t,G,y,w,z;return!((X=this.data)==null?0:X.icon)&&!((t=this.data)==null?0:t.title)&&!((G=this.data)==null?0:G.subtitle)&&!((y=this.data)==null?0:y.thumbnail)&&!((w=this.data)==null?0:w.badges)&&!((z=this.data)==null?0:z.menu)};
_.H.showCtaButton=function(){var X;return!((X=this.data)==null||!X.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.H.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.H.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.H.computeForce16By9ThumbnailAspectRatio=function(){var X,t;return((X=this.data)==null?void 0:(t=X.responsiveContainerConfiguration)==null?void 0:t.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.H.onSectionReactiveDismissal=function(X,t,G){var y,w;var z=(y=this.data)==null?void 0:(w=y.targetingContext)==null?void 0:w.targetGroupId;this&&z&&t.targetGroupId&&z.includes(t.targetGroupId)?(y=this.rowIndex,X=y===void 0?!1:!(t.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&y<=X)):X=!1;X&&(this.hidden=G)};
_.ke.Object.defineProperties(fW.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var X=this.elementsPerRow;this.isPostShelfRenderer()?X=this.postsPerRow:this.isSlimMediaShelfRenderer()?X=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?X=this.slimItemsPerRow-1:this.isGameCardShelf()?X=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(X=this.miniGameCardsPerRow);return X}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.A("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null||!X.previousButton)&&!((t=this.data)==null||!t.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 X;return((X=_.gw().resolve(_.AS).getCurrentPage())==null?void 0:X.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y;return!((X=this.data)==null?0:(t=X.thumbnail)==null?0:(G=t.accessibility)==null?0:(y=G.accessibilityData)==null?0:y.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
fW.prototype.onChildElementFocus=fW.prototype.onChildElementFocus;fW.prototype.handleRerenderDownloadsData=fW.prototype.handleRerenderDownloadsData;fW.prototype.onDataChange=fW.prototype.onDataChange;fW.prototype.onRowIndexChange=fW.prototype.onRowIndexChange;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.tV),_.U("design:type",Object)],fW.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],fW.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],fW.prototype,"ytdReduxBehavior",void 0);_.E([_.K({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.U("design:type",Object)],fW.prototype,"useResponsiveGrid",void 0);_.E([_.K(),_.U("design:type",Object)],fW.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Number)],fW.prototype,"standardUnitMinWidth",void 0);_.E([_.K({reflectToAttribute:!0,value:3}),_.U("design:type",Number)],fW.prototype,"elementsPerRow",void 0);_.E([_.K({value:3}),_.U("design:type",Number)],fW.prototype,"postsPerRow",void 0);_.E([_.K({value:6}),_.U("design:type",Number)],fW.prototype,"slimItemsPerRow",void 0);_.E([_.K({value:6}),_.U("design:type",Number)],fW.prototype,"gameCardsPerRow",void 0);
_.E([_.K({value:6}),_.U("design:type",Number)],fW.prototype,"miniGameCardsPerRow",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fW.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fW.prototype,"standardShelfMargins",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fW.prototype,"isShowMoreHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fW.prototype,"isExpanded",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fW.prototype,"isInnerShelf",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.U("design:type",Boolean)],fW.prototype,"isShorts",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.U("design:type",Boolean)],fW.prototype,"isLumiere",void 0);_.E([_.K({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.U("design:type",Boolean)],fW.prototype,"hasBoxArtThumbnailStyle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.U("design:type",Boolean)],fW.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.U("design:type",Boolean)],fW.prototype,"hasFeaturedBadge",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.U("design:type",Boolean)],fW.prototype,"hasPaygatedFeaturedBadge",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.U("design:type",Boolean)],fW.prototype,"isHeaderHidden",void 0);_.E([_.K({selector:_.OcV}),_.U("design:type",Object)],fW.prototype,"allVideosCount",void 0);_.E([_.K({selector:Zjv}),_.U("design:type",Object)],fW.prototype,"allPlaylistCount",void 0);_.E([_.K({selector:EnJ}),_.U("design:type",Object)],fW.prototype,"haveSmartDownloadsCompleted",void 0);
_.E([_.K({selectorArgs:["entitySelectorType"],selector:function(X,t){if(_.A("kevlar_modern_downloads_page")&&t&&t!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var G=X.entities;switch(t){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":t=_.Lg(G);X=mM(t);var y=_.PK(t);G=_.a$(G);G=_.Ag(FLs(y,G,t.length));return{contents:X,subtitle:G};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return G=_.Lg(G),{contents:mM(G)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return G=
_.vK(G),{contents:mM(G)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return G=_.JPG(G),{contents:mM(G)};default:_.Mj(new _.NJ("Error: entitySelectorType defined but not matched in selector.",X,t))}}}}),
_.U("design:type",Object)],fW.prototype,"entityDrivenRichShelfData",void 0);_.E([_.K({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.U("design:type",Boolean)],fW.prototype,"hasTopCtaButton",void 0);_.E([_.K({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.U("design:type",Boolean)],fW.prototype,"hasBottomCtaButton",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.U("design:type",Boolean)],fW.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fW.prototype,"isShowLessHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fW.prototype,"restrictContentsOverflow",void 0);_.E([_.K({selector:_.hO_}),_.U("design:type",Boolean)],fW.prototype,"inlinePreviewIsEnabled",void 0);
_.E([_.K({computed:"computeSizing(data)"}),_.U("design:type",String)],fW.prototype,"sizing",void 0);_.E([_.K(),_.U("design:type",Boolean)],fW.prototype,"typographyBump",void 0);_.E([_.K(),_.U("design:type",Number)],fW.prototype,"itemWidth",void 0);_.E([_.K(),_.U("design:type",Object)],fW.prototype,"firstShownIndex",void 0);_.E([_.K(),_.U("design:type",Object)],fW.prototype,"horizontalOffset",void 0);_.E([_.K(),_.U("design:type",Object)],fW.prototype,"atEnd",void 0);
_.E([_.rt("#contents"),_.U("design:type",HTMLElement)],fW.prototype,"contents",void 0);_.E([_.cW("data.rowIndex"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fW.prototype,"onRowIndexChange",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fW.prototype,"onDataChange",null);
_.E([_.cW("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fW.prototype,"handleRerenderDownloadsData",null);_.E([_.WW("focusin"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],fW.prototype,"onChildElementFocus",null);_.E([_.K({reflectToAttribute:!0}),_.C("data","isHomePage"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fW.prototype,"isTruncated",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fW.prototype,"hideBottomDivider",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],fW.prototype,"hasChevronButtons",null);_.E([_.C("firstShownIndex"),_.U("design:type",Object),_.U("design:paramtypes",[])],fW.prototype,"previousButtonOverride",null);
_.E([_.C("atEnd"),_.U("design:type",Object),_.U("design:paramtypes",[])],fW.prototype,"nextButtonOverride",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fW.prototype,"isHomePage",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fW.prototype,"thumbnailAriaHidden",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fW.prototype,"initiallyIsExpanded",null);
_.E([_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],fW.prototype,"entitySelectorType",null);_.E([_.p({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],fW);
_.hJ4=_.qi()(fW,"ytd-rich-shelf-renderer",function(){if(SBh===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);SBh=X}X=SBh;return X},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var ZJz;_.DW(GRq,"yt-slimline-survey-view-model",{props:{data:_.bR}});var Mq=function(){var X=_.O.apply(this,arguments)||this;X.tileLottieAnimationRef={};X.backgroundLottieAnimationRef={};X.isOnHoverBehaviorForLottieEnabled=!0;X.useBiggerShowcaseImage=_.A("enable_desktop_search_bigger_thumbs");X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return X};
_.S(Mq,_.O);_.H=Mq.prototype;_.H.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.H.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.H.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var X=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);X!==this.hasTile&&this.set("hasTile",X);X=this.hasLogo(this.data)||!!this.data.badgeText;X!==this.hasMetadata&&this.set("hasMetadata",X);X=this.data.overflowButton?!1:X;X!==this.showLogoImage&&this.set("showLogoImage",X);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.H.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.H.currentColorChanged=function(){this.updateButtonPalette()};
_.H.computeBackgroundStyle=function(X){if(X&&this.data){var t=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var G=_.hH((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);G&&t.push('background-image: url("'+G+'");')}var y;((y=X.basicColorData)==null?void 0:y.backgroundColor)!==void 0&&t.push("background-color: "+_.yY(X.basicColorData.backgroundColor)+";");return t.join("")}};
_.H.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&this.set("isDarkTheme",X)};
_.H.getCurrentLogo=function(X,t){if(X)return t?X.darkLogoImage:X.lightLogoImage};
_.H.getCurrentStaticTileImage=function(X,t){if(this.hasStaticTile(X))return X.darkTileImage?t?X.darkTileImage:X.tileImage:X.tileImage};
_.H.computeTitleStyle=function(X){if(this.data&&this.data.title&&X&&X.basicColorData&&X.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Gq(X.basicColorData.foregroundTitleColor)+";"};
_.H.computeSubtitleStyle=function(X){if(this.data&&this.data.subtitle&&X&&X.basicColorData&&X.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Gq(X.basicColorData.foregroundBodyColor)+";"};
_.H.computeSupplementalStyle=function(X){if(this.data&&this.data.supplementalText&&X&&X.supplementalTextColor!==void 0)return X=_.Gq(X.supplementalTextColor),"color:"+X+";--yt-endpoint-color:"+X+";--yt-endpoint-hover-color:"+X+";--yt-endpoint-visited-color:"+X+";--yt-formatted-string-bold-font-weight:700;"};
_.H.computeBadgeStyle=function(X){if(this.data&&this.data.badgeText&&X&&X.basicColorData&&X.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.Gq(X.basicColorData.foregroundActivatedColor)+";"};
_.H.computeDismissIconStyle=function(X){var t,G;if((X==null?0:(t=X.dismissButtonColorData)==null?0:t.foregroundTitleColor)&&(X==null?0:(G=X.dismissButtonColorData)==null?0:G.backgroundColor))return"--yt-button-color:"+_.yY(X.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.yY(X.dismissButtonColorData.backgroundColor)+";"};
_.H.computeOverflowIconStyle=function(X){var t,G;if((X==null?0:(t=X.dismissButtonColorData)==null?0:t.foregroundTitleColor)&&(X==null?0:(G=X.dismissButtonColorData)==null?0:G.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.yY(X.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.yY(X.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.yY(X.dismissButtonColorData.foregroundTitleColor)+";"};
_.H.computeBannerStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.H.computeLocation=function(X){switch(X==null?void 0:X.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.H.shouldShowTileSection=function(X,t,G){return!this.shouldExpandLogo(X,t,G)&&t};
_.H.shouldShowExpandedLogoSection=function(X,t,G){return this.shouldExpandLogo(X,t,G)&&X!==void 0&&this.hasLogo(X)};
_.H.shouldExpandLogo=function(X,t,G){return X&&t?!1:G>=2};
_.H.hasStaticTile=function(X){return!(X==null||!X.tileImage)};
_.H.hasTileLottie=function(X){var t;return!!(X==null?0:(t=X.tileLottie)==null?0:t.url)};
_.H.hasLogo=function(X){return this.getCurrentLogo(X,this.isDarkTheme)!==void 0};
_.H.getLogoHeight=function(X){return this.logoWithPadding(X)?"26":"20"};
_.H.getExpandedLogoHeight=function(X){return this.logoWithPadding(X)?"31":"24"};
_.H.getLogoImageId=function(X){return this.logoWithPadding(X)?"logo-image-with-padding":"logo-image"};
_.H.getMaxTitleFontSize=function(X){return X.overrideTitleMaxFontSize?String(X.overrideTitleMaxFontSize):"36"};
_.H.hasBackgroundLottie=function(X){var t;return!!(X==null?0:(t=X.backgroundLottie)==null?0:t.url)};
_.H.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var X,t;(X=this.tileLottieAnimationRef)==null||(t=X.lottieEl)==null||t.play();var G,y;(G=this.backgroundLottieAnimationRef)==null||(y=G.lottieEl)==null||y.play()}};
_.H.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var X,t;(X=this.tileLottieAnimationRef)==null||(t=X.lottieEl)==null||t.pause();var G,y;(G=this.backgroundLottieAnimationRef)==null||(y=G.lottieEl)==null||y.pause()}};
_.H.pauseLottie=function(){var X,t;(X=this.tileLottieAnimationRef)==null||(t=X.lottieEl)==null||t.pause();var G,y;(G=this.backgroundLottieAnimationRef)==null||(y=G.lottieEl)==null||y.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.H.performPrimaryButtonAction=function(){var X,t,G;((X=this.data)==null?0:(t=X.primaryButton)==null?0:(G=t.buttonRenderer)==null?0:G.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.H.requestElementsPerRow=function(){_.Yt(this.hostElement,"yt-request-elements-per-row")};
_.H.updateButtonPalette=function(){if(this.data&&this.currentColorData){var X;((X=this.data.dismissButton)==null?0:X.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 t;if((t=this.data.primaryButton)==null?0:t.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 G;if((G=this.data.secondaryButton)==
null?0:G.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 y;((y=this.data.primaryButton)==null?0:y.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var w;((w=this.data.secondaryButton)==null?0:w.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.H.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var X=this.getTileLottieDataBasedOnTheme(),t,G;if(X.url!==((t=this.tileLottiePlayerProps)==null?void 0:(G=t.animationConfig)==null?void 0:G.path)){var y,w;(y=this.tileLottieAnimationRef)==null||(w=y.lottieEl)==null||w.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=X.settings)==null?0:z.autoplay);var B,V;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(V=(B=X.settings)==null?void 0:B.autoplay)!=null?V:!1,loop:this.getLottieLoopValue(X.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof X.url==="string"?this.tileLottiePlayerProps.animationConfig.path=X.url:this.tileLottiePlayerProps.animationConfig.animationData=X.url}}};
_.H.getOverflowButton=function(X){return _.Y(X.overflowButton,hUz)};
_.H.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var X=this.getBackgroundLottieDataBasedOnTheme(),t,G;if(X.url!==((t=this.backgroundLottiePlayerProps)==null?void 0:(G=t.animationConfig)==null?void 0:G.path)){var y,w;(y=this.backgroundLottieAnimationRef)==null||(w=y.lottieEl)==null||w.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=X.settings)==null?0:z.autoplay);var B,V;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(V=(B=X.settings)==null?void 0:B.autoplay)!=null?V:!1,loop:this.getLottieLoopValue(X.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof X.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=X.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
X.url}}};
_.H.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var X;((X=this.tileLottieAnimationRef)==null?void 0:X.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var t;((t=this.backgroundLottieAnimationRef)==null?void 0:t.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.H.getTileLottieDataBasedOnTheme=function(){var X;if(this.isDarkTheme&&((X=this.data)==null?0:X.darkThemeTileLottie))return this.data.darkThemeTileLottie;var t;return((t=this.data)==null?0:t.tileLottie)?this.data.tileLottie:{}};
_.H.getBackgroundLottieDataBasedOnTheme=function(){var X;if(this.isDarkTheme&&((X=this.data)==null?0:X.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var t;return((t=this.data)==null?0:t.backgroundLottie)?this.data.backgroundLottie:{}};
_.H.onUpdateElementsPerRowAction=function(X){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X)};
_.H.getLottieLoopValue=function(X){return X?X.loop!==void 0?X.loop:X.loopCount?X.loopCount-1:!0:!0};
_.H.logoWithPadding=function(X){var t,G,y;return(X=(t=this.getCurrentLogo(X,this.isDarkTheme))==null?void 0:(G=t.thumbnails)==null?void 0:(y=G[0])==null?void 0:y.height)&&X%31===0?!0:!1};
Mq.prototype.currentColorChanged=Mq.prototype.currentColorChanged;Mq.prototype.themeChanged=Mq.prototype.themeChanged;Mq.prototype.dataChanged=Mq.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],Mq.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Mq.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Mq.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Mq.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Mq.prototype,"primaryButton",void 0);_.E([_.K(),_.U("design:type",Object)],Mq.prototype,"secondaryButton",void 0);
_.E([_.K({reflectToAttribute:!0,value:3}),_.U("design:type",Number)],Mq.prototype,"elementsPerRow",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Mq.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Mq.prototype,"hasTile",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Mq.prototype,"hasMetadata",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Mq.prototype,"showLogoImage",void 0);_.E([_.K(),_.U("design:type",Object)],Mq.prototype,"currentColorData",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.U("design:type",String)],Mq.prototype,"bannerStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.U("design:type",String)],Mq.prototype,"location",void 0);
_.E([_.K(),_.U("design:type",Object)],Mq.prototype,"tileLottiePlayerProps",void 0);_.E([_.K(),_.U("design:type",Object)],Mq.prototype,"tileLottieAnimationRef",void 0);_.E([_.K(),_.U("design:type",Object)],Mq.prototype,"backgroundLottiePlayerProps",void 0);_.E([_.K(),_.U("design:type",Object)],Mq.prototype,"backgroundLottieAnimationRef",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mq.prototype,"useBiggerShowcaseImage",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Mq.prototype,"isHideEnclosingAction",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mq.prototype,"dataChanged",null);_.E([_.U0("isDarkTheme"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mq.prototype,"themeChanged",null);
_.E([_.U0("currentColorData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mq.prototype,"currentColorChanged",null);_.E([_.p({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Mq);
_.N(Mq,"ytd-statement-banner-renderer",function(){if(ZJz!==void 0)return ZJz;var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[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.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ZJz=X},{mode:1});var qBq;var XT=function(){var X=_.O.apply(this,arguments)||this;X.isSearch=!1;X.hideShelfHeader=!1;X.engagementPanel=!1;X.disableMouseScroll=!0;X.useFloorScrolling=!0;X.modernTypography=_.A("web_modern_typography");return X};
_.S(XT,_.O);XT.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Qf("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Qf("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
XT.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
XT.prototype.onDataChanged=XT.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],XT.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],XT.prototype,"hideShelfHeader",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],XT.prototype,"engagementPanel",void 0);_.E([_.K(),_.U("design:type",Object)],XT.prototype,"disableMouseScroll",void 0);_.E([_.K(),_.U("design:type",Object)],XT.prototype,"useFloorScrolling",void 0);_.E([_.K(),_.U("design:type",Object)],XT.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],XT.prototype,"modernTypography",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],XT.prototype,"onDataChanged",null);_.E([_.p({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],XT);
_.N(XT,"ytd-reel-shelf-renderer",function(){if(qBq!==void 0)return qBq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qBq=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var CUh;var Kc4;Kc4=_.Vc(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.OJh=_.sw(Kc4);var uYJ=_.Fp(function(X){var t=X.data;X=X.useSmallFont;var G={},y={};return _.k("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.k(_.d,{cond:function(){return t().favicon},
then:function(w){return _.k(_.gr,{data:w,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.k("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.k(_.eh,{text:function(){return t().title},
className:_.cl("yt-channel-external-link-view-model-wiz__title",(G["yt-channel-external-link-view-model-wiz__title--title-small-font"]=X,G)),ellipsisTruncate:!0,userInput:!0}),_.k(_.eh,{text:function(){return t().link},
className:_.cl("yt-channel-external-link-view-model-wiz__link",(y["yt-channel-external-link-view-model-wiz__link--link-small-font"]=X,y)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Qb");
uYJ.idomCompat=!0;_.DW(uYJ,"yt-channel-external-link-view-model",{props:{data:_.bR,useSmallFont:_.bR}});_.Xa("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var $B=function(){var X=_.O.apply(this,arguments)||this;X.revealButtonClass="button";X.businessEmailDisplayState="HIDE_SECTION";return X};
_.S($B,_.O);_.H=$B.prototype;_.H.refit=function(){var X=this;_.oL(function(){_.D0(X.hostElement,"yt-refit-popups-action")});
_.V8(this,function(){_.D0(X.hostElement,"yt-refit-popups-action")})};
_.H.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Gi(_.OJh),this.businessEmailDisplayState="CAPTCHA")};
_.H.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"};
_.H.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.H.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"}}}};
_.H.computeEmailHref=function(X){return"mailto:"+X};
_.H.computeSafeUrl=function(X){if(X)return _.l_(X)};
_.H.linkEndpoint=function(X){return _.Y(X.onTap,_.yL)};
_.H.linkEndpointToHref=function(X){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(X))};
_.H.onYtServiceRequestCompleted=function(X){var t;if((t=X.detail.data)==null?0:t.businessEmail)this.businessEmail=X.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var G;if((G=X.detail.data)==null?0:G.errorMessage)this.businessEmailErrorMessage=X.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.H.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var X=this.JSC$16120_captchaTextarea.value;if(X){X={recaptcha_response_token:X,channel_id:this.metadata.channelId};var t=_.Y(this.metadata.onBusinessEmailRevealClickCommand,_.yL);t&&this.ytComponentBehavior.resolveCommand(t,{form:X})}}};
_.H.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ke.Object.defineProperties($B.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var X;return _.Y((X=this.data)==null?void 0:X.metadata,n9q)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.Y(this.metadata.businessEmailRevealButton,_.vk)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var X=new URL(this.metadata.canonicalChannelUrl);return X.host+X.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 _.Y(this.metadata.learnMoreOnTap,_.yL)}}});
$B.prototype.onYtServiceRequestCompleted=$B.prototype.onYtServiceRequestCompleted;$B.prototype.businessEmailMetadataChanged=$B.prototype.businessEmailMetadataChanged;$B.prototype.refit=$B.prototype.refit;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],$B.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.E([_.rt("#g-recaptcha-response"),_.U("design:type",HTMLTextAreaElement)],$B.prototype,"JSC$16120_captchaTextarea",void 0);_.E([_.K(),_.U("design:type",Object)],$B.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],$B.prototype,"revealButtonClass",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],$B.prototype,"metadata",null);
_.E([_.C("metadata"),_.U("design:type",Object),_.U("design:paramtypes",[])],$B.prototype,"revealButton",null);_.E([_.C("metadata"),_.U("design:type",Object),_.U("design:paramtypes",[])],$B.prototype,"channelDisplayUrl",null);_.E([_.U0("metadata"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],$B.prototype,"refit",null);_.E([_.C("metadata"),_.U("design:type",Object),_.U("design:paramtypes",[])],$B.prototype,"formattedDescription",null);
_.E([_.C("metadata","learnMoreCommand"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],$B.prototype,"shouldRendereVerifiedPhoneStatus",null);_.E([_.C("metadata"),_.U("design:type",Object),_.U("design:paramtypes",[])],$B.prototype,"learnMoreCommand",null);_.E([_.K(),_.U("design:type",String)],$B.prototype,"businessEmailDisplayState",void 0);_.E([_.K(),_.U("design:type",String)],$B.prototype,"businessEmail",void 0);
_.E([_.K(),_.U("design:type",String)],$B.prototype,"businessEmailErrorMessage",void 0);_.E([_.U0("metadata"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],$B.prototype,"businessEmailMetadataChanged",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],$B.prototype,"onYtServiceRequestCompleted",null);_.E([_.p({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],$B);
_.N($B,"ytd-about-channel-renderer",function(){if(CUh!==void 0)return CUh;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return CUh=X},{mode:1});var Qr4;var tk=function(){return _.O.apply(this,arguments)||this};
_.S(tk,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],tk.prototype,"data",void 0);_.E([_.p({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],tk);
_.N(tk,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Qr4!==void 0)return Qr4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Qr4=X},{mode:1});var IKh;var GS=function(){return _.O.apply(this,arguments)||this};
_.S(GS,_.O);GS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],GS.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],GS.prototype,"aligment",void 0);_.E([_.p({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],GS);
_.N(GS,"ytd-channel-list-sub-menu-renderer",function(){if(IKh!==void 0)return IKh;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return IKh=
X},{mode:1});var Wco;var yi=function(){return _.O.apply(this,arguments)||this};
_.S(yi,_.O);yi.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}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],yi.prototype,"data",void 0);_.E([_.p({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],yi);
_.N(yi,"ytd-channel-sub-menu-renderer",function(){if(Wco!==void 0)return Wco;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Wco=X},{mode:1});var cTh;var pLR;var wZ=function(){var X=_.O.apply(this,arguments)||this;X.isCompact=!1;return X};
_.S(wZ,_.O);_.ke.Object.defineProperties(wZ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var X,t;return((t=_.Y((X=this.data)==null?void 0:X.endpoint,_.zj))==null?void 0:t.target)==="TARGET_NEW_WINDOW"}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],wZ.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],wZ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],wZ.prototype,"isCompact",void 0);_.E([_.C("isCompact"),_.U("design:type",Number),_.U("design:paramtypes",[])],wZ.prototype,"thumbnailWidth",null);
_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],wZ.prototype,"openNewWindow",null);_.E([_.p({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],wZ);
_.N(wZ,"ytd-media-lockup-renderer",function(){if(pLR!==void 0)return pLR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return pLR=X},{mode:1});var rTR;var zS=function(){return _.O.apply(this,arguments)||this};
_.S(zS,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],zS.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],zS.prototype,"data",void 0);_.E([_.p({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],zS);
_.N(zS,"ytd-structured-description-channel-lockup-renderer",function(){if(rTR!==void 0)return rTR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return rTR=X},{mode:1});var Nce;var Hc=function(){var X=_.O.apply(this,arguments)||this;X.isCompact=!1;X.collections=_.A("web_modern_collections_v2");X.collectionsStackColor=_.A("modernize_structured_description_playlist_lockups_v2");return X};
_.S(Hc,_.O);Hc.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:_.A("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.ke.Object.defineProperties(Hc.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y,w,z;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(X=this.data)==null?void 0:(t=X.thumbnail)==null?void 0:t.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(G=this.data)==null?void 0:(y=G.thumbnail)==null?void 0:y.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(w=this.data)==null?void 0:(z=w.thumbnail)==
null?void 0:z.vibrantColorPalette:void 0}}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Hc.prototype,"componentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Hc.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Hc.prototype,"showSidePanelThumbnailOverlay",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Hc.prototype,"isCompact",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Hc.prototype,"collections",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Hc.prototype,"collectionsStackColor",void 0);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Hc.prototype,"twoLineTitle",null);
_.E([_.C("data","collections","collectionsStackColor"),_.U("design:type",Object),_.U("design:paramtypes",[])],Hc.prototype,"collectionStack",null);_.E([_.p({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Hc);
_.N(Hc,"ytd-structured-description-playlist-lockup-renderer",function(){if(Nce!==void 0)return Nce;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Nce=X},{mode:1});var PUq;var oo=function(){return _.O.apply(this,arguments)||this};
_.S(oo,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],oo.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],oo.prototype,"data",void 0);_.E([_.p({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],oo);
_.N(oo,"ytd-structured-description-video-lockup-renderer",function(){if(PUq!==void 0)return PUq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return PUq=X},{mode:2});var Jk=function(){return _.O.apply(this,arguments)||this};
_.S(Jk,_.O);
Jk.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}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Jk.prototype,"data",void 0);_.E([_.p({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Jk);
_.N(Jk,"ytd-compact-infocard-renderer",function(){if(cTh!==void 0)return cTh;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return cTh=X},{mode:1});var Edq;var Bc=function(){var X=_.O.apply(this,arguments)||this;X.useModernCollectionsV2=_.A("web_modern_collections_v2");return X};
_.S(Bc,_.O);Bc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ke.Object.defineProperties(Bc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.A("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.A("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.A("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],Bc.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Bc.prototype,"ytdReduxBehavior",void 0);_.E([_.K({selector:_.yE}),_.U("design:type",Object)],Bc.prototype,"isGridViewEnabled",void 0);
_.E([_.C("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Bc.prototype,"watchFeedBigThumbs",null);_.E([_.C("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"168"}),_.U("design:type",String),_.U("design:paramtypes",[])],Bc.prototype,"thumbnailWidth",null);_.E([_.C("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"94"}),_.U("design:type",String),_.U("design:paramtypes",[])],Bc.prototype,"customThumbnailSize",null);
_.E([_.K(),_.U("design:type",Object)],Bc.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Bc.prototype,"useModernCollectionsV2",void 0);_.E([_.p({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Bc);
_.N(Bc,"ytd-compact-playlist-renderer",function(){if(Edq!==void 0)return Edq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Edq=X},{mode:1});var UpS;var n0=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.roundedContainer=!0;X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return X};
_.S(n0,_.O);_.H=n0.prototype;_.H.attached=function(){this.requestElementsPerRow()};
_.H.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"}}}};
_.H.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.H.computeViewStyle=function(X){return X.style?X.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.H.onUpdateElementsPerRowAction=function(X){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&X===1};
_.H.requestElementsPerRow=function(){_.Yt(this.hostElement,"yt-request-elements-per-row")};
n0.prototype.dataChanged=n0.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],n0.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],n0.prototype,"actionHandlerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],n0.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],n0.prototype,"hideThumbnail",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.U("design:type",String)],n0.prototype,"viewStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],n0.prototype,"darkerDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],n0.prototype,"roundedContainer",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],n0.prototype,"dataChanged",null);_.E([_.p({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],n0);
_.N(n0,"ytd-compact-promoted-item-renderer",function(){if(UpS!==void 0)return UpS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return UpS=X},{mode:1});var mpR;var Vi=function(){var X=_.O.apply(this,arguments)||this;X.collections=_.A("web_modern_collections_v2");return X};
_.S(Vi,_.O);Vi.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Vi.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Vi.prototype.onYtNavigate=function(X,t){var G=this;if(t.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",t)){var y=this.get("watchEndpoint.videoId",t.endpoint),w=_.D0(this.hostElement,"yt-get-current-video-id-action")[0];_.A("kevlar_mix_handle_first_endpoint_different")&&y&&w&&y!==w||(X.stopPropagation(),_.DR().getPlayerPromise().then(function(z){if(z.getPlayerState()===0&&G.data.secondaryNavigationEndpoint)var B=G.data.secondaryNavigationEndpoint;else{B=
Object.assign({},t.endpoint);var V=_.Y(B.commandMetadata,_.jQ);V&&(z=Math.floor(z.getCurrentTime()),V.url=_.ns(V.url,{t:z}),!_.A("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(V=_.Y(B,_.nq)))&&(V.startTimeSeconds=z)}_.Yt(G.hostElement,"yt-navigate",{endpoint:B})}))}};
_.ke.Object.defineProperties(Vi.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.A("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.A("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y,w,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(X=this.data)==null?void 0:(t=X.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(y=G.thumbnail)==null?void 0:y.vibrantColorPalette,darkColorPalette:(w=this.data)==null?void 0:(z=w.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
Vi.prototype.onYtNavigate=Vi.prototype.onYtNavigate;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.pv.YtEndpointBehavior),_.U("design:type",Object)],Vi.prototype,"ytEndpointBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],Vi.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.q(_.JV),_.U("design:type",Object)],Vi.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Vi.prototype,"ytdReduxBehavior",void 0);_.E([_.K({selector:_.yE}),_.U("design:type",Object)],Vi.prototype,"isGridViewEnabled",void 0);_.E([_.C("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Vi.prototype,"watchFeedBigThumbs",null);
_.E([_.C("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.U("design:type",String),_.U("design:paramtypes",[])],Vi.prototype,"thumbnailWidth",null);_.E([_.K(),_.U("design:type",Object)],Vi.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Vi.prototype,"collections",void 0);_.E([_.C("data","collections"),_.U("design:type",Object),_.U("design:paramtypes",[])],Vi.prototype,"collectionStack",null);
_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Vi.prototype,"onYtNavigate",null);_.E([_.p({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Vi);
_.N(Vi,"ytd-compact-radio-renderer",function(){if(mpR!==void 0)return mpR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return mpR=X},{mode:1});var RJq;var bQ=function(){return _.O.apply(this,arguments)||this};
_.S(bQ,_.O);bQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
bQ.prototype.computeRendererStyle=function(X){return X.style?X.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.E([_.K(),_.U("design:type",Object)],bQ.prototype,"data",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bQ.prototype,"rendererBehavior",void 0);_.E([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.U("design:type",String)],bQ.prototype,"rendererStyle",void 0);_.E([_.p({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],bQ);
_.N(bQ,"ytd-compact-text-promo-renderer",function(){if(RJq!==void 0)return RJq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return RJq=X},{mode:1});var iJq;var kB=function(){var X=_.O.apply(this,arguments)||this;X.isShortsStyle=!1;return X};
_.S(kB,_.O);_.H=kB.prototype;_.H.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"}}}};
_.H.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Yt(this.hostElement,"yt-disable-lockup-interaction"):_.Yt(this.hostElement,"yt-enable-lockup-interaction"))};
_.H.isMetaBlockEmpty=function(X){return!X||!X.longBylineText&&!X.shortBylineText&&!X.shortViewCountText&&!X.viewCountText};
_.H.computeHasOneLineTitle=function(X){return this.forceOneLineTitle||!(X==null||!X.buttons)};
_.H.computeDisableInteraction=function(){var X;return!((X=this.data)==null?0:X.navigationEndpoint)};
_.H.hasSingularTopStandaloneBadge=function(){var X;return!((X=this.data)==null||!X.topStandaloneBadge)};
_.ke.Object.defineProperties(kB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.A("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.A("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 X;return this.hasSingularTopStandaloneBadge()?[(X=this.data)==null?void 0:X.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var X;return this.shouldShowTopBadges?((X=this.data)==null?void 0:X.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
kB.prototype.disableInteractionChanged=kB.prototype.disableInteractionChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],kB.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],kB.prototype,"ytdLockupBehavior",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],kB.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.U("design:type",Boolean)],kB.prototype,"metaBlockEmpty",void 0);_.E([_.K({selector:_.yE}),_.U("design:type",Object)],kB.prototype,"isGridViewEnabled",void 0);_.E([_.C("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],kB.prototype,"watchFeedBigThumbs",null);
_.E([_.C("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.U("design:type",String),_.U("design:paramtypes",[])],kB.prototype,"thumbnailWidth",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kB.prototype,"isShortsStyle",void 0);_.E([_.K(),_.U("design:type",Object)],kB.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.U("design:type",Boolean)],kB.prototype,"hasOneLineTitle",void 0);
_.E([_.K(),_.U("design:type",Boolean)],kB.prototype,"hideThumbnail",void 0);_.E([_.K(),_.U("design:type",Boolean)],kB.prototype,"forceOneLineTitle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.U("design:type",Boolean)],kB.prototype,"disableInteraction",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],kB.prototype,"musicMetadataVideoLockup",void 0);
_.E([_.cW("disableInteraction"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kB.prototype,"disableInteractionChanged",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],kB.prototype,"shouldShowTopBadges",null);_.E([_.C("data"),_.U("design:type",Array),_.U("design:paramtypes",[])],kB.prototype,"topBadges",null);
_.E([_.C("shouldShowTopBadges","data"),_.U("design:type",Array),_.U("design:paramtypes",[])],kB.prototype,"inlineMetadataBadges",null);_.E([_.C("shouldShowTopBadges"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],kB.prototype,"shouldShowBadgesBelowMetadata",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],kB.prototype,"compactTitleClass",null);_.E([_.p({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],kB);
_.N(kB,"ytd-compact-video-renderer",function(){if(iJq!==void 0)return iJq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return iJq=X},{mode:_.Cz("kevlar_poly_si_batch_j067")?1:2});var Lc4;_.Xa("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var dZ=function(){return _.O.apply(this,arguments)||this};
_.S(dZ,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dZ.prototype,"data",void 0);_.E([_.p({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],dZ);
_.N(dZ,"ytd-counterfactual-renderer",function(){if(Lc4!==void 0)return Lc4;var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Lc4=X},{mode:1});var vdB;var eR=function(){var X=_.O.apply(this,arguments)||this;X.hidden=!1;return X};
_.S(eR,_.O);eR.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.gw().resolve(_.F3).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
eR.prototype.computeHidden=function(X){return!!X};
_.ke.Object.defineProperties(eR.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}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eR.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.U("design:type",Object)],eR.prototype,"hidden",void 0);_.E([_.C("data.label"),_.U("design:type",String),_.U("design:paramtypes",[])],eR.prototype,"label",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],eR.prototype,"value",null);
_.E([_.p({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],eR);
_.N(eR,"ytd-dropdown-item-renderer",function(){if(vdB!==void 0)return vdB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return vdB=X},{mode:1});var aKY;var lKo;var jR=function(){return _.O.apply(this,arguments)||this};
_.S(jR,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],jR.prototype,"data",void 0);_.E([_.K({computed:"getSimpleString(data.label)"}),_.U("design:type",String)],jR.prototype,"label",void 0);_.E([_.p({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],jR);
_.N(jR,"ytd-navigation-dropdown-item-renderer",function(){if(lKo!==void 0)return lKo;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return lKo=X},{mode:1});var gZ=function(){var X=_.O.apply(this,arguments)||this;X.disabled=!1;X.value="";X.noLabelFloat=!1;X.noUnderline=!1;X.usePrimaryColor=!1;X.hasBackground=!1;X.verticalAlign="top";X.autosize=!1;X.minAutosizeWidth=100;X.autosizeFont="14px Roboto";return X};
_.S(gZ,_.O);_.H=gZ.prototype;_.H.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"}}}};
_.H.open=function(){this.inputEl.open()};
_.H.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.H.dataChanged=function(){this.reset()};
_.H.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("value-changed",this.value))};
_.H.stopPropagation=function(X){X.stopPropagation()};
_.H.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var X=this.canvas.getContext("2d");X&&(X.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(X.measureText(this.inputEl.value).width)+24)+"px")}};
_.H.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var X=0,t=this.data.entries.length;X<t;X++){var G=this.data.entries[X],y;for(y in G)if(G.hasOwnProperty(y)){var w=G[y];if("isSelected"in w&&w.isSelected)return"stringValue"in w?w.stringValue||"":"int32Value"in w?w.int32Value||0:0}}return null};
_.H.updateValueFromBinding=function(X){this.value=X.detail.value};
_.ke.Object.defineProperties(gZ.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 X=0,t=this.data.entries.length;X<t;X++){var G=this.data.entries[X],y;for(y in G)if(G.hasOwnProperty(y)){var w=G[y];if("isSelected"in w&&w.isSelected&&"label"in w)return this.ytRendererBehavior.getSimpleString(w.label)}}return null}}});
gZ.prototype.autoSizeLabel=gZ.prototype.autoSizeLabel;gZ.prototype.stopPropagation=gZ.prototype.stopPropagation;gZ.prototype.valueChangedForBinding=gZ.prototype.valueChangedForBinding;gZ.prototype.dataChanged=gZ.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],gZ.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],gZ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gZ.prototype,"disabled",void 0);_.E([_.K(),_.U("design:type",Object)],gZ.prototype,"value",void 0);_.E([_.K(),_.U("design:type",Object)],gZ.prototype,"noLabelFloat",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gZ.prototype,"noUnderline",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],gZ.prototype,"theme",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gZ.prototype,"usePrimaryColor",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gZ.prototype,"hasBackground",void 0);_.E([_.K(),_.U("design:type",Object)],gZ.prototype,"verticalAlign",void 0);_.E([_.K(),_.U("design:type",Object)],gZ.prototype,"autosize",void 0);_.E([_.K(),_.U("design:type",Object)],gZ.prototype,"minAutosizeWidth",void 0);_.E([_.K(),_.U("design:type",Object)],gZ.prototype,"autosizeFont",void 0);
_.E([_.rt("#entries"),_.U("design:type",Object)],gZ.prototype,"entries",void 0);_.E([_.rt("#input"),_.U("design:type",Object)],gZ.prototype,"inputEl",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gZ.prototype,"dataChanged",null);_.E([_.U0("value"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gZ.prototype,"valueChangedForBinding",null);
_.E([_.WW("iron-overlay-opened"),_.WW("iron-overlay-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],gZ.prototype,"stopPropagation",null);_.E([_.WW("iron-select"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gZ.prototype,"autoSizeLabel",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],gZ.prototype,"label",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],gZ);
_.N(gZ,"ytd-dropdown-renderer",function(){if(aKY!==void 0)return aKY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return aKY=X},{mode:1});var xpq;var FT=function(){var X=_.O.apply(this,arguments)||this;X.isConstrainedList=!1;return X};
_.S(FT,_.O);FT.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"}}}};
FT.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
FT.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
FT.prototype.computeViewAllHidden=function(X,t){return X||!t.viewAllEndpoint};
FT.prototype.fillRestIfNoShowMore=FT.prototype.fillRestIfNoShowMore;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.AV.YtLazyListBehavior),_.U("design:type",Object)],FT.prototype,"ytLazyListBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],FT.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],FT.prototype,"isConstrainedList",void 0);_.E([_.U0("data","canShowMore"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],FT.prototype,"fillRestIfNoShowMore",null);_.E([_.p({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],FT);
_.N(FT,"ytd-expanded-shelf-contents-renderer",function(){if(xpq!==void 0)return xpq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return xpq=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var fKz;var TS=function(){return _.O.apply(this,arguments)||this};
_.S(TS,_.O);TS.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}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],TS.prototype,"data",void 0);_.E([_.p({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],TS);
_.N(TS,"ytd-feed-channel-filter-header-renderer",function(){if(fKz!==void 0)return fKz;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return fKz=X},{mode:1});var MLB;var Xdh;var $Cq;var Ak=function(){return _.O.apply(this,arguments)||this};
_.S(Ak,_.O);_.H=Ak.prototype;_.H.onClick=function(X){var t,G=(t=this.data)==null?void 0:t.sectionEndpoint;!_.Fa(_.be(X),this.hostElement,["A".toString()])&&G&&_.Yt(this.hostElement,"yt-navigate",{endpoint:G})};
_.H.computeHasSectionEndpoint=function(X){return(X==null?void 0:X.sectionEndpoint)!==void 0};
_.H.computeShowHeaderAsLink=function(X){return(X==null?void 0:X.header)!==void 0&&(X==null?void 0:X.sectionEndpoint)!==void 0};
_.H.computeShowSubheaderAsLink=function(X){return(X==null?void 0:X.subheader)!==void 0&&(X==null?void 0:X.sectionEndpoint)!==void 0&&(X==null?void 0:X.header)===void 0};
_.H.getHeaderAsLinkClass=function(X){var t=[],G;(X==null?0:(G=X.headerIcon)==null?0:G.iconType)&&t.push("header-link-active");return t.join(" ")};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Ak.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ak.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ak.prototype,"data",void 0);
_.E([_.K({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],Ak.prototype,"hasSectionEndpoint",void 0);_.E([_.K({computed:"computeShowHeaderAsLink(data)"}),_.U("design:type",Boolean)],Ak.prototype,"showHeaderAsLink",void 0);_.E([_.K({computed:"computeShowSubheaderAsLink(data)"}),_.U("design:type",Boolean)],Ak.prototype,"showSubheaderAsLink",void 0);_.E([_.p({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Ak);
_.N(Ak,"ytd-medical-panel-section-renderer",function(){if($Cq!==void 0)return $Cq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return $Cq=X},{mode:1});var YB=function(){var X=_.O.apply(this,arguments)||this;X.isExpanded=!1;X.roundedContainer=!0;X.skipRoundingTop=!1;X.toggleExpandableSection=function(){X.isExpanded=!X.isExpanded};
return X};
_.S(YB,_.O);
YB.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]]"}}}}}};
YB.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
YB.prototype.dataChanged=YB.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],YB.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],YB.prototype,"isExpanded",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],YB.prototype,"roundedContainer",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],YB.prototype,"skipRoundingTop",void 0);_.E([_.K(),_.U("design:type",Object)],YB.prototype,"toggleExpandableSection",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],YB.prototype,"dataChanged",null);_.E([_.p({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],YB);
_.N(YB,"ytd-medical-panel-content-renderer",function(){if(Xdh!==void 0)return Xdh;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Xdh=X},{mode:1});_.Xa("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var sS=function(){var X=_.O.apply(this,arguments)||this;X.roundedContainer=!0;X.amsterdamEnabled=_.A("enable_desktop_amsterdam_info_panels");X.hasTitle=!1;X.linkIcon="OPEN_IN_NEW";X.isDismissed=!1;return X};
_.S(sS,_.O);
sS.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"}}}};
sS.prototype.computeHasTitle=function(X){return!(X==null||!X.title)};
sS.prototype.onClick=function(X){var t,G=(t=this.data)==null?void 0:t.headerEndpoint;!_.Fa(_.be(X),this.hostElement,["BUTTON".toString()])&&G&&this.ytComponentBehavior.resolveCommand(G)};
_.ke.Object.defineProperties(sS.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 X;return((X=this.data)==null?void 0:X.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:X.disableBottomDivider)||!((t=this.data)==null?0:t.title)}}});
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],sS.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sS.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sS.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],sS.prototype,"amsterdamEnabled",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.U("design:type",Object)],sS.prototype,"hasTitle",void 0);
_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.C("data.background"),_.U("design:type",Object),_.U("design:paramtypes",[])],sS.prototype,"background",null);_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.C("data.titleStyle"),_.U("design:type",Object),_.U("design:paramtypes",[])],sS.prototype,"titleStyle",null);
_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.C("data.titleStyle"),_.U("design:type",Object),_.U("design:paramtypes",[])],sS.prototype,"showLinkIcon",null);_.E([_.K(),_.U("design:type",String)],sS.prototype,"linkIcon",void 0);_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],sS.prototype,"hideDivider",null);
_.E([_.K({selectorArgs:["data.dismissStateEntityKey"],selector:function(X,t){X=_.Kg(X.entities,"dismissState",t);return(X==null?void 0:X.isDismissed)||(X==null?void 0:X.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(X==null?void 0:X.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.U("design:type",Object)],sS.prototype,"isDismissed",void 0);_.E([_.p({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],sS);
_.N(sS,"ytd-info-panel-container-renderer",function(){if(MLB!==void 0)return MLB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return MLB=X},{mode:1});var tdR;_.Xa("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var DI=function(){var X=_.O.apply(this,arguments)||this;X.modernTypography=_.A("web_modern_typography");return X};
_.S(DI,_.O);DI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
DI.prototype.computeStyle=function(X){return X?X:""};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],DI.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.U("design:type",String)],DI.prototype,"titleStyle",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],DI.prototype,"modernTypography",void 0);_.E([_.p({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],DI);
_.N(DI,"ytd-item-section-header-renderer",function(){if(tdR!==void 0)return tdR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return tdR=X},{mode:1});var Gkz;var yNY,wdP=function(){return yNY!==void 0?yNY:yNY=document.createElement("template")};
document.head.appendChild(wdP().content);var zaq;_.SR=new _.FB("VOTING_ANIMATION_CONTROLLER_TOKEN");var opY=_.Fp(function(X){var t=X.data;var G=_.nl("div"),y=_.nl("div");X=_.J(_.sm("VOTE_STATUS_NONE",void 0,"FVF7mc"));var w=X.next().value,z=X.next().value,B=_.Pk(CrV,function(){var T;return(T=t())==null?void 0:T.entityKey}),V=_.A("web_enable_voting_animation")||_.A("enable_music_web_cairo_voting_animation");
_.LY(function(){var T;((T=t().initialState)==null?0:T.status)&&z(t().initialState.status)});
var b=function(){var T,D,h=(D=(T=t().initialState)==null?void 0:T.votes)!=null?D:0,u;T=(u=t().initialState)==null?void 0:u.status;return T==="VOTE_STATUS_UPVOTED"?h-1:T==="VOTE_STATUS_DOWNVOTED"?h+1:h},e=function(){return w()==="VOTE_STATUS_UPVOTED"?b()+1:w()==="VOTE_STATUS_DOWNVOTED"?b()-1:b()},g=function(T){var D=T?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
z(D);var h=e(),u=_.gw().resolve(_.jH(_.SR)),W=B();W&&(T&&(W==null?0:W.upvoteDefaultButtonOnTap)?_.JH(W.upvoteDefaultButtonOnTap,{form:{element:G.value},disableClickTracking:!0}):(W==null?0:W.upvoteToggledButtonOnTap)&&_.JH(W.upvoteToggledButtonOnTap,{form:{element:G.value},disableClickTracking:!0}));var c;T=(c=W==null?void 0:W.enableOptimisticReordering)!=null?c:t().enableOptimisticReordering;V&&u&&t().itemId&&T&&HIt(u,t().itemId,h,D)},F=function(T){var D=T?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
z(D);var h=e(),u=_.gw().resolve(_.jH(_.SR)),W=B();W&&(T&&(W==null?0:W.downvoteDefaultButtonOnTap)?_.JH(W.downvoteDefaultButtonOnTap,{form:{element:y.value},disableClickTracking:!0}):(W==null?0:W.downvoteToggledButtonOnTap)&&_.JH(W.downvoteToggledButtonOnTap,{form:{element:y.value},disableClickTracking:!0}));var c;T=(c=W==null?void 0:W.enableOptimisticReordering)!=null?c:t().enableOptimisticReordering;V&&u&&t().itemId&&T&&HIt(u,t().itemId,h,D)};
X={};X=_.cl("ytVotingViewModelVoteCount",(X.ytVotingViewModelVoteCountDisabled=function(){return t().isDisabled},X));
return _.k("voting-view-model",{class:"ytVotingViewModelHost"},_.k("div",{el:G},_.k(_.M7,{data:function(){var T=_.Y(t().upvoteButton,_.as);return{toggleButtonViewModel:Object.assign({},T,{isToggled:w()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(T){return _.k(_.Lv,{data:T.data,
onToggle:g})}})),_.k("div",{class:X},function(){var T,D,h;
return w()==="VOTE_STATUS_UPVOTED"?(T=t().initialState)==null?void 0:T.compactVotesUpvoted:w()==="VOTE_STATUS_DOWNVOTED"?(D=t().initialState)==null?void 0:D.compactVotesDownvoted:(h=t().initialState)==null?void 0:h.compactVotes}),_.k("div",{el:y},_.k(_.M7,{data:function(){var T=_.Y(t().downvoteButton,_.as);
return{toggleButtonViewModel:Object.assign({},T,{isToggled:w()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(T){return _.k(_.Lv,{data:T.data,
onToggle:F})}})))},"Rb");_.DW(_.Fp(function(X){var t=X.data;return _.k("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.k("div",{class:_.cl("ytEngagementBarViewModelEngagementBarWrapper",X.className)},_.k(_.M7,{data:function(){return t().actions}},{votingViewModel:opY})))},"Sb"),"engagement-bar-view-model",{props:{data:_.bR,
className:_.bR}});var hk=function(){var X=_.O.apply(this,arguments)||this;X.playlistVotingAnimationEnabled=_.A("web_enable_voting_animation");X.downloadProgress=0;X.transferState="TRANSFER_STATE_UNKNOWN";X.downloadState="DOWNLOAD_STATE_UNKNOWN";X.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";X.offlineVideoPolicyExpirationTimestamp=0;return X};
_.S(hk,_.O);_.H=hk.prototype;_.H.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"}}}};
_.H.canReorderChanged=function(){this.persistentDragHandle=_.A("kevlar_playlist_drag_handles")&&this.canReorder};
_.H.onDrag=function(){if(this.thumbnail){var X=_.Sm(this.thumbnail).querySelector("yt-image");X&&(X.shouldRenderLazy=!1)}};
_.H.onMenuOverlayChanged=function(X,t){this.menuOpened=t};
_.H.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.H.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.H.onContentsTap=function(X){var t,G=(t=this.data)==null?void 0:t.serviceEndpoints;if(G&&G.length===1&&_.Y(G[0],pJV)&&!_.Fa(_.be(X),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(G[0]);else{var y;(t=(y=this.data)==null?void 0:y.navigationEndpoint)&&_.A("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?JNJ(_.gw().resolve(_.G2),t):(_.cF().playlistSuggestionsShelfActivation=
!0,_.BUo(_.gw().resolve(_.G2),t)):t&&!_.Fa(_.be(X),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.A("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Yt(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t))}};
_.H.computeStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.H.computeThumbnailWidth=function(X){return X==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.H.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=A_6(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))}};
_.H.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.H.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.H.dataChanged=function(){if(this.data){var X,t,G,y=((X=this.downloadRenderData)==null?void 0:X.badges)&&((t=this.downloadRenderData)==null?void 0:t.badges)!==((G=this.data)==null?void 0:G.badges),w,z,B;X=((w=this.downloadRenderData)==null?void 0:w.thumbnailOverlays)&&((z=this.downloadRenderData)==null?void 0:z.thumbnailOverlays)!==((B=this.data)==null?void 0:B.thumbnailOverlays);(!this.downloadRenderData||y||X)&&this.downloadStateChanged()}};
_.H.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var X,t,G=(X=this.data.menu)==null?void 0:(t=X.menuRenderer)==null?void 0:t.items;if(G)for(X=_.J(G),t=X.next();!t.done;t=X.next())if(t=t.value,G=void 0,_.Y((G=t.menuServiceItemRenderer)==null?void 0:G.serviceEndpoint,_.Xs)){var y=G=void 0,w=void 0;t=(G=t)==null?void 0:(y=G.menuServiceItemRenderer)==null?void 0:(w=y.serviceEndpoint)==null?void 0:w.playlistEditEndpoint;w=y=void 0;if(G=(y=t)==null?void 0:(w=y.actions)==null?void 0:
w[0])y=void 0,G.setVideoId=(y=this.data)==null?void 0:y.setVideoId;w=y=G=void 0;if(t=(G=t)==null?void 0:(y=G.clientActions)==null?void 0:(w=y[0])==null?void 0:w.playlistRemoveVideosAction)G=void 0,t.setVideoIds=[(G=this.data)==null?void 0:G.setVideoId]}}};
_.ke.Object.defineProperties(hk.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
hk.prototype.setVideoIdChanged=hk.prototype.setVideoIdChanged;hk.prototype.dataChanged=hk.prototype.dataChanged;hk.prototype.downloadStateChanged=hk.prototype.downloadStateChanged;hk.prototype.onMenuOverlayChanged=hk.prototype.onMenuOverlayChanged;hk.prototype.canReorderChanged=hk.prototype.canReorderChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],hk.prototype,"ytdReduxBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],hk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],hk.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],hk.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],hk.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],hk.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],hk.prototype,"canReorder",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],hk.prototype,"menuOpened",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],hk.prototype,"handleIsHovered",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],hk.prototype,"persistentDragHandle",void 0);_.E([_.K(),_.U("design:type",Object)],hk.prototype,"downloadRenderData",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.U("design:type",String)],hk.prototype,"styleType",void 0);_.E([_.K({computed:"computeThumbnailWidth(data.style)"}),_.U("design:type",Number)],hk.prototype,"thumbnailWidth",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],hk.prototype,"isDownloads",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],hk.prototype,"playlistVotingAnimationEnabled",void 0);
_.E([_.K({selector:G8,selectorArgs:["data.videoId"]}),_.U("design:type",Object)],hk.prototype,"downloadProgress",void 0);_.E([_.K(),_.U("design:type",Number)],hk.prototype,"relativeDateReference",void 0);_.E([_.K({selector:_.$1,selectorArgs:["data.videoId"]}),_.U("design:type",Object)],hk.prototype,"transferState",void 0);_.E([_.K({selector:ROf,selectorArgs:["data.videoId"]}),_.U("design:type",Object)],hk.prototype,"downloadState",void 0);
_.E([_.K({selector:Cg_,selectorArgs:["data.videoId"]}),_.U("design:type",Object)],hk.prototype,"offlinePolicyAction",void 0);_.E([_.K({selector:KYl,selectorArgs:["data.videoId"]}),_.U("design:type",Object)],hk.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.E([_.K({selector:usE,selectorArgs:["data.videoId"]}),_.U("design:type",Object)],hk.prototype,"entityInfo",void 0);_.E([_.K({selector:_.fg}),_.U("design:type",Boolean)],hk.prototype,"miniplayerIsActive",void 0);
_.E([_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],hk.prototype,"playlistVideoId",null);_.E([_.rt("#thumbnail"),_.U("design:type",Object)],hk.prototype,"thumbnail",void 0);_.E([_.U0("canReorder"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hk.prototype,"canReorderChanged",null);
_.E([_.WW("yt-menu-overlay-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Boolean]),_.U("design:returntype")],hk.prototype,"onMenuOverlayChanged",null);_.E([_.U0("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hk.prototype,"downloadStateChanged",null);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hk.prototype,"dataChanged",null);_.E([_.U0("data.setVideoId"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hk.prototype,"setVideoIdChanged",null);_.E([_.p({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],hk);
_.N(hk,"ytd-playlist-video-renderer",function(){if(zaq!==void 0)return zaq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);X.content.insertBefore(wdP().content.cloneNode(!0),X.content.firstChild);return zaq=X},{mode:1});var nph;var ZI=function(){return _.O.apply(this,arguments)||this};
_.S(ZI,_.O);_.E([_.K(),_.U("design:type",Object)],ZI.prototype,"data",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ZI.prototype,"rendererBehavior",void 0);_.E([_.p({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],ZI);
_.N(ZI,"ytd-premium-browse-footer-renderer",function(){if(nph!==void 0)return nph;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return nph=X},{mode:1});var Vd4;var qk=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return X};
_.S(qk,_.O);_.H=qk.prototype;_.H.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.H.handleDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.H.computeHeaderLogoThumbnail=function(X,t){if(X)return t?X.darkLogo:X.lightLogo};
_.H.computeHeaderLogoHeight=function(X,t){var G,y,w;return(X=(G=this.computeHeaderLogoThumbnail(X,t))==null?void 0:(y=G.thumbnails)==null?void 0:(w=y[0])==null?void 0:w.height)&&X%31===0?"31":"24"};
_.H.computeHeaderLogoMarginBottom=function(X,t){return this.computeHeaderLogoHeight(X,t)==="24"?"0":"-7"};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],qk.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qk.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],qk.prototype,"isDarkTheme",void 0);_.E([_.K({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.U("design:type",Object)],qk.prototype,"themeLogo",void 0);
_.E([_.K({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.U("design:type",String)],qk.prototype,"logoHeight",void 0);_.E([_.K({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.U("design:type",String)],qk.prototype,"logoMarginBottom",void 0);_.E([_.p({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],qk);
_.N(qk,"ytd-primetime-promo-header-renderer",function(){if(Vd4!==void 0)return Vd4;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Vd4=X},{mode:1});var bIY;var dCq=_.Fp(function(X){var t=_.NI(function(w){var z;(z=X.onClick)==null||z.call(X,w)}),G={},y={};
return _.k("yt-shelf-header-layout",{class:_.cl("shelf-header-layout-wiz",(G["shelf-header-layout-wiz--disable-horizontal-padding"]=X.disableHorizontalPadding,G["shelf-header-layout-wiz--disable-vertical-padding"]=X.disableVerticalPadding,G["shelf-header-layout-wiz--responsive"]=X.useResponsiveLayout,G["shelf-header-layout-wiz--narrow"]=function(){var w,z;return((w=X.useResponsiveLayout)==null?void 0:w.call(X))&&((z=X.forceSmallLayout)==null?void 0:z.call(X))},G["shelf-header-layout-wiz--is-overlay"]=
X.isOverlay,G["shelf-header-layout-wiz--tappable"]=!!X.onClick,G)),
"on:click":t,tabindex:function(){var w;return((w=X.isInteractive)==null?0:w.call(X))?0:void 0}},_.k(_.d,{cond:X.leadingIcon,
then:function(w){return _.k("div",{class:"shelf-header-layout-wiz__leading-icon"},_.k(_.mw,{icon:w}))},
else:function(){return _.k(_.d,{cond:X.hasLeadingImage,then:function(){var w,z={};return _.k("div",{class:_.cl("shelf-header-layout-wiz__leading-image",(z["shelf-header-layout-wiz__leading-image--circular-image"]=X.circularImage,z))},(w=X.leadingImage)==null?void 0:w.call(X))}})}}),_.k("div",{class:"shelf-header-layout-wiz__label-container"},_.k(_.d,{cond:X.hasSuperlabel,
then:function(){var w;return _.k("div",{class:"shelf-header-layout-wiz__superlabel"},(w=X.superlabel)==null?void 0:w.call(X))}}),_.k("div",{class:"shelf-header-layout-wiz__title-row"},_.k(kkq,{text:X.title,
className:_.cl("shelf-header-layout-wiz__title",(y["shelf-header-layout-wiz__title--small-title"]=X.forceSmallLayout,y)),tagLevel:X.tagLevel}),_.k(_.d,{cond:X.hasDetail,then:function(){var w;return _.k("div",{class:"shelf-header-layout-wiz__detail"},(w=X.detail)==null?void 0:w.call(X))}})),_.k(_.d,{cond:X.hasSublabel,
then:function(){var w;return _.k("div",{class:"shelf-header-layout-wiz__sublabel"},(w=X.sublabel)==null?void 0:w.call(X))}})),_.k(_.d,{cond:X.hasTrailingActions,
then:function(){var w;return _.k("div",{class:"shelf-header-layout-wiz__trailing-actions"},(w=X.trailingActions)==null?void 0:w.call(X))}}))},"Tb");
dCq.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var kkq=_.Fp(function(X){var t=X.text;var G=X.className;var y=X.tagLevel;return _.k(_.P0,null,_.k(_.rn,{when:function(){return(y==null?void 0:y())===0}},function(){return _.k("h2",{class:G},t())}),_.k(_.rn,{when:function(){return(y==null?void 0:y())===1}},function(){return _.k("h3",{class:G},t())}),_.k(_.rn,{when:function(){return(y==null?void 0:y())===2}},function(){return _.k("h4",{class:G},t())}),_.k(_.Nd,null,function(){return _.k("h2",{class:G},t())}))},"Ub");var gpq,eaY,jBq;_.C0=_.Fp(function(X){var t=X.className;var G=X.data;var y=X.disableHorizontalPadding;var w=X.disableVerticalPadding;var z=X.forceSmallLayout;var B=X.useResponsiveLayout;X=X.isOverlay;return _.k("yt-section-header-view-model",{class:_.cl("ytSectionHeaderViewModelHost",t),style:_.Ud({"background-color":function(){return KLY(G().backgroundColor)?_.yY(KLY(G().backgroundColor)):void 0}})},_.k(dCq,{hasDetail:!1,
title:function(){return _.k(_.eh,{text:function(){return G().headline}})},
hasTitle:!0,sublabel:function(){return _.k(eaY,{data:G})},
hasSublabel:function(){return!!G().sublabel||!!G().bottomBadge},
superlabel:function(){return _.k(jBq,{data:G})},
hasSuperlabel:function(){return!!G().superlabel||!!G().topBadge},
leadingImage:function(){return _.k(gpq,{leadingAccessory:function(){return G().leadingAccessory}})},
hasLeadingImage:function(){return!!G().leadingAccessory},
trailingActions:function(){return _.k(_.M7,{data:function(){return G().trailingActions}},{flexibleActionsViewModel:la})},
hasTrailingActions:function(){return!!G().trailingActions},
disableHorizontalPadding:y,disableVerticalPadding:w,forceSmallLayout:z,useResponsiveLayout:B,isOverlay:X,isInteractive:function(){return!!_.yj(G().rendererContext)},
onClick:function(V){if(_.w2(G().rendererContext)){var b=_.yj(G().rendererContext);b&&_.z7(b,{form:{element:V.target,event:V}})}}}))},"Vb");
gpq=_.Fp(function(X){var t=X.leadingAccessory;return _.k(_.gn,null,_.k(_.d,{cond:function(){var G;return(G=t().image)!=null?G:_.b7(t().themedImage)},
then:function(G){return _.k(_.gr,{data:G,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.k(_.d,{cond:function(){return _.Y(t().avatar,_.Hv)},
then:function(G){return _.k(_.al,{data:G})}}))},"Wb");
eaY=_.Fp(function(X){var t=X.data;return _.k(_.gn,null,_.k(_.d,{cond:function(){return _.Y(t().bottomBadge,K4q)},
then:function(G){var y={};return _.k(_.YM,{data:G,class:_.cl((y.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!G()&&!!t().sublabel},y))})}}),_.k(_.d,{cond:function(){return t().sublabel},
then:function(G){return _.k(_.eh,{text:G})}}))},"Xb");
jBq=_.Fp(function(X){var t=X.data;return _.k(_.gn,null,_.k(_.d,{cond:function(){return _.Y(t().topBadge,K4q)},
then:function(G){var y={};return _.k(_.YM,{data:G,class:_.cl((y.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!G()&&!!t().superlabel},y))})}}),_.k(_.d,{cond:function(){return t().superlabel},
then:function(G){return _.k(_.eh,{text:G})}}))},"Yb");_.DW(_.C0,"yt-section-header-view-model",{props:{data:_.bR,className:_.bR,disableHorizontalPadding:_.bR,disableVerticalPadding:_.bR,forceSmallLayout:_.bR,useResponsiveLayout:_.bR,isOverlay:_.bR}});_.Xa("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var K0=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return X};
_.S(K0,_.O);_.H=K0.prototype;_.H.attached=function(){this.requestElementsPerRow()};
_.H.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"}}}};
_.H.onDataChange=function(){var X=this;_.V8(this,function(){X.updateItemVisibility()})};
_.H.onUpdateElementsPerRowAction=function(X){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X,this.updateItemVisibility())};
_.H.updateItemVisibility=function(){var X=this;this.data&&this.data.panels&&_.Sm(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(t,G){t.hidden=G>X.elementsPerRow-1})};
_.H.requestElementsPerRow=function(){_.Yt(this.hostElement,"yt-request-elements-per-row")};
K0.prototype.onDataChange=K0.prototype.onDataChange;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],K0.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],K0.prototype,"actionHandlerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],K0.prototype,"data",void 0);_.E([_.K({value:3}),_.U("design:type",Number)],K0.prototype,"elementsPerRow",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],K0.prototype,"onDataChange",null);_.E([_.p({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],K0);
_.N(K0,"ytd-primetime-promo-renderer",function(){if(bIY!==void 0)return bIY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return bIY=X},{mode:1});var F5q;var OS=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return X};
_.S(OS,_.O);OS.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
OS.prototype.handleButtonRefreshAction=function(X){if(X=_.Y(X,uyz))this.set("data.button",X.membershipButton),this.notifyPath("data.button")};
_.ke.Object.defineProperties(OS.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:(t=X.avatars)==null?void 0:t.slice(0,8))||[]}}});
_.E([_.K(),_.U("design:type",Object)],OS.prototype,"data",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],OS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],OS.prototype,"rendererBehavior",void 0);_.E([_.C("data"),_.U("design:type",Array),_.U("design:paramtypes",[])],OS.prototype,"avatars",null);
_.E([_.p({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],OS);
_.N(OS,"ytd-recognition-shelf-renderer",function(){if(F5q!==void 0)return F5q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return F5q=X},{mode:1});var TUY;var ANq;var uQ=function(){var X=_.O.apply(this,arguments)||this;X.modernButtons=_.A("web_modern_buttons");return X};
_.S(uQ,_.O);_.H=uQ.prototype;
_.H.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]]"}}}}}};
_.H.dataChanged=function(){this.collapsed=!0};
_.H.computeVisibleItems=function(X,t){return X!==void 0&&X.items?t?X.items.slice(0,this.data.collapsedItemCount):X.items:[]};
_.H.computeHideShowMore=function(X,t,G){return X>=t||!G};
_.H.computeHideShowAll=function(X,t,G){return!(X&&t)||G};
_.H.onMoreClick=function(){this.collapsed=!1};
_.ke.Object.defineProperties(uQ.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.A("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Yx("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.A("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
uQ.prototype.dataChanged=uQ.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uQ.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],uQ.prototype,"isSearch",void 0);
_.E([_.K({computed:"computeVisibleItems(data,collapsed)"}),_.U("design:type",Array)],uQ.prototype,"visibleItems",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],uQ.prototype,"collapsed",void 0);_.E([_.K({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.U("design:type",Boolean)],uQ.prototype,"hideShowMore",void 0);
_.E([_.K({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.U("design:type",Boolean)],uQ.prototype,"hideShowAll",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],uQ.prototype,"modernButtons",void 0);_.E([_.C("isSearch"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],uQ.prototype,"typographyBump",null);
_.E([_.C("isSearch"),_.U("design:type",Object),_.U("design:paramtypes",[])],uQ.prototype,"lockupExperiments",null);_.E([_.C("isSearch"),_.U("design:type",String),_.U("design:paramtypes",[])],uQ.prototype,"thumbnailWidth",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uQ.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],uQ);
_.N(uQ,"ytd-vertical-list-renderer",function(){if(ANq!==void 0)return ANq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return ANq=X},{mode:1});var Yne=_.Vc(["#"]);_.Xa("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Qi=function(){var X=_.O.apply(this,arguments)||this;X.isConstrainedList=!1;X.modernTypography=_.A("web_modern_typography");return X};
_.S(Qi,_.O);_.H=Qi.prototype;
_.H.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"}}}};
_.H.computeThumbnailStyle=function(X){return X||""};
_.H.computePlaceAnnotationUnderTitle=function(){var X;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((X=this.data)==null?void 0:X.thumbnailStyle)||"")};
_.H.computeHrefWithDefault=function(X){return this.ytComponentBehavior.computeHref_(X)||_.NNh(Yne)};
_.H.computeIsPromoShelf=function(X){var t;return(X=X==null?void 0:(t=X[0])==null?void 0:t.metadataBadgeRenderer)?X.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.H.computePlaceBadgeBesideTitle=function(X){var t;return(X==null?0:(t=X[0])==null?0:t.metadataBadgeRenderer)?!this.computeIsPromoShelf(X):!1};
_.H.computeMenuIcon=function(X){return this.computeIsPromoShelf(X)?"yt-icons:more_vert":"yt-icons:more"};
_.H.onDataChange=function(){var X,t;((X=this.data)==null?0:(t=X.content)==null?0:t.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.H.onLockupRequested=function(X){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&X.detail&&X.detail.videoIds){for(var t=this.data.content.gridRenderer.items,G=new Set,y=_.J(X.detail.videoIds),w=y.next();!w.done;w=y.next())G.add(w.value);X.detail.returnValue=t.filter(function(z){return z.gridVideoRenderer&&z.gridVideoRenderer.videoId&&G.has(z.gridVideoRenderer.videoId)}).map(function(z){return z.gridVideoRenderer})}};
_.H.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Qi.prototype.onLockupRequested=Qi.prototype.onLockupRequested;Qi.prototype.onDataChange=Qi.prototype.onDataChange;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],Qi.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Qi.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.ax),_.U("design:type",Object)],Qi.prototype,"ironResizableBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Qi.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],Qi.prototype,"isSearch",void 0);_.E([_.K(),_.U("design:type",Object)],Qi.prototype,"isConstrainedList",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("kevlar_fluid_dismiss")}}),
_.U("design:type",Boolean)],Qi.prototype,"enableFluidDismiss",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.U("design:type",String)],Qi.prototype,"thumbnailStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Qi.prototype,"modernTypography",void 0);_.E([_.K({computed:"computeMenuIcon(data.badges)"}),_.U("design:type",String)],Qi.prototype,"menuIcon",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Qi.prototype,"onDataChange",null);_.E([_.WW("yt-lockup-requested"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Qi.prototype,"onLockupRequested",null);_.E([_.p({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Qi);
_.N(Qi,"ytd-shelf-renderer",function(){if(TUY!==void 0)return TUY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return TUY=X},{mode:1});var sBJ;var Io=function(){return _.O.apply(this,arguments)||this};
_.S(Io,_.O);Io.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.ke.Object.defineProperties(Io.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Io.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Io.prototype,"isPlaylist",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Io.prototype,"isClipList",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Io.prototype,"isPlaylistPageWithFilters",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Io.prototype,"hasTitle",null);_.E([_.K(),_.C("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.U("design:type",Object),_.U("design:paramtypes",[])],Io.prototype,"isRightAligned",null);
_.E([_.p({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Io);
_.N(Io,"ytd-sort-filter-header-renderer",function(){if(sBJ!==void 0)return sBJ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return sBJ=X},{mode:1});var DC4;var Wc=function(){var X=_.O.apply(this,arguments)||this;X.enableRightArrowHidden=_.A("channel_details_shelf_resize_observer");return X};
_.S(Wc,_.O);Wc.prototype.attached=function(){var X=this;this.enableRightArrowHidden&&(this.JSC$16251_throttledOnResize=new _.d2(function(){var t;(t=X.ytdHorizontalListBehavior)==null||t.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var t;
(t=X.JSC$16251_throttledOnResize)==null||t.fire()}),this.resizeObserver.observe(this.hostElement))};
Wc.prototype.detached=function(){if(this.enableRightArrowHidden){var X;(X=this.resizeObserver)==null||X.disconnect();var t;(t=this.JSC$16251_throttledOnResize)==null||t.dispose()}};
Wc.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]]"}}}}}};
Wc.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.ke.Object.defineProperties(Wc.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.A("enable_creator_details_shelf_m2")){var X=[],t;((t=this.data)==null?0:t.creatorVideosButton)&&X.push(this.data.creatorVideosButton);var G;((G=this.data)==null?0:G.creatorAboutButton)&&X.push(this.data.creatorAboutButton);t=_.J(this.data.creatorCustomUrlButtons||[]);for(G=t.next();!G.done;G=t.next())X.push(G.value);return X}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.A("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.Yj.YtdHorizontalListBehavior),_.U("design:type",Object)],Wc.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Wc.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Wc.prototype,"engagementPanel",void 0);
_.E([_.K(),_.U("design:type",Object)],Wc.prototype,"enableRightArrowHidden",void 0);_.E([_.C("enableRightArrowHidden","atEnd"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Wc.prototype,"hideRightArrow",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Wc.prototype,"creatorCustomUrlButtons",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data","creatorCustomUrlButtons"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Wc.prototype,"showCreatorCustomUrlButtons",null);_.E([_.C("showCreatorCustomUrlButtons"),_.U("design:type",Number),_.U("design:paramtypes",[])],Wc.prototype,"channelAvatarSize",null);_.E([_.p({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Wc);
_.N(Wc,"ytd-video-description-infocards-section-renderer",function(){if(DC4!==void 0)return DC4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return DC4=X},{mode:_.Cz("kevlar_poly_si_batch_j067")?1:2});var SnR;var cc=function(){return _.O.apply(this,arguments)||this};
_.S(cc,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],cc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],cc.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.infoIcon)"}),_.U("design:type",Object)],cc.prototype,"infoIcon",void 0);_.E([_.p({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],cc);
_.N(cc,"ytd-eom-settings-disclaimer-renderer",function(){if(SnR!==void 0)return SnR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return SnR=X},{mode:1});var haq;var p0=function(){return _.O.apply(this,arguments)||this};
_.S(p0,_.O);_.ke.Object.defineProperties(p0.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.suppressPaddingDisclaimer)}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],p0.prototype,"componentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],p0.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],p0.prototype,"suppressPaddingDisclaimer",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],p0);
_.N(p0,"ytd-product-list-header-renderer",function(){if(haq!==void 0)return haq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return haq=X},{mode:1});var ZIS;var rZ=function(){return _.O.apply(this,arguments)||this};
_.S(rZ,_.O);rZ.prototype.computeThumbnailStyle=function(X){if(X&&(X=_.Gq(X)))return"background-color:"+X+";"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rZ.prototype,"rendererBehaviors",void 0);_.E([_.K(),_.U("design:type",Object)],rZ.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],rZ);
_.N(rZ,"ytd-hashtag-tile-renderer",function(){if(ZIS!==void 0)return ZIS;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ZIS=X},{mode:1});var qnq;var Nk=function(){return _.O.apply(this,arguments)||this};
_.S(Nk,_.O);Nk.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}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Nk.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Nk);
_.N(Nk,"ytd-sponsorships-alert-renderer",function(){if(qnq!==void 0)return qnq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qnq=X},{mode:1});var CTq;var Pc=function(){return _.O.apply(this,arguments)||this};
_.S(Pc,_.O);Pc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.ke.Object.defineProperties(Pc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.A("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.A("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.E([_.q(_.tV),_.U("design:type",Object)],Pc.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],Pc.prototype,"ytdLockupBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.E([_.K({selector:_.yE}),_.U("design:type",Object)],Pc.prototype,"isGridViewEnabled",void 0);
_.E([_.C("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Pc.prototype,"watchFeedBigThumbs",null);_.E([_.C("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.U("design:type",String),_.U("design:paramtypes",[])],Pc.prototype,"thumbnailWidth",null);_.E([_.K(),_.U("design:type",Object)],Pc.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Pc);
_.N(Pc,"ytd-compact-movie-renderer",function(){if(CTq!==void 0)return CTq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return CTq=X},{mode:1});var K5Y;var OIR;var u1o=_.Md("HTML_DIR")==="rtl",ES=function(){var X=_.O.apply(this,arguments)||this;X.engagementPanel=!1;X.maxLines=2;X.expandButtonOffset=0;X.showExpandButton=!1;X.isTruncated=!1;X.isExpanded=!1;X.currentSnippetType=2;X.alwaysShowExpandButton=!1;X.JSC$16268_lastWidth=NaN;X.observer=null;X.left=0;X.right=0;X.mid=0;X.longestSnippetLength=0;X.isFinalSnippet=!1;X.isFirstMutation=!1;X.isResetMutation=!1;X.OVERFLOW_THRESHOLD=5;return X};
_.S(ES,_.O);_.H=ES.prototype;_.H.onClick=function(X){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Fa(_.be(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;if((t=window.getSelection())==null||!t.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.H.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.H.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.H.updateTextOnSnippetTypeChange=function(){_.A("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.H.setUpBinarySearch=function(X){X=X*this.maxLines/8;this.left=0;var t,G;this.right=Math.min(X*2,(G=(t=this.simpleText)==null?void 0:t.length)!=null?G:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.H.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.H.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Mj(new _.NJ("AttributedSnippet is empty when the description is not empty",this.text))};
_.H.mutationCallback=function(){if(this.observer!=null){var X=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var t=Math.floor(X*this.maxLines/8);this.setSnippetText(this.text,t);t!==0||this.attributedTextIsEmpty()||_.Mj(new _.NJ("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;X=X*this.maxLines/8;this.left=0;var G;this.right=Math.min(X*2,(G=(t=this.simpleText)==null?void 0:t.length)!=null?G: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)}}};
_.H.mutationObserve=function(X){var t=this;this.observer||(this.observer=new MutationObserver(function(){t.mutationCallback()}));
this.observer.observe(X,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.H.attached=function(){var X=this;_.V8(this,function(){X.resize()})};
_.H.isExpandedChanged=function(){_.Yt(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.H.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)};
_.H.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var X="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((u1o?"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",X);this.snippetContainer.style.setProperty("mask-image",
X)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(u1o?"right":"left",this.expandButtonOffset+"px")};
_.H.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.H.setSnippetText=function(X,t){X||(X={});if(_.dr(X)){var G=bp(X,t);G.attachmentRuns||G.commandRuns||G.decorationRuns||G.styleRuns||G.alignment||G.lineBreakMode?this.attributedSnippetTextEl?(_.A("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=bp(X,t),this.attributedSnippetTextEl.headerRuns=K8h(t,this.headerRuns)):this.attributedSnippetText={data:bp(X,t),headerRuns:K8h(t,this.headerRuns)},this.currentSnippetType=0):_.Mj(new _.NJ("Tried to set snippet text when HTML element was null",
X)):(this.plainSnippetText.textContent=nX(X.content||"",t),this.currentSnippetType=2)}else{a:{G=OjA(X,t);if(G.runs){G=_.J(G.runs);for(var y=G.next();!y.done;y=G.next())if(y=y.value,y.bold||y.deemphasize||y.italics||y.strikethrough||y.textColor||y.navigationEndpoint||_.Y(y,tH)){G=!0;break a}}G=!1}G?this.formattedSnippetText?(this.formattedSnippetText.text=OjA(X,t),this.currentSnippetType=1):_.Mj(new _.NJ("Tried to set snippet text when HTML element was null",X)):(this.plainSnippetText.textContent=
nX(_.bu(X),t),this.currentSnippetType=2)}};
_.H.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.H.attributedTextIsEmpty=function(){var X=this.text;if(!_.dr(X))return!0;var t;return((t=X.content)==null?void 0:t.length)===0?!0:!1};
_.H.resize=function(X){if(this.snippetText){if(X===void 0?0:X)this.JSC$16268_lastWidth=NaN;var t=this.hostElement.offsetWidth;if(t!==this.JSC$16268_lastWidth&&!this.isExpanded)if(this.JSC$16268_lastWidth=t,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;X=0;var G,y;t=Math.min(t*this.maxLines/8*2,(y=(G=this.simpleText)==null?void 0:G.length)!=null?y:0)-1;for(G=0;X<=t;)y=Math.floor(X+(t-X)/2),this.setSnippetText(this.text,y),this.isOverflowing()?t=y-1:(X=y+1,G=y);this.setSnippetText(this.text,G);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.H.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.H.onExpandClick=function(){var X=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.A("inline_expander_reset_focus_killswitch")||_.V8(this,function(){var t;((t=_.gw().resolve(_.jH(_.Z8)))==null?0:t.isKeyBoardInUse())&&_.VG(X.hostElement)});
_.Yt(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.H.onCollapseClick=function(){this.collapse();_.Yt(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.H.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.H.computeExpandButtonOffset=function(){var X=this.expandSizer;return X?u1o?X.offsetParent?X.offsetParent.offsetWidth-X.offsetWidth-X.offsetLeft:0:X.offsetLeft:0};
_.ke.Object.defineProperties(ES.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.dr(this.text)?this.text.content||"":_.bu(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 _.dr(this.text)?!0:this.text&&_.A("web_replace_formatted_with_attributed_string")&&MR_(this.text)?(this.text=_.$I(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}}});
ES.prototype.onTextChanged=ES.prototype.onTextChanged;ES.prototype.updateMaskAndExpandButtonOffset=ES.prototype.updateMaskAndExpandButtonOffset;ES.prototype.updateSnippetContainerMaxHeight=ES.prototype.updateSnippetContainerMaxHeight;ES.prototype.isExpandedChanged=ES.prototype.isExpandedChanged;ES.prototype.updateTextOnSnippetTypeChange=ES.prototype.updateTextOnSnippetTypeChange;ES.prototype.updateIsFormattedExpanded=ES.prototype.updateIsFormattedExpanded;ES.prototype.updateIsAttributedExpanded=ES.prototype.updateIsAttributedExpanded;
ES.prototype.onClick=ES.prototype.onClick;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ES.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ES.prototype,"text",void 0);_.E([_.K(),_.U("design:type",Array)],ES.prototype,"headerRuns",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ES.prototype,"engagementPanel",void 0);_.E([_.K(),_.U("design:type",Object)],ES.prototype,"maxLines",void 0);
_.E([_.K(),_.U("design:type",String)],ES.prototype,"expandLabel",void 0);_.E([_.K(),_.U("design:type",String)],ES.prototype,"collapseLabel",void 0);_.E([_.K(),_.U("design:type",Object)],ES.prototype,"expandCommand",void 0);_.E([_.K(),_.U("design:type",Object)],ES.prototype,"expandButtonOffset",void 0);_.E([_.C("text"),_.U("design:type",String),_.U("design:paramtypes",[])],ES.prototype,"simpleText",null);
_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],ES.prototype,"onClick",null);_.E([_.C("text","isExpanded"),_.U("design:type",Object),_.U("design:paramtypes",[])],ES.prototype,"expandedText",null);_.E([_.C("headerRuns","isExpanded"),_.U("design:type",Object),_.U("design:paramtypes",[])],ES.prototype,"expandedHeaderRuns",null);
_.E([_.C("text"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ES.prototype,"hasAttributedStringText",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ES.prototype,"showExpandButton",void 0);_.E([_.C("collapseLabel","isExpanded"),_.U("design:type",Object),_.U("design:paramtypes",[])],ES.prototype,"showCollapseButton",null);_.E([_.K(),_.U("design:type",Object)],ES.prototype,"isTruncated",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ES.prototype,"isExpanded",void 0);_.E([_.K(),_.U("design:type",Boolean)],ES.prototype,"isAttributedExpanded",void 0);_.E([_.cW("isExpanded","hasAttributedStringText"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ES.prototype,"updateIsAttributedExpanded",null);_.E([_.K(),_.U("design:type",Boolean)],ES.prototype,"isFormattedExpanded",void 0);
_.E([_.cW("isExpanded","hasAttributedStringText"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ES.prototype,"updateIsFormattedExpanded",null);_.E([_.K(),_.U("design:type",Number)],ES.prototype,"currentSnippetType",void 0);_.E([_.C("currentSnippetType"),_.U("design:type",Object),_.U("design:paramtypes",[])],ES.prototype,"useAttributedSnippet",null);
_.E([_.C("currentSnippetType"),_.U("design:type",Object),_.U("design:paramtypes",[])],ES.prototype,"useFormattedSnippet",null);_.E([_.C("currentSnippetType"),_.U("design:type",Object),_.U("design:paramtypes",[])],ES.prototype,"usePlainSnippet",null);_.E([_.K(),_.U("design:type",Object)],ES.prototype,"alwaysShowExpandButton",void 0);_.E([_.cW("currentSnippetType"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ES.prototype,"updateTextOnSnippetTypeChange",null);
_.E([_.K(),_.U("design:type",Object)],ES.prototype,"attributedSnippetText",void 0);_.E([_.rt("#snippet"),_.U("design:type",HTMLElement)],ES.prototype,"snippetContainer",void 0);_.E([_.rt("#snippet-text"),_.U("design:type",HTMLElement)],ES.prototype,"snippetText",void 0);_.E([_.rt("#plain-snippet-text"),_.U("design:type",HTMLElement)],ES.prototype,"plainSnippetText",void 0);_.E([_.rt("#formatted-snippet-text"),_.U("design:type",Object)],ES.prototype,"formattedSnippetText",void 0);
_.E([_.rt("#attributed-snippet-text"),_.U("design:type",Object)],ES.prototype,"attributedSnippetTextEl",void 0);_.E([_.rt("#expand"),_.U("design:type",HTMLElement)],ES.prototype,"expandButton",void 0);_.E([_.rt("#expand-sizer"),_.U("design:type",HTMLElement)],ES.prototype,"expandSizer",void 0);_.E([_.U0("isExpanded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ES.prototype,"isExpandedChanged",null);
_.E([_.cW("isExpanded","maxLines"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ES.prototype,"updateSnippetContainerMaxHeight",null);_.E([_.cW("isTruncated","showExpandButton","expandButtonOffset"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ES.prototype,"updateMaskAndExpandButtonOffset",null);
_.E([_.U0("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ES.prototype,"onTextChanged",null);_.E([_.p({is:"ytd-text-inline-expander",disableElementRegistration:!0})],ES);
_.N(ES,"ytd-text-inline-expander",function(){if(OIR===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);OIR=X}X=OIR;return X},{mode:2});var US=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return X};
_.S(US,_.O);US.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
US.prototype.handleUpdateDescriptionAction=function(X){if(X=_.Y(X,_.tVe))if(X.attributedDescription)this.set("data.attributedDescriptionBodyText",X.attributedDescription);else if(X.description){var t;((t=this.data)==null?0:t.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.$I(X.description)):this.set("data.descriptionBodyText",X.description)}};
_.ke.Object.defineProperties(US.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null||!X.attributedDescriptionBodyText)||!((t=this.data)==null||!t.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null?0:X.collapsedLineCount){var t;return(t=this.data)==null?void 0:t.collapsedLineCount}X=_.At("web_watch_description_collapsed_default_lines",12);if(_.A("ww_desc_line_page_size_ks"))return X;t=Math.round(_.Py().height*_.At("web_watch_description_screen_height_percentage",.5)/20);return Math.max(t,X)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return(G=(X=this.data)==null?void 0:X.descriptionBodyText)!=null?G:(t=this.data)==null?void 0:t.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.sourceAttributions}}});
US.prototype.panelContentVisibleChanged=US.prototype.panelContentVisibleChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],US.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],US.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],US.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Boolean)],US.prototype,"panelContentVisible",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],US.prototype,"engagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],US.prototype,"shortsPanel",void 0);_.E([_.rt("#inline-expander"),_.U("design:type",Object)],US.prototype,"inlineExpander",void 0);
_.E([_.cW("panelContentVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],US.prototype,"panelContentVisibleChanged",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],US.prototype,"hasDescriptionText",null);_.E([_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],US.prototype,"collapsedLines",null);
_.E([_.C("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.U("design:type",Object),_.U("design:paramtypes",[])],US.prototype,"descriptionText",null);_.E([_.C("data","data.headerRuns"),_.U("design:type",Object),_.U("design:paramtypes",[])],US.prototype,"headerRuns",null);_.E([_.C("data","data.sourceAttributions"),_.U("design:type",Object),_.U("design:paramtypes",[])],US.prototype,"sourceAttributions",null);
_.E([_.p({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],US);
_.N(US,"ytd-expandable-video-description-body-renderer",function(){if(K5Y!==void 0)return K5Y;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return K5Y=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var QBo;var IEe=_.Fp(function(X){var t=X.data;return _.k("factoid-renderer",{class:"ytwFactoidRendererHost"},_.k("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return t().accessibilityText}},_.k("span",{class:"ytwFactoidRendererValue"},_.k(_.eh,{text:function(){return t().value}})),_.k("span",{class:"ytwFactoidRendererLabel"},_.k(_.eh,{text:function(){return t().label}}))))},"Zb");_.DW(IEe,"factoid-renderer",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;return _.k("upload-time-factoid-renderer",null,_.k(_.M7,{data:function(){return t().factoid}},{factoidRenderer:IEe}))},"$b"),"upload-time-factoid-renderer",{props:{data:_.sd}});_.DW(_.Fp(function(X){var t=X.data;return _.k("view-count-factoid-renderer",null,_.k(_.M7,{data:function(){return t().factoid}},{factoidRenderer:IEe}))},"ac"),"view-count-factoid-renderer",{props:{data:_.sd}});var mv=function(){var X=_.O.apply(this,arguments)||this;X.shortsPanel=!1;X.engagementPanel=!1;X.watchWhileSdp=_.A("shorts_desktop_watch_while_sdp");return X};
_.S(mv,_.O);mv.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"}}}}};
_.ke.Object.defineProperties(mv.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var X;return(X=this.data)==null?void 0:X.channel}}});
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],mv.prototype,"componentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mv.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mv.prototype,"shortsPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mv.prototype,"engagementPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mv.prototype,"watchWhileSdp",void 0);_.E([_.C("shortsPanel","engagementPanel","data.channel"),_.U("design:type",Object),_.U("design:paramtypes",[])],mv.prototype,"showChannelInfo",null);_.E([_.p({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],mv);
_.N(mv,"ytd-video-description-header-renderer",function(){if(QBo!==void 0)return QBo;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return QBo=X},{mode:1});var W5P;var Ro=function(){return _.O.apply(this,arguments)||this};
_.S(Ro,_.O);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Ro.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Ro.prototype,"noPadding",void 0);_.E([_.K(),_.U("design:type",Object)],Ro.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Ro);
_.N(Ro,"ytd-list-item-view-model",function(){if(W5P!==void 0)return W5P;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return W5P=X},{mode:1});var cNB;var pdq;var rNJ;var NUY;var iQ=function(){var X=_.O.apply(this,arguments)||this;X.adaptiveFullWidth=!1;X.modernButtons=_.A("web_modern_buttons");X.buttonOverrides={style:"call-to-action",type:"filled"};X.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return X};
_.S(iQ,_.O);iQ.prototype.handleSetTimestamp_=function(X){this.data&&this.data.shortUrl&&(_.Sm(this.hostElement).querySelector("#share-url").value=X.isSet?_.o8(this.data.shortUrl,"t",X.timestamp):this.data.shortUrl)};
iQ.prototype.handleSignalActionCopyShareUrl_=function(X,t){(_.A("killswitch_copy_link_target_check")||_.Sm(this.hostElement).querySelector("#copy-button")===t)&&this.copyUrlToClipboard()};
iQ.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Sm(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
iQ.prototype.computeStyle_=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],iQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iQ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.U("design:type",String)],iQ.prototype,"rendererStyle",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],iQ.prototype,"adaptiveFullWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],iQ.prototype,"modernButtons",void 0);_.E([_.K(),_.U("design:type",Object)],iQ.prototype,"buttonOverrides",void 0);_.E([_.$F({is:"yt-copy-link-renderer",disableElementRegistration:!0})],iQ);
_.N(iQ,"yt-copy-link-renderer",function(){if(NUY===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;rNJ===void 0&&(rNJ=document.createElement("template"));var y=rNJ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);NUY=X}X=NUY;return X},{mode:2});_.Xa("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var L0=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return X};
_.S(L0,_.O);_.H=L0.prototype;_.H.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.H.attached=function(){this.keyboardFocused=!1};
_.H.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var X=_.gw().resolve(_.jH(_.Z8));X&&(this.keyboardFocused=X.isKeyBoardInUse())}};
_.H.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.H.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}};
_.H.onChange_=function(){if(this.data){var X=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;X&&this.ytComponentBehavior.resolveCommand(X);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.H.handleUpdateToggleAction_=function(X){(X=_.Y(X,GTt))&&this.data&&X.targetId==this.data.targetId&&this.set("data.toggled",X.toggled)};
_.H.toBoolean_=function(X){return!!X};
_.H.reset=function(){};
_.H.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("data-changed",this.data))};
_.H.updateDataToggledFromBinding=function(X){this.set("data.toggled",X.detail.value)};
L0.prototype.dataChangedForBinding=L0.prototype.dataChangedForBinding;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],L0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],L0.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],L0.prototype,"data",void 0);_.E([_.K({computed:"computeDescription_(data.*)"}),_.U("design:type",Object)],L0.prototype,"description_",void 0);_.E([_.K({value:function(){return!!_.gw().resolve(_.jH(_.Z8))&&_.A("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.U("design:type",Boolean)],L0.prototype,"useKeyboardFocused",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],L0.prototype,"keyboardFocused",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],L0.prototype,"dataChangedForBinding",null);_.E([_.$F({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],L0);
_.N(L0,"yt-toggle-form-field-renderer",function(){if(pdq===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;cNB===void 0&&(cNB=document.createElement("template"));var y=cNB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);pdq=X}X=pdq;return X},{mode:2});var PTJ;var Epe;var vc=function(){var X=_.O.apply(this,arguments)||this;X.isDarkTheme=!1;X.isSearch=!1;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.noTopMargin=_.A("kevlar_watch_no_top_margin");X.maskFade=_.A("web_watch_chips_mask_fade");X.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 X};
_.S(vc,_.O);_.H=vc.prototype;_.H.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}}}}}};
_.H.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.H.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.H.dataChanged=function(){var X=this.getSelectedIndex();if(X>0)this.selected=X;else{this.selected=0;var t,G;(t=this.ytScrollableChipCloudBehavior)==null||(G=t.reset)==null||G.call(t)}};
_.H.getSelectedIndex=function(){var X;if((X=this.data)==null||!X.chips)return-1;X=-1;for(var t,G=0;G<((t=this.data)==null?void 0:t.chips.length);G++){var y=void 0,w=void 0;if((y=this.data)==null?0:(w=y.chips[G].chipCloudChipRenderer)==null?0:w.isSelected){X=G;break}}return X};
_.H.onResize=function(){var X=this.ytScrollableChipCloudBehavior;_.V8(X,X.setContainerWidthDiff);OZ(this.ytScrollableChipCloudBehavior)};
_.H.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.H.handleRelatedChipCommand=function(X,t){X=this.JSC$16295_chipsSelector.indexOf(t);X!==-1&&this.JSC$16295_chipsSelector.selectIndex(X)};
_.H.handleChipCloudChipSelectAction=function(X){X=this.JSC$16295_chipsSelector.indexOf(X);X>-1&&this.JSC$16295_chipsSelector.selectIndex(X)};
_.H.handleChipCloudChipDeselectAction=function(){var X=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16295_chipsSelector&&((X==null?0:X.continuationCommand)?_.hE(this.hostElement,[X]):(X==null?0:X.searchEndpoint)?this.ytComponentBehavior.resolveCommand(X):X&&_.Z0(this.hostElement,[X],this.hostElement),this.JSC$16295_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.H.updateSelectedFromBinding=function(X){this.selected=X.detail.value};
vc.prototype.onResize=vc.prototype.onResize;vc.prototype.dataChanged=vc.prototype.dataChanged;vc.prototype.isSearchChanged=vc.prototype.isSearchChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],vc.prototype,"actionHandlerBehavior",void 0);
_.E([_.q(_.ax),_.U("design:type",Object)],vc.prototype,"ironResizableBehavior",void 0);_.E([_.q(),_.U("design:type",KW)],vc.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],vc.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vc.prototype,"data",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],vc.prototype,"selected",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vc.prototype,"isDarkTheme",void 0);_.E([_.K({value:160}),_.U("design:type",Number)],vc.prototype,"scrollDistance",void 0);_.E([_.K(),_.U("design:type",Object)],vc.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vc.prototype,"darkerDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vc.prototype,"noTopMargin",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vc.prototype,"maskFade",void 0);_.E([_.rt("#chips"),_.U("design:type",Object)],vc.prototype,"JSC$16295_chipsSelector",void 0);_.E([_.cW("isSearch"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vc.prototype,"isSearchChanged",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vc.prototype,"dataChanged",null);
_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vc.prototype,"onResize",null);_.E([_.$F({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],vc);
_.N(vc,"yt-chip-cloud-renderer",function(){if(Epe===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;PTJ===void 0&&(PTJ=document.createElement("template"));var y=PTJ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Epe=X}X=Epe;return X},{mode:2});var UC4,mCz=function(){return UC4!==void 0?UC4:UC4=document.createElement("template")};
document.head.appendChild(mCz().content);var Rat;var iI4=document.head,L5t=iI4.appendChild,vpR;if(Rat===void 0){var aEq=document.createElement("template");_.Z(aEq,"");aEq.content.insertBefore(mCz().content.cloneNode(!0),aEq.content.firstChild);Rat=aEq}vpR=Rat;L5t.call(iI4,vpR.content);var lEB=_.Fp(function(X){var t=X.data;return _.k("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.k("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.k("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.k(_.d,{cond:function(){return _.b7(t().image)},
then:function(G){return _.k("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.k(_.gr,{data:G,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.k("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.k(_.eh,{text:function(){return t().title}})),_.k("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.k(_.eh,{text:function(){return t().subtitle}})))),_.k(_.d,{cond:function(){var G;
return(G=t())==null?void 0:G.hasBottomDivider},
then:function(){return _.k("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"bc");var xCJ=_.Fp(function(X){var t=X.data;return _.k("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.k("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.k(_.M7,{data:function(){var G;return(G=t().offerPlanDetailsItem)!=null?G:[]}},{offerPlanDetailsItemViewModel:function(G){return _.k("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.k(lEB,{data:G.data}))}})),_.k("div",null,_.k(_.d,{cond:function(){return t().hasBottomDivider},
then:function(){return _.k("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.k("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.k("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.k("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.k("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"cc");var fEt=_.Fp(function(X){var t=X.data;X=_.J(_.sm(!1,void 0,"SpEGQd"));var G=X.next().value,y=X.next().value,w=_.NI(function(){y(!G());return!1}),z=function(){var B;
return(B=t().offerPlanDetailsContainer)!=null?B:[]};
return _.k("lp-complex-offer-card-details-view-model",null,_.k("div",null,_.k(_.d,{cond:function(){return G()},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.k("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":w,"aria-expanded":G},_.k(_.eh,{text:function(){return t().expandedTitle}})),_.k("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.k(_.M7,{data:z},{offerPlanDetailsContainerViewModel:function(B){return _.k("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.k(xCJ,{data:B.data}))}})),_.k("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.k(_.eh,{text:function(){return t().legalText}})))},
else:function(){return _.k("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":w,"aria-expanded":G},_.k(_.eh,{text:function(){return t().collapsedTitle}}),_.k("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.k(_.mw,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"dc");var MdR=_.Fp(function(X){var t=X.data;return _.k("lp-complex-offer-card-option-view-model",null,_.k("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.k(_.d,{cond:function(){return t().topDividerText},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.k("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.k("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.k("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.k(_.eh,{text:function(){return t().topDividerText}}))))}}),_.k(_.d,{cond:function(){return t().description},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.k(_.eh,{text:function(){return t().description}}))}}),_.k(_.d,{cond:function(){return t().planPricingPrimary},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.k(_.eh,{text:function(){return t().planPricingPrimary}}))}}),_.k(_.d,{cond:function(){return t().planPricingSecondary},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.k(_.eh,{text:function(){return t().planPricingSecondary}}))}}),_.k(_.d,{cond:function(){return t().primaryButton},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.k(_.M7,{data:function(){return t().primaryButton}},{buttonViewModel:function(G){return _.k(_.QK,{data:G.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"ec");var Xnq=_.Fp(function(X){var t=X.data;var G=function(){var z;return((z=t())==null?void 0:z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
X={};var y={},w={};return _.k("ytm-lp-complex-offer-card-view-model",null,_.k("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.k("div",{class:_.cl((X.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=G,X),"ytmLpComplexOfferCardViewModelCardContainer")},_.k(_.d,{cond:function(){var z;return(z=t())==null?void 0:z.bannerText},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.k("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.k(_.eh,{text:function(){return t().bannerText}})))}}),_.k(_.d,{cond:function(){return _.b7(t().logo)},
then:function(z){var B={};return _.k("div",{class:_.cl((B.ytmLpComplexOfferCardViewModelLogoAlignLeft=G,B),"ytmLpComplexOfferCardViewModelLogo")},_.k(_.gr,{data:z,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.k("div",{class:_.cl((y.ytmLpComplexOfferCardViewModelTitleAlignLeft=G,y),"ytmLpComplexOfferCardViewModelTitle")},_.k(_.eh,{text:function(){return t().title}})),_.k(_.d,{cond:function(){var z;
return(z=t())==null?void 0:z.subtitle},
then:function(){var z={};return _.k("div",{class:_.cl((z.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=G,z),"ytmLpComplexOfferCardViewModelSubtitle")},_.k(_.eh,{text:function(){return t().subtitle}}))}}),_.k(_.d,{cond:function(){return t().planPricingPrimary},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.k(_.eh,{text:function(){return t().planPricingPrimary}}))}}),_.k(_.d,{cond:function(){return t().planPricingSecondary},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.k(_.eh,{text:function(){return t().planPricingSecondary}}))}}),_.k(_.d,{cond:function(){return t().purchaseButton},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.k(_.M7,{data:function(){return t().purchaseButton}},{buttonViewModel:function(z){return _.k(_.QK,{data:z.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.k(_.d,{cond:function(){var z;
return(z=t())==null?void 0:z.offerOptions},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.k(_.M7,{data:function(){return t().offerOptions}},{lpComplexOfferCardOptionViewModel:MdR}))}}),_.k("div",{class:_.cl((w.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=G,w),"ytmLpComplexOfferCardViewModelLegalText")},_.k(_.eh,{text:function(){return t().legalText}})),_.k(_.d,{cond:function(){var z;
return(z=t())==null?void 0:z.offerCardDetails},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.k(_.M7,{data:function(){return t().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:fEt}))}}))))},"fc");var $mP=_.Fp(function(X){var t=X.data;var G=function(){var B;return((B=t())==null?void 0:B.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
X={};var y={},w={},z={};return _.k("ytm-lp-complex-offer-card-section-view-model",null,_.k("div",{class:_.cl("ytmLpComplexOfferCardSectionViewModelHost")},_.k("div",{class:_.cl((X.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=G,X),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.k("div",{class:_.cl((y.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=G,y),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.k("h2",{class:_.cl((w.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
G,w),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.k(_.eh,{text:function(){return t().title}}))),_.k(_.d,{cond:function(){var B;
return(B=t())==null?void 0:B.subtitle},
then:function(){var B={},V={};return _.k("div",{class:_.cl((B.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=G,B),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.k("div",{class:_.cl((V.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=G,V),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.k(_.eh,{text:function(){return t().subtitle}})))}}),_.k("div",{class:_.cl((z.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=G,z),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.k(_.M7,{data:function(){var B;
return(B=t().offerPlans)!=null?B:[]}},{lpComplexOfferCardViewModel:function(B){return _.k("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.k(Xnq,{data:B.data}))}})))))},"gc");var tyh=_.Fp(function(X){return _.k("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.k("div",{class:"ytLpCouponBannerViewModelIcon"},_.k(_.mw,{icon:function(){return"price_tag"}})),_.k("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.k("div",{class:"ytLpCouponBannerViewModelContent"},_.k("div",{class:"ytLpCouponBannerViewModelHeading"},_.k(_.eh,{text:function(){var t;
return(t=X.data())==null?void 0:t.title}})),_.k("div",{class:"ytLpCouponBannerViewModelBody"},_.k(_.eh,{text:function(){var t;
return(t=X.data())==null?void 0:t.subtitle}})))))},"hc");
tyh.idomCompat=!0;_.ao=wzo.getInstance();var Geh=_.Fp(function(X){return _.k("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":X.shouldAriaHideContent},_.k("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:X.questionId},_.k(_.eh,{text:X.question})))},"ic"),yo4=_.Fp(function(X){var t=X.data;
var G=X.themeOverride;X=_.J(_.sm(!1,void 0,"ljTVPd"));var y=X.next().value,w=X.next().value;X=_.NI(function(){w(!y());return!1});
var z=function(){return y()?"EXPAND_LESS":"EXPAND_MORE"},B=("faq-container"+_.fG(_.ao)).toString(),V="faq-question-and-answers-section-question"+_.fG(_.ao),b={},e={};
return _.k("faq-entry-view-model-c3",null,_.k("div",{class:_.cl("yt-lp-faq-entry-view-model",(b["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return G==null?void 0:G().useDarkTheme},b))},_.k("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":X,role:"button","aria-expanded":y,"aria-labelledby":V.toString(),"tab-index":"0"},_.k(Geh,{question:function(){return t().question},
questionId:V,shouldAriaHideContent:!0}),_.k(_.d,{cond:function(){return y()!==void 0},
then:function(){return _.k("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.k(_.mw,{icon:z,ariaHidden:!0}),_.k("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.k("div",{class:_.cl("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(e["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!y()},e))},_.k("div",{id:B},_.k(_.pY,{each:function(){return t().answers||[]}},function(g){return _.k("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.k(_.eh,{text:g}))})))))},"jc");
yo4.idomCompat=!0;var wnh=_.Fp(function(X){var t=X.data;var G=X.themeOverride;X={};return _.k("lp-faq-section-view-model-c3",null,_.k("div",{class:_.cl("yt-lp-faq-section-view-model",(X["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},X["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(G==null||!G().useDarkTheme)},X))},_.k("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.k(_.d,{cond:function(){return t().header},
then:function(y){return _.k("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.k(_.eh,{text:y}))}}),_.k("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.k(_.M7,{data:function(){return t().faqs}},{faqEntryViewModel:function(y){return _.k(yo4,{data:y.data,
themeOverride:G})}})),_.k("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.k(_.pY,{each:function(){return t().footers||[]}},function(y){return _.k(_.eh,{text:y})})),_.k(_.d,{cond:function(){return t().legal},
then:function(y){return _.k("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.k(_.eh,{text:y}))}}))))},"kc");
wnh.idomCompat=!0;var z5h=_.Fp(function(X){var t=X.data;var G=X.themeOverride;_.LY(function(){var B=t().gtmId;B&&_.vN(B,_.Md("GL",""))});
var y={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var B,V,b;return(b=(B=t().logo)==null?void 0:(V=B.accessibilityData)==null?void 0:V.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},w=_.gw().resolve(_.jH(_.kI)),z=function(){return w&&w()||(G==null?void 0:G().useDarkTheme)};
return _.k("lp-header-section-view-model",null,_.k("div",{class:function(){var B=t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",V=t().marginType==="LP_SECTION_MARGIN_TYPE_TOP",b=G==null?void 0:G().useDarkTheme,e=["lp-header-section-view-model"];B&&e.push("lp-header-section-view-model--ptc-layout-type");V&&e.push("lp-header-section-view-model__lp-header-section-margin");b&&e.push("lp-header-section-view-model--premium-force-dark-mode");return e.join(" ")}},_.k(_.d,{cond:function(){return t().logo},
then:function(){return _.k("div",null,_.k(_.d,{cond:z,then:function(){return _.k(_.d,{cond:function(){var B;return(B=t().logo)==null?void 0:B.imageDark},
then:function(B){return _.k(_.gr,Object.assign({},{data:B},y))}})},
else:function(){return _.k(_.d,{cond:function(){var B;return(B=t().logo)==null?void 0:B.imageLight},
then:function(B){return _.k(_.gr,Object.assign({},{data:B},y))}})}}))}}),_.k(_.d,{cond:function(){return t().title},
then:function(B){return _.k("div",{class:"lp-header-section-view-model__lp-header-title"},_.k(_.eh,{text:B}))}}),_.k("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.k(_.d,{cond:function(){return t().subtitles},
then:function(B){return _.k(_.pY,{each:B},function(V){return _.k("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.k(_.eh,{text:V}))})}})),_.k(_.d,{cond:function(){return t().additionalInfo},
then:function(B){return _.k("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.k(_.eh,{text:B}))}}),_.k("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.k(_.d,{cond:function(){return t().primaryButton},
then:function(B){return _.k("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.k(_.M7,{data:B},{buttonViewModel:_.QK}))}}),_.k(_.d,{cond:function(){return t().secondaryButton},
then:function(B){return _.k("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.k(_.M7,{data:B},{buttonViewModel:_.QK}))}})),_.k(_.d,{cond:function(){return t().otherOffersInfo},
then:function(B){return _.k("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.k(_.eh,{text:B}))}}),_.k("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.k(_.d,{cond:function(){return t().billingInfo},
then:function(B){return _.k(_.pY,{each:B},function(V){return _.k("div",null,_.k(_.eh,{text:V}))})}}))))},"lc");
z5h.idomCompat=!0;var HCh=_.Fp(function(X){var t=X.data;var G=_.ex(X.themeOverride,{useDarkTheme:!1});X={};X=_.cl("ytm-lp-headline-section-view-model",(X["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return G().useDarkTheme},X));
return _.k("lp-headline-section-view-model",null,_.k("div",{class:X},_.k("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.k(_.eh,{text:function(){return t().title}})),_.k(_.d,{cond:function(){return t().subtitle},
then:function(y){return _.k("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.k(_.eh,{text:y}))}})))},"mc");var oDB=_.Fp(function(X){var t=X.data;var G=X.themeOverride;var y=_.gw().resolve(_.jH(_.kI)),w=function(){return y&&y()||(G==null?void 0:G().useDarkTheme)},z=function(){var e,g;
var F=w()?(e=t().textBackgroundImage)==null?void 0:e.imageDark:(g=t().textBackgroundImage)==null?void 0:g.imageLight;return M3l((F==null?void 0:F.sources)||[])},B=function(){var e,g;
return w()?(e=t().featureImage)==null?void 0:e.imageDark:(g=t().featureImage)==null?void 0:g.imageLight},V=function(){return t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},b=function(){var e,g;
return w()?(e=t().logo)==null?void 0:e.imageDark:(g=t().logo)==null?void 0:g.imageLight};
return _.k("ytm-lp-large-feature-section-view-model",null,_.k("div",{class:function(){var e=t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",g=t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",F=(t().index||0)%2===1,T=G==null?void 0:G().useDarkTheme,D=["yt-lp-large-feature-section-view-model"];e?D.push("yt-lp-large-feature-section-view-model--music-feature-type"):g?D.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):F||D.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
T&&D.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return D.join(" ")}},_.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.k(_.d,{cond:B,
then:function(){return _.k(_.gr,{data:function(){return B()},
alt:function(){var e,g,F;return(F=(e=t().featureImage)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)!=null?F:""},
contentMode:V})}})),_.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var e;return((e=z())==null?0:e.url)?"background-image: url("+_.l_(z().url)+");":""}},_.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.k(_.d,{cond:b,
then:function(){return _.k(_.gr,{data:function(){return b()},
alt:function(){var e,g,F;return(F=(e=t().logo)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)!=null?F:""},
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"})}}),_.k(_.d,{cond:function(){return t().eyebrowText},
then:function(){return _.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.k(_.eh,{text:function(){return t().eyebrowText}}))}}),_.k(_.d,{cond:function(){return t().title},
then:function(){return _.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.k(_.eh,{text:function(){return t().title}}))}}),_.k(_.d,{cond:function(){return t().subtitles},
then:function(){return _.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.k(_.pY,{each:function(){return t().subtitles||[]}},function(e){return _.k(_.eh,{text:e})}))}})))))},"nc");
oDB.idomCompat=!0;var JoP=_.Fp(function(X){return _.k("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.k("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.k(_.mw,{icon:function(){var t;return(t=X.data())==null?void 0:t.iconType},
className:function(){var t;switch((t=X.data())==null?void 0:t.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 t;return((t=X.data())==null?void 0:t.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.k("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.k(_.eh,{text:function(){var t;
return(t=X.data())==null?void 0:t.text},
className:function(){var t;return((t=X.data())==null?void 0:t.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"oc");var BDR=_.Fp(function(X){X=_.jx(X,{config:void 0,themeOverride:void 0});var t=X.data,G=X.config,y=X.themeOverride;X={};X=_.cl("ytm-lp-offer-card-option-view-model",(X["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var V;return(V=y())==null?void 0:V.useDarkTheme},X));
var w=_.NI(function(){var V,b;(V=G())==null||(b=V.handleRadioButtonClick)==null||b.call(V,t());return!1}),z=function(){var V;
return(V=G())==null?void 0:V.shouldDisplayRadioButton},B=function(){var V;
return(V=t().featureListItems)!=null?V:[]};
return _.k("ytm-lp-offer-card-option-view-model",null,_.k("div",{class:X,"on:click":_.NI(function(){if(z()){var V,b;(V=G())==null||(b=V.handleRadioButtonClick)==null||b.call(V,t())}return!1})},_.k(_.d,{cond:z,
then:function(){return _.k("div",null,_.k("input",{type:"radio","on:click":w,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var V;return!((V=G())==null||!V.isOptionSelected)}}))}}),_.k("div",null,_.k("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.k(_.eh,{text:function(){return t().eyebrowText}})),_.k("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.k(_.eh,{text:function(){return t().title}})),_.k("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.k(_.eh,{text:function(){return t().subtitle}})),_.k(_.d,{cond:function(){return B().length>0},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.k(_.M7,{data:B},{lpFeatureListItemViewModel:JoP}))}}),_.k("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.k(_.eh,{text:function(){return t().description}})))))},"pc");
BDR.idomCompat=!0;var nDR=_.Fp(function(X){var t=X.data;var G=X.themeOverride;X=_.J(_.Ed(function(){var z,B=(z=t().offerOptions)==null?void 0:z[0];return _.Y(B,d0B)||{}}));
var y=X.next().value,w=X.next().value;X={};return _.k("ytm-lp-offer-card-view-model",null,_.k("div",{class:_.cl("ytm-lp-offer-card-view-model",(X["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(G==null||!G().useDarkTheme)},X))},_.k("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.k(_.d,{cond:function(){return t().titleIconType},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.k(_.mw,{icon:function(){var z;return((z=t().titleIconType)==null?void 0:z.toString())||""}}))}}),_.k("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.k(_.eh,{text:function(){return t().title}})),_.k(_.M7,{data:function(){return t().titleBadge}},{badgeViewModel:function(z){return _.k("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.k(_.YM,{data:z.data}))}})),_.k("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.k(_.M7,{data:function(){return t().offerOptions}},{lpOfferCardOptionViewModel:function(z){var B=z.data;
return _.k(_.gn,null,_.k("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.k(BDR,{data:B,config:function(){var V;return{shouldDisplayRadioButton:(t().offerOptions||[]).length>1,isOptionSelected:B().id===((V=y())==null?void 0:V.id),handleRadioButtonClick:function(b){return void w(b)}}},
themeOverride:G}))}})),_.k("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.k(_.M7,{data:function(){var z;
return(z=y())==null?void 0:z.purchaseButtonOverride}},{buttonViewModel:_.QK}))))},"qc");
nDR.idomCompat=!0;var VyY=_.Fp(function(X){var t=X.data;var G=X.themeOverride;X={};X=_.cl("ytm-lp-offer-card-section-view-model",(X["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var y;return G==null?void 0:(y=G())==null?void 0:y.useDarkTheme},X));
return _.k("ytm-lp-offer-card-section-view-model",null,_.k("div",{class:X},_.k(_.d,{cond:function(){return t().title!==void 0},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.k("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.k(_.eh,{text:function(){return t().title}})),_.k(_.d,{cond:function(){return t().subtitle},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.k(_.eh,{text:function(){return t().subtitle}}))}}))}}),_.k("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.k(_.M7,{data:function(){return t().offerCards}},{lpOfferCardViewModel:function(y){return _.k("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.k(nDR,{data:y.data,
themeOverride:G}))}})),_.k(_.d,{cond:function(){return t().footer},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.k(_.eh,{text:function(){return t().footer}}))}})))},"rc");var bCz=_.Fp(function(X){var t=X.data;return _.k("lp-offer-table-cell-content-view-model",null,_.k("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.k(_.P0,null,_.k(_.rn,{when:function(){return t().title}},function(){return _.k(_.eh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return t().title}})}),_.k(_.rn,{when:function(){return t().subTitle}},function(){return _.k(_.eh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return t().subTitle}})}),_.k(_.rn,{when:function(){return t().featureDescription}},function(){return _.k(_.eh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return t().featureDescription}})}),_.k(_.rn,{when:function(){return t().description}},function(){return _.k(_.eh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return t().description}})}),_.k(_.rn,{when:function(){return t().iconType}},function(){return _.k("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.k(_.mw,{icon:function(){return t().iconType.toString()}}))}),_.k(_.rn,{when:function(){return t().purchaseButton}},function(){return _.k(_.M7,{data:function(){return t().purchaseButton}},{buttonViewModel:function(G){return _.k("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.k(_.QK,{data:G.data}))}})}),_.k(_.rn,{when:function(){return t().note}},function(){return _.k(_.eh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return t().note}})}),_.k(_.rn,{when:function(){return t().featureDetail}},function(){return _.k(_.eh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return t().featureDetail}})}),_.k(_.rn,{when:function(){return t().badge}},function(){return _.k(_.M7,{data:function(){return t().badge}},{badgeViewModel:_.YM})}))))},"sc");
bCz.idomCompat=!0;var keJ=_.Fp(function(X){var t=X.data;return _.k("lp-offer-table-cell-view-model",null,_.k("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(t().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;"}}},_.k(_.M7,{data:function(){return t().contents}},{lpOfferTableCellContentViewModel:bCz})))},
"tc");
keJ.idomCompat=!0;var dm4=_.Fp(function(X){var t=X.data;var G=X.lpTableIsFirstRow;var y=X.lpTableIsLastRow;var w=function(){return(G==null?0:G())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},z=function(){return(G==null?0:G())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(y==null?0:y())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.k("ytm-lp-offer-table-row-view-model",null,_.k("div",{class:"yt-lp-offer-table-row-view-model"},_.k(_.M7,{data:function(){return t().rowHeaderCell}},{lpOfferTableCellViewModel:function(B){return _.k("div",{class:w},_.k(keJ,{data:B.data}))}}),_.k(_.M7,{data:function(){return t().contentCells}},{lpOfferTableCellViewModel:function(B){return _.k("div",{class:z},_.k(keJ,{data:B.data}))}})))},"uc");
dm4.idomCompat=!0;var e5q=_.Fp(function(X){var t=X.data;var G=X.themeOverride;var y=_.gw().resolve(_.jH(_.kI)),w=function(){return _.Y(t().logo,uPo)||{}};
X={};return _.k("ytm-lp-offer-table-section-view-model",null,_.k("div",{class:"yt-lp-offer-table-view-model"},_.k(_.d,{cond:function(){var z,B;return y&&y()||(G==null?0:G().useDarkTheme)?(z=w())==null?void 0:z.imageDark:(B=w())==null?void 0:B.imageLight},
then:function(z){return _.k(_.gr,{data:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var B,V,b;return(b=(B=w())==null?void 0:(V=B.accessibilityData)==null?void 0:V.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.k(_.eh,{text:function(){return t().title}})),_.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.k(_.eh,{text:function(){return t().subtitle}})),_.k(_.d,{cond:function(){return t().disclaimers},
then:function(z){return _.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.k(_.pY,{each:z},function(B){return _.k("div",null,_.k(_.eh,{text:B}))}))}}),_.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.k(_.M7,{data:function(){return t().rows}},{lpOfferTableRowViewModel:function(z,B){return _.k(dm4,{data:z.data,
lpTableIsFirstRow:function(){return B()===0},
lpTableIsLastRow:function(){return B()===t().rows.length-1}})}})),_.k("div",{class:_.cl((X["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return t().hasFooterBackground},X))},_.k(_.d,{cond:function(){return t().footer},
then:function(){return _.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.k(_.eh,{text:function(){return t().footer}}))}}),_.k(_.d,{cond:function(){return t().footerTitle},
then:function(){return _.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.k(_.eh,{text:function(){return t().footerTitle}}))}}),_.k(_.d,{cond:function(){return t().footerDescription},
then:function(){return _.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.k(_.eh,{text:function(){return t().footerDescription}}))}}))))},"vc");
e5q.idomCompat=!0;var j_Y=_.Fp(function(X){var t=X.data;var G=X.themeOverride;var y=_.gw().resolve(_.jH(_.kI)),w=function(){var V;return G==null?void 0:(V=G())==null?void 0:V.useDarkTheme},z=function(){var V,b;
return y&&y()||w()?(V=t().image)==null?void 0:V.imageDark:(b=t().image)==null?void 0:b.imageLight};
X={};X=_.cl("ytm-lp-small-feature-section-view-model",(X["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=w,X));var B=function(){var V,b,e;return(e=(V=t().image)==null?void 0:(b=V.accessibilityData)==null?void 0:b.label)!=null?e:""};
return _.k("ytm-lp-small-feature-section-view-model",{class:X},_.k(_.d,{cond:function(){return z()&&!ky},
then:function(){return _.k("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.k(_.gr,{data:function(){return z()},
alt:B,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.k("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.k("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.k(_.d,{cond:function(){return t().title},
then:function(V){return _.k(_.eh,{text:V})}})),_.k("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.k(_.eh,{text:function(){return t().description}}))))},"wc");
j_Y.idomCompat=!0;var gDJ=_.Fp(function(X){var t=X.data;var G=X.themeOverride;X={};return _.k("ytm-lp-small-feature-section-group-view-model",null,_.k("div",{class:_.cl("ytm-lp-small-feature-section-group-view-model",(X["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(G==null||!G().useDarkTheme)},X))},_.k("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.k(_.M7,{data:function(){return t().smallFeatures}},{lpSmallFeatureSectionViewModel:function(y){return _.k("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.k(j_Y,{data:y.data,
themeOverride:G}))}}))))},"xc");
gDJ.idomCompat=!0;_.DW(_.Fp(function(X){var t=X.data;var G=function(){return t().forcedTheme==="USER_INTERFACE_THEME_DARK"},y=function(){return t().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},w=function(){var B="",V,b;
var e=_.gw().resolve(_.jH(_.kI));e=G()||(e==null?0:e())?(V=t().themedImageViewModel)==null?void 0:V.imageDark:(b=t().themedImageViewModel)==null?void 0:b.imageLight;(V=M3l((e==null?void 0:e.sources)||[]))&&V.url&&(B=y()?"background-image: linear-gradient(to bottom, transparent, "+(t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.l_(V.url)+");":"background-image: url("+_.l_(V.url)+");");return B},z=function(){return{useDarkTheme:G()}};
X={};return _.k("yt-section-group-view-model",null,_.k("div",{class:_.cl("yt-lp-section-group-view-model",(X["yt-lp-section-group-view-model--premium-force-dark-mode"]=G,X["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},X))},_.k(_.d,{cond:function(){return w().length},
then:function(){var B={};return _.k("div",{class:_.cl("yt-lp-section-group-view-model__bg-image",(B["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=y,B)),style:w})}}),_.k("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.k(_.M7,{data:function(){return t().sections}},{lpFaqSectionViewModel:function(B){return _.k(wnh,{data:B.data,
themeOverride:z})},
lpHeaderSectionViewModel:function(B){return _.k(z5h,{data:B.data,themeOverride:z})},
lpHeadlineSectionViewModel:function(B){return _.k(HCh,{data:B.data,themeOverride:z})},
lpLargeFeatureSectionViewModel:function(B){return _.k(oDB,{data:B.data,themeOverride:z})},
lpOfferCardSectionViewModel:function(B){return _.k(VyY,{data:B.data,themeOverride:z})},
lpComplexOfferCardSectionViewModel:function(B){return _.k($mP,{data:B.data})},
lpOfferTableSectionViewModel:function(B){return _.k(e5q,{data:B.data,themeOverride:z})},
lpSmallFeatureSectionGroupViewModel:function(B){return _.k(gDJ,{data:B.data,themeOverride:z})},
lpCouponBannerViewModel:function(B){return _.k(tyh,{data:B.data})}}))))},"yc"),"yt-section-group-view-model",{props:{data:_.bR}});var I$h=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.lQ=_.Fp(function(X){function t(){if(I$h.has(X.data().displayType)){var e=!y(),g;if((g=X.disableDeselection)==null||!g.call(X)||e){X.data().selected=e;g=Object.assign({},B(),{selected:e});V(g);var F;(F=X.callback)==null||F.call(X,g,e)}}}
var G=_.nl("chip-view-model"),y=function(){var e,g;return!!(((e=X.selected)==null?void 0:e.call(X))!==void 0?(g=X.selected)==null?0:g.call(X):B().selected)},w=_.J(_.Ed(X.data)),z=w.next().value;
w=w.next().value;var B=z,V=w,b=_.Pk(QXE,function(){return X.data().chipEntityKey||""});
return _.k("chip-view-model",{class:"ytChipViewModelHost",el:G},_.k(XLt,{data:function(){var e,g=Object.assign({},B(),{selected:y()}),F=b(),T=(e=X.disableDeselection)==null?void 0:e.call(X);a:switch(g.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":e=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":e=3;break a;default:e=0}return{text:(F==null?void 0:F.text)||g.text,state:g.disabled?1:g.selected?0:2,type:e,onTap:WL6(g,G,t,T),
accessibilityLabel:g.accessibilityLabel||g.text}}}))},"zc");
_.lQ.idomCompat={callbacks:{callback:!0}};_.FHq=_.Fp(function(X){var t=_.Pk(uGV,function(){var B;return(B=X.data())==null?void 0:B.chipBarStateEntityKey}),G=function(){return X.data().disableDeselection},y=_.J(_.Ed(function(){var B;
if(((B=t())==null?void 0:B.selectedIndex)!=void 0)return t().selectedIndex;var V,b;B=_.J(((V=X.data())==null?void 0:(b=V.chips)==null?void 0:b.entries())||[]);for(V=B.next();!V.done;V=B.next()){V=_.J(V.value);b=V.next().value;V=V.next().value;var e=void 0;if((e=_.Y(V,_.HF))==null?0:e.selected)return b}return-1})),w=y.next().value,z=y.next().value;
return _.k("chip-bar-view-model",{class:_.cl("ytChipBarViewModelHost",X.className),role:"tablist"},_.k(_.M7,{data:function(){return X.data().chips}},{chipViewModel:function(B,V){return _.k("div",{class:"ytChipBarViewModelChipWrapper"},_.k(_.lQ,{data:B.data,
selected:function(){return V()===w()},
callback:function(b,e){b=!!e;e=V();z(b?e:-1);var g,F=(g=X.data())==null?void 0:g.chipBarStateEntityKey;F&&b&&_.dX(_.EW("chipBarStateEntity",F,{key:F,selectedIndex:e}))},
disableDeselection:X.disableDeselection||G}))}}))},"Ac");_.DW(_.FHq,"chip-bar-view-model",{props:{data:_.sd,className:_.sd,disableDeselection:_.sd}});_.TDP=_.Fp(function(X){var t=X.data;X={};return _.k("divider-view-model",{class:_.cl("divider-view-model-wiz",(X["divider-view-model-wiz__inset-thin-padding"]=function(){return t().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},X))},_.k("div",{class:_.cl("divider-view-model-wiz__base-divider",function(){return c$_(t().dividerStyle)}),
style:_.Ud({"background-color":function(){return t().backgroundColor?_.Gq(t().backgroundColor):void 0}})}))},"Bc");
_.TDP.idomCompat=!0;_.DW(_.TDP,"divider-view-model",{props:{data:_.bR}});var i7=new Map,RD=new Map,NJA=0,Ly;var LLJ=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],l$s={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Ao4,YUR;Ao4=function(X){return function(t){return function(){return String(t())+X}}};
_.xB=Ao4("px");YUR=Ao4("s");var Dmq=_.Fp(function(X){function t(L){return function(){var x=D().numItemsPerGridRow,w6=L()*x;x=w6+x;var BY,kJ;return(kJ=(BY=y().contents)==null?void 0:BY.slice(w6,x))!=null?kJ:[]}}
var G=_.jx(X,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),y=G.data,w=G.layoutContainerWidth,z=G.shouldUseOwnContainerSize,B=G.marginSettings;G=_.J(_.sm(!0,void 0,"qgr2Je"));var V=G.next().value,b=G.next().value,e=function(){var L,x=(L=_.Y(y().showMoreButton,_.vk))==null?void 0:L.trackingParams;x&&_.ug(_.Pj(),x);b(!1)},g=function(){var L,x=(L=_.Y(y().showLessButton,_.vk))==null?void 0:L.trackingParams;
x&&_.ug(_.Pj(),x);b(!0)};
G=_.nl("grid-shelf-view-model");var F=_.f$6(G,{canHaveZeroSize:!1}),T=function(){var L;return(L=y().contentAspectRatio)!=null?L:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},D=_.qt(function(){var L=_.Vj({containerWidth:z()&&F.width()>0?F.width()||w():w(),
sizing:"EXTRA_COMPACT",marginSettings:B(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:L.maxContainerWidth,numItemsPerGridRow:L.numItems,contentPadding:z()?L.margin:L.contentMargin,itemWidth:L.itemWidth,itemMargin:L.gutter/2}},void 0,"pqVdjc"),h=function(){if(y().enableVerticalExpansion){if(V())return u();
var L,x,w6=(x=(L=y().contents)==null?void 0:L.length)!=null?x:0;return Math.ceil(w6/D().numItemsPerGridRow)}return D().numItemsPerGridRow<=2?2:1},u=function(){var L;
return Math.ceil(((L=y().minCollapsedItemCount)!=null?L:1)/D().numItemsPerGridRow)},W=function(){return y().enableVerticalExpansion&&y().showLessButton&&!V()&&h()>u()},c=function(){var L,x;
return y().enableVerticalExpansion&&y().showMoreButton&&V()&&((x=(L=y().contents)==null?void 0:L.length)!=null?x:0)>D().numItemsPerGridRow*u()},P=function(){return!W()},l=function(){return!c()},R={};
return _.k("grid-shelf-view-model",{class:_.cl("ytGridShelfViewModelHost",X.className,(R.ytGridShelfViewModelHostHasBottomButton=function(){return W()||c()},R)),
el:G,style:_.Ud({"margin-left":(0,_.xB)(function(){return D().contentPadding}),
"margin-right":(0,_.xB)(function(){return D().contentPadding})})},_.k(_.d,{cond:function(){return _.Y(y().header,RT4)},
then:function(L){return _.k(_.C0,{data:L,disableHorizontalPadding:!0})}}),_.k("div",null,_.k(_.pY,{each:function(){return Array(h())}},function(L,x){return _.k(s_h,{className:X.className,
items:t(x),responsiveGridShelfLayout:D,contentAspectRatio:T})})),_.k("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.k(_.M7,{data:function(){return y().showMoreButton}},{buttonViewModel:function(L){return _.k("div",{hidden:l},_.k(_.QK,{data:L.data,
onClick:e}))}}),_.k(_.M7,{data:function(){return y().showLessButton}},{buttonViewModel:function(L){return _.k("div",{hidden:P},_.k(_.QK,{data:L.data,
onClick:g}))}})))},"Cc");
Dmq.idomCompat=!0;var s_h=_.Fp(function(X){var t=X.items;var G=X.responsiveGridShelfLayout;var y=X.contentAspectRatio;X=X.className;var w=_.nl("div");r$l(w,function(){a:{var B=w.value;for(var V=t(),b=[],e=0;e<V.length;e++){var g=_.Y(V[e],AZS);if(!g||g==null||!g.inlinePlayerData){B=null;break a}var F=B.children.item(e);if(!F){B=null;break a}b.push({thumbnailElement:F,videoData:g})}B={gridVideoPreviewData:{gridItems:b}}}return B});
var z=(0,_.xB)(function(){return-G().itemMargin});
return _.k("div",{el:w,class:_.cl("ytGridShelfViewModelGridShelfRow",X),style:_.Ud({"margin-left":z,"margin-right":z})},_.k(_.M7,{data:t,replacementWrapper:function(B){return _.k(SUq,{responsiveGridShelfLayout:G},B)}},{shortsLockupViewModel:function(B){return _.k(SUq,{responsiveGridShelfLayout:G},_.k(HRo,{data:B.data,
aspectRatio:function(){return y()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Dc"),SUq=_.Fp(function(X){return _.k("div",{style:_.Ud({width:(0,_.xB)(function(){return X.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+X.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},X.children)},"Ec");
Dmq.idomCompat=!0;_.DW(Dmq,"grid-shelf-view-model",{props:{data:_.bR,layoutContainerWidth:_.bR,shouldUseOwnContainerSize:_.bR,marginSettings:_.bR,className:_.bR}});_.h5R=_.Fp(function(X){var t=_.J(_.sm(!1,void 0,"YYtxR")),G=t.next().value,y=t.next().value;t={};return _.k("yt-alert-banner-view-model",{class:_.cl("ytAlertBannerViewModelHost",X.className,function(){var w;a:switch((w=X.data())==null?void 0:w.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":w="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":w="ytAlertBannerViewModelWarning";break a;default:w="ytAlertBannerViewModelInformational"}return w},(t.ytAlertBannerViewModelDismissed=
G,t.ytAlertBannerViewModelFullbleed=X.fullbleed,t.ytAlertBannerViewModelNarrow=X.narrow,t.ytAlertBannerViewModelIsInRichGrid=X.isInRichGrid,t))},_.k(_.d,{cond:function(){var w;
return!((w=X.data())==null?0:w.hideIcon)},
then:function(){return _.k("div",{class:"ytAlertBannerViewModelIcon"},_.k(_.mw,{icon:function(){return"info_circle"}}))}}),_.k("div",{class:"ytAlertBannerViewModelOuterContainer"},_.k("div",{class:"ytAlertBannerViewModelContainer"},_.k("div",{class:"ytAlertBannerViewModelContent"},_.k("div",{class:"ytAlertBannerViewModelHeading"},_.k(_.eh,{text:function(){var w;
return(w=X.data())==null?void 0:w.heading}})),_.k("div",{class:"ytAlertBannerViewModelBody"},_.k(_.eh,{text:function(){var w;
return(w=X.data())==null?void 0:w.body}})))),_.k(_.M7,{data:function(){var w;
return(w=X.data())==null?void 0:w.actionButton}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.k(_.M7,{data:function(){var w;
return(w=X.data())==null?void 0:w.dismissButton}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var z;((z=X.data())==null?0:z.disableLocalDismissBehavior)||y(!0)}})}}))},"Fc");_.DW(_.h5R,"yt-alert-banner-view-model",{props:{data:_.bR,fullbleed:_.bR,narrow:_.bR,isInRichGrid:_.bR,className:_.bR}});var Mnv=_.L5({chipViewModel:_.lQ,buttonViewModel:_.QK});_.FE(Xu0);var ZCq;ZCq=_.Fp(function(X){var t=X.data;var G=X.callback;var y=X.enableSingleChipSelection;var w=X.disableChipsScrollAnimation;var z=_.VN("div");X=_.J(_.sm(!0,void 0,"ULL8g"));var B=X.next().value,V=X.next().value;X=_.J(_.sm(!1,void 0,"cWhQn"));var b=X.next().value,e=X.next().value,g=!1,F=0;_.R2(function(){V(h());e(u())});
X=_.J(_.Ed(function(){var w6={};return t().autoselectedChipIndex!=null?(w6[t().autoselectedChipIndex]=!0,w6):{}}));
var T=X.next().value,D=X.next().value,h=function(){var w6=z.value;return w6==null||w6.scrollLeft-1<=0},u=function(){var w6=z.value;
return w6==null?!1:w6.scrollLeft+1>=(w6==null?NaN:w6.scrollWidth)-(w6==null?NaN:w6.clientWidth)},W=function(){return t().isHorizontallyScrollable},c=function(w6){z.value!=null&&(_.Md("HTML_DIR")==="rtl"&&(w6=-w6),z.value.scrollBy({left:w6,
behavior:(w==null?0:w())?"instant":"smooth"}))},P=function(){c(-320)},l=function(){c(320)},R=_.NI(function(w6){g=!0;
F=w6.clientX}),L=_.NI(function(w6){if(g){w6=w6.clientX;
var BY=w6-F;F=w6;var kJ;(kJ=z.value)==null||kJ.scrollBy({left:-BY})}}),x=_.NI(function(){var w6=h(),BY=u();
w6!==B()&&V(w6);BY!==b()&&e(BY)});
ei("pointerup",function(){g&&(g=!1)});
return _.k("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.k(_.S1,{contentId:function(){return t().contentId},
useModernStyle:!0},function(){var w6={},BY={};return _.k("div",null,_.k(_.d,{cond:function(){return t().title},
then:function(){return _.k("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.k("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return t().title}),_.k(_.M7,{data:function(){return t().overflowButton}},{buttonViewModel:_.QK}))}}),_.k("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.k(_.d,{cond:function(){return t().previousButton},
then:function(){var kJ={};return _.k("div",{class:_.cl("ytChipsShelfViewModelLeftArrowContainer",(kJ.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return B()},kJ))},_.k(_.M7,{data:function(){return t().previousButton}},{buttonViewModel:function(Ss){return _.k(_.QK,{data:Ss.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:P})}}))}}),_.k("div",{el:z,
"on:pointerdown":R,"on:pointermove":L,"on:scroll":x,class:_.cl("ytChipsShelfViewModelChipsScrollContainer",(w6.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=W,w6))},_.k("div",{class:_.cl("ytChipsShelfViewModelChipsContainer",(BY.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=W,BY.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,BY)),role:"tablist"},_.k(_.M7,{data:function(){return t().contents}},{chipViewModel:function(kJ,Ss){return _.k("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.k(_.lQ,{data:kJ.data,
callback:function(C_,Fv){var Uh=Ss();if(y==null?0:y()){var cY={};D((cY[Uh]=Fv,cY))}else cY={},D(Object.assign({},T(),(cY[Uh]=Fv,cY)));G==null||G(C_,Fv,Uh)},
disableDeselection:y,selected:function(){return!!T()[Ss()]}}))}}))),_.k(_.d,{cond:function(){return t().nextButton},
then:function(){var kJ={};return _.k("div",{class:_.cl("ytChipsShelfViewModelRightArrowContainer",(kJ.ytChipsShelfViewModelRightArrowContainerIsHidden=b,kJ))},_.k(_.M7,{data:function(){return t().nextButton}},{buttonViewModel:function(Ss){return _.k(_.QK,{data:Ss.data,
className:"ytChipsShelfViewModelRightArrow",onClick:l})}}))}})))}))},"Gc");
_.qUJ=_.A("enable_chips_shelf_view_model_fully_reactive")?ZCq:_.rr(Xu0,{callbacks:{callback:!0}});ZCq.idomCompat={callbacks:{callback:!0}};_.DW(_.qUJ,"chips-shelf-view-model",{props:{data:_.bR,callback:_.sd,enableSingleChipSelection:_.bR,disableChipsScrollAnimation:_.bR}});var CLz=_.Fp(function(X){X=_.jx(X,{disabled:!1});var t=X.active,G=X.disabled;X={};X=_.cl("ytSwitchShapeTrack",(X.ytSwitchShapeTrackActive=function(){return t()},X.ytSwitchShapeTrackDisabled=function(){return G()},X));
var y={};y=_.cl("ytSwitchShapeKnob",(y.ytSwitchShapeKnobActive=function(){return t()},y));
return _.k("switch-shape",{class:"ytSwitchShapeHost"},_.k("div",{class:X}),_.k("div",{class:y}))},"Hc");var KHt=_.Fp(function(X){var t=_.jx(X,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),G=t.data;X=t.className;var y=t.handleOnTapEventInParent,w=t.parentActive;t=_.J(_.Ed(function(){var F;return(F=w())!=null?F:G().switchedOnByDefault||!1}));
var z=t.next().value,B=t.next().value,V=function(){return G().isDisabled},b=_.nl("button");
t=_.NI(function(F){return F.key==="Enter"?(F.preventDefault(),b.value.click(),!1):!0});
var e=_.NI(function(F){if(G().handleOnTapEventInParent||y())return!0;if(V())return!1;t6V(G(),z(),F);B(!z());return!1}),g={};
g=_.cl("ytSwitchButtonViewModelButton",(g.ytSwitchButtonViewModelTappable=function(){return!V()},g));
return _.k("switch-button-view-model",{class:_.cl("ytSwitchButtonViewModelHost",X)},_.k("button",{el:b,class:g,"on:click":e,"on:keydown":t,"aria-label":function(){return z()?G().a11yLabelSwitchedOn:G().a11yLabelSwitchedOff},
"aria-checked":z,"aria-disabled":V,role:"switch"},_.k(CLz,{active:z,disabled:V})))},"Ic");var uQ4=_.Fp(function(X){var t=_.jx(X,{checked:!1});X=t.name;var G=t.onChange,y=t.onClick,w=t.checked,z=t.labelRenderable,B=t.hasLeadingLabel,V=t.labelClass,b=t.isCompact,e=t.selectElementClass;t=t.disableHorizontalPadding;var g="checkbox"+_.fG(_.ao),F=_.NI(function(h){y==null||y(h);return!1}),T=_.NI(function(h){G==null||G(h);
return!1}),D={};
return _.k("checkbox-shape",null,_.k("label",{class:_.cl("checkbox-shape-wiz",V,(D["checkbox-shape-wiz--compact"]=b,D["checkbox-shape-wiz--disable-horizontal-padding"]=t,D))},_.k("input",{class:"checkbox-shape-wiz__input",id:g,checked:w,name:X,type:"checkbox","prop:checked":w,"on:change":T,"on:click":F}),_.k(_.d,{cond:function(){return!(B==null?0:B())},
then:function(){return _.k(OCe,{isLeading:!0,selectElementClass:e})}}),_.k(_.d,{cond:function(){return!!z},
then:function(){return _.k("div",{class:"checkbox-shape-wiz__label"},z==null?void 0:z())}}),_.k(_.d,{cond:B,
then:function(){return _.k(OCe,{isLeading:!1,selectElementClass:e})}})))},"Jc");
uQ4.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var OCe=_.Fp(function(X){var t=X.selectElementClass;X={};return _.k("div",{class:_.cl("checkbox-shape-wiz__checkbox",t,(X["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(t==null?0:t())},X)),
"aria-hidden":"true"},_.k(_.mw,{icon:_.A("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.k(_.mw,{icon:_.A("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Kc");_.f0=_.Fp(function(X){var t=X.name;var G=X.onChange;var y=X.onClick;var w=X.checked;var z=X.labelRenderable;var B=X.useCheckIcon;var V=X.hasLeadingLabel;var b=X.labelClass;var e=X.isCompact;var g=X.selectElementClass;var F=X.ariaLabel;X=X.className;var T="radio"+_.fG(_.ao),D=_.nl("input"),h=_.NI(function(L){D.value.checked=!(w==null||!w());G==null||G(L);return!1}),u=_.NI(function(L){y==null||y(L);
return!1}),W=_.J(_.sm(!1,void 0,"v5AMrb")),c=W.next().value,P=W.next().value;
W=_.NI(function(){var L;((L=_.gw().resolve(_.jH(_.Z8)))==null?0:L.isKeyBoardInUse())&&P(!0)});
var l=_.NI(function(){P(!1)}),R={};
return _.k("radio-shape",{class:_.cl("radio-shape-wiz",X)},_.k("input",{el:D,class:"radio-shape-wiz__input",id:T,"prop:checked":w,name:t,type:"radio","on:change":h,"on:click":u,"aria-label":F,"on:focusin":W,"on:focusout":l}),_.k("label",{class:_.cl("radio-shape-wiz__label-container",b,(R["radio-shape-wiz--compact"]=e,R["radio-shape-wiz__label-container--keyboard-focused"]=c,R)),for:T},_.k(_.d,{cond:function(){return!(V==null?0:V())},
then:function(){return _.k(Q_P,{checked:w,useCheckIcon:B,isLeading:!0,selectElementClass:g})}}),_.k(_.d,{cond:function(){return!!z},
then:function(){return _.k("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(F==null?0:F())?"true":"false"}},z==null?void 0:z())}}),_.k(_.d,{cond:V,
then:function(){return _.k(Q_P,{checked:w,useCheckIcon:B,isLeading:!1,selectElementClass:g})}})))},"Lc");
_.f0.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Q_P=_.Fp(function(X){var t=X.useCheckIcon;var G=X.selectElementClass;X=function(){return(t==null?0:t())?"CHECK":_.A("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var y={};return _.k("div",{class:_.cl("radio-shape-wiz__radio",G,(y["radio-shape-wiz__radio--check-icon"]=t,y["radio-shape-wiz__radio--radio-default-style"]=function(){return!(G==null?0:G())},y)),
"aria-hidden":"true"},_.k(_.mw,{icon:X}),_.k(_.mw,{icon:X,active:function(){return!(t==null?0:t())}}))},"Mc");_.Mk=_.Fp(function(X){function t(){var f_;((f_=_.gw().resolve(_.jH(_.Z8)))==null?0:f_.isKeyBoardInUse())&&cY(!0)}
function G(){cY(!1)}
var y=X.data;var w=X.isMenuItem;var z=X.isCompact;var B=X.onTap;var V=X.trailingAccessory;var b=X.hideSelectionTextChevron;var e=X.disabled;var g=X.inPopup;var F=X.disableHorizontalPadding;var T=X.isOverlay;var D=X.isToggled;var h=X.ariaLabel;var u=X.ariaPressed;var W=_.A("apply_button_role_to_list_item"),c=_.w5(function(f_){a:{var sq=y();if((sq==null?0:sq.entitySelectorType)&&(sq==null?0:sq.entityKey))switch(sq.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":f_=
_.X26(f_,sq.entityKey);f_=f_==null?void 0:f_.value;sq=!1;f_==="CAPTIONS_UNAVAILABLE"&&(sq=!0,f_="");f_=Object.assign({},!!f_&&{selectionText:{content:f_}},!!f_&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:sq});break a;default:f_={}}else f_={}}return f_}),P=function(){return _.A("enable_web_shorts_captions_language_command")?Object.assign({},y(),c()):y()},l=function(){return!(P().isSelected===void 0||!P().selectionStyle||P().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
R=function(){return(_.w2(P().rendererContext)||B)&&!l()},L=function(){return _.w2(P().rendererContext)||l()};
X={};T=_.cl("yt-list-item-view-model-wiz",(X["yt-list-item-view-model-wiz--is-overlay"]=T,X["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!W&&Uh()},X));
X={};var x=_.cl("yt-list-item-view-model-wiz__label",(X["yt-list-item-view-model-wiz__container"]=function(){return!l()},X["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!P().isDisabled||!(e==null||!e())},X["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!P().subtitle},X["yt-list-item-view-model-wiz__container--compact"]=z,X["yt-list-item-view-model-wiz__container--tappable"]=R,X["yt-list-item-view-model-wiz__container--in-popup"]=g,X["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return W&&Uh()},X["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(F==null?void 0:F())&&!l()},X));
X={};var w6=_.cl("yt-list-item-view-model-wiz__container",(X["yt-list-item-view-model-wiz__container--tappable"]=L,X["yt-list-item-view-model-wiz__container--compact"]=z,X["yt-list-item-view-model-wiz__container--in-popup"]=g,X["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(F==null?void 0:F())&&l()},X)),BY=function(){return P().leadingImage||P().leadingAccessory},kJ=_.cl("yt-list-item-view-model-wiz__image-container",function(){return BY()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"}),Ss=_.Fp(function(){return _.k(_.d,{cond:function(){return W},
then:function(){return _.k("div",{class:x,el:_.T7(inh(function(){return W&&R()},{focusin:t,
focusout:G})),role:function(){return L()||R()?"button":void 0},
"aria-label":h,"aria-pressed":u,tabindex:function(){return B||R()?0:void 0},
"on:keydown":Fv,"on:click":C_},_.k(IQP,{data:P,hideSelectionTextChevron:b,trailingAccessory:V,isToggled:D}))},
else:function(){return _.k("div",{class:x},_.k(IQP,{data:P,hideSelectionTextChevron:b,trailingAccessory:V,isToggled:D}))}})},"Nc");
Ss.idomCompat=!0;var C_=_.NI(function(f_){return void(B==null?void 0:B(f_))}),Fv=_.On_();
X=_.J(_.sm(!1,void 0,"cn4fzb"));g=X.next().value;X=X.next().value;var Uh=g,cY=X;X=_.NI(function(){return!0});
g=W?X:Fv;X=W?X:C_;return _.k("yt-list-item-view-model",{el:_.T7(_.zF(function(){return P().rendererContext}),inh(function(){return!W&&(R==null?void 0:R())},{focusin:t,
focusout:G})),class:T,role:function(){return(w==null?0:w())?"menuitem":"listitem"},
tabindex:function(){var f_=R();f_=W?void 0:B||f_?0:void 0;return f_},
"on:keydown":g,"on:click":X},_.k(_.d,{cond:l,then:function(){return _.k(_.P0,null,_.k(_.rn,{when:function(){return P().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.k(uQ4,{labelRenderable:function(){return _.k(Ss,null)},
isCompact:z,checked:function(){return P().isSelected},
hasLeadingLabel:function(){return!!BY()},
labelClass:w6,selectElementClass:kJ,disableHorizontalPadding:F})}),_.k(_.rn,{when:function(){return P().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.k(_.f0,{labelRenderable:function(){return _.k(Ss,null)},
isCompact:z,checked:function(){return P().isSelected},
hasLeadingLabel:function(){return!!BY()},
labelClass:w6,selectElementClass:kJ})}),_.k(_.rn,{when:function(){return P().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.k(_.f0,{labelRenderable:function(){return _.k(Ss,null)},
isCompact:z,checked:function(){return P().isSelected},
hasLeadingLabel:function(){return!!BY()},
labelClass:w6,selectElementClass:kJ,useCheckIcon:!0})}),_.k(_.Nd,null,function(){return _.k(Ss,null)}))},
else:function(){return _.k(Ss,null)}}))},"Oc");
_.Mk.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var IQP=_.Fp(function(X){var t=X.data;var G=X.hideSelectionTextChevron;var y=X.trailingAccessory;var w=X.isToggled;return _.k(_.gn,null,_.k(WHt,{data:t,isLeading:!0,hideSelectionTextChevron:function(){return!(G==null||!G())},
isToggled:w}),_.k(coS,{data:t}),_.k(_.d,{cond:function(){return!!y},
then:function(){return _.k("div",{class:"yt-list-item-view-model-wiz__trailing"},y==null?void 0:y())},
else:function(){return _.k(WHt,{data:t,isLeading:!1,hideSelectionTextChevron:function(){return!(G==null||!G())},
isToggled:w})}}))},"Pc"),WHt=_.Fp(function(X){var t=X.data;
var G=X.isLeading;var y=X.hideSelectionTextChevron;var w=X.isToggled;var z=_.cl("yt-list-item-view-model-wiz__button-container");X={};var B=_.cl("yt-list-item-view-model-wiz__image-container",(X["yt-list-item-view-model-wiz__leading"]=G,X["yt-list-item-view-model-wiz__trailing"]=function(){return!G()},X)),V=function(){return G()?t().leadingImage:t().trailingImage},b=_.cl("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
X={};var e=_.cl("yt-list-item-view-model-wiz__accessory",(X["yt-list-item-view-model-wiz__leading"]=G,X["yt-list-item-view-model-wiz__trailing"]=function(){return!G()},X)),g=function(){a:switch(t().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var F="expand_more";
break a;default:F="chevron_right"}return F};
return _.k(_.d,{cond:function(){var F=t(),T=G();return!!(T&&(F.leadingImage||F.leadingAccessory)||!T&&(F.trailingImage||F.trailingButton||F.trailingButtons||F.selectionText))},
then:function(){return _.k(_.gn,null,_.k(_.d,{cond:V,then:function(F){return _.k("div",{class:B,"aria-hidden":"true"},_.k(_.gr,{data:F,alt:"",preserveWidth:!0,preserveHeight:!0,className:b,isToggled:w}))}}),_.k(_.d,{cond:function(){return G()&&t().leadingAccessory},
then:function(){return _.k("div",{class:B},_.k(_.M7,{data:function(){return t().leadingAccessory}},{avatarViewModel:function(F){return _.k(_.al,{data:F.data,
avatarButtonCustomClassName:b})},
collectionThumbnailViewModel:function(F){return _.k(MAe,{data:F.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.k(_.d,{cond:function(){return!G()&&t().trailingButton},
then:function(){return _.k("div",{class:z},_.k(_.M7,{data:function(){return t().trailingButton}},{buttonViewModel:function(F){return _.k(_.QK,{data:F.data,
className:e})}}))}}),_.k(_.d,{cond:function(){var F;
return!G()&&((F=t().trailingButtons)==null?void 0:F.buttons)},
then:function(){return _.k("div",{class:z},_.k(_.M7,{data:function(){var F;return(F=t().trailingButtons)==null?void 0:F.buttons}},{buttonViewModel:function(F){return _.k(_.QK,{data:F.data,
className:e})},
accountLinkButtonViewModel:function(F){return _.k(Lgq,{data:F.data,className:e})},
switchButtonViewModel:function(F){return _.k(KHt,{data:F.data,className:e})},
subscribeButtonViewModel:function(F){return _.k(_.vV,{data:F.data,isOverlay:!1,animateWidth:!1,className:e})},
toggleButtonViewModel:function(F){return _.k(_.Lv,{data:F.data,className:e})}}))}}),_.k(_.d,{cond:function(){return!G()&&!!t().selectionText},
then:function(){return _.k(_.gn,null,_.k(_.eh,{text:function(){return t().selectionText},
className:_.cl("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.k(_.d,{cond:function(){return!y()},
then:function(){return _.k(_.mw,{icon:g,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Qc"),coS=_.Fp(function(X){var t=X.data;
return _.k(_.d,{cond:function(){return t().title||t().subtitle},
then:function(){return _.k("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.k("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.k(_.d,{cond:function(){return t().title},
then:function(G){return _.k(_.eh,{text:G,className:"yt-list-item-view-model-wiz__title"})}})),_.k(_.d,{cond:function(){return t().subtitle},
then:function(G){return _.k(_.eh,{text:G,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Rc");_.pnJ=_.Fp(function(X){var t=X.data;var G=X.onTap;var y=X.onSwitch;var w=X.overrideDisabled;X=X.disableHorizontalPadding;var z=_.J(_.Ed(function(){var F;return((F=yn6(g()))==null?void 0:F.switchedOnByDefault)||!1})),B=z.next().value,V=z.next().value;
z=_.J(_.sm(!1,void 0,"ZHBkbb"));var b=z.next().value,e=z.next().value,g=function(){var F;if(!(F=t().switchButton)){var T=t();F=w==null?void 0:w();T={switchOnCommand:T.switchOnCommand,switchOffCommand:T.switchOffCommand,switchedOnByDefault:T.switchedOnByDefault,isDisabled:T.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:T.a11yLabelSwitchedOn,a11yLabelSwitchedOff:T.a11yLabelSwitchedOff};F!==void 0&&(T.isDisabled=F);F={switchButtonViewModel:T}}return F};
return _.k("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.k(_.Mk,{data:function(){return{title:t().title,subtitle:t().attributedSubtitle,leadingImage:t().leadingImage,leadingAccessory:t().leadingAccessory,isDisabled:t().isDisabled}},
onTap:function(F){var T=yn6(g());!T||T.isDisabled||t().ignoreTapUntilCommandCompletes&&b()||(G==null||G(F),t6V(T,B(),F,t().ignoreTapUntilCommandCompletes,e),V(!B()),y==null||y(B()))},
trailingAccessory:function(){return _.k(_.M7,{data:g},{switchButtonViewModel:function(F){return _.k(KHt,{data:F.data,parentActive:B,handleOnTapEventInParent:!!G})}})},
disableHorizontalPadding:X}))},"Sc");var roo=_.Fp(function(X){var t=_.J(_.Ed(function(){var w,z;return!!((w=X.data())==null?0:(z=w.initialState)==null?0:z.isToggled)})),G=t.next().value,y=t.next().value;
t=_.NI(function(){y(!G())});
return _.k("toggleable-list-item-view-model",{el:_.T7(_.zF(function(){return X.data().rendererContext})),
class:_.cl("toggleableListItemViewModelHost",X.className),"on:click":t},_.k(_.d,{cond:function(){if(G()){var w=X.data().toggledListItem;w=_.Y(w,_.mA)}else w=X.data().defaultListItem,w=_.Y(w,_.mA);return w},
then:function(w){return _.k(_.Mk,{data:w,isToggled:G,ariaLabel:function(){var z=G()?X.data().toggledListItem:X.data().defaultListItem,B;z=(B=_.Y(z,_.mA))==null?void 0:B.rendererContext;var V;return(V=_.Y(z,_.N0))==null?void 0:V.label},
ariaPressed:function(){return G()}})}}))},"Tc");var NDt=_.Qf("DOWNLOAD",{},"Download"),PLo=_.Qf("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),EDR=_.Qf("RETRY",{},"Retry"),UmJ=_.Qf("PAUSE_DOWNLOADING",{},"Pause downloading"),mmY=_.Qf("RESUME_DOWNLOAD",{},"Resume download"),wul={text:NDt,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},vv={text:PLo,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},oil={text:EDR,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
z6h={text:UmJ,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},HO6={text:mmY,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var R5R=_.Fp(function(X){var t=function(){var V=X.data();V=_.yj(V.rendererContext);var b;return(b=_.Y(V,_.ck))==null?void 0:b.videoId},G=_.w5(function(V){var b=t(),e=ni_(X.data());
return b?_.$1(V,b):e?_.tp(V,e):"TRANSFER_STATE_UNKNOWN"}),y=_.Pk(_.mPJ,t),w=_.w5(function(V){return _.cPV(V,t(),ni_(X.data()))}),z=function(){return BCf(G(),y(),_.yj(X.data().rendererContext),!!ni_(X.data()))},B=function(){return w()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.k("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:B},_.k(_.d,{cond:function(){return!B()},
then:function(){return _.k(_.d,{cond:z,then:function(V){return _.k(_.pY,{each:V},function(b){return _.k(_.Mk,{data:b,isCompact:X.isCompact,isMenuItem:X.isMenuItem,inPopup:X.inPopup,disableHorizontalPadding:X.disableHorizontalPadding})})}})}}))},"Uc");
R5R.idomCompat=!0;_.iCo=_.Fp(function(X){var t=X.data;var G=X.isCompact;var y=X.hideSelectionTextChevron;var w=X.inPopup;var z=X.isOverlay;var B=X.disableHorizontalPadding;var V=function(){return V66(t())&&(w==null?void 0:w())};
X={};return _.k("yt-list-view-model",{class:_.cl("yt-list-view-model-wiz",(X["yt-list-view-model-wiz--kaios-spat-nav"]=ky&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",X["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return d2v(t())},X)),
role:function(){return V()?"menu":"list"},
style:_.Ud({"max-height":function(){var b,e=(b=t())==null?void 0:b.visibleElementCount;if(e)return d2v(t())?(e+.5)*48+"px":(e+.5)*40+"px"}})},_.k(_.M7,{data:function(){return t().listItems}},{listItemViewModel:function(b){return _.k(_.Mk,{data:b.data,
isMenuItem:V,isCompact:G,hideSelectionTextChevron:y,inPopup:w,isOverlay:z,disableHorizontalPadding:B})},
toggleableListItemViewModel:function(b){return _.k(roo,{data:b.data})},
downloadListItemViewModel:function(b){return _.k(R5R,{data:b.data,isMenuItem:V,isCompact:G,inPopup:w,disableHorizontalPadding:B})},
switchListItemViewModel:function(b){return _.k(_.pnJ,{data:b.data,disableHorizontalPadding:B})}}))},"Vc");
_.iCo.idomCompat=!0;var LHo=_.Fp(function(X){var t=X.data;var G=X.isOverlay;X={};return _.k("yt-course-perks-view-model",{class:_.cl("ytwCoursePerksViewModelHost",(X.ytwCoursePerksViewModelHostOverlay=G,X))},_.k("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.k(_.eh,{text:function(){return t().title}})),_.k("div",null,_.k(_.d,{cond:function(){return t().perks},
then:function(y){return _.k(_.iCo,{data:function(){return{listItems:y()}},
isCompact:!0,isOverlay:G})}})))},"Wc");_.DW(LHo,"yt-course-perks-view-model",{props:{data:_.sd,isOverlay:_.sd}});_.DW(_.Fp(function(X){var t=X.data;return _.k("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.k("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.k(_.eh,{text:function(){return t().title}})),_.k("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.k(_.eh,{text:function(){return t().progressSummary}})),_.k("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.k("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Ud({width:function(){return t().progressPercentage*100+"%"}})})))},"Xc"),"yt-course-progress-view-model",{props:{data:_.bR}});var vDP=_.Fp(function(X){var t={};return _.k("yt-progress-view-model",{class:_.cl("ytwProgressViewModelHost",(t.ytwProgressViewModelHostOverlay=_.ex(X.isOverlay,!1),t))},_.k(_.d,{cond:function(){return X.data().progressSummary},
then:function(G){return _.k("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.k(_.eh,{text:G}))}}),_.k("div",{class:"ytwProgressViewModelHostProgressContainer"},_.k(_.d,{cond:function(){return X.data().leadingLabel},
then:function(G){return _.k("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.k(_.eh,{text:G}))}}),_.k("div",{class:"ytwProgressViewModelHostProgressBar"},_.k("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(X.data().progressPercentage||0)*100+"%"}}))))},"Yc");var Xz=_.Fp(function(X){var t=X.starNumber;var G=X.data;var y=function(){var w;return((w=G())==null?void 0:w.rating)||0};
return _.k(_.d,{cond:function(){return t()},
then:function(w){return _.k(_.P0,null,_.k(_.rn,{when:function(){return y()>=w()-.25}},function(){return _.k("div",{class:"ytStarRatingViewModelHostStar"},_.k(_.mw,{icon:"STAR_FILLED"}))}),_.k(_.rn,{when:function(){return y()>=w()-.75}},function(){return _.k("div",{class:"ytStarRatingViewModelHostStar"},_.k(_.mw,{icon:"STAR_HALF"}))}),_.k(_.Nd,null,function(){return _.k("div",{class:"ytStarRatingViewModelHostStar"},_.k(_.mw,{icon:"STAR_BORDER"}))}))}})},"Zc"),aQt=_.Fp(function(X){X=X.data;
return _.k("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.k(Xz,{starNumber:1,data:X}),_.k(Xz,{starNumber:2,data:X}),_.k(Xz,{starNumber:3,data:X}),_.k(Xz,{starNumber:4,data:X}),_.k(Xz,{starNumber:5,data:X}))},"$c");_.DW(_.Fp(function(X){var t=_.jx(X,{}).data;return _.k("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.k("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.k(_.eh,{text:function(){var G;return(G=t())==null?void 0:G.title}})),_.k("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.k(_.d,{cond:function(){return t().starProgressViewModels},
then:function(G){return _.k("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.k(_.M7,{data:G},{progressViewModel:vDP}))}}),_.k("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.k("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.k(_.eh,{text:function(){var G;
return(G=t())==null?void 0:G.averageRatingLabel}})),_.k(_.d,{cond:function(){return t().zeroStateText},
then:function(G){return _.k("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.k(_.eh,{text:G}))}}),_.k(_.d,{cond:function(){return t().starRatingViewModel},
then:function(G){return _.k("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.k(_.M7,{data:G},{starRatingViewModel:aQt}))}}),_.k("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.k(_.eh,{text:function(){var G;
return(G=t())==null?void 0:G.totalRatingsCountLabel}})))))},"ad"),"yt-course-ratings-view-model",{props:{data:_.sd}});var lQ4;lQ4={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"}};_.xmh=_.Fp(function(X){var t=_.nl("yt-learning-journey-loader-view-model"),G=_.Is();_.R2(function(){requestAnimationFrame(function(){var w;(w=G.lottieEl)==null||w.addEventListener("DOMLoaded",function(){var z;(z=X.onLottieLoaded)==null||z.call(X)})});
var y=X.data().browseEndpoint;y&&_.JH(y)});
return _.k("yt-learning-journey-loader-view-model",{class:_.cl("learningJourneyLoaderViewModelHost",X.className),"data-target-id":function(){var y;return((y=X.data)==null?void 0:y.call(X).targetId)||""},
el:t},_.k(_.D8,{className:_.cl("learningJourneyLoaderViewModelLoader",X.className),animationName:function(){return lQ4.animationConfig.name},
data:lQ4,animationRef:G}))},"bd");_.DW(_.xmh,"yt-learning-journey-loader-view-model",{props:{data:_.bR,className:_.sd,onLottieLoaded:_.sd}});var jgv=new Set,e6w=null;_.fQ4=_.Fp(function(X){var t=null,G=null,y=null,w=function(){return X.data()},z=function(){var c=w();
var P=_.gw().resolve(_.jH(_.kI));c=P!=null&&P()?c.darkThemeColorPalette:c.lightThemeColorPalette;return{primaryTextColor:l7(c,0),secondaryTextColor:l7(c,1),optionColor:l7(c,2),backgroundColor:l7(c,3),videoBackgroundColor:l7(c,4)}},B=function(){return!!z().optionColor},V=_.J(_.sm(-1,void 0,"KCCUDb")),b=V.next().value,e=V.next().value,g=function(c){return b()===c},F=function(c){return w().correctAnswerIndex===c},T=function(){return b()!==-1},D=function(){return b()===w().correctAnswerIndex},h=_.NI(function(){e(-1);
return!1}),u=function(){var c=T(),P=D();
return c?P?264685:264684:264683},W=function(c){return D()&&F(c)};
return _.k("learning-journey-quiz-view-model",{class:_.cl("learningJourneyQuizViewModelHost",X.className),style:_.Ud({background:function(){return z().backgroundColor}})},_.k(_.d,{cond:function(){return!!w().video},
then:function(){return _.k("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Ud({background:function(){return z().videoBackgroundColor}})},_.k(_.M7,{data:function(){return w().video}},{lockupViewModel:function(c){return _.k(_.qL,{data:c.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.k("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.k("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.k("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.k(_.d,{cond:function(){return!!w().aiGeneratedQuizLabel},
then:function(){return _.k("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.k(_.eh,{text:function(){return w().aiGeneratedQuizLabel}}))}}),_.k("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Ud({"align-items":function(){return w().overflowMenu?"start":"center"}})},_.k("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Ud({"min-height":function(){return w().overflowMenu?"48px":"26px"}})},_.k("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.T7(function(c){_.aD(u(),c,t,function(P){t=P})}),
style:_.Ud({color:function(){return z().primaryTextColor}}),
"client-ve-type":u},_.k(_.eh,{text:function(){var c=w(),P=T(),l=D();return P?l?c.successTitle:c.failureTitle:c.questionHeaderText}}))),_.k("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.k(_.d,{cond:T,
then:function(){return _.k("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.T7(function(c){_.aD(264687,c,G,function(P){G=P})}),
"on:click":h,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.k("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Ud({fill:function(){return z().primaryTextColor}})},_.k("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"})))}}),
_.k(_.M7,{data:function(){return w().overflowMenu}},{buttonViewModel:function(c){return _.k(_.QK,{data:c.data})}}))),_.k("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.T7(function(c){_.aD(264688,c,y,function(P){y=P})}),
style:_.Ud({color:function(){return z().secondaryTextColor}}),
"client-ve-type":264688},_.k(_.eh,{text:function(){var c=w();return T()?c.explanationText:c.questionSubheaderText}}))),_.k("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.k(_.pY,{each:function(){return w().optionsData||[]}},function(c,P){var l={};
return _.k("div",{class:_.cl("learningJourneyQuizViewModelHostQuizOptions",(l.learningJourneyQuizViewModelHostQuizHover=function(){return!T()},l.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return W(P())},l.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!D()&&g(P())},l.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return T()&&!g(P())},l.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=B,l)),
"on:click":_.NI(function(){if(T())return!1;e(P());return!1}),
style:_.Ud({background:function(){var R=P();return T()&&g(R)?"":B()?z().optionColor:"transparent"}}),
role:"button","aria-disabled":T,"tab-index":"0","client-ve-type":264686},_.k(_.d,{cond:T,then:function(){var R={};return _.k("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var L=P();return F(L)?"0 0 24 24":"0 -960 960 960"},
class:_.cl("learningJourneyQuizViewModelHostQuizOptionIcon",(R.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return W(P())},R)),
style:_.Ud({fill:function(){return z().primaryTextColor}})},_.k("path",{d:function(){var L=P();
return F(L)?"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"}}))}}),_.k(_.eh,{text:c.optionText}))})))))},"cd");
_.fQ4.idomCompat=!0;_.DW(_.fQ4,"learning-journey-quiz-view-model",{props:{data:_.bR,className:_.bR}});var MyJ=_.Fp(function(X){var t=X.data;return _.k("yt-suspense-view-model",{class:_.cl("ytSuspenseViewModelHost")},_.k(_.M7,{data:function(){var G;return(G=t().config)==null?void 0:G.contents}},{lockupViewModel:_.qL}))},"dd");var Xft=_.Fp(function(X){var t=_.jx(X,{palette:void 0,isLastItem:!1}),G=t.palette,y=t.isLastItem,w=function(){return X.data().isHighlighted},z=function(){var b;
return FJh((b=G())==null?void 0:b.iconDisabledColor)},B=function(){var b;
return FJh((b=G())==null?void 0:b.primaryTitleColor)},V=function(){var b;
return FJh((b=G())==null?void 0:b.secondaryTitleColor)};
t={};return _.k("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.T7(_.zF(function(){return X.data().rendererContext}))},_.k(_.M7,{data:function(){return X.data().thumbnail}},{thumbnailViewModel:_.gg}),_.k("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.k("div",{class:_.cl("ytMacroMarkerListItemViewModelTimeDescription",(t.ytMacroMarkerListItemViewModelHighlighted=w,t)),
style:_.Ud({"background-color":function(){return w()?B():z()},
color:function(){return w()?"":V()}})},_.k(_.eh,{text:function(){return X.data().timestamp}})),_.k("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Ud({"background-color":function(){return y()?"transparent":z()}})}),_.k("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(w()?B():V())}},_.k(_.eh,{text:function(){return X.data().title}}))))},"ed");_.$2=_.Fp(function(X){function t(HY){P("transform:translateX("+(_.Md("HTML_DIR")==="rtl"?"":"-")+HY+"px)")}
function G(HY){return Math.min(Math.max(HY,0),c()-w6())}
function y(){var HY=L()+C_();return w()?(Math.round(w6()/HY)||1)*HY:0}
var w=function(){return X.data().items||[]},z=function(){return X.data().previousButton},B=function(){return X.data().nextButton},V=function(){var HY,yR;
return(yR=(HY=X.disableArrows)==null?void 0:HY.call(X))!=null?yR:!1},b=function(){var HY;
return!((HY=X.forceNarrowLayout)==null||!HY.call(X))},e=_.qt(function(){var HY;
return!((HY=X.centerAlignItems)==null||!HY.call(X))&&c()<=w6()},void 0,"DL81uf"),g=_.nl("horizontal-shelf-view-model"),F=_.nl("div"),T=_.J(_.sm(0,void 0,"xZFppf")),D=T.next().value,h=T.next().value;
T=_.J(_.sm(0,void 0,"pH9gvd"));var u=T.next().value,W=T.next().value,c=u;u=_.J(_.sm("",void 0,"oYcWy"));T=u.next().value;var P=u.next().value;u=_.J(_.sm(0,void 0,"lI6NJb"));var l=u.next().value,R=u.next().value,L=l;u=_.J(_.sm(0,void 0,"yPqhW"));l=u.next().value;var x=u.next().value,w6=l;u=_.J(_.sm(!1,void 0,"u4CvOe"));var BY=u.next().value,kJ=u.next().value;u=_.J(_.sm(0,void 0,"oQOBbe"));l=u.next().value;var Ss=u.next().value,C_=l;u=_.J(_.sm(0,void 0,"fCqgxd"));var Fv=u.next().value,Uh=u.next().value;
u=_.J(_.sm("50%",void 0,"kjP5ke"));var cY=u.next().value,f_=u.next().value,sq=function(){var HY,yR=(HY=X.data())==null?void 0:HY.responsiveContainerConfiguration,hq,gi;return yR?utJ(yR==null?void 0:yR.responsiveSize):(gi=(hq=X.sizing)==null?void 0:hq.call(X))!=null?gi:"STANDARD"};
u=_.qt(function(){return!V()&&D()>0},void 0,"oVCO3d");
l=_.qt(function(){return!V()&&D()<c()-w6()},void 0,"MQ6Gb");
var oq=function(){h(G(D()-y()));t(D())},ll=function(){h(G(D()+y()));
t(D())},go=function(){g.value!==null&&Aq()},kh;
_.LY(function(){Aq();window.ResizeObserver?(kh=new ResizeObserver(_.PI(go,0)),kh.observe(g.value)):window.addEventListener("resize",go)});
_.Um(function(){if(window.ResizeObserver){var HY;(HY=kh)==null||HY.disconnect()}else window.removeEventListener("resize",go)});
var Aq=function(){var HY=g.value.clientWidth,yR=X.includeMargin!==void 0?X.includeMargin():!1,hq;var gi=X.hasPeek!==void 0?X.hasPeek():!((hq=X.data())==null||!hq.hasPeek);HY=_.Vj({containerWidth:HY,hasPeek:gi,sizing:sq(),marginSettings:yR?b()?4:1:0});Ss(HY.gutter);Uh(HY.margin);R(HY.itemWidth);kJ(HY.maxContainerWidth<528||b());x(HY.maxContainerWidth);w()&&W((HY.itemWidth+HY.gutter)*w().length-HY.gutter);if(w()){var TB;if(((TB=X.thumbnailAspectRatio)==null?void 0:TB.call(X))!==void 0){var Uq;f_(L()/
OQV((Uq=X.thumbnailAspectRatio)==null?void 0:Uq.call(X))/2+"px")}else f_("50%")}},OR={},Mz={};
return _.k("horizontal-shelf-view-model",{class:_.cl("ytwHorizontalShelfViewModelHost",X.className),el:g},_.k(_.d,{cond:function(){var HY;return X.data().header&&!((HY=X.horizontalShelfExperiments)==null?0:HY.call(X).hideHeader)},
then:function(){return _.k("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Ud({width:function(){return w6()+"px"},
padding:function(){return"0 "+Fv()+"px"}})},_.k(_.M7,{data:function(){return X.data().header}},{sectionHeaderViewModel:function(HY){return _.k(_.C0,{data:HY.data,
disableHorizontalPadding:!0,forceSmallLayout:BY,useResponsiveLayout:!0})}}))}}),_.k("div",{class:_.cl("ytwHorizontalShelfViewModelOuterContainer",(OR.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return e()},OR)),
style:_.Ud({"margin-top":function(){var HY,yR=X.data().header&&!((HY=X.horizontalShelfExperiments)==null?0:HY.call(X).hideHeader),hq;return(((hq=X.ensureMarginTop)==null?0:hq.call(X))&&!yR?12:0)+"px"}})},_.k("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Ud({width:function(){return w6()+"px"},
padding:function(){return"0 "+Fv()+"px"},
overflow:function(){return V()?"auto":"hidden"}})},_.k("div",{class:_.cl("ytwHorizontalShelfViewModelItems",(Mz.ytwHorizontalShelfViewModelCenterAlignItems=function(){return e()},Mz)),
el:F,style:T},_.k(_.M7,{data:w},{macroMarkerListItemViewModel:function(HY,yR){return _.k("div",{style:_.Ud({width:function(){return L()+"px"},
"margin-right":function(){return(yR()===w().length-1?0:C_())+"px"}})},_.k(Xft,{data:HY.data,
palette:_.ex(X.palette),isLastItem:function(){return yR()===w().length-1}}))},
lockupViewModel:function(HY,yR){var hq=HY.data;return _.k("div",{style:_.Ud({width:function(){return L()+"px"},
"margin-right":function(){return(yR()===w().length-1?0:C_())+"px"}})},_.k(_.qL,{data:hq,
containerType:4,sizing:sq,protectBackground:X.protectBackground,thumbnailFixedWidth:function(){return TC6(hq())+"px"},
thumbnailTargetWidth:function(){return TC6(hq())}}))},
suspenseViewModel:function(HY,yR){return _.k("div",{style:_.Ud({width:function(){return L()+"px"},
"margin-right":function(){return(yR()===w().length-1?0:C_())+"px"}})},_.k(MyJ,{data:HY.data}))}}))),_.k(_.d,{cond:u,
then:function(){return _.k("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Ud({top:function(){return cY()}})},_.k(_.M7,{data:z},{buttonViewModel:function(HY){return _.k(_.QK,{data:HY.data,
onClick:oq})}}))}}),_.k(_.d,{cond:l,
then:function(){return _.k("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Ud({top:function(){return cY()}})},_.k(_.M7,{data:B},{buttonViewModel:function(HY){return _.k(_.QK,{data:HY.data,
onClick:ll})}}))}})))},"fd");
_.$2.idomCompat=!0;var $9R=_.Fp(function(X){var t=function(){return X.data().targetId||""},G=function(){var u;
return((u=X.data())==null?void 0:u.expansionEntityKey)||""},y=_.Pk(_.X26,G),w=!0,z=function(){var u;
return((u=y())==null?void 0:u.value)===t()},B=function(u){_.dX(_.EW("stringEntity",G(),{key:G(),
value:u?t():""}))};
_.R2(function(){w=!1;X.data().isExpanded&&B(!0)});
var V=function(){if(z()){var u=!0;X.onCollapse!==void 0&&(u=X.onCollapse());u&&B(!1)}else B(!0)},b=_.NI(V),e=function(){var u;
return(((u=X.accordionStyle)==null?void 0:u.call(X))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},g=_.nl("div"),F=function(){var u,W;
return(W=(u=_.Y(X.data().rendererContext,_.N0))==null?void 0:u.label)!=null?W:""},T=function(){var u,W;
return{disabled:(u=X.hideIfNotExpanded)==null?void 0:u.call(X),ariaHidden:(W=X.hideIfNotExpanded)==null?void 0:W.call(X)}},D={},h={};
return _.k("yt-accordion-item-view-model",{class:_.cl("ytAccordionItemViewModelHost",X.className,(D.ytAccordionItemViewModelExpanded=function(){return z()},D.ytAccordionItemViewModelHidden=function(){var u;
return(u=X.hideIfNotExpanded)==null?void 0:u.call(X)},D.ytAccordionItemViewModelMini=e,D)),
"data-target-id":t},_.k("div",{class:"ytAccordionItemViewModelContainer"},_.k("div",{class:"ytAccordionItemViewModelLeftSection","on:click":b,title:F,"aria-hidden":function(){var u;return(u=X.hideIfNotExpanded)==null?void 0:u.call(X)}},_.k(_.eh,{text:function(){return X.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:F})),_.k("div",{class:"ytAccordionItemViewModelRightSection"},_.k(_.M7,{data:function(){return z()?X.data().expandButton:X.data().collapseButton}},{buttonViewModel:function(u){return _.k(_.QK,{data:u.data,
className:"ytAccordionItemViewModelToggleButton",onClick:V,buttonOverrides:T})}}))),_.k("div",{class:"ytAccordionItemViewModelContainer"},_.k("div",{class:_.cl("ytAccordionItemViewModelContent",(h.ytAccordionItemViewModelExpandedSubtitle=function(){return z()},h)),
el:g,style:_.Ud({"max-height":function(){return w?"auto":z()?g.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!z()}},_.k(_.d,{cond:function(){return!e()},
then:function(){return _.k(_.eh,{text:function(){return X.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.k(_.M7,{data:function(){return X.data().content}},{horizontalShelfViewModel:function(u){return _.k(_.$2,{data:u.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"gd");_.tvq=_.Fp(function(X){var t=_.J((0,_.D5Y)(X.data)).next().value,G=function(){return X.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},y=function(){return G()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},w=_.J(_.sm(!0,void 0,"FVec2e")),z=w.next().value,B=w.next().value,V=function(){return y()&&z()},b=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){B(!z())}}},e=_.NI(function(){t().onTitleTap&&_.JH(t().onTitleTap||{})});
w={};return _.k("yt-accordion-view-model",{class:_.cl("ytAccordionViewModelHost",(w.ytAccordionViewModelMinimized=function(){return V()},w)),
"data-target-id":function(){return X.data().targetId||""}},_.k(_.d,{cond:function(){return y()||!!t().title},
then:function(){return _.k("div",{class:"ytAccordionViewModelHeader"},_.k("div",{class:"ytAccordionViewModelTitleSection"},_.k("div",{class:"ytAccordionViewModelTitleWrapper"},_.k(_.d,{cond:function(){return!!X.data().headerIcon},
then:function(){return _.k(_.mw,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var g;return(g=X.data().headerIcon)==null?void 0:g.iconType}})}}),_.k("div",{class:"ytAccordionViewModelTitle",
"on:click":e},_.k(_.eh,{className:"ytAccordionViewModelTitleText",text:function(){return t().title}})))),_.k("div",{class:"ytAccordionViewModelButtonSection"},_.k(_.d,{cond:y,
then:function(){return _.k(_.jh,{data:b,iconName:function(){return V()?"chevron_down":"chevron_collapse"}})}})))}}),_.k("div",{class:"ytAccordionViewModelContent"},_.k(_.M7,{data:function(){return t().contents}},{accordionItemViewModel:function(g){return _.k($9R,{data:g.data,
className:"ytAccordionViewModelRow",accordionStyle:G,hideIfNotExpanded:V,onCollapse:function(){return y()?(B(!0),!1):!0}})}})),_.k("div",null,_.k(_.d,{cond:function(){return!y()&&(!!t().disclaimerFooter||!!t().footer)},
then:function(){return _.k("div",{class:"ytAccordionViewModelFooter"},_.k(_.eh,{text:function(){return t().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.k(_.M7,{data:function(){return X.data().footer}},{flexibleActionsViewModel:function(g){return _.k(la,{data:g.data,
layout:0})}}))}})))},"hd");_.DW(_.tvq,"yt-accordion-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=null,G=null,y,w=(y=_.gw().resolve(_.jH(_.kI)))==null?void 0:y(),z=_.J(_.sm(!1,void 0,"EVXQGb"));y=z.next().value;var B=z.next().value;z=_.J(_.sm(!0,void 0,"W9FIJf"));var V=z.next().value,b=z.next().value,e=_.nl("textarea",function(W){_.aD(264503,W,t,function(c){t=c})}),g=function(W){B(!0);
W={learningJourneyFormData:{query:W}};_.JH(X.data().searchEndpoint||{},{form:{formData:W}});return!1},F=_.NI(function(W){W.target.closest("button-view-model")&&B(!0)});
z=_.NI(function(){b(e.value.value.length===0)});
var T=_.NI(function(W){if(W.key==="Enter"&&!W.shiftKey&&!V()){var c=W.target;W.preventDefault();g(c.value)}}),D={},h={},u={};
return _.k("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.k("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.k(_.gr,{data:function(){return X.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.k("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.k("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.k("div",{class:_.cl("ytLearningJourneyZeroStateSearchBar",(D.ytLearningJourneyZeroStateSearchBarDark=w,D))},_.k("textarea",{class:_.cl("ytLearningJourneyZeroStateTextInput",(h.ytLearningJourneyZeroStateTextInputDark=w,h)),el:e,"on:keyup":z,"on:keydown":T,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.k("div",{class:_.cl("ytLearningJourneyZeroStateSearchButtonContainer",(u.ytLearningJourneyZeroStateSearchButtonContainerDark=w,u))},_.k(_.QK,{data:function(){return _.Y(X.data().searchButton,_.vk)},
className:"search-button",onClick:function(){return g(e.value.value)},
buttonOverrides:function(){return{disabled:V(),style:w?"mono-inverse":"mono",size:"XL"}}}))),_.k(_.d,{cond:function(){return!!X.data().errorBanner},
then:function(){return _.k("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.T7(function(W){_.aD(264617,W,G,function(c){G=c})})},_.k(_.M7,{data:function(){return X.data().errorBanner}},{alertBannerViewModel:function(W){return _.k(_.h5R,{data:W.data,
"client-ve-type":264617})}}))}})),_.k(_.d,{cond:y,
then:function(){return _.k("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.k(_.M7,{data:function(){return X.data().loader}},{learningJourneyLoaderViewModel:function(W){return _.k(_.xmh,{data:W.data})}}))},
else:function(){return _.k("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.k(_.d,{cond:function(){return!!X.data().learningJourneyShelf},
then:function(){return _.k("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.k("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return X.data().learningJourneySectionTitle}),_.k(_.M7,{data:function(){return X.data().learningJourneyShelf}},{horizontalShelfViewModel:function(W){return _.k(_.$2,{data:W.data,
centerAlignItems:!0})}}))}}),_.k("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.k("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return X.data().suggestedJourneySectionTitle}),_.k("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":F},_.k(_.M7,{data:function(){return X.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(W){return _.k(la,{data:W.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"id"),"yt-learning-journey-zero-state",{props:{data:_.bR}});var GN4=_.Fp(function(X){var t=X.data;return _.k("ytvl-live-leaderboard-item-action-content-view-model",{class:_.cl("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.k(_.eh,{text:function(){var G;return(G=t())==null?void 0:G.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.k(_.M7,{data:function(){return t().actionButton}},{buttonViewModel:function(G){return _.k(_.QK,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:G.data})}}))},"jd");var yUB=_.Fp(function(X){var t=X.data;return _.k("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.cl("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.k(_.eh,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var G;return(G=t())==null?void 0:G.displayName},
ellipsisTruncate:!0}),_.k(_.M7,{data:function(){return t().badge}},{buttonViewModel:function(G){return _.k(_.QK,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:G.data})}}))},"kd");_.DW(_.Fp(function(X){var t=X.data;return _.k("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.k("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.k(_.eh,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var G;return(G=t())==null?void 0:G.rank}})),_.k("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.k(_.M7,{data:function(){return t().avatar}},{avatarViewModel:_.al})),_.k("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.k(_.M7,{data:function(){return t().content}},{liveLeaderboardItemChannelContentViewModel:yUB,
liveLeaderboardItemActionContentViewModel:GN4})),_.k(_.eh,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var G;return(G=t())==null?void 0:G.points}}))},"ld"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;return _.k("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.k(_.eh,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var G,y;return(G=t())==null?void 0:(y=G.ranking)==null?void 0:y.rank}}),_.k("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.k(_.M7,{data:function(){return t().avatar}},{avatarViewModel:_.al})),_.k(_.eh,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var G,y;return(G=t())==null?void 0:(y=G.channelContent)==null?void 0:y.channelName}}),_.k(_.eh,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var G;return(G=t())==null?void 0:G.points}}))},"md"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.bR}});var wfh=_.Fp(function(X){X=_.jx(X,{wrapper:!1}).wrapper;return _.k(_.d,{cond:X,then:function(){return _.k("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.k("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.k("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"nd");
wfh.idomCompat=!0;var z_4=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],H7R=_.Fp(function(X){var t=X.data;var G=_.T7(),y=_.qt(function(){return t().command},void 0,"o6t5Yb");
_.Em(function(){y()&&_.z7(y(),{form:{element:G.value}})},"qIHWLc");
return _.k("div",{el:G,class:"YtQrCodeRendererHostContainer"},_.k(_.d,{cond:function(){return t().qrCodeImage},
then:function(w){return _.k(_.gr,{data:w,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.k(_.d,{cond:function(){return t().spinner},
then:function(){return _.k(wfh,null)}})}}),_.k(_.d,{cond:function(){return t().label},
then:function(w){return _.k(_.eh,{text:w,className:"YtQrCodeRendererHostLabel"})}}),_.k(_.d,{cond:function(){return t().labels},
then:function(w){return _.k("div",{class:"YtQrCodeRendererHostLabels"},_.k(_.pY,{each:w},function(z){return _.k(_.eh,{text:z})}))}}))},"pd");_.DW(_.Fp(function(X){var t=X.data;var G=_.qt(function(){return t().qrEntityKey},void 0,"joYCxd"),y=_.qt(function(){return t().deleteEntityOnDismiss},void 0,"x3yAde"),w=_.qt(function(){return t().command},void 0,"dJe1Re"),z=_.Pk(Fsv,G);
X=_.qt(function(){return t().qrCodeImage},void 0,"qM5dZe");
var B=_.qt(function(){return t().style&&z_4.includes(t().style)},void 0,"CaNEkf"),V=_.gS({visibilityCallback:function(b){b&&w()&&_.z7(w())},
showOption:{calledOnce:!0,state:"visible"}});_.LY(function(){_.Um(function(){y()&&G()&&_.kF().dispatch(_.EW("qrCodeEntity",G()))})});
return _.k("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.T7(V)},_.k(_.d,{cond:B,then:function(){return _.k(_.d,{cond:z,then:function(b){return _.k(H7R,{data:b})}})}}),_.k(_.d,{cond:X,
then:function(b){return _.k(_.gr,{data:b,alt:""})}}))},"od"),"yt-qr-code-renderer",{props:{data:_.bR}});_.oYe=_.Fp(function(X){var t=X.data;var G=X.topbarOffset;var y,w=((y=_.gw().resolve(_.jH(_.kI)))==null?void 0:y())||!1;return _.k("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var z=t();var B,V,b=w?(B=z.config)==null?void 0:B.darkThemeBackgroundColor:(V=z.config)==null?void 0:V.lightThemeBackgroundColor;z=b?_.Gq(b):void 0;z="background-color: "+z+";";G!==void 0&&(z+="top: -"+G()+"px;");return z},
"aria-hidden":!0},_.k(_.d,{cond:function(){var z,B,V;return!!((z=t().backgroundImageConfig)==null?0:(B=z.image)==null?0:(V=B.sources)==null?0:V.length)},
then:function(){return _.k(_.gr,{data:function(){var z;return(z=t().backgroundImageConfig)==null?void 0:z.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.k("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+An0(w,t().gradientColorConfig)+";"}}))},"qd");
_.oYe.idomCompat=!0;var tF=_.Fp(function(X){var t=X.className;var G=X.data;var y=X.isOverlay;var w=X.maxLinesOverride;var z=X.useMediumText;var B=function(){return G().alwaysShowTruncationText},V=function(){return G().truncationText},b=function(){return z!==void 0&&z()?"medium":"small"},e=function(){return y!==void 0&&y()?"overlay":"default"},g=function(){var h,u;
return(u=(h=_.Y(G().rendererContext,_.N0))==null?void 0:h.label)!=null?u:""};
X=_.J(_.sm(!1,void 0,"xVwzHf"));var F=X.next().value,T=X.next().value;X=_.NI(function(){G().expandOnTap&&T(!F());return!1});
var D={};return _.k("yt-description-preview-view-model",{el:_.T7(_.zF(function(){return G().rendererContext})),
class:_.cl("yt-description-preview-view-model-wiz",t,(D["yt-description-preview-view-model-wiz--clickable"]=function(){var h;return!((h=_.Y(G().rendererContext,Unv))==null||!h.onTap)},D["yt-description-preview-view-model-wiz--is-overlay"]=y,D)),
"on:click":X},_.k(_.d,{cond:function(){return G().description},
then:function(h){return _.k(_.d,{cond:F,then:function(){var u={};return _.k("div",{class:_.cl("yt-description-preview-view-model-wiz__description",(u["yt-description-preview-view-model-wiz__description--medium-text"]=z,u))},_.k(_.eh,{text:h}))},
else:function(){return _.k(sPh,{text:h,alwaysShowTruncationText:B,truncationText:V,maxLines:function(){var u;return(u=w==null?void 0:w())!=null?u:G().maxLines},
textStyle:e,accessibilityLabel:g,textSize:b})}})}}))},"rd");
tF.idomCompat=!0;var JUe=_.Fp(function(X){var t=X.data;var G=X.isOverlay;return _.k("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.k("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.k(_.M7,{data:function(){return t().header}},{sectionHeaderViewModel:function(y){return _.k(_.C0,{data:y.data,
isOverlay:G})}})),_.k("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.k(_.M7,{data:function(){return t().channelInfoButtons}},{flexibleActionsViewModel:la})),_.k("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.k(_.M7,{data:function(){return t().description}},{descriptionPreviewViewModel:function(y){return _.k(tF,{data:y.data,
isOverlay:G})}})))},"sd");
JUe.idomCompat=!0;var BLS=_.Fp(function(X){var t=X.data;var G={};return _.k("factoid-view-model",{class:_.cl("ytwFactoidViewModelHost",(G.ytwFactoidViewModelHostOverlay=X.isOverlay,G))},_.k(_.eh,{text:function(){return t().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.k(_.eh,{text:function(){return t().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"td");
BLS.idomCompat=!0;var nYq=_.Fp(function(X){var t=X.data;var G=X.isOverlay;return _.k("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.k(_.M7,{data:function(){return t().factoids}},{factoidViewModel:function(y){return _.k(BLS,{data:y.data,
isOverlay:G})}}))},"ud");
nYq.idomCompat=!0;_.Vv4=_.Fp(function(X){var t=X.data;var G=X.isOverlay;return _.k("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.k(_.M7,{data:function(){return t().items}},{channelInfoViewModel:function(y){return _.k("div",{class:"ytwCourseMetadataViewModelHostItem"},_.k(JUe,{data:y.data,
isOverlay:G}))},
coursePerksViewModel:function(y){return _.k("div",{class:"ytwCourseMetadataViewModelHostItem"},_.k(LHo,{data:y.data,isOverlay:G}))},
descriptionPreviewViewModel:function(y){return _.k("div",{class:"ytwCourseMetadataViewModelHostItem"},_.k(tF,{data:y.data,isOverlay:G}))},
factoidsRowViewModel:function(y){return _.k("div",{class:"ytwCourseMetadataViewModelHostItem"},_.k(nYq,{data:y.data,isOverlay:G}))},
progressViewModel:function(y){return _.k("div",{class:"ytwCourseMetadataViewModelHostItem"},_.k(vDP,{data:y.data,isOverlay:G}))}}))},"vd");var b7z=_.Fp(function(X){return _.k("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.k(_.M7,{data:function(){return X.data().content}},{courseMetadataViewModel:function(t){return _.k(_.Vv4,{data:t.data,
isOverlay:X.isOverlay})},
progressViewModel:function(t){return _.k(vDP,{data:t.data})}}))},"wd");var kNR=_.Fp(function(X){var t=X.data;X=X.className;var G=function(){var w;return _.w2((w=t())==null?void 0:w.rendererContext)},y={};
y=(y["dynamic-text-view-model-wiz"]=!0,y["dynamic-text-view-model-wiz--tappable"]=function(){return G()},y);
return _.k("yt-dynamic-text-view-model",{el:_.T7(_.zF(function(){var w;return(w=t())==null?void 0:w.rendererContext})),
role:function(){return G()?"link":void 0},
tabindex:function(){return G()?0:void 0},
class:_.cl(X,y)},_.k("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var w,z,B;return(B=(z=_.Y((w=t())==null?void 0:w.rendererContext,_.N0))==null?void 0:z.label)!=null?B:""}},_.k(_.eh,{text:function(){return t().text},
userInput:!0})))},"xd");
kNR.idomCompat=!0;_.d94=_.Fp(function(X){var t=X.data;var G=X.isPositionRelative;var y=_.sgh("(max-width: 527.9px)"),w=function(){var z,B;return(B=(z=t())==null?void 0:z.style)!=null?B:"IMAGE_BANNER_STYLE_FULL_BLEED"};
X={};return _.k("yt-image-banner-view-model",{el:_.T7(_.zF(function(){var z;return(z=t())==null?void 0:z.rendererContext})),
class:_.cl((X["yt-image-banner-view-model-wiz"]=!0,X["yt-image-banner-view-model-wiz--inset"]=function(){return D2Y(w())},X["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.R5(!0)&&!(G==null?0:G())},X["yt-image-banner-view-model-wiz--small-inset"]=function(){return D2Y(w())&&y()},X["yt-image-banner-view-model-wiz--tappable"]=function(){var z;
return _.w2((z=t())==null?void 0:z.rendererContext)},X))},_.k(_.d,{cond:function(){var z;
return(z=t())==null?void 0:z.image},
then:function(){return _.k(_.gr,{data:function(){return t().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.k(_.M7,{data:function(){var z;
return(z=t())==null?void 0:z.overlays}},{thumbnailHoverOverlayViewModel:v7}))},"yd");
_.d94.idomCompat=!0;var e_q;e_q=_.Fp(function(X){var t=X.condition;var G=X.content;return _.k(_.d,{cond:t,then:function(){return _.k("div",{class:"page-header-view-model-wiz__scroll-container"},G())},
else:function(){return G()}})},"zd");
_.jC4=_.Fp(function(X){var t=X.data;var G=X.noPadding;var y=X.enableBanner;var w=X.cinematicContainerTopbarOffset;var z=X.allowCinematicContainerOverflow;var B=X.displayAsSidebar;var V=X.displayAsPanel;var b=X.alwaysUseMediumTextMetadata;var e=S4V(),g=function(){return!!t().image||!!t().animatedImage},F=function(){return!!t().background},T=function(){return(B==null?0:B())||(V==null?0:V())?1:e()},D=function(){return T()===1},h=function(){return D()||T()===2},u=function(){return T()===4},W=function(){var Fv=
t();
var Uh=!!t().heroImage;var cY=T(),f_=h6l(t()),sq=B==null?void 0:B(),oq=!Fv.metadata,ll;if(ll=Uh?_.Y(Fv.heroImage,Ouo):_.Y(Fv.animatedImage||Fv.image,Ouo)){Fv=ll.style;var go=ll.layoutMode;if(go!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(ll=Lrf(iFs(ll)),Uh)Uh=Y4V(cY,Fv,go,ll,sq);else b:if(oq)Uh=cY===1?{size:48}:{size:72};else switch(cY){case 1:Uh={size:72};break b;case 2:Uh={size:120};break b;default:Uh=f_<4?{size:120}:{size:160}}else Uh=void 0}else Uh={size:0};return Uh};
X={};X=_.cl((X["page-header-view-model-wiz"]=!0,X["page-header-view-model-wiz--no-padding"]=function(){return!(G==null||!G())},X["page-header-view-model-wiz--small-top-padding"]=function(){return D()&&!t().actions&&!(V==null?0:V())||T()===2&&!(g()||t().heroImage)},X["page-header-view-model-wiz--small-bottom-padding"]=function(){return h()&&!t().actions&&!(V==null?0:V())},X["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(z==null?0:z())},X["page-header-view-model-wiz--display-as-sidebar"]=
B,X));
var c={},P=_.cl((c["page-header-view-model-wiz__page-header-headline"]=!0,c["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var Fv;return(Fv=W())==null?void 0:Fv.allowFullWidth},c)),l=function(){var Fv;
return h()&&!((Fv=W())==null?0:Fv.allowFullWidth)},R=function(){return D()&&(!!t().heroImage||g())&&h6l(t())>0},L=function(){return R()&&(V==null?void 0:V())};
c={};var x=_.cl((c["page-header-view-model-wiz__page-header-title"]=!0,c["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!R()},c["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return R()&&!L()},c["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=L,c["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=F,c));
c={};var w6=_.cl((c["page-header-view-model-wiz__page-header-headline-image"]=!0,c["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!t().heroImage&&h()},c));
c={};var BY=_.cl((c["page-header-view-model-wiz__page-header-banner-container"]=y,c["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Fv;return(y==null?void 0:y())&&((Fv=_.Y(t().banner,_.QIt))==null?void 0:Fv.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},c));
c={};var kJ=_.cl((c["page-header-view-model-wiz__page-header-content-metadata"]=!0,c["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=F,c));c={};var Ss=_.cl((c["page-header-view-model-wiz__page-header-flexible-actions"]=!0,c["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!t().metadata||h()},c["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!h()},c));
c={};var C_=_.cl((c["page-header-view-model-wiz__page-header-attribution"]=!0,c["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=F,c));return _.k("yt-page-header-view-model",{class:X},_.k(_.d,{cond:F,then:function(){return _.k("div",{class:"page-header-view-model-wiz__page-header-background"},_.k(_.M7,{data:function(){return t().background}},{cinematicContainerViewModel:function(Fv){return _.k(_.oYe,{data:Fv.data,
topbarOffset:w})}}))}}),_.k(e_q,{condition:function(){return!(B==null||!B())},
content:function(){return _.k("div",{class:"page-header-view-model-wiz__page-header-content"},_.k(_.d,{cond:function(){return(y==null?void 0:y())&&t().banner},
then:function(){return _.k("div",{class:BY},_.k(_.M7,{data:function(){return t().banner}},{imageBannerViewModel:_.d94}))}}),_.k("div",{class:P},_.k(_.d,{cond:g,
then:function(){return _.k(_.M7,{data:function(){var Fv;if(!(Fv=t().animatedImage)){Fv=t();if(g()){var Uh=Fv=Object.assign({},Fv),cY=T(),f_=h6l(t()),sq=Uh.image,oq=_.Y(sq,uNB),ll=oq==null?void 0:oq.avatar,go=_.Y(ll,_.Hv);if(sq&&ll&&go){switch(cY){case 1:go.avatarImageSize="AVATAR_SIZE_XL";break;case 2:go.avatarImageSize="AVATAR_SIZE_XXL";break;default:f_<4?go.avatarImageSize="AVATAR_SIZE_XXL":go.avatarImageSize="AVATAR_SIZE_XXXL"}_.A("web_enable_sink_page_header_view_model")&&(_.Xx(ll,_.Hv,Object.assign({},
go)),oq.avatar=Object.assign({},ll),_.Xx(sq,uNB,Object.assign({},oq)),Uh.image=Object.assign({},sq))}}Fv=Fv.image}return Fv}},{contentPreviewImageViewModel:function(Fv){return _.k(_.sY,{data:Fv.data,
className:w6,imageSizeConfig:W})},
decoratedAvatarViewModel:function(Fv){return _.k(_.lD,{data:Fv.data,className:w6})}})}}),_.k(_.d,{cond:function(){return!!t().heroImage&&!l()},
then:function(){return _.k(_.M7,{data:function(){return t().heroImage}},{contentPreviewImageViewModel:function(Fv){return _.k(_.sY,{data:Fv.data,
className:w6,imageSizeConfig:W})}})}}),_.k("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.k(_.d,{cond:function(){return!!t().heroImage&&l()},
then:function(){return _.k("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.k(_.M7,{data:function(){return t().heroImage}},{contentPreviewImageViewModel:function(Fv){return _.k(_.sY,{data:Fv.data,
className:w6,imageSizeConfig:W})}}))}}),_.k(_.M7,{data:function(){return t().title}},{dynamicTextViewModel:function(Fv){return _.k(kNR,{data:Fv.data,
className:x})}}),_.k(_.M7,{data:function(){return t().metadata}},{contentMetadataViewModel:function(Fv){return _.k(_.DT,{data:Fv.data,
layout:function(){return D()?1:0},
className:kJ,isOverlay:F,useMediumText:function(){return(b==null?void 0:b())||u()}})}}),_.k(_.d,{cond:function(){return t().description&&!D()},
then:function(){return _.k(_.M7,{data:function(){return t().description}},{descriptionPreviewViewModel:function(Fv){return _.k(tF,{data:Fv.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:F,maxLinesOverride:function(){return D()?void 0:1},
useMediumText:u})}})}}),_.k(_.d,{cond:function(){return t().attribution&&!h()},
then:function(){return _.k(_.M7,{data:function(){return t().attribution}},{attributionViewModel:function(Fv){return _.k(HM4,{data:Fv.data,
className:C_,useMediumText:u})}})}}),_.k(_.d,{cond:function(){return t().actions&&!h()},
then:function(){return _.k(_.M7,{data:function(){return t().actions}},{flexibleActionsViewModel:function(Fv){return _.k(la,{data:Fv.data,
layout:function(){return ZOf(T())},
className:Ss})}})}}))),_.k("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.k(_.d,{cond:function(){return t().description&&D()},
then:function(){return _.k(_.M7,{data:function(){return t().description}},{descriptionPreviewViewModel:function(Fv){return _.k(tF,{data:Fv.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:F,maxLinesOverride:function(){return D()?void 0:1},
useMediumText:u})}})}}),_.k(_.d,{cond:function(){return t().attribution&&h()},
then:function(){return _.k(_.M7,{data:function(){return t().attribution}},{attributionViewModel:function(Fv){return _.k(HM4,{data:Fv.data,
className:C_,useMediumText:u})}})}}),_.k(_.d,{cond:function(){return t().actions&&h()},
then:function(){return _.k(_.M7,{data:function(){return t().actions}},{flexibleActionsViewModel:function(Fv){return _.k(la,{data:Fv.data,
layout:function(){return ZOf(T())},
className:Ss})}})}})),_.k("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.k(_.M7,{data:function(){return t().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Fv){return _.k(b7z,{data:Fv.data,
isOverlay:F})}})))}}))},"Ad");
_.jC4.idomCompat=!0;_.DW(_.Fp(function(X){var t=_.J(_.sm(!1,void 0,"j5qbkc")),G=t.next().value,y=t.next().value;return _.k("yt-official-card-view-model",{class:_.cl("ytOfficialCardViewModelHost",X.className),style:_.Ud({"background-color":function(){var w,z=KLY((w=X.data())==null?void 0:w.backgroundColor);return z?_.yY(z):void 0}})},_.k(_.M7,{data:function(){return X.data().header}},{pageHeaderViewModel:function(w){return _.k(_.jC4,{data:w.data,
noPadding:!0})}}),_.k(_.M7,{data:function(){return X.data().contents}},{horizontalShelfViewModel:function(w){return _.k(_.$2,{data:w.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.k(_.d,{cond:G,
then:function(){return _.k("div",{class:"ytOfficialCardViewModelExpandedContent"},_.k(_.M7,{data:function(){return X.data().expandedContents}},{horizontalShelfViewModel:function(w){return _.k(_.$2,{data:w.data,
sizing:"MINI"})}}),_.k("div",{class:"ytOfficialCardViewModelCollapseButton"},_.k(_.M7,{data:function(){return X.data().collapseButton}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
onClick:function(){y(!G())}})}})))},
else:function(){return _.k("div",{class:"ytOfficialCardViewModelExpandButton"},_.k(_.M7,{data:function(){return X.data().expandButton}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
onClick:function(){y(!G())}})}}))}}))},"Bd"),"yt-official-card-view-model",{props:{data:_.bR,
className:_.bR}});var q46=_.L5({buttonViewModel:_.QK});_.FE(CPh);_.up(CPh,"ytw-search-friction-view-model",{propNames:["data"]});_.gYS=_.Fp(function(X){var t=_.nl("markdown-div"),G,y=(G=_.gw().resolve(_.jH(_.kI)))==null?void 0:G();_.Em(function(){var w=t.value;var z=new u4B,B=new Map(z.JSC$9229_sanitizerTable.globalAttributePolicies);B.set("style",{policyAction:4});z.JSC$9229_sanitizerTable=new E1(z.JSC$9229_sanitizerTable.allowedElements,z.JSC$9229_sanitizerTable.elementPolicies,z.JSC$9229_sanitizerTable.allowedGlobalAttributes,B,z.JSC$9229_sanitizerTable.globallyAllowedAttributePrefixes);var V=["data-time"];if(V===void 0)B=
new Set(z.JSC$9229_sanitizerTable.globallyAllowedAttributePrefixes),B.add("data-"),z.JSC$9229_sanitizerTable=new E1(z.JSC$9229_sanitizerTable.allowedElements,z.JSC$9229_sanitizerTable.elementPolicies,z.JSC$9229_sanitizerTable.allowedGlobalAttributes,z.JSC$9229_sanitizerTable.globalAttributePolicies,B);else{B=new Set(z.JSC$9229_sanitizerTable.allowedGlobalAttributes);V=_.J(V);for(var b=V.next();!b.done;b=V.next()){b=b.value;if(b.indexOf("data-")!==0)throw Error("ma`"+b);B.add(b)}z.JSC$9229_sanitizerTable=
new E1(z.JSC$9229_sanitizerTable.allowedElements,z.JSC$9229_sanitizerTable.elementPolicies,B,z.JSC$9229_sanitizerTable.globalAttributePolicies,z.JSC$9229_sanitizerTable.globallyAllowedAttributePrefixes)}B=new Set(z.JSC$9229_sanitizerTable.allowedGlobalAttributes);B.add("class");z.JSC$9229_sanitizerTable=new E1(z.JSC$9229_sanitizerTable.allowedElements,z.JSC$9229_sanitizerTable.elementPolicies,B,z.JSC$9229_sanitizerTable.globalAttributePolicies,z.JSC$9229_sanitizerTable.globallyAllowedAttributePrefixes);
_.b8(w,_.Z4J(z.build(),OO_(X.text())));uns(t.value)},"FI2gYe");
G={};return _.k("div",null,_.k("markdown-div",{class:_.cl("ytwMarkdownDivHost",(G.ytwMarkdownDivDark=y,G.ytwMarkdownDivHostSmall=function(){var w;return((w=X.isSmallText)==null?void 0:w.call(X))||!1},G)),
el:t}))},"Cd");
_.gYS.idomCompat=!0;var FeJ=_.Fp(function(X){var t=X.imageData;var G=_.ex(X.isInList,!1),y=function(){return G()?{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 _.k("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.k(_.d,{cond:function(){return t().image},
then:function(w){return _.k(_.gr,{data:w,alt:function(){return y().alt},
contentMode:function(){return y().contentMode},
targetWidth:function(){return y().targetWidth},
targetHeight:function(){return y().targetHeight},
className:function(){return y().className}})}}),_.k("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.k("div",{class:_.cl("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.k(_.eh,{text:function(){return t().title}})),_.k(_.pY,{each:function(){var w;
return(w=t().description)!=null?w:[]}},function(w){return _.k("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.k(Go,{content:w}))})))},"Dd"),TLq=_.Fp(function(X){var t=X.list;
var G=function(){var y;return(y=t().items)!=null?y:[]};
return _.k("div",{class:"ytwGenAiRichTextViewModelListContent"},_.k(_.d,{cond:function(){return t().title},
then:function(y){return _.k("div",{class:_.cl("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.k(_.eh,{text:y}))}}),_.k(_.d,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.k("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.k(_.pY,{each:G},function(y){return _.k("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.k(Go,{content:y,isInList:!0}))}))}}),_.k(_.d,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.k("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.k(_.pY,{each:G},function(y){return _.k("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.k(Go,{content:y,isInList:!0}))}))}}),_.k(_.d,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.k("div",{class:"ytwGenAiRichTextViewModelImageList"},_.k(_.pY,{each:G},function(y){return _.k("div",{class:"ytwGenAiRichTextViewModelListItem"},_.k(Go,{content:y,isInList:!0}))}))}}))},"Ed"),AUh=_.Fp(function(X){var t=X.table;
return _.k("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.k("thead",null,_.k("tr",null,_.k(_.pY,{each:function(){var G,y;return(y=(G=t().header)==null?void 0:G.cells)!=null?y:[]}},function(G){return _.k("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.k(_.pY,{each:function(){return G.contents}},function(y){return _.k(Go,{content:y})}))}))),_.k("tbody",null,_.k(_.pY,{each:function(){var G;
return(G=t().rows)!=null?G:[]}},function(G){return _.k("tr",null,_.k(_.pY,{each:function(){return G.cells}},function(y){return _.k("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.k(_.pY,{each:function(){return y.contents}},function(w){return _.k(Go,{content:w})}))}))})))},"Fd"),Go=_.Fp(function(X){var t=X.content;
var G=_.ex(X.isInList,!1),y=function(){var w,z;return(z=(w=t().contentBlock)==null?void 0:w.contents)!=null?z:[]};
return _.k("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.k(_.d,{cond:function(){return t().text},
then:function(w){return _.k(_.eh,{className:"ytwGenAiRichTextViewModelText",text:w})}}),_.k(_.d,{cond:function(){return t().image},
then:function(w){return _.k(FeJ,{imageData:w,isInList:G})}}),_.k(_.d,{cond:function(){return t().list},
then:function(w){return _.k(TLq,{list:w})}}),_.k(_.d,{cond:function(){return t().contentBlock},
then:function(){return _.k("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.k(_.pY,{each:y},function(w){return _.k(Go,{content:w,isInList:!1})}))}}),_.k(_.d,{cond:function(){return t().table},
then:function(w){return _.k(AUh,{table:w})}}))},"Gd"),Yzz=_.Fp(function(X){var t={};
t=_.pX("ytwGenAiRichTextViewModelHost",(t.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Yx("search_overview_link_style")),t));return _.k("gen-ai-rich-text-view-model",{class:t},_.k(Go,{content:function(){return X.data().content}}))},"Hd");_.FE(Qgw);_.FE(xy);_.sC4=_.Fp(function(X){var t=X.data;var G=function(){var u;return((u=t().loadingUi)!=null?u:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},y=function(){return t().isLoading&&(G()==="UNSPECIFIED"||G()==="GHOST_CARD")},w=function(){return!t().isLoading},z=function(){return!!t().content&&!t().contents},B=function(){return!!t().contents},V=function(){return!!t().nextQueryButtons},b=function(){return t().isLoading&&G()==="INVISIBLE"},e=function(){var u,W;
return(W=(u=t().headerIcon)==null?void 0:u.iconType)!=null?W:""},g=function(){var u;
return(u=t().content)!=null?u:""},F=function(){return!!t().sourcesSection},T,D=!((T=_.gw().resolve(_.jH(_.kI)))==null||!T()),h=_.qt(function(){var u=[],W=t().contents;
if(W)for(var c=0;c<W.length;c++){var P=_.Y(W&&W[c],PYY);P&&u.push(P)}return u},void 0,"ycU97e");
_.LY(function(){t().isLoading||_.ls("so_re",void 0,"search_overview_answer")});
return _.k("ytd-overview-answer-view-model",{class:function(){var u={};u=(u.ytdOverviewAnswerViewModelHost=!0,u.ytdOverviewAnswerViewModelDarkBackground=D&&!b(),u.ytdOverviewAnswerViewModelLightBackground=!D&&!b(),u);return _.pX(u)}},_.k(_.d,{cond:function(){return!b()},
then:function(){return _.k(_.gn,null,_.k("h2",null,_.k("div",{class:"ytdOverviewAnswerViewModelHeader"},_.k(_.d,{cond:e,then:function(u){return _.k("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.k(_.mw,{icon:u}))}}),_.k("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.k("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return t().headerText}),_.k("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.k(_.eh,{text:function(){return t().headerSubtext}}))))),_.k(_.d,{cond:y,
then:function(){return Qgw()}}),_.k(_.d,{cond:w,
then:function(){return _.k(_.gn,null,_.k(_.d,{cond:z,then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelText"},_.k(_.gYS,{text:g,isSmallText:!0}))}}),_.k(_.d,{cond:B,
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelRichText"},_.k(_.pY,{each:h},function(u){return _.k(Yzz,{data:u})}))}}),_.k(_.d,{cond:V,
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.k(_.M7,{data:function(){return t().nextQueryButtons}},{buttonViewModel:function(u){return _.k(_.QK,{data:u.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.$2}))}}),_.k("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.k("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.k(_.d,{cond:function(){return!!_.Y(t().likeButtonViewModel,_.fe)&&!!_.Y(t().dislikeButtonViewModel,_.x_)},
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.k(_.f8,{data:function(){return _.Y(t().likeButtonViewModel,_.fe)},
disableIconAnimation:!0}),_.k(_.xj,{data:function(){return _.Y(t().dislikeButtonViewModel,_.x_)}}))}})),_.k(_.d,{cond:function(){var u;
return(u=t().sourcesSection)==null?void 0:u.headerText},
then:function(u){return _.k("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.k(_.eh,{text:u}))}})),_.k(_.d,{cond:F,
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelSources"},_.k(_.M7,{data:function(){var u;return(u=t().sourcesSection)==null?void 0:u.sourcesShelf}},{buttonViewModel:_.QK,
horizontalShelfViewModel:function(u){return _.k(_.$2,{data:u.data,includeMargin:!0,hasPeek:!0})}}))}}),_.k(_.d,{cond:function(){return t().disclaimerText},
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.k(_.eh,{text:function(){return t().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Id");var D9q=_.Fp(function(X){var t=X.data;var G=X.active;var y=_.nl("transcript-segment-view-model");_.Em(function(){var w,z,B,V=((w=_.gw().resolve(_.jH(_.kI)))==null?0:w())?(z=t())==null?void 0:z.darkThemeColorPalette:(B=t())==null?void 0:B.lightThemeColorPalette;V&&(V.additiveBackground&&y.value.style.setProperty("--timestamp-active-background-color",_.yY(V.additiveBackground)),V.textSecondary&&y.value.style.setProperty("--timestamp-active-color",_.Gq(V.textSecondary)))},"KHcbwb");
X={};return _.k("transcript-segment-view-model",{class:_.cl("ytwTranscriptSegmentViewModelHost",(X.ytwTranscriptSegmentViewModelHostActive=G,X.ytwTranscriptSegmentViewModelHostModern=_.A("enable_timeline_view_modern_transcript")||_.A("enable_timeline_view_modern_transcript_fe"),X)),el:y},_.k(_.d,{cond:function(){var w;return(w=t())==null?void 0:w.timestamp},
then:function(w){var z={};return _.k("div",{class:_.cl("ytwTranscriptSegmentViewModelTimestamp",(z.ytwTranscriptSegmentViewModelTimestampActive=G,z))},w)}}),_.k(_.eh,{text:function(){var w,z,B;
return(B=(w=t())==null?void 0:w.attributedText)!=null?B:{content:(z=t())==null?void 0:z.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Jd");var Sze=_.Fp(function(X){var t=X.data;return _.k("div",{class:"yt-video-attributes-section-view-model__header"},_.k("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return t().headerTitle}),_.k(_.d,{cond:function(){return t().headerSubtitle},
then:function(){return _.k("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return t().headerSubtitle})}}))},"Kd"),h_J=_.Fp(function(X){function t(u){return Math.max(Math.min(u,0),e()-V())}
var G=X.data;var y,w=_.nl("div",function(u){if(_.A("web_metadata_carousel_elref_bugfix")){var W=function(){g(u.clientWidth)};
W();window.ResizeObserver&&(y=new ResizeObserver(W),y.observe(u))}}),z=_.nl("div",function(u){b(u.scrollWidth)}),B=_.J(_.sm(0,void 0,"I9GbH"));
X=B.next().value;B=B.next().value;var V=X,b=B;B=_.J(_.sm(0,void 0,"eQAn5b"));X=B.next().value;B=B.next().value;var e=X,g=B;X=_.J(_.sm(0,void 0,"VU3lg"));var F=X.next().value,T=X.next().value;_.LY(function(){if(!_.A("web_metadata_carousel_elref_bugfix")){var u=function(){b(z.value.scrollWidth);g(w.value.clientWidth)};
u();if(window.ResizeObserver){var W=new ResizeObserver(u);W.observe(w.value);_.Um(function(){W.disconnect()})}}});
_.Um(function(){if(_.A("web_metadata_carousel_elref_bugfix")){var u;(u=y)==null||u.disconnect()}});
var D=function(){T(t(F()+e()))},h=function(){T(t(F()-e()))};
return _.k("yt-video-attributes-section-view-model",null,_.k("div",{class:"yt-video-attributes-section-view-model"},_.k(_.d,{cond:function(){return G().headerTitle},
then:function(){return _.k(Sze,{data:G})}}),_.k("div",{class:_.cl("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:w},_.k("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Ud({transform:function(){var u=F();_.Md("HTML_DIR")==="rtl"&&(u*=-1);return"translateX("+u+"px)"}}),
el:z},_.k(_.M7,{data:function(){return G().videoAttributeViewModels}},{videoAttributeViewModel:ZMR}))),_.k(_.M7,{data:function(){return G().footerButton}},{buttonViewModel:function(u){return _.k(_.QK,{data:u.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.k(_.d,{cond:function(){return F()<0&&G().previousButton},
then:function(){return _.k("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.k(_.M7,{data:function(){return G().previousButton}},{buttonViewModel:function(u){return _.k(_.QK,{data:u.data,
onClick:D})}}))}}),_.k(_.d,{cond:function(){return F()>e()-V()&&G().nextButton},
then:function(){return _.k("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.k(_.M7,{data:function(){return G().nextButton}},{buttonViewModel:function(u){return _.k(_.QK,{data:u.data,
onClick:h})}}))}})))},"Ld");
h_J.idomCompat=!0;var Z7Y=_.Fp(function(X){var t=X.data;var G=X.active;var y={},w={};return _.k("timeline-item-view-model",{class:_.cl("ytwTimelineItemViewModelHost",(y.ytwTimelineItemViewModelHostChapterChild=X.chapterChild,y.ytwTimelineItemViewModelModern=_.A("enable_timeline_view_modern_transcript")||_.A("enable_timeline_view_modern_transcript_fe"),y))},_.k("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.k("div",{class:_.cl("ytwTimelineItemViewModelTimestamp",(w.ytwTimelineItemViewModelTimestampActive=
G,w))},function(){return t().timestamp})),_.k("div",{class:"ytwTimelineItemViewModelContentItems"},_.k(_.M7,{data:function(){return t().contentItems}},{transcriptSegmentViewModel:function(z){return _.k(D9q,{data:z.data,
active:G})},
videoAttributesSectionViewModel:h_J})))},"Md");var qz4=_.Fp(function(X){var t=X.data;X={};return _.k("timeline-chapter-view-model",{class:_.cl("ytwTimelineChapterViewModelHost")},_.k("div",{class:_.cl("ytwTimelineChapterViewModelTitle",(X.ytwTimelineChapterViewModelModern=_.A("enable_timeline_view_modern_transcript")||_.A("enable_timeline_view_modern_transcript_fe"),X))},function(){return t().title}),_.k(_.M7,{data:function(){return t().contents}},{timelineItemViewModel:function(G){return _.k(Z7Y,{data:G.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(G){return _.k(h_J,{data:G.data})}}))},"Nd");var ChP=_.Fp(function(X){var t=X.data;var G=_.nl("macro-markers-panel-item-view-model"),y=_.Pk(_.kUA,function(){var z;return(z=t().markersEngagementPanelSyncEntityKey)!=null?z:""}),w=function(){var z;
return((z=y())==null?void 0:z.activeItemIndex)===t().index};
X=_.NI(function(z){var B,V,b,e,g;return _.n(function(F){if(F.nextAddress==1)return z.stopPropagation(),_.GF(_.t4(z),G.value,["A".toString(),"BUTTON".toString()])?F.return():(B=_.wr(t().onTap))?F.yield(_.uX(),2):F.return();V=F.yieldResult;e=(b=_.Y(B,_.nq))==null?void 0:b.startTimeSeconds;e===void 0||(g=V)!=null&&g.seekTo(e,!0);_.W$(F)})});
return _.k("macro-markers-panel-item-view-model",{class:_.cl("ytwMacroMarkersPanelItemViewModelHost",{"is-active":w}),el:G,"on:click":X,tabindex:0},_.k(_.M7,{data:function(){var z;return(z=t())==null?void 0:z.item}},{timelineChapterViewModel:function(z){return _.k(qz4,{data:z.data,
active:w})},
timelineItemViewModel:function(z){return _.k(Z7Y,{data:z.data,active:w})},
videoAttributeViewModel:ZMR}))},"Od");
ChP.idomCompat=!0;_.DW(ChP,"macro-markers-panel-item-view-model",{props:{data:_.bR}});_.DW(h_J,"yt-video-attributes-section-view-model",{props:{data:_.bR}});var Keq=_.Fp(function(X){var t=function(){var G,y,w;return(w=(G=X.data().leadingLogoAccessibility)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label)!=null?w:""};
return _.k("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.k(_.d,{cond:function(){return X.data().leadingLogo},
then:function(G){return _.k(_.gr,{className:"ytwFantasySectionHeaderViewModelLogo",data:G,alt:t})}}),_.k("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.k(_.eh,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return X.data().title}}),_.k(_.eh,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return X.data().subtitle}})),_.k(_.M7,{data:function(){return X.data().trailingButton}},{buttonViewModel:function(G){return _.k(_.QK,{data:G.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Pd");var O7P=_.Fp(function(X){var t={};t=_.cl("ytwFantasyTeamViewModelHost",(t.ytwFantasyTeamViewModelCompact=function(){var w;return!((w=X.compact)==null||!w.call(X))},t.ytwFantasyTeamViewModelUser=function(){return X.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},t.ytwFantasyTeamViewModelOpponent=function(){return X.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},t));
var G=function(){var w,z,B;return(B=(w=X.data().teamLogoAccessibility)==null?void 0:(z=w.accessibilityData)==null?void 0:z.label)!=null?B:""},y=_.Pk(e0V,function(){return X.data().teamEntityKey});
return _.k("ytw-fantasy-team-view-model",{class:t},_.k(_.d,{cond:function(){return X.data().teamLogo},
then:function(w){return _.k(_.gr,{className:"ytwFantasyTeamViewModelLogo",data:w,alt:G})}}),_.k("div",{class:"ytwFantasyTeamViewModelMetadata"},_.k("div",{class:"ytwFantasyTeamViewModelHeader"},_.k(_.eh,{className:"ytwFantasyTeamViewModelScore",
text:function(){var w;return(w=y())==null?void 0:w.score}}),_.k(_.mw,{icon:function(){var w;
return(w=y())==null?void 0:w.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.k(_.eh,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var w;return(w=y())==null?void 0:w.projectedScore}})),_.k(_.eh,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return X.data().primaryText}}),_.k(_.eh,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return X.data().secondaryText}}),_.k(_.eh,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return X.data().tertiaryText}})),_.k(_.eh,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var w;return(w=y())==null?void 0:w.score}}))},"Qd");_.DW(_.Fp(function(X){return _.k("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.k("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.k(_.M7,{data:function(){return X.data().summaryHeader}},{fantasySectionHeaderViewModel:Keq})),_.k(_.M7,{data:function(){return X.data().userTeam}},{fantasyTeamViewModel:O7P}),_.k(_.M7,{data:function(){return X.data().opponentTeam}},{fantasyTeamViewModel:O7P}))},"Rd"),"fantasy-league-summary-view-model",{props:{data:_.bR}});var ujJ=_.Fp(function(X){var t=_.jx(X,{shape:{},useCustomTabRenderable:!1}),G=t.shape;t=t.useCustomTabRenderable;var y=X.customTabRenderable,w=function(){return G().disabled},z=function(){return G().selected},B=function(){return G().title},V=function(){return G().icon},b=_.nl("yt-tab-shape");
X=_.NI(function(F){var T;if(!w()&&((T=G().aTagConfig)==null?0:T.onclick))G().aTagConfig.onclick(F);return!1});
var e=_.NI(function(F){if(F.key==="Enter"||F.key==="ArrowUp"||F.key==="ArrowDown")F.preventDefault(),b.value.click();return!1}),g={};
return _.k("yt-tab-shape",{class:_.cl("yt-tab-shape-wiz",function(){return G().className},(g["yt-tab-shape-wiz__tab--last-tab"]=function(){return G().isLastTab},g["yt-tab-shape-wiz--host-disabled"]=w,g["yt-tab-shape-wiz--host-clickable"]=!y,g)),
role:y?void 0:"tab","aria-selected":z!=null?z:!1,"aria-disabled":w,tabindex:y?void 0:0,"on:click":X,"on:keydown":e,el:b,"tab-identifier":function(){return G().identifier},
"tab-title":B},_.k(_.d,{cond:t,then:function(){return y()},
else:function(){var F={},T={};return _.k(_.gn,null,_.k("div",{class:_.cl("yt-tab-shape-wiz__tab",(F["yt-tab-shape-wiz__tab--tab-selected"]=z,F))},_.k(_.d,{cond:V,then:function(D){return _.k(_.mw,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return D().iconType}})}}),B),_.k("div",{class:_.cl("yt-tab-shape-wiz__tab-bar",(T["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=z,T))}))}}))},"Sd");
ujJ.idomCompat={callbacks:{customTabRenderable:!0}};_.IqR=_.Fp(function(X){var t=X.shape;X=_.J(_.sm(48,void 0,"r9IBlb"));var G=X.next().value,y=X.next().value;X=_.J(_.sm(0,void 0,"Bd7rmd"));var w=X.next().value,z=X.next().value,B=function(){return t().tabs},V=_.nl("yt-tab-group-shape"),b=function(){var e,g;
return(g=(e=B())==null?void 0:e.findIndex(function(F){return F.selected}))!=null?g:-1};
_.LY(function(){var e=V.value.querySelectorAll("yt-tab-shape"),g=b()>-1?e[b()]:void 0;_.vz.addJob(function(){y((g==null?void 0:g.getBoundingClientRect().width)||0)},8,0)});
_.Em(function(){var e=b(),g=_.vz.addJob(function(){var F,T=((F=V.value)==null?void 0:F.querySelectorAll("yt-tab-shape"))||[],D;y(((D=e>-1?T[e]:void 0)==null?void 0:D.getBoundingClientRect().width)||0);for(D=F=0;D<e;D++)F+=T[D].offsetWidth+24;_.Md("HTML_DIR")==="rtl"&&(F=-F);z(F)},8,0);
_.Um(function(){_.vz.cancelJob(g)})},"EHixkc");
X={};return _.k("yt-tab-group-shape",{class:_.cl("yt-tab-group-shape-wiz",(X["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return t().isOverflowHidden},X)),
el:V},_.k(_.d,{cond:B,then:function(e){return _.k(_.gn,null,_.k("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.k(_.pY,{each:e},function(g,F){return _.k(ujJ,{shape:function(){return Object.assign({},g,{isLastTab:F()===e().length-1})},
customTabRenderable:g.customTabRenderable,useCustomTabRenderable:!!g.customTabRenderable})})),_.k(QCz,{width:G,
sliderOffset:w}))}}))},"Td");
_.IqR.idomCompat=!0;var QCz=_.Fp(function(X){var t=_.ex(X.sliderOffset,0),G=X.width;return _.k("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Ud({width:function(){return G()+"px"},
transform:function(){return"translateX("+t()+"px)"}})})},"Ud");var WeP=_.Fp(function(X){var t=function(){var z,B,V;return(V=(z=X.data().playerLogoAccessibility)==null?void 0:(B=z.accessibilityData)==null?void 0:B.label)!=null?V:""},G=_.Pk(jFG,function(){return X.data().playerEntityKey}),y={};
y=_.cl("ytwFantasyPlayerViewModelHost",(y.ytwFantasyPlayerViewModelPlaying=function(){var z;return!((z=G())==null||!z.isPlayerPlaying)},y.ytwFantasyPlayerViewModelOnField=function(){var z;
return((z=G())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},y.ytwFantasyPlayerViewModelRedZone=function(){var z;
return((z=G())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},y));
var w=function(){var z,B,V,b=((z=_.gw().resolve(_.jH(_.kI)))==null?0:z())?(B=X.data().playerLogoBackgroundColor)==null?void 0:B.darkTheme:(V=X.data().playerLogoBackgroundColor)==null?void 0:V.lightTheme;return b===void 0?"":_.yY(b)};
return _.k("ytw-fantasy-player-view-model",{class:y},_.k(_.d,{cond:function(){return X.data().playerLogo},
then:function(z){return _.k("div",{class:"ytwFantasyPlayerViewModelLogo"},_.k("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.k(_.gr,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Ud({"background-color":w}),data:z,alt:t})),_.k("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.k(_.mw,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.k("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.k("div",{class:"ytwFantasyPlayerViewModelHeader"},_.k(_.eh,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var z;return(z=X.data())==null?void 0:z.playerNameText}}),_.k(_.eh,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var z;return(z=X.data())==null?void 0:z.playerDescriptionText}})),_.k("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.k(_.eh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=G())==null?void 0:z.gamePeriodText}}),_.k(_.eh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=X.data())==null?void 0:z.opponentTeamText}}),_.k(_.eh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=G())==null?void 0:z.gameStatusText}}),_.k(_.eh,{className:_.cl("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var z;return(z=G())==null?void 0:z.playerStatusText}})),_.k("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.k(_.eh,{text:function(){var z;
return(z=G())==null?void 0:z.playerStatsText}}))),_.k(_.eh,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var z;return(z=G())==null?void 0:z.fantasyScore}}))},"Vd");var cUB=_.Fp(function(X){return _.k("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.k(_.d,{cond:function(){return X.data().players},
then:function(t){return _.k(_.M7,{data:t},{fantasyPlayerViewModel:WeP})}}))},"Wd");var pfq=_.Fp(function(X){var t=_.J(_.Ed(function(){var w;return(w=X.data().selectedTabIdentifierKey)!=null?w:""})),G=t.next().value,y=t.next().value;
_.R2(function(){var w;(w=X.setSelectedTabSignal)==null||w.call(X,G)});
return _.k("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.k("div",{class:"ytTabbedViewModelTabGroup"},_.k(_.IqR,{shape:function(){var w=X.data(),z=[],B={tabs:z};if(!w.tabs)return B;w=_.J(w.tabs);for(var V=w.next(),b={};!V.done;b={tabViewModel:void 0},V=w.next())if(b.tabViewModel=_.Y(V.value,MTJ),b.tabViewModel){var e=V=void 0;z.push({aTagConfig:{onclick:function(g){return function(){var F;y((F=g.tabViewModel.tabIdentifier)!=null?F:"")}}(b)},
identifier:b.tabViewModel.tabIdentifier,selected:G()===b.tabViewModel.tabIdentifier,title:(e=(V=b.tabViewModel.title)==null?void 0:V.content)!=null?e:""})}return B}})),_.k(_.M7,{data:function(){var w,z=_.J((w=X.data().tabs)!=null?w:[]);
for(w=z.next();!w.done;w=z.next())if((w=_.Y(w.value,MTJ))&&w.tabIdentifier===G())return w.content}},{fantasyRosterViewModel:cUB}))},"Xd");_.DW(_.Fp(function(X){var t=_.J(I5J()),G=t.next().value,y=t.next().value;return _.k("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.k(_.eh,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return X.data().title}}),_.k(_.d,{cond:function(){return X.data().tabbedViewModel},
then:function(w){return _.k(_.M7,{data:w},{tabbedViewModel:function(z){return _.k(pfq,{data:z.data,setSelectedTabSignal:y})}})}}),_.k(_.d,{cond:function(){var w,z=(w=_.Y(X.data().tabbedViewModel,Xrq))==null?void 0:w.tabs;
w=_.Y(z==null?void 0:z[0],MTJ);z=_.Y(z==null?void 0:z[1],MTJ);var B=w==null?void 0:w.tabIdentifier;if(G()===B){var V,b;if(!((V=_.Y(w==null?void 0:w.content,vPR))==null?0:(b=V.players)==null?0:b.length))return X.data().noUserTeamPlayersText}else{var e,g;if(!((e=_.Y(z==null?void 0:z.content,vPR))==null?0:(g=e.players)==null?0:g.length))return X.data().noOpponentTeamPlayersText}},
then:function(w){return _.k(_.eh,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:w})}}))},"Yd"),"ytw-fantasy-matchup-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){return _.k("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.k(_.eh,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return X.data().title}}),_.k(_.d,{cond:function(){return X.data().matchupTeamPairs},
then:function(t){return _.k(_.pY,{each:t,keyBy:"INDEX"},function(G){return _.k("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.k(_.M7,{data:function(){return[G().firstTeam,G().secondTeam]}},{fantasyTeamViewModel:function(y){return _.k(O7P,{data:y.data,
compact:!0})}}))})}}))},"Zd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=function(){var w,z,B;return(B=(w=X.data().userLogoAccessibility)==null?void 0:(z=w.accessibilityData)==null?void 0:z.label)!=null?B:""},G=function(){var w,z,B;
return(B=(w=X.data().opponentLogoAccessibility)==null?void 0:(z=w.accessibilityData)==null?void 0:z.label)!=null?B:""},y=_.Pk(d$E,function(){return X.data().entityKey});
return _.k("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.k("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.k(_.d,{cond:function(){return X.data().userLogo},
then:function(w){return _.k(_.gr,{className:"ytwFantasyWinProbabilityViewModelLogo",data:w,alt:t})}}),_.k("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.k(_.eh,{text:function(){return X.data().title}})),_.k(_.d,{cond:function(){return X.data().opponentLogo},
then:function(w){return _.k(_.gr,{className:"ytwFantasyWinProbabilityViewModelLogo",data:w,alt:G})}})),_.k("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.k("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.k(_.eh,{text:function(){var w;
return(w=y())==null?void 0:w.userWinNumberLabel}})),_.k("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.k("div",{class:_.cl("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Ud({flex:function(){var w,z;return(z=(w=y())==null?void 0:w.userWinNumber)!=null?z:50}})}),_.k("div",{class:_.cl("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Ud({flex:function(){var w,z;return(z=(w=y())==null?void 0:w.opponentWinNumber)!=null?z:50}})})),_.k("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.k(_.eh,{text:function(){var w;
return(w=y())==null?void 0:w.opponentWinNumberLabel}}))))},"$d"),"fantasy-win-probability-view-model",{props:{data:_.bR}});var rUJ={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},NL4=_.Fp(function(X){return _.k(_.M7,{data:X.button},{buttonViewModel:function(t){return _.k(_.QK,{data:t.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ae"),PhR=_.Fp(function(X){return _.k("ytd-backstage-locked-post-view-model",{class:_.cl("ytdBackstageLockedPostViewModelHost",X.className)},_.k("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.k("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.k(_.M7,
{data:function(){return X.data().authorAvatar}},{decoratedAvatarViewModel:_.lD})),_.k("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.k("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.k(_.eh,{text:function(){return X.data().authorText}})),_.k("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.k(_.eh,{text:function(){return X.data().publishedTimeText}}),_.k(_.M7,{data:function(){return X.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(t){return _.k(BmR,
{data:t.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.k("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.k(_.eh,{text:function(){return X.data().contentText}})),_.k(_.P0,null,_.k(_.rn,{when:function(){return X.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.k("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.k(_.gr,{data:rUJ,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.k(_.eh,{text:function(){return X.data().lockedText}}))}),_.k(_.rn,{when:function(){return X.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.k("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.k("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.k(_.gr,{data:rUJ,
alt:""})),_.k(_.eh,{text:function(){return X.data().lockedText}}))})),_.k("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.k(NL4,{button:function(){return X.data().likeButton}}),_.k("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return X.data().voteCountA11y}},_.k(_.eh,{text:function(){return X.data().voteCount}})),_.k(NL4,{button:function(){return X.data().dislikeButton}}),_.k(NL4,{button:function(){return X.data().commentButton}}),_.k("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return X.data().commentCountA11y}},_.k(_.eh,{text:function(){return X.data().commentCount}}))))},"be");
PhR.idomCompat=!0;_.DW(PhR,"ytd-backstage-locked-post-view-model",{props:{data:_.bR,className:_.bR}});_.Xa("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var yp=function(){var X=_.O.apply(this,arguments)||this;X.darkerPanels=_.A("web_watch_darker_panels");X.commentsHidePanelButton=!1;X.isWatchGrid=!1;X.continuationShowButton=!1;X.isSearch=!1;X.isConstrainedList=!1;X.isWatch=!1;X.eligibleToSwitchToGrid=!1;X.notSticky=!1;X.epRestyle=!1;X.isCarouselInFeed=!0;X.topSpacingZero=!1;X.continuationIsInitialLoad=!0;X.enableSqueezebackPanels=_.A("web_shorts_enable_squeezeback_panels");X.enableAnchoredPanel=_.A("desktop_shorts_v2_anchored_panel");X.mastheadHeight=
0;X.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};X.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return X};
_.S(yp,_.O);_.H=yp.prototype;_.H.updateLockupContainerTypes=function(X){if(this.eligibleToSwitchToGrid){var t;(t=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||t.forEach(function(G){G.containerType=X})}};
_.H.getItemsPath=function(){return"data.contents"};
_.H.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.H.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",
carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",lockupContainerType:"[[lockupContainerType]]"}},
channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",
connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",
fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",
handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",
properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",
properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",
offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",
productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",
properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",
searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",
properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",
unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",
courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",
liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},
"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.A("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.A("kevlar_low_priority_continuation")}}};
_.H.created=function(){};
_.H.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.H.handleIntersect=function(X){this.notSticky=X[0].intersectionRatio===1};
_.H.attached=function(){var X=this;document.addEventListener("scroll",_.Ik(this,this.updateHeaderState));var t;this.mastheadHeight=((t=document.querySelector("ytd-masthead"))==null?void 0:t.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(G){X.handleIntersect(G)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){X.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.H.detached=function(){document.removeEventListener("scroll",_.Ik(this,this.updateHeaderState));var X;(X=this.intersectionObserver)==null||X.disconnect();var t;(t=this.resizeObserver)==null||t.disconnect()};
_.H.updated=function(X){X.has("data")&&this.updateHeaderState()};
_.H.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(b$q(!this.notSticky))};
_.H.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var X=_.Sm(this.hostElement).querySelector("ytd-comments-header-renderer");X&&(X.hidePanelButton=this.commentsHidePanelButton)}};
_.H.onRetrieveLocation=function(X,t){this.containsComments()&&(this.firstCommentsLoaded=t.hasComments=!0)};
_.H.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.H.onLoadReloadContinuation=function(X,t){var G=this;X.stopPropagation();this.isReloading=!0;_.Yt(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(y){var w=_.gw().resolve(_.fp);y=t(y);w.postData(y).then(function(z){G.onReloadContinuationData(z)})}})};
_.H.onReloadContinuationData=function(X){if(X=this.get("response.continuationContents.itemSectionContinuation",X)||this.get("response.contents.itemSectionRenderer",X)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",X)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",X))this.set("data.contents",X.contents||X.results),X.header&&this.set("data.header",X.header),this.set("data.continuations",
X.continuations||[]);this.isReloading=!1};
_.H.computeContentsClass=function(X){return X?"reloading":""};
_.H.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.H.computeSectionIdentifier=function(X){return X==null?void 0:X.sectionIdentifier};
_.H.computeFitContainer=function(X){return(X==null?void 0:X.sectionIdentifier)==="youchat-item-section"};
_.H.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.A("kevlar_disable_comments_auto_load")};
_.H.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.H.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.H.computeHasDestinationShelfRenderer=function(X){var t,G;return!!(X==null?0:(t=X.contents)==null?0:(G=t[0])==null?0:G.destinationShelfRenderer)};
_.H.computeHasSectionGroupViewModel=function(X){var t,G;return!!(X==null?0:(t=X.contents)==null?0:(G=t[0])==null?0:G.sectionGroupViewModel)};
_.H.computeHasQrCodeRenderer=function(X){var t,G;return!!(X==null?0:(t=X.contents)==null?0:(G=t[0])==null?0:G.qrCodeRenderer)};
_.H.computeStaticCommentsHeader=function(X){return X&&this.containsComments()};
_.H.computeEpRestyle=function(X){return _.A("web_ep_restyling")&&X&&this.containsComments()};
_.H.computeIsContinuationCommentSection=function(X){return(X==null?void 0:X.targetId)==="shorts-engagement-panel-comments-section"||(X==null?void 0:X.targetId)==="comments-section"||(X==null?void 0:X.targetId)==="engagement-panel-comments-section"};
_.H.computeSuppressPaddingDisclaimer=function(){var X,t,G,y;return!!((X=this.data)==null?0:(t=X.contents)==null?0:(G=t[0])==null?0:(y=G.productListHeaderRenderer)==null?0:y.suppressPaddingDisclaimer)};
_.H.computeHeaderStyle=function(X){switch(X==null?void 0:X.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.H.dataChanged=function(){this.firstCommentsLoaded=!1};
_.H.observeDataContentsLength=function(){var X,t;((X=this.data)==null?0:(t=X.contents)==null?0:t.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.H.onYtDismissibleItemDismissedChange=function(X){this._setItemDismissed(X.type==="yt-dismissible-item-dismissed")};
_.H.triggerContinuations=function(){for(var X=_.Sm(this.hostElement).querySelector("#continuations").children,t=0;t<X.length;t++)X[t].trigger()};
_.H.triggerInitialContinuations=function(){for(var X=_.Sm(this.hostElement).querySelector("#continuations").children,t=0;t<X.length;t++)X[t].triggerIfNotPreviouslyTriggered()};
_.H.handleYtItemSectionContinuation=function(X,t){var G;t&&((G=this.data)==null?void 0:G.sectionIdentifier)!==t||(this.set("data.continuations",[X]),this.triggerContinuations())};
_.H.handleYtItemSectionReplace=function(X,t){var G;t&&((G=this.data)==null?void 0:G.sectionIdentifier)!==t||(this.set("data.contents",X),this.set("data.continuations",[]))};
_.H.computeUseHeightHack=function(X){return X&&!_.A("kevlar_disable_height_hack")};
_.H.computeTopSpacingZero=function(X){return X};
_.H.continuationShowButtonChanged=function(){var X=_.Sm(this.hostElement).querySelector("ytd-continuation-item-renderer");X&&(X.showButton=this.continuationShowButton)};
_.H.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("data-changed",this.data))};
_.ke.Object.defineProperties(yp.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.A("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return!!((X=this.data)==null?0:(t=X.contents)==null?0:(G=t[0])==null?0:G.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y,w,z,B;return!!((X=this.data)==null?0:(t=X.contents)==null?0:(G=t[0])==null?0:(y=G.shelfRenderer)==null?0:(w=y.content)==null?0:(z=w.gridRenderer)==null?0:(B=z.targetId)==null?0:B.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return!!((X=this.data)==null?0:(t=X.contents)==null?0:(G=t[0])==null?0:G.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return!!((X=this.data)==null?0:(t=X.contents)==null?0:(G=t[0])==null?0:G.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Yx("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.A("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.A("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
yp.prototype.dataChangedForBinding=yp.prototype.dataChangedForBinding;yp.prototype.continuationShowButtonChanged=yp.prototype.continuationShowButtonChanged;yp.prototype.onYtDismissibleItemDismissedChange=yp.prototype.onYtDismissibleItemDismissedChange;yp.prototype.observeDataContentsLength=yp.prototype.observeDataContentsLength;yp.prototype.dataChanged=yp.prototype.dataChanged;yp.prototype.onServiceRequestCompleted=yp.prototype.onServiceRequestCompleted;yp.prototype.onLoadReloadContinuation=yp.prototype.onLoadReloadContinuation;
yp.prototype.onRetrieveLocation=yp.prototype.onRetrieveLocation;yp.prototype.commentsHidePanelButtonChanged=yp.prototype.commentsHidePanelButtonChanged;yp.prototype.dispatchChipBarIsSticky=yp.prototype.dispatchChipBarIsSticky;yp.prototype.updateLockupContainerTypes=yp.prototype.updateLockupContainerTypes;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],yp.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.AV.YtLazyListBehavior),_.U("design:type",Object)],yp.prototype,"ytLazyListBehavior",void 0);_.E([_.q(_.JX.YtNextContinuationBehavior),_.U("design:type",Object)],yp.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.q(_.oT),_.U("design:type",Object)],yp.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],yp.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],yp.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],yp.prototype,"darkerPanels",void 0);_.E([_.K(),_.U("design:type",Object)],yp.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Boolean)],yp.prototype,"engagementPanel",void 0);_.E([_.K(),_.U("design:type",Object)],yp.prototype,"commentsHidePanelButton",void 0);_.E([_.K(),_.U("design:type",Object)],yp.prototype,"isWatchGrid",void 0);_.E([_.K(),_.U("design:type",Object)],yp.prototype,"continuationShowButton",void 0);_.E([_.K({computed:"computeIsContinuationCommentSection(data)"}),_.U("design:type",Boolean)],yp.prototype,"continuationIsCommentsSection",void 0);
_.E([_.K({value:!0}),_.U("design:type",Boolean)],yp.prototype,"autoFill",void 0);_.E([_.K(),_.U("design:type",Boolean)],yp.prototype,"continuationDisablePrescanVisibility",void 0);_.E([_.K(),_.U("design:type",Boolean)],yp.prototype,"isReloading",void 0);_.E([_.K(),_.U("design:type",Object)],yp.prototype,"isSearch",void 0);_.E([_.K(),_.U("design:type",Object)],yp.prototype,"isConstrainedList",void 0);_.E([_.K(),_.U("design:type",Object)],yp.prototype,"isWatch",void 0);
_.E([_.K(),_.U("design:type",Object)],yp.prototype,"eligibleToSwitchToGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],yp.prototype,"notSticky",void 0);_.E([_.K({selector:_.yE}),_.U("design:type",Object)],yp.prototype,"isGridViewEnabled",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.U("design:type",Object)],yp.prototype,"epRestyle",void 0);
_.E([_.C("isWatch"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],yp.prototype,"hideShortsShelfHeader",null);_.E([_.C("isSearch","isWatch"),_.U("design:type",String),_.U("design:paramtypes",[])],yp.prototype,"thumbnailWidth",null);_.E([_.C("isSearch","isWatch"),_.U("design:type",String),_.U("design:paramtypes",[])],yp.prototype,"sizing",null);
_.E([_.C("isWatch","isGridViewEnabled","data"),_.K({reflectToAttribute:!0}),_.U("design:type",Number),_.U("design:paramtypes",[])],yp.prototype,"lockupContainerType",null);_.E([_.cW("lockupContainerType","data"),_.U("design:type",Function),_.U("design:paramtypes",[Number]),_.U("design:returntype")],yp.prototype,"updateLockupContainerTypes",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],yp.prototype,"pageSubtype",void 0);
_.E([_.K({computed:"computeContainerWidth()"}),_.U("design:type",Number)],yp.prototype,"containerWidth",void 0);_.E([_.K(),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],yp.prototype,"isPlaylist",null);_.E([_.K(),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],yp.prototype,"isClipList",null);_.E([_.K(),_.U("design:type",Object)],yp.prototype,"isCarouselInFeed",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],yp.prototype,"isPlaylistVideoContainer",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],yp.prototype,"isSearchFrictionPage",null);_.E([_.K({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.U("design:type",Boolean)],yp.prototype,"useHeightHack",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.U("design:type",Object)],yp.prototype,"topSpacingZero",void 0);_.E([_.K({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.U("design:type",Boolean)],yp.prototype,"showButton",void 0);_.E([_.K(),_.U("design:type",Boolean)],yp.prototype,"firstCommentsLoaded",void 0);_.E([_.K(),_.U("design:type",Object)],yp.prototype,"continuationIsInitialLoad",void 0);
_.E([_.K({reflectToAttribute:!0,readOnly:!0}),_.U("design:type",Boolean)],yp.prototype,"itemDismissed",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.U("design:type",String)],yp.prototype,"sectionIdentifier",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.U("design:type",String)],yp.prototype,"fitContainer",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.U("design:type",Boolean)],yp.prototype,"hasDestinationShelfRenderer",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.U("design:type",Boolean)],yp.prototype,"staticCommentsHeader",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],yp.prototype,"enableSqueezebackPanels",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],yp.prototype,"enableAnchoredPanel",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.U("design:type",Boolean)],yp.prototype,"hasSectionGroupViewModel",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.U("design:type",Boolean)],yp.prototype,"hasQrCodeRenderer",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.U("design:type",Boolean)],yp.prototype,"suppressDisclaimerSeparator",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.U("design:type",String)],yp.prototype,"headerStyle",void 0);_.E([_.C("isSearch"),_.U("design:type",Object),_.U("design:paramtypes",[])],yp.prototype,"lockupExperiments",null);
_.E([_.C("isSearch"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],yp.prototype,"typographyBump",null);_.E([_.rt("#header"),_.U("design:type",HTMLElement)],yp.prototype,"header",void 0);_.E([_.cW("notSticky"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yp.prototype,"dispatchChipBarIsSticky",null);
_.E([_.cW("commentsHidePanelButton"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yp.prototype,"commentsHidePanelButtonChanged",null);_.E([_.WW("yt-retrieve-location"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],yp.prototype,"onRetrieveLocation",null);
_.E([_.WW("yt-load-reload-continuation"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Function]),_.U("design:returntype")],yp.prototype,"onLoadReloadContinuation",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yp.prototype,"onServiceRequestCompleted",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yp.prototype,"dataChanged",null);
_.E([_.U0("data.contents.length"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yp.prototype,"observeDataContentsLength",null);_.E([_.WW("yt-dismissible-item-dismissed"),_.WW("yt-dismissible-item-undismissed"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],yp.prototype,"onYtDismissibleItemDismissedChange",null);
_.E([_.cW("continuationShowButton"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yp.prototype,"continuationShowButtonChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yp.prototype,"dataChangedForBinding",null);_.E([_.p({is:"ytd-item-section-renderer",disableElementRegistration:!0})],yp);
_.N(yp,"ytd-item-section-renderer",function(){if(Gkz!==void 0)return Gkz;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Gkz=X},{mode:1});var EYP;var pu0=_.Vl(_.Qf("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var U9t={},cnJ=(U9t[0]={title:_.Ag(_.Qf("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ag(_.Qf("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:FV("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},U9t[1]={title:_.Ag(_.Qf("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:FV("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},U9t);_.Xa("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var w3=function(){var X=_.O.apply(this,arguments)||this;X.allVideosCount=0;X.allPlaylistCount=0;X.isOnline=!1;X.shouldRenderDownloadsBanner=!1;X.shouldRenderDownloadsBannerUpsell=!1;X.hasOptedIntoSmartDownloads=!1;X.areAllSmartDownloadsDeleted=!1;X.smartDownloadsCompleted=!1;return X};
_.S(w3,_.O);w3.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
w3.prototype.attached=function(){this.downloadsToRenderChanged()};
w3.prototype.detached=function(){this.set("renderableData",{})};
w3.prototype.downloadsToRenderChanged=function(){var X=_.dV().getState().entities,t=_.Lg(X),G=_.A("kevlar_playlist_dl_page_killswitch")?FYV(X):_.vK(X),y=_.VO6(X),w=_.eO6(X),z=_.PK(t);X=_.a$(X);this.set("renderableData",NC_(G,t,y,w,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,z,X))};
w3.prototype.downloadsToRenderChanged=w3.prototype.downloadsToRenderChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],w3.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],w3.prototype,"renderableData",void 0);_.E([_.K({selector:_.OcV}),_.U("design:type",Object)],w3.prototype,"allVideosCount",void 0);_.E([_.K({selector:Zjv}),_.U("design:type",Object)],w3.prototype,"allPlaylistCount",void 0);_.E([_.K({selector:_.X0}),_.U("design:type",Object)],w3.prototype,"isOnline",void 0);_.E([_.K({selector:_.rPv}),_.U("design:type",Object)],w3.prototype,"shouldRenderDownloadsBanner",void 0);
_.E([_.K({selector:_.UPY}),_.U("design:type",Object)],w3.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.K({selector:_.Nz6}),_.U("design:type",Object)],w3.prototype,"hasOptedIntoSmartDownloads",void 0);_.E([_.K({selector:_.Pgl}),_.U("design:type",Object)],w3.prototype,"areAllSmartDownloadsDeleted",void 0);_.E([_.K({selector:EnJ}),_.U("design:type",Object)],w3.prototype,"smartDownloadsCompleted",void 0);
_.E([_.U0("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],w3.prototype,"downloadsToRenderChanged",null);_.E([_.p({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],w3);
_.N(w3,"ytd-offline-item-section-renderer",function(){if(EYP!==void 0)return EYP;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return EYP=X},
{mode:1});var m9J;var R_e;var zo=function(){return _.O.apply(this,arguments)||this};
_.S(zo,_.O);
zo.prototype.onDataChanged=function(){if(this.JSC$16534_lastData){var X=this.getFilterClass(this.JSC$16534_lastData.status);X&&this.hostElement.classList.remove(X)}var t;(X=this.getFilterClass((t=this.data)==null?void 0:t.status))&&this.hostElement.classList.add(X);X==="selected"?_.Sm(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Sm(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");X==="disabled"?_.Sm(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Sm(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16534_lastData=this.data};
zo.prototype.getFilterClass=function(X){switch(X){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
zo.prototype.onDataChanged=zo.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],zo.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zo.prototype,"onDataChanged",null);_.E([_.p({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],zo);
_.N(zo,"ytd-search-filter-renderer",function(){if(R_e!==void 0)return R_e;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return R_e=X},{mode:_.Cz("kevlar_poly_si_batch_j075")?1:2});var HX=function(){return _.O.apply(this,arguments)||this};
_.S(HX,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],HX.prototype,"data",void 0);_.E([_.p({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],HX);
_.N(HX,"ytd-search-filter-group-renderer",function(){if(m9J!==void 0)return m9J;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return m9J=X},{mode:_.Cz("kevlar_poly_si_batch_j075")?1:2});var i7q;var ob=function(){return _.O.apply(this,arguments)||this};
_.S(ob,_.O);ob.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.O_());this.isCollapsed=!this.isCollapsed};
ob.prototype.navigateToAboutTheseResultsPage=function(){var X=L1("https://www.youtube.com/howyoutubeworks/product-features/search/");X?_.zc(window,X,"_blank"):_.$x(Error("Rh"))};
ob.prototype.dataChanged=function(){this.isCollapsed=!0};
ob.prototype.computeShowBottomBorder=function(){var X,t,G;return!!((X=this.data)==null?0:(t=X.button)==null?0:t.toggleButtonRenderer)||!((G=this.data)==null||!G.aboutTheseResultsButton)};
ob.prototype.dataChanged=ob.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ob.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.U("design:type",Boolean)],ob.prototype,"showBottomBorder",void 0);_.E([_.K(),_.U("design:type",Boolean)],ob.prototype,"renderCollapsibleMenu",void 0);
_.E([_.K(),_.U("design:type",Boolean)],ob.prototype,"isCollapsed",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ob.prototype,"dataChanged",null);_.E([_.p({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],ob);
_.N(ob,"ytd-search-sub-menu-renderer",function(){if(i7q!==void 0)return i7q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return i7q=X},{mode:1});var LeY;var vYR=new _.FB("SECTION_LIST_RENDERER_TOKEN");var aqh;var JF=function(){return _.O.apply(this,arguments)||this};
_.S(JF,_.O);JF.prototype.computeStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],JF.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.U("design:type",String)],JF.prototype,"headerStyle",void 0);_.E([_.p({is:"ytd-text-header-renderer",disableElementRegistration:!0})],JF);
_.N(JF,"ytd-text-header-renderer",function(){if(aqh!==void 0)return aqh;var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return aqh=X},{mode:1});var lq4;var BX=function(){return _.O.apply(this,arguments)||this};
_.S(BX,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],BX.prototype,"data",void 0);_.E([_.p({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],BX);
_.N(BX,"ytd-minor-moment-header-renderer",function(){if(lq4!==void 0)return lq4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return lq4=X},{mode:1});var x9R;var nA=function(){return _.O.apply(this,arguments)||this};
_.S(nA,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],nA.prototype,"data",void 0);_.E([_.p({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],nA);
_.N(nA,"ytd-minor-moment-setting-alert-renderer",function(){if(x9R!==void 0)return x9R;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return x9R=X},{mode:1});var fqq;var Mvt;var Vp=function(){var X=_.O.apply(this,arguments)||this;X.booleanSettingById=!1;X.smartDownloadsEnabledVE=_.ai(128287);X.smartDownloadsDisabledVE=_.ai(128286);X.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return X};
_.S(Vp,_.O);_.H=Vp.prototype;_.H.attachSmartDownloadsSettingVes=function(){var X;this.activeVeForLogging||((X=this.data)==null?void 0:X.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Cc(_.Pj(),this.smartDownloadsEnabledVE),_.Cc(_.Pj(),this.smartDownloadsDisabledVE))};
_.H.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Yt(this.hostElement,"yt-settings-switch-ready")};
_.H.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.H.onSwitchChange=function(X){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(X=_.k3(X).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.A("kevlar_settings_switch_resolve_command_killswitch")?_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(X)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.H.handleUpdateSettingsSwitch=function(X){(X=_.Y(X,kTB))&&this.data&&this.data.id===X.id&&this.set("data.enabled",!!X.enabled)};
_.H.onToggleSettingsSwitch=function(X,t){this.data&&this.data.id===X&&this.set("data.enabled",t!=null?t:!this.data.enabled)};
_.H.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.gz.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.H.maybeLogSmartDownloadsSettingVisibility=function(){var X=_.lw(),t;X&&((t=this.data)==null?void 0:t.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.o$(X,[this.smartDownloadsEnabledVE]),_.Jg(X,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.o$(X,[this.smartDownloadsDisabledVE]),_.Jg(X,[this.smartDownloadsEnabledVE])))};
_.H.maybeLogSmartDownloadsSettingClick=function(){var X;((X=this.data)==null?void 0:X.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.OE(_.Pj(),this.activeVeForLogging)};
_.H.updateDataEnabledFromBinding=function(X){this.set("data.enabled",X.detail.value)};
_.ke.Object.defineProperties(Vp.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var X=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!X&&(X=this.ytRendererBehavior.getSimpleString(this.data.title));return X}}});
Vp.prototype.dataChanged=Vp.prototype.dataChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],Vp.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Vp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Vp.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],Vp.prototype,"data",void 0);_.E([_.K({selector:function(X,t){if(Object.keys(X==null?void 0:X.entities).length)switch(t){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Tz6(X.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.U("design:type",Object)],Vp.prototype,"booleanSettingById",void 0);_.E([_.K(),_.U("design:type",_.vs)],Vp.prototype,"activeVeForLogging",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Vp.prototype,"toggleAriaLabel",null);_.E([_.U0("data"),_.U0("booleanSettingById"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Vp.prototype,"dataChanged",null);
_.E([_.p({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Vp);
_.N(Vp,"ytd-settings-switch-renderer",function(){if(Mvt!==void 0)return Mvt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Mvt=X},{mode:1});var bI=function(){return _.O.apply(this,arguments)||this};
_.S(bI,_.O);bI.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}}}}};
_.ke.Object.defineProperties(bI.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var X=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(X+=" remove-left-margin");this.data.extraBottomSpace&&(X+=" extra-bottom-space");return X}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bI.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],bI.prototype,"contentsClassName",null);_.E([_.p({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],bI);
_.N(bI,"ytd-minor-moment-setting-section-renderer",function(){if(fqq!==void 0)return fqq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return fqq=X},{mode:1});var XDz;var k2=function(){return _.O.apply(this,arguments)||this};
_.S(k2,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],k2.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],k2.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],k2);
_.N(k2,"ytd-empty-product-details-renderer",function(){if(XDz!==void 0)return XDz;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return XDz=X},{mode:1});var $vP;var tuP;var d3=function(){var X=_.O.apply(this,arguments)||this;X.expanded=!0;return X};
_.S(d3,_.O);d3.prototype.getBadgeRowClass=function(X,t,G){for(var y=_.J(this.hostElement.querySelectorAll("yt-img-shadow")),w=y.next();!w.done;w=y.next())w.value.onShow();X=X.selected;return G?X!==-1?X===t?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(X!==void 0?X:0)===t?"badge-line":"badge-hidden"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],d3.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],d3.prototype,"expanded",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],d3);
_.N(d3,"ytd-sponsorships-loyalty-badges-renderer",function(){if(tuP!==void 0)return tuP;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return tuP=X},{mode:1});var G9q;var e3=function(){var X=_.O.apply(this,arguments)||this;X.expanded=!0;return X};
_.S(e3,_.O);e3.prototype.getContainerClasses=function(X,t){X=X?"expanded":"collapsed";t&&(X+=" item");return X};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],e3.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],e3.prototype,"expanded",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],e3);
_.N(e3,"ytd-sponsorships-perk-renderer",function(){if(G9q!==void 0)return G9q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return G9q=X},{mode:1});var yOS;var j3=function(){var X=_.O.apply(this,arguments)||this;X.expanded=!0;return X};
_.S(j3,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],j3.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],j3.prototype,"expanded",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],j3);
_.N(j3,"ytd-sponsorships-perks-renderer",function(){if(yOS!==void 0)return yOS;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return yOS=X},{mode:1});var g3=function(){var X=_.O.apply(this,arguments)||this;X.isCollapsed=!1;return X};
_.S(g3,_.O);g3.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
g3.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
g3.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var X;this.expandCollapseButton=_.Y((X=this.data)==null?void 0:X.expandButton,_.G4)}else{var t;this.expandCollapseButton=_.Y((t=this.data)==null?void 0:t.collapseButton,_.G4)}};
g3.prototype.updateExpandCollapseButton=g3.prototype.updateExpandCollapseButton;g3.prototype.onDataChanged=g3.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],g3.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],g3.prototype,"isCollapsed",void 0);_.E([_.K(),_.U("design:type",Object)],g3.prototype,"expandCollapseButton",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g3.prototype,"onDataChanged",null);_.E([_.U0("data","isCollapsed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g3.prototype,"updateExpandCollapseButton",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],g3);
_.N(g3,"ytd-sponsorships-expandable-perks-renderer",function(){if($vP!==void 0)return $vP;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return $vP=X},{mode:1});var wDz;var Fz=function(){return _.O.apply(this,arguments)||this};
_.S(Fz,_.O);Fz.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Fz.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Fz.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Fz);
_.N(Fz,"ytd-sponsorships-actionable-message-renderer",function(){if(wDz!==void 0)return wDz;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return wDz=X},{mode:1});var z14;var To=function(){return _.O.apply(this,arguments)||this};
_.S(To,_.O);_.H=To.prototype;_.H.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.H.getExpansionIcon=function(X){return X?"COLLAPSE":"EXPAND"};
_.H.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.H.computeMessageContainerStyle=function(X){var t=X.expandableItems?" style-clickable":"";return X.messageContainerStyle?X.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+t:"style-unspecified"+t};
_.H.isSinglePerk=function(X){return!!X.messageContainerStyle&&(X.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||X.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.H.onExpandedChanged=function(){var X=this;if(this.expanded)for(var t=_.J(this.hostElement.querySelectorAll("yt-img-shadow")),G=t.next();!G.done;G=t.next())G.value.onShow();_.V8(this,function(){_.Yt(X.hostElement,"yt-refit")})};
_.H.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
To.prototype.onDataChanged=To.prototype.onDataChanged;To.prototype.onExpandedChanged=To.prototype.onExpandedChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],To.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],To.prototype,"expanded",void 0);
_.E([_.cW("expanded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],To.prototype,"onExpandedChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],To.prototype,"onDataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],To);
_.N(To,"ytd-sponsorships-expandable-message-renderer",function(){if(z14!==void 0)return z14;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return z14=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var H64;var AF=function(){return _.O.apply(this,arguments)||this};
_.S(AF,_.O);AF.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"}}}}};
AF.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.Y(this.data.endButton,_.G4).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
AF.prototype.onDataChanged=AF.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],AF.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],AF.prototype,"onDataChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],AF);
_.N(AF,"ytd-sponsorships-heading-renderer",function(){if(H64!==void 0)return H64;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return H64=X},{mode:1});var oGq;var Y2=function(){return _.O.apply(this,arguments)||this};
_.S(Y2,_.O);_.E([_.K(),_.U("design:type",Object)],Y2.prototype,"data",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Y2);
_.N(Y2,"ytd-sponsorships-links-renderer",function(){if(oGq!==void 0)return oGq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return oGq=X},{mode:1});var JOq;var sg=function(){return _.O.apply(this,arguments)||this};
_.S(sg,_.O);_.H=sg.prototype;_.H.onDataChanged=function(){if(this.data&&this.data.expandableItems){var X;(X=_.Sm(this.hostElement).querySelector("tp-yt-paper-button"))==null||X.setAttribute("role","button")}else{var t;(t=_.Sm(this.hostElement).querySelector("tp-yt-paper-button"))==null||t.removeAttribute("role")}};
_.H.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.H.getExpansionIcon=function(X){return X?"COLLAPSE":"EXPAND"};
_.H.getTileClasses=function(X){return X?"tile expandable-tile":"tile"};
_.H.getButtonDisabled=function(X){return X?void 0:""};
sg.prototype.onDataChanged=sg.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sg.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],sg.prototype,"expanded",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sg.prototype,"onDataChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],sg);
_.N(sg,"ytd-sponsorships-list-tile-renderer",function(){if(JOq!==void 0)return JOq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return JOq=X},{mode:1});var BH4;var nGt;var DX=function(){return _.O.apply(this,arguments)||this};
_.S(DX,_.O);DX.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],DX.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],DX);
_.N(DX,"ytd-sponsorships-promotion-renderer",function(){if(nGt!==void 0)return nGt;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return nGt=X},{mode:1});var VuB;var S3=function(){return _.O.apply(this,arguments)||this};
_.S(S3,_.O);S3.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],S3.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],S3);
_.N(S3,"ytd-sponsorships-purchase-option-renderer",function(){if(VuB!==void 0)return VuB;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return VuB=X},{mode:1});var b6S;var k9q;var dvz=function(){return _.O.apply(this,arguments)||this};
_.S(dvz,_.O);_.E([_.K(),_.U("design:type",Object)],dvz.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],dvz);
_.N(dvz,"ytd-ypc-offer-promo-renderer",function(){if(k9q!==void 0)return k9q;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return k9q=X},{mode:1});var hF=function(){return _.O.apply(this,arguments)||this};
_.S(hF,_.O);_.H=hF.prototype;
_.H.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"}}}}};
_.H.expansionCTA=function(X,t){return X&&(t?X.collapseCallToAction:X.expansionCallToAction)};
_.H.getExpansionIcon=function(X){return X?"COLLAPSE":"EXPAND"};
_.H.expansionCallToActionTap=function(){var X=this;this.expanded=!this.expanded;_.V8(this,function(){_.Yt(X.hostElement,"yt-refit")})};
_.H.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var X,t=(X=this.data)==null?void 0:X.onVisible;t&&this.ytComponentBehavior.resolveCommand(t)};
_.H.computeDisplayTitle=function(X){return!(!X||this.titledisplaystatus!=="show")};
_.H.computeDisplaySeparator=function(){return!1};
_.H.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
hF.prototype.onDataChanged=hF.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],hF.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],hF.prototype,"data",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],hF.prototype,"expanded",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],hF.prototype,"purchaseButtonClicked",void 0);_.E([_.K({reflectToAttribute:!0,value:"show"}),_.U("design:type",String)],hF.prototype,"titledisplaystatus",void 0);_.E([_.K({computed:"computeDisplayTitle(data.title)"}),_.U("design:type",Boolean)],hF.prototype,"displayTitle",void 0);
_.E([_.K({computed:"computeDisplaySeparator(data)"}),_.U("design:type",Boolean)],hF.prototype,"displaySeparator",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],hF.prototype,"onDataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],hF);
_.N(hF,"ytd-sponsorships-tier-renderer",function(){if(b6S!==void 0)return b6S;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return b6S=X},{mode:2});var ZX=function(){return _.O.apply(this,arguments)||this};
_.S(ZX,_.O);
ZX.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"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ZX.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],ZX);
_.N(ZX,"ytd-sponsorships-management-renderer",function(){if(BH4!==void 0)return BH4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return BH4=X},{mode:1});var e1q;var qf=function(){return _.O.apply(this,arguments)||this};
_.S(qf,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qf.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],qf);
_.N(qf,"ytd-open-in-native-app-view-model",function(){if(e1q!==void 0)return e1q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return e1q=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var jzS;var gGo;var FSh=_.Vc(["top-"]),THP=_.Vc(["bottom-"]),AOe=_.Vc(["left-"]),YPe=_.Vc(["right-"]),szt={},Dvq=function(X,t,G){X.removeAttribute("top-"+G);X.removeAttribute("bottom-"+G);X.removeAttribute("left-"+G);X.removeAttribute("right-"+G);t&&(t.top&&_.kw([_.T6(FSh)],X,"top-"+G,t.top),t.bottom&&_.kw([_.T6(THP)],X,"bottom-"+G,t.bottom),t.left&&_.kw([_.T6(AOe)],X,"left-"+G,t.left),t.right&&_.kw([_.T6(YPe)],X,"right-"+G,t.right))};
szt.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(X){var t,G=_.Sm((t=this.hostElement)!=null?t:this),y;t=this.cardItemBoxBehaviorMarginTargetId&&G?G.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(y=this.hostElement)!=null?y:this;Dvq(t,X,"margin")},
cardItemContainerPaddingChanged_:function(X){var t,G=_.Sm((t=this.hostElement)!=null?t:this),y;t=this.cardItemBoxBehaviorPaddingTargetId&&G?G.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(y=this.hostElement)!=null?y:this;Dvq(t,X,"padding")}}];var CA={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 SPe;var h1J;var KA=function(){return _.O.apply(this,arguments)||this};
_.S(KA,_.O);KA.prototype.textColorChanged_=function(){this.hostElement.style.color=CA[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
KA.prototype.textColorChanged_=KA.prototype.textColorChanged_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.E([_.q(szt.YtCardItemBoxBehavior),_.U("design:type",Object)],KA.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],KA.prototype,"data",void 0);_.E([_.cW("data.textColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],KA.prototype,"textColorChanged_",null);
_.E([_.$F({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],KA);
_.N(KA,"yt-card-item-text-renderer",function(){if(h1J===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;SPe===void 0&&(SPe=document.createElement("template"));var y=SPe;G.call(t,y.content.cloneNode(!0),X.content.firstChild);h1J=X}X=h1J;return X},{mode:2});var Z6R;var qPz;var Og=function(){return _.O.apply(this,arguments)||this};
_.S(Og,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Og.prototype,"data",void 0);_.E([_.$F({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Og);
_.N(Og,"yt-card-item-badge-renderer",function(){if(qPz===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Z6R===void 0&&(Z6R=document.createElement("template"));var y=Z6R;G.call(t,y.content.cloneNode(!0),X.content.firstChild);qPz=X}X=qPz;return X},{mode:2});var CKY;var KSP;var uI=function(){return _.O.apply(this,arguments)||this};
_.S(uI,_.O);uI.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uI.prototype,"data",void 0);_.E([_.$F({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],uI);
_.N(uI,"yt-card-item-text-collection-renderer",function(){if(KSP===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;CKY===void 0&&(CKY=document.createElement("template"));var y=CKY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);KSP=X}X=KSP;return X},{mode:2});var O6J;var uuB;var Qp=function(){return _.O.apply(this,arguments)||this};
_.S(Qp,_.O);Qp.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]]"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Qp.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Number)],Qp.prototype,"iconSize",void 0);_.E([_.$F({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Qp);
_.N(Qp,"yt-card-item-text-with-button-renderer",function(){if(uuB===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;O6J===void 0&&(O6J=document.createElement("template"));var y=O6J;G.call(t,y.content.cloneNode(!0),X.content.firstChild);uuB=X}X=uuB;return X},{mode:2});var Ib=function(){return _.O.apply(this,arguments)||this};
_.S(Ib,_.O);Ib.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Ib.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ib.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Ib);
_.N(Ib,"ytd-commerce-cart-summary-line-item-renderer",function(){if(gGo!==void 0)return gGo;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return gGo=X},{mode:1});_.Xa("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var WX=function(){var X=_.O.apply(this,arguments)||this;X.hidden=!1;return X};
_.S(WX,_.O);_.H=WX.prototype;_.H.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"}}}}};
_.H.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.H.updateSummary=function(){var X=this.commerceCartCheckoutButtonEntity,t;if(((t=this.data)==null?0:t.cartButton)&&X.checkoutSummaryText){var G,y=fy((G=this.data)==null?void 0:G.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+y+".cardItemTextRenderer.text",Ms(X.checkoutSummaryText));if(X.checkoutDetailText){var w;G=fy((w=this.data)==null?void 0:w.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+G+".cardItemTextRenderer.text",Ms(X.checkoutDetailText))}if(X.checkoutAdditionalMetadataText){var z;
w=fy((z=this.data)==null?void 0:z.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+w+".cardItemTextRenderer.text",Ms(X.checkoutAdditionalMetadataText))}}else X.estimatedTotalPrice&&(z=fy((y=this.data)==null?void 0:y.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+z+".cardItemTextRenderer.text",Ms(X.estimatedTotalPrice)))};
_.H.updateIsHidden=function(){var X,t=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.isHidden;t!==void 0&&(this.hidden=t)};
_.H.updateCheckoutButton=function(){var X,t=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.isDisabled;t!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",t);var G;X=(G=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:G.innertubeCommand;X!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",X);var y;G=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.checkoutButtonText;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:G})};
WX.prototype.entityChanged=WX.prototype.entityChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],WX.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],WX.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],WX.prototype,"fullWidth",void 0);_.E([_.K(),_.U("design:type",Object)],WX.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],WX.prototype,"compact",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],WX.prototype,"hidden",void 0);
_.E([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Z3A}),_.U("design:type",Object)],WX.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.cW("commerceCartCheckoutButtonEntity","data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],WX.prototype,"entityChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],WX);
_.N(WX,"ytd-commerce-cart-checkout-button-renderer",function(){if(jzS!==void 0)return jzS;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return jzS=X},{mode:2});var QzP;_.Icq={};
_.Icq.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",_.Ik(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Ik(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(X){!this.tappableItemBehaviorTapEnabled||X.keyCode!==13&&X.keyCode!==32||X.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var X=this.data.onTap;X.ypcGetCartEndpoint?(_.hE(this.hostElement,[X]),this.tappableItemBehaviorTapEnabled=!1):X.ypcOffersEndpoint?_.hE(this.hostElement,[X]):_.Z0(this.hostElement,[X],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(X){this.tappableItemBehaviorTapEnabled=!!X},
tappableItemBehaviorOnTapEnabledChanged_:function(){var X=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(X.setAttribute("tabIndex",0),X.setAttribute("role","button")):(X.removeAttribute("tabIndex"),X.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(X){X.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var WSq;var cOq;var cX=function(){return _.O.apply(this,arguments)||this};
_.S(cX,_.O);cX.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.$W("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.$W("sharingToggleButtonAndDefaultButton")}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],cX.prototype,"data",void 0);_.E([_.$F({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],cX);
_.N(cX,"yt-card-item-actions-renderer",function(){if(cOq===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;WSq===void 0&&(WSq=document.createElement("template"));var y=WSq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);cOq=X}X=cOq;return X},{mode:2});var pDR;var rO4;var NHq;var PKh;var EGq;var Uvh;var pA=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return X};
_.S(pA,_.O);pA.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
pA.prototype.handleDarkModeToggledAction_=function(X){this.isDarkTheme_=X};
pA.prototype.computeThemeImage_=function(X,t){if(!X||!X.imageLight)return!1;this.isCircular_=X.isCircular;X.imageWidth&&(this.hostElement.style.width=X.imageWidth+"px");X.imageHeight&&(this.hostElement.style.height=X.imageHeight+"px");X.borderWidth&&(this.image.style.borderWidth=X.borderWidth+"px",this.image.style.borderStyle="solid");X.borderColor&&(this.image.style.borderColor=_.yY(X.borderColor));return t&&X.imageDark?X.imageDark:X.imageLight};
pA.prototype.computeThemeIcon_=function(X){var t,G;if(!(X==null?0:(t=X.themedIcon)==null?0:(G=t.icon)==null?0:G.iconType))return!1;this.icon.style.color=CA[X.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(X.imageWidth||18)+"px";this.icon.style.height=(X.imageHeight||18)+"px";return _.Q2(X.themedIcon.icon.iconType)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],pA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(szt.YtCardItemBoxBehavior),_.U("design:type",Object)],pA.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],pA.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],pA.prototype,"data",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],pA.prototype,"fit",void 0);_.E([_.K(),_.U("design:type",Boolean)],pA.prototype,"isDarkTheme_",void 0);_.E([_.K({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.U("design:type",Object)],pA.prototype,"themeImage_",void 0);_.E([_.K({computed:"computeThemeIcon_(data)"}),_.U("design:type",Object)],pA.prototype,"themeIcon_",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Object)],pA.prototype,"isCircular_",void 0);
_.E([_.rt("#image"),_.U("design:type",Object)],pA.prototype,"image",void 0);_.E([_.rt("#icon"),_.U("design:type",Object)],pA.prototype,"icon",void 0);_.E([_.$F({is:"yt-themed-image-renderer",disableElementRegistration:!0})],pA);
_.N(pA,"yt-themed-image-renderer",function(){if(Uvh===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;EGq===void 0&&(EGq=document.createElement("template"));var y=EGq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Uvh=X}X=Uvh;return X},{mode:2});var r3=function(){return _.O.apply(this,arguments)||this};
_.S(r3,_.O);r3.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"}}}}};
r3.prototype.computeImagePlacement_=function(X){return X||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],r3.prototype,"data",void 0);_.E([_.K({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.U("design:type",String)],r3.prototype,"imagePlacement",void 0);
_.E([_.$F({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],r3);
_.N(r3,"yt-card-item-text-with-image-renderer",function(){if(PKh===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;NHq===void 0&&(NHq=document.createElement("template"));var y=NHq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);PKh=X}X=PKh;return X},{mode:2});var Nf=function(){return _.O.apply(this,arguments)||this};
_.S(Nf,_.O);Nf.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"}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Nf.prototype,"data",void 0);_.E([_.$F({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Nf);
_.N(Nf,"yt-card-item-error-renderer",function(){if(rO4===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;pDR===void 0&&(pDR=document.createElement("template"));var y=pDR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);rO4=X}X=rO4;return X},{mode:2});var mvR;var R1S;_.Xa("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var PX=function(){return _.O.apply(this,arguments)||this};
_.S(PX,_.O);_.H=PX.prototype;
_.H.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"}}}}};
_.H.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.H.backgroundColorChanged_=function(){var X,t=(X=this.data)==null?void 0:X.backgroundColor;X=CA[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Sm(this.hostElement).querySelector("#main-content").style.backgroundColor=X};
_.H.headerPromoBackgroundColorChanged_=function(){var X,t=(X=this.data)==null?void 0:X.headerPromoBackgroundColor;X=CA[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Sm(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=X};
_.H.errorRendererVisibilityChanged_=function(){var X=this.isExpanded_,t;this.isErrorRendererVisible_=!((t=this.data)==null||!t.errorRenderer)&&!X};
_.H.onYtToggleButton_=function(X,t){this.isExpanded_=t.toggled};
PX.prototype.onYtToggleButton_=PX.prototype.onYtToggleButton_;PX.prototype.errorRendererVisibilityChanged_=PX.prototype.errorRendererVisibilityChanged_;PX.prototype.headerPromoBackgroundColorChanged_=PX.prototype.headerPromoBackgroundColorChanged_;PX.prototype.backgroundColorChanged_=PX.prototype.backgroundColorChanged_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],PX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(szt.YtCardItemBoxBehavior),_.U("design:type",Object)],PX.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.q(_.Icq.YtTappableItemBehavior),_.U("design:type",Object)],PX.prototype,"ytTappableItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],PX.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],PX.prototype,"isExpanded_",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],PX.prototype,"isErrorRendererVisible_",void 0);_.E([_.cW("data.backgroundColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PX.prototype,"backgroundColorChanged_",null);_.E([_.cW("data.headerPromoBackgroundColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PX.prototype,"headerPromoBackgroundColorChanged_",null);
_.E([_.cW("data.errorRenderer","isExpanded_"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PX.prototype,"errorRendererVisibilityChanged_",null);_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[Event,Object]),_.U("design:returntype")],PX.prototype,"onYtToggleButton_",null);_.E([_.$F({is:"yt-card-item-renderer",disableElementRegistration:!0})],PX);
_.N(PX,"yt-card-item-renderer",function(){if(R1S===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;mvR===void 0&&(mvR=document.createElement("template"));var y=mvR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);R1S=X}X=R1S;return X},{mode:2});_.Xa("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Eg=function(){var X=_.O.apply(this,arguments)||this;X.hidden=!1;return X};
_.S(Eg,_.O);_.H=Eg.prototype;_.H.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.H.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.H.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var X,t=(X=this.commerceCartHeaderEntity)==null?void 0:X.isHidden;t!==void 0&&(this.hidden=t)}};
_.H.updateTitle=function(){var X=this.commerceCartHeaderEntity.isDisabled,t,G,y=(G=_.Y((t=this.data)==null?void 0:t.item,Zv4))==null?void 0:G.headingRenderer;y&&(t=fy(y,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+t+".0.cardItemTextRenderer.textColor",X?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.H.updateSummaryText=function(){var X=this.commerceCartHeaderEntity;if(this.compact){var t,G,y=(G=_.Y((t=this.data)==null?void 0:t.item,Zv4))==null?void 0:G.headingRenderer;y&&(t=fy(y,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+t+".1.cardItemTextRenderer.text",X.shortHeaderSummaryText?Ms(X.shortHeaderSummaryText):X.headerSummaryText?Ms(X.headerSummaryText):""))}else{var w;if(t=(w=_.Y((y=this.data)==null?void 0:y.item,Zv4))==null?void 0:w.additionalInfoRenderer)t=fy(t,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".text",X.headerSummaryText?Ms(X.headerSummaryText):"")}};
_.H.updateCheckoutButton=function(){var X=this.commerceCartHeaderEntity,t,G,y=(G=_.Y((t=this.data)==null?void 0:t.item,Zv4))==null?void 0:G.additionalInfoRenderer;t=fy(y,"buttonRenderer");var w;G=(w=this.commerceCartHeaderEntity)==null?void 0:w.isButtonDisabled;var z;w=(z=this.commerceCartHeaderEntity)==null?void 0:z.isButtonHidden;G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".buttonRenderer.isDisabled",G);w!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
w);var B;X=(B=X.checkoutButtonCommand)==null?void 0:B.innertubeCommand;X!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".buttonRenderer.command",X)};
Eg.prototype.entityChanged=Eg.prototype.entityChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],Eg.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Eg.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Eg.prototype,"compact",void 0);_.E([_.K({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(X,t){return _.Kg(X.entities,"commerceCartHeaderEntity",t)}}),
_.U("design:type",Object)],Eg.prototype,"commerceCartHeaderEntity",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Eg.prototype,"hidden",void 0);_.E([_.cW("commerceCartHeaderEntity","data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Eg.prototype,"entityChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Eg);
_.N(Eg,"ytd-commerce-cart-header-renderer",function(){if(QzP!==void 0)return QzP;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return QzP=X},{mode:1});var i64;var LSP=_.PI(function(X,t){var G;return(G=X.onChangeCallback)==null?void 0:G.call(X,t)},1E3),vGY=_.Fp(function(X){var t=X.data;
var G=X.iconMinus;X=X.iconPlus;var y=function(){return!!t().disabled},w=_.J(_.sm(0,void 0,"r56zNb")),z=w.next().value,B=w.next().value;
w={};w=_.cl("yt-spec-quantity-incrementer-shape__icon",(w["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return y()||z()===(t().onRemoveCommand?0:1)},w));
var V={};V=_.cl("yt-spec-quantity-incrementer-shape__icon",(V["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return z()>=t().maxValue||y()},V));
var b={};b=_.cl("yt-spec-quantity-incrementer-shape__text",(b["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return z()>t().maxValue},b["yt-spec-quantity-incrementer-shape__text--text-disabled"]=y,b));
var e=_.NI(function(){if(z()===1){var F,T;(T=(F=t()).onRemoveCommand)==null||T.call(F)}F=z()>t().maxValue?t().maxValue:z()-1;B(F);LSP(t(),F);return!1}),g=_.NI(function(){if(z()===t().maxValue)return!1;
var F=z()+1;B(F);LSP(t(),F);return!1});
_.R2(function(){B(t().value)});
return _.k("quantity-incrementer-shape",null,_.k("div",{class:"yt-spec-quantity-incrementer-shape"},_.k("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return z()===(t().onRemoveCommand?0:1)||y()},
"aria-label":function(){return z()!==1?t().minusLabel:t().minimumReachedLabel},
"on:click":e},_.k(_.LX,{model:{circular:!0}}),_.k("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.k("div",{class:w},G()))),_.k("div",{class:b},z),_.k("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return z()>=t().maxValue||y()},
"aria-label":function(){return z()!==t().maxValue?t().plusLabel:t().maximumReachedLabel},
"on:click":g},_.k(_.LX,{model:{circular:!0}}),_.k("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.k("div",{class:V},X())))))},"ce");_.DW(_.Fp(function(X){function t(){G().onRemoveCommand&&_.JH(G().onRemoveCommand)}
var G=X.data;var y=_.Pk(k36,function(){return G().quantityIncrementerEntityKey});
return _.k("yt-quantity-incrementer-view-model",null,_.k(vGY,{data:function(){var w=G(),z;var B=y()?!((z=y())==null||!z.disabled):!1;var V;z=y()?(V=y())==null?void 0:V.quantity:G().quantity;return U2w(w,B,t,z)},
iconMinus:function(){return _.k(_.mw,{icon:"BAR_HORIZONTAL",className:_.pX("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.k(_.mw,{icon:"ADD",className:_.pX("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"de"),"yt-quantity-incrementer-view-model",{props:{data:_.bR}});var Ug=function(){var X=_.O.apply(this,arguments)||this;X.compact=!1;X.hasQuantityIncrementer=!1;return X};
_.S(Ug,_.O);Ug.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"}}}};
Ug.prototype.computeHasQuantityIncrementer=function(){var X;return!!_.Y((X=this.data)==null?void 0:X.picker,OvR)};
Ug.prototype.onLabelClick=function(){var X;(X=this.dropdownEl)==null||X.open()};
_.E([_.rt("ytd-dropdown-renderer"),_.U("design:type",Object)],Ug.prototype,"dropdownEl",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ug.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ug.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],Ug.prototype,"quantityColor",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Ug.prototype,"compact",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.U("design:type",Object)],Ug.prototype,"hasQuantityIncrementer",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Ug);
_.N(Ug,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(i64!==void 0)return i64;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return i64=X},{mode:1});var acq;var lco;var m8=function(){return _.O.apply(this,arguments)||this};
_.S(m8,_.O);m8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
m8.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
m8.prototype.updateTitle=function(){var X=this.disabledCartItemEntity;X.disableActionName&&this.set("data.title",Ms(X.disableActionName))};
m8.prototype.updateButton=function(){var X,t=(X=this.disabledCartItemEntity.undoCommand)==null?void 0:X.innertubeCommand;t!==void 0&&(this.set("data.actionButton.buttonRenderer.command",t),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
m8.prototype.entityChanged=m8.prototype.entityChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],m8.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(X,t){return _.Kg(X.entities,"disabledCartItemEntity",t)}}),
_.U("design:type",Object)],m8.prototype,"disabledCartItemEntity",void 0);_.E([_.K(),_.U("design:type",Object)],m8.prototype,"data",void 0);_.E([_.cW("disabledCartItemEntity","data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],m8.prototype,"entityChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],m8);
_.N(m8,"ytd-disabled-cart-item-renderer",function(){if(lco!==void 0)return lco;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return lco=X},{mode:1});_.Xa("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Rb=function(){var X=_.O.apply(this,arguments)||this;X.compact=!1;X.hidden=!1;X.errorHidden=!1;X.noOnTap=!1;return X};
_.S(Rb,_.O);_.H=Rb.prototype;
_.H.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"}}}};
_.H.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.H.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var X=this.firstButtonElement;X.alignByText=!0;X.iconAlignByText=!0}};
_.H.computeNoOnTap=function(X){return!X};
_.H.updateQuantityColor=function(){if(this.pickerElement){var X,t=(X=this.commerceCartItemEntity)==null?void 0:X.quantityColor;this.pickerElement.quantityColor=t}};
_.H.updateTotalPriceColor=function(){var X,t=(X=this.commerceCartItemEntity)==null?void 0:X.totalPriceColor;if(t){var G;X=_.Y((G=this.data)==null?void 0:G.quantityPicker,CRq);if(G=_.Y(X==null?void 0:X.price,qbq))G.textColor=t}};
_.H.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var X,t=(X=this.commerceCartItemEntity)==null?void 0:X.isHidden;t!==void 0&&(this.hidden=t)}};
_.H.updateHideErrorMessage=function(){var X,t=(X=this.commerceCartItemEntity)==null?void 0:X.hideErrorMessage;t!==void 0&&(this.errorHidden=t)};
_.H.updateQuantity=function(){var X=this,t,G=(t=this.commerceCartItemEntity)==null?void 0:t.quantity,y;t=(y=this.commerceCartItemEntity)==null?void 0:y.totalPrice;if(G){this.updateTotalPriceColor();this.updateQuantityColor();var w;y=_.Y((w=this.data)==null?void 0:w.quantityPicker,CRq);if(w=_.Y(y==null?void 0:y.price,qbq))w.text=t?{simpleText:t.content}:void 0;if(t=_.Y(y==null?void 0:y.picker,OvR))t.quantity=G;var z;if(w=(z=_.Y(y==null?void 0:y.picker,ueq))==null?void 0:z.entries){z=!1;t=void 0;w=
_.J(w);for(y=w.next();!y.done;y=w.next())y=y.value,y.dropdownItemRenderer&&(t||(t=y.dropdownItemRenderer),y.dropdownItemRenderer.isSelected=!1,G===y.dropdownItemRenderer.int32Value&&(z=!0,y.dropdownItemRenderer.isSelected=!0));!z&&t&&(t.isSelected=!0)}_.V8(this,function(){var B;X.set("data.quantityPicker",_.RH.unsafeClone((B=X.data)==null?void 0:B.quantityPicker))})}};
Rb.prototype.onYtRendererstamperFinished=Rb.prototype.onYtRendererstamperFinished;Rb.prototype.entityChanged=Rb.prototype.entityChanged;_.E([_.K(),_.U("design:type",Object)],Rb.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Rb.prototype,"compact",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Rb.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Rb.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(X,t){return _.Kg(X.entities,"commerceCartItemEntity",t)}}),
_.U("design:type",Object)],Rb.prototype,"commerceCartItemEntity",void 0);_.E([_.K(),_.U("design:type",Object)],Rb.prototype,"quantityPicker",void 0);_.E([_.K(),_.U("design:type",Object)],Rb.prototype,"compactQuantityPicker",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Rb.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Rb.prototype,"errorHidden",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.U("design:type",Object)],Rb.prototype,"noOnTap",void 0);_.E([_.rt("ytd-commerce-cart-item-quantity-picker-renderer"),_.U("design:type",Object)],Rb.prototype,"pickerElement",void 0);_.E([_.rt("yt-button-renderer"),_.U("design:type",Element)],Rb.prototype,"firstButtonElement",void 0);
_.E([_.cW("commerceCartItemEntity","data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rb.prototype,"entityChanged",null);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rb.prototype,"onYtRendererstamperFinished",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Rb);
_.N(Rb,"ytd-commerce-cart-item-renderer",function(){if(acq!==void 0)return acq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return acq=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var xvY;var fc4;var iI=function(){return _.O.apply(this,arguments)||this};
_.S(iI,_.O);iI.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}}}}}};
iI.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
iI.prototype.updateCheckoutLineItems=function(){var X,t=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.checkoutLineItems;t&&(X=t.map(function(G){a:{var y=G.price,w=G.description;switch(G.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":G={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Ms(w),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:Ms(y),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:G={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Ms(w),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:Ms(y),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 G}),this.set("data.summaryLineItems",X))};
iI.prototype.updateIsHidden=function(){var X,t=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.isHidden;t!==void 0&&(this.hostElement.hidden=t)};
iI.prototype.entityChanged=iI.prototype.entityChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],iI.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],iI.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],iI.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],iI.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Z3A}),_.U("design:type",Object)],iI.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.cW("commerceCartCheckoutButtonEntity","data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],iI.prototype,"entityChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],iI);
_.N(iI,"ytd-commerce-cart-summary-renderer",function(){if(fc4!==void 0)return fc4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return fc4=X},{mode:1});var Muq={};Muq.InjectBehavior=[PZv.InjectBehavior];var Xg4;var $OS;var LA=function(){return _.O.apply(this,arguments)||this};
_.S(LA,_.O);
LA.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:_.$W("menuRenderer")}}};
LA.prototype.onMenuTap=function(X){X.stopPropagation()};
_.ke.Object.defineProperties(LA.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 X,t;return!(((X=this.data)==null||!X.sectionHeading)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var X,t;return!(((X=this.data)==null||!X.image)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var X,t;return!(((X=this.data)==null||!X.menu)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.Icq.YtTappableItemBehavior),_.U("design:type",Object)],LA.prototype,"ytTappableItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],LA.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data.accessibilityData"),_.U("design:type",String),_.U("design:paramtypes",[])],LA.prototype,"ariaLabel",null);_.E([_.C("data.sectionHeading","data.layout"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],LA.prototype,"sectionHeadingVisible",null);_.E([_.C("data.image","data.layout"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],LA.prototype,"imageVisible",null);
_.E([_.C("data.menu","data.layout"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],LA.prototype,"menuVisible",null);_.E([_.$F({is:"yt-activity-item-renderer",disableElementRegistration:!0})],LA);
_.N(LA,"yt-activity-item-renderer",function(){if($OS===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Xg4===void 0&&(Xg4=document.createElement("template"));var y=Xg4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);$OS=X}X=$OS;return X},{mode:2});var tz4;var GsY;var ysJ;var wge;var vX=function(){return _.O.apply(this,arguments)||this};
_.S(vX,_.O);
vX.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"}}}}};
vX.prototype.backgroundColorChanged_=function(){var X,t=(X=this.data)==null?void 0:X.backgroundColor;this.hostElement.style.backgroundColor=CA[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
vX.prototype.backgroundColorChanged_=vX.prototype.backgroundColorChanged_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vX.prototype,"data",void 0);
_.E([_.cW("data.backgroundColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vX.prototype,"backgroundColorChanged_",null);_.E([_.$F({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],vX);
_.N(vX,"yt-offer-item-upsell-renderer",function(){if(wge===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;ysJ===void 0&&(ysJ=document.createElement("template"));var y=ysJ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);wge=X}X=wge;return X},{mode:2});_.Xa("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var ab=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};X.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return X};
_.S(ab,_.O);_.H=ab.prototype;
_.H.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:_.$W("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.H.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.H.computeContainerStyle_=function(X){return X};
_.H.computeContainerIsHidden_=function(X){return X&&!!X.isHidden};
_.H.computeShowSpinner_=function(X,t){return X&&t==="in-progress"};
_.H.computeShowMoreContentsButton_=function(X,t,G,y,w){return!(!(y&&y.length||w&&w.length&&G)||!X||t)};
_.H.onToggleButton_=function(X){var t=this;X.stopPropagation();this.isExpanded_=X.detail&&X.detail.toggled;var G,y;this.isExpanded_&&!this.data.continuationSection.length&&((G=this.data)==null?0:(y=G.continuation)==null?0:y.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Yt(this.hostElement,"yt-load-next-continuation",function(w){return t.getContinuationUrl_(t.data.continuation.onClickContinuationData,w)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.hE(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.H.onShowMoreContentsButtonClicked_=function(X){var t=this;X.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Yt(this.hostElement,"yt-load-next-continuation",function(G){return t.getContinuationUrl_(t.data.continuations[0].nextContinuationData,G)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.hE(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.H.getContinuationUrl_=function(X,t){var G=X.continuation;X=X.clickTrackingParams;var y=_.lw();X&&y&&_.BK(y,_.i$(X));return _.ns(t,{continuation:G})};
_.H.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var X=_.Sm(this.hostElement).querySelector("#continuation-section");X&&(X=X.querySelectorAll("ytmusic-item-section-renderer"))&&X.forEach(function(t){return t.classList.add("memberships-and-purchases")})};
_.H.dataChanged_=function(){var X;this.isExpanded_=!((X=this.data)==null||!X.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.H.updateCardOnClickCommand_=function(X){X=_.Y(X,FVY);var t,G;this.data&&((t=this.data)==null?0:t.targetId)&&X&&X.targetId===((G=this.data)==null?void 0:G.targetId)&&X.onClickCommand&&(this.data.onClickCommand=X.onClickCommand,this.isOnClickCommand_=!0)};
_.H.backgroundColorChanged_=function(){var X,t=(X=this.data)==null?void 0:X.backgroundColor;this.hostElement.style.backgroundColor=CA[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
ab.prototype.backgroundColorChanged_=ab.prototype.backgroundColorChanged_;ab.prototype.dataChanged_=ab.prototype.dataChanged_;ab.prototype.nextContinuationDataUpdated_=ab.prototype.nextContinuationDataUpdated_;ab.prototype.onToggleButton_=ab.prototype.onToggleButton_;_.E([_.q(_.oT),_.U("design:type",Object)],ab.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],ab.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.JX.YtNextContinuationBehavior),_.U("design:type",Object)],ab.prototype,"ytNextContinuationBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.E([_.q(Muq.InjectBehavior),_.U("design:type",Object)],ab.prototype,"injectBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ab.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],ab.prototype,"compact",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],ab.prototype,"isExpanded_",void 0);_.E([_.K({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.U("design:type",String)],ab.prototype,"containerStyle_",void 0);_.E([_.K({value:"not-started"}),_.U("design:type",String)],ab.prototype,"continuationStatus_",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.U("design:type",Boolean)],ab.prototype,"showSpinner_",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],ab.prototype,"isOnClickCommand_",void 0);_.E([_.K({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.U("design:type",Boolean)],ab.prototype,"showMoreContentsButton_",void 0);
_.E([_.K({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(X,t){return!t||X.entities?null:_.Kg(X.entities,"cardItemContainerEntity",t)}}),
_.U("design:type",Object)],ab.prototype,"cardItemContainerEntity_",void 0);_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],ab.prototype,"onToggleButton_",null);_.E([_.WW("yt-next-continuation-data-updated"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ab.prototype,"nextContinuationDataUpdated_",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ab.prototype,"dataChanged_",null);_.E([_.cW("data.backgroundColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ab.prototype,"backgroundColorChanged_",null);_.E([_.$F({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],ab);
_.N(ab,"yt-card-item-container-renderer",function(){if(GsY===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;tz4===void 0&&(tz4=document.createElement("template"));var y=tz4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);GsY=X}X=GsY;return X},{mode:2});var lI=function(){return _.O.apply(this,arguments)||this};
_.S(lI,_.O);lI.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"}}}};
lI.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
lI.prototype.computeLoadingHidden=function(){var X;return!((X=this.commerceCartPageStateEntity)==null?0:X.cartActionInProgress)};
lI.prototype.updateNotification=function(){var X,t=(X=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:X.summaryText;t&&this.set("data.cartNotification",Ms(t))};
lI.prototype.notificationEntityChanged=lI.prototype.notificationEntityChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],lI.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],lI.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],lI.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(X,t){return _.Kg(X.entities,"commerceCartExpandableNotificationEntity",t)}}),
_.U("design:type",Object)],lI.prototype,"commerceCartExpandableNotificationEntity",void 0);_.E([_.K({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(X,t){return _.Kg(X.entities,"commerceCartPageStateEntity",t)}}),
_.U("design:type",Object)],lI.prototype,"commerceCartPageStateEntity",void 0);_.E([_.rt("#spinner"),_.U("design:type",HTMLElement)],lI.prototype,"spinner",void 0);_.E([_.cW("commerceCartExpandableNotificationEntity","data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],lI.prototype,"notificationEntityChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],lI);
_.N(lI,"ytd-commerce-cart-renderer",function(){if(xvY!==void 0)return xvY;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return xvY=X},{mode:1});var z$t;var x2=function(){var X=_.O.apply(this,arguments)||this;X.bigImage=!1;return X};
_.S(x2,_.O);_.ke.Object.defineProperties(x2.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.placeholderImageUrl}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],x2.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],x2.prototype,"bigImage",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],x2.prototype,"placeholderImageUrl",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],x2);
_.N(x2,"ytd-empty-product-shelf-renderer",function(){if(z$t!==void 0)return z$t;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return z$t=X},{mode:1});var HHB;var fA=function(){var X=_.O.apply(this,arguments)||this;X.itemStyle="link-item";X.watchMetadataRefresh=!1;X.skinnyMode=!1;X.metaPanel=!1;X.inStructuredDescription=!1;X.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};X.updateOnResizeDebouncer=null;return X};
_.S(fA,_.O);_.H=fA.prototype;_.H.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.H.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"}}}}};
_.H.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.H.attachVEs=function(X){X.trackingParams&&_.Pj().graftServerVe(X.trackingParams)};
_.H.handleUpdateMerchShelfAction=function(X){var t=this,G=_.Y(X.updateMerchandiseShelfAction.merchandiseShelf,_.MtP);G&&(G.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){t.attachVEs(G);t.data=G},Number(G.renderDelayMs))):(this.attachVEs(G),this.data=G))};
_.H.updateOnResize=function(){if(this.JSC$16702_scrollContainer!==void 0&&this.JSC$16702_scrollContainer.clientWidth!==0&&this.items!==void 0){var X=this.JSC$16702_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-X));this.ytdHorizontalListBehavior.reposition_();var t;switch((t=this.data)==null?void 0:t.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var G,
y;((G=this.data)==null?void 0:(y=G.items)==null?void 0:y.length)===1?this.itemStyle="cta-item":this.itemStyle=X>=740?"large-item":"small-item"}}};
_.H.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.hz(this.updateOnResizeDebouncer,_.kC.after(100),this.updateOnResize)};
fA.prototype.debouncedUpdateOnResize=fA.prototype.debouncedUpdateOnResize;fA.prototype.dataChanged=fA.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.Yj.YtdHorizontalListBehavior),_.U("design:type",Object)],fA.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],fA.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],fA.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],fA.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fA.prototype,"itemStyle",void 0);_.E([_.K({value:6}),_.U("design:type",Number)],fA.prototype,"initialCount",void 0);
_.E([_.K({value:"data.items"}),_.U("design:type",String)],fA.prototype,"itemsPath",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fA.prototype,"watchMetadataRefresh",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fA.prototype,"skinnyMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fA.prototype,"metaPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fA.prototype,"inStructuredDescription",void 0);
_.E([_.rt("#items"),_.U("design:type",HTMLDivElement)],fA.prototype,"items",void 0);_.E([_.rt("#scroll-container"),_.U("design:type",HTMLDivElement)],fA.prototype,"JSC$16702_scrollContainer",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fA.prototype,"dataChanged",null);_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fA.prototype,"debouncedUpdateOnResize",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],fA);
_.N(fA,"ytd-merch-shelf-renderer",function(){if(HHB!==void 0)return HHB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return HHB=X},{mode:2});var ov4;var Mf=function(){var X=_.O.apply(this,arguments)||this;X.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 X};
_.S(Mf,_.O);_.H=Mf.prototype;
_.H.addBackstagePostAction=function(X){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(X=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",X))&&(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:X}):this.set("data.contents",[{backstagePostThreadRenderer:X}]))};
_.H.addBackstageCommentAction=function(X){var t=this.get("addBackstageCommentAction.parentId",X);X=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",X);if(t&&X){t=this.postIdToIndices(t);for(var G=0;G<t.length;G++){var y=t[G];if(y<0)break;y="data.contents."+y+".backstagePostThreadRenderer.comments";this.get(y)&&(this.get(y+".backstageCommentsRenderer.contents")&&this.push(y+".backstageCommentsRenderer.contents",{commentThreadRenderer:X}),this.get(y+".backstageCommentsRenderer.teaserContents")?
this.push(y+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:X}):this.set(y+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:X}]))}}};
_.H.addBackstageReplyAction=function(X){var t=this.get("addBackstageReplyAction.parentId",X);X=this.get("addBackstageReplyAction.renderer.commentRenderer",X);t&&X&&this.setCreatorReply(t,X)};
_.H.banAuthorAction=function(X){var t=this.get("banAuthorAction.commentId",X);t&&(X=this.get("banAuthorAction.parentCommentId",X)||this.getParentPostId(t),this.removeFromStream(t,X))};
_.H.hideReportedCommentAction=function(X){var t=this.get("hideReportedCommentAction.commentId",X);t&&((X=this.get("hideReportedCommentAction.parentCommentId",X))||(X=this.getParentPostId(t)),this.removeFromStream(t,X))};
_.H.replaceBackstageCommentAction=function(X){var t=this.get("replaceBackstageCommentAction.commentId",X),G=this.get("replaceBackstageCommentAction.parentId",X);X=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",X);if(t&&G&&X){G=this.postIdToIndices(G);for(var y=0;y<G.length;y++){var w=G[y];if(w<0)break;var z=this.commentIdToIndex(t,w,!1);if(z>=0){var B=this.get("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z+".commentThreadRenderer.replies.commentRepliesRenderer");
B&&(X.replies={commentRepliesRenderer:B});this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",z,1,{commentThreadRenderer:X})}z=this.commentIdToIndex(t,w,!0);if(z>=0){if(B=this.get("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(z+".commentThreadRenderer.replies.commentRepliesRenderer")))X.replies={commentRepliesRenderer:B};this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
z,1,{commentThreadRenderer:X})}}}};
_.H.replaceBackstagePostAction=function(X){var t=this.get("replaceBackstagePostAction.itemId",X);if(t){t=this.postIdToIndices(t);for(var G=0;G<t.length;G++){var y=t[G];if(y<0)break;var w=this.getPostRendererType(y),z=this.get("replaceBackstagePostAction.renderer."+w,X);if(!z&&w!=="sharedPostRenderer")break;var B=!1;z||(B=!0,z=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",X));if(!z)break;var V={};B?(_.Xx(V,voR,z),this.set("data.contents."+y+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
V)):(_.Xx(V,new _.ja(w),z),this.set("data.contents."+y+".backstagePostThreadRenderer.post",V))}}};
_.H.replaceBackstageReplyAction=function(X){var t=this.get("replaceBackstageReplyAction.replyId",X),G=this.get("replaceBackstageReplyAction.parentId",X);X=this.get("replaceBackstageReplyAction.renderer.commentRenderer",X);t&&X&&G&&this.setCreatorReply(G,X)};
_.H.removeCommentAction=function(X){var t=this.get("removeCommentAction.commentId",X);if(t){var G=this.get("removeCommentAction.parentCommentId",X);G&&this.get("removeCommentAction.isCreatorReply",X)?this.setCreatorReply(G,void 0):(G||(G=this.getParentPostId(t)),this.removeFromStream(t,G))}};
_.H.setCreatorReply=function(X,t){var G=this.getParentPostId(X);if(G){G=this.postIdToIndices(G);for(var y=0;y<G.length;y++){var w=G[y];if(w<0)break;var z=this.commentIdToIndex(X,w,!1);if(z>=0){var B="data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z;z=B+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";B+=".commentThreadRenderer.replies";t==void 0?(this.set(B,{}),this.set(z,!1)):(this.set(B,{commentRepliesRenderer:{teaserContents:[{commentRenderer:t}]}}),
this.set(B+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(z,!0))}z=this.commentIdToIndex(X,w,!0);z>=0&&(z="data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+z,w=z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",z+=".commentThreadRenderer.replies",t==void 0?(this.set(z,{}),this.set(w,!1)):(this.set(z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:t}]}}),this.set(w,!0)))}}};
_.H.removeFromStream=function(X,t){if(t){t=this.postIdToIndices(t);for(var G=0;G<t.length;G++){var y=t[G];if(y<0)break;var w=this.commentIdToIndex(X,y,!1);w>=0&&this.splice("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",w,1);w=this.commentIdToIndex(X,y,!0);w>=0&&this.splice("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",w,1);y="data.contents."+y+".backstagePostThreadRenderer.post.backstagePostRenderer";
w=y+".backstageAttachment.pollRenderer.votedCommentId";this.get(w)===X&&(this.set(w,null),this.set(y+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(t=this.postIdToIndices(X).reverse(),G=0;G<t.length;G++){y=t[G];if(y<0)break;w=this.getPostRendererType(y);var z=this.get("backstagePostThreadRenderer.post."+w,this.data.contents[y]);z.postId===X?this.splice("data.contents",y,1):w==="sharedPostRenderer"&&this.set("data.contents."+y+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);z.scheduledPublishTimeSec&&_.sl(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.H.postIdToIndices=function(X){for(var t=[],G=0;G<this.data.contents.length;G++){var y=this.getPostRendererType(G);this.get("backstagePostThreadRenderer.post."+y+".postId",this.data.contents[G])===X&&t.push(G);if(y==="sharedPostRenderer"){var w=this.get("backstagePostThreadRenderer.post."+y+".originalPost.backstagePostRenderer.postId",this.data.contents[G]);y=this.get("backstagePostThreadRenderer.post."+y+".originalPost.postRenderer.postId",this.data.contents[G]);w!==X&&y!==X||t.push(G)}}return t};
_.H.commentIdToIndex=function(X,t,G){if(t<0)return-1;var y,w,z,B,V=_.Y((y=this.data)==null?void 0:(w=y.contents)==null?void 0:(z=w[t])==null?void 0:(B=z.backstagePostThreadRenderer)==null?void 0:B.comments,iNJ);return(t=G?V==null?void 0:V.teaserContents:V==null?void 0:V.contents)&&t.length?t.findIndex(function(b){return _.Y(b,ZUo).comment.commentRenderer.commentId===X}):-1};
_.H.getParentPostId=function(X){X=X.split(".");if(X[1])return X[0]};
_.H.getPostRendererType=function(X){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[X])?"sharedPostRenderer":"backstagePostRenderer"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Mf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Mf.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-backstage-items"})],Mf);
_.N(Mf,"ytd-backstage-items",function(){if(ov4!==void 0)return ov4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return ov4=
X},{mode:1});var JsR;var BOo={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},X5=function(){var X=_.O.apply(this,arguments)||this;X.disablePrescanVisibility=!0;X.canScheduleJobs=!0;X.engagementPanel=!1;X.hidePanelButton=!1;X.isWatchGrid=!1;X.hasShownSubscribersOnlyDisclaimer=!1;X.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return X};
_.S(X5,_.O);_.H=X5.prototype;_.H.created=function(){this.initCommentsCsi_()};
_.H.contentsChanged_=function(){var X;(X=this.data)!=null&&X.contents&&this.tickForCommentsTimer_("cml")};
_.H.headerChanged_=function(){var X;(X=this.data)!=null&&X.header&&this.tickForCommentsTimer_("cmhl")};
_.H.initCommentsCsi_=function(){_.aa("wn_comments");var X=_.lw();X&&_.vP({clientScreenNonce:X},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.H.createCommentAction_=function(X){X=_.RH.unsafeClone(X);var t,G;if(X=(t=_.Y(X,g9q))==null?void 0:(G=t.contents)==null?void 0:G.commentThreadRenderer){var y,w,z,B,V,b;!this.isBackstage&&((y=this.data)==null?0:(w=y.header)==null?0:(z=w.commentsHeaderRenderer)==null?0:(B=z.createRenderer)==null?0:(V=B.commentSimpleboxRenderer)==null?0:(b=V.zeroStep)==null?0:b.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var e,
g,F;this.isBackstage&&_.Y((e=this.data)==null?void 0:(g=e.header)==null?void 0:(F=g.commentsHeaderRenderer)==null?void 0:F.zeroStateMessage,aFB)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(X)}};
_.H.doReplyInsert_=function(X,t,G,y){y?this.splice(X,y,0,t):this.push(X,t)};
_.H.getRepliesPath_=function(X){return"data.contents."+X+".commentThreadRenderer.replies"};
_.H.getRepliesContentsPath_=function(X,t){X=this.getRepliesPath_(X);return t?X+".commentRepliesRenderer.teaserContents":X+".commentRepliesRenderer.contents"};
_.H.showSubscribersOnlyDisclaimer_=function(X){(X=X.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(X))&&(_.sl(this.hostElement,"yt-open-popup-action",[X,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.H.createCommentReplyAction_=function(X){X=_.RH.unsafeClone(X);var t=_.Y(X,F9Y);if(X=t==null?void 0:t.contents){var G=this.commentIdToIndex_(t==null?void 0:t.parentCommentId);if(!(G<0)){var y=this.getRepliesPath_(G);if(this.get(y)){t=t.replyToCommentId;y=this.getRepliesContentsPath_(G,!1);if(this.get(y)){var w=this.get(y).length,z=y+"."+(w-1)+".continuationItemRenderer";this.get(z+".button")?(z=this.replyIdToIndex_(t,G,!1),this.doReplyInsert_(y,X,z,w-1)):this.get(z)||(w=this.replyIdToIndex_(t,G,
!1),this.doReplyInsert_(y,X,w,null))}y=this.getRepliesContentsPath_(G,!0);this.get(y)?(G=this.replyIdToIndex_(t,G,!0),(!t||G>=0)&&this.doReplyInsert_(y,X,G,null)):this.set(y,[X])}else this.set(y,{commentRepliesRenderer:{teaserContents:[X]}})}}};
_.H.hideReportedCommentAction_=function(X){var t=_.Y(X,NYh);if(X=t==null?void 0:t.commentId)t=this.get("parentCommentId",t),X=X.replace("#","."),t||(t=this.getParentCommentId_(X)),this.remove_(X,t)};
_.H.getParentCommentId_=function(X){X=X.split(".");if(X[1])return X[0]};
_.H.removeCommentAction_=function(X){var t=_.Y(X,Doh);if(X=t==null?void 0:t.commentId)t=t==null?void 0:t.parentCommentId,X=X.replace("#","."),t||(t=this.getParentCommentId_(X)),this.remove_(X,t)};
_.H.pinCommentAction_=function(X){X=_.RH.unsafeClone(X);var t=_.Y(X,s8o);t!=null&&t.commentId&&(X=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",X))&&(this.remove_(t.commentId),this.insert_(X,!0))};
_.H.unpinCommentAction_=function(X){X=_.RH.unsafeClone(X);X=_.Y(X,SHz);if(X!=null&&X.commentId){var t,G,y=(t=X.actionResult)==null?void 0:(G=t.update)==null?void 0:G.commentThreadRenderer;y&&(this.remove_(X.commentId),this.insert_(y))}};
_.H.banAuthorAction_=function(X){var t=_.Y(X,j8h);t!=null&&t.commentId&&(X=t.parentCommentId,t=t.commentId.replace("#","."),X||(X=this.getParentCommentId_(t)),this.remove_(t,X))};
_.H.commentIdToIndex_=function(X){var t;return X&&(t=this.data)!=null&&t.contents?this.data.contents.findIndex(function(G){G=G.commentThreadRenderer;var y;return X===((G==null?void 0:G.commentViewModel)&&((y=_.Y(G.commentViewModel,Q8J))==null?void 0:y.commentId))}):-1};
_.H.insert_=function(X,t){t=t===void 0?!1:t;var G,y;if((G=this.data)==null?0:(y=G.contents)==null?0:y.some(function(z){return!!z.commentThreadRenderer}))for(G=0,y=this.data.contents.length;G<y;G++){var w=this.data.contents[G].commentThreadRenderer;
if(BOo[X.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=BOo[w.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){t&&BOo[X.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===BOo[w.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",G,1,{commentThreadRenderer:X}):this.splice("data.contents",G,0,{commentThreadRenderer:X});break}}else this.set("data.contents",[{commentThreadRenderer:X}])};
_.H.doReplyRemove_=function(X,t,G){X=this.replyIdToIndex_(X,t,G);X<0||(t=this.getRepliesContentsPath_(t,G),this.splice(t,X,1))};
_.H.remove_=function(X,t){t=this.commentIdToIndex_(t);t<0?(t=this.commentIdToIndex_(X),t<0||this.splice("data.contents",t,1)):(this.doReplyRemove_(X,t,!1),this.doReplyRemove_(X,t,!0))};
_.H.replyIdToIndex_=function(X,t,G){if(t<0)return-1;t=this.getRepliesContentsPath_(t,G);t=this.get(t);if(!t||!t.length)return-1;G=0;for(var y=t.length;G<y;G++){var w=void 0,z=void 0;if(((w=t[G])==null?void 0:(z=w.commentViewModel)==null?void 0:z.commentId)===X)return G}return-1};
_.H.tickForCommentsTimer_=function(X){_.xt(X,void 0,"wn_comments")};
_.H.reloadComments_=function(X){X=_.Y(X,OU4);_.Y(X==null?void 0:X.command,_.Hk)&&_.hE(this.hostElement,[X==null?void 0:X.command])};
_.ke.Object.defineProperties(X5.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return!!((X=this.data)==null?0:(t=X.header)==null?0:(G=t.commentsHeaderRenderer)==null?0:G.isBackstageContent)}}});
_.ke.Object.defineProperties(X5,{template:{configurable:!0,enumerable:!0,get:function(){if(JsR===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);JsR=X}X=JsR;return X}}});
X5.prototype.showSubscribersOnlyDisclaimer_=X5.prototype.showSubscribersOnlyDisclaimer_;X5.prototype.headerChanged_=X5.prototype.headerChanged_;X5.prototype.contentsChanged_=X5.prototype.contentsChanged_;_.E([_.q(_.dQ),_.U("design:type",Object)],X5.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.mLJ.YtHostElementBehavior),_.U("design:type",Object)],X5.prototype,"ytHostElementBehavior",void 0);
_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",Function)],X5.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],X5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],X5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],X5.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data.header.commentsHeaderRenderer.isBackstageContent"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],X5.prototype,"isBackstage",null);_.E([_.K(),_.U("design:type",Object)],X5.prototype,"disablePrescanVisibility",void 0);_.E([_.K(),_.U("design:type",Object)],X5.prototype,"canScheduleJobs",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],X5.prototype,"engagementPanel",void 0);
_.E([_.K(),_.U("design:type",Object)],X5.prototype,"hidePanelButton",void 0);_.E([_.K(),_.U("design:type",Object)],X5.prototype,"isWatchGrid",void 0);_.E([_.K(),_.U("design:type",Object)],X5.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.E([_.cW("data.contents"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],X5.prototype,"contentsChanged_",null);
_.E([_.cW("data.header"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],X5.prototype,"headerChanged_",null);_.E([_.WW("yt-show-subscribers-only-disclaimer"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],X5.prototype,"showSubscribersOnlyDisclaimer_",null);_.E([_.p({is:"ytd-comments"})],X5);var $N=function(){return _.PW.apply(this,arguments)||this};
_.S($N,_.PW);_.H=$N.prototype;_.H.bindIf=function(X,t,G){return X?t:G};
_.H.bindIfDefined=function(X,t){return X!==void 0?X:t};
_.H.booleanString=function(X){return(!!X).toString()};
_.H.equals=function(){for(var X=_.f1.apply(0,arguments),t=X[0],G=1;G<X.length;G++)if(t!=X[G])return!1;return!0};
_.H.isGreaterThan=function(X,t){return X>t};
_.H.isLessThan=function(X,t){return X<t};
_.H.logicalAND=function(){for(var X=_.f1.apply(0,arguments),t=!!X[0],G=1;G<X.length;G++)t=t&&!!X[G];return t};
_.H.logicalOR=function(){for(var X=_.f1.apply(0,arguments),t=!!X[0],G=1;G<X.length;G++)t=t||!!X[G];return t};
_.H.toBool=function(X){return!!X};
$N.prototype.toBool=$N.prototype.toBool;$N.prototype.logicalOR=$N.prototype.logicalOR;$N.prototype.logicalAND=$N.prototype.logicalAND;$N.prototype.isLessThan=$N.prototype.isLessThan;$N.prototype.isGreaterThan=$N.prototype.isGreaterThan;$N.prototype.equals=$N.prototype.equals;$N.prototype.booleanString=$N.prototype.booleanString;$N.prototype.bindIfDefined=$N.prototype.bindIfDefined;$N.prototype.bindIf=$N.prototype.bindIf;_.E([_.E0()],$N);_.nvh=[$N.prototype];var Vzt;var bHq;var tc=function(){return _.O.apply(this,arguments)||this};
_.S(tc,_.O);tc.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
tc.prototype.onBackIconTap_=function(){window.history.back()};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],tc.prototype,"data",void 0);_.E([_.$F({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],tc);
_.N(tc,"yt-header-with-back-renderer",function(){if(bHq===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Vzt===void 0&&(Vzt=document.createElement("template"));var y=Vzt;G.call(t,y.content.cloneNode(!0),X.content.firstChild);bHq=X}X=bHq;return X},{mode:2});var ksz;var dOR;var Ga=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(Ga,_.O);_.H=Ga.prototype;_.H.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.H.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.isDarkTheme=X,this.setUrl())};
_.H.dataChanged=function(){var X=this;if(this.data){var t=this.setUrl();t&&_.T1({destination:window,iframe:this.iframe,origin:_.p4q(t.toString()),channelName:"yt-iframe",onMessage:function(G){(G=X.getCommunicationCommand(G.data))&&X.ytComponentBehavior.resolveCommand(G)},
onEstablished:function(){}})}};
_.H.setUrl=function(){if(this.data&&this.data.iframeUrl){var X=_.aS(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(X)return _.wq(this.iframe,X),X}};
_.H.getCommunicationCommand=function(X){var t;if((t=this.data)!=null&&t.onCommunicationCommandsMap){t=this.data.onCommunicationCommandsMap.find(function(w){return w.key===X});
if(t==null?0:t.value)return t==null?void 0:t.value;try{var G=BGe(_.BS(X)),y=this.data.onCommunicationCommandsMap.find(function(w){return w.key===(G==null?void 0:G.getMethodName())});
if(y==null?0:y.value)return y==null?void 0:y.value}catch(w){}}};
Ga.prototype.dataChanged=Ga.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Ga.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Ga.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ga.prototype,"data",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],Ga.prototype,"isDarkTheme",void 0);_.E([_.rt("#iframe"),_.U("design:type",HTMLIFrameElement)],Ga.prototype,"iframe",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ga.prototype,"dataChanged",null);_.E([_.$F({is:"yt-iframe-renderer",disableElementRegistration:!0})],Ga);
_.N(Ga,"yt-iframe-renderer",function(){if(dOR===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;ksz===void 0&&(ksz=document.createElement("template"));var y=ksz;G.call(t,y.content.cloneNode(!0),X.content.firstChild);dOR=X}X=dOR;return X},{mode:2});_.yS=function(X){_.po.call(this);this.callback=X;this.bezier=new Zzz(0,0,.4,0,.2,1,1,1);this.delay=new _.jb(this.next,window,this);this.JSC$16746_animating=!1;_.h6(this,this.delay)};
_.S(_.yS,_.po);_.yS.prototype.isAnimating=function(){return this.JSC$16746_animating};
_.yS.prototype.start=function(X,t,G){this.config={from:X,to:t,duration:G,startTime:(0,_.gl)()};this.JSC$16746_animating=!0;this.next()};
_.yS.prototype.stop=function(){this.delay.stop();this.JSC$16746_animating=!1;this.config=void 0};
_.yS.prototype.next=function(){if(this.config){var X=this.config,t=X.from,G=X.to,y=X.duration;X=X.startTime;var w=(0,_.gl)()-X;X=this.bezier;y=C$q(X,w/y);if(y==0)X=X.y0;else if(y==1)X=X.y3;else{w=U1(X.y0,X.y1,y);var z=U1(X.y1,X.y2,y);X=U1(X.y2,X.y3,y);w=U1(w,z,y);z=U1(z,X,y);X=U1(w,z,y)}X=_.MM(X,0,1);this.callback(t+(G-t)*X);X<1?this.delay.start():this.JSC$16746_animating=!1}};_.w$=new _.FB("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var e$J={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},gvq=function(X,t,G,y){_.po.call(this);this.JSC$16754_miniAppId=X;this.localReleaseId=t;this.derivedDeviceInterface=G;this.isForeground=y;this.JSC$16754_playNonceResolver=new _.Kp;this.playPingTimerId=NaN;this.playPingIntervalMs=_.At("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.At("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.A("enable_displaying_ppn");this.JSC$16754_miniAppClientDataProvider=_.gw().resolve(_.w$);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;jve(this);var w=setTimeout(function(){_.Mj(new _.NJ("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16754_playNonceResolver.promise.then(function(){clearTimeout(w)})};
_.S(gvq,_.po);var TOq=function(X,t){X.JSC$16754_playNonceResolver.resolve(t!=null?t:LE(8));X.enableDisplayingPpn&&F7z(X).then(function(G){X.JSC$16754_miniAppClientDataProvider.clientData.set("post_play_nonce",G)})},F7z=function(X){return _.n(function(t){return t.nextAddress==1?t.yield(X.JSC$16754_playNonceResolver.promise,2):t.return(t.yieldResult)})},jve=function(X){var t,G;
_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$16754_playNonceResolver.promise,2);t=y.yieldResult;G={miniAppInfo:{externalPostId:X.JSC$16754_miniAppId,localReleaseId:X.localReleaseId,postPlayNonce:t,derivedDeviceInterface:X.derivedDeviceInterface}};_.vP(G);_.W$(y)})},YMJ=function(X){X.state!==0?_.Mj(new _.NJ("[MiniAppPlayLogger] recordPlayStart failed with state "+e$J[X.state])):(X.state=1,za(X,"ma_cl"),Hb(X,"PLAY_EVENT_TYPE_PLAY_START"),AsY(X))},svh=function(X){X.isForeground=!1;
Hb(X,"PLAY_EVENT_TYPE_PLAY_PAUSE")},DOz=function(X){X.state!==1&&X.state!==2?_.Mj(new _.NJ("[MiniAppPlayLogger] recordPlayEnd failed with state "+e$J[X.state])):(X.state=3,window.clearInterval(X.playPingTimerId),X.playPingTimerId=NaN,RrA(),Hb(X,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},SMt=function(X,t){X.state===2&&X.gameReady&&(X.firstClickRecorded?Date.now()-X.clickRecordedMs<X.playClickIntervalMs||(X.clickRecordedMs=Date.now(),Hb(X,"PLAY_EVENT_TYPE_PLAY_CLICK")):t&&(za(X,"ma_fua"),Hb(X,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),X.firstClickRecorded=!0,X.clickRecordedMs=Date.now()))};
gvq.prototype.logError=function(X){var t=this,G;_.n(function(y){if(y.nextAddress==1)return X.metadata.externalPostId=t.JSC$16754_miniAppId,G=X.metadata,y.yield(Promise.race([t.JSC$16754_playNonceResolver.promise,new Promise(function(w){setTimeout(function(){w("")},3E4)})]),2);
G.postPlayNonce=y.yieldResult;X.metadata.localReleaseId=t.localReleaseId;X.loggingError.level="WARNING";_.xA(X.loggingError,X.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:X.metadata});_.W$(y)})};
var h$t=function(X,t,G,y){var w,z,B,V,b,e;_.n(function(g){if(g.nextAddress==1)return g.yield(X.JSC$16754_playNonceResolver.promise,2);w=g.yieldResult;z={externalPostId:X.JSC$16754_miniAppId,localReleaseId:X.localReleaseId,postPlayNonce:w,sdkVersion:G,api:t};y!==void 0&&(z.networkRequestsMeasurement={networkRequests:_.jM(y,1),cachedRequests:_.jM(y,2),transferredBytes:_.jM(y,3)},(B=y)==null?0:_.p9(B,ef,6))&&(z.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((V=_.Co(y,
ef,6))==null?void 0:f9(V,1))||"0",cacheHits:((b=_.Co(y,ef,6))==null?void 0:f9(b,2))||"0",cachedBytes:((e=_.Co(y,ef,6))==null?void 0:f9(e,3))||"0"});_.a7("miniAppSdkUsage",z);_.W$(g)})},qMe=function(X,t,G){var y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P;
_.n(function(l){if(l.nextAddress==1)return l.yield(X.JSC$16754_playNonceResolver.promise,2);y=l.yieldResult;w={externalPostId:X.JSC$16754_miniAppId,localReleaseId:X.localReleaseId,postPlayNonce:y,sdkVersion:G,measurementWindow:{startTimestampMs:String(L9(t,1)),endTimestampMs:String(L9(t,2))},frameRate:{averageFrameTimeDeltaMs:vH(t,3),averageFrameIdleTimeMs:vH(t,4)}};_.p9(t,jf,5)&&(w.networkRequests={networkRequests:(z=D9(t))==null?void 0:_.jM(z,1),cachedRequests:(B=D9(t))==null?void 0:_.jM(B,2),transferredBytes:(V=
D9(t))==null?void 0:_.jM(V,3),sameOriginStatusCodeToCounts:ZHB((b=D9(t))==null?void 0:krY(b,4)),crossOriginStatusCodeToCounts:ZHB((e=D9(t))==null?void 0:krY(e,5))},(g=D9(t))==null?0:_.p9(g,ef,6))&&(w.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((F=D9(t))==null?void 0:(T=_.Co(F,ef,6))==null?void 0:f9(T,1))||"0",cacheHits:((D=D9(t))==null?void 0:(h=_.Co(D,ef,6))==null?void 0:f9(h,2))||"0",cachedBytes:((u=D9(t))==null?void 0:(W=_.Co(u,ef,6))==null?void 0:f9(W,3))||"0"});_.p9(t,
UeR,7)&&(w.gameCapture={averageFrameTimeDeltaMs:(c=_.Co(t,UeR,7))==null?void 0:vH(c,1),averageFrameIdleTimeMs:(P=_.Co(t,UeR,7))==null?void 0:vH(P,2)});_.a7("miniAppPerformanceMetrics",w);_.W$(l)})},Cnz=function(X,t){var G,y;
return _.n(function(w){if(w.nextAddress==1)return w.yield(X.JSC$16754_playNonceResolver.promise,2);G=w.yieldResult;y={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:X.JSC$16754_miniAppId,postPlayNonce:G,miniAppReleaseId:X.localReleaseId},derivedDeviceInterface:X.derivedDeviceInterface,adTriggerType:t,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.a7("miniAppAdEvent",y);_.W$(w)})};
gvq.prototype.disposeInternal=function(){_.po.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Hb=function(X,t,G,y){G=G===void 0?{}:G;y=y===void 0?!1:y;var w,z,B,V;_.n(function(b){if(b.nextAddress==1)return w=X.isForeground,z=X.beforeReady,b.yield(X.JSC$16754_playNonceResolver.promise,2);B=b.yieldResult;V={externalPostId:X.JSC$16754_miniAppId,localReleaseId:X.localReleaseId,derivedDeviceInterface:X.derivedDeviceInterface,postPlayNonce:B,type:t};G.sequenceGroup=B;V.playState=z?"PLAY_STATE_NOT_READY":w?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.a7("miniAppPlayEvent",V,
G);y&&_.lx();_.W$(b)})},za=function(X,t){var G;
_.n(function(y){if(y.nextAddress==1)return G=(0,_.gl)(),y.yield(X.JSC$16754_playNonceResolver.promise,2);_.ls(t,G);_.W$(y)})},AsY=function(X){isNaN(X.playPingTimerId)&&(X.playPingTimerId=_.ht(function(){X.state!==1&&X.state!==2?_.Mj(new _.NJ("[MiniAppPlayLogger] reportPlayPing failed with state "+e$J[X.state])):Hb(X,"PLAY_EVENT_TYPE_PLAY_PING")},X.playPingIntervalMs))},ZHB=function(X){return Array.from(X.entries()).map(function(t){var G=_.J(t);
t=G.next().value;G=G.next().value;return{key:t,value:G}})};var K7z=function(){},OHq=function(X,t){X.showMiniAppAdCommand=t.showMiniAppAdCommand;
X.isEmbeddedInWebview=t.isEmbeddedInWebview;X.playLogger=t.playLogger},Qvq=function(X,t){var G;
return _.n(function(y){if(y.nextAddress==1){if(!X.showMiniAppAdCommand||!X.isEmbeddedInWebview)return y.return(uq4(X,t));X.adResolver=new _.Kp;var w=new lY;G=_.AG(w,3,t);ti(X.showMiniAppAdCommand,gXY(G));return y.yield(X.adResolver.promise,2)}return y.return(y.yieldResult)})};
K7z.prototype.onAdFinished=function(X){X=T1S(X);var t;(t=this.adResolver)==null||t.resolve(X)};
var uq4=function(X,t){var G;return _.n(function(y){if(y.nextAddress==1)y=y.yield((G=X.playLogger)==null?void 0:Cnz(G,a56(t)),2);else{var w=y.return;var z=new FZP;z=_.AG(z,1,2);y=w.call(y,z)}return y})};var IC4=new _.FB("INNERTUBE_MANAGER_TOKEN");var W7Y=function(){this.callbacks={}};
W7Y.prototype.initialize=function(X){var t=this;this.callbacks=X;window.youtubewebview?window.youtubewebview.onmessage=function(G){cso(t,G)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(G){cso(t,G)})};
var cso=function(X,t){if(t.data)try{var G=BGe(t.data);if(_.W4(_.cH(G,1))!=null){var y=VaJ(_.aQ(G,2));switch(G.getMethodName()){case "yt-mini-app-load-audio-state":var w,z;(z=(w=X.callbacks).onAudioStateLoaded)==null||z.call(w,_.iz(y,cO(y,aM,1)));break;case "yt-mute-mini-app":var B,V;(V=(B=X.callbacks).onMuteMiniApp)==null||V.call(B);break;case "yt-unmute-mini-app":var b,e;(e=(b=X.callbacks).onUnmuteMiniApp)==null||e.call(b);break;case "yt-playable-exit":var g,F;(F=(g=X.callbacks).onExit)==null||F.call(g);
break;case "yt-post-play-nonce":var T,D;(D=(T=X.callbacks).onPostPlayNonceReceived)==null||D.call(T,Me(y,2,aM));break;case "yt-confirm-exit-mini-app":var h,u;(u=(h=X.callbacks).confirmExitMiniApp)==null||u.call(h);break;case "yt-confirm-exit-mini-app-edu":var W,c;(c=(W=X.callbacks).confirmExitMiniAppEdu)==null||c.call(W);break;case "yt-benchmarking-response":var P,l;(l=(P=X.callbacks).onNativeBenchmarkingMessageReceived)==null||l.call(P,Me(y,2,aM));break;case "yt-mini-app-load-3p-consent-state":var R,
L;(L=(R=X.callbacks).multiplayer3pAckStateLoaded)==null||L.call(R,_.iz(y,cO(y,aM,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var x,w6;(w6=(x=X.callbacks).exitMiniAppSeenStateLoaded)==null||w6.call(x,_.iz(y,cO(y,aM,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var BY,kJ;(kJ=(BY=X.callbacks).onNavigateToNewMiniApp)==null||kJ.call(BY);break;case "yt-game-data-available":var Ss,C_;(C_=(Ss=X.callbacks).onGameDataAvailable)==null||C_.call(Ss,Me(y,2,aM));break;case "yt-pause-mini-app":var Fv,
Uh;(Uh=(Fv=X.callbacks).onPauseMiniApp)==null||Uh.call(Fv);break;case "yt-resume-mini-app":var cY,f_;(f_=(cY=X.callbacks).onResumeMiniApp)==null||f_.call(cY);break;case "yt-playable-ad-finished":var sq,oq;(oq=(sq=X.callbacks).onAdFinished)==null||oq.call(sq,Me(y,2,aM))}}else _.Mj(Error("Sh"))}catch(ll){_.xA(Error("Th"))}else _.Mj(Error("Uh"))};var x2h=function(X){this.rpcErrorCode=X};var ow=function(X,t,G){this.intervalMs=X;this.apiFunc=t;this.type=G;this.schedulerReady=!0};
ow.prototype.call=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1){if(t.type!==1&&X===t.cachedValue)return y.return();t.pendingApiRequestResolver||(t.pendingApiRequestResolver=new _.Kp);G=t.pendingApiRequestResolver.promise;t.cachedValue=X;return y.yield(pgq(t),2)}return y.return(G)})};
ow.prototype.flush=function(X){X=X===void 0?!1:X;var t=this;return _.n(function(G){return t.cachedValue===void 0?G.return():G.yield(t.apiFunc(t.cachedValue,X),0)})};
var pgq=function(X){var t,G,y;return _.n(function(w){switch(w.nextAddress){case 1:if(!X.schedulerReady||!X.pendingApiRequestResolver)return w.return();X.schedulerReady=!1;t=X.pendingApiRequestResolver;X.pendingApiRequestResolver=void 0;_.CL(w,2);if(X.cachedValue===void 0){w.jumpTo(4);break}return w.yield(X.apiFunc(X.cachedValue),5);case 5:G=w.yieldResult,t.resolve(G);case 4:_.zx(w,3);break;case 2:y=_.IY(w),t.reject(y);case 3:setTimeout(function(){return _.n(function(z){X.schedulerReady=!0;return z.yield(pgq(X),
0)})},X.intervalMs),_.W$(w)}})};var Xws=window.location.origin+"/miniapp_cloudsaves",f5l=[400,401],rsq=_.At("cloud_save_game_data_rate_limit_ms",3E3),Evq=function(X){var t=this;this.JSC$16798_miniAppId=X;this.loadAttempts=0;this.cloudSaveIntervalMs=rsq;this.initialDownloadDataSucceeded=!1;this.JSC$16798_playNonceResolver=new _.Kp;this.scottyUploadRateLimiter=new ow(this.cloudSaveIntervalMs,function(G,y){return NOh(t,G,y)},2);
this.downloadDataPromise=PnP(this);this.downloadDataPromise.then(function(){t.initialDownloadDataSucceeded=!0}).catch(function(){})},UOq=function(X,t){t.then(function(G){return X.JSC$16798_playNonceResolver.resolve(G)})},mO4=function(X){return _.n(function(t){return X.cachedData===void 0?t.return(X.downloadDataPromise):t.return(X.cachedData)})},R$q=function(X,t){return _.n(function(G){X.cachedData=t;
if(!X.initialDownloadDataSucceeded)throw Error("Vh");return G.yield(X.scottyUploadRateLimiter.call(t),0)})},iHq=function(){return new Promise(function(X){setTimeout(X,1E3,"")})},L7q=function(X,t){var G,y;
return _.n(function(w){if(w.nextAddress==1)return G=X.JSC$16798_miniAppId,w.yield(Promise.race([X.JSC$16798_playNonceResolver.promise,iHq()]),2);y={"X-YouTube-MiniAppId":G,"X-YouTube-PostPlayNonce":w.yieldResult};"DELEGATED_SESSION_ID"in _.xS&&saA(t,y);return w.return(y)})},NOh=function(X,t,G){G=G===void 0?!1:G;
return _.n(function(y){return l5s()?_.A("enable_cloud_save_error_popup_after_retry")?y.return(new Promise(function(w,z){var B,V,b,e,g;return _.n(function(F){switch(F.nextAddress){case 1:B=0,V=!0,e=b=null;case 2:if(!(V&&B++<2)){F.jumpTo(4);break}_.CL(F,5);return F.yield(vvq(X,t,G),7);case 7:b=F.yieldResult;V=b.ok?!1:!f5l.includes(b.status);_.zx(F,2);break;case 5:e=g=_.IY(F);V=M6s(e);F.jumpTo(2);break;case 4:b?b.ok?(Jc(X,rsq),w()):(Jc(X,X.cloudSaveIntervalMs*2),z(Error("Wh`"+String(b.status),{cause:{rpcErrorCode:b.status}}))):
(Jc(X,X.cloudSaveIntervalMs*2),z(e||Error("Xh"))),_.W$(F)}})})):y.return(new Promise(function(w,z){var B,V;
return _.n(function(b){if(b.nextAddress==1){if(X.JSC$16798_miniAppId==="")return z(Error("Yh")),b.return();_.CL(b,2);return b.yield(vvq(X,t,G),4)}if(b.nextAddress!=2)return B=b.yieldResult,B.ok?(Jc(X,rsq),w()):(Jc(X,X.cloudSaveIntervalMs*2),z(Error("Wh`"+String(B.status),{cause:{rpcErrorCode:B.status}}))),_.zx(b,0);V=_.IY(b);Jc(X,X.cloudSaveIntervalMs*2);z(V);_.W$(b)})})):y.return()})},vvq=function(X,t,G){G=G===void 0?!1:G;
var y,w,z;return _.n(function(B){if(B.nextAddress==1)return y=_.i2((new TextEncoder).encode(t)),w=$Gf(),B.yield(L7q(X,w),2);z=B.yieldResult;return B.return(fetch(w,{method:"POST",body:new Blob([y]),headers:z,keepalive:G}))})},PnP=function(X){var t,G;
return _.n(function(y){if(y.nextAddress==1){if(!l5s())return y.return("");if(X.JSC$16798_miniAppId==="")throw Error("Yh");if(X.loadAttempts>2)return y.return(X.downloadDataPromise);_.CL(y,2);return y.yield(aCR(X),4)}if(y.nextAddress!=2)return t=y.yieldResult,y.return(t);G=_.IY(y);if(M6s(G)&&++X.loadAttempts<2)return y.return(PnP(X));throw G;})},aCR=function(X){var t,G,y,w,z;
return _.n(function(B){switch(B.nextAddress){case 1:return _.CL(B,2),t=$Gf(),B.yield(L7q(X,t),4);case 4:return G=B.yieldResult,B.yield(fetch(t,{method:"GET",headers:G}),5);case 5:return y=B.yieldResult,y.ok?B.yield(y.text(),6):B.return(Promise.reject(Error("Zh`"+String(y.status),{cause:new x2h(y.status)})));case 6:return w=B.yieldResult,B.return((new TextDecoder).decode(_.BS(w)));case 2:return z=_.IY(B),B.return(Promise.reject(z))}})},Jc=function(X,t){X.cloudSaveIntervalMs=t;
X.scottyUploadRateLimiter.intervalMs=X.cloudSaveIntervalMs};
Evq.prototype.flush=function(){var X=this;return _.n(function(t){return X.initialDownloadDataSucceeded?t.yield(X.scottyUploadRateLimiter.flush(!0),0):t.return()})};var lCY=Y_(AZ(1),Fe(1)),xOq=Y_(AZ(1),Fe(3)),Bb=function(X){this.callbacks=X};
_.H=Bb.prototype;_.H.onAudioToggled=function(X,t){(t===void 0||t)&&_.Ku("yt-mini-app-is-audio-enabled",X,2592E3)};
_.H.onPause=function(){this.onAudioToggled(!1,!1)};
_.H.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.H.returnNativeBenchmarkingMessage=function(){};
_.H.sendGameData=function(){};
_.H.sendStartGameFrameCapture=function(){};
var tjs=function(X,t,G){this.callbacks=X;var y=this;this.sdkVersion=new _.Kp;this.channel=new Eu_(_.T1({destination:window,iframe:t,origin:(new URL(G.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var w=nf;var z=AZ(5);var B=new CzS;B=_.$o(B,1,1E4);z=_.QW(z,4,pHo,B);w(y,z);y.onAudioToggled(y.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){y.sdkVersion.resolve("")},1E4)};
_.S(tjs,Bb);_.H=tjs.prototype;_.H.onAudioToggled=function(X,t){Bb.prototype.onAudioToggled.call(this,X,t===void 0?!0:t);t=nf;var G=AZ(2),y=new Z9t;X=_.Yb(y,1,X);X=_.QW(G,3,pHo,X);t(this,X)};
_.H.onPause=function(){Bb.prototype.onPause.call(this);nf(this,AZ(3))};
_.H.onResume=function(){Bb.prototype.onResume.call(this);nf(this,AZ(4))};
_.H.returnNativeBenchmarkingMessage=function(X){var t=nf,G=AZ(6);var y=Fe(_.p9(X,VI,1)?1:2);X=_.p9(X,VI,1)?X:null;y=_.QW(y,5,TQ,X);t(this,Y_(G,y))};
_.H.sendGameData=function(X){var t=nf,G=AZ(7);X=_.QW(G,5,pHo,X);t(this,X)};
_.H.sendStartGameFrameCapture=function(){nf(this,AZ(9))};
var VS=function(X,t,G){var y,w,z;return _.n(function(B){if(B.nextAddress==1)return y=X.callbacks,w=y.onSdkCalled,z=t,B.yield(X.sdkVersion.promise,2);w.call(y,z,B.yieldResult,G);_.W$(B)})};
tjs.prototype.onMessage=function(){var X=this;return RcA(Sf,function(t){var G,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L,x,w6,BY,kJ,Ss,C_,Fv,Uh,cY,f_,sq,oq,ll,go,kh,Aq,OR,Mz,HY,yR,hq,gi,TB,Uq,Gc,XH;return _.n(function(n4){switch(n4.nextAddress){case 1:if(!LZB(t.data))return _.Mj(Error("$h")),n4.return();G=_.lz(t.data,1);_.A("enable_iframe_message_get_type_via_fields")&&(y=t.data,G=w=_.lz(y,1));switch(G){case 8:if(t.data.hasMetadata()){var lJ=X.sdkVersion,kV=lJ.resolve;var ZP=t.data.getMetadata();ZP=_.aQ(ZP,
1);kV.call(lJ,ZP);clearTimeout(X.sdkVersionTimeoutId)}break;case 6:return n4.jumpTo(2);case 16:if(!_.r1(t.data,Pzt,14,hZ))return n4.return();z=_.Xy(t.data,Pzt,14,hZ);(V=(B=X.callbacks).onGameFrameReceived)==null||V.call(B,z);return n4.return();case 17:if(!_.r1(t.data,N1B,15,hZ))return n4.return();(e=(b=X.callbacks).onGameAudioReceived)==null||e.call(b,_.Xy(t.data,N1B,15,hZ));return n4.return();case 1:if(lJ=_.Xy(t.data,ubq,2,hZ))switch(_.lz(lJ,1)){case 1:X.callbacks.onFirstFrameReady();if(_.A("enable_network_request_logging_on_game_events")&&
_.p9(lJ,jf,4)){VS(X,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Co(lJ,jf,4));break}VS(X,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(ZP=(kV=X.callbacks).onGameReady)==null||ZP.call(kV);if(_.A("enable_network_request_logging_on_game_events")&&_.p9(lJ,jf,4)){VS(X,"MINI_APP_SDK_API_GAME_READY",_.Co(lJ,jf,4));break}VS(X,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.r1(lJ,gB,3,QQq))X.callbacks.onResourceLoaded(_.Xy(lJ,gB,3,QQq))}return n4.return();case 3:return n4.jumpTo(3);case 4:return n4.jumpTo(4);
case 2:return n4.jumpTo(5);case 9:return n4.jumpTo(6);case 10:return X.callbacks.onClick(),n4.return();case 5:return n4.jumpTo(7);case 11:if(!_.r1(t.data,k_,9,hZ))return n4.return();g=_.Xy(t.data,k_,9,hZ);(T=(F=X.callbacks).onBenchmarkingMessageReceived)==null||T.call(F,g);lJ=t.reply;kV=AZ(1);ZP=Fe(1);var K4=new k_;var Tr=new Uint8Array(VJw(g,cO(g,Yxo,6))|0);K4=O9(K4,5,Yxo,_.PS(Tr,!1));ZP=_.QW(ZP,5,TQ,K4);lJ.call(t,Y_(kV,ZP));return n4.return();case 12:return n4.jumpTo(8);case 13:return n4.jumpTo(9);
case 15:if(!_.A("enable_open_yt_content"))return t.reply(xOq),n4.return();if(!_.r1(t.data,rwq,12,hZ))return t.reply(Y_(AZ(1),Fe(2))),n4.return();lJ=_.Xy(t.data,rwq,12,hZ);D=_.aQ(lJ,1);X.callbacks.onOpenYTContent(D);t.reply(lCY);return n4.return();case 14:return n4.jumpTo(10);default:return n4.return()}n4.jumpTo(0);break;case 2:if(!_.r1(t.data,st,5,hZ))return n4.return();kV=t.data;lJ=cO(kV,hZ,5);kV=kV.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(lJ=FaG(kV,kV[_.C4]|0,st,lJ))||(lJ=st[Yq0])||
(lJ=new st,QR(lJ.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),lJ=st[Yq0]=lJ);h=lJ;lJ=_.dT(h,dB,1,_.eM());u=_.J(lJ);W=u.next();case 12:if(W.done){n4.jumpTo(14);break}c=W.value;P=new _.NJ;P.level=_.lz(c,2)===1?"WARNING":"ERROR";l=y2V(c.getSource());return n4.yield(X.sdkVersion.promise,15);case 15:R={source:l,sdkVersion:n4.yieldResult};_.eq(_.cH(c,6))!=null?(P.message=c.getMessage(),P.stack=_.aQ(c,5),R.sdkErrorType=wwE(_.lz(c,6)),_.eq(_.cH(c,7))!=null&&(R.sdkApi=zyf(_.lz(c,7)))):P.stack=void 0;
x=L=void 0;(x=(L=X.callbacks).onError)==null||x.call(L,{loggingError:P,metadata:R});W=u.next();n4.jumpTo(12);break;case 14:return n4.return();case 3:return _.CL(n4,16),lJ=n4.yield,kV=X.callbacks,ZP=kV.onSave,K4=_.Xy(t.data,qx4,4,hZ),K4=_.aQ(K4,1),lJ.call(n4,ZP.call(kV,K4),18);case 18:t.reply(lCY);_.zx(n4,17);break;case 16:return w6=_.IY(n4),BY=GC,kJ=w6,Ss=X.callbacks,C_="MINI_APP_SDK_API_SAVE_DATA",n4.yield(X.sdkVersion.promise,19);case 19:BY(kJ,Ss,C_,n4.yieldResult),t.reply(xOq);case 17:return n4.yield(VS(X,
"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return n4.return();case 4:return _.CL(n4,21),n4.yield(X.callbacks.onLoad(),23);case 23:Fv=n4.yieldResult;lJ=t.reply;kV=AZ(1);ZP=Fe(1);K4=new qx4;K4=_.rp(K4,1,Fv);ZP=_.QW(ZP,3,TQ,K4);lJ.call(t,Y_(kV,ZP));_.zx(n4,22);break;case 21:return Uh=_.IY(n4),cY=GC,f_=Uh,sq=X.callbacks,oq="MINI_APP_SDK_API_LOAD_DATA",n4.yield(X.sdkVersion.promise,24);case 24:cY(f_,sq,oq,n4.yieldResult),t.reply(xOq);case 22:return n4.yield(VS(X,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return n4.return();
case 5:_.CL(n4,26);X.callbacks.onSendHighScore(vp(_.Xy(t.data,R94,3,hZ).getValue()));t.reply(Y_(AZ(1),Fe(1)));_.zx(n4,27);break;case 26:return ll=_.IY(n4),go=GC,kh=ll,Aq=X.callbacks,OR="MINI_APP_SDK_API_SEND_SCORE",n4.yield(X.sdkVersion.promise,28);case 28:go(kh,Aq,OR,n4.yieldResult),t.reply(xOq);case 27:return n4.yield(VS(X,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return n4.return();case 6:if(!_.r1(t.data,i9J,8,hZ)){n4.jumpTo(30);break}lJ=n4.yield;kV=_.Xy(t.data,i9J,8,hZ);kV=_.lz(kV,1);return lJ.call(n4,
VS(X,zyf(kV)),30);case 30:return n4.return();case 7:return lJ=t.reply,kV=AZ(1),ZP=Fe(1),K4=X.callbacks.getLanguage(),ZP=O9(ZP,4,TQ,IN(K4)),lJ.call(t,Y_(kV,ZP)),n4.yield(VS(X,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return n4.return();case 8:if(!_.r1(t.data,meY,10,hZ))return n4.return();Mz=_.Xy(t.data,meY,10,hZ);HY=X.callbacks;yR=HY.onSdkPerformanceUpdate;return n4.yield(X.sdkVersion.promise,33);case 33:return yR.call(HY,Mz,n4.yieldResult),n4.return();case 9:lJ=t.data;kV=cO(lJ,hZ,11);if(_.W4(_.cH(lJ,
kV))==null)return t.reply(Y_(AZ(1),Fe(2))),n4.return();hq=Me(t.data,11,hZ);X.callbacks.onShareInviteCode(hq);t.reply(lCY);return n4.yield(VS(X,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return n4.return();case 10:if(_.r1(t.data,h9h,13,hZ)){n4.jumpTo(35);break}return n4.yield(X.callbacks.onShowMiniAppAd(2),36);case 36:return gi=n4.yieldResult,t.reply(Y_(AZ(1),WZe(gi))),n4.yield(VS(X,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return n4.return();case 35:lJ=_.Xy(t.data,h9h,13,hZ);a:switch(_.lz(lJ,
1)){case 1:lJ={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:lJ={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:lJ={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}TB=lJ;Uq=TB.adType;Gc=TB.sdkApi;lJ=n4.yield;kV=X.callbacks;ZP=kV.onShowMiniAppAd;K4=_.Xy(t.data,h9h,13,hZ);K4=_.aQ(K4,2);return lJ.call(n4,ZP.call(kV,Uq,K4||void 0),38);case 38:return XH=n4.yieldResult,t.reply(Y_(AZ(1),WZe(XH))),n4.yield(VS(X,Gc),39);case 39:return n4.return()}})})};
var nf=function(X,t){_.n(function(G){X.channel.send(t);_.W$(G)})},y6=function(X,t,G){this.callbacks=X;
var y=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;X=C_f(t,(new URL(G.toString())).origin);this.gameSnacks=new yAP(X);this.gameSnacks.page.onReady(function(){y.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){y.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var w,z;(z=(w=y.callbacks).onGameReady)==null||z.call(w)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(w,z){try{y.callbacks.onSendHighScore(z)}catch(B){GC(B,y.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(w,z){var B;return _.n(function(V){if(V.nextAddress==1)return _.CL(V,2),V.yield(y.callbacks.onSave(y.decoder.decode(z)),4);if(V.nextAddress!=2)return _.zx(V,0);B=_.IY(V);GC(B,y.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return V.return()})});
this.gameSnacks.storage.onLoad(function(){var w,z;return _.n(function(B){if(B.nextAddress==1)return _.CL(B,2),B.yield(y.callbacks.onLoad(),4);if(B.nextAddress!=2)return w=B.yieldResult,B.return(y.encoder.encode(w));z=_.IY(B);GC(z,y.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return B.return(y.encoder.encode(""))})});
this.gameSnacks.init()};
_.S(y6,Bb);y6.prototype.onAudioToggled=function(X,t){Bb.prototype.onAudioToggled.call(this,X,t===void 0?!0:t);var G;(G=this.gameSnacks)==null||G.audio.update(X)};
y6.prototype.onPause=function(){Bb.prototype.onPause.call(this);var X;(X=this.gameSnacks)==null||X.game.pause()};
y6.prototype.onResume=function(){Bb.prototype.onResume.call(this);var X;(X=this.gameSnacks)==null||X.game.resume()};var fCq=Hal,Mzq=_.Fp(function(X){var t=X.data;var G=X.loadingProgress;X=_.J(_.sm("",void 0,"LYYTdd"));var y=X.next().value,w=X.next().value;X=_.J(_.sm(!1,void 0,"K0waae"));var z=X.next().value,B=X.next().value,V=[],b=function(){return"transform: scaleX("+(_.R5(G)||0)+")"},e=null,g=function(){return t()&&e!==null&&e!==void 0?e:e=t().showAnniversaryAnimation?6:fCq()};
_.Em(function(){var h;if(t().timeOutMessages&&((h=t().timeOutMessages)==null?0:h.length)){e=null;h=_.J(V);for(var u=h.next();!u.done;u=h.next())clearTimeout(u.value);V.length=0;omG(t().timeOutMessages,V,w,B)}},"BNu9j");
var F=function(){return!!t().persistentErrorMessageTitle},T=function(){return G!==void 0},D=function(){return t().title};
return _.k("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.k("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.k("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.k("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var h,u=(h=t().backgroundImage)==null?void 0:h.sources,W;return(u==null?0:u.length)?"background-image: url("+((W=u[0])==null?void 0:W.url)+")":
""}}),_.k("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.k(_.d,{cond:function(){return!F()},
then:function(){var h={};return _.k("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.k("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.k(_.D8,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+g()},
data:function(){var u="loading_animation_"+g();return{animationConfig:{name:u,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+u+".json",loop:!0,autoplay:!0}}}})),_.k("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.k(_.d,{cond:D,
then:function(){return _.k("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},D)}}),_.k("p",{class:_.cl("mini-app-splash-screen-view-model-wiz__timeout-message",(h["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return z()},h)),
"aria-live":"polite"},y),_.k(_.d,{cond:T,then:function(){return _.k("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.k("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:b}))}})))}}),_.k(_.d,{cond:F,
then:function(){return _.k("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.k("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return t().persistentErrorMessageTitle}),_.k(_.d,{cond:function(){return!!t().persistentErrorMessageDescription},
then:function(){return _.k("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return t().persistentErrorMessageDescription})}}))}})))},"ee");var Xht=new _.FB("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var $yt=Jf;Jf=function(X){function t(G){if(G){var y,w;(y=G.__spec)==null||(w=y.didUnmount)==null||w.call(y);for(y=0;y<G.childNodes.length;y++)t(G.childNodes[y])}}
$yt==null||$yt(X);xF(function(){for(var G=0;G<X.length;G++)t(X[G])})};var tJt=_.Fp(function(X){var t=X.data;var G=X.score;var y=X.formattedScore;var w=X.onScoreChanged;var z=X.isEmbeddedInWebview;var B=_.VN("yt-mini-app-score-button-view-model"),V=function(){var D;return _.Y(t==null?void 0:(D=t())==null?void 0:D.buttonViewModel,_.vk)},b=function(){var D;
return(G==null?void 0:G())||Number(t==null?void 0:(D=t())==null?void 0:D.lastScore)||0},e=function(){var D;
return(y==null?void 0:y())||((D=V())==null?void 0:D.title)||""},g,F=1;
if(X=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))X=Number(X),F=isNaN(X)?1:X/100;_.Em(function(){w==null||w(b());var D;var h=_.wr((D=V())==null?void 0:D.onTap);if(h){D=_.Y(h,hTt);var u,W,c;D=_.Y(D==null?void 0:(u=D.panelLoadingStrategy)==null?void 0:(W=u.inlineContent)==null?void 0:(c=W.dialogViewModel)==null?void 0:c.customContent,FnS)}else D=void 0;if(u=D)u.score=e()},"KZFi5e");
X=_.NI(function(){var D,h,u=t==null?void 0:(D=t())==null?void 0:(h=D.loggingDirectives)==null?void 0:h.trackingParams;u&&_.ug(_.gw().resolve(_.iR),u);return!1});
_.LY(function(){if(B.value){var D=B.value.querySelector("button"),h=V();D&&h&&J2h(D,h);ei("yt-share-playable-with-high-score",function(){var u=b().toString(),W=t==null?void 0:t().onShareHighScoreCommand,c=t==null?void 0:t().highScoreShareClientParamIdentifier,P=z==null?void 0:z();W&&(P?(c=new Bzq,u=_.rp(c,2,u),ti(W,u.JSC$12247_serializeBinary())):c&&(_.gw().resolve(Xht).clientParams.set(c,{miniAppClientParams:{highScore:u}}),iOf(W,!1)))})}});
var T=function(){var D=V();D&&(G==null?0:G())&&D.accessibilityText&&(D.accessibilityText=D.accessibilityText.replace(g,e()));g=e();return{numberValue:b(),numberText:e(),heightPx:36,fontSizeMultiplier:F,shouldAnimate:!(G==null||!G())&&!0}};
return _.k("yt-mini-app-score-button-view-model",{class:function(){var D={};return _.pX("mini-app-score-button-view-model-wiz",(D["mini-app-score-button-view-model-wiz--is-visible"]=b()!==0,D))},
el:B,"on:click":X},JW(!1,function(){return _.k("span",{style:"display:none;"},b)}),_.k(_.M7,{data:function(){var D;
return t==null?void 0:(D=t())==null?void 0:D.buttonViewModel}},{buttonViewModel:function(D){return _.k(_.QK,{data:D.data,
animatedTextProps:T})}}))},"fe");var HSq=_.Fp(function(X){var t,G=(t=_.O2("yt-mini-app-is-theater-mode-enabled"))!=null?t:!1,y=_.A("enable_playable_container_save_button"),w=_.A("enable_play_next_destination_page_in_toolbar");t={};return _.k("ytm-mini-app-top-bar-view-model",null,_.k("div",{class:_.cl("yt-mini-app-top-bar-view-model",(t["yt-mini-app-top-bar-view-model--mobile"]=!1,t["yt-mini-app-top-bar-view-model--desktop"]=!0,t))},_.k("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.k(_.d,{cond:function(){var z;
return!!X.data().backButtonEdu&&!((z=X.isExitMiniAppSeen)==null?0:z.call(X))},
then:function(){return _.k(_.M7,{data:function(){return X.data().backButtonEdu}},{buttonViewModel:_.QK})},
else:function(){return _.k(_.M7,{data:function(){return X.data().backButton}},{buttonViewModel:_.QK})}}),_.k(_.d,{cond:function(){return X.data().viewAllButton&&!0},
then:function(){return _.k(_.M7,{data:function(){return X.data().viewAllButton}},{buttonViewModel:_.QK})}}),_.k(_.d,{cond:function(){return X.data().title&&!0},
then:function(){return _.k("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return X.data().title})}})),_.k("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.k(_.d,{cond:function(){var z;
return(z=X.isDesktopPlayPage)==null?void 0:z.call(X)},
then:function(){return _.k(_.gn,null,_.k(GIq,{highScoreButton:function(){return X.data().highScoreButton},
score:X.score,formattedScore:X.formattedScore,onScoreChanged:X.onScoreChanged,isEmbeddedInWebview:X.isEmbeddedInWebview}),_.k(yjR,{enableSaveButton:function(){return _.R5(y)},
saveButton:function(){return X.data().saveButton},
isSaved:X.isSaved,onSaveToggled:function(){return X.onSaveToggled}}),_.k(whY,{menuButton:function(){return X.data().menuButton}}))},
else:function(){return _.k(_.d,{cond:function(){return!1},
then:function(){return _.k(_.M7,{data:function(){return X.data().playPageButton}},{buttonViewModel:function(z){return _.k(_.QK,{data:z.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.k(GIq,{highScoreButton:function(){return X.data().highScoreButton},
score:X.score,formattedScore:X.formattedScore,onScoreChanged:X.onScoreChanged,isEmbeddedInWebview:X.isEmbeddedInWebview})}})}})),_.k("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.k(_.M7,{data:function(){return X.data().muteButton}},{toggleButtonViewModel:function(z){var B=z.data;
return _.k(_.Lv,{data:function(){var V,b;return Object.assign({},B(),{isToggled:(b=(V=X.isAudioEnabled)==null?void 0:V.call(X))!=null?b:!0})},
onToggle:X.onAudioToggled,useOutlinedIcon:!0})}}),_.k(_.M7,{data:function(){return X.data().theatreModeButton}},{toggleButtonViewModel:function(z){var B=z.data;
return _.k("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.k(_.Lv,{data:function(){return Object.assign({},B(),{isToggled:G})},
useOutlinedIcon:!0}))}}),_.k(zSh,{fullscreenButton:function(){return X.data().fullscreenButton}}),_.k(_.d,{cond:function(){return _.R5(w)&&X.data().viewAllButton&&!1},
then:function(){return _.k(_.M7,{data:function(){return X.data().viewAllButton}},{buttonViewModel:_.QK})}}),_.k(_.d,{cond:function(){var z;
return!((z=X.isDesktopPlayPage)==null?0:z.call(X))},
then:function(){return _.k(_.gn,null,_.k(yjR,{enableSaveButton:function(){return _.R5(y)},
saveButton:function(){return X.data().saveButton},
isSaved:X.isSaved,onSaveToggled:function(){return X.onSaveToggled}}),_.k(whY,{menuButton:function(){return X.data().menuButton}}))}}))))},"ge");
HSq.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var whY=_.Fp(function(X){return _.k(_.M7,{data:X.menuButton},{buttonViewModel:_.QK})},"he"),yjR=_.Fp(function(X){var t=X.enableSaveButton;
var G=X.saveButton;var y=X.isSaved;var w=X.onSaveToggled;return _.k(_.d,{cond:function(){return t()&&!(G==null||!G())},
then:function(){return _.k(_.M7,{data:function(){var z=_.Y(G==null?void 0:G(),_.as),B;return{toggleButtonViewModel:Object.assign({},z,{isToggled:(B=y==null?void 0:y())!=null?B:!(z==null||!z.isToggled)})}}},{toggleButtonViewModel:function(z){return _.k(_.Lv,{data:z.data,
onToggle:w})}})}})},"ie"),GIq=_.Fp(function(X){var t=X.highScoreButton;
var G=X.score;var y=X.formattedScore;var w=X.onScoreChanged;var z=X.isEmbeddedInWebview;return _.k(_.M7,{data:t},{miniAppScoreButtonViewModel:function(B){return _.k(tJt,{data:B.data,score:G,formattedScore:y,onScoreChanged:w,isEmbeddedInWebview:z})}})},"je"),zSh=_.Fp(function(X){X=X.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.k(_.gn,null):_.k(_.M7,{data:X},{buttonViewModel:_.QK})},"ke");_.oa4=new _.FB("DESKTOP_CURRENT_PAGE");var kI4=_.Fp(function(X){var t=X.data;var G=_.A("force_active_time_logging_webview"),y=!1,w=new W7Y,z=void 0,B=void 0,V=_.gw().resolve(IC4),b=new K7z,e=void 0,g=void 0,F=[],T=void 0,D=void 0,h=!1,u=!1,W=!1,c=!1,P=new _.Kp,l=_.gw().resolve(Xht),R=_.gw().resolve(_.w$),L=_.gw().resolve(_.jH(WV)),x,w6=(x=_.gw().resolve(_.jH(_.oa4)))==null?void 0:x.getCurrentPage(),BY=!1,kJ=0,Ss=function(il){il.preventDefault();return il.returnValue=""},C_;
X=_.J(_.sm(!((C_=_.O2("yt-mini-app-is-audio-enabled"))!=null&&!C_),void 0,"cGaEvf"));var Fv=X.next().value,Uh=X.next().value,cY;C_=_.J(_.sm(!((cY=_.O2("exit-mini-app-seen-state"))==null||!cY),void 0,"DctXGe"));var f_=C_.next().value,sq=C_.next().value;cY=_.J(_.sm(!1,void 0,"pU1jdd"));var oq=cY.next().value,ll=cY.next().value;cY=_.J(_.sm(void 0,void 0,"ldLqDf"));var go=cY.next().value,kh=cY.next().value;cY=_.J(_.sm(void 0,void 0,"mdofE"));var Aq=cY.next().value,OR=cY.next().value;cY=_.J(_.sm(!0,void 0,
"T1gxCf"));var Mz=cY.next().value,HY=cY.next().value;cY=_.J(_.sm(!1,void 0,"gxt7wf"));var yR=cY.next().value,hq=cY.next().value;cY=_.J(_.sm(void 0,void 0,"yqLV6d"));var gi=cY.next().value,TB=cY.next().value;cY=_.J(_.sm(0,void 0,"l6CrGf"));var Uq=cY.next().value,Gc=cY.next().value,XH=_.nl("mini-app-container-view-model"),n4=function(){return t().isEmbeddedInWebview},lJ=function(){return t().hasPlayNextShelf};
ei("yt-page-type-changed",function(il){if(_.A("enable_is_mini_app_page_active_bugfix"))il.detail.newPageSubtype==="mini_app"&&il.detail.newPageType==="ytd-browse"||!Mz()||K4();else if(il=_.rrY()==="mini_app",il!==Mz())if(HY(il),il){var oN;il=(oN=t().playableId)==null?void 0:oN.toString();il!==void 0&&window.location.href.includes(il)&&!u&&(c=!0,kV(),F4.value&&Fk(F4.value))}else il||K4()});
ei("yt-action",function(il){il.detail.actionName==="yt-engagement-panel-visible-changed"&&il.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&il.detail.args[2]==="PAmini_app_panel"&&K4();_.A("enable_is_mini_app_page_active_bugfix")?il.detail.actionName==="yt-history-load"&&!Mz()&&(w6==null?0:w6.active)?(HY(!0),kV(),F4.value&&Fk(F4.value)):il.detail.actionName==="yt-history-load"&&Mz()&&!t().isEmbeddedInWebview&&ZA():Mz()&&il.detail.actionName==="yt-history-load"&&(c?c=!1:t().isEmbeddedInWebview||
ZA())});
_.Um(function(){ZP()});
_.Em(function(){kV()},"PiwKsd");
var kV=function(){var il=t().playableId,oN=t().localReleaseId,RN=t().derivedDeviceInterface;if(u)_.Mj(new _.NJ("[MiniAppContainerViewModel] onEnter was called more than once"));else{u=!0;z=new gvq(il,oN,RN,document.visibilityState==="visible");YMJ(z);B=new Evq(il);Jjh(V,il);OHq(b,{showMiniAppAdCommand:t().showMiniAppAdCommand,isEmbeddedInWebview:t().isEmbeddedInWebview,playLogger:z});Jgh()&&(D=document.body.style.backgroundColor,_.ty(document.body,"background-color","black"));oS();DP();P=new _.Kp;
if(t().isEmbeddedInWebview){if(il=(new URLSearchParams(window.location.search)).get("postPlayNonce"))TOq(z,il),BY=!0;w.initialize({onAudioStateLoaded:function(pT){nT(pT)},
onMuteMiniApp:function(){nT(!1)},
onUnmuteMiniApp:function(){nT(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(pT){BY||(TOq(z,pT),BY=!0)},
confirmExitMiniApp:function(){var pT,bG,H1;return _.n(function(TY){if(TY.nextAddress==1)return t().confirmExitMiniAppCommand?TY.yield(Promise.race([P.promise,Promise.resolve(!1)]),2):TY.return();(pT=TY.yieldResult)?!t().confirmExitMiniAppCommandEdu||(H1=(bG=f_)==null?void 0:bG())!=null&&H1?qV(t().confirmExitMiniAppCommand):(qV(t().confirmExitMiniAppCommandEdu),_.Ku("exit-mini-app-seen-state","true",2592E6)):qV(t().closeMiniAppCommand);_.W$(TY)})},
onNativeBenchmarkingMessageReceived:function(pT){pT=DeB(_.ia6(pT));if(_.r1(pT,_.$l,3,AwY)){var bG=_.Xy(pT,_.$l,3,AwY),H1=LJG();var TY=vp(H1.getSeconds())-vp(bG.getSeconds());bG=_.jM(H1,2)-_.jM(bG,2);TY<0&&bG>0?(TY+=1,bG-=1E9):TY>0&&bG<0&&(--TY,bG+=1E9);TY=(new VI).setSeconds(TY);TY=_.Bt(TY,2,_.jq(bG),0);_.Oi(pT,1,TY)}var jm;(jm=g)==null||jm.returnNativeBenchmarkingMessage(pT)},
multiplayer3pAckStateLoaded:function(pT){ZA(pT)},
exitMiniAppSeenStateLoaded:function(pT){t().confirmExitMiniAppCommandEdu&&sq(pT)},
onNavigateToNewMiniApp:function(){qV(t().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(pT){pT=new URLSearchParams(pT);var bG=void 0;pT.has("invite_code")&&(bG=new O9R,pT=pT.get("invite_code"),bG=_.rp(bG,1,pT));if(pT=bG){var H1;(H1=g)==null||H1.sendGameData(pT)}},
onPauseMiniApp:function(){y=!0;Tr()},
onResumeMiniApp:function(){y=!0;nL()},
onAdFinished:function(pT){b.onAdFinished(pT)}});
t().showMultiplayer3pConsentDialogCommand||P.resolve(!0);qV(t().onContainerReadyCommand)}else TOq(z),P.resolve(!0);UOq(B,F7z(z));F7z(z).then(function(pT){pT={miniAppPlayData:{postPlayNonce:pT}};var bG,H1=(bG=t().loggingDirectives)==null?void 0:bG.trackingParams;H1&&_.Pj().stateChanged(H1,pT)});
il=t().showSignInDialogCommand;!l5s()&&il&&(_.Ku("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),qV(il));t().confirmExitMiniAppCommand&&L&&(il=m2w(t().confirmExitMiniAppCommand))&&(L.customConfirmationCommand=il)}},ZP=function(){D&&_.ty(document.body,"background-color",D);
h=!1;T&&T.release();B.flush().catch(function(il){_.Mj(il)});
V.flush().catch(function(il){_.Mj(il)});
DOz(z);p1();g=void 0;Bs4(l)},K4=function(){HY(!1);
ZP();ll(!1);TB(void 0);kh(void 0);OR(void 0);kJ=0;Gc(0);u=!1},Tr=function(){var il;
(il=g)==null||il.onPause();T&&T.release();B.flush().catch(function(oN){_.Mj(oN)});
V.flush().catch(function(oN){_.Mj(oN)});
svh(z)},nL=function(){var il;
(il=g)==null||il.onResume();DP();il=z;il.isForeground=!0;Hb(il,"PLAY_EVENT_TYPE_PLAY_RESUME")},nT=function(il){var oN;
(oN=g)==null||oN.onAudioToggled(il);Uh(il)},ZA=function(il){t().showMultiplayer3pConsentDialogCommand&&(t().isEmbeddedInWebview&&il!==void 0&&P.resolve(il),!il&&_.rrY()==="mini_app"&&qV(t().showMultiplayer3pConsentDialogCommand))},MY=function(){var il,oN,RN,pT;
return _.n(function(bG){if(bG.nextAddress==1){!t().isLivestream||t().disableVideoCapture||(il=g)!=null&&il.sendStartGameFrameCapture();oN=(new URL(window.location.href)).searchParams;if(oN.has("invite_code")){var H1=new O9R,TY=oN.get("invite_code");RN=_.rp(H1,1,TY);(pT=g)==null||pT.sendGameData(RN)}oq()||(ll(!0),H1=z,H1.state!==1?_.Mj(new _.NJ("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+e$J[H1.state])):(_.sc("mini_app_ids_without_game_ready").includes(H1.JSC$16754_miniAppId)&&(H1.gameReady=
!0),H1.state=2,H1.beforeReady=!1,za(H1,"ma_ffr"),Hb(H1,"PLAY_EVENT_TYPE_PLAY_READY")));return bG.yield(P.promise,2)}qV(t().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();t().isEmbeddedInWebview||ZA();_.W$(bG)})},vS=function(){var il=z;
il.gameReady=!0;za(il,"ma_gr")},c4=function(il){var oN;
return _.n(function(RN){if(RN.nextAddress==1)return _.CL(RN,2),RN.yield(R$q(B,il),4);if(RN.nextAddress!=2)return _.zx(RN,0);oN=_.IY(RN);qV(t().showSavingErrorPopupCommand);throw oN;})},GY=function(){var il,oN;
return _.n(function(RN){if(RN.nextAddress==1)return _.CL(RN,2),RN.yield(mO4(B),4);if(RN.nextAddress!=2)return il=RN.yieldResult,RN.return(il);oN=_.IY(RN);qV(t().showLoadingErrorDialogCommand);throw oN;})},yW=function(il){z.logError(il)},nY=function(il,oN,RN){h$t(z,il,oN,RN)},zl=function(il,oN){qMe(z,il,oN)},Wx=function(){!G&&t().isEmbeddedInWebview||_.FR();
SMt(z,!0);h||(window.addEventListener("beforeunload",Ss,{capture:!0}),h=!0)},W0=function(il){var oN,RN,pT,bG,H1,TY,jm;
return _.n(function(xE){if(xE.nextAddress==1)return V&&(!e||e<il)&&il>0?xE.yield(naR(V,il),3):xE.jumpTo(0);oN=xE.yieldResult;RN=_.J(oN);pT=RN.next().value;bG=RN.next().value;H1=pT;TY=bG;((jm=H1)==null?0:jm.displayString)&&TY&&(kh(TY),OR(H1.displayString));_.W$(xE)})},Vr=function(il){var oN=t().onBenchmarkingMessageReceivedCommand;
if(oN){var RN=LJG();_.QW(il,3,AwY,RN);ti(oN,Sxz(il))}},em=function(il){var oN=t().onGameFrameReceivedCommand;
if(oN){var RN=new lY;var pT=new kuJ;var bG=L9(il,1);pT=_.rj(pT,1,bG);il=_.aQ(il,2);il=_.rp(pT,2,il);RN=_.Oi(RN,2,il);ti(oN,gXY(RN))}},Df=function(il){var oN=t().onGameAudioDataReceivedCommand;
if(oN){var RN=new lY;var pT=new emt;il=_.aQ(il,1);pT=_.rp(pT,1,il);RN=_.Oi(RN,4,pT);ti(oN,gXY(RN))}},p_=function(){var il=new URLSearchParams(window.location.search);
if(t().isEmbeddedInWebview&&il&&il.get("override_hl")==="true"&&il.get("hl"))return il.get("hl");il=document.documentElement.lang;return il!==""?il:_.wV},mE=function(il){var oN=t().onShareInviteCodeCommand;
if(oN)if(t().isEmbeddedInWebview){var RN=new Bzq;il=_.rp(RN,1,il);ti(oN,VOo(il))}else RN=t().inviteCodeShareClientParamIdentifier,l.clientParams.set(RN,{miniAppClientParams:{inviteCode:il}}),qV(oN)},Yh=function(il){var oN,RN,pT;
return _.n(function(bG){if(bG.nextAddress==1)return oN=t().onMiniAppOpenYtContentRequested,V&&_.A("enable_open_yt_content")&&oN?bG.yield(VJz(V,il),3):bG.jumpTo(0);RN=bG.yieldResult;if(RN==="OK")if(t().isEmbeddedInWebview){var H1=new BAY;pT=O9(H1,2,aM,IN(il));ti(oN,bPt(pT))}else R.clientData.set("video_id",il),qV(oN);_.W$(bG)})},B4=function(il){kJ+=_.jM(il,3);
il=Math.min(Math.log(1+kJ/15E6*9)/Math.log(10),.99);Gc(il);u_(il)},u_=_.PI(function(il){var oN=t().updateLoadingProgressCommand;
if(oN){var RN=new BAY;il=O9(RN,3,aM,_.H4(il));ti(oN,bPt(il))}},100),AQ=function(il){return Qvq(b,il)},DP=function(){var il,oN;
((il=_.sBl())==null?void 0:(oN=il.wakeLock)==null?void 0:oN.request)!=null&&_.sBl().wakeLock.request("screen").then(function(RN){T=RN}).catch(function(){})},F4=_.VN("iframe");
_.Em(function(){t().isSupportedCountry&&(l5s()||_.A("enable_sign_in_promo")||!t().showSignInDialogCommand?F4.value&&Fk(F4.value):qV(t().onMiniAppReadyCommand))},"XK60ib");
var CT=function(){return _.k("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return oq()?0:-1},
el:F4})},Fk=function(il,oN){oN=oN===void 0?!1:oN;
var RN=VR();RN&&(oN||RN.toString()!==il.getAttribute("src"))&&(g=GWV(t().source,{isAudioEnabled:Fv,onFirstFrameReady:MY,onGameReady:vS,onSave:c4,onLoad:GY,onError:yW,onSdkCalled:nY,onSdkPerformanceUpdate:zl,onClick:Wx,onSendHighScore:W0,onBenchmarkingMessageReceived:Vr,getLanguage:p_,onShareInviteCode:mE,onResourceLoaded:B4,onOpenYTContent:Yh,onShowMiniAppAd:AQ,onGameFrameReceived:em,onGameAudioReceived:Df},il,RN),mf(il,"load",function(){za(z,"ma_il");mf(il,"load",function(){Fk(il,!0)})}),_.wq(il,
RN))},VR=function(){var il=t().url;
if(il&&(il=_.aS(il),il!==null)){if(t().source&&t().source==="MINI_APP_SOURCE_GAMESNACKS")il=_.DA(il,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.A("enable_origin_query_parameter_bugfix")){var oN=_.LV(_.H3V(il.toString()));oN=new URLSearchParams(oN||"");oN.set("origin",window.location.origin);oN=oN.toString();il=_.Nx(il).toString();il=_.rN(Qqe.exec(il)[0]+(oN.trim()?"#"+oN:""))}return il}},s6=function(){var il={};
il=_.cl("yt-mini-app-container-view-model__loading-screen",(il["yt-mini-app-container-view-model__loading-screen--fade-out"]=oq,il));var oN=function(){return oq()?1:Uq()};
return _.k("div",{class:il},_.k(_.M7,{data:function(){return t().splashScreen}},{miniAppSplashScreenViewModel:function(RN){return _.k(Mzq,{data:RN.data,
loadingProgress:oN})}}))},oS=function(){F=[];
F.push(_.vj(window,"visibilitychange",function(){W||y&&n4()||(document.visibilityState==="visible"?nL():Tr())}));
F.push(_.vj(window,"pagehide",function(){ZP()}));
F.push(_.vj(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&XH.value.dispatchEvent(new Event("tap"))},0)}));
F.push(_.vj(XH.value,"pointerdown",function(){SMt(z,!1)},!0));
F.push(_.vj(XH.value,"pause",function(){W=!0;Tr()}));
F.push(_.vj(XH.value,"play",function(){W=!1;nL()}));
F.push(_.vj(XH.value,"exit",function(){ZP()}));
var il=navigator.keyboard,oN=il&&il.lock;F.push(_.vj(window,ipo,function(){hq(v1t());v1t()?(t().hasPlayNextShelf&&kl("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"),oN&&il.lock(["Escape"])):(t().hasPlayNextShelf&&G5("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),kl("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),oN&&il.unlock())}));
t().showMultiplayer3pConsentDialogCommand&&F.push(_.vj(window,"yt-playables-ack-3p-data-usage",function(){bSt(V)}));
t().confirmExitMiniAppCommandEdu&&F.push(_.vj(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Ku("exit-mini-app-seen-state","true",2592E6)}));
t().onGameAudioDataReceivedCommand&&F.push(_.vj(window,"message",function(RN){RN=RN.event_;var pT,bG=(pT=F4.value)==null?void 0:pT.src;if(bG&&RN.origin===(new URL(bG)).origin&&RN.data&&RN.data.type==="GAME_AUDIO"&&RN.data.audio&&RN.data.audio.length>0)if(_.A("enable_sending_unwrapped_game_audio_as_serialized_metadata"))ti(t().onGameAudioDataReceivedCommand,RN.data.audio);else{var H1=new FileReader;H1.onload=function(){var TY=new lY;var jm=new emt;jm=_.rp(jm,1,H1.result);TY=_.Oi(TY,4,jm);ti(t().onGameAudioDataReceivedCommand,
gXY(TY))};
H1.readAsDataURL(new Blob([RN.data.audio]))}}))},p1=function(){F.forEach(function(il){RL(il)});
window.removeEventListener("beforeunload",Ss,{capture:!0})},qV=function(il){il&&iOf(il,t().isEmbeddedInWebview||!1)},G5=function(il,oN){il=_.J(XH.value.getElementsByClassName(il));
for(var RN=il.next();!RN.done;RN=il.next())RN.value.classList.add(oN)},kl=function(il,oN){il=_.J(XH.value.getElementsByClassName(il));
for(var RN=il.next();!RN.done;RN=il.next())RN.value.classList.remove(oN)};
return function(){var il={};il=_.cl("yt-mini-app-container-view-model",(il["yt-mini-app-container-view-model--desktop"]=!0,il["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return t().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},il["yt-mini-app-container-view-model--ios-web-view"]=Jgh(),il["yt-mini-app-container-view-model--no-top-bar"]=function(){return!t().topBar},il["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return t().hasPlayNextShelf},il["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return t().hasPlayNextShelf},il["yt-mini-app-container-view-model--show-peek-below"]=function(){return!yR()&&t().hasPlayNextShelf},il));
var oN={};oN=_.cl("yt-mini-app-container-view-model__content",(oN["yt-mini-app-container-view-model__content--desktop-content"]=!0,oN["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return t().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},oN["yt-mini-app-container-view-model--desktop-play-page"]=function(){return t().hasPlayNextShelf},oN));
return _.k("mini-app-container-view-model",{el:XH},_.k("div",{class:il},_.k(_.d,{cond:function(){return t().topBar&&!yR()},
then:function(){return _.k(_.M7,{data:function(){return t().topBar}},{miniAppTopBarViewModel:function(RN){return _.k(HSq,{data:RN.data,
isAudioEnabled:Fv,onAudioToggled:function(pT){nT(pT)},
score:go,formattedScore:Aq,onScoreChanged:function(pT){e=pT},
isEmbeddedInWebview:n4,isSaved:gi,onSaveToggled:function(pT){TB(pT)},
isExitMiniAppSeen:f_,isDesktopPlayPage:lJ})}})}}),_.k("div",{class:oN},_.k(_.d,{cond:Mz,
then:function(){return CT()}}),_.k(_.d,{cond:function(){return!t().isEmbeddedInWebview},
then:function(){return s6()}}))))}()},"le");
kI4.idomCompat=!0;_.DW(kI4,"mini-app-container-view-model",{props:{data:_.bR}});var dyz=_.Fp(function(X){var t=X.data;return _.k("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.k("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.NI(function(){var G=t().onTap;G&&_.JH(G)})},_.k(_.d,{cond:function(){return t().icon},
then:function(G){return _.k(_.mw,{icon:function(){return G().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.k("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return t().title})))},"me");
dyz.idomCompat=!0;var eSR=_.Fp(function(X){var t=_.nl("div"),G=_.J(_.sm(void 0,void 0,"kFCJ0c")),y=G.next().value,w=G.next().value;G=_.J(_.sm(void 0,void 0,"PIPgWd"));var z=G.next().value,B=G.next().value;G=_.J(_.sm(void 0,void 0,"rV66ob"));var V=G.next().value,b=G.next().value,e=function(){var c=y();return c!==void 0?Math.abs(c):void 0},g=function(){var c=e();
return c===void 0||c<=3},F=function(){var c=e();
var P=z(),l=V();c=c!==void 0&&P!==void 0&&l!==void 0?P-l-c:void 0;return c===void 0||c<=3},T=function(c){t.value&&t.value.scrollBy({top:0,
left:(_.Md("HTML_DIR")==="rtl"?-1:1)*c*t.value.clientWidth,behavior:"smooth"})},D=function(){var c;
w((c=t.value)==null?void 0:c.scrollLeft);var P;B((P=t.value)==null?void 0:P.scrollWidth);var l;b((l=t.value)==null?void 0:l.clientWidth)},h=function(){T(-.5)},u=function(){T(.5)};
G=_.NI(function(){D()});
_.R2(function(){D();if(t.value){var c=new ResizeObserver(D);c.observe(t.value);_.Um(function(){c.disconnect()})}});
var W={};return _.k("yt-sponsorships-scrollable-shelf",{class:_.cl("ytdSponsorshipsScrollableShelfHost",X.className)},_.k("div",{class:_.cl("ytdSponsorshipsScrollableShelfContent",(W.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return X.data().previousButton&&X.data().nextButton&&!g()&&!F()},W.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return X.data().previousButton&&!g()&&F()},W.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return X.data().nextButton&&
g()&&!F()},W)),
el:t,"on:scroll":G},X.children),_.k(_.d,{cond:function(){return!g()},
then:function(){return _.k(_.M7,{data:function(){return X.data().previousButton}},{buttonViewModel:function(c){return _.k(_.QK,{data:c.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:h})}})}}),_.k(_.d,{cond:function(){return!F()},
then:function(){return _.k(_.M7,{data:function(){return X.data().nextButton}},{buttonViewModel:function(c){return _.k(_.QK,{data:c.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:u})}})}}))},"ne");
eSR.idomCompat=!0;var gah=_.Fp(function(X){var t=X.data;X={};return _.k("yt-sponsorships-hub",{class:_.cl("ytdSponsorshipsHubHost",(X.ytdSponsorshipsHubHostIndented=function(){return t().indented},X))},_.k("div",{class:"ytdSponsorshipsHubHeader"},_.k("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.k("div",{class:"ytdSponsorshipsHubAvatar"},_.k(_.M7,{data:function(){return t().avatar}},{avatarViewModel:_.al})),_.k(_.d,{cond:function(){return t().badgeImage},
then:function(G){return _.k("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.k("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.k("div",{class:"ytdSponsorshipsHubBadge"},_.k(_.gr,{data:G,targetWidth:24,targetHeight:24,alt:""}))))}})),_.k("div",{class:"ytdSponsorshipsHubDetails"},_.k("div",{class:"ytdSponsorshipsHubTierName"},function(){return t().tierName}),_.k("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return t().membershipType}),_.k("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return t().membershipDurationOrExpiry})),_.k("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.k(_.M7,{data:function(){return t().manageButton}},{buttonViewModel:function(G){return _.k(_.QK,{data:G.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.k(_.M7,{data:function(){return t().actionMenuButton}},{buttonViewModel:function(G){return _.k(_.QK,{data:G.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.k("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return t().perksTitle}),_.k(eSR,{data:function(){return{previousButton:t().previousPerkButton,
nextButton:t().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.k("div",{class:"ytdSponsorshipsHubPerkCards"},_.k(_.M7,{data:function(){return t().perkCards}},{sponsorshipsHubPerkCardViewModel:dyz}),_.k(_.d,{cond:function(){return t().viewAllPerksButton},
then:function(G){return _.k(jno,{data:G})}}))))},"oe");
gah.idomCompat=!0;var jno=_.Fp(function(X){var t=X.data;return _.k("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.k(_.M7,{data:function(){return t().button}},{buttonViewModel:_.QK}),_.k("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.k("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return t().title}),_.k("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return t().subtitle})))},"pe");
jno.idomCompat=!0;_.DW(gah,"yt-sponsorships-hub",{props:{data:_.bR}});_.FBY=_.Fp(function(X){var t=X.data;return _.k("yt-dual-avatar-view-model",{class:_.cl("ytDualAvatarViewModelHost",X.className),style:_.Ud({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var G;return((G=t().badgeCutoutRadius)!=null?G:14)+"px"}})},_.k("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.k(_.M7,{data:function(){return t().startAvatar}},{avatarViewModel:_.al}),_.k(_.M7,{data:function(){return t().endAvatar}},{avatarViewModel:_.al})),_.k(_.M7,{data:function(){return t().badge}},
{contentPreviewImageViewModel:function(G){return _.k("div",{class:"ytDualAvatarViewModelBadge"},_.k(_.sY,{data:G.data}))}}))},"qe");
_.FBY.idomCompat=!0;var Aje=_.Fp(function(X){var t=X.data;var G,y=!((G=_.gw().resolve(_.jH(_.kI)))==null||!G());X=_.qt(function(){var g,F,T=y?(g=t().header)==null?void 0:g.backgroundColorDarkMode:(F=t().header)==null?void 0:F.backgroundColorLightMode;if(T!==void 0)return _.yY(T)},void 0,"UX2G6c");
G=_.qt(function(){var g,F;return y?(g=t().header)==null?void 0:g.backgroundImagePart1Dark:(F=t().header)==null?void 0:F.backgroundImagePart1Light},void 0,"GPAi1d");
var w=_.qt(function(){var g,F;return y?(g=t().header)==null?void 0:g.backgroundImagePart2Dark:(F=t().header)==null?void 0:F.backgroundImagePart2Light},void 0,"nboJld"),z=_.qt(function(){return _.Md("HTML_DIR")==="rtl"},void 0,"LGJceb"),B=_.nl("yt-sponsorships-perks-list"),V=!1,b=function(){var g=B.value;
if(g&&!V){var F,T=(F=g.parentElement)==null?void 0:F.parentElement;if(T)for(g=g.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),F=0;F<g.length;++F){var D=g[F];if(D instanceof HTMLElement){T.scrollTo({top:D.offsetTop+D.clientHeight/2-T.clientHeight/2,behavior:"smooth"});V=!0;break}}}};
_.LY(function(){var g=B.value;if(g){var F=new ResizeObserver(b);F.observe(g);_.Um(function(){F.disconnect()})}});
var e={};return _.k("yt-sponsorships-perks-list",{el:B,class:_.cl("ytdSponsorshipsPerksListHost",(e.ytdSponsorshipsPerksListHorizontalPadding=function(){return t().horizontalPaddingEnabled},e))},_.k("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.k("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Ud({"background-color":X})},_.k("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.k(_.d,{cond:G,then:function(g){var F={};return _.k("div",{class:_.cl((F.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=y,F.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!y,F.ytdSponsorshipsPerksListFlipped=z,F))},_.k(_.gr,{data:g,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.k("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.k(_.d,{cond:w,
then:function(g){var F={};return _.k("div",{class:_.cl((F.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=y,F.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!y,F.ytdSponsorshipsPerksListFlipped=z,F))},_.k(_.gr,{data:g,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.k("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.k(_.M7,{data:function(){var g;
return(g=t().header)==null?void 0:g.dualAvatar}},{dualAvatarViewModel:_.FBY})))),_.k("div",{class:"ytdSponsorshipsPerksListBody"},_.k("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return t().title}),_.k(_.d,{cond:function(){return t().perks},
then:function(g){return _.k(_.pY,{each:g},function(F,T){var D={};return _.k("div",{class:_.cl("ytdSponsorshipsPerksListPerkContainer",(D.ytdSponsorshipsPerksListSelectedPerk=function(){var h=T(),u=t().selectedPerkIndex;return h===u},D))},_.k(_.d,{cond:function(){return T()>0},
then:function(){return _.k("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.k("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.k(_.d,{cond:function(){return F.icon},
then:function(h){return _.k(_.mw,{icon:function(){return h().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.k("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.k("div",{class:"ytdSponsorshipsPerksListPerkTitle"},F.title),_.k("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.k(_.eh,{text:F.description})),_.k(_.d,{cond:function(){return F.instructions},
then:function(){var h,u;return _.k("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.k("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(h=F.instructions)==null?void 0:h.title),_.k("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.k(_.eh,{text:(u=F.instructions)==null?void 0:u.text})))}}))),_.k(_.d,{cond:function(){return F.emoji},
then:function(h){return _.k("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.k(_.pY,{each:function(){return h()}},function(u){return _.k(_.gr,{data:u,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.k(Ts4,{data:F}))})}})))},"re");
Aje.idomCompat=!0;var Ts4=_.Fp(function(X){var t=X.data;var G=function(B,V){return B===V},y=function(){var B=t();
B=_.Y(B==null?void 0:B.badgesShelf,TvJ);return B!==void 0&&B!==null?B:{previousButton:{},nextButton:{}}},w=_.VN("div"),z=function(){var B=w.value;
if(B){var V=B.parentElement;if(V){B=B.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var b=0;b<B.length;++b){var e=B[b];if(e instanceof HTMLElement){V.scrollTo({left:e.offsetLeft+e.clientWidth/2-V.clientWidth/2,behavior:"instant"});break}}}}};
_.LY(function(){var B=w.value;if(B){var V=new ResizeObserver(z);V.observe(B);_.Um(function(){V.disconnect()})}});
return _.k("div",null,_.k(_.d,{cond:function(){return t().badges},
then:function(B){return _.k(eSR,{data:y},_.k("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:w},_.k(_.pY,{each:function(){return B()}},function(V,b){var e={},g={},F={};
return _.k("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.k(_.d,{cond:function(){return b()>0},
then:function(){return _.k("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.k("div",{class:_.cl("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(e.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return G(b(),t().currentBadgeIndex)},e.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!G(b(),t().currentBadgeIndex)},e))},_.k("div",{class:_.cl("ytdSponsorshipsPerksListLoyaltyBadge",(g.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return G(b(),
t().currentBadgeIndex)},g.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!G(b(),t().currentBadgeIndex)},g))},_.k(_.d,{cond:function(){return V.image},
then:function(T){var D={};return _.k("div",{class:_.cl((D.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return G(b(),t().currentBadgeIndex)},D.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!G(b(),t().currentBadgeIndex)},D))},_.k(_.gr,{data:T,
alt:""}))}})),_.k("div",{class:_.cl("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(F.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return G(b(),t().currentBadgeIndex)},F))},V.title)))})))}}))},"se");
Ts4.idomCompat=!0;_.DW(Aje,"yt-sponsorships-perks-list",{props:{data:_.bR}});_.DW(_.Fp(function(X){return _.k("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.k(_.d,{cond:function(){return X.data().image},
then:function(t){return _.k(_.gr,{className:"ytwFantasyEmptyStateViewModelImage",data:t,ariaHidden:!0,alt:""})}}),_.k(_.eh,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return X.data().title}}),_.k(_.eh,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return X.data().subtitle}}),_.k(_.M7,{data:function(){return X.data().primaryButton}},{buttonViewModel:function(t){return _.k(_.QK,{data:t.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"te"),"ytw-fantasy-empty-state-view-model",{props:{data:_.bR}});var YTY;var nmv=_.L5({buttonRenderer:_.bZ});_.FE(Vj_);_.up(Vj_,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var b4=function(){var X=_.O.apply(this,arguments)||this;X.hideJoinButtonBeforeSubscribed=_.A("hide_join_button_before_subscribed");X.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return X};
_.S(b4,_.O);_.H=b4.prototype;_.H.hasShowDialogCommand=function(X){return!!_.Y(X,hTt)};
_.H.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"}}}};
_.H.updateJoinButtonOverrides=function(){var X,t;(X=_.Sm(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(t=X.polymerController)==null||t.set("overrides",this.joinButtonOverrides);if(X=_.Sm(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))X.overrides=this.joinButtonOverrides};
_.H.handleButtonRefreshAction=function(X){if(X=_.Y(X,uyz))this.set("data.membershipButton",X.membershipButton),this.notifyPath("data.membershipButton")};
_.H.onYtServiceRequestError=function(X){_.F7(this.hostElement,X.detail.error.message)};
_.H.onTap=function(){var X;(X=this.data)!=null&&X.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.H.handleUnsubscribeAction=function(){var X,t,G;((X=this.data)==null?void 0:(t=X.membershipButton)==null?void 0:(G=t.buttonRenderer)==null?void 0:G.style)==="STYLE_PRIMARY"&&_.Sm(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.ke.Object.defineProperties(b4.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.subscriptionStateEntity)==null||!X.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var X,t=(X=this.data)==null?void 0:X.membershipButton,G;X=(t==null?void 0:t.buttonRenderer)||_.Y(t==null?void 0:(G=t.timedAnimationButtonRenderer)==null?void 0:G.buttonRenderer,_.G4);return(X==null?void 0:X.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(X==null?void 0:X.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(X==null?void 0:X.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var X;if(this.hasShowDialogCommand((X=this.data)==null?void 0:X.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var X;if(this.hasShowDialogCommand((X=this.data)==null?void 0:X.navigationEndpoint))return"button"}}});
b4.prototype.onTap=b4.prototype.onTap;b4.prototype.onYtServiceRequestError=b4.prototype.onYtServiceRequestError;b4.prototype.updateJoinButtonOverrides=b4.prototype.updateJoinButtonOverrides;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],b4.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],b4.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],b4.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.xr),_.U("design:type",Object)],b4.prototype,"ironButtonState",void 0);_.E([_.K(),_.U("design:type",Object)],b4.prototype,"data",void 0);
_.E([_.C("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.U("design:type",Object),_.U("design:paramtypes",[])],b4.prototype,"hideJoin",null);_.E([_.K(),_.U("design:type",String)],b4.prototype,"subscribeKey",void 0);_.E([_.K({selectorArgs:["subscribeKey"],selector:YkE}),_.U("design:type",Object)],b4.prototype,"subscriptionStateEntity",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],b4.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.E([_.C("subscriptionStateEntity"),_.K({reflectToAttribute:!0}),_.U("design:type",Object),_.U("design:paramtypes",[])],b4.prototype,"subscribed",null);_.E([_.C("subscribed","data.membershipButton"),_.U("design:type",Object),_.U("design:paramtypes",[])],b4.prototype,"joinButtonOverrides",null);_.E([_.C("data.navigationEndpoint"),_.U("design:type",Object),_.U("design:paramtypes",[])],b4.prototype,"channelNameTabIndex",null);
_.E([_.C("data.navigationEndpoint"),_.U("design:type",Object),_.U("design:paramtypes",[])],b4.prototype,"channelNameRole",null);_.E([_.cW("joinButtonOverrides"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],b4.prototype,"updateJoinButtonOverrides",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],b4.prototype,"onYtServiceRequestError",null);
_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],b4.prototype,"onTap",null);_.E([_.p({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],b4);
var snq=_.qi()(b4,"ytd-video-owner-renderer",function(){if(YTY===void 0){var X=document.createElement("template");_.Z(X,'\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]]" 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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);YTY=X}X=YTY;return X},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.DW(_.Fp(function(X){var t=X.data;var G;X=_.J(_.sm(!((G=_.O2("yt-mini-app-is-theater-mode-enabled"))==null||!G),void 0,"CtFFDf"));var y=X.next().value,w=X.next().value;G=_.J(_.sm(!1,void 0,"pRgDfb"));var z=G.next().value,B=G.next().value;_.LY(function(){var e=_.vj(window,ipo,function(){B(v1t())});
_.Um(function(){RL(e)})});
var V;G=(V=_.gw().resolve(_.jH(vYR)))!=null?V:function(){return _.k("div",null)};
_.Bq("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){w(!0);_.Ku("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Bq("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){w(!1);_.Ku("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
V={};X={};var b={};return _.k("mini-app-play-page-renderer",{class:_.cl("miniAppPlayPageRendererHost",(V.miniAppPlayPageRendererHostDetailsView=function(){return!y()},V))},_.k("div",{class:_.cl("miniAppPlayPageRendererGameContainer",(X.miniAppPlayPageRendererGameContainerDetailsView=function(){return!y()},X))},_.k(_.M7,{data:function(){return t().containerViewModel}},{miniAppContainerViewModel:kI4}),_.k(_.d,{cond:function(){return t().channel&&t().subscribeButton},
then:function(){var e={};return _.k("div",{class:_.cl("miniAppPlayPageRendererChannelContainer",(e.miniAppPlayPageRendererHideVisibility=function(){return z()},e))},_.k(_.M7,{data:function(){return t().channel}},{videoOwnerRenderer:function(g){return _.k(snq,{data:g.data})}}),_.k(_.M7,{data:function(){return t().subscribeButton}},{subscribeButtonViewModel:function(g){return _.k(_.vV,{data:g.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.k(_.d,{cond:function(){return!y()&&t().description},
then:function(){var e={};return _.k("div",{class:_.cl("miniAppPlayPageRendererMiniAppDescriptionWrapper",(e.miniAppPlayPageRendererHideVisibility=function(){return z()},e))},_.k("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return t().description}))}})),_.k("div",{class:_.cl("miniAppPlayPageRendererPlayNextContainer",(b.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!y()},b.miniAppPlayPageRendererHideVisibility=function(){return z()},b))},_.k(_.M7,{data:function(){return t().sectionList}},
{sectionListRenderer:G})))},"ue"),"mini-app-play-page-renderer",{props:{data:_.bR}});var kN=function(){var X=_.O.apply(this,arguments)||this;X.isSearch=!1;X.isConstrainedList=!1;X.hasChipsBar=!1;X.inReplyPanel=!1;X.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"}};X.monitorScroll=!0;X.SCROLL_ANIMATION_DURATION_MS=300;X.nextContinuation={continuationType:"sectionListContinuation"};return X};
_.S(kN,_.O);_.H=kN.prototype;
_.H.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(X){switch(X.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},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:_.A("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.A("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.H.created=function(){var X=this;this.JSC$16893_scrollAnimation=new _.yS(function(t){X.hostElement.scrollTop=t})};
_.H.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.H.getItemsPath=function(){return"data.contents"};
_.H.replacePrimaryContent=function(X){this.set("data.contents",X)};
_.H.computeHasSortFilter=function(X){return!!X&&!!X.sortFilterSubMenuRenderer};
_.H.computeShouldScrollInPanel=function(X){var t;return!!(X==null?0:(t=X.scrollPaneStyle)==null?0:t.scrollable)};
_.H.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Zk(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.H.scrollToTop=function(){this.hostElement.scrollTop=0};
_.H.scrollToItemSection=function(X){if(X=this.getItemByIdentifier(X))X=this.getScrollPositionForItem(X),this.hostElement.scrollTop!==X&&this.JSC$16893_scrollAnimation.start(this.hostElement.scrollTop,X,this.SCROLL_ANIMATION_DURATION_MS)};
_.H.getItemByIdentifier=function(X){var t=this.contents.querySelectorAll("ytd-item-section-renderer");if(t&&t.length!==0){var G=Array.from(t).findIndex(function(y){return y.sectionIdentifier===X});
return t[G===-1?0:G]}};
_.H.getScrollPositionForItem=function(X){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===X)return 0;X=_.lG(X).y+this.hostElement.scrollTop-_.lG(this.hostElement).y;return Math.min(X,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.ke.Object.defineProperties(kN.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.targetId)==="browse-feedFEclips"}}});
kN.prototype.onScroll=kN.prototype.onScroll;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.AV.YtLazyListBehavior),_.U("design:type",Object)],kN.prototype,"ytLazyListBehavior",void 0);_.E([_.q(_.JX.YtNextContinuationBehavior),_.U("design:type",Object)],kN.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.q(_.nvh),_.U("design:type",Object)],kN.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],kN.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],kN.prototype,"data",void 0);_.E([_.K({value:2}),_.U("design:type",Number)],kN.prototype,"initialCount",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],kN.prototype,"autoFill",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.U("design:type",Boolean)],kN.prototype,"hasSortFilter",void 0);_.E([_.K({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.U("design:type",Boolean)],kN.prototype,"hideBottomSeparator",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.U("design:type",Boolean)],kN.prototype,"shouldScrollInPanel",void 0);
_.E([_.K(),_.U("design:type",Object)],kN.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kN.prototype,"isConstrainedList",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],kN.prototype,"responsiveSizing",void 0);_.E([_.K(),_.U("design:type",Object)],kN.prototype,"hasChipsBar",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],kN.prototype,"pageSubtype",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],kN.prototype,"engagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],kN.prototype,"liveChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kN.prototype,"inReplyPanel",void 0);_.E([_.rt("#action-button"),_.U("design:type",HTMLElement)],kN.prototype,"actionButton",void 0);_.E([_.K(),_.U("design:type",Object)],kN.prototype,"scrollUpButtonData",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],kN.prototype,"engagementPanelDropdown",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],kN.prototype,"engagementPanelDialog",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],kN.prototype,"isClipList",null);_.E([_.rt("#contents"),_.U("design:type",HTMLElement)],kN.prototype,"monitorScrollElement",void 0);_.E([_.rt("#contents"),_.U("design:type",HTMLElement)],kN.prototype,"contents",void 0);
_.E([_.WW("scroll"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kN.prototype,"onScroll",null);_.E([_.p({is:"ytd-section-list-renderer",disableElementRegistration:!0})],kN);
var Dyq=_.qi()(kN,"ytd-section-list-renderer",function(){if(LeY===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);LeY=X}X=LeY;return X},{mode:1});var STo;var hSP;var ZSB;var qTt;var d$=function(){return _.O.apply(this,arguments)||this};
_.S(d$,_.O);d$.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
d$.prototype.onLikeButtonClick=function(X){X.stopPropagation();X.preventDefault()};
_.ke.Object.defineProperties(d$.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)!=null&&X.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)})}}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],d$.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],d$.prototype,"ytRendererStamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],d$.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.likeStatusEntityKey"],selector:zz}),_.U("design:type",Object)],d$.prototype,"likeStatusEntity",void 0);_.E([_.C("data","likeStatusEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],d$.prototype,"likeButtonRenderer",null);_.E([_.p({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],d$);
_.N(d$,"ytd-slim-metadata-toggle-button-renderer",function(){if(qTt!==void 0)return qTt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return qTt=X},{mode:1});var e8=function(){var X=_.O.apply(this,arguments)||this;X.minimizePipBreakages=_.A("web_pip_minimize_breakages");X.showEqualizer=_.A("web_enable_playlist_video_lockup_equalizer");X.watchColorUpdate=_.A("kevlar_watch_color_update");X.actionMap={};return X};
_.S(e8,_.O);_.H=e8.prototype;_.H.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"}}}};
_.H.computeEditableClass=function(X){return X&&X.menu?"editable":""};
_.H.computeSelected=function(X){return!(X==null||!X.selected)};
_.H.computeUseColorPalette=function(X){return!!((X==null?0:X.lightColorPalette)&&(X==null?0:X.darkColorPalette))};
_.H.computeLargerPlaylistThumbs=function(X,t){return _.A("web_enable_playlist_bigger_thumbnails")&&!t};
_.H.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.H.onYtServiceRequestSent=function(X,t){t.endpoint&&this.isHideEnclosingAction(t.endpoint)&&!this.selected&&i$t(_.oI(),this.data.videoId)};
_.H.isHideEnclosingAction=function(X){var t=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",X);X=this.get("likeEndpoint.status",X)==="INDIFFERENT";return t||X};
_.H.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.H.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.ke.Object.defineProperties(e8.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.A("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 X;return!!(this.withinMiniplayer&&((X=this.data)==null?0:X.actionButtons))}}});
e8.prototype.onYtServiceRequestSent=e8.prototype.onYtServiceRequestSent;e8.prototype.canReorderChanged=e8.prototype.canReorderChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],e8.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.JV),_.U("design:type",Object)],e8.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],e8.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],e8.prototype,"withinMiniplayer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],e8.prototype,"minimizePipBreakages",void 0);_.E([_.K({computed:"computeSelected(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],e8.prototype,"selected",void 0);
_.E([_.K({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],e8.prototype,"useColorPalette",void 0);_.E([_.K({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.U("design:type",Boolean)],e8.prototype,"largerPlaylistThumbs",void 0);_.E([_.K(),_.U("design:type",Object)],e8.prototype,"showEqualizer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],e8.prototype,"canReorder",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],e8.prototype,"touchPersistentDragHandle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],e8.prototype,"handleIsHovered",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],e8.prototype,"watchColorUpdate",void 0);_.E([_.K(),_.U("design:type",String),_.U("design:paramtypes",[])],e8.prototype,"reorderIcon",null);
_.E([_.C("largerPlaylistThumbs"),_.U("design:type",Number),_.U("design:paramtypes",[])],e8.prototype,"thumbnailWidth",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],e8.prototype,"showActionButtons",null);_.E([_.U0("canReorder"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],e8.prototype,"canReorderChanged",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],e8.prototype,"onYtServiceRequestSent",null);_.E([_.p({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],e8);
_.N(e8,"ytd-playlist-panel-video-renderer",function(){if(ZSB!==void 0)return ZSB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ZSB=X},{mode:2});var j8=function(){return _.O.apply(this,arguments)||this};
_.S(j8,_.O);j8.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],j8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],j8.prototype,"data",void 0);_.E([_.p({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],j8);
_.N(j8,"ytd-playlist-panel-supported-items",function(){if(hSP!==void 0)return hSP;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return hSP=
X},{mode:1});L_z=!0;J4o("\\P{N}");var baE;var C0J=_.Qf("END_OF_PLAYLIST",void 0,"End of playlist"),KBe=_.Qf("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),g$=function(){var X=_.O.apply(this,arguments)||this;X.minimizePipBreakages=_.A("web_pip_minimize_breakages");X.updatedCoursePanel=_.A("move_three_dot_menu_to_playlist_panel_header_for_courses");X.hideHeaderText=!1;X.useColorPalette=!1;X.collapsed=!1;X.collapsedPreServerOverride="not_tracked";X.isHovered=!1;X.modernPanels=_.A("kevlar_watch_modern_panels");
X.expandLabel=_.Qf("MINIPLAYER_EXPAND_LABEL");X.collapseLabel=_.Qf("MINIPLAYER_COLLAPSE_LABEL");X.isFloating=!1;X.metaPanel=!1;X.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};X.currentIndex=void 0;return X};
_.S(g$,_.O);_.H=g$.prototype;
_.H.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"}}}};
_.H.created=function(){this.scrollThrottle=new _.d2(this.onThrottledScroll,1E3,this)};
_.H.onMouseEnter=function(){this.isHovered=!0};
_.H.onMouseLeave=function(){this.isHovered=!1};
_.H.computeOverflowMenuData=function(X){return X&&X.menu?X.menu:null};
_.H.computeCollapsible=function(X){return!X};
_.H.computeHasPlaylistButtons=function(X){return!(!X||!X.playlistButtons)};
_.H.computeHasSeparateSaveButton=function(X){return!(!X||!X.saveButton)};
_.H.computeHasToolbarButton=function(X,t){return!(!X||!(t||X.saveButton||X.menu))};
_.H.computePlaylistType=function(X){if(X&&X.playlistId)return X.playlistId.substring(0,4)};
_.H.computeCanReorder=function(X){return X?X.playlistId&&X.playlistId.startsWith("TLPQ")?!0:!!X.isEditable&&!X.isInfinite:!1};
_.H.attached=function(){var X=this;try{_.gw().resolve(_.Gm).setPlaylistComponent(this.hostElement)}catch(t){if(_.A("kevlar_park_on_playlist_token_killswitch"))throw t;_.wv().parkOrScheduleJob(function(){_.gw().resolve(_.Gm).setPlaylistComponent(X.hostElement)},2,"ci")}_.Ti(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.H.detached=function(){_.AE(this.hostElement)};
_.H.computeTrailingIcon=function(X,t,G){return G?t?"yt-icons:collapse":"yt-icons:close":t?"yt-icons:expand":_.A("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.H.computeIndexMessage=function(X,t){return ey0(X+1)+" / "+ey0(t)};
_.H.onRenderStamperFinished=function(){if(this.scrollForStampDom){var X=!0;this.isHovered&&(X=!1);if(this.collapsed||this.hidden)X=!1;X&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.H.collapseChanged=function(){var X=this;this.collapsed||(_.f5(this.ytTaskEmitterBehavior.getTaskManager(),function(){X.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.H.hiddenChanged=function(){var X=this;this.hidden||_.f5(this.ytTaskEmitterBehavior.getTaskManager(),function(){X.scrollToCurrentVideo()})};
_.H.setupReordering=function(){var X=_.Sm(this.hostElement).querySelector("#items");sRY?_.jpq(this.ytReorderableBehavior,X,X,"playlist-drag-handle"):_.jpq(this.ytReorderableBehavior,X,X)};
_.H.scrollToCurrentVideo=function(){var X=this;_.vz.addJob(function(){var t=_.Sm(X.hostElement).querySelector("#items");if(t){t.style.setProperty("padding-bottom","");var G=_.Sm(X.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(G){t=G.parentElement||_.iM(document);var y=t||_.iM(document);var w=_.lG(G),z=_.lG(y),B=_.DRS(y);if(y==_.iM(document)){var V=w.x-y.scrollLeft;w=w.y-y.scrollTop}else V=w.x-z.x-B.left,w=w.y-z.y-B.top;G=Tih(G);z=y.clientHeight-
G.height;B=y.scrollLeft;var b=y.scrollTop;B+=V-(y.clientWidth-G.width)/2;y=new _.LD(B,b+(w-z/2));t.scrollLeft=y.x;t.scrollTop=y.y}}},8)};
_.H.dataChanged=function(){var X=this;_.exJ(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.V8(this,function(){_.PO(X.ytTaskEmitterBehavior.getTaskManager(),function(){X.ytRendererBehavior.markDirty();X.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.H.onFullBleedPlayerChanged=function(){_.A("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.H.onFullscreenChanged=function(){_.A("web_watch_imax_theater_mode")||_.A("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.H.updateNowPlayingOverlay=function(){_.A("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.H.onPlaylistLockupNowPlaying=function(X,t){t&&(this.activeNowPlayingRenderer=t);this.updateNowPlayingOverlay()};
_.H.onScroll=function(){this.scrollThrottle.fire()};
_.H.onThrottledScroll=function(){var X=this;_.PO(this.ytTaskEmitterBehavior.getTaskManager(),function(){X.ytRendererBehavior.markDirty()})};
_.H.onToggleExpanded=function(X){!this.collapsible||X&&(_.k3(X).tagName==="A"||_.Fa(_.be(X),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.H.setCollapsed=function(X){this.collapsible&&(this.collapsed=X,_.D0(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.H.handleCollapsedFromData=function(X){if(X){var t=X.playlistPanelCollapseState;t==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||t==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),t=t==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==t&&this.setCollapsed(t)):this.currentPlaylistId!==X.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(t=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==t&&this.setCollapsed(t),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=X.playlistId}};
_.H.handleDrop=function(X){var t=X.currDragItem;X=t.data.playlistSetVideoId;var G=_.PY(t.parentNode.childNodes,t),y=void 0;G>0&&(y=t.parentNode.childNodes[G-1].data.playlistSetVideoId);t=_.oI();if(t.responsePlaylistData&&t.responsePlaylistData.contents){var w=prs(X,t.responsePlaylistData);t.responsePlaylistData=(0,_.RH.unsafeClone)(t.responsePlaylistData);sVY(t.responsePlaylistData.contents,w,G);t.queueProxy?Ae4(t.queueProxy,w,G,X,y):t.playlistProxy&&Ae4(t.playlistProxy,w,G,X,y);_.J_(t,_.BN(t,t.response?
t.response.autoplayRenderer:void 0))}};
_.H.handleDarkModeChange=function(X){X!==this.isDarkTheme&&(this.isDarkTheme=X)};
_.H.colorPaletteChanged=function(){var X,t=((X=this.data)==null?void 0:X.contents)||[],G;X=_.J(t);for(t=X.next();!t.done;t=X.next()){t=t.value;var y=void 0;if((y=t.playlistPanelVideoRenderer)==null?0:y.selected){X=t.playlistPanelVideoRenderer;y=t=void 0;(G=this.isDarkTheme?(t=X)==null?void 0:t.darkColorPalette:(y=X)==null?void 0:y.lightColorPalette)&&_.fX(this.hostElement,G);break}}this.useColorPalette=!!G};
_.ke.Object.defineProperties(g$.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null||!X.playlistId)&&!((t=this.data)==null||!t.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var X=_.gw().resolve(_.jH(_.Gm)),t;if(((t=this.data)==null?0:t.contents)&&(X==null?0:X.hasAutoplayData())){var G;if(((G=this.playlistLoopStateEntity)==null?void 0:G.state)==="PLAYLIST_LOOP_STATE_ONE"){if(X=this.data.currentIndex,X!==void 0){var y,w;var z=(y=this.data.contents[X])==null?void 0:(w=y.playlistPanelVideoRenderer)==null?void 0:w.title}}else{var B,V=(B=_.Y(X.getAutoplayEndpoint(),_.nq))==null?void 0:B.videoId,b,e;z=(b=this.data.contents.find(function(g){var F;
return((F=g.playlistPanelVideoRenderer)==null?void 0:F.videoId)===V}))==null?void 0:(e=b.playlistPanelVideoRenderer)==null?void 0:e.title}return z}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)!=null&&X.nextVideoLabel?this.nextVideoTitle?_.bu(this.data.nextVideoLabel)+":":C0J:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var X;if(((X=this.data)==null?0:X.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.A("web_mix_long_byline_from_data"))return _.Vl(KBe);var t;return(t=this.data)==null?void 0:t.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y=(X=this.data)==null?void 0:(t=X.playlistButtons)==null?void 0:(G=t.menuRenderer)==null?void 0:G.topLevelButtons;if(y)for(X=_.J(y),t=X.next();!t.done;t=X.next())if(t=t.value,t.playlistLoopButtonRenderer)return t.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var X;return!!(this.collapsed&&((X=this.data)==null?0:X.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.A("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
g$.prototype.colorPaletteChanged=g$.prototype.colorPaletteChanged;g$.prototype.onPlaylistLockupNowPlaying=g$.prototype.onPlaylistLockupNowPlaying;g$.prototype.updateNowPlayingOverlay=g$.prototype.updateNowPlayingOverlay;g$.prototype.onFullscreenChanged=g$.prototype.onFullscreenChanged;g$.prototype.onFullBleedPlayerChanged=g$.prototype.onFullBleedPlayerChanged;g$.prototype.dataChanged=g$.prototype.dataChanged;g$.prototype.hiddenChanged=g$.prototype.hiddenChanged;g$.prototype.collapseChanged=g$.prototype.collapseChanged;
g$.prototype.onRenderStamperFinished=g$.prototype.onRenderStamperFinished;g$.prototype.onMouseLeave=g$.prototype.onMouseLeave;g$.prototype.onMouseEnter=g$.prototype.onMouseEnter;_.E([_.q(_.ax),_.U("design:type",Object)],g$.prototype,"ironResizableBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(k0R.YtPlaylistPanelBehavior),_.U("design:type",Object)],g$.prototype,"ytPlaylistPanelBehavior",void 0);_.E([_.q(_.gG.YtTaskEmitterBehavior),_.U("design:type",Object)],g$.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.q(_.g8Y),_.U("design:type",Object)],g$.prototype,"ytReorderableBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],g$.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],g$.prototype,"ytdReduxBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],g$.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],g$.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],g$.prototype,"autoplayData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],g$.prototype,"withinMiniplayer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],g$.prototype,"minimizePipBreakages",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],g$.prototype,"updatedCoursePanel",void 0);_.E([_.K({computed:"setMenuData_(data)"}),_.U("design:type",Object)],g$.prototype,"menuRendererData",void 0);_.E([_.K({computed:"computeOverflowMenuData(data)"}),_.U("design:type",Object)],g$.prototype,"overflowMenuDataTopRow",void 0);_.E([_.K({computed:"computeOverflowMenuData(data)"}),_.U("design:type",Object)],g$.prototype,"overflowMenuData",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],g$.prototype,"hideHeaderText",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],g$.prototype,"useColorPalette",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.U("design:type",Boolean)],g$.prototype,"collapsible",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],g$.prototype,"collapsed",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],g$.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.U("design:type",Boolean)],g$.prototype,"hasPlaylistButtons",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.U("design:type",Boolean)],g$.prototype,"hasSeparateSaveButton",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.U("design:type",Boolean)],g$.prototype,"hasToolbar",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.U("design:type",String)],g$.prototype,"playlistType",void 0);_.E([_.K(),_.U("design:type",Object)],g$.prototype,"isHovered",void 0);_.E([_.K({selectorArgs:["playlistLoopStateEntityKey"],selector:_.qk6}),_.U("design:type",Object)],g$.prototype,"playlistLoopStateEntity",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],g$.prototype,"modernPanels",void 0);_.E([_.K({value:56}),_.U("design:type",Number)],g$.prototype,"scrollMargin",void 0);_.E([_.K({computed:"computeCanReorder(data)"}),_.U("design:type",Boolean)],g$.prototype,"canReorder",void 0);_.E([_.K(),_.U("design:type",Object)],g$.prototype,"expandLabel",void 0);_.E([_.K(),_.U("design:type",Object)],g$.prototype,"collapseLabel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],g$.prototype,"isFloating",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],g$.prototype,"metaPanel",void 0);_.E([_.K({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.U("design:type",String)],g$.prototype,"trailingIcon",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],g$.prototype,"isDarkTheme",void 0);
_.E([_.K({selector:_.fg}),_.U("design:type",Boolean)],g$.prototype,"miniplayerIsActive",void 0);_.E([_.K({selector:function(X){return X.watch.playerState}}),
_.U("design:type",Number)],g$.prototype,"playerState",void 0);_.E([_.K({selector:_.Gz}),_.U("design:type",Boolean)],g$.prototype,"isFullscreen",void 0);_.E([_.K({selector:_.tS}),_.U("design:type",Boolean)],g$.prototype,"isTheaterMode",void 0);_.E([_.K(),_.U("design:type",Object)],g$.prototype,"activeNowPlayingRenderer",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],g$.prototype,"moveThreeDotMenuToTopRow",null);
_.E([_.C("data","autoplayData","playlistLoopStateEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],g$.prototype,"nextVideoTitle",null);_.E([_.C("data","nextVideoTitle"),_.U("design:type",String),_.U("design:paramtypes",[])],g$.prototype,"nextVideoLabel",null);_.E([_.C("collapsed"),_.U("design:type",String),_.U("design:paramtypes",[])],g$.prototype,"buttonAriaLabel",null);
_.E([_.C("data","playlistId","longBylineText"),_.U("design:type",Object),_.U("design:paramtypes",[])],g$.prototype,"mixLongByLine",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],g$.prototype,"playlistLoopStateEntityKey",null);_.E([_.WW("mouseenter"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"onMouseEnter",null);
_.E([_.WW("mouseleave"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"onMouseLeave",null);_.E([_.K({reflectToAttribute:!0}),_.C("data","collapsed"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],g$.prototype,"showNextVideoHeader",null);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"onRenderStamperFinished",null);
_.E([_.cW("collapsed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"collapseChanged",null);_.E([_.cW("hidden"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"hiddenChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"dataChanged",null);
_.E([_.C("isTheaterMode","isFullscreen"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],g$.prototype,"isFullBleedPlayer",null);_.E([_.cW("isTheaterMode","isFullscreen"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"onFullBleedPlayerChanged",null);_.E([_.cW("isFullscreen"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"onFullscreenChanged",null);
_.E([_.cW("playerState","miniplayerIsActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"updateNowPlayingOverlay",null);_.E([_.WW("yt-playlist-lockup-now-playing-active"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],g$.prototype,"onPlaylistLockupNowPlaying",null);
_.E([_.cW("data","isDarkTheme"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g$.prototype,"colorPaletteChanged",null);_.E([_.p({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],g$);
_.OSq=_.qi()(g$,"ytd-playlist-panel-renderer",function(){if(STo===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);STo=X}X=STo;return X},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var u6t;var F5=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("web_button_rework");return X};
_.S(F5,_.O);F5.prototype.computeShouldButtonBeVertical=function(X,t){return X||t};
F5.prototype.onYtServiceRequestSent=function(X,t){(X=_.Y(t.endpoint,_.wP))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.EW("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:X.status})):this.handleLikeEndpoint(X))};
F5.prototype.computelikeStatusEntityKey=function(X){return X==null?void 0:X.likeStatusEntityKey};
F5.prototype.handleLikeEndpoint=function(X){X.status==="LIKE"?this.JSC$16918_ytdDislikeToggleButtonRenderer.toggle(!1):X.status==="DISLIKE"?this.JSC$16918_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16918_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16918_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.ke.Object.defineProperties(F5.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var X;return T0s(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(X=this.likeStatusEntity)==null?void 0:X.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var X;if(this.data&&((X=this.data)==null||!X.hideDislikeButton)){var t;return T0s(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(t=this.likeStatusEntity)==null?void 0:t.likeStatus)}}}});
F5.prototype.onYtServiceRequestSent=F5.prototype.onYtServiceRequestSent;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],F5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],F5.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],F5.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],F5.prototype,"vertical",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],F5.prototype,"textTransform",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],F5.prototype,"useShortsIcon",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],F5.prototype,"underIconLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],F5.prototype,"modern",void 0);_.E([_.K({value:"left"}),_.U("design:type",String)],F5.prototype,"buttonTooltipPosition",void 0);
_.E([_.K(),_.U("design:type",Object)],F5.prototype,"overrides",void 0);_.E([_.rt("#like-button"),_.U("design:type",Object)],F5.prototype,"JSC$16918_ytdLikeToggleButtonRenderer",void 0);_.E([_.rt("#dislike-button"),_.U("design:type",Object)],F5.prototype,"JSC$16918_ytdDislikeToggleButtonRenderer",void 0);_.E([_.C("data","likeStatusEntity.likeStatus","useShortsIcon"),_.U("design:type",Object),_.U("design:paramtypes",[])],F5.prototype,"likeButton",null);
_.E([_.C("data","likeStatusEntity.likeStatus","useShortsIcon"),_.U("design:type",Object),_.U("design:paramtypes",[])],F5.prototype,"dislikeButton",null);_.E([_.K({computed:"computelikeStatusEntityKey(data)"}),_.U("design:type",String)],F5.prototype,"likeStatusEntityKey",void 0);_.E([_.K({selectorArgs:["likeStatusEntityKey"],selector:zz}),_.U("design:type",Object)],F5.prototype,"likeStatusEntity",void 0);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],F5.prototype,"onYtServiceRequestSent",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],F5);
var Qn4=_.qi()(F5,"ytd-like-button-renderer",function(){if(u6t===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);u6t=X}X=u6t;return X},{mode:1});_.Iht={};
_.Iht.YtConditionalRendererBehavior=[_.v.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(X,t){var G=this,y,w;return _.n(function(z){switch(z.nextAddress){case 1:if(!t)return G.hidden=!0,G.showSpinner=!1,z.return();if((y=X)==null?0:(w=y.visibilityCondition)==null?0:w.mode)switch(X.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return z.jumpTo(5);default:return z.jumpTo(6)}G.showSpinner=
!1;G.hidden=!0;return z.yield(G.shouldShow_(X),4);case 4:G.hidden=!z.yieldResult;z.jumpTo(0);break;case 5:return z.yield(G.shouldShow_(X),8);case 8:G.showSpinner=z.yieldResult;G.hidden=!1;z.jumpTo(0);break;case 6:return G.showSpinner=!1,z.yield(G.shouldShow_(X),9);case 9:G.hidden=!z.yieldResult,_.W$(z)}})},
shouldShow_:function(X){return X&&X.supportedDatas&&X.supportedDatas.rendererVisibilityConditionData&&X.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(X.supportedDatas.rendererVisibilityConditionData.showIf):X&&X.visibilityCondition&&X.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(X.visibilityCondition.showIf):X&&X.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(X.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(X){switch(X){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(X){switch(X){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var X=_.sl(this.hostElement,"yt-get-mdx-status");return X.length==1&&X[0].connected},
isLocationPermissionGranted_:function(){var X;return _.n(function(t){return t.nextAddress==1?navigator.permissions?t.yield(navigator.permissions.query({name:"geolocation"}),3):t.jumpTo(2):t.nextAddress!=2?(X=t.yieldResult,t.return(Promise.resolve(X.state==="granted"))):t.return(Promise.resolve(!1))})}}];var WBR=function(X,t){t=t===void 0?{}:t;var G=function(y){var w=document.createElement(X),z;var B=(z=w.polymerController)!=null?z:w;QUY(w,B,y,t);return w};
G.debugName=X+" (CoW wrapped)";return G}("yt-icon"),cjJ=_.A("web_bypass_polymer_yt_icon")&&_.A("kevlar_use_wil_icons")?_.Fp(function(X){var t=X.icon;
var G=X.active;var y=X.className;var w=X.style;var z=X.dataSelected;var B=X.dataDisabled;var V=X.role;var b=X.themeOverride;var e=X.animateIcon;var g=X.ariaHidden;var F=X.ariaExpanded;var T=X.ariaLabel;var D=X.tabindex;var h=X.id;var u=X.iconFilter;var W=function(){var l=t==null?void 0:t(),R=null,L=void 0;l&&(l=sbo(l),l=JkV(l),l.length&&(R=l[1],L=l[0]));return{iconName:R,iconSetName:L}},c=function(){return Dft(W().iconName,G==null?void 0:G(),void 0,void 0,W().iconSetName,_.gw().resolve(_.IL))},P=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:u==null?void 0:u()}};
return _.k(_.d,{cond:e,then:function(){return _.k(WBR,{icon:t,active:G,className:y,style:w,dataSelected:z,dataDisabled:B,role:V,themeOverride:b,ariaHidden:g,ariaExpanded:F,ariaLabel:T,tabindex:D,id:h,iconFilter:u})},
else:function(){return _.k(_.d,{cond:c,then:function(l){return _.k("span",{class:_.cl("ytIconWrapperHost",y),role:V,"aria-label":T,"aria-hidden":g,tabindex:function(){return isNaN(Number(D==null?void 0:D()))?void 0:Number(D==null?void 0:D())},
id:h,style:w},_.k(Ow6,{data:l,options:P}))}})}})},"ve"):WBR;var ph4=function(X){var t=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];OzA();_.dl("ytglobal.ytUtilActivityCallback_",function(){_.D0(X,"yt-user-activity")});
new gj(function(){return t.JSC$16933_onMouseMove});
document.addEventListener("scroll",function(){return t.onScroll});
window.addEventListener("resize",function(){return t.onResize})},rjR=function(X,t,G){t in X.eventJobIds||(G=_.va().addLowPriorityJob(function(){_.FR();
delete X.eventJobIds[t]},G),X.eventJobIds[t]=G)};
ph4.prototype.onScroll=function(X){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):X.target===document&&rjR(this,"scroll",200)};
ph4.prototype.onResize=function(){rjR(this,"resize",200)};
ph4.prototype.JSC$16933_onMouseMove=function(){rjR(this,"mousemove",100)};
_.gb=function(X){X.scrollEventsToIgnore+=1;X.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){X.scrollEventsToIgnore--},500))};var NsB=function(X){this.element=X;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
NsB.prototype.showFeedbackDialog=function(X,t,G,y){var w=P04();if(!w)return!1;var z=Oa_();z.productId=w;t&&(z.flow="submit",z.report={description:t});G&&(P04()==="59"?z.callback=_.tt(function(){_.a7("userFeedbackEvent",{});G()}):z.callback=_.tt(G));
z.bucket=y||_.Md("GOOGLE_FEEDBACK_BUCKET","Other");Ea4(z);X=UyB(this,"GFEEDBACK",X);try{_.AlS(z,X)}catch(B){return _.$x(B),!1}return!0};
NsB.prototype.showHelpDialog=function(X,t,G){var y=this,w=P04();if(!w)return!1;var z={helpCenterPath:"/youtube",productData:UyB(this,"GUIDED_HELP",G)};Ea4(z);var B=Oa_();B.context=X||z.productData.context||"default";B.defaultHelpArticleId=t;B.enableSendFeedback=!0;(_.GA("gapi.load")||function(V,b){return b()})("client",function(){try{var V=$te(w,z);
if(_.A("web_always_load_chat_support")&&!y.chatSupportLoaded)try{V.JSC$9906_loadChatSupport(B),y.chatSupportLoaded=!0}catch(b){}V.startHelp(B)}catch(b){_.$x(b)}})};
var P04=function(){var X=_.Md("GOOGLE_FEEDBACK_PRODUCT_ID");X||_.$x(Error("di"));return X},Ea4=function(X){X&&(X.locale=_.A("kevlar_help_use_locale")?_.Md("INNERTUBE_CONTEXT_HL","en"):_.Md("HTML_LANG","en"))},UyB=function(X,t,G){var y=X.productData;
delete y.origin;y.device=_.es();var w;a:{if(w=document.createElement("canvas")){var z=w.getContext("experimental-webgl",{stencil:!0});if(z){var B=z.getExtension("WEBGL_debug_renderer_info");if(B){w=z.getParameter(B.UNMASKED_RENDERER_WEBGL);break a}}if(z=w.getContext("webgl")){w=z.getParameter(z.RENDERER);break a}}w=null}y.gpu=w;y.isSDC=!!_.Md("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(w=_.Md("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.RH.extend(y,w);_.CoA(t,y);_.KzV(y);(X=_.D0(X.element,"yt-get-autonav-pause-debug-state"))&&
X.length&&(y.autonav_pause_state=X[0]);X=_.W1();y.browser_resolution=X.width+"\u00d7"+X.height+"@"+(window.devicePixelRatio||1)+"x";G&&_.RH.extend(y,G);return y};
NsB.prototype.resetProductData=function(){this.productData={}};var mye=function(X){this.feedbackManager=new NsB(X)};
mye.prototype.showFeedbackDialog=function(X,t,G,y){return this.feedbackManager.showFeedbackDialog(X,t,G,y)};
mye.prototype.showHelpDialog=function(X,t,G){return this.feedbackManager.showHelpDialog(X,t,G)};var RSq=function(){this.baseUrl="";this.aTag=document.createElement("a")},ARe=function(X,t,G){G=G===void 0?{}:G;
G.pbj||(G.pbj=1);G=_.d7l(t,G);X.baseUrl&&G&&!_.VQ(G)[1]&&!_.bF(G)&&(t=X.baseUrl,zV(t,"/")&&(t=t.slice(0,-1)),_.y0(G,"/")&&(G=G.slice(1)),G=t+"/"+G);XM(X.aTag,L1(G||""));return X.aTag.href};
RSq.prototype.fetchData=function(X){return _.sdA(X)};
RSq.prototype.postData=function(X,t){var G={method:"POST"};if(t){for(var y=_.J(Object.keys(t)),w=y.next();!w.done;w=y.next()){w=w.value;var z=t[w];_.$h(z)&&(t[w]=JSON.stringify(z))}G.postParams=t}return _.sdA(X,G)};
_.Yv4=function(X,t,G,y,w){X=ARe(X,t,G);if(!X)throw y=Error("ei"),Object.assign(y,{params:t}),y;return _.sdA(X,w,y)};
RSq.prototype.requestDataForServiceEndpoint=function(X,t){if(_.Y(X,_.eqf))return this.fetchData("/getAccountSwitcherEndpoint");t=t||{};var G=_.Y(X,RUq);G?t.se=G.base64EncodedServiceEndpoint:t.sej=JSON.stringify(X);(G=_.lw())&&_.A("enable_service_ajax_csn")&&(t.csn=G);t.theme=_.Lp();_.Y(X,kds)&&_.Md("DELEGATION_CONTEXT")&&(t.delegation_context=JSON.stringify(_.Md("DELEGATION_CONTEXT")));G=null;for(var y in X)if(zV(y,"Endpoint")||zV(y,"Command")){G=y;break}if(!G){var w=Error("fi");Object.assign(w,{params:X});
_.Veh(w,"WARNING");return new _.Kh(function(B,V){V(w)})}y={name:G};
var z;(G=(z=_.Y(X,_.Ol))==null?void 0:z.signal)&&(y.signal=G);(z=_.Jt(window.location.href))&&z.internalcountrycode&&(y.internalcountrycode=z.internalcountrycode);z="/service_ajax";_.A("debug_forward_web_query_parameters")&&(z=_.ZqE(z,window.location.search));z=_.ns(z,y);X.clickTrackingParams&&_.dk(z,{itct:X.clickTrackingParams});return this.postData(z,t)};_.iSq=new _.FB("GFEEDBACK_TOKEN");var LBY;var vah;var ahh;var lho;var Ta=function(){var X=_.O.apply(this,arguments)||this;X.compact=!1;return X};
_.S(Ta,_.O);Ta.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ta.prototype.computeHasIcon_=function(X){return!!X};
Ta.prototype.isSignInIcon_=function(X){return X=="yt-icons:prompted_sign_in"};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ta.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.Iht.YtConditionalRendererBehavior),_.U("design:type",Object)],Ta.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ta.prototype,"data",void 0);
_.E([_.K({computed:"computeIcon_(data.icon)"}),_.U("design:type",Object)],Ta.prototype,"icon_",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.U("design:type",Boolean)],Ta.prototype,"hasIcon_",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.U("design:type",Boolean)],Ta.prototype,"signInIcon_",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Ta.prototype,"compact",void 0);
_.E([_.$F({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Ta);
_.N(Ta,"yt-player-error-message-renderer",function(){if(lho===void 0){var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;ahh===void 0&&(ahh=document.createElement("template"));var y=ahh;G.call(t,y.content.cloneNode(!0),X.content.firstChild);lho=X}X=lho;return X},{mode:2});var xyq;var fhS;var Ac=function(){return _.O.apply(this,arguments)||this};
_.S(Ac,_.O);Ac.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ac.prototype.computeIcon_=function(X){return X?"yt-icons:"+X.iconType.toLowerCase():"error_outline"};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ac.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.U("design:type",Object)],Ac.prototype,"icon_",void 0);_.E([_.$F({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Ac);
_.N(Ac,"yt-player-kav-renderer",function(){if(fhS===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;xyq===void 0&&(xyq=document.createElement("template"));var y=xyq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);fhS=X}X=fhS;return X},{mode:2});var IJs=_.Vc(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.DW(_.Fp(function(X){var t=_.nl("div"),G=_.J(_.sm(0,void 0,"yt0wE")),y=G.next().value,w=G.next().value;G=_.J(_.sm(null,void 0,"CnFp5"));var z=G.next().value,B=G.next().value;_.LY(function(){WzV(t.value,w,B);t.value.scrollIntoView()});
G=c2s.bind(null,X.data,y);ei("resize",function(){var V=z();if(y()===1&&V!==null){var b;(b=window.grecaptcha)==null||b.reset(V)}});
return _.k("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.k("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.k("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var V,b;return(V=X.data().accessibility)==null?void 0:(b=V.accessibilityData)==null?void 0:b.label}),_.k(_.eh,{text:G,
className:_.cl("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.k("div",{el:t,class:"ytwPlayerCaptchaViewModelGridItem"})))},"we"),"yt-player-captcha-view-model",{props:{data:_.sd}});var pwV=!1;_.MJz=_.Fp(function(X){var t=X.data;return _.k("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.k(_.d,{cond:function(){return t().icon},
then:function(G){return _.k("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.k(_.gr,{data:G,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.k(_.d,{cond:function(){return t().title},
then:function(G){return _.k("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.k(_.eh,{text:G}))}}),_.k(_.d,{cond:function(){return t().description},
then:function(G){return _.k("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.k(_.eh,{text:G}))}}),_.k(_.M7,{data:function(){return t().primaryButton}},{buttonViewModel:function(G){return _.k(_.QK,{data:G.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.k(_.M7,{data:function(){return t().secondaryButton}},{buttonViewModel:function(G){return _.k(_.QK,{data:G.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"xe");
_.MJz.idomCompat=!0;var XEB=_.Fp(function(X){var t=X.data;_.Ji();return _.k("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.k("div",{class:"player-interstitial-renderer-wiz__scrim"},_.k(_.M7,{data:function(){return t().content}},{interstitialViewModel:_.MJz})))},"ye");
XEB.idomCompat=!0;_.DW(XEB,"yt-player-interstitial-renderer",{props:{data:_.bR}});var YN=function(){var X=_.O.apply(this,arguments)||this;X.noBackground=!1;X.compact=!1;X.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return X};
_.S(YN,_.O);YN.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"}}}};
YN.prototype.onUpdatePlayerErrorMessageCommand_=function(X){if(_.Y(X,wMt)){var t;if(X=(t=_.Y(X,wMt))==null?void 0:t.newPlayerErrorMessageRenderer)this.data=X}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],YN.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],YN.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],YN.prototype,"status",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],YN.prototype,"noBackground",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],YN.prototype,"compact",void 0);_.E([_.$F({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],YN);
var $u4=_.qi()(YN,"yt-playability-error-supported-renderers",function(){if(vah===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;LBY===void 0&&(LBY=document.createElement("template"));var y=LBY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);vah=X}X=vah;return X},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var r2l=void 0,Pov=void 0;var mGY=new NT4;var tEJ=function(X){this.store=X;this.uqT=new _.Ulq},gG6=function(X,t,G){var y,w;
if(!(w=((y=t.playabilityStatus)==null?void 0:y.status)!=="OK")){X=X.store;var z;w=t.offlineState&&((z=t.videoDetails)==null?0:z.videoId)?_.A("enable_pl_r_c_cd")?cZE(X.getState().entities,t.videoDetails.videoId):!!BzA(X.getState().entities,t.videoDetails.videoId):!1}if(w)return!0;w=aJh(t);if(w===1){if(_.A("ab_v_vid_sig")){var B,V=(B=t.videoDetails)==null?void 0:B.videoId;if(!V||!G||V!==G){var b;t=new _.NJ("282054944_vid",{ppi:G,cKl:(b=t.videoDetails)==null?void 0:b.videoId});_.xA(t)}}return!0}Fk0=
0;var e,g;b=(V=t.auxiliaryUi)==null?void 0:(e=V.messageRenderers)==null?void 0:(g=e.bkaEnforcementMessageViewModel)==null?void 0:g.displayType;if(w!==3&&(b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;b={reason:_.Ag(_.Qf("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.A("ks_something_wrong_learn_more")?ozG("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Ag(_.Qf("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:_.Ag("282054944")};GfY(t,{playerErrorMessageRenderer:b});return!1},FSJ=function(X,t){if(cBw(t)){_.Ic(1,!0);
var G=(G=cBw(t))&&_.N0E()?G:void 0;G?(GfY(t,{enforcementMessageViewModel:G}),X.uqT.increment("IN_PLAYER"),_.Ic(5)):(X.uqT.increment("SKIP_DISPLAY"),_.Ic(2))}},GfY=function(X,t){X.playabilityStatus=Object.assign({},X.playabilityStatus,{status:"ERROR",
errorScreen:t});X.videoDetails=void 0};
tEJ.prototype.handleResponse=function(X,t){if(X.playabilityStatus){var G,y,w,z=(t==null?void 0:(G=t.innerTubeRequest)==null?void 0:G.videoId)||(t==null?void 0:(y=t.innerTubeRequest)==null?void 0:(w=y.playerRequest)==null?void 0:w.videoId);gG6(this,X,z)&&FSJ(this,X)}};
tEJ[gA]=[Dw];var e1V=new _.FB("ADBLOCK_DETECTION_SERVICE_TOKEN");var bW=function(X){this.nAW=X};
bW.prototype.bindInnertubeChallengeFetcher=function(X){this.nAW.bicf(X)};
bW.prototype.registerChallengeFetchedCallback=function(X){this.nAW.bcr(X)};
bW.prototype.getLatestChallengeResponse=function(){return this.nAW.blc()};var y54;y54=_.Vc(["https://static.doubleclick.net/instream/ad_status.js"]);_.wEe=_.sw(y54);var J5B;_.su=function(X,t,G){var y=this;this.network=X;this.options=t;this.networkStatusManager=G;this.zw=null;if(t.useBotguardEverywhere){var w=new _.Kp;this.zw=w.promise;_.tA.ytAtRC&&_.Rs(_.vz,function(){var z,B;return _.n(function(V){if(V.nextAddress==1){if(!_.tA.ytAtRC)return V.return();z=zce(null);return V.yield(y.bB(z),2)}B=V.yieldResult;_.tA.ytAtRC&&_.tA.ytAtRC(JSON.stringify(B));_.W$(V)})});
XLE().then(function(z){var B,V,b,e;return _.n(function(g){if(g.nextAddress==1)return z.bindInnertubeChallengeFetcher(function(F){return y.bB(zce(F))}),g.yield(e8h(),2);
B=g.yieldResult;V=z.getLatestChallengeResponse();b=V.challenge;if(!b)throw Error("gi");e={challenge:b,q9:V6(b),vm:B,bgChallenge:new Ba};w.resolve(e);z.registerChallengeFetchedCallback(function(F){F=F.challenge;if(!F)throw Error("hi");F={challenge:F,q9:V6(F),vm:B,bgChallenge:new Ba};y.zw=Promise.resolve(F)});
_.W$(g)})})}else t.preload&&H2o(this,new Promise(function(z){_.PO(_.vz,function(){z(ouh(y))},0)}))};
J5B=function(X){var t={preload:!0,useBotguardEverywhere:!0},G=!1;if(typeof t==="boolean")var y={preload:t};else typeof t==="undefined"?y={preload:!0}:(y=t,G=!!t.v7u);t=G?void 0:new _.Jv;_.su.instance=new _.su(X,y,t);return _.su.instance};
_.su.prototype.vJK=function(){var X=this;return _.n(function(t){return t.nextAddress==1?t.yield(Promise.race([X.zw,null]),2):t.return(!!t.yieldResult)})};
_.su.prototype.nTq=function(X,t,G){var y=this,w,z,B;return _.n(function(V){y.zw===null&&H2o(y,ouh(y));w=!1;z={};B=function(){var b,e,g;return _.n(function(F){switch(F.nextAddress){case 1:return F.yield(y.zw,2);case 2:b=F.yieldResult;z.challenge=b.challenge;if(!b.vm){"c1a"in b.q9&&(z.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");F.jumpTo(3);break}e=Object.assign({},{c:b.challenge,e:X},t);_.CL(F,4);w=!0;return F.yield(b.vm.snapshot({qe:e}),6);case 6:(g=F.yieldResult)?z.webResponse=g:z.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.zx(F,3);break;case 4:_.IY(F),z.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(X==="ENGAGEMENT_TYPE_PLAYBACK"){var T=b.q9,D={};if(T.c6a){var h=Number(_.Md("DCLKSTAT",0));D.reportingStatus=String(Number(T.c)^(isNaN(h)?0:h))}T.c6b&&(D.broadSpectrumDetectionResult=String(Number(T.c)^Number(_.Md("CATSTAT",0))));z.adblockReporting=D}return F.return(z)}})};
return V.return(Promise.race([B(),Byq(G,function(){var b=Object.assign({},z);w&&(b.error="ATTESTATION_ERROR_VM_TIMEOUT");return b})]))})};
var zce=function(X){var t={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};X&&(t.interpreterHash=X);return t},ouh=function(X,t){t=t===void 0?0:t;
var G,y,w,z,B,V,b,e,g,F,T,D;return _.n(function(h){switch(h.nextAddress){case 1:G=zce(mVt().tNA);if(_.A("att_fet_ks"))return _.CL(h,7),h.yield(X.bB(G),9);_.CL(h,4);return h.yield(nuP(X,G),6);case 6:B=h.yieldResult;w=B.elt;z=B.mj9;y=B;_.zx(h,3);break;case 4:return _.IY(h),_.Mj(Error("ii`"+t)),VEh(X,864E5),h.return({challenge:"",q9:{},vm:void 0,bgChallenge:void 0});case 9:y=h.yieldResult;if(!y)throw Error("ji");if(!y.challenge)throw Error("ki");w=y.challenge;z=V6(w);if("c1a"in z&&(!y.bgChallenge||!y.bgChallenge.program))throw Error("li");
_.zx(h,3);break;case 7:V=_.IY(h);_.Mj(V);t++;if(t>=5)return _.Mj(Error("ii`"+t)),VEh(X,864E5),h.return({challenge:"",q9:{},vm:void 0,bgChallenge:void 0});b=1E3*Math.pow(2,t-1)+Math.random()*1E3;return h.return(new Promise(function(u){_.PO(_.vz,function(){u(ouh(X,t))},b)}));
case 3:e=MjY(z);VEh(X,e*1E3);g=void 0;if(!("c1a"in z&&y.bgChallenge)){h.jumpTo(10);break}F=fJs(y.bgChallenge);_.CL(h,11);return h.yield(iDt(mVt(),F),13);case 13:_.zx(h,12);break;case 11:return T=_.IY(h),_.Mj(T),h.return({challenge:w,q9:z,vm:g,bgChallenge:F});case 12:return _.CL(h,14),g=new _.Mo({challenge:F,is2:{lD:"aGIf"}}),h.yield(g.cQc,16);case 16:_.zx(h,10);break;case 14:D=_.IY(h),_.Mj(D),g=void 0;case 10:return h.return({challenge:w,q9:z,vm:g,bgChallenge:F})}})};
_.su.prototype.bB=function(X){var t=this,G;return _.n(function(y){G=t.networkStatusManager;if(!G||G.isNetworkAvailable())return y.return(t.network.bB(X));_.fq("att_pna",void 0,"attestation_challenge_fetch");return y.return(new Promise(function(w){G.listenOnce("publicytnetworkstatus-online",function(){t.network.bB(X).then(w)})}))})};
var b2q=function(X){if(!X)throw Error("ji");if(!X.challenge)throw Error("ki");var t=X.challenge,G=V6(t);if("c1a"in G&&(!X.bgChallenge||!X.bgChallenge.program))throw Error("li");return Object.assign({},X,{elt:t,mj9:G})},nuP=function(X,t){var G,y,w,z,B;
return _.n(function(V){switch(V.nextAddress){case 1:G=void 0,y=0,w={};case 2:if(!(y<5)){V.jumpTo(4);break}if(!(y>0)){V.jumpTo(5);break}w.z4y=1E3*Math.pow(2,y-1)+Math.random()*1E3;return V.yield(new Promise(function(b){return function(e){_.PO(_.vz,function(){e(void 0)},b.z4y)}}(w)),5);
case 5:return _.CL(V,7),V.yield(X.bB(t),9);case 9:return z=V.yieldResult,V.return(b2q(z));case 7:G=B=_.IY(V),B instanceof Error&&_.Mj(B);case 8:y++;w={z4y:void 0};V.jumpTo(2);break;case 4:throw G;}})},H2o=function(X,t){X.zw=t},kfq=function(X){var t,G,y;
return _.n(function(w){if(w.nextAddress==1)return w.yield(Promise.race([X.zw,null]),2);t=w.yieldResult;var z=ouh(X);X.zw=z;(G=t)==null||(y=G.vm)==null||y.dispose();_.W$(w)})},VEh=function(X,t){var G=Date.now()+t,y=function(){var w;
return _.n(function(z){w=G-Date.now();return w<1E3?z.yield(kfq(X),0):(_.PO(_.vz,y,Math.min(w,6E4)),z.jumpTo(0))})};
y()},Byq=function(X,t){return new Promise(function(G){_.PO(_.vz,function(){G(t())},X)})};var duJ=function(){};
duJ.prototype.processContext=function(X){var t=_.su.instance;if(!t)return _.Vq();var G=zJV(X);return G?new nc(t.nTq(G,GXs(X),500).then(function(y){var w;(X==null?0:(w=X.innerTubeRequest)==null?0:w.context)||(X.innerTubeRequest.context={});w=X.innerTubeRequest.context;w.request||(w.request={});w.request.attestationResponseData=y})):_.Vq()};var ecR=function(X){this.innertubeTransportService=X};
ecR.prototype.bB=function(X){_.fq("att_fsr",void 0,"attestation_challenge_fetch");return _.t_(this.innertubeTransportService,X,_.el(_.zwe)).then(function(t){_.fq("att_frr",void 0,"attestation_challenge_fetch");return t})};_.jfq=function(X){this.innertubeTransportService=X};var guq=new _.FB("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Fy4=function(){},A5J=function(X,t,G,y,w){var z=_.Md("YPC_MB_URL");
_.UpY(z).then(function(){Tyq(z,X,t,G,y,w)})},Tyq=function(X,t,G,y,w,z){try{var B=payments.business.integration,V=payments.business.integration.Style.create().withMaterialDesignStyle(),b=B.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.A("enable_window_constrained_buy_flow_dialog")&&(b=b.usingPopupStyle("windowConstrained"));z&&(b=b.usingCloseCallback(z));var e=G?G:_.Md("YPC_GB_LANGUAGE"),g=_.Md("SESSION_INDEX");B.bootstrap.fromPaymentsUrl(X);B.bootstrap.asMashupMode(b).usingGaiaIndex(g).usingLocale(e).usingStyle(V).usingDefaultActivityStatusChangeHandler().inStandaloneContext(B.standaloneContextAuthId.forGaia()).purchaseManager(t,function(F){y&&y(F)}).load(void 0,w)}catch(F){throw w&&w(F),_.xA(F),F;
}};var YXe=new _.FB("PURCHASE_MANAGER_TOKEN");var sfh=function(){var X=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return X.videos},
getContinuationsPresent:function(){return X.continuationsPresent},
setVideos:function(t){X.videos=t},
getRecommendedVideos:function(){return X.recommendedVideos},
setRecommendedVideos:function(t){X.recommendedVideos=t}}};
sfh.prototype.addVideos=function(X){X&&(this.videos=X.filter(function(t){return!!_.odY(t)}).map(function(t){var G=_.odY(t);
a:{var y;if(t.playlistVideoRenderer&&((y=t.playlistVideoRenderer)==null?0:y.voteSortTiebreaker))var w=t.playlistVideoRenderer.voteSortTiebreaker;else{if(_.Y(t,ew)){var z;if(y=(w=_.Y(t,ew))==null?void 0:(z=w.playlistItemData)==null?void 0:z.voteSortTiebreaker){w=y;break a}}w=""}}return{itemId:G,videoId:_.ndG(t),voteCount:_.VLG(t),voteSortTiebreaker:w}}),this.continuationsPresent=!!_.Y(X[X.length-1],_.Fc))};
var Du4=function(X,t){return X.videos.findIndex(function(G){return G.itemId===t})},SXq=function(X,t){return X.recommendedVideos.findIndex(function(G){return G.itemId===t})},hcB=function(X){X={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:X}}}}};_.gw().resolve(_.F3).resolveCommand(X)};var Z2q=function(){sfh.apply(this,arguments)};
_.S(Z2q,sfh);
var HIt=function(X,t,G,y){if(!X.parentElem)throw Error("qi");var w=Du4(X,t);w===-1&&(w=SXq(X,t),w=w!==-1?w+X.videos.length:-1);if(w===-1)throw Error("ri");var z=w>=X.videos.length?X.recommendedVideos[w-X.videos.length]:X.videos[w];z.voteCount=G;z.voteSortTiebreaker=Date.now().toString();w>=X.videos.length?X.recommendedVideos.splice(w-X.videos.length,1):X.videos.splice(w,1);var B=X.videos;for(var V=0,b=B.length-1;V<=b;){var e=Math.floor((V+b)/2);if(B[e].voteCount<z.voteCount)b=e-1;else if(B[e].voteCount>z.voteCount)V=
e+1;else{a:{var g=z.voteSortTiebreaker;var F=B[e].voteSortTiebreaker;if(g.length!==F.length)g=g.length>F.length;else{for(var T=0;T<g.length;T++){var D=g.charCodeAt(T),h=F.charCodeAt(T);if(D>h){g=!0;break a}if(D<h)break}g=!1}}g?b=e-1:V=e+1}}B=V;if(B===-1)throw Error("si");X.videos.splice(B,0,z);w!==B&&qXt(X,w,B,t,G,y)},qXt=function(X,t,G,y,w,z){var B,V=(B=X.parentElem)==null?void 0:B.children,b=Math.min(t,G),e=Math.max(t,G);
if(V)for(B=b;B<=e;B++)V[B].style.viewTransitionName="item-"+String(B);document.startViewTransition(function(){if(X.parentElem){var g=X.parentElem.children;if(!(!g||t<0||t>=g.length||G<0||G>=g.length)){var F=g[t];if(F){F.remove();X.showRefreshPill=G>=X.videos.length-1&&X.continuationsPresent;if(!X.showRefreshPill){g=g[G]||null;var T;(T=X.parentElem)==null||T.insertBefore(F,g)}_.Yt(X.parentElem,"yt-update-video-data-voting-animation",{toIdx:G,itemId:y,newVoteCount:w,voteStatus:z,hideItem:X.showRefreshPill})}}}}).finished.then(function(){if(V)for(var g=
b;g<=e;g++)V[g].style.viewTransitionName="";
if(X.showRefreshPill)hcB(_.Qf("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var F;if(F=g=(F=X.parentElem)==null?void 0:F.children[G])F=g.getBoundingClientRect(),g=F.bottom,F=!(F.top>=0&&g<=X.clientHeight);F&&(F=_.Ia(t>G?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(t-G)),hcB(F))}})};var O24=function(X,t){var G=this;X?this.innertubeTransportServicePromise=Promise.resolve(X):t&&(this.innertubeTransportServicePromise=t(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new ow(3E3,function(y){return Cq4(G,y)},0);
this.validateMiniAppVideoIdRateLimiter=new ow(3E3,function(y){return Kyo(G,y)},1)},Jjh=function(X,t){X.JSC$17045_miniAppId=t;
X.reportMiniAppValueRateLimiter=new ow(3E3,function(G){return Cq4(X,G)},0);
X.validateMiniAppVideoIdRateLimiter=new ow(3E3,function(G){return Kyo(X,G)},1)},naR=function(X,t){var G;
return _.n(function(y){if(y.nextAddress==1)return y.yield(X.reportMiniAppValueRateLimiter.call(t),2);G=y.yieldResult;return y.return([G,t])})},Cq4=function(X,t){var G,y,w,z,B,V,b;
return _.n(function(e){switch(e.nextAddress){case 1:return e.yield(X.innertubeTransportServicePromise,2);case 2:return G=e.yieldResult,y=_.el(b8B),w=Date.now(),z={externalPostId:X.JSC$17045_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(w/1E3),nanos:Math.round(w%1E3*1E6)},intValue:""+t}},_.CL(e,3),e.yield(_.t_(G,z,y),5);case 5:B=e.yieldResult;_.zx(e,4);break;case 3:throw V=_.IY(e),V;case 4:if(B){if("error"in B&&B.error)throw B.error;if(B.errorMetadata)throw Error("ti`"+
B.errorMetadata.status);if(b=B.userStatResult)return e.return(b);throw Error("ui");}throw Error("vi");}})},bSt=function(X){var t,G,y,w,z;
_.n(function(B){switch(B.nextAddress){case 1:return B.yield(X.innertubeTransportServicePromise,2);case 2:return t=B.yieldResult,G=_.el(b8B),y={externalPostId:X.JSC$17045_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.CL(B,3),B.yield(_.t_(t,y,G),5);case 5:w=B.yieldResult;_.zx(B,4);break;case 3:throw z=_.IY(B),z;case 4:if(w==null)throw Error("vi");if("error"in w&&w.error)throw w.error;if(w.errorMetadata)throw Error("ti`"+w.errorMetadata.status);_.W$(B)}})};
O24.prototype.flush=function(){var X=this;return _.n(function(t){return t.nextAddress==1?t.yield(X.reportMiniAppValueRateLimiter.flush(),2):t.yield(X.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var VJz=function(X,t){return _.n(function(G){return G.nextAddress==1?G.yield(X.validateMiniAppVideoIdRateLimiter.call(t),2):G.return(G.yieldResult)})},Kyo=function(X,t){var G,y,w,z,B,V;
return _.n(function(b){switch(b.nextAddress){case 1:return b.yield(X.innertubeTransportServicePromise,2);case 2:return G=b.yieldResult,y=_.el(wVS),w={videoId:t},_.CL(b,3),b.yield(_.t_(G,w,y),5);case 5:z=b.yieldResult;_.zx(b,4);break;case 3:throw B=_.IY(b),B;case 4:if(z){if("error"in z&&z.error)throw z.error;if(z.errorMetadata)throw Error("ti`"+z.errorMetadata.status);if(V=z.playabilityStatus)return b.return(V.status);throw Error("wi");}throw Error("vi");}})};
O24[gA]=[_.jH(_.Mr),_.jH(ceB)];var uI4=function(){this.clientData=new Map};
uI4.prototype.getData=function(X){return this.clientData.get(X)};var QfP=function(X){this.store=X};
QfP.prototype.handleResponse=function(X){(X=_.Y(X.frameworkUpdates,je))&&_.WK(X,this.store)};
QfP[gA]=[_.Gw];var ID4=new _.FB("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var WyR={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 c5S=new _.FB("ICON_SET_TOKEN"),pEq=new _.FB("ICON_URL_PROVIDER_TOKEN"),r5J=new _.FB("PREFETCH_ICONS_TOKEN"),NyP=new _.FB("ICON_MAP_FN_TOKEN");var D6={},Pq4=(D6.ACCESS_TIME="clock",D6.ACCOUNT_BOX="person_account",D6.ACCOUNT_BOX_CAIRO="person_account_cairo",D6.ACCOUNT_CIRCLE="person_circle",D6.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",D6.ACCOUNT_LINKED="account_link_success",D6.ACCOUNT_UNLINKED="account_link",D6.ADD_FRIEND="people",D6.ADD_MODERATOR="shield_add",D6.ADD_TO_LIBRARY="bookmark",D6.ADD_TO_PLAYLIST="add",D6.ADD_TO_QUEUE_TAIL="list_queue",D6.ADD_TO_REMOTE_QUEUE="list_music",D6.ADD_TO_WATCH_LATER="clock",D6.ADD_VIDEO_LINK="film_strip_add",
D6.ALERT_WARN_RED="alert_triangle",D6.ARROW_BACK="arrow_left",D6.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",D6.ARROW_DROP_DOWN="chevron_down",D6.ARROW_DROP_UP="chevron_up",D6.ARROW_FORWARD="arrow_right",D6.AUDIOTRACK="audio",D6.AUTO_AWESOME="sparkle",D6.AVATAR_ANONYMOUS="person_circle",D6.AVATAR_LOGGED_OUT="person_circle",D6.BACK="arrow_left",D6.BAR_CHART="bar_graph",D6.BLOCK="slash_circle_left",D6.BLOCK_USER="slash_circle_left",D6.BOOKMARK_BORDER="bookmark",D6.BREAKING_NEWS_ALT_1="article_alert",
D6.BROADCAST_CAIRO="podcast_cairo",D6.BUG_REPORT="bug",D6.CAMERA_ALT="camera",D6.CAMPAIGN="megaphone",D6.CANCEL="x_circle",D6.CAPTIONS="closed_caption",D6.CAST_OUTLINE="chromecast",D6.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",D6.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",D6.CHAT="message_bubble_left",D6.CHAT_BUBBLE="message_bubble_empty",D6.CHAT_SPARK="spark_message_bubble_left",D6.CHECK_BOX_OUTLINE_BLANK="box_empty",D6.CHECK_CIRCLE_OUTLINE="check_circle",D6.CHECK_CIRCLE_THICK="check_circle",D6.CLARIFY=
"article_clarify",D6.CLOSED_CAPTION_SELECTED="closed_caption",D6.CLOSE="x_mark",D6.CLOUD_UPLOAD="cloud_arrow_up",D6.COLLAPSE="chevron_up",D6.COLLAPSE_CAIRO="chevron_up_cairo",D6.COLLECTION="layers",D6.COLOR_LENS="palette",D6.COMMENT="message_bubble_right",D6.CONSENT_SHIELD="person_shield",D6.CONTENT_CUT="scissors",D6.CONTENT_CUT_CAIRO="scissors_cairo",D6.COURSE=_.A("web_enable_course_icon_update")?"creator_academy":"lightbulb",D6.COURSE_CAIRO=_.A("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",D6.CREATION_LIVE="radar_live",D6.CREATION_POST="box_pencil",D6.CREATION_UPLOAD="my_videos",D6.CREATION_UPLOAD_RED="upload",D6.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",D6.CREATOR_STUDIO="youtube_studio",D6.DASHBOARD="grid_asymmetrical",D6.DELETE="trash_can",D6.DELETE_SWEEP="trash_can",D6.DESKTOP="laptop",D6.DISLIKE="thumb_down",D6.DISLIKE_SELECTED="thumb_down",D6.DISMISSAL="x_mark",D6.DISMISS_QUEUE="list_remove",D6.DONE_ALL="check_double",D6.DOWN_ARROW="arrow_down",D6.DO_NOT_DISTURB=
"slash_circle_left",D6.DRAFT="paper_corner_folded",D6.DRAG_HANDLE="bars_2",D6.EDIT="pencil",D6.EMOJI="face_very_happy",D6.EMOJI_FLAGS="flag",D6.EMOJI_OBJECTS="lightbulb",D6.EMOJI_PEOPLE="face_very_happy",D6.EMOJI_RECENT="clock",D6.EMPTY_HEART="heart",D6.EMPTY_LIKE="thumb_up",D6.ERROR_BLACK="alert_circle",D6.ERROR_OUTLINE="alert_circle",D6.EXIT_APP="arrow_in",D6.EXIT_TO_APP="arrow_in",D6.EXPAND="chevron_down",D6.EXPAND_ALL="chevron_expand",D6.EXPAND_CAIRO="chevron_down_cairo",D6.EXPAND_LESS="chevron_up",
D6.EXPAND_MORE="chevron_down",D6.EXPLORE="compass",D6.EXPLORE_DESTINATION="compass",D6.EXTERNAL_LINK="open_new",D6.FAB_UPLOAD="upload",D6.FACE_HAPPY_OUTLINE="face_happy",D6.FACT_CHECK="article_check",D6.FASHION_LOGO="fashion",D6.FASHION_LOGO_CAIRO="fashion_cairo",D6.FAVORITE="heart",D6.FEEDBACK="message_bubble_alert",D6.FEEDBACK_CAIRO="message_bubble_alert_cairo",D6.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",D6.FILL_ARROW_SOLID_UP_16="arrow_solid_up",D6.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
D6.FILTER="menu_filter",D6.FIRST_PAGE="chevron_first",D6.FLAG="flag",D6.FULL_HEART="heart",D6.GAME_CONSOLE_DPAD="game_console_dpad",D6.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",D6.GAMING_LOGO="gaming",D6.GAMING_LOGO_CAIRO="gaming_cairo",D6.GO_TO_PAGE="arrow_right",D6.GROUPS="people_group",D6.HAPPY="face_happy",D6.HEALTH_AND_SAFETY="shield_plus",D6.HELP="question_circle",D6.HELP_CAIRO="question_circle_cairo",D6.HELP_OUTLINE="question_circle",D6.HIDE="slash_circle_left",D6.IMAGE="image",
D6.INFINITY_ICON="infinity",D6.INFO="info_circle",D6.INFO_OUTLINE="info_circle",D6.INSERT_CHART="bar_graph_box_vertical",D6.INSERT_CHART_OUTLINED="bar_graph_box_vertical",D6.INSERT_PHOTO="image",D6.KEEP="pin",D6.KEEP_OFF="pin_off",D6.KEYBOARD="keyboard",D6.KEYBOARD_ARROW_DOWN="chevron_down",D6.KEYBOARD_ARROW_UP="chevron_up",D6.KIDS_BLOCK="slash_circle_left",D6.LANGUAGE="globe",D6.LAST_PAGE="chevron_last",D6.LAUNCH="open_new",D6.LEARNING="lightbulb",D6.LEARNING_CAIRO="lightbulb_cairo",D6.LIBRARY_ADD=
eJv("library_add"),D6.LIBRARY_OUTLINE="library",D6.LIBRARY_REMOVE=eJv(),D6.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",D6.LIKES_PLAYLIST="thumb_up",D6.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",D6.LIKE="thumb_up",D6.LIKE_SELECTED="thumb_up",D6.LIVE="radar_live",D6.LIVE_CAIRO="radar_live_cairo",D6.LIVE_UNLISTED="link",D6.LOCATION_ON="location_point",D6.LOCATION_PIN="location_point",D6.LOOP="arrow_repeat",D6.LOOP_ACTIVE="arrow_repeat",D6.LOOP_ONE="arrow_repeat_1",D6.LOOP_ONE_ACTIVE="arrow_repeat_1",D6.MEH=
"face_meh",D6.MEMBERS_ONLY_MODE_OFF="message_bubble_left",D6.MESSAGE="message_bubble_left",D6.MICROPHONE_ON="mic",D6.MIX="youtube_mix",D6.MONETIZATION_ON="dollar_sign_circle",D6.MONEY_FILL="dollar_sign_container",D6.MONEY_FILL_JPY="yen_sign_container",D6.MONEY_HEART="dollar_sign_heart",D6.MORE_HORIZ="overflow_horizontal",D6.MORE_VERT="overflow_vertical",D6.MUSIC="audio",D6.MUSIC_CAIRO="audio_cairo",D6.MUSIC_NOTE_SYMBOL="music",D6.MUSIC_SHUFFLE="arrow_shuffle",D6.MY_CHANNEL="person_circle",D6.MY_LOCATION=
"location_point",D6.NEWS_STORY="news",D6.NEXT="chevron_right",D6.NOTIFICATIONS="bell",D6.NOTIFICATIONS_ACTIVE="bell_on",D6.NOTIFICATIONS_CAIRO="bell_cairo",D6.NOTIFICATIONS_DONE_CHECKMARK="check",D6.NOTIFICATIONS_INBOX="bell",D6.NOTIFICATIONS_NONE="bell",D6.NOTIFICATIONS_OFF="bell_off",D6.NOT_INTERESTED="slash_circle_left",D6.OFFICIAL_ARTIST_BADGE="audio",D6.OFFLINE_CLOUD="cloud_off",D6.OFFLINE_DOWNLOAD="download",D6.OFFLINE_DOWNLOAD_CAIRO="download_cairo",D6.OFFLINE_PAUSE="pause",D6.OPEN_IN_NEW=
"open_new",D6.OUTLINE_ADJUST="adjust",D6.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",D6.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",D6.OUTLINE_BAG="bag",D6.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",D6.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",D6.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",D6.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",D6.PAID="dollar_sign",D6.PAUSE_OUTLINED="pause",D6.PAYMENT="credit_card",D6.PERSON_RADAR_FILLED="person_radar",D6.PHONE_DOWNLOAD="mobile_download",
D6.PLAYABLES_LOGO="tic_tac_toe",D6.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",D6.PLAYLISTS="list_play_arrow",D6.PLAYLISTS_CAIRO="list_play_arrow_cairo",D6.PLAYLIST_ADD=eJv("list_add"),D6.PLAYLIST_ADD_CHECK="bookmark",D6.PLAYLIST_PLAY="list_play_arrow",D6.PLAY_ALL="play_arrow",D6.PLAY_CIRCLE="play_arrow_circle",D6.PLAY_OUTLINED="play_arrow_circle",D6.PRIVACY_INFO="shield",D6.PRIVACY_PRIVATE="lock",D6.PRIVACY_PUBLIC="earth",D6.PRIVACY_UNLISTED="link",D6.PROMOTE="megaphone",D6.PURCHASES="price_tag",D6.PURCHASE_SUPER_CHAT=
"super_chat",D6.PURCHASE_SUPER_STICKER="super_sticker",D6.QUESTION_ANSWER="message_bubble_question",D6.QUEUE_PLAY_LAST="list_queue_last",D6.QUEUE_PLAY_NEXT="list_play_arrow",D6.REMIX_FILLED="youtube_shorts_remix",D6.REMOVE="bar_circle",D6.REMOVE_CIRCLE="bar_circle",D6.REMOVE_CIRCLE_OUTLINE="bar_circle",D6.REMOVE_DONE="check_double_off",D6.REMOVE_FROM_HISTORY="bar_circle",D6.REMOVE_FROM_PLAYLIST="bar_circle",D6.REMOVE_MODERATOR="shield_off",D6.REPLAY="arrow_circle",D6.REPLAY_10="skip_back_10",D6.REPORT_PROBLEM=
"alert_triangle",D6.SAD="face_sad",D6.SAVE_PLAYLIST="bookmark",D6.SCHEDULE="clock",D6.SCHOOL="creator_academy",D6.SCREEN_FULLSCREEN="screen_full",D6.SEARCH_HISTORY="arrow_time",D6.SELL="price_tag",D6.SETTINGS="gear",D6.SETTINGS_CAIRO="gear_cairo",D6.SETTINGS_LIGHT="gear",D6.SETTINGS_MATERIAL="gear",D6.SHARE_ARROW="share",D6.SHIELD_WITH_AVATAR="person_shield",D6.SHOPPING_BAG="bag",D6.SHOPPING_BAG_CAIRO="bag_cairo",D6.SHOPPING_CART="cart",D6.SHORTS_COMMENT="youtube_shorts_message_bubble_right",D6.SHORTS_DISLIKE=
"youtube_shorts_thumb_down",D6.SHORTS_LIKE="youtube_shorts_thumb_up",D6.SHORTS_SHARE="youtube_shorts_share",D6.SHUFFLE="arrow_shuffle",D6.SLOW_MODE_OFF="message_bubble_left",D6.SOCIAL="people",D6.SORT="menu_sort",D6.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",D6.SPEED_1X="1x",D6.SPEED_1_POINT_2X="1_point_2x",D6.SPEED_1_POINT_5X="1_point_5x",D6.SPEED_1_POINT_8X="1_point_8x",D6.SPEED_2X="2x",D6.SPEED_POINT_2X="point_2x",D6.SPEED_POINT_8X="point_8x",D6.SPONSORSHIP_STAR=_.A("web_sponsorship_star_icon_killswitch")?
"memberships":"star_circle",D6.STAFF_PICK="spotlight",D6.START_DVR="add",D6.STAR_BORDER="star",D6.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",D6.STICKER_EMOTICON="face_happy",D6.STOP_DVR="stop",D6.SUBSCRIBE="youtube_logo_icon",D6.SUBSCRIBE_PLUS="add_cairo",D6.SUBSCRIPTION_MANAGER="gear",D6.SUPERVISOR_ACCOUNT="people",D6.SUPER_CHAT_FOR_GOOD="hands_heart",D6.SWAP_HORIZ="arrow_swap_horizontal",D6.SWITCH_ACCOUNTS="person_account",D6.TAB_ACCOUNT="person",D6.TAB_ACTIVITY="bell",D6.TAB_BOOKMARK="bookmark",
D6.TAB_EXPLORE="compass",D6.TAB_HOME="home",D6.TAB_HOME_CAIRO="home_cairo",D6.TAB_INBOX="mail",D6.TAB_LIKED="thumb_up",D6.TAB_MUSIC_PREMIUM="youtube_music",D6.TAB_SHORTS="youtube_shorts",D6.TAB_SHORTS_CAIRO="youtube_shorts_cairo",D6.TAB_SUBSCRIPTIONS="subscriptions",D6.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",D6.TAB_TRENDING="fire",D6.TIMER="stopwatch",D6.TRAILER="youtube_originals",D6.TRENDING="fire",D6.TRENDING_CAIRO="fire_cairo",D6.TRENDING_UP="rating_up",D6.TROPHY="trophy",D6.TROPHY_CELEBRATIONS=
"fireworks",D6.TUNE="adjust",D6.UNBLOCK_USER="bar_circle",D6.UNLIMITED="youtube_logo_icon",D6.UNPLUGGED_LIVE_GUIDE="radar_live",D6.UNPLUGGED_SPORTS="eye_off",D6.UPLOADS="library",D6.UP_ARROW="arrow_up",D6.VERTICAL_ALIGN_BOTTOM="download",D6.VERY_HAPPY="face_very_happy",D6.VERY_SAD="face_very_sad",D6.VIDEOGAME_ASSET="gaming",D6.VIDEOS="play_arrow_circle",D6.VIDEO_CALL="video_camera_add",D6.VIDEO_LIBRARY_WHITE="library",D6.VIDEO_YOUTUBE="youtube_logo_icon",D6.VIEW_LIST="list_view",D6.VIEW_LIST_CAIRO=
"list_view_cairo",D6.VISIBILITY="eye",D6.VISIBILITY_OFF="eye_off",D6.VOLUME_MUTE="volume_off",D6.VOLUME_UP="volume_on",D6.WALLPAPER="image",D6.WARNING="alert_triangle",D6.WATCH_HISTORY="arrow_time",D6.WATCH_HISTORY_CAIRO="arrow_time_cairo",D6.WATCH_LATER="clock",D6.WATCH_LATER_CAIRO="clock_cairo",D6.WATCH_RELATED_MIX="youtube_mix",D6.WHAT_TO_WATCH="home",D6.YOUTUBE_MUSIC_MONOCHROME="youtube_music",D6.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",D6.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
D6.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",D6.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",D6.YT_OUTLINE_MUSIC_24="music",D6);var S8={},Eu4=(S8.ACCESS_TIME="clock",S8.ACCOUNT_BOX="person_square",S8.ACCOUNT_BOX_CAIRO="person_square",S8.ACCOUNT_CIRCLE="person_circle",S8.ACCOUNT_CIRCLE_CAIRO="person_circle",S8.ACCOUNT_LINKED="account_link",S8.ACCOUNT_UNLINKED="account_link",S8.ADD_CIRCLE="add_circle",S8.ADD_FRIEND="person_child",S8.ADD_TO_LIBRARY="bookmark",S8.ADD_TO_PLAYLIST="add",S8.ADD_TO_QUEUE_TAIL="queue",S8.ADD_TO_REMOTE_QUEUE="playlist_audio",S8.ADD_TO_WATCH_LATER="clock",S8.ADD_VIDEO_LINK="film_strip_add",S8.ADMIN_PANEL_SETTINGS=
"person_gear",S8.ALERT_WARN_RED="alert_triangle",S8.ALIGN_LEFT="text_align_left",S8.ARROWS_ALERT="arrow_split_alert",S8.ARROW_BACK="arrow_left",S8.ARROW_CIRCLE="arrow_counterclockwise",S8.ARROW_CIRCLE_PLAY="replay",S8.ARROW_CIRCLE_RIGHT="arrow_clockwise",S8.ARROW_DIAGONAL="arrow_up_left",S8.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",S8.ARROW_DROP_DOWN="triangle_down",S8.ARROW_DROP_UP="triangle_up",S8.ARROW_FORWARD="arrow_right",S8.ARROW_PAUSE="pause_history",S8.ARROW_UNDO="undo",S8.ARTICLE="text_page",
S8.ARTICLE_ALERT="text_page_alert",S8.ARTICLE_CHECK="text_page_check",S8.ARTICLE_CLARIFY="text_page_info",S8.AUDIOTRACK="audio",S8.AUDIO_BADGE="audio_badge",S8.AUDIO_SURROUND="surround_sound",S8.AVATAR_ANONYMOUS="person_circle",S8.AVATAR_LOGGED_OUT="person_circle",S8.BACK="arrow_left",S8.BAR_CHART="chart_bar",S8.BAR_CIRCLE="minus_circle",S8.BAR_HORIZONTAL="minus",S8.BLOCK="circle_slash",S8.BLOCK_USER="circle_slash",S8.BOOKMARK_BORDER="bookmark",S8.BOX_OPEN_CHECK="quiz",S8.BOX_PENCIL="square_pencil",
S8.BREAKING_NEWS_ALT_1="text_page_alert",S8.BROADCAST="podcast",S8.BROADCAST_CAIRO="podcast",S8.BUG_REPORT="bug",S8.CAMERA_ALT="camera",S8.CAMPAIGN="megaphone",S8.CANCEL="x_circle",S8.CAPTIONS="closed_captions",S8.CAST_ICON="chromecast",S8.CAST_OUTLINE="chromecast",S8.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",S8.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",S8.CHAT="text_bubble",S8.CHAT_BUBBLE="bubble",S8.CHECK_BOX="check_square",S8.CHECK_BOX_OUTLINE_BLANK="square",S8.CHECK_CIRCLE_FILLED="check_circle",
S8.CHECK_CIRCLE_OUTLINE="check_circle",S8.CHECK_CIRCLE_THICK="check_circle",S8.CHECK_DOUBLE="check_done",S8.CHECK_DOUBLE_OFF="check_done_slash",S8.CHEVRON_LEFT="chevron_left",S8.CHEVRON_RIGHT="chevron_right",S8.CHEVRON_RIGHT_CAIRO="chevron_right",S8.CIRCLES_OVERLAP="account_link",S8.CLAPPERBOARD_CAIRO="clapperboard",S8.CLARIFY="text_page_info",S8.CLOCK_ARROWS="clock_split",S8.CLOCK_ARROWS_ALERT="clock_split_alert",S8.CLOSED_CAPTION="closed_captions",S8.CLOSED_CAPTION_SELECTED="closed_captions",S8.CLOSE=
"x",S8.CLOUD_UPLOAD="cloud_arrow_up",S8.COLLAPSE="chevron_up",S8.COLLAPSE_CAIRO="chevron_up",S8.COLLECTION="square3d_stack",S8.COLOR_LENS="paint_palette",S8.COMMENT="text_bubble",S8.CONSENT_SHIELD="person_shield",S8.CONTENT_CUT="scissors",S8.CONTENT_CUT_CAIRO="scissors",S8.COURSE="graduation_cap",S8.COURSE_CAIRO="graduation_cap",S8.CREATION_LIVE="live",S8.CREATION_POST="square_pencil",S8.CREATION_UPLOAD="video",S8.CREATION_UPLOAD_RED="upload",S8.CREATOR_ACADEMY="graduation_cap",S8.CREATOR_STUDIO=
"youtube_studio",S8.DARK_THEME="theme",S8.DELETE="trash_can",S8.DELETE_SWEEP="trash_can",S8.DESKTOP="laptop",S8.DISLIKE="thumb_down",S8.DISLIKE_SELECTED="thumb_down",S8.DISMISSAL="x",S8.DISMISS_QUEUE="playlist_x",S8.DOGFOOD="pawprint",S8.DOLLAR_SIGN="dollar_sign_circle",S8.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",S8.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",S8.DOWN_ARROW="arrow_down",S8.DO_NOT_DISTURB="circle_slash",S8.DRAFT="document",S8.EARTH="globe",S8.EDIT="pencil",S8.EMOJI="face_very_happy",
S8.EMOJI_FLAGS="flag",S8.EMOJI_OBJECTS="lightbulb",S8.EMOJI_PEOPLE="face_very_happy",S8.EMOJI_RECENT="clock",S8.EMPTY_HEART="heart",S8.EMPTY_LIKE="thumb_up",S8.ERROR_BLACK="alert_circle",S8.ERROR_OUTLINE="alert_circle",S8.ERROR_WHITE="alert_circle",S8.EXIT_APP="arrow_in",S8.EXIT_TO_APP="arrow_in",S8.EXPAND="chevron_down",S8.EXPAND_ALL="chevron_expand",S8.EXPAND_CAIRO="chevron_down",S8.EXPAND_LESS="chevron_up",S8.EXPAND_MORE="chevron_down",S8.EXPLORE="compass",S8.EXPLORE_DESTINATION="compass",S8.EXTERNAL_LINK=
"arrow_up_right",S8.EYE_OFF="eye_slash",S8.FAB_UPLOAD="upload",S8.FACE_HAPPY_OUTLINE="face_happy",S8.FACE_MEH="face_neutral",S8.FACT_CHECK="text_page_check",S8.FASHION_LOGO="fashion",S8.FASHION_LOGO_CAIRO="fashion",S8.FAVORITE="thumb_up",S8.FEEDBACK="alert_bubble",S8.FEEDBACK_CAIRO="alert_bubble",S8.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",S8.FILL_ARROW_SOLID_UP_16="arrow_solid_up",S8.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",S8.FLAG_CAIRO="flag",S8.FLASH_OFF="flash_slash",S8.FLASH_ON="flash",
S8.FULL_HEART="heart",S8.GAMING_LOGO="gaming",S8.GAMING_LOGO_CAIRO="gaming",S8.GO_TO_PAGE="arrow_right",S8.GROUPS="person3",S8.HAND_SWIPE_LEFT="gesture_swipe_left",S8.HAND_SWIPE_RIGHT="gesture_swipe_right",S8.HAPPY="face_happy",S8.HEALTH_AND_SAFETY="shield_health",S8.HEART_BOX="heart_cube",S8.HELP="help_circle",S8.HELP_CAIRO="help_circle",S8.HELP_OUTLINE="help_circle",S8.HIDE="circle_slash",S8.INCOGNITO_CAIRO="incognito",S8.INFINITY_ICON="infinity",S8.INFO="info_circle",S8.INFO_OUTLINE="info_circle",
S8.INSERT_CHART="chart_bar_square",S8.INSERT_CHART_OUTLINED="chart_bar_square",S8.INSERT_PHOTO="image",S8.KEEP="pin",S8.KEEP_OFF="pin_slash",S8.KEYBOARD="keyboard",S8.KEYBOARD_ARROW_DOWN="chevron_down",S8.KEYBOARD_ARROW_UP="chevron_up",S8.KIDS_BLOCK="circle_slash",S8.LANGUAGE="globe",S8.LAUNCH="arrow_up_right",S8.LEARNING="lightbulb",S8.LEARNING_CAIRO="lightbulb",S8.LIBRARY_ADD="bookmark",S8.LIBRARY_IMAGE="image_stack",S8.LIBRARY_MUSIC="audio_square_stack",S8.LIBRARY_OUTLINE="play_square_stack",S8.LIBRARY_REMOVE=
"bookmark",S8.LIBRARY_SAVED="check_square_stack",S8.LIKES_PLAYLIST="thumb_up",S8.LIKES_PLAYLIST_CAIRO="thumb_up",S8.LIKE="thumb_up",S8.LIKE_SELECTED="thumb_up",S8.LIST_QUEUE="queue",S8.LIVE_CAIRO="live",S8.LIVE_UNLISTED="link",S8.LOCATION_ON="location_pin",S8.LOCATION_PIN="location_pin",S8.LOCATION_POINT="location_pin",S8.LOOP="repeat",S8.LOOP_ACTIVE="repeat",S8.LOOP_ONE="repeat1",S8.LOOP_ONE_ACTIVE="repeat1",S8.MEET="google_meet",S8.MEH="face_neutral",S8.MEMBERSHIPS="memberships",S8.MEMBERS_ONLY_MODE_OFF=
"text_bubble",S8.MENU_FILTER="filter",S8.MESSAGE="text_bubble",S8.MESSAGE_BUBBLE_GEAR="bubble_gear",S8.MESSAGE_BUBBLE_LEFT="text_bubble",S8.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",S8.MESSAGE_BUBBLE_OVERLAP="bubble_stack",S8.MESSAGE_BUBBLE_QUESTION="help_bubble",S8.MICROPHONE_ON="mic",S8.MONETIZATION_ON="dollar_sign_circle",S8.MONEY_FILL="dollar_sign_rectangle",S8.MONEY_FILL_JPY="yen_sign_rectangle",S8.MONEY_HAND="dollar_sign_circle_hand",S8.MONEY_HEART="dollar_sign_heart",S8.MOON_Z="sleep_timer",
S8.MORE_HORIZ="overflow_horizontal",S8.MORE_VERT="overflow_vertical",S8.MUSIC="audio",S8.MUSIC_CAIRO="audio",S8.MUSIC_EXPLICIT_BADGE="explicit",S8.MUSIC_NEW_RELEASE="audio_badge",S8.MUSIC_NOTE_SYMBOL="audio",S8.MUSIC_SCISSORS="audio_scissors",S8.MUSIC_SHUFFLE="shuffle",S8.MY_CHANNEL="person_circle",S8.MY_LOCATION="location_pin",S8.MY_VIDEOS="video",S8.MY_VIDEOS_CAIRO="video",S8.NEWS_CAIRO="news",S8.NEWS_STORY="news",S8.NEXT="chevron_right",S8.NOTE_ADD="bubble_pencil",S8.NOTIFICATIONS="bell",S8.NOTIFICATIONS_ACTIVE=
"bell_waves",S8.NOTIFICATIONS_CAIRO="bell",S8.NOTIFICATIONS_DONE_CHECKMARK="check",S8.NOTIFICATIONS_INBOX="bell",S8.NOTIFICATIONS_NONE="bell",S8.NOTIFICATIONS_OFF="bell_slash",S8.NOT_INTERESTED="circle_slash",S8.OFFICIAL_ARTIST_BADGE="audio",S8.OFFLINE_CLOUD="cloud_slash",S8.OFFLINE_DOWNLOAD="download",S8.OFFLINE_DOWNLOAD_CAIRO="download",S8.OFFLINE_PAUSE="pause",S8.OPEN_IN_NEW="arrow_up_right",S8.OUTLINE_ADJUST="adjust",S8.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",S8.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",S8.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",S8.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",S8.OUTLINE_BAG="bag",S8.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",S8.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",S8.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",S8.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",S8.PAID="dollar_sign_circle",S8.PAUSE_OUTLINED="pause",S8.PAYMENT="credit_card",S8.PEOPLE="person_child",S8.PEOPLE_2="person2_rectangle",S8.PEOPLE_GROUP="person3",S8.PEOPLE_NOTE=
"bubble_asterisk",S8.PERSON_2="person2",S8.PERSON_ACCOUNT="person_square_stack",S8.PERSON_MINUS="person_x",S8.PERSON_MUSIC="person_audio",S8.PERSON_RADAR="person_waves",S8.PERSON_RADAR_FILLED="person_waves",S8.PERSON_SETTING="person_gear",S8.PHONE="phone",S8.PHONE_DOWNLOAD="mobile_arrow_down",S8.PICTURE_IN_PICTURE="picture_in_picture",S8.PLAYABLES_LOGO="playables",S8.PLAYABLES_LOGO_CAIRO="playables",S8.PLAYLISTS="playlist",S8.PLAYLISTS_CAIRO="playlist",S8.PLAYLIST_ADD_CHECK="bookmark",S8.PLAY_ALL=
"play",S8.PLAY_ARROW="play",S8.PLAY_ARROW_CIRCLE="play_circle",S8.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",S8.PLAY_CIRCLE="play_circle",S8.PLAY_OUTLINED="play_circle",S8.PODCAST_ADD="podcast_add",S8.PODCAST_CHECK="podcast_check",S8.PRIVACY_INFO="shield_x",S8.PRIVACY_PRIVATE="lock",S8.PRIVACY_PUBLIC="globe",S8.PRIVACY_UNLISTED="link",S8.PROMOTE="megaphone",S8.PURCHASES="price_tag",S8.PURCHASE_SUPER_CHAT="super_chat",S8.PURCHASE_SUPER_STICKER="super_sticker",S8.QUESTION_ANSWER="help_bubble",
S8.QUESTION_CIRCLE="help_circle",S8.QUEUE_PLAY_LAST="queue_last",S8.QUEUE_PLAY_NEXT="playlist",S8.QUOTATION_MARK="quote",S8.RADAR_LIVE="live",S8.REMOVE="minus_circle",S8.REMOVE_CIRCLE="minus_circle",S8.REMOVE_CIRCLE_OUTLINE="minus_circle",S8.REMOVE_FROM_HISTORY="minus_circle",S8.REMOVE_FROM_PLAYLIST="minus_circle",S8.REPLAY="arrow_counterclockwise",S8.REPLAY_10="skip10_back",S8.REPLAY_ARROW="replay",S8.REPORT_PROBLEM="alert_triangle",S8.RSS_OFF="rss_slash",S8.SAD="face_sad",S8.SAVE_PLAYLIST="bookmark",
S8.SCHEDULE="clock",S8.SCHOOL="graduation_cap",S8.SCREEN_DEFAULT="player_default",S8.SCREEN_FULLSCREEN="player_full_enter",S8.SCREEN_LIGHT="ambient_mode",S8.SCREEN_ROTATION="rotate_portrait",S8.SCREEN_SWITCH="player_switch",S8.SCREEN_THEATRE="player_theater",S8.SEARCH_CAIRO="search",S8.SEARCH_HISTORY="history",S8.SELL="price_tag",S8.SETTINGS="gear",S8.SETTINGS_CAIRO="gear",S8.SETTINGS_LIGHT="gear",S8.SETTINGS_MATERIAL="gear",S8.SETTINGS_REMOTE="remote_waves",S8.SHARE="share",S8.SHARE_ARROW="share",
S8.SHARE_CAIRO="share",S8.SHIELD="shield_x",S8.SHIELD_OFF="shield_slash",S8.SHIELD_WITH_AVATAR="person_shield",S8.SHOPPING_BAG="bag",S8.SHOPPING_BAG_CAIRO="bag",S8.SHOPPING_CART="cart",S8.SHORTS_COMMENT="text_bubble",S8.SHORTS_DISLIKE="thumb_down",S8.SHORTS_LIKE="thumb_up",S8.SHORTS_SHARE="share",S8.SKIP_FORWARD_30="skip30_forward",S8.SLASH_CIRCLE_RIGHT="circle_slash",S8.SLOW_MODE_OFF="text_bubble",S8.SOCIAL="person_child",S8.SPARKLE="sparkles",S8.SPARK_IMAGE="image_spark",S8.SPARK_RADAR="spark_waves",
S8.SPARK_VIDEO="video_spark",S8.SPEAKER_GROUP="speaker_stack",S8.SPEAKER_OFF="speaker_slash",S8.SPEED_1X="n1x",S8.SPEED_1_POINT_2X="n1point2x",S8.SPEED_1_POINT_5X="n1point5x",S8.SPEED_1_POINT_8X="n1point8x",S8.SPEED_2X="n2x",S8.SPONSORSHIP_STAR="memberships",S8.SPORTS="basketball",S8.SPOTLIGHT="spotlight",S8.STAFF_PICK="spotlight",S8.START_DVR="add",S8.STAR_BORDER="star",S8.STAR_HALF="star_half_filled",S8.STAR_SHOOTING="hype",S8.STICKER="sticker",S8.STICKER_EMOTICON="face_happy",S8.STOP_DVR="stop",
S8.SUBSCRIBE="youtube",S8.SUBSCRIBE_PLUS="add",S8.SUBSCRIPTION_MANAGER="gear",S8.SUPERSTAR="super_star",S8.SUPERVISOR_ACCOUNT="person_child",S8.SWAP_HORIZ="arrow_swap_horizontal",S8.SWITCH_ACCOUNTS="person_square_stack",S8.TAB_ACCOUNT="person",S8.TAB_ACTIVITY="bell",S8.TAB_BOOKMARK="bookmark",S8.TAB_EXPLORE="compass",S8.TAB_HOME="home",S8.TAB_HOME_CAIRO="home",S8.TAB_INBOX="mail",S8.TAB_LIKED="thumb_up",S8.TAB_MUSIC_PREMIUM="youtube_music",S8.TAB_SHORTS="shorts",S8.TAB_SHORTS_CAIRO="shorts",S8.TAB_SUBSCRIPTIONS=
"subscriptions",S8.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",S8.TAB_TRENDING="trending",S8.TARGET="target",S8.TARGET_ADD="target_add",S8.TEMPLATE_ADD="template_add",S8.TEXT="font",S8.TIMER="stopwatch",S8.TRENDING_CAIRO="trending",S8.TRENDING_UP="arrow_trend_up",S8.TROPHY_CAIRO="trophy",S8.TROPHY_CELEBRATIONS="fireworks",S8.TROPHY_STAR="star_trophy",S8.TUNE="adjust",S8.TV_OFF="tv_slash",S8.UNBLOCK_USER="minus_circle",S8.UNFAVORITE="thumb_down",S8.UNLIMITED="youtube",S8.UNPLUGGED_LIVE_GUIDE="live",S8.UNPLUGGED_SPORTS=
"eye_slash",S8.UPLOADS="play_square_stack",S8.UP_ARROW="arrow_up",S8.VERTICAL_ALIGN_BOTTOM="chevron_down_end",S8.VERTICAL_ALIGN_TOP="chevron_up_end",S8.VERY_HAPPY="face_very_happy",S8.VERY_SAD="face_very_sad",S8.VIDEOS="play_circle",S8.VIDEO_CALL="video_camera_add",S8.VIDEO_LIBRARY_WHITE="play_square_stack",S8.VIDEO_QUALITY_4K="n4k",S8.VIDEO_QUALITY_8K="n8k",S8.VIDEO_YOUTUBE="youtube",S8.VIEW_LIST_CAIRO="view_list",S8.VIEW_MODULE="view_column3_row2",S8.VISIBILITY="eye",S8.VISIBILITY_OFF="eye_slash",
S8.VOLUME_DOWN="volume_min",S8.VOLUME_MUTE="volume_mute",S8.VOLUME_OFF="volume_mute",S8.VOLUME_STABLE="stable_volume",S8.VOLUME_UP="volume_max",S8.WALLPAPER="image",S8.WARNING="alert_triangle",S8.WATCH_HISTORY="history",S8.WATCH_HISTORY_CAIRO="history",S8.WATCH_LATER="clock",S8.WATCH_LATER_CAIRO="clock",S8.WATCH_RELATED_MIX="mix",S8.WHAT_TO_WATCH="home",S8.YOUTUBE_LINKED_TV="tv_mobile",S8.YOUTUBE_MUSIC_MONOCHROME="youtube_music",S8.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",S8.YOUTUBE_SHORTS_ARROW_DOWN=
"arrow_down",S8.YOUTUBE_SHORTS_ARROW_UP="arrow_up",S8.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",S8.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",S8.YOUTUBE_SHORTS_OUTLINE_24="shorts",S8);var Uu4={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,6,24],[1,6,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,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,11,12],[0,11,16],[0,11,24],[1,11,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,
1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
11,12],[0,11,16],[0,11,24],[1,11,16],[1,11,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,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,9,24],[1,9,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],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,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,
2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,
2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,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,8,24]],pause_circle:[[0,2,12],
[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,
2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,
5,24],[1,5,24]],podcast:[[0,4,24],[1,4,12],[1,4,16],[1,4,18],[1,4,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,12,24],[1,12,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,
24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,
1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,
3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],
speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],
stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],
text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,23,16],[0,23,24],[0,23,36],[1,23,16],[1,23,24],[1,23,36]],thumb_up:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],
thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],
[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],
video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,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,10,18],[1,10,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,
5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,
2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,
2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var muq={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,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,
10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,
2,24],[1,2,24]],arrow_solid_down:[[0,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,11,12],[0,11,18],[0,11,
24],[1,11,18],[1,11,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,
2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,
1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,
2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,11,18],[1,11,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,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,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,9,24],[1,9,24],[1,9,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,
7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,
3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,
2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,
23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],
face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,
1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,
1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,
1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],
heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],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,10,24],[1,10,24]],mic_slash:[[1,1,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,
2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],
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,8,24],[0,8,36],[1,8,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,
24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,
24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,2,24],[0,2,36],[1,2,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,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,2,12],[1,2,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,4,24],[1,4,18],[1,4,24]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,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,12,24],[1,12,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[1,11,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,
2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,
5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,
4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,
24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,
2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,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,23,18],[0,23,24],[1,23,18],[1,23,24]],thumb_up:[[0,21,18],[0,21,24],[1,21,18],[1,21,24]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,
1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,
5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],
volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,10,18],[1,10,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],
[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var Rcq={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"},hc=function(X){this.iconUrlProvider=X};
hc.prototype.resolveIcon=function(X,t){var G=Rcq[X.iconName.toUpperCase()];G&&(X.iconName=G);var y=X.iconName;y=y.replace(/-/g,"_");X=Object.assign({},X,{iconName:this.mapIconTypeToStandardName(y,!!G)||y.toLowerCase()});if(_.A("enable_web_delhi_icons")||G){var w;return kXY(muq,X,((w=this.iconUrlProvider)==null?void 0:w.getYtStandardUrl)||gd_,t)}var z;return kXY(Uu4,X,((z=this.iconUrlProvider)==null?void 0:z.getYtStandardUrl)||jrJ,t)};
hc.prototype.mapIconTypeToStandardName=function(X,t){return _.A("enable_web_delhi_icons")||t?Eu4[X.toUpperCase()]:Pq4[X.toUpperCase()]};
hc[gA]=[_.jH(pEq)];var i24=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),Lyq=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),vue=new Set(["shorts_comment","shorts_dislike","shorts_like","shorts_share"]),aDY=function(X){this.urlProvider=this.iconUrlProvider=X};
_.S(aDY,hc);
aDY.prototype.resolveIcon=function(X,t){X.iconName==="youtube_logo"&&(X.iconName="yt-logo-updated");if(X.iconName==="youtube_premium_logo"||X.iconName==="youtube_red_logo")X.iconName="yt-logo-red-updated";var G=Object.assign({},X);X.iconName==="menu"&&(_.A("enable_web_delhi_icons")||(G.iconName="bars_3"),G.iconStyle="youtube_outline");X.iconSetName==="socialNetworksRound"&&(X.iconName==="mail"&&(G.iconName="email"),X.iconName==="embed"&&(G.iconSize=60));X.iconName==="more"&&(G.iconName="overflow_horizontal");
X.iconName==="fullscreen"&&(G.iconName="screen_full");X.iconName==="premium_standalone"&&(G.iconName="premium_standalone_cairo");_.A("enable_connect_icon_update_web")&&X.iconName==="account_linked"&&(G.iconName="circles_overlap_check",G.iconStyle="youtube_fill");_.A("enable_connect_icon_update_web")&&X.iconName==="account_unlinked"&&(G.iconName="circles_overlap",G.iconStyle="youtube_outline");i24.has(X.iconName)&&(G.iconStyle="youtube_fill");_.A("enable_web_delhi_icons")&&(X.iconName==="playlist_add"&&
(G.iconName="bookmark"),X.iconName==="offline_pin"&&(G.iconName="arrow_down_circle",G.iconStyle="youtube_fill"),Lyq.has(X.iconName)&&(G.iconName+="_updated"),vue.has(X.iconName)&&(G.iconStyle="youtube_fill"));X=Object.assign({},G,{iconName:(hc.prototype.mapIconTypeToStandardName.call(this,G.iconName)||G.iconName).toLowerCase()});var y;return(X=kXY(WyR,X,((y=this.urlProvider)==null?void 0:y.getUrl)||FcV,t))?X:hc.prototype.resolveIcon.call(this,G,t)};
aDY[gA]=[_.jH(pEq)];_.lDJ=1;var Z6=function(X,t){this.JSC$17076_commandHandler=X;this.innertubeTransportService=t};
_.S(Z6,yD);Z6.prototype.resolveCommand=function(X,t){var G=this,y,w,z;return _.n(function(B){return(y=_.Y(X,S1e))?B.return(xuz(G,y,(w=t)==null?void 0:(z=w.form)==null?void 0:z.element)):B.return()})};
var xuz=function(X,t,G){t={profileCardContext:t.profileCardContext,profileOwnerExternalChannelId:t.profileOwnerExternalChannelId};var y=_.el(EQe);return _.t_(X.innertubeTransportService,t,y).then(function(w){if(!w)throw new _.NJ("GetProfileCard failed");if(w=w.popupCommand){X.JSC$17076_commandHandler.resolveCommand(w,{form:{element:G}});_.qP(_.Pj(),66557);w=w==null?void 0:w.clickTrackingParams;var z=_.a4();w&&z&&_.Pj().graftServerVe(w,z)}})};
Z6[gA]=[_.F3,_.Mr];var qU=function(){};
_.S(qU,yD);qU.prototype.resolveCommand=function(X){var t,G;return _.n(function(y){t=_.Y(X,Qme);if(!t)return y.return();G=Number(t.enableDelayedPacfLoggingTvMs);if(isNaN(G)){var w=W8();nzB(w,t,0)}else nzB(W8(),t,G);_.W$(y)})};_.Cf=function(){};
_.S(_.Cf,yD);
_.Cf.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e;return _.n(function(g){y=_.Y(X,IFq);z=(w=t.form)==null?void 0:w.element;V=(B=z)==null?void 0:B.closest("ytd-enforcement-message-view-model");if(!y||!V)return g.return();G.allowAdsAction||(b=y.fundingChoiceInstructionPageUrl,G.allowAdsAction=new yf4(window,_.aS(b)));var F=G.allowAdsAction;F.wallElement=V;F.allowAdsPopup.style.setProperty("display","flex","important");var T=F.scrollManager;T.originalBodyOverflow=T.JSC$9930_domHelper.JSC$9254_document_.body.style.overflow;T.JSC$9930_domHelper.JSC$9254_document_.body.style.overflow=
"hidden";F.wallElement.style.setProperty("display","none","important");dtP(F.accessibilityManager,F.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((e=G.allowAdsAction.allowAdsPopup)&&e instanceof HTMLElement)for(F=_.J(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),T=F.next();!T.done;T=F.next()){var D=_.J(T.value);T=D.next().value;D=D.next().value;e.style.setProperty(T,D)}_.W$(g)})};
_.Cf.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Kf=function(){};
_.S(Kf,yD);Kf.prototype.resolveCommand=function(X){var t;return _.n(function(G){t=_.Y(X,XF4);if(!t)return G.return();eWh(X);_.W$(G)})};var Ou=function(X){this.JSC$17091_commandHandler=X};
_.S(Ou,yD);
Ou.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V,b,e;return _.n(function(g){if(g.nextAddress==1){G=_.Y(X,CSR);if((y=G)==null||!y.text||!navigator.clipboard)return g.return();_.CL(g,2);return g.yield(navigator.clipboard.writeText(G.text),4)}if(g.nextAddress!=2){if(!G.successActions||G.successActions.length===0)return g.return();w=_.J(G.successActions);for(z=w.next();!z.done;z=w.next())B=z.value,t.JSC$17091_commandHandler.resolveCommand(B);return _.zx(g,0)}_.IY(g);if(!G.failureActions||G.failureActions.length===
0)return g.return();V=_.J(G.failureActions);for(b=V.next();!b.done;b=V.next())e=b.value,t.JSC$17091_commandHandler.resolveCommand(e);_.W$(g)})};
Ou[gA]=[_.F3];var u4=function(X){this.JSC$17095_commandHandler=X};
_.S(u4,yD);
u4.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e,g,F,T;return _.n(function(D){switch(D.nextAddress){case 1:y=_.Y(X,Hc4);if(!y)return D.return();_.CL(D,2);if(!y.imageBytes&&!y.imageUrl)throw Error("xi");if(!y.imageUrl){if(y.imageBytes){z=y.imageBytes;B=z.replace(/-/g,"+").replace(/_/g,"/");var h=YBw(B);w=_.xg(h)}D.jumpTo(4);break}return D.yield(fetch(y.imageUrl),5);case 5:return V=D.yieldResult,D.yield(V.blob(),6);case 6:b=D.yieldResult,w=_.xg(b);case 4:F=(e=t)==null?void 0:(g=e.form)==
null?void 0:g.element;T=document.createElement("a");XM(T,w);F.appendChild(T);T.download="";T.click();F.removeChild(T);URL.revokeObjectURL(_.Rj(w));y.successCommand&&G.JSC$17095_commandHandler.resolveCommand(y.successCommand);_.zx(D,0);break;case 2:_.IY(D),y.errorCommand&&G.JSC$17095_commandHandler.resolveCommand(y.errorCommand),_.W$(D)}})};
u4[gA]=[_.F3];var QS=function(X){this.store=X};
_.S(QS,yD);QS.prototype.resolveCommand=function(X){var t=this,G,y,w;return _.n(function(z){y=(G=_.Y(X,_.PE4))==null?void 0:G.entityBatchUpdate;if(!y)return z.jumpTo(0);w=Object.assign({},y,{mutations:[].concat(_.RY(y.mutations||[]))});return z.yield(_.WK(w,t.store),0)})};var fDq=function(X){this.JSC$17102_commandHandler=X;this.feedbackDialogMap=new Map};
fDq.prototype.openDialog=function(X,t){(X=this.feedbackDialogMap.get(X))&&this.JSC$17102_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:X}},t)};
fDq[gA]=[_.F3];var Iw=new _.FB("FEEDBACK_CONTROLLER_TOKEN");var Wb=new _.FB("APP_STORE_TOKEN");var cb=function(X,t){this.store=X;this.controller=t};
_.S(cb,yD);cb.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l;return _.n(function(R){if(R.nextAddress==1){y=_.Y(X,_.fV);if(z=(w=y)==null?void 0:w.contentId)for(V=_.J(((B=y)==null?void 0:B.actions)||[]),b=V.next();!b.done;b=V.next())e=b.value,MEq(G,e,z);T=(g=t)==null?void 0:(F=g.form)==null?void 0:F.element;return R.yield(_.hE(T,[X]).catch(function(){}),2)}D=R.yieldResult;
((h=D)==null?0:(u=h.data)==null?0:(W=u.feedbackResponses)==null?0:W.length)&&(P=(c=D.data.feedbackResponses[0])==null?void 0:c.followUpDialog)&&z&&(l=G.controller)!=null&&l.feedbackDialogMap.set(z,P);_.W$(R)})};
var MEq=function(X,t,G){var y=_.Y(t,_.Cq);if(y){y=_.J(y.commands||[]);for(var w=y.next();!w.done;w=y.next())MEq(X,w.value,G)}_.Y(t,_.Et)&&X.store.dispatch(_.EW("commandEntity",lrJ(G),{key:G,command:t}));_.Y(t,ONY)&&X.store.dispatch(_.EW("commandEntity",lrJ(G),{key:G,command:t}))};
cb[gA]=[Wb,Iw];var pf=function(X){this.controller=X};
_.S(pf,yD);pf.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B;return _.n(function(V){y=_.Y(X,_.yN);z=(w=y)==null?void 0:w.targetId;if(((B=y)==null?void 0:B.signal)!=="TELL_US_WHY"||!z)return V.return();G.controller.openDialog(z,t);_.W$(V)})};
pf[gA]=[Iw];var r$=function(X){this.store=X};
_.S(r$,yD);r$.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e;return _.n(function(g){y=_.Y(X,yUV);z=(w=y)==null?void 0:w.contentId;b=(B=t)==null?void 0:(V=B.form)==null?void 0:V.element;e=_.hE(b,[X]);z&&G.undo(z);return g.yield(e,0)})};
r$.prototype.undo=function(X){this.store.dispatch(_.EW("commandEntity",lrJ(X),{key:X,command:void 0}))};
r$[gA]=[Wb];var NU=function(X){this.JSC$17117_commandHandler=X};
_.S(NU,yD);NU.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V,b,e;return _.n(function(g){G=_.Y(X,GuS);y=G.flowStateKey;w=G.validationFailureCommand;z=G.submitValidFormCommand;B=iil(_.jw,[y||""]);V=_.Y(B,wZq);((b=V)==null?0:b.isValid)&&z&&t.JSC$17117_commandHandler.resolveCommand(z);((e=V)==null?0:e.isValid)||!w||t.JSC$17117_commandHandler.resolveCommand(w);_.W$(g)})};
NU[gA]=[_.F3];var Pb=function(X){this.innertubeTransportService=X};
_.S(Pb,yD);Pb.prototype.resolveCommand=function(X,t){var G=this,y;return _.n(function(w){return w.yield(_.kW(G.innertubeTransportService,X,(y=t)==null?void 0:y.form).then(function(z){var B,V;t==null||(B=t.commandController)==null||(V=B.onSuccess)==null||V.call(B,X,z)},function(z){var B,V;
t==null||(B=t.commandController)==null||(V=B.onServerError)==null||V.call(B,X,z)}),0)})};
Pb[gA]=[_.Mr];var Eu=function(){};
_.S(Eu,yD);Eu.prototype.resolveCommand=function(X){var t,G,y,w;return _.n(function(z){if(t=_.Y(X,_.gZo)){if(G=t.gtmId)y=_.Md("GL",""),_.vN(G,y);(w=t.gtmData)&&_.aI(w)}_.W$(z)})};var Uu=function(X,t){this.innertubeTransportService=X;this.JSC$17128_actionRouter=t};
_.S(Uu,yD);Uu.prototype.resolveCommand=function(X){var t=this,G,y;return _.n(function(w){G=_.Y(X,toS);if(!G)return w.return();y=G.command;if(!y)return w.return();t.JSC$17128_actionRouter.triggerAction("yt-insert-rich-section-action",G);return w.yield(_.kW(t.innertubeTransportService,y,{disableCache:!0}),0)})};
Uu[gA]=[_.Mr,jO];DpV.bind(null,wf);var XYH=DpV.bind(null,hEt);hJ_.bind(null,wf);var $wB=hJ_.bind(null,hEt);qBA.bind(null,wf);var tsv=qBA.bind(null,hEt);var mI=function(){};
_.S(mI,yD);
mI.prototype.resolveCommand=function(X){var t,G,y,w,z,B,V,b,e,g;return _.n(function(F){t=_.Y(X,PiP);if(!t)return F.return();y=((G=t.operations)==null?void 0:G.operations)||[];w=_.J(y);for(z=w.next();!z.done;z=w.next())if(B=z.value,B.insertItemSectionContent){var T=B.insertItemSectionContent,D=T.contents||[];T.insertByPositionInSection?XYH(T.insertByPositionInSection.sectionTargetId,D,T.insertByPositionInSection.position):T.insertByRelativePositionInSection&&T.insertByRelativePositionInSection.sectionTargetId&&T.insertByRelativePositionInSection.itemTargetId&&
$wB(T.insertByRelativePositionInSection.sectionTargetId,T.insertByRelativePositionInSection.itemTargetId,D,T.insertByRelativePositionInSection.relativePosition)}else B.replaceSection?(T=B.replaceSection,D={},T.replaceByTargetId?D=T.replaceByTargetId:T.replaceByGroupId&&(D={targetId:T.replaceByGroupId.groupId,newContent:T.replaceByGroupId.newContent,undoKey:""}),D.newContent&&C9J(D.targetId,{continuationItems:[D.newContent]})):B.removeItem?(T=B.removeItem,T.removeByTargetId&&T.sectionTargetId&&tsv(T.sectionTargetId,
T.removeByTargetId.targetIds||[])):B.removeSection&&(B.removeSection.removeByTargetId?(V=void 0,GVR(((V=B.removeSection)==null?void 0:V.removeByTargetId.targetIds)||[])):B.removeSection.removeByGroupId&&(b=void 0,GVR(((b=B.removeSection)==null?void 0:b.removeByGroupId.groupIds)||[])));g=((e=t.operations)==null?void 0:e.scrollConfig)||{};yAH(g);_.W$(F)})};
var GVR=function(X){X=_.J(X);for(var t=X.next();!t.done;t=X.next())C9J(t.value,{continuationItems:[]})},yAH=function(X){if(X.scrollToItem){var t=X.scrollToItem.item||{},G=t.itemTargetId;
t=t.sectionTargetId;if(G&&t){var y=document.querySelector("[data-target-id="+t+"]"),w=y==null?void 0:y.querySelector("[data-target-id="+G+"]");y&&w&&setTimeout(function(){var z=w.offsetTop-y.offsetTop,B;if(((B=X.scrollToItem)==null?void 0:B.scrollPosition)==="SCROLL_POSITION_CENTER")z-=y.offsetHeight/2,z+=w.offsetHeight/2;else{var V;((V=X.scrollToItem)==null?void 0:V.scrollPosition)==="SCROLL_POSITION_END"&&(z-=y.offsetHeight,z+=w.offsetHeight)}y.scroll({top:z,behavior:"smooth"})},100)}}};var Rw=new _.FB("CLIENT_NAME_TOKEN");var wY4=new _.FB("DEFAULT_STORE_EXPIRATION_TOKEN");var jzY=new _.FB("CLIENT_LOCATION_SERVICE_TOKEN");var i4=function(X,t,G){this.clientName=X||_.Md("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=t||_.lu.getInstance();this.JSC$17156_commandHandler=G||_.Wj.instance};
_.S(i4,yD);i4.prototype.resolveCommand=function(X){var t=this,G,y;return _.n(function(w){y=(G=_.Y(X,vXR))==null?void 0:G.onComplete;t.clientLocationService.clearLocationPlayabilityToken(t.clientName);y&&t.JSC$17156_commandHandler.resolveCommand(y);_.W$(w)})};
i4[gA]=[Rw,jzY,_.F3];var Lf=function(X){this.innertubeTransportService=X};
_.S(Lf,yD);Lf.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B;return _.n(function(V){z=(y=t)==null?void 0:(w=y.form)==null?void 0:w.element;return V.yield(_.kW(G.innertubeTransportService,X,(B=t)==null?void 0:B.form).then(function(b){KF6(z,new CustomEvent("yt-service-request-completed"),{data:b},_.Md("openPopupConfig"))}),0)})};
Lf[gA]=[_.Mr];var vb=function(){};
_.S(vb,yD);vb.prototype.resolveCommand=function(X){var t,G;return _.n(function(y){t=_.Y(X,J8R);G=document.querySelector("mini-app-container-view-model");if(!t||!G)return y.return();t.isPlaying?G.dispatchEvent(new Event("play")):G.dispatchEvent(new Event("pause"));_.W$(y)})};var aw=function(){};
_.S(aw,yD);aw.prototype.resolveCommand=function(X){var t,G,y,w,z,B,V;return _.n(function(b){t=_.Y(X,VV4);if((G=t)==null||!G.paramKeys)return b.return();y=t.paramKeys;w=_.tW(window.location.href);z=_.J(y);for(B=z.next();!B.done;B=z.next())V=B.value,w.JSC$9962_queryData_.remove(V);window.history.replaceState(window.history.state,document.title,w.toString());_.W$(b)})};var zG4=function(){this.dropdownMap=new Map};_.H_q=new _.FB("DROPDOWN_CONTROLLER_TOKEN");var l4=function(X){this.controller=X};
_.S(l4,yD);l4.prototype.resolveCommand=function(X){var t=this,G,y,w,z;return _.n(function(B){G=_.Y(X,iuB);if(!G)return B.return();y=G;w=y.dropdownId;z=y.selectedOptionIndex;if(w===void 0||z===void 0)return B.return();var V=t.controller.dropdownMap.get(w);V&&V(z);_.W$(B)})};
l4[gA]=[_.H_q];var xN=function(X){this.controller=X};
_.S(xN,yD);xN.prototype.resolveCommand=function(X){var t=this,G;return _.n(function(y){return(G=_.Y(X,zr4))?y.yield(t.controller.closeDialog(),0):y.return()})};
xN[gA]=[_.ia];var ff=function(X){this.controller=X};
_.S(ff,yD);ff.prototype.resolveCommand=function(X){var t=this,G,y;return _.n(function(w){G=_.Y(X,ECJ);if(!G)return w.return();var z,B=G.panelIdentifier||((z=G.identifier)==null?void 0:z.tag);if(!B)throw Error("yi");return(y=B)?w.yield(t.controller.hidePanel(y),0):w.jumpTo(0)})};
ff[gA]=[_.mD];var MU=function(X,t){this.innertubeTransportService=X;this.controller=t};
_.S(MU,yD);MU.prototype.resolveCommand=function(X){var t=this,G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return G=_.Y(X,UDh),(y=G)!=null&&y.panelId?B.yield(t.controller.getReloadContinuation(G.panelId),2):B.return();if(B.nextAddress!=3)return(w=B.yieldResult)?B.yield(_.kW(t.innertubeTransportService,X,{continuation:w}),3):B.return();z=B.yieldResult;return B.yield(t.controller.updatePanel(G.panelId,z.content,!1),0)})};
MU[gA]=[_.Mr,_.mD];var XC=function(X,t,G){this.innertubeTransportService=X;this.JSC$17192_screenManager=t;this.JSC$17192_commandHandler=G};
_.S(XC,yD);
XC.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V;return _.n(function(b){if(b.nextAddress==1){G=_.Y(X,_.uXB);if(!G)return b.return();if(G.commands)for(y=_.J(G.commands),w=y.next();!w.done;w=y.next())z=w.value,t.JSC$17192_commandHandler.resolveCommand(z,{disableClickTracking:!0});B=_.i$(X.clickTrackingParams);_.qP(t.JSC$17192_screenManager,21760,B,{layer:7,parentLayer:0});return b.yield(_.kW(t.innertubeTransportService,X),2)}V=b.yieldResult;if(!V)return b.return();t.JSC$17192_screenManager.graftServerVe(V.trackingParams,B,
7);_.W$(b)})};
XC[gA]=[_.Mr,_.iR,_.F3];var $f=new _.FB("PANEL_LOADING_STRATEGY_TOKEN");var tR=function(X,t){this.controller=X;this.panelLoadingStrategy=t};
_.S(tR,yD);
tR.prototype.resolveCommand=function(X,t){var G=this,y,w,z;return _.n(function(B){y=_.Y(X,hTt);if((w=y)==null||!w.panelLoadingStrategy)return B.return();z=function(V){var b,e,g,F,T,D,h,u,W;return _.n(function(c){e=_.Y((b=V.dialogViewModel)==null?void 0:b.header,L4S);g={viewModel:V.dialogViewModel};F={};if(h=_.A("web_enable_dialog_header_label")?(T=e)==null?void 0:(D=T.headline)==null?void 0:D.content:void 0)F.ariaLabel=h;y.dismissOnBackgroundTap===!1&&(F.isModal=!0);return V.dialogViewModel?c.yield(G.controller.openDialog(g,
(u=t)==null?void 0:(W=u.form)==null?void 0:W.element,F),0):c.return()})};
return B.yield(G.panelLoadingStrategy.execute({command:X,data:y.panelLoadingStrategy,renderFn:z,createScreenConfig:{layer:4}}),0)})};
tR[gA]=[_.ia,$f];var GU=function(X,t,G){this.innertubeTransportService=X;this.controller=t;this.JSC$17212_screenManager=G};
_.S(GU,yD);
GU.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e,g,F,T,D,h;return _.n(function(u){switch(u.nextAddress){case 1:y=_.Y(X,_.xl);if(!y)return u.return();var W,c=y.panelIdentifier||((W=y.identifier)==null?void 0:W.tag);if(!c)throw Error("yi");w=c;return u.yield(G.controller.isVisible(w,!0),2);case 2:if((z=u.yieldResult)&&y.blockIfPanelOpen)return u.return();b=(V=(B=G.controller).getPanelContent)==null?void 0:V.call(B,w);if(!(W=b))if(y){var P;W=((P=y.globalConfiguration)==null?void 0:
P.initialState)||y.engagementPanel;if(P=!W)P=!!(y==null?0:(c=y.engagementPanelPresentationConfigs)==null?0:c.engagementPanelPopupPresentationConfig);P&&(W=_.CUJ(y.panelIdentifier,y.identifier))}else W=void 0;e=W;g=y.engagementPanelPresentationConfigs;F=y.engagementPanelExtras;return u.yield(G.controller.showPanel(w,e,g,F,(T=t)==null?void 0:(D=T.form)==null?void 0:D.element),3);case 3:if(!y.globalConfiguration){u.jumpTo(0);break}_.qP(G.JSC$17212_screenManager,32633);return u.yield(_.kW(G.innertubeTransportService,
X),5);case 5:return h=u.yieldResult,G.JSC$17212_screenManager.graftServerVe(h.trackingParams),u.yield(G.controller.updatePanel(w,h.content,!0,F,void 0,h.updatePanelContinuationData),0)}})};
GU[gA]=[_.Mr,_.mD,_.iR];var y4=function(X,t){this.controller=X;this.panelLoadingStrategy=t};
_.S(y4,yD);y4.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b;return _.n(function(e){y=_.Y(X,_.UW);if((w=y)==null||!w.panelLoadingStrategy)return e.return();V=oJq(G.controller,(z=t)==null?void 0:(B=z.form)==null?void 0:B.element);b=function(g){return _.n(function(F){return g.sheetViewModel?F.yield(G.controller.openSheet({viewModel:g.sheetViewModel},V),0):F.return()})};
return e.yield(G.panelLoadingStrategy.execute({command:X,data:y.panelLoadingStrategy,renderFn:b,createScreenConfig:{layer:0}}),0)})};
y4[gA]=[_.RJ,$f];var wW=function(X,t){this.controller=X;this.JSC$17220_commandHandler=t};
_.S(wW,yD);wW.prototype.resolveCommand=function(X,t){var G=this,y,w,z;return _.n(function(B){if(B.nextAddress==1){y=_.Y(X,Lot);var V=_.Y(y.showCommand,_.xl),b,e,g=(e=V==null?void 0:V.panelIdentifier)!=null?e:V==null?void 0:(b=V.identifier)==null?void 0:b.tag;if(!g)throw Error("zi");w=g;return B.yield(G.controller.isVisible(w),2)}return(z=B.yieldResult)?B.yield(G.controller.hidePanel(w),0):B.yield(G.JSC$17220_commandHandler.resolveCommand(y.showCommand,t),0)})};
wW[gA]=[_.mD,_.F3];var zU=function(X,t,G){this.innertubeTransportService=X;this.controller=t;this.JSC$17223_screenManager=G};
_.S(zU,yD);
zU.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L,x,w6;return _.n(function(BY){switch(BY.nextAddress){case 1:return y=G=_.Y(X,vrt),w=y.targetPanelIdentifier,z=y.contentSourcePanelIdentifier,B=y.globalConfiguration,((V=w)==null?0:V.tag)&&((b=z)==null?0:b.tag)?B?BY.yield(t.controller.showPanel(w.tag,_.CUJ(w.tag,w),void 0,void 0,void 0),5):BY.yield((T=(F=t.controller).getPanel)==null?void 0:T.call(F,z.tag),4):BY.return();case 4:D=BY.yieldResult;e=(h=D)==null?
void 0:(W=(u=h).getPanelContent)==null?void 0:W.call(u);BY.jumpTo(3);break;case 5:return BY.yield(_.kW(t.innertubeTransportService,X),6);case 6:c=BY.yieldResult,((P=c)==null?0:P.trackingParams)&&t.JSC$17223_screenManager.graftServerVe(c.trackingParams),e=(l=c)==null?void 0:l.content,g=(R=c)==null?void 0:R.updatePanelContinuationData;case 3:if(x=(L=e)==null?void 0:L.engagementPanelSectionListRenderer)return BY.yield(t.controller.showPanel(w.tag,void 0,void 0,void 0,void 0,{content:x.content,secondaryHeaderContent:(w6=
x.header)!=null?w6:{},targetId:x.targetId},g),0);BY.jumpTo(0)}})};
zU[gA]=[_.Mr,_.mD,_.iR];var HA=function(X){this.JSC$17230_commandHandler=X};
_.S(HA,yD);
HA.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V;return _.n(function(b){if(b.nextAddress==1)return(G=_.Y(X,yzB))?b.yield(_.uX(),2):b.return();y=b.yieldResult;if(!y)return b.return();var e=y,g=(w=G)==null?void 0:w.languageCode,F=(z=G)==null?void 0:z.isAutoTranslated;e.getVideoData&&_.OJJ(e).length&&((g=Qrv(e,g,F))?e.setOption("captions","track",g):(e.setOption("captions","stickyLoading",{}),e.setOption("captions","track",{})));B=y.isSubtitlesOn()?_.Qf("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Qf("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");V=_.F0(B);t.JSC$17230_commandHandler.resolveCommand(V);_.W$(b)})};
HA[gA]=[_.F3];var oF=function(X,t){this.shortsPlayerPromise=X;this.JSC$17234_commandHandler=t};
_.S(oF,yD);
oF.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V,b,e;return _.n(function(g){if(g.nextAddress==1)return(G=_.Y(X,T_q))?g.yield(t.shortsPlayerPromise,2):g.return();y=g.yieldResult;var F=IKJ(y);F!=null&&F.length||(y.loadModule("captions"),F=IKJ(y));w=F;if((z=w)==null||!z.length)return B=_.Qf("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),V=_.F0(B),t.JSC$17234_commandHandler.resolveCommand(V),g.return();y.toggleSubtitles();b=y.isSubtitlesOn()?_.Qf("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Qf("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");e=_.F0(b);t.JSC$17234_commandHandler.resolveCommand(e);_.W$(g)})};
oF[gA]=[_.ziq,_.F3];var JR=function(X){this.JSC$17237_playerPromise=X};
_.S(JR,yD);JR.prototype.resolveCommand=function(X){var t=this,G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return(G=_.Y(X,Rrq))?B.yield(t.JSC$17237_playerPromise,2):B.return();y=B.yieldResult;w=y.getVideoData().video_id;G.videoId===w&&(z=Number(G.offsetFromVideoStartMilliseconds),z>=0&&y.seekTo(z/1E3));_.W$(B)})};
JR[gA]=[_.q7];var JAR=_.Cg("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),BA=function(X){this.store=X};
_.S(BA,yD);
var B6H=function(X){var t,G,y,w;return _.n(function(z){if(z.nextAddress==1)return t=_.Md("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,G=_.Md("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,y=t||G,X.mainAppPlayer=new ba(y),z.yield(X.mainAppPlayer.api,2);w=z.yieldResult;w.addEventListener("onStateChange",X.JSC$17241_playerStateChangeListener.bind(X));document.addEventListener("yt-page-data-updated",X.pauseOnNavigation.bind(X));window.addEventListener("state-navigatestart",
X.pauseOnNavigation.bind(X));_.W$(z)})};
BA.prototype.JSC$17241_playerStateChangeListener=function(X){switch(X){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"}nJQ(this)};
var nJQ=function(X){X.store.dispatch(_.EW("sfvAudioItemCurrentlyPlayingEntity",JAR,{key:JAR,externalVideoId:X.externalVideoId,sfvAudioItemPlaybackState:X.playbackState,nowPlayingEntityValue:X.nowPlayingEntityValue}))};
BA.prototype.pauseOnNavigation=function(){var X=this,t,G,y,w;return _.n(function(z){if(z.nextAddress==1){if(!X.mainAppPlayer){var B=new _.NJ("Error: mainAppPlayer is unavailable",X.mainAppPlayer);_.xA(B);return z.return()}return z.yield(X.mainAppPlayer.api,2)}t=z.yieldResult;y=(G=t)==null?void 0:G.getPlayerState();y!==1||(w=t)!=null&&w.pauseVideo();_.W$(z)})};
BA.prototype.playVideo=function(X,t,G){var y=this,w,z;return _.n(function(B){if(B.nextAddress==1)return B.yield((w=y.mainAppPlayer)==null?void 0:w.api,2);z=B.yieldResult;if(!y.mainAppPlayer||!z){var V=new _.NJ("Error: mainAppPlayer is unavailable",y.mainAppPlayer);_.xA(V);return B.return()}return B.yield(y.mainAppPlayer.loadVideoWithPlayerVars({videoId:y.externalVideoId,audio_only:"1",start:X/1E3,end:X/1E3+t,player_params:G}),0)})};
BA.prototype.pauseVideo=function(){var X=this,t,G;return _.n(function(y){if(y.nextAddress==1){if(!X.mainAppPlayer){var w=new _.NJ("Error: mainAppPlayer is unavailable",X.mainAppPlayer);_.xA(w);return y.return()}return y.yield(X.mainAppPlayer.api,2)}t=y.yieldResult;(G=t)==null||G.pauseVideo();_.W$(y)})};
BA.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R;return _.n(function(L){if(L.nextAddress==1)return G=_.Y(X,eUY),w=(y=G)==null?void 0:y.nowPlayingEntityValue,B=(z=G)==null?void 0:z.externalVideoId,F=Number((g=(V=G)==null?void 0:(b=V.defaultStartPoints)==null?void 0:(e=b[0])==null?void 0:e.offsetMs)!=null?g:"0"),c=Number((W=(T=G)==null?void 0:(D=T.defaultStartPoints)==null?void 0:(h=D[0])==null?void 0:(u=h.duration)==null?void 0:u.seconds)!=null?W:"15"),R=(l=
(P=G)==null?void 0:P.playerParams)!=null?l:"",w&&B?t.mainAppPlayer?L.jumpTo(2):L.yield(B6H(t),2):L.return();if(L.nextAddress!=6){if(t.nowPlayingEntityValue&&w===t.nowPlayingEntityValue)return t.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?L.yield(t.pauseVideo(),0):L.yield(t.playVideo(F,c,R),0);t.externalVideoId=B;t.nowPlayingEntityValue=w;t.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return L.yield(t.playVideo(F,c,R),6)}nJQ(t);return L.jumpTo(0)})};
BA[gA]=[Dw];var nw=function(X){this.JSC$17261_commandHandler=X};
_.S(nw,yD);nw.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V;return _.n(function(b){if(b.nextAddress==1)return(y=_.Y(X,wBJ))?b.yield(_.uX(),2):b.return();w=b.yieldResult;if(!w)return b.return();(z=NcG(w))?G.JSC$17261_commandHandler.resolveCommand(z,t):(B=_.Qf("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),V=_.F0(B),G.JSC$17261_commandHandler.resolveCommand(V));_.W$(b)})};
nw[gA]=[_.F3];var V4=function(X){this.JSC$17264_playerPromise=X};
_.S(V4,yD);V4.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B;return _.n(function(V){if(V.nextAddress==1){G=_.Y(X,imo);if(!G)return V.return();y=G.overlayRenderer;return y?(w=_.Y(y,HvP))?V.yield(t.JSC$17264_playerPromise,3):V.jumpTo(0):V.return()}z=V.yieldResult;z.renderChapterSeekingAnimation(1,_.bu(w.text),(B=w.icon)==null?void 0:B.iconType);_.W$(V)})};
V4[gA]=[_.q7];var bc=function(X){this.store=X};
_.S(bc,yD);
bc.prototype.resolveCommand=function(X){var t=this,G,y,w;return _.n(function(z){if(z.nextAddress==1){G=_.Y(X,weY);if(!G)return z.return();y="";(w=t.store.getState().collabInviteLink)&&G.id===w.playlistId?y=w.inviteLinkURL:G.shortUrl&&(y=G.shortUrl);return y?z.yield(navigator.clipboard.writeText(y),3):z.jumpTo(0)}var B={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Qf("COPY_LINK_SUCCESS_TOAST")}}}}};_.gw().resolve(_.F3).resolveCommand(B);_.W$(z)})};
bc[gA]=[Wb];var kf=function(X,t){this.innertubeTransportService=X;this.JSC$17274_commandHandler=t};
_.S(kf,yD);kf.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e,g,F,T;return _.n(function(D){if(D.nextAddress==1)return(y=_.Y(X,_.z4))?D.yield(_.kW(G.innertubeTransportService,X,(w=t)==null?void 0:w.form),2):D.return();(z=D.yieldResult)&&z.errorMetadata&&(B=z,V=_.F0(B.error.message),G.JSC$17274_commandHandler.resolveCommand(V));b=z;if((e=b)==null?0:e.actions)for(g=_.J(b.actions),F=g.next();!F.done;F=g.next())T=F.value,G.JSC$17274_commandHandler.resolveCommand(T);_.W$(D)})};
kf[gA]=[_.Mr,_.F3];var dW=function(){};
_.S(dW,yD);dW.prototype.resolveCommand=function(X){var t;return _.n(function(G){t=_.Y(X,lat);if(!t)return G.return();(new Hiq(t)).show();_.W$(G)})};_.e4=new _.FB("PLAYLIST_EDIT_CONTROLLER_TOKEN");var j4=function(X,t,G,y){this.store=X;this.innertubeTransportService=t;this.controller=G;this.JSC$17282_commandHandler=y};
_.S(j4,yD);
j4.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L,x,w6,BY,kJ,Ss,C_,Fv;return _.n(function(Uh){if(Uh.nextAddress==1){y=_.Y(X,_.Xs);if(!y)return Uh.return();if(y.clientActions){w=_.J(y.clientActions);for(z=w.next();!z.done;z=w.next())B=z.value,G.JSC$17282_commandHandler.resolveCommand(B);var cY,f_=t==null?void 0:(cY=t.form)==null?void 0:cY.element;f_&&_.Yt(f_,"yt-dismissible-item-action",y.clientActions)}return Uh.yield(_.kW(G.innertubeTransportService,X,(V=
t)==null?void 0:V.form),2)}if(b=Uh.yieldResult)b.errorMetadata?(e=b,g=_.F0(e.error.message),G.JSC$17282_commandHandler.resolveCommand(g),"error"in b&&((F=t)==null?0:(T=F.commandController)==null?0:T.onServerError)&&((D=t)==null||(h=D.commandController)==null||h.onServerError(X,b))):(u=t)==null||(W=u.commandController)==null||(P=(c=W).onSuccess)==null||P.call(c,X,b);l=b;((R=l)==null?0:R.collaborationInviteLink)&&y.playlistId&&(_.A("web_enable_invite_collaborators_link")||_.A("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
G.store.dispatch(_.Dl({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:y.playlistId,inviteLinkUrl:l.collaborationInviteLink}}));((L=l)==null?0:L.redirectEndpoint)&&G.JSC$17282_commandHandler.resolveCommand(l.redirectEndpoint);((x=l)==null?0:(w6=x.newHeader)==null?0:w6.playlistHeaderRenderer)?VsN(G.controller,l.newHeader.playlistHeaderRenderer):((BY=l)==null?0:(kJ=BY.newHeader)==null?0:kJ.musicEditablePlaylistDetailHeaderRenderer)&&VsN(G.controller,l.newHeader.musicEditablePlaylistDetailHeaderRenderer);
G.controller.playlistVideoListElement&&((Ss=l)==null?0:(C_=Ss.playlistEditResults)==null?0:(Fv=C_[0])==null?0:Fv.playlistEditVideoAddedResultData)&&((f_=G.controller.playlistVideoListElement)==null||f_.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:l.playlistEditResults[0].playlistEditVideoAddedResultData})));_.W$(Uh)})};
j4[gA]=[Wb,_.Mr,_.e4,_.F3];var gW=function(X,t){this.controller=X;this.JSC$17292_commandHandler=t};
_.S(gW,yD);gW.prototype.resolveCommand=function(X,t){var G=this,y,w,z;return _.n(function(B){y=_.Y(X,z4q);G.controller.showRefreshPill&&((w=y)==null?0:w.command)&&(G.JSC$17292_commandHandler.resolveCommand((z=y)==null?void 0:z.command,t),G.controller.showRefreshPill=!1);_.W$(B)})};
gW[gA]=[_.SR,_.F3];var FC=function(X,t){this.store=X;this.JSC$17296_commandHandler=t||_.Wj.instance};
_.S(FC,yD);FC.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e,g,F,T;return _.n(function(D){y=_.Y(X,Fp4);w=G.store.getState().radioButtonGroup;if((z=y)==null?0:z.command)G.JSC$17296_commandHandler.resolveCommand((B=y)==null?void 0:B.command,t);else if(w&&((V=y)==null?void 0:V.formId)===w.currentFormId)for(b=Object.values(w.commandsMap),e=_.J(b),g=e.next();!g.done;g=e.next())F=g.value,(T=_.wr(F))&&G.JSC$17296_commandHandler.resolveCommand(T,t);_.W$(D)})};
FC[gA]=[_.Gw];var TU=new _.FB("USER_PREFS");var AR=function(X){this.JSC$17301_prefCookie=X};
_.S(AR,yD);AR.prototype.resolveCommand=function(X){var t=this,G;return _.n(function(y){(G=_.Y(X,E9B))&&typeof G.useListView==="boolean"&&(_.pq(0,155,G.useListView),t.JSC$17301_prefCookie.save());_.W$(y)})};
AR[gA]=[TU];var Yf=function(X){this.JSC$17305_prefCookie=X};
_.S(Yf,yD);Yf.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B;return _.n(function(V){G=_.Y(X,faq);if((y=G)==null||!y.gl)return V.return();w=G.gl;z={persist_gl:"1",gl:w};t.JSC$17305_prefCookie.set("gl",w);t.JSC$17305_prefCookie.save();B=RvS(z);_.ok(B);_.W$(V)})};
Yf[gA]=[TU];var sv=function(X){this.JSC$17309_prefCookie=X};
_.S(sv,yD);sv.prototype.resolveCommand=function(X){var t=this,G,y;return _.n(function(w){G=_.Y(X,oPR);if(!G)return w.return();y=!1;G.flagNum&&typeof G.value==="boolean"?(_.pq(0,G.flagNum,G.value),y=!0):G.key&&typeof G.stringValue==="string"&&(t.JSC$17309_prefCookie.set(G.key,G.stringValue),y=!0);y&&t.JSC$17309_prefCookie.save();_.W$(w)})};
sv[gA]=[TU];var Dg=new _.FB("PREF_STORAGE_PROMISE_TOKEN");var S4=function(X){this.JSC$17313_prefStoragePromise=X};
_.S(S4,yD);S4.prototype.resolveCommand=function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1)return(G=_.Y(X,BEB))?w.yield(t.JSC$17313_prefStoragePromise,2):w.return();y=w.yieldResult;return y===void 0||G.key===void 0||G.value===void 0?w.return():w.yield(y.set(G.key,G.value),0)})};
S4[gA]=[Dg];var b_N=function(X){this.innertubeTransportService=X};
_.S(b_N,yD);b_N.prototype.resolveCommand=function(X,t){var G=this,y,w;return _.n(function(z){(y=_.Y(X,_.NB4))&&y&&y.isFirstRequest&&(_.aa("search_overview_answer"),_.ls("so_rq",void 0,"search_overview_answer"));return z.yield(_.kW(G.innertubeTransportService,X,(w=t)==null?void 0:w.form),0)})};
b_N[gA]=[_.Mr];var kVH=function(){};
_.S(kVH,yD);
kVH.prototype.resolveCommand=function(X){var t,G,y,w,z,B,V,b,e;return _.n(function(g){t=_.Y(X,mD4);if((G=t)==null?0:G.sectionIdentifier){if(t.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(w=(y=document.getElementsByTagName(t.sectionIdentifier))==null?void 0:y.item(0))w.scrollIntoView({behavior:"smooth"}),(z=sLV(w))&&z.focus({preventScroll:!0});return g.return()}B=document.querySelector("[section-identifier="+t.sectionIdentifier+"]");V=document.querySelector("[section-identifier="+t.referenceSectionIdentifier+
"]");if(!B)return g.return();b=t.verticalScrollOffsetDp?t.verticalScrollOffsetDp:0;V&&(b-=V.offsetTop);window.scrollTo({top:B.offsetTop+b,behavior:"smooth"});(e=sLV(B))&&e.focus({preventScroll:!0})}_.W$(g)})};var hR=function(X){this.JSC$17325_commandHandler=X};
_.S(hR,yD);
hR.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V,b;return _.n(function(e){if(e.nextAddress==1){G=_.Y(X,ono);if(!G||!G.imageBytes||!navigator.clipboard)return e.return();if(G.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.xA(Error("Bi")),e.return();_.CL(e,2);w=(y=G)==null?void 0:y.imageBytes;z=w.replace(/-/g,"+").replace(/_/g,"/");B=YBw(z);V={};b=[new ClipboardItem((V[B.type]=B,V))];return e.yield(navigator.clipboard.write(b),4)}if(e.nextAddress!=2)return G.successCommand&&
t.JSC$17325_commandHandler.resolveCommand(G.successCommand),_.zx(e,0);_.IY(e);G.errorCommand&&t.JSC$17325_commandHandler.resolveCommand(G.errorCommand);_.W$(e)})};
hR[gA]=[_.F3];var Zg=function(X,t){this.innertubeTransportService=X;this.JSC$17329_commandHandler=t};
_.S(Zg,yD);Zg.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V;return _.n(function(b){if(b.nextAddress==1)return(y=_.Y(X,JPe))?b.yield(_.kW(G.innertubeTransportService,X,(w=t)==null?void 0:w.form),2):b.return();(z=b.yieldResult)&&z.errorMetadata&&y.onFailureCommand&&G.JSC$17329_commandHandler.resolveCommand(y.onFailureCommand);B=z;((V=B)==null?0:V.shareCommand)&&G.JSC$17329_commandHandler.resolveCommand(B.shareCommand,t);_.W$(b)})};
Zg[gA]=[_.Mr,_.F3];var q$=function(){};
_.S(q$,yD);q$.prototype.resolveCommand=function(X){var t,G;return _.n(function(y){t=_.Y(X,yJt);if(!t||!navigator.share)return y.return();G={url:t.url};try{return y.return(navigator.share(G))}catch(w){}_.W$(y)})};var Cw=function(){};
_.S(Cw,yD);Cw.prototype.resolveCommand=function(){return _.n(function(X){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.W$(X)})};var Kw=function(X){this.JSC$17339_navigationConfirmationService=X};
_.S(Kw,yD);Kw.prototype.resolveCommand=function(){var X=this;return _.n(function(t){X.JSC$17339_navigationConfirmationService.cancelPendingNavigation();_.W$(t)})};
Kw[gA]=[WV];var Ov=function(X){this.JSC$17342_screenManager=X};
_.S(Ov,yD);Ov.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e;return _.n(function(g){w=(y=t.form)==null?void 0:y.event;B=(z=t.form)==null?void 0:z.element;if(!w)throw new _.NJ("Event not passed in when resolving command");V=_.J(w.composedPath());for(b=V.next();!b.done;b=V.next())if(e=b.value,e.tagName==="YT-COPY-LINK-RENDERER")return e.copyUrlToClipboard(),B&&_.n5(G.JSC$17342_screenManager,B),g.return();_.W$(g)})};
Ov[gA]=[_.iR];var uc=function(){this.JSC$17346_miniAppClientDataProvider=_.gw().resolve(_.w$)};
_.S(uc,yD);uc.prototype.resolveCommand=function(){var X=this,t,G;return _.n(function(y){if(X.JSC$17346_miniAppClientDataProvider.clientData.has("video_id")){var w=X.JSC$17346_miniAppClientDataProvider,z=w.clientData.get("video_id");z&&w.clientData.delete("video_id");t="https://youtube.com/watch?v="+z;G=L1(t);if(G===void 0)throw Error("Ci`"+t);_.zc(window,G)}_.W$(y)})};var Q4=function(){};
_.S(Q4,yD);Q4.prototype.resolveCommand=function(){return _.n(function(X){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.W$(X)})};var IF=function(){};
_.S(IF,yD);IF.prototype.resolveCommand=function(){var X;return _.n(function(t){if(t.nextAddress==1)return t.yield(_.a40(window.document.documentElement),2);(X=document.querySelector("mini-app-container-view-model iframe"))&&X.focus();_.W$(t)})};var WA=function(X){this.JSC$17353_navigationConfirmationService=X};
_.S(WA,yD);
WA.prototype.resolveCommand=function(){var X=this;return _.n(function(t){var G=X.JSC$17353_navigationConfirmationService,y=_.gw().resolve(_.U2),w;if(((w=G.navigateParams)==null?void 0:w.data)!==void 0){var z;_.nR4(y,G.navigateParams.endpoint,G.navigateParams.data,(z=G.navigateParams.navigationType)!=null?z:1,G.navigateParams.tempData,G.navigateParams.isMiniplayer,void 0,!0);G.navigateParams=void 0;G.customConfirmationCommand=void 0}else G.navigateParams&&(y.navigate(G.navigateParams.endpoint,G.navigateParams.reload,
G.navigateParams.params,G.navigateParams.tempData,G.navigateParams.requestType,G.navigateParams.createScreenConfig,!0),G.navigateParams=void 0,G.customConfirmationCommand=void 0);_.W$(t)})};
WA[gA]=[WV];var cA=function(){};
_.S(cA,yD);cA.prototype.resolveCommand=function(){return _.n(function(X){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.W$(X)})};var pw=function(X){this.JSC$17358_prefStorage=X};
_.S(pw,yD);pw.prototype.resolveCommand=function(){var X=this,t,G;return _.n(function(y){switch(y.nextAddress){case 1:return y.yield(X.JSC$17358_prefStorage,2);case 2:return(t=y.yieldResult)?y.yield(t.set("sfvle",!1),3):y.return();case 3:return y.yield(t.set("sfvles",!0),4);case 4:G=_.cP(),_.pq(0,203,!1),_.pq(0,204,!0),G.save(),_.W$(y)}})};
pw[gA]=[Dg];var rW=function(X){this.JSC$17361_prefStorage=X};
_.S(rW,yD);rW.prototype.resolveCommand=function(){var X=this,t,G;return _.n(function(y){switch(y.nextAddress){case 1:return y.yield(X.JSC$17361_prefStorage,2);case 2:return(t=y.yieldResult)?y.yield(t.set("sfvle",!0),3):y.return();case 3:return y.yield(t.set("sfvles",!0),4);case 4:G=_.cP(),_.pq(0,203,!0),_.pq(0,204,!0),G.save(),_.W$(y)}})};
rW[gA]=[Dg];_.dwT=new _.FB("SNACKBAR_CONTROLLER_TOKEN");_.eG2=new _.FB("SHOULD_SHOW_PIVOT_BAR_TOKEN");var N$=function(X){this.controller=X};
_.S(N$,yD);N$.prototype.resolveCommand=function(X){var t=this,G;return _.n(function(y){G=_.Y(X,S2B);if(!G)return y.return();var w=t.controller;w.closeSnackbarFn&&w.closeSnackbarFn();_.W$(y)})};
N$[gA]=[_.dwT];var PA=function(X,t){this.controller=X;this.sheetController=t};
_.S(PA,yD);PA.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b;return _.n(function(e){y=_.Y(X,Zu4);if(!y)return e.return();B=oJq(G.sheetController,(w=t)==null?void 0:(z=w.form)==null?void 0:z.element);V=_.Y(y.content,E6q);if(!V)return e.return();var g=G.controller,F=V,T=(b=y.animationStyle)!=null?b:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(g.showSnackbarFn)g.showSnackbarFn({snackbarViewModel:F,animationStyle:T,durationMs:y.durationSeconds*1E3,target:B});else throw Error("lj");_.W$(e)})};
PA[gA]=[_.dwT,_.RJ];var Ev=function(){};
_.S(Ev,yD);Ev.prototype.resolveCommand=function(X){var t;return _.n(function(G){t=_.Y(X,JJP);if(!t||typeof t.key!=="string"||typeof t.value!=="string")return G.return();window.localStorage.setItem(t.key,t.value);_.W$(G)})};var Uv=function(X){this.store=X};
_.S(Uv,yD);Uv.prototype.resolveCommand=function(X){var t=this,G;return _.n(function(y){G=_.Y(X,GNv);if(!G||!G.stepId||!G.token)return y.return();t.store.dispatch(oM4({stepId:G.stepId,token:G.token,isSelected:!1}));_.W$(y)})};
Uv[gA]=[Wb];var ms=function(X,t,G){this.innertubeTransportService=X;this.store=t;this.JSC$17380_screenManager=G};
_.S(ms,yD);
ms.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L,x,w6,BY;return _.n(function(kJ){G=_.Y(X,G$R);if(!G||(y=G.stepIds)==null||!y.length)return kJ.return();w=t.store.getState().talkToRecs;z=[];B=[];V=_.J(G.stepIds);for(b=V.next();!b.done;b=V.next())for(e=b.value,g=void 0,(F=(g=w.stepStates[e])==null?void 0:g.userQuery)&&B.push({userQuery:F.userQuery,userQueryToken:F.token}),T=void 0,D=(T=w.stepStates[e])==null?void 0:T.selectionStates,h=_.J(Object.entries(D)),u=
h.next();!u.done;u=h.next())W=u.value,c=_.J(W),P=c.next().value,l=c.next().value,R=P,L=l,L.isSelected&&z.push(R);x={selectedChipTokens:z,userQueries:B,submittedStepIds:G.stepIds};w6={browseTalk2recsFormData:x};G.browseEndpoint?(BY=X,_.Xx(BY,_.pp,G.browseEndpoint)):G.command&&(BY=G.command);return BY?kJ.yield(_.kW(t.innertubeTransportService,BY,{formData:w6,disableCache:!0}).then(function(Ss){(Ss==null?0:Ss.trackingParams)&&t.JSC$17380_screenManager.graftServerVe(Ss==null?void 0:Ss.trackingParams)}),
0):kJ.return()})};
ms[gA]=[_.Mr,Wb,_.iR];var RF=function(X){this.store=X};
_.S(RF,yD);RF.prototype.resolveCommand=function(X){var t=this,G;return _.n(function(y){G=_.Y(X,tvA);if(!G||!G.stepId||!G.token)return y.return();t.store.dispatch(oM4({stepId:G.stepId,token:G.token,isSelected:!0}));_.W$(y)})};
RF[gA]=[Wb];var ic=function(X){this.store=X};
_.S(ic,yD);ic.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V;return _.n(function(b){y=_.Y(X,yyJ);if(!y||!y.stepId||!y.userQueryToken)return b.return();V=(B=(w=t)==null?void 0:(z=w.form)==null?void 0:z.userQuery)!=null?B:"";G.store.dispatch(_.Dl({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:y.stepId,userQueryToken:y.userQueryToken,userQuery:V}}));_.W$(b)})};
ic[gA]=[Wb];_.jVH=new _.FB("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Lw=function(X){this.controller=X};
_.S(Lw,yD);Lw.prototype.resolveCommand=function(X){var t=this,G,y,w,z;return _.n(function(B){G=_.Y(X,Pyq);if(!G)return B.return();y=G;w=y.id;z=y.isVisible;if(w===void 0||z===void 0)return B.return();var V;(V=t.controller.timelyActionsMap.get(w))==null||V(w,z);_.W$(B)})};
Lw[gA]=[_.jVH];var gJH=function(){this.timelyActionsMap=new Map};var vA=function(X){this.JSC$17407_commandHandler=X};
_.S(vA,yD);vA.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B;return _.n(function(V){G=_.Y(X,_.PM);if(!G)return V.return();z=(y=G.item)==null?void 0:(w=y.notificationTextRenderer)==null?void 0:w.successResponseText;if(!z)return V.return();B=_.jl(z);t.JSC$17407_commandHandler.resolveCommand(B);_.W$(V)})};
vA[gA]=[_.F3];var aF=function(X,t){this.innertubeTransportService=X;this.JSC$17412_playerApiPromise=t};
_.S(aF,yD);
aF.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V,b,e,g;return _.n(function(F){if(F.nextAddress==1)return F.yield(t.JSC$17412_playerApiPromise,2);G=F.yieldResult;y=G.getOption("captions","track");w=Object.assign({},_.Y(X,_.Kpq));(B=(z=G.getVideoData())==null?void 0:z.video_id)?w.externalVideoId=B:_.yQ(Error("Di"));if((V=y)==null?0:V.languageCode)w.languageCode=y.languageCode;if((b=y)==null?0:b.kind)w.kind=y.kind;if((e=y)==null?0:e.name)w.name=y.name;g=Object.assign({},X,{getTranscriptEndpoint:w});return F.yield(_.kW(t.innertubeTransportService,
g),0)})};
aF[gA]=[_.Mr,_.q7];var lc=function(){};
_.S(lc,yD);lc.prototype.resolveCommand=function(X){var t,G,y,w,z,B,V,b;return _.n(function(e){t=_.Y(X,gPJ);if((G=t)==null||!G.paramKeyValuePairs)return e.return();y=window.location.href;w=_.J(t.paramKeyValuePairs);for(z=w.next();!z.done;z=w.next())B=z.value,B.key&&B.value&&(V={},y=_.Bx(y,(V[B.key]=B.value,V)));b=_.gw().resolve(_.ua);_.OI(b,y);_.W$(e)})};var xf=function(X,t){this.JSC$17419_commandHandler=X;this.innertubeTransportService=t};
_.S(xf,yD);
xf.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l;return _.n(function(R){switch(R.nextAddress){case 1:return(z=(y=t)==null?void 0:(w=y.form)==null?void 0:w.element)&&_.Ha(z),B=_.cP().get("hl"),V="",_.CL(R,2),R.yield(mp0(B),4);case 4:V=R.yieldResult;_.zx(R,3);break;case 2:return _.IY(R),z&&_.oA(z),_.xA(Error("Fi"),"ERROR"),R.return();case 3:b=_.Y(X,d44);if(!b)return z&&_.oA(z),R.return();(F=(e=b.commerceActionConfig)==null?void 0:(g=e.commandLifeCycleConfig)==null?
void 0:g.onStartCommand)&&G.JSC$17419_commandHandler.resolveCommand(F);return R.yield(_.kW(G.innertubeTransportService,X,{client_data:{paymentsClientToken:{token:V}}}),5);case 5:(T=R.yieldResult)?(z&&_.oA(z),((W=T)==null?0:W.command)&&G.JSC$17419_commandHandler.resolveCommand(T.command),(l=(c=b.commerceActionConfig)==null?void 0:(P=c.commandLifeCycleConfig)==null?void 0:P.onSuccessCommand)&&G.JSC$17419_commandHandler.resolveCommand(l)):(z&&_.oA(z),_.xA(Error("Gi")),(u=(D=b.commerceActionConfig)==
null?void 0:(h=D.commandLifeCycleConfig)==null?void 0:h.onFailureCommand)&&G.JSC$17419_commandHandler.resolveCommand(u)),_.W$(R)}})};
xf[gA]=[_.F3,_.Mr];var fw=function(X,t,G){this.store=X;this.JSC$17435_commandHandler=t;this.innertubeTransportService=G};
_.S(fw,yD);
fw.prototype.resolveCommand=function(X,t){var G=this,y,w,z,B,V,b,e,g,F;return _.n(function(T){y=_.Y(X,eoP);w=y.googlePaymentPayload;y.onStartCommand&&G.JSC$17435_commandHandler.resolveCommand(y.onStartCommand);z=w.encryptedPurchaseParams;B=w.ypcLogWalletAnalyticDataEndpoint;V=y.serializedTransactionFlowLoggingParams;b=w.serializedPaymentsClientParams;e=y.ypcCujContext;F=Lc_(G.innertubeTransportService,(g=t)==null?void 0:g.form,z,B,V,b,e);return T.return(F.then(function(D){RJV(t==null?void 0:t.form,
!1);var h=G.store,u=G.JSC$17435_commandHandler,W=D.integratorData;W==null||W===""||D.error!=null?(String(D.error)==="-1"&&y.onDismissCommand?u.resolveCommand(y.onDismissCommand):String(D.error)!=="-1"&&y.onFailureCommand&&u.resolveCommand(y.onFailureCommand),String(D.error)!=="-1"&&String(D.error)!=="132"&&_.xA(Error("Hi"),"ERROR")):(y.googlePaymentEntityKey&&h.dispatch(_.EW("commerceAcquisitionClientPayloadEntity",y.googlePaymentEntityKey,{key:y.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:W,
fundsGuaranteeCallbackClientData:D.integratorClientCallbackData}}})),y.onSuccessCommand&&u.resolveCommand(y.onSuccessCommand));_.qY()},function(D){RJV(t==null?void 0:t.form,!1);
_.xA(D,"ERROR");y.onFailureCommand&&G.JSC$17435_commandHandler.resolveCommand(y.onFailureCommand)}))})};
fw[gA]=[Dw,_.F3,_.Mr];var M$=function(X,t){this.JSC$17439_commandHandler=X;this.purchaseManager=t};
_.S(M$,yD);
M$.prototype.resolveCommand=function(X){var t=this,G,y,w,z,B,V,b,e,g;return _.n(function(F){G=_.Y(X,j3o);((y=G)==null?0:(w=y.commandLifeCycleConfig)==null?0:w.onStartCommand)&&t.JSC$17439_commandHandler.resolveCommand(G.commandLifeCycleConfig.onStartCommand);if(!((z=G)==null?0:(B=z.googlePaymentPurchaseManagerPayload)==null?0:B.securePayloadBytes))return _.xA(Error("Ii"),"ERROR"),F.return();V=TV4(_.BS(G.googlePaymentPurchaseManagerPayload.securePayloadBytes));b=_.cP().get("hl");e=_.d5();A5J(V.serialize(),
b,function(T){e.resolve(T)},function(T){e.reject(T)},e.resolve);
g=e.promise;return F.return(g.then(function(T){if(T)if(T==null?0:T.errorCode){_.xA(Error("Ji`"+T.errorCode),"ERROR");var D,h;((D=G)==null?0:(h=D.commandLifeCycleConfig)==null?0:h.onFailureCommand)&&t.JSC$17439_commandHandler.resolveCommand(G.commandLifeCycleConfig.onFailureCommand)}else if(T==null?0:T.isCancelled){var u,W;((u=G)==null?0:(W=u.commandLifeCycleConfig)==null?0:W.onCancelCommand)&&t.JSC$17439_commandHandler.resolveCommand(G.commandLifeCycleConfig.onCancelCommand)}else{var c,P;((c=G)==
null?0:(P=c.commandLifeCycleConfig)==null?0:P.onSuccessCommand)&&t.JSC$17439_commandHandler.resolveCommand(G.commandLifeCycleConfig.onSuccessCommand)}},function(T){_.xA(T,"ERROR");
var D,h;((D=G)==null?0:(h=D.commandLifeCycleConfig)==null?0:h.onFailureCommand)&&t.JSC$17439_commandHandler.resolveCommand(G.commandLifeCycleConfig.onFailureCommand)}))})};
M$[gA]=[_.F3,YXe];var FE4=function(X,t){this.JSC$17447_commandHandler=X;this.commandAllowlistOverride=t;var G;this.commandAllowlist=(G=this.commandAllowlistOverride)!=null?G:ee};
FE4.prototype.handleResponse=function(X,t,G){var y,w=t==null?void 0:(y=t.config)==null?void 0:y.command;if(!w||this.commandAllowlist.some(function(z){return!!_.Y(w,z)})){t=void 0;
G!==void 0&&(t={form:{element:G}});X.onResponseReceivedCommand&&this.JSC$17447_commandHandler.resolveCommand(X.onResponseReceivedCommand,t);X.onResponseReceivedAction&&this.JSC$17447_commandHandler.resolveCommand(X.onResponseReceivedAction,t);X.onResponseReceivedEndpoint&&this.JSC$17447_commandHandler.resolveCommand(X.onResponseReceivedEndpoint,t);X.command&&this.JSC$17447_commandHandler.resolveCommand(X.command,t);if(X.onResponseReceivedCommands)for(G=_.J(X.onResponseReceivedCommands),y=G.next();!y.done;y=
G.next())this.JSC$17447_commandHandler.resolveCommand(y.value,t);if(X.onResponseReceivedActions)for(G=_.J(X.onResponseReceivedActions),y=G.next();!y.done;y=G.next())this.JSC$17447_commandHandler.resolveCommand(y.value,t);if(X.onResponseReceivedEndpoints)for(G=_.J(X.onResponseReceivedEndpoints),y=G.next();!y.done;y=G.next())this.JSC$17447_commandHandler.resolveCommand(y.value,t);if(X.actions)for(X=_.J(X.actions),G=X.next();!G.done;G=X.next())this.JSC$17447_commandHandler.resolveCommand(G.value,t)}};
FE4[gA]=[_.F3,_.jH(T8v)];var T6H=new _.FB("INNERTUBE_TOKEN_SERVICE");var AAa=new _.FB("SCHEDULER_TOKEN");var YhR=function(X){this.scheduler=X;X={};this.tokenMap=(X.app={},X.user={},X)};
YhR.prototype.handleResponse=function(X,t){if(!t)throw Error("Ki");var G;if(X=(G=X.responseContext)==null?void 0:G.innertubeTokenJar){if(X.appTokens){var y,w,z;G=(y=t.innerTubeRequest.context)==null?void 0:(w=y.request)==null?void 0:(z=w.innertubeTokenJar)==null?void 0:z.appTokens;sV4(this,X.appTokens,this.tokenMap.app,G)}if(X.userTokens){var B,V,b;t=(B=t.innerTubeRequest.context)==null?void 0:(V=B.request)==null?void 0:(b=V.innertubeTokenJar)==null?void 0:b.userTokens;sV4(this,X.userTokens,this.tokenMap.user,
t)}}};
YhR.prototype.processContext=function(X){X.request||(X.request={});var t=Object.keys(this.tokenMap.app).length,G=Object.keys(this.tokenMap.user).length;if(t||G)X.request.innertubeTokenJar={},t&&(X.request.innertubeTokenJar.appTokens=[].concat(_.RY(Object.values(this.tokenMap.app).flat()))),G&&(X.request.innertubeTokenJar.userTokens=[].concat(_.RY(Object.values(this.tokenMap.user).flat())))};
var sV4=function(X,t,G,y){t=_.J(t);for(var w=t.next(),z={};!w.done;z={token$jscomp$138:void 0},w=t.next()){z.token$jscomp$138=w.value;if(z.token$jscomp$138.type===void 0)throw new _.NJ("InnerTube token has no type",z.token$jscomp$138);if(z.token$jscomp$138.clearTokens)G[z.token$jscomp$138.type]=[];else if(z.token$jscomp$138.value!==void 0){G[z.token$jscomp$138.type]||(G[z.token$jscomp$138.type]=[]);if(y!==void 0&&y.length){w=_.J(y);for(var B=w.next(),V={};!B.done;V={requestToken:void 0},B=w.next())V.requestToken=
B.value,B=G[z.token$jscomp$138.type].findIndex(function(b){return function(e){return e===b.requestToken||(0,_.RH.equals)(e,b.requestToken)}}(V)),B>-1&&G[z.token$jscomp$138.type].splice(B,1)}G[z.token$jscomp$138.type].push(z.token$jscomp$138);
z.token$jscomp$138.maxAgeSeconds&&Number(z.token$jscomp$138.maxAgeSeconds)>0&&X.scheduler.addLowPriorityJob(function(b){return function(){var e=G[b.token$jscomp$138.type].indexOf(b.token$jscomp$138);e>-1&&G[b.token$jscomp$138.type].splice(e,1)}}(z),Number(z.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.NJ("InnerTube token has no value",z.token$jscomp$138);
}};
YhR[gA]=[AAa];var Dwq=new _.FB("LOCAL_INNERTUBE_ROUTER_TOKEN"),Shq=new _.FB("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var XZ=function(X){this.serviceMap=X};
XZ.prototype.shouldPreferLocalResponse=function(X,t){return(X=hGR(this,X))?X.shouldPreferLocalResponse(t):!1};
XZ.prototype.localInnertubeResponse=function(X,t){var G=this,y;return _.n(function(w){return(y=hGR(G,X))?w.return(y.localInnertubeResponse(t)):w.return(Promise.reject(Error("Li")))})};
XZ.prototype.canProvideFallbackResponse=function(X,t){return(X=hGR(this,X))?X.canProvideFallbackResponse(t):!1};
XZ.prototype.localFallbackInnertubeResponse=function(X,t){var G=this,y;return _.n(function(w){return(y=hGR(G,X))?w.return(y.localFallbackInnertubeResponse(t)):w.return(Promise.reject(Error("Li")))})};
var hGR=function(X,t){t=_.qJ(t);return t?(X=X.serviceMap[t])?X:null:null};
XZ[gA]=[Shq];var U5=function(){};
U5.prototype.shouldPreferLocalResponse=function(){return!1};
U5.prototype.localInnertubeResponse=function(){return _.n(function(X){return X.return(Promise.reject(Error("Mi")))})};
U5.prototype.canProvideFallbackResponse=function(){return!0};
U5.prototype.localFallbackInnertubeResponse=function(){var X,t,G;return _.n(function(y){X=Ue("CLOSE_POPUP");t={openPopupAction:aKs()};G={actions:[X,t]};return y.return(G)})};var LH6=function(X,t){this.JSC$17497_upliftPromise=X;this.store=t};
_.H=LH6.prototype;_.H.shouldPreferLocalResponse=function(X){var t=X.videoId,G;if(G=t)G=cZE(this.store.getState().entities,X.videoId);return G&&pMl(this.store.getState().entities,t)?xph(this.store.getState().entities,X.playlistId):!1};
_.H.localInnertubeResponse=function(X){var t=this,G;return _.n(function(y){return(G=t.getPlayerResponse(X))?y.return(Promise.resolve(G)):y.return(Promise.reject(Error("Ni")))})};
_.H.canProvideFallbackResponse=function(X){return!!X.videoId};
_.H.localFallbackInnertubeResponse=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(t.JSC$17497_upliftPromise,2);G=t.getPlayerResponse(X);var w;G?w=y.return(Promise.resolve(G)):w=UG(t.store.getState().entities,X.videoId)?y.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Ag(_.Qf("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:J$s()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
y.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Ag(_.Qf("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:ozG()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return w})};
_.H.getPlayerResponse=function(X){return BzA(this.store.getState().entities,X.videoId)};var E5=function(X,t){this.localPlayerService=X;this.localWatchNextService=t};
E5.prototype.shouldPreferLocalResponse=function(X){var t=X.playerRequest;X=X.watchNextRequest;return!!(t&&this.localPlayerService.shouldPreferLocalResponse(t)&&X&&this.localWatchNextService.shouldPreferLocalResponse(X))};
E5.prototype.localInnertubeResponse=function(X){var t=this,G,y,w,z;return _.n(function(B){if(B.nextAddress==1){G=X.playerRequest;y=X.watchNextRequest;if(!G||!y)throw new _.NJ("Missing streaming request",X);return B.yield(t.localPlayerService.localInnertubeResponse(G),2)}if(B.nextAddress!=3)return w=B.yieldResult,B.yield(t.localWatchNextService.localInnertubeResponse(y),3);z=B.yieldResult;return B.return({playerResponse:w,watchNextResponse:z})})};
E5.prototype.canProvideFallbackResponse=function(X){var t=X.playerRequest;X=X.watchNextRequest;return!!(t&&this.localPlayerService.canProvideFallbackResponse(t)&&X&&this.localWatchNextService.canProvideFallbackResponse(X))};
E5.prototype.localFallbackInnertubeResponse=function(X){var t=this,G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return G=X.playerRequest,y=X.watchNextRequest,G&&y?B.yield(t.localPlayerService.localFallbackInnertubeResponse(G),2):B.return(Promise.reject(new _.NJ("Missing streaming request",X)));if(B.nextAddress!=3)return w=B.yieldResult,B.yield(t.localWatchNextService.localFallbackInnertubeResponse(y),3);z=B.yieldResult;return B.return({playerResponse:w,watchNextResponse:z})})};var rP=function(X){this.JSC$17507_persistentStorePromiseAccessor=X};
rP.prototype.shouldPreferLocalResponse=function(){return!1};
rP.prototype.localInnertubeResponse=function(){return _.n(function(X){return X.return(Promise.reject(Error("Oi")))})};
rP.prototype.canProvideFallbackResponse=function(){return!0};
rP.prototype.localFallbackInnertubeResponse=function(){var X=this,t,G;return _.n(function(y){return y.nextAddress==1?y.yield(X.JSC$17507_persistentStorePromiseAccessor(),2):y.nextAddress!=3?(t=y.yieldResult)?y.yield(t.get("service:guide:fallback"),3):y.return(Promise.reject(Error("Pi"))):(G=y.yieldResult)&&_.Yl(G)?y.return(fKw(_.Yl(G))):y.return(Promise.reject(Error("Qi")))})};var mh=function(){};
mh.prototype.shouldPreferLocalResponse=function(){return!1};
mh.prototype.localInnertubeResponse=function(){return _.n(function(X){return X.return(Promise.reject(Error("Ri")))})};
mh.prototype.canProvideFallbackResponse=function(){return!0};
mh.prototype.localFallbackInnertubeResponse=function(){var X,t,G;return _.n(function(y){X=Ue("CLOSE_POPUP");t={openPopupAction:aKs()};G={actions:[X,t]};return y.return(G)})};var pV=function(){this.urlMap=Z_N;this.fallbackCommand=_.pc};
pV.prototype.shouldPreferLocalResponse=function(X){return(X=X.url)?!!qha(this,X):!1};
pV.prototype.localInnertubeResponse=function(X){var t=this,G;return _.n(function(y){return(G=X.url)?y.return(ClH(X,qha(t,G))):y.return(Promise.reject(Error("Si")))})};
pV.prototype.canProvideFallbackResponse=function(){return!0};
pV.prototype.localFallbackInnertubeResponse=function(X){var t=this,G,y,w,z,B,V,b;return _.n(function(e){G=X.url;if(!G)return e.return(ClH(X,t.fallbackCommand));if(y=qha(t,G))return e.return(ClH(X,y));w=void 0;z=_.qJ(G);z==="/watch"&&(B=_.XO(G,"v"))&&(b=(V=_.XO(G,"list"))!=null?V:void 0,w=_.TG(B,b));w||(w=t.fallbackCommand);return e.return(ClH(X,w))})};
var qha=function(X,t){if(t)return X.urlMap[_.wk(t)]},ClH=function(X,t){t&&X.parentTrackingParams&&(t.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:X.parentTrackingParams}},t.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:t})};var NM=function(X,t,G){this.JSC$17517_upliftPromise=X;this.store=t;this.JSC$17517_persistentStorePromiseAccessor=G};
NM.prototype.shouldPreferLocalResponse=function(){return!1};
NM.prototype.localInnertubeResponse=function(){return _.n(function(X){return X.return(Promise.reject(Error("Ti")))})};
NM.prototype.canProvideFallbackResponse=function(){return!0};
NM.prototype.localFallbackInnertubeResponse=function(){var X=this;return _.n(function(t){return t.return(KEH(X))})};
var KEH=function(X){var t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(Ai(X.JSC$17517_upliftPromise,X.store),2);t=y.yieldResult;G={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[lK6(t)]}}}};return y.return(O_i(X,G))})},O_i=function(X,t){var G,y;
return _.n(function(w){if(w.nextAddress==1)return w.yield(X.JSC$17517_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return G=w.yieldResult,w.yield(s5(G),3);y=w.yieldResult;return w.return({responseContext:{},contents:t,topbar:y})})};var Wa=function(X,t,G){this.JSC$17524_upliftPromise=X;this.store=t;this.JSC$17524_persistentStorePromiseAccessor=G};
Wa.prototype.shouldPreferLocalResponse=function(X){var t=X.videoId;return t&&cZE(this.store.getState().entities,t)&&pMl(this.store.getState().entities,t)?xph(this.store.getState().entities,X.playlistId):!1};
Wa.prototype.localInnertubeResponse=function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1)return(G=X.videoId)?w.yield(t.JSC$17524_upliftPromise,2):w.return(Promise.reject(Error("Ui")));if(w.nextAddress!=3)return w.yield(uvv(t,X,G),3);y=w.yieldResult;return w.return(QVH(t,y,G))})};
Wa.prototype.canProvideFallbackResponse=function(X){return X.videoId?!0:!1};
Wa.prototype.localFallbackInnertubeResponse=function(X){var t=this,G,y,w,z;return _.n(function(B){switch(B.nextAddress){case 1:return(G=X.videoId)?B.yield(t.JSC$17524_upliftPromise,2):B.return(Promise.reject(Error("Ui")));case 2:return B.yield(uvv(t,X,G),3);case 3:y=B.yieldResult;if(UG(t.store.getState().entities,G)){B.jumpTo(4);break}return B.yield(Ai(t.JSC$17524_upliftPromise,t.store),5);case 5:return w=B.yieldResult,B.return(Ifq(y,w));case 4:return cZE(t.store.getState().entities,G)&&pMl(t.store.getState().entities,
G)?B.return(QVH(t,y,G)):(z={title:_.Ag(_.Qf("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:J$s()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},B.return(Ifq(y,z)))}})};
var uvv=function(X,t,G){var y,w,z,B,V;return _.n(function(b){if(b.nextAddress==1)return y=t.playlistId,w=_.TG(G,y),b.yield(X.JSC$17524_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return z=b.yieldResult,b.yield(s5(z),3);B=b.yieldResult;V={responseContext:{},currentVideoEndpoint:w,topbar:B};return b.return(V)})},QVH=function(X,t,G){if(X=UG(X.store.getState().entities,G)){var y;
G=X.videoEntity;var w,z={title:Y0(G.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.sG((y=G.localizedStrings)==null?void 0:y.viewCount),viewCount:_.sG((w=G.localizedStrings)==null?void 0:w.viewCount)}}};G.publishedTimestampMillis&&(z.dateText=_.sG(MOw(new Date(Number(G.publishedTimestampMillis)))));y={videoPrimaryInfoRenderer:z};w=X.videoEntity;X=X.channelEntity;X={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Y0(_.Qf("SHOW_MORE",void 0,"Show more")),
showLessText:Y0(_.Qf("SHOW_LESS",void 0,"Show less")),description:w.formattedDescription,owner:{videoOwnerRenderer:{title:Y0(X.title),thumbnail:X.avatar}}}};t.contents={twoColumnWatchNextResults:{results:{results:{contents:[y,X]}}}}}return t},Ifq=function(X,t){X.contents={singleColumnWatchNextResults:{results:{results:{contents:[lK6(t)]}}}};
return X};var Pa=function(X,t,G){this.JSC$17529_upliftPromise=X;this.store=t;this.JSC$17529_persistentStorePromiseAccessor=G};
Pa.prototype.shouldPreferLocalResponse=function(){return!1};
Pa.prototype.localInnertubeResponse=function(){return _.n(function(X){return X.return(Promise.reject(Error("Vi")))})};
Pa.prototype.canProvideFallbackResponse=function(){return!0};
Pa.prototype.localFallbackInnertubeResponse=function(){var X=this,t,G,y,w;return _.n(function(z){switch(z.nextAddress){case 1:return z.yield(X.JSC$17529_persistentStorePromiseAccessor(),2);case 2:return t=z.yieldResult,z.yield(s5(t),3);case 3:return G=z.yieldResult,y={responseContext:{},topbar:G},z.yield(X.JSC$17529_upliftPromise,4);case 4:return z.yield(Ai(X.JSC$17529_upliftPromise,X.store),5);case 5:return w=z.yieldResult,y.watchStatus={backgroundPromoRenderer:w},z.return(y)}})};var WER=new _.FB("ENDPOINT_MAP");var cAq=function(){var X=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return X.sequenceMap}}},HwB=function(X,t,G){var y,w=(y=t.config)==null?void 0:y.sequenceStrategy;
if(!w)return G();X.sequenceMap.has(w.sequenceKey)||X.sequenceMap.set(w.sequenceKey,[]);X=X.sequenceMap.get(w.sequenceKey);switch(w.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return pY4(X,t,G);case "REQUEST_SEQUENCE_TYPE_REPLACE":return rAr(X,t,G);default:throw new _.NJ("Request could not be sequenced",t);}},pY4=function(X,t,G){var y,w,z;
return _.n(function(B){X.length>0?(w=X[X.length-1],y=w.responsePromise.then(function(){return G()})):y=G();
z={request:t,responsePromise:y};X.push(z);N6R(X,z);return B.return(z.responsePromise)})},rAr=function(X,t,G){G=G();
if(X.length>0)for(var y=_.J(X),w=y.next();!w.done;w=y.next())w.value.responsePromise=G;var z={request:t,responsePromise:G};X.push(z);N6R(X,z);return Promise.resolve().then(function(){return X.indexOf(z)>0?z.responsePromise.then(function(B){return Object.assign({},B,{sequenceMetaData:{skipProcessing:!0}})}):z.responsePromise})},N6R=function(X,t){t.responsePromise.then(function(){var G=X.indexOf(t);
G>-1&&X.splice(G,1)})};var Plr=new _.FB("REQUEST_SEQUENCING");var $O=function(){};
_.S($O,Cu);$O.prototype.getApiPaths=function(){return[]};
$O.prototype.getExtension=function(X){return _.Y(X,smJ)};
$O.prototype.JSC$12977_buildRequest=function(X,t){X.recaptchaToken=t.recaptchaToken};
$O.prototype.getApiUrl=function(){return"/das_captcha"};var th=function(){};
_.S(th,Cu);th.prototype.getApiPaths=function(){return bre};
th.prototype.getExtension=function(X){return _.Y(X,fFz)};
th.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.createBackstagePostParams&&(X.createBackstagePostParams=t.createBackstagePostParams);G.comment_text&&(X.commentText=G.comment_text);if(G.attached_video_id)X.videoAttachment={videoId:G.attached_video_id};else if(G.image_poll_options)X.pollAttachmentData={options:G.image_poll_options};else if(G.poll_options)X.pollAttachment={choices:G.poll_options};else if(G.quiz_options)X.quizAttachmentData={options:G.quiz_options};else if(G.image_blob_id)X.imageAttachment=
{encryptedBlobId:G.image_blob_id},G.source_video_id&&(X.imageAttachment.sourceExternalVideoId=G.source_video_id),G.image_preview_coordinates&&(X.imageAttachment.previewCoordinates=JSON.parse(G.image_preview_coordinates));else if(G.images_data)X.imagesAttachment={imagesData:G.images_data};else if(G.clip_external_video_id!==void 0||G.clip_offset_ms!==void 0||G.clip_duration_ms!==void 0){var y,w,z,B,V;X.clipAttachment={externalVideoId:(z=G.clip_external_video_id)!=null?z:"",offsetMs:(B=(y=G.clip_offset_ms)==
null?void 0:y.toString())!=null?B:"",durationMs:(V=(w=G.clip_duration_ms)==null?void 0:w.toString())!=null?V:""}}else G.shared_post_id&&(X.sharedPostAttachment={postId:G.shared_post_id});G.tagged_video_id&&(X.postCreationData={taggedVideoId:G.tagged_video_id});G.access_restrictions&&(typeof G.access_restrictions==="number"&&(t=G.access_restrictions,X.accessRestrictions={restriction:t!==1&&t===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof G.access_restrictions==="string"&&
(X.accessRestrictionsParams=G.access_restrictions));G.scheduled_publish_time_sec&&(X.scheduledPublishTimeSec=G.scheduled_publish_time_sec.toString())};var GE=function(){};
_.S(GE,Cu);GE.prototype.getApiPaths=function(){return TQe};
GE.prototype.getExtension=function(X){return _.Y(X,kQq)};
GE.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.decorateMessageParams&&(X.params=t.decorateMessageParams);G.text&&(X.text=G.text)};var yk=function(){};
_.S(yk,Cu);yk.prototype.getApiPaths=function(){return PVq};
yk.prototype.getExtension=function(X){return _.Y(X,MUz)};
yk.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;G.video_id&&(X.videoId=G.video_id)};var we=function(){};
_.S(we,Cu);we.prototype.getApiPaths=function(){return irY};
we.prototype.getExtension=function(X){return _.Y(X,_.Ol)};
we.prototype.JSC$12977_buildRequest=function(X,t,G){G.suggestions_query&&(X.input=G.suggestions_query)};var zE=function(){};
_.S(zE,Cu);zE.prototype.getApiPaths=function(){return SIS};
zE.prototype.getExtension=function(X){return _.Y(X,X6e)};
zE.prototype.JSC$12977_buildRequest=function(X,t,G){G.comment_text!==void 0&&(X.commentText=G.comment_text);G.scheduled_publish_time_sec&&(X.scheduledPublishTimeSec=G.scheduled_publish_time_sec.toString());X.updateBackstagePostParams=t.updateBackstagePostParams};var Hi=function(){};
_.S(Hi,Cu);Hi.prototype.getApiPaths=function(){return dP};
Hi.prototype.getExtension=function(X){return _.Y(X,_.Hk)};
Hi.prototype.JSC$12977_buildRequest=function(X,t,G){G.formData&&(X.formData=G.formData);t.token?X.continuation=t.token:t.continuationTokenKey&&(G=_.dV().getState(),t=_.Kg(G.entities,"continuationTokenEntity",t.continuationTokenKey))&&(X.continuation=String(t.continuationToken))};
var EJv=function(){};
_.S(EJv,Cu);_.H=EJv.prototype;_.H.getApiPaths=function(){return dP};
_.H.getExtension=function(X){return _.Y(X,_.pp)};
_.H.isNavigationCommand=function(){return!0};
_.H.JSC$12984_getStoreKey=function(X){if((X=this.getExtension(X))&&X.browseId){var t={browseId:X.browseId};X.browseEndpointContextSupportedConfigs&&(t.browseEndpointContextSupportedConfigs=JSON.stringify(X.browseEndpointContextSupportedConfigs));X.params&&(t.params=X.params);X.query&&(t.query=X.query);return _.BP("browse",t)}};
_.H.JSC$12977_buildRequest=function(X,t,G){t.browseId&&(X.browseId=t.browseId);t.params&&(X.params=t.params);t.query&&(X.query=t.query);G.formData?X.formData=G.formData:t.formData&&(X.formData=t.formData);t.browseId==="FEsubscriptions"&&_.cP().getFlag(155)&&(X.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");t.browseId==="SPaccount_playback"&&(G=_.cP(),X.formData||(X.formData={}),X.formData.accountSettingsFormData={flagCaptionsDefaultOff:G.getFlag(65),flagAutoCaptionsDefaultOn:G.getFlag(66),
flagDisableInlinePreview:G.getFlag(186),flagAudioDescriptionDefaultOn:G.getFlag(198)});if(t.browseId==="FEwhat_to_watch"){G=_.cP();var y=G.getFlag(196);G.getFlag(197)&&(X.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:y}}})}t.browseId==="FEwhat_to_watch"&&(t=_.cP().getFlag(186),X.inlineSettingStatus=t?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.H.getRequestConfig=function(X,t){t=t===void 0?{}:t;var G={};if(X=this.JSC$12984_getStoreKey(X,t))G.storeStrategy={storeKey:X,disableCache:t.disableCache};_.A("web_log_browse_ticks_ks")||(G.requestTick="br_s",G.responseTick="br_r");return G};var oe=function(){};
_.S(oe,Cu);oe.prototype.getApiPaths=function(){return HrR};
oe.prototype.getExtension=function(X){return _.Y(X,ZGS)};
oe.prototype.JSC$12977_buildRequest=function(X,t,G){X.legacyYoutubeChannelUsername=G.legacyYouTubeChannelUsername||"";X.legacyYoutubeChannelPassword=G.legacyYouTubeChannelPassword||""};var Jh=function(){};
_.S(Jh,Cu);Jh.prototype.getApiPaths=function(){return dEh};
Jh.prototype.getExtension=function(X){return _.Y(X,o9R)};
Jh.prototype.JSC$12977_buildRequest=function(X,t,G){G.recaptcha_response_token&&(X.recaptchaResponseToken=G.recaptcha_response_token);G.channel_id&&(X.channelId=G.channel_id)};var Bi=function(){};
_.S(Bi,Cu);Bi.prototype.getApiPaths=function(){return hkh};
Bi.prototype.getExtension=function(X){return _.Y(X,k$B)};
Bi.prototype.JSC$12977_buildRequest=function(X,t,G){t.externalChannelId&&(X.externalChannelId=t.externalChannelId);G.handle&&(X.handleUpdate={handle:G.handle},t.handleEditSource&&(X.handleUpdate.handleEditSource=t.handleEditSource))};var nx=function(){};
_.S(nx,Cu);nx.prototype.getApiPaths=function(){return KDP};
nx.prototype.getExtension=function(X){return _.Y(X,cyS)};
nx.prototype.JSC$12977_buildRequest=function(X,t,G){t.request&&(X.channelId=t.request.channelId);var y;if(G==null?0:(y=G.uploadDefaults)==null?0:y.emojiReactionSet)X.uploadDefaultsRequest||(X.uploadDefaultsRequest={}),X.uploadDefaultsRequest.emojiReactionSet=G.uploadDefaults.emojiReactionSet};var Vk=function(){};
_.S(Vk,Cu);Vk.prototype.getApiPaths=function(){return QJq};
Vk.prototype.getExtension=function(X){return _.Y(X,Jyz)};
Vk.prototype.JSC$12977_buildRequest=function(X,t,G){t.externalChannelId&&(X.externalChannelId=t.externalChannelId);t.channelHandleEntityKey&&(X.channelHandleEntityKey=t.channelHandleEntityKey);t.handleEditSource&&(X.handleEditSource=t.handleEditSource);G.handle?X.handle=G.handle:G.name&&(X.name=G.name)};var b5=function(){};
_.S(b5,Cu);b5.prototype.getApiPaths=function(){return BQq};
b5.prototype.getExtension=function(X){return _.Y(X,v_P)};
b5.prototype.JSC$12977_buildRequest=function(X,t){t.actions?X.actions=t.actions:t.action&&(X.actions=[t.action])};var kO=function(){};
_.S(kO,Cu);kO.prototype.getApiPaths=function(){return nQq};
kO.prototype.getExtension=function(X){return _.Y(X,_.Hk)};
kO.prototype.JSC$12977_buildRequest=function(X,t){t.token&&(X.continuation=t.token)};var de=function(){};
_.S(de,Cu);de.prototype.getApiPaths=function(){return rBo};
de.prototype.getExtension=function(X){return _.Y(X,_.Hk)};
de.prototype.JSC$12977_buildRequest=function(X,t){X.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";t.token&&(X.fetchCommentsParams={continuation:t.token})};var e5=function(){};
_.S(e5,Cu);e5.prototype.getApiPaths=function(){return ew4};
e5.prototype.getExtension=function(X){return _.Y(X,L2e)};
e5.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.createReplyParams&&(X.createReplyParams=t.createReplyParams);t.commentText&&(X.commentText=_.bu(t.commentText));G.comment_text&&(X.commentText=G.comment_text);G.image_blob_id&&(X.imageAttachment={encryptedBlobId:G.image_blob_id});G.botguard_response&&(X.botguardResponse=G.botguard_response)};
_.ke.Object.defineProperties(e5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var j5=function(){};
_.S(j5,Cu);j5.prototype.getApiPaths=function(){return jhe};
j5.prototype.getExtension=function(X){return _.Y(X,_.iez)};
j5.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.createCommentParams&&(X.createCommentParams=t.createCommentParams);t.commentText&&(X.commentText=_.bu(t.commentText));t.videoPositionMention&&(X.videoPositionMention=t.videoPositionMention);t.sources&&(X.sources=t.sources);G.comment_text&&(X.commentText=G.comment_text);G.attached_video_id?X.videoAttachment={videoId:G.attached_video_id}:G.poll_options?X.pollAttachment={choices:G.poll_options}:G.image_blob_id?X.imageAttachment=
{encryptedBlobId:G.image_blob_id}:G.shared_post_id&&(X.sharedPostAttachment={postId:G.shared_post_id});G.access_restrictions&&typeof G.access_restrictions==="number"&&(t=G.access_restrictions,X.accessRestrictions={restriction:t!==1&&t===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});G.botguard_response&&(X.botguardResponse=G.botguard_response)};
_.ke.Object.defineProperties(j5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ge=function(){};
_.S(ge,Cu);ge.prototype.getApiPaths=function(){return Z8P};
ge.prototype.getExtension=function(X){return _.Y(X,l9z)};
ge.prototype.JSC$12977_buildRequest=function(X,t,G){t.commentText&&(X.replyText=_.bu(t.commentText));G.comment_text&&(X.replyText=G.comment_text);X.updateReplyParams=t.updateReplyParams};
_.ke.Object.defineProperties(ge.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FZ=function(){};
_.S(FZ,Cu);FZ.prototype.getApiPaths=function(){return qIq};
FZ.prototype.getExtension=function(X){return _.Y(X,a9o)};
FZ.prototype.JSC$12977_buildRequest=function(X,t,G){t.commentText&&(X.commentText=_.bu(t.commentText));G.comment_text&&(X.commentText=G.comment_text);X.updateCommentParams=t.updateCommentParams};
_.ke.Object.defineProperties(FZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TE=function(){};
_.S(TE,Cu);TE.prototype.getApiPaths=function(){return CaY};
TE.prototype.getExtension=function(X){return _.Y(X,uA4)};
TE.prototype.JSC$12977_buildRequest=function(X,t){t.settings&&(X.settings=t.settings)};var Ah=function(){};
_.S(Ah,Cu);Ah.prototype.getApiPaths=function(){return OrJ};
Ah.prototype.getExtension=function(X){return _.Y(X,BYz)};
Ah.prototype.JSC$12977_buildRequest=function(X,t){t.channelCreationToken&&(X.channelCreationToken=t.channelCreationToken);t.source&&(X.source=t.source)};var YO=function(){};
_.S(YO,Cu);YO.prototype.getApiPaths=function(){return dZP};
YO.prototype.getExtension=function(X){return _.Y(X,bUY)};
YO.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;if(G.name&&(G.given_name||G.family_name))X=new _.NJ("channel creation cannot set both GAIA and YouTube names",t),_.xA(X);else{if(t.zeroStepChannelCreationParams){if(!G.comment_text){X=new _.NJ("zero_step_create_comment_params but no zero_step_texts",t);_.xA(X);return}X.zeroStepChannelCreationParams=t.zeroStepChannelCreationParams;X.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(X.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
G.comment_text,G.botguard_response&&(X.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=G.botguard_response))}X.channelCreationToken=t.channelCreationToken;G.given_name&&(X.givenName=G.given_name);G.family_name&&(X.familyName=G.family_name);t.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(X.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(G.name||G.handle||G.avatar_url||G.encryptedBlobId||G.isNameChanged!==void 0||G.isHandleChanged!==void 0||G.isDefaultProfilePhoto!==
void 0||G.obakeImageSource)X.overrideChannelCreationParams={},G.name&&(X.overrideChannelCreationParams.name=G.name),G.handle&&(X.overrideChannelCreationParams.handle=G.handle),G.avatar_url&&(X.overrideChannelCreationParams.avatarUrl=G.avatar_url),G.encryptedBlobId&&(X.overrideChannelCreationParams.blobEncryptionId=G.encryptedBlobId),G.enableIdentityForAllChannelCreationDialog&&(G.encryptedBlobId?X.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
G.isDefaultProfilePhoto!==void 0&&(X.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=G.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),G.isNameChanged!==void 0&&(X.overrideChannelCreationParams.identityForAllChannelCreationNameTag=G.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),G.isHandleChanged!==
void 0&&(X.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=G.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),G.obakeImageSource&&(X.overrideChannelCreationParams.obakeImageSourceType=G.obakeImageSource))}};var s7=function(){};
_.S(s7,Cu);s7.prototype.getApiPaths=function(X){return(X=this.getExtension(X))&&X.status==="DISLIKE"?DZq:X&&X.status==="INDIFFERENT"?Bb4:feB};
s7.prototype.getExtension=function(X){return _.Y(X,_.wP)};
s7.prototype.JSC$12977_buildRequest=function(X,t){t.target&&(X.target=t.target);if(t=this.getParams(t))X.params=t};
s7.prototype.getParams=function(X){switch(X==null?void 0:X.status){case "DISLIKE":return X.dislikeParams;case "INDIFFERENT":return X.removeLikeParams;default:return X==null?void 0:X.likeParams}};var DL=function(){};
_.S(DL,Cu);DL.prototype.getApiPaths=function(){return Tbz};
DL.prototype.getExtension=function(X){return _.Y(X,tOS)};
DL.prototype.JSC$12977_buildRequest=function(X,t){t.settingItemId&&(X.settingItemId=t.settingItemId);t.stringValue!=null&&t.stringValue!==void 0?X.newValue={stringValue:t.stringValue}:t.intValue?X.newValue={intValue:t.intValue}:t.boolValue!==null&&t.boolValue!==void 0?X.newValue={boolValue:t.boolValue}:(X=new _.NJ("Unknown value type for SetSettingEndpoint.",t),_.xA(X))};var S5=function(){};
_.S(S5,Cu);S5.prototype.getApiPaths=function(){return YIP};
S5.prototype.getExtension=function(X){return _.Y(X,sIe)||void 0};
S5.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.channelIds&&(X.channelIds=t.channelIds);t.siloName&&(X.siloName=t.siloName);t.params&&(X.params=t.params);G.botguardResponse&&(X.botguardResponse=G.botguardResponse);G.feature&&(X.clientFeature=G.feature)};
_.ke.Object.defineProperties(S5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hh=function(){};
_.S(hh,Cu);hh.prototype.getApiPaths=function(){return DEJ};
hh.prototype.getExtension=function(X){return _.Y(X,G4t)||void 0};
hh.prototype.JSC$12977_buildRequest=function(X,t){t.channelIds&&(X.channelIds=t.channelIds);t.siloName&&(X.siloName=t.siloName);t.params&&(X.params=t.params)};
_.ke.Object.defineProperties(hh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ZL=function(X){this.shareClientParamsProvider=X};
_.S(ZL,Cu);ZL.prototype.getApiPaths=function(){return yTJ};
ZL.prototype.getExtension=function(X){return _.Y(X,OBe)||_.Y(X,_.uXB)||_.Y(X,KQh)};
ZL.prototype.JSC$12977_buildRequest=function(X,t){t.serializedShareEntity&&(X.serializedSharedEntity=t.serializedShareEntity);if(t.clientParamIdentifier){var G;if((G=this.shareClientParamsProvider)==null?0:G.clientParams.has(t.clientParamIdentifier)){G=this.shareClientParamsProvider;t=t.clientParamIdentifier;var y=G.clientParams.get(t);y&&G.clientParams.delete(t);X.clientParams=y}}};
ZL[gA]=[Xht];var qc=function(){};
_.S(qc,Cu);qc.prototype.getApiPaths=function(){return yBR};
qc.prototype.getExtension=function(X){return _.Y(X,peY)};
qc.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var Cx=function(){};
_.S(Cx,Cu);Cx.prototype.getApiPaths=function(){return S$4};
Cx.prototype.getExtension=function(X){return _.Y(X,IMh)};
Cx.prototype.JSC$12977_buildRequest=function(X,t){t.dismissal&&(X.items=[t.dismissal])};
_.ke.Object.defineProperties(Cx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Kx=function(){};
_.S(Kx,Cu);Kx.prototype.getApiPaths=function(){return ae4};
Kx.prototype.getExtension=function(X){return _.Y(X,_.fV)||void 0};
Kx.prototype.JSC$12977_buildRequest=function(X,t,G){X.feedbackTokens=[];t.feedbackToken&&X.feedbackTokens.push(t.feedbackToken);if(t=t.cpn||G.cpn)X.feedbackContext={cpn:t};X.isFeedbackTokenUnencrypted=!!G.is_feedback_token_unencrypted;X.shouldMerge=!1;G.extra_feedback_tokens&&(X.shouldMerge=!0,X.feedbackTokens=X.feedbackTokens.concat(G.extra_feedback_tokens))};
_.ke.Object.defineProperties(Kx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var O7=function(){};
_.S(O7,Cu);O7.prototype.getApiPaths=function(){return ae4};
O7.prototype.getExtension=function(X){return _.Y(X,_.Ol)};
O7.prototype.JSC$12977_buildRequest=function(X,t,G){G.feedback_tokens&&(X.feedbackTokens=G.feedback_tokens,X.shouldMerge=!0)};
_.ke.Object.defineProperties(O7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var u5=function(){};
_.S(u5,Cu);u5.prototype.getApiPaths=function(){return ae4};
u5.prototype.getExtension=function(X){return _.Y(X,yUV)};
u5.prototype.JSC$12977_buildRequest=function(X,t){t.undoToken&&(X.feedbackTokens=[t.undoToken]);t.isUndoTokenUnencrypted&&(X.isFeedbackTokenUnencrypted=t.isUndoTokenUnencrypted)};
_.ke.Object.defineProperties(u5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Qk=function(){};
_.S(Qk,Cu);Qk.prototype.getApiPaths=function(){return IzB};
Qk.prototype.getExtension=function(X){return _.Y(X,OGJ)};
Qk.prototype.JSC$12977_buildRequest=function(X,t){t.nextEndpoint&&_.Y(t.nextEndpoint,_.zj)?X.nextEndpoint={urlEndpoint:_.Y(t.nextEndpoint,_.zj)}:t.nextEndpoint&&_.Y(t.nextEndpoint,_.nq)&&(X.nextEndpoint={watchEndpoint:_.Y(t.nextEndpoint,_.nq)});t.setRacy&&(X.setRacy=t.setRacy);t.setControvercy&&(X.setControvercy=t.setControvercy)};var Ie=function(X){this.JSC$17710_storeWithEntities=X};
_.S(Ie,Cu);Ie.prototype.getApiPaths=function(){return Zrt};
Ie.prototype.getExtension=function(X){return _.Y(X,taq)};
Ie.prototype.JSC$12977_buildRequest=function(X,t){t.flowId&&(X.flowId=t.flowId);t.targetId&&(X.targetId=t.targetId);t.continuation&&(X.continuation=t.continuation);var G=t.flowStateEntityKey;if(t.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&G&&this.JSC$17710_storeWithEntities){var y;if(t=(y=this.JSC$17710_storeWithEntities.getState())==null?void 0:y.entities)if(y=_.hg(G).entityType,y=_.Kg(t,y,G))X.flowState=y,X.flowStateEntityKey=G}};
_.ke.Object.defineProperties(Ie.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Ie[gA]=[Dw];var Uwr=function(){};
_.S(Uwr,Cu);_.H=Uwr.prototype;_.H.getApiPaths=function(){return vQq};
_.H.JSC$12984_getStoreKey=function(){return _.BP("guide")};
_.H.getRequestConfig=function(){var X=this.JSC$12984_getStoreKey(),t;X&&(t={storeStrategy:{storeKey:X}});return t};
_.H.isNavigationCommand=function(){return!0};
_.H.getExtension=function(X){return _.Y(X,_.Ol)};
_.H.JSC$12977_buildRequest=function(X){X.fetchLiveState=!0};var Wi=function(){};
_.S(Wi,Cu);Wi.prototype.getApiPaths=function(){return oQh};
Wi.prototype.getExtension=function(X){return _.Y(X,U0S)};
Wi.prototype.JSC$12977_buildRequest=function(){};var ci=function(){};
_.S(ci,Cu);ci.prototype.getApiPaths=function(){return JB4};
ci.prototype.getExtension=function(X){return _.Y(X,m0e)};
ci.prototype.JSC$12977_buildRequest=function(){};var px=function(){};
_.S(px,Cu);px.prototype.getApiPaths=function(){return GK4};
px.prototype.getExtension=function(X){return _.Y(X,_.Hk)};
px.prototype.JSC$12977_buildRequest=function(X,t){t.token&&(X.continuation=t.token);var G,y;X==null||(G=X.context)==null||(y=G.user)==null||delete y.onBehalfOfUser};
px.prototype.getRequestConfig=function(X){var t={},G;if(((G=this.getExtension(X))==null?void 0:G.sessionIndex)!==void 0){var y;t={authStrategy:{sessionIndex:(y=this.getExtension(X))==null?void 0:y.sessionIndex}}}return t};var re=function(){};
_.S(re,Cu);re.prototype.JSC$12977_getRequest=function(X){var t=this.getExtension(X),G=X="";if(t==null?0:t.popup)X="true";if(t==null?0:t.disableSignout)G="true";t={};return{input:"/getAccountSwitcherEndpoint",requestShell:JE("/getAccountSwitcherEndpoint","GET",(t["X-YouTube-Delegation-Context"]=_.Md("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),t["X-YouTube-Account-Switcher-Popup"]=X,t["X-YouTube-Account-Switcher-Disable-Signout"]=G,t)),innerTubeRequest:{}}};
re.prototype.getApiPaths=function(){return[]};
re.prototype.getExtension=function(X){return _.Y(X,_.eqf)};
re.prototype.JSC$12977_buildRequest=function(){};var Nc=function(){};
_.S(Nc,Cu);Nc.prototype.JSC$12977_getRequest=function(X){var t="/cross_account_channel_transfer";(X=this.getExtension(X))&&(t=wPf(t,{target_session:X.targetSessionIndex,source_rapt:X.sourceRapt,rapt:X.targetRapt}));return{input:t,requestShell:JE(t,"GET"),innerTubeRequest:{}}};
Nc.prototype.getApiPaths=function(){return[]};
Nc.prototype.getExtension=function(X){return _.Y(X,CMJ)};
Nc.prototype.JSC$12977_buildRequest=function(){};var Pi=function(){};
_.S(Pi,Cu);Pi.prototype.getApiPaths=function(){return q$h};
Pi.prototype.isNavigationCommand=function(){return!0};
Pi.prototype.getExtension=function(X){return _.Y(X,_.Ol)};
Pi.prototype.JSC$12977_buildRequest=function(X){var t=_.cP().get("gsml","");t&&(X.safetyModeLockerObfuscatedGaiaId=t);X.userInterfaceTheme=_.Lp(!0);_.vy()?X.deviceTheme="DEVICE_THEME_SELECTED":_.tG_()?X.deviceTheme="DEVICE_THEME_SUPPORTED":X.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var E7=function(){};
_.S(E7,Cu);E7.prototype.getApiPaths=function(){return GK4};
E7.prototype.getExtension=function(X){return _.Y(X,KPq)};
E7.prototype.JSC$12977_buildRequest=function(X,t){if(t&&t.requestType&&(X.requestType=t.requestType,t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var G=t.nextUrl;G&&(_.Hqv(G)||dw(G))&&(X.nextNavendpoint={urlEndpoint:{url:G}})}t&&t.channelSwitcherQuery&&(X.channelSwitcherQuery=t.channelSwitcherQuery);t&&t.triggerChannelCreation&&(X.triggerChannelCreation=t.triggerChannelCreation);var y;if(t==null?0:(y=t.contentOwnerConfig)==
null?0:y.externalContentOwnerId)X.contentOwnerConfig=t.contentOwnerConfig;X.callCircumstance=t&&t.requestType&&t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var w,z;t=X==null?void 0:(w=X.context)==null?void 0:(z=w.user)==null?void 0:z.onBehalfOfUser;if(t!==void 0){X.obfuscatedSelectedGaiaId=t;var B,V;X==null||(B=X.context)==null||(V=B.user)==null||delete V.onBehalfOfUser}var b,e;if(w=X==null?void 0:(b=X.context)==null?void 0:(e=b.user)==null?
void 0:e.serializedDelegationContext)X.selectedSerializedDelegationContext=w};var U7=function(){};
_.S(U7,Cu);U7.prototype.getApiPaths=function(){return wCq};
U7.prototype.getExtension=function(X){return _.Y(X,Qxe)};
U7.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var mF=function(){};
_.S(mF,Cu);mF.prototype.getApiPaths=function(){return kKJ};
mF.prototype.getExtension=function(X){return _.Y(X,_.vCt)};
mF.prototype.JSC$12977_buildRequest=function(X,t){if(t=t.createBroadcastRequest)X.useMasks=t.useMasks,X.broadcastType=t.broadcastType,X.broadcastSource=t.broadcastSource,X.broadcastMetadata=t.broadcastMetadata,X.broadcastMetadataMask=t.broadcastMetadataMask,X.videoMetadata=t.videoMetadata,X.videoMetadataMask=t.videoMetadataMask,X.liveChatSettingsUpdate=t.liveChatSettingsUpdate,X.liveChatSettingsUpdateMask=t.liveChatSettingsUpdateMask,X.cloneVideoId=t.cloneVideoId,X.cloneWithOverrides=t.cloneWithOverrides,
X.targetEntity=t.targetEntity,X.scheduledRedirectMetadata=t.scheduledRedirectMetadata};var Re=function(){};
_.S(Re,Cu);Re.prototype.getApiPaths=function(){return gQq};
Re.prototype.getExtension=function(X){return _.Y(X,UTq)};
Re.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.params&&(X.params=t.params);G.questionText&&(X.questionText=G.questionText);G.optionText&&G.optionText.length>0&&(X.optionText=G.optionText)};var i5=function(){};
_.S(i5,Cu);i5.prototype.getApiPaths=function(){return ABB};
i5.prototype.getExtension=function(X){return _.Y(X,Pkq)};
i5.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var Lx=function(){};
_.S(Lx,Cu);Lx.prototype.getApiPaths=function(){return Qhq};
Lx.prototype.getExtension=function(X){return _.Y(X,c8t)};
Lx.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var vi=function(){};
_.S(vi,Cu);vi.prototype.getApiPaths=function(){return Wk4};
vi.prototype.getExtension=function(X){return _.Y(X,pZq)};
vi.prototype.JSC$12977_buildRequest=function(X,t,G){t.params&&(X.params=t.params);t.continuation&&(X.continuation=t.continuation);G.currentPlayerState&&G.currentPlayerState.playerOffsetMs&&(X.currentPlayerState={playerOffsetMs:G.currentPlayerState.playerOffsetMs.toString()})};var ae=function(){};
_.S(ae,Cu);ae.prototype.getApiPaths=function(){return cBz};
ae.prototype.getExtension=function(X){return _.Y(X,Wnq)};
ae.prototype.JSC$12977_buildRequest=function(X,t,G){t.params&&(X.params=t.params);G.continuation&&(X.continuation=G.continuation);"hidden"in G&&(X.webClientInfo={isDocumentHidden:G.hidden});G.isInvalidationTimeoutRequest&&(X.isInvalidationTimeoutRequest=G.isInvalidationTimeoutRequest);G.invalidationPayload&&(t=I4t(_.BS(eH(G.invalidationPayload))),X.invalidationPayloadLastPublishAtUsec=f9(t,2));G.reloadActionPanel&&(X.reloadActionPanel=G.reloadActionPanel);G.fullReload&&(X.fullReload=G.fullReload);
G.currentPlayerState&&(X.currentPlayerState=G.currentPlayerState)};var l5=function(){};
_.S(l5,Cu);l5.prototype.getApiPaths=function(){return MCB};
l5.prototype.getExtension=function(X){return _.Y(X,EX4)};
l5.prototype.JSC$12977_buildRequest=function(X,t){X.params=t.params};var xO=function(){};
_.S(xO,Cu);xO.prototype.getApiPaths=function(){return Ieq};
xO.prototype.getExtension=function(X){return _.Y(X,lbt)};
xO.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var w8=function(){};
_.S(w8,Cu);w8.prototype.getApiPaths=function(){return pCB};
w8.prototype.getExtension=function(X){return _.Y(X,xN4)};
w8.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var zd=function(){};
_.S(zd,Cu);zd.prototype.getApiPaths=function(){return XVP};
zd.prototype.getExtension=function(X){return _.Y(X,mTq)};
zd.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var H2=function(){};
_.S(H2,Cu);H2.prototype.getApiPaths=function(){return tG4};
H2.prototype.getExtension=function(X){return _.Y(X,RmR)};
H2.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var o1=function(){};
_.S(o1,Cu);o1.prototype.getApiPaths=function(){return njP};
o1.prototype.getExtension=function(X){return _.Y(X,c0B)};
o1.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var Jx=function(){};
_.S(Jx,Cu);Jx.prototype.getApiPaths=function(){return gjP};
Jx.prototype.getExtension=function(X){return _.Y(X,_.iPt)};
Jx.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.params&&(X.params=t.params);G.client_message_id&&(X.clientMessageId=G.client_message_id);G.recaptcha_token&&(X.recaptchaToken=G.recaptcha_token);G.rich_message&&G.rich_message.text_segments?(t=G.rich_message.text_segments.map(function(y){var w={};y.text&&(w.text=y.text);y.emoji_id&&(w.emojiId=y.emoji_id);return w}),X.richMessage={textSegments:t}):G.message&&(X.message=G.message);
G.currentPlayerState&&(X.currentPlayerState=G.currentPlayerState)};var B2=function(){};
_.S(B2,Cu);B2.prototype.getApiPaths=function(){return FDB};
B2.prototype.getExtension=function(X){return _.Y(X,Lnz)};
B2.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var nQ=function(){};
_.S(nQ,Cu);nQ.prototype.getApiPaths=function(){return sJ4};
nQ.prototype.getExtension=function(X){return _.Y(X,a4R)};
nQ.prototype.JSC$12977_buildRequest=function(X,t,G){t.isUserInitiated&&(X.isUserInitiated=t.isUserInitiated);t.initiationSource&&(X.initiationSource=t.initiationSource);G.locationInfo&&(X.context.client.locationInfo=G.locationInfo)};var V$=function(){};
_.S(V$,Cu);V$.prototype.getApiPaths=function(){return $E4};
V$.prototype.getExtension=function(X){return _.Y(X,aZJ)};
V$.prototype.JSC$12977_buildRequest=function(X,t,G){t.metadataUpdateRequest&&(t=t.metadataUpdateRequest,X.encryptedVideoId=t.encryptedVideoId,t.liveChat&&(t=t.liveChat,X.liveChat||(X.liveChat={}),t.performAsExternalChannelId&&(X.liveChat.performAsExternalChannelId=t.performAsExternalChannelId),t.source&&(X.liveChat.source=t.source)));var y;if(G==null?0:(y=G.liveChat)==null?0:y.liveChatSettings)X.liveChat||(X.liveChat={}),G=G.liveChat.liveChatSettings,X.liveChat.newLiveChatSettings=G,X.liveChat.newLiveChatSettingsMask||
(X.liveChat.newLiveChatSettingsMask={}),G.emojiReactionSet&&(X.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var b1=function(){};
_.S(b1,Cu);b1.prototype.getApiPaths=function(){return uKq};
b1.prototype.getExtension=function(X){return _.Y(X,_.yPR)};
b1.prototype.JSC$12977_buildRequest=function(X,t,G){G.continuation?X.continuation=G.continuation:t.videoId&&(X.videoId=t.videoId);G.clientParams&&(X.clientParams=G.clientParams)};var kc=function(){};
_.S(kc,Cu);kc.prototype.getApiPaths=function(){return rBo};
kc.prototype.getExtension=function(X){return _.Y(X,_.M0)};
kc.prototype.JSC$12977_buildRequest=function(X,t){X.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";X.fetchCommentsParams={};t.videoId&&(X.fetchCommentsParams.encryptedVideoId=t.videoId);t.postId&&(X.fetchCommentsParams.postId=t.postId);t.externalChannelId&&(X.fetchCommentsParams.externalChannelId=t.externalChannelId);t.linkedCommentId&&(X.fetchCommentsParams.linkedCommentId=t.linkedCommentId);(0,_.RH.isEmpty)(X.fetchCommentsParams)&&delete X.fetchCommentsParams};var d8=function(){};
_.S(d8,Cu);d8.prototype.getApiPaths=function(){return dP};
d8.prototype.JSC$12977_buildRequest=function(X){X.browseId="FEnotifications_inbox"};
d8.prototype.getExtension=function(X){return _.Y(X,_.Ol)};var eK=function(){};
_.S(eK,Cu);eK.prototype.getApiPaths=function(){return rBo};
eK.prototype.JSC$12977_buildRequest=function(X,t){t.signal==="GET_NOTIFICATIONS_MENU"&&(X.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");t.ctoken&&(X.ctoken=t.ctoken)};
var mwi=function(){};
_.S(mwi,eK);mwi.prototype.getExtension=function(X){return _.Y(X,_.Ol)};
var RGq=function(){};
_.S(RGq,eK);RGq.prototype.getExtension=function(X){return _.Y(X,qpq)};var jK=function(){};
_.S(jK,Cu);jK.prototype.getApiPaths=function(){return Rwz};
jK.prototype.getExtension=function(X){return _.Y(X,_.Ol)};
jK.prototype.JSC$12977_buildRequest=function(){};var g8=function(){};
_.S(g8,Cu);g8.prototype.getApiPaths=function(){return GZJ};
g8.prototype.getExtension=function(X){return _.Y(X,Mfz)||void 0};
g8.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params);t.secondaryParams&&(X.secondaryParams=t.secondaryParams)};var Fw=function(){};
_.S(Fw,Cu);Fw.prototype.getApiPaths=function(){return yV4};
Fw.prototype.getExtension=function(X){return _.Y(X,Ib4)};
Fw.prototype.JSC$12977_buildRequest=function(X,t){t.undo&&(X.undo=t.undo);t.serializedOptOut&&(X.serializedOptOut=t.serializedOptOut);t.serializedRecordInteractionsRequest&&(X.serializedRecordInteractionsRequest=t.serializedRecordInteractionsRequest)};var Td=function(){};
_.S(Td,Cu);Td.prototype.getApiPaths=function(){return H8o};
Td.prototype.getExtension=function(X){return _.Y(X,WQP)};
Td.prototype.JSC$12977_buildRequest=function(X,t){t.serializedInteractionsRequest&&(X.serializedRecordNotificationInteractionsRequest=t.serializedInteractionsRequest)};var Ax=function(){};
_.S(Ax,Cu);Ax.prototype.getApiPaths=function(){return wLs};
Ax.prototype.getExtension=function(X){return _.Y(X,D3f)};
Ax.prototype.JSC$12977_buildRequest=function(X,t,G){t=t===void 0?{}:t;G=G===void 0?{}:G;t.videoId?X.videoId=t.videoId:t.playlistId&&(X.playlistId=t.playlistId);var y,w=(y=t.offlineWebClientEligibility)!=null?y:G.offlineWebClientEligibility;w&&(X.offlineWebClientEligibility=w);var z;if(y=(z=t.preferredFormatType)!=null?z:G.preferredFormatType)X.preferredFormatType=y;var B;if(z=(B=t.lastOfflineQualitySettingsSavedMs)!=null?B:G.lastOfflineQualitySettingsSavedMs)X.lastOfflineQualitySettingsSavedMs=z;
t.params&&(X.params=t.params)};var Yc=function(){};
_.S(Yc,Cu);Yc.prototype.getApiPaths=function(){return eO};
Yc.prototype.getExtension=function(X){return _.Y(X,_.Hk)};
Yc.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.token&&(X.continuation=t.token);G.formData&&(X.formData=G.formData)};var sJ=function(){};
_.S(sJ,Cu);sJ.prototype.getApiPaths=function(){return eO};
sJ.prototype.getExtension=function(X){return _.Y(X,UDh)};
sJ.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;X.continuation=G.continuation};var Dt=function(){};
_.S(Dt,Cu);Dt.prototype.getApiPaths=function(){return eO};
Dt.prototype.getExtension=function(X){return _.Y(X,_.xl)};
Dt.prototype.JSC$12977_buildRequest=function(X,t){var G,y=t.panelIdentifier||((G=t.identifier)==null?void 0:G.tag);y&&(X.panelId=y);var w;if((w=t.globalConfiguration)==null?0:w.params){var z;X.params=(z=t.globalConfiguration)==null?void 0:z.params}};
_.ke.Object.defineProperties(Dt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SK=function(){};
_.S(SK,Cu);SK.prototype.getApiPaths=function(){return eO};
SK.prototype.getExtension=function(X){return _.Y(X,hTt)};
SK.prototype.JSC$12977_buildRequest=function(X,t){t.panelLoadingStrategy&&td0(X,t.panelLoadingStrategy)};var hx=function(){};
_.S(hx,Cu);hx.prototype.getApiPaths=function(){return eO};
hx.prototype.getExtension=function(X){return _.Y(X,LQh)};
hx.prototype.JSC$12977_buildRequest=function(X,t){t.loadingStrategy&&td0(X,t.loadingStrategy)};var Zt=function(){};
_.S(Zt,Cu);Zt.prototype.getApiPaths=function(){return eO};
Zt.prototype.getExtension=function(X){return _.Y(X,_.UW)};
Zt.prototype.JSC$12977_buildRequest=function(X,t){t.panelLoadingStrategy&&td0(X,t.panelLoadingStrategy)};var q3=function(){};
_.S(q3,Cu);q3.prototype.getApiPaths=function(){return eO};
q3.prototype.getExtension=function(X){return _.Y(X,vrt)};
q3.prototype.JSC$12977_buildRequest=function(X,t){var G,y=(G=t.contentSourcePanelIdentifier)==null?void 0:G.tag;y&&(X.panelId=y);var w;if((w=t.globalConfiguration)==null?0:w.params){var z;X.params=(z=t.globalConfiguration)==null?void 0:z.params}};var CQ=function(){};
_.S(CQ,Cu);CQ.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
CQ.prototype.getExtension=function(X){return _.Y(X,abt)};
CQ.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var KQ=function(){};
_.S(KQ,Cu);KQ.prototype.getApiPaths=function(){return O8e};
KQ.prototype.getExtension=function(X){return _.Y(X,fbq)};
KQ.prototype.JSC$12977_buildRequest=function(X,t){t.externalChannelId&&(X.externalChannelId=t.externalChannelId);t.superChatAction&&(X.superChatAction=t.superChatAction);t.superStickersAction&&(X.superStickersAction=t.superStickersAction)};var OJ=function(){};
_.S(OJ,Cu);OJ.prototype.getApiPaths=function(){return CVS};
OJ.prototype.getExtension=function(X){return _.Y(X,E_Y)||_.Y(X,hqv)};
OJ.prototype.JSC$12977_buildRequest=function(X,t){t.videoIds?X.videoIds=t.videoIds:t.videoId&&(X.videoIds=[t.videoId]);t.playlistId&&(X.playlistId=t.playlistId);t.params&&(X.params=t.params);X.excludeWatchLater=!1};var u1=function(){};
_.S(u1,Cu);u1.prototype.getApiPaths=function(){return FkR};
u1.prototype.getExtension=function(X){return _.Y(X,_.z4)};
u1.prototype.JSC$12977_buildRequest=function(X,t,G){G.create_playlist_title?X.title=G.create_playlist_title:t.title&&(X.title=t.title);if(G.create_playlist_privacy_status&&typeof G.create_playlist_privacy_status==="number"){a:{var y=G.create_playlist_privacy_status;if(y!==0){if(y===1){y="PUBLIC";break a}if(y===2){y="UNLISTED";break a}}y="PRIVATE"}X.privacyStatus=y}else t.privacyStatus&&(X.privacyStatus=t.privacyStatus);G.create_playlist_description&&(X.description=G.create_playlist_description);t.videoIds&&
(X.videoIds=t.videoIds);t.params&&(X.params=t.params);t.sourcePlaylistId&&(X.sourcePlaylistId=t.sourcePlaylistId)};var Q$=function(){};
_.S(Q$,Cu);Q$.prototype.getApiPaths=function(){return Y$q};
Q$.prototype.getExtension=function(X){return _.Y(X,x0q)};
Q$.prototype.JSC$12977_buildRequest=function(X,t){X.playlistId=t.playlistId};var I1=function(){};
_.S(I1,Cu);I1.prototype.getApiPaths=function(){return NQq};
I1.prototype.getExtension=function(X){return _.Y(X,qCo)};
I1.prototype.JSC$12977_buildRequest=function(X,t){t.playlistId&&(X.playlistId=t.playlistId);t.params&&(X.params=t.params)};var W2=function(){};
_.S(W2,Cu);W2.prototype.getApiPaths=function(){return zkY};
W2.prototype.getExtension=function(X){return _.Y(X,_.Xs)||void 0};
W2.prototype.JSC$12977_buildRequest=function(X,t){t.actions&&(X.actions=t.actions);t.params&&(X.params=t.params);t.playlistId&&(X.playlistId=t.playlistId)};var c2=function(){};
_.S(c2,Cu);_.H=c2.prototype;_.H.getApiPaths=function(){return ojq};
_.H.getExtension=function(X){return _.Y(X,_.E8)};
_.H.JSC$12977_buildRequest=function(X,t){t.videoId&&(X.playerRequest={videoId:t.videoId},t.playerParams&&(X.playerRequest.params=t.playerParams),t.racyCheckOk&&(X.playerRequest.racyCheckOk=!!t.racyCheckOk),t.contentCheckOk&&(X.playerRequest.contentCheckOk=!!t.contentCheckOk));t.params&&(X.params=t.params);t.inputType&&(X.inputType=t.inputType);X.disablePlayerResponse=!0};
_.H.getRequestConfig=function(X){var t;(X=this.JSC$12984_getStoreKey(X))&&(t={storeStrategy:{storeKey:X}});_.A("web_log_reels_ticks")&&(t=t||{},t.requestTick="r_wrs",t.responseTick="r_wrr");return t};
_.H.JSC$12984_getStoreKey=function(X){X=this.getExtension(X);if(_.A("shorts_controller_retrieve_seedless_sequence_v2")){if((X==null?void 0:X.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.BP("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.A("web_shorts_prefetch_service_enabled")&&X!=null&&X.videoId){var t={videoId:X.videoId};X.params&&(t.params=X.params);return _.BP("reel_item_watch",t)}};var pQ=function(){};
_.S(pQ,Cu);_.H=pQ.prototype;_.H.getApiPaths=function(){return JVq};
_.H.getExtension=function(X){return _.Y(X,_.E8)};
_.H.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;X.sequenceParams=t.sequenceParams;var y;((y=G)==null?0:y.contentPlaybackContext)&&_.A("web_shorts_prefetch_service_enabled")&&(X.playbackContext={contentPlaybackContext:G.contentPlaybackContext})};
_.H.JSC$12984_getStoreKey=function(X){if(_.A("web_enable_delay_shorts_sequence_call")||_.A("shorts_controller_retrieve_seedless_sequence_v2"))if(X=this.getExtension(X),X==null?0:X.sequenceParams)return _.BP("reel_watch_sequence",{sequenceParams:X.sequenceParams})};
_.H.getRequestConfig=function(X){X=this.JSC$12984_getStoreKey(X);var t;X&&(t={storeStrategy:{storeKey:X}});_.A("reel_watch_sequence_request_log_ticks")&&(t=t||{},t.requestTick="r_wsrs",t.responseTick="r_wsrr",t.processorTick="r_wsrp");return t};
var r8=function(){};
_.S(r8,Cu);r8.prototype.getApiPaths=function(){return JVq};
r8.prototype.getExtension=function(X){return _.Y(X,_.Hk)};
r8.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.token&&(X.continuation=t.token);var y;((y=G)==null?0:y.contentPlaybackContext)&&_.A("web_shorts_prefetch_service_enabled")&&(X.playbackContext={contentPlaybackContext:G.contentPlaybackContext})};
r8.prototype.getRequestConfig=function(X){X=this.JSC$12984_getStoreKey(X);var t;X&&(t={storeStrategy:{storeKey:X}});_.A("reel_watch_sequence_request_log_ticks")&&(t=t||{},t.requestTick="r_wsrs",t.responseTick="r_wsrr",t.processorTick="r_wsrp");return t};var N3=function(){};
_.S(N3,Cu);N3.prototype.getApiPaths=function(){return hwq};
N3.prototype.getExtension=function(X){return _.Y(X,_.$TB)};
N3.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.flagAction&&(X.action=t.flagAction);t.flagRequestType&&(X.flagRequestType=t.flagRequestType);t.additionalDetailCheckboxChecked&&(X.additionalDetailCheckboxChecked=t.additionalDetailCheckboxChecked);t.legalCheckboxChecked&&(X.legalCheckboxChecked=t.legalCheckboxChecked);t={};G.flag_issue_type!==void 0&&(t.issue=G.flag_issue_type);G.flag_affiliation!==void 0&&(t.affiliation=G.flag_affiliation);G.flag_full_name&&(t.fullName=G.flag_full_name);
Object.keys(t).length&&(X.legalReportDetails=t);if(G.flag_description||G.text)X.userComments=G.flag_description||G.text;t={};G.minutes!==void 0&&G.seconds!==void 0&&(t.minutes=G.minutes,t.seconds=G.seconds);G.vss_id&&(t.vssId=G.vss_id);Object.keys(t).length&&(X.videoReportDetails=t);t={};G.video_ids&&(t.videoIds=G.video_ids);G.impersonated_channel_url&&(t.impersonatedChannelUrl=G.impersonated_channel_url);Object.keys(t).length&&(X.channelAbuseReportDetails=t)};
_.ke.Object.defineProperties(N3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P2=function(){};
_.S(P2,Cu);P2.prototype.getApiPaths=function(){return uWo};
P2.prototype.getExtension=function(X){return _.Y(X,hmt)};
P2.prototype.JSC$12977_buildRequest=function(X,t){t.blockedForKidsContent&&(X.blockedForKidsContent=t.blockedForKidsContent)};var EJ=function(){};
_.S(EJ,Cu);EJ.prototype.getApiPaths=function(){return VG4};
EJ.prototype.getExtension=function(X){return _.Y(X,SJY)};
EJ.prototype.JSC$12977_buildRequest=function(X,t,G){X.params=t.params;G.impersonated_channel_url&&(X.impersonatedChannelUrl=G.impersonated_channel_url)};var UJ=function(){};
_.S(UJ,Cu);UJ.prototype.getApiPaths=function(){return xZR};
UJ.prototype.getExtension=function(X){return _.Y(X,_.ZPR)};
UJ.prototype.JSC$12977_buildRequest=function(X,t){t.items&&(X.items=t.items);t.kidGaiaId&&(X.kidGaiaId=t.kidGaiaId)};var md=function(){};
_.S(md,Cu);md.prototype.getApiPaths=function(){return Kkq};
md.prototype.getExtension=function(X){return _.Y(X,_.NB4)};
md.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params);t.targetId&&(X.targetId=t.targetId)};var R1=function(){};
_.S(R1,Cu);R1.prototype.getApiPaths=function(){return ek4};
R1.prototype.getExtension=function(X){return _.Y(X,CEe)};
R1.prototype.JSC$12977_buildRequest=function(X,t){t.externalVideoId&&(X.externalVideoId=t.externalVideoId);t.query&&(X.query=t.query);t.sourceTimelines&&(X.sourceTimelines=t.sourceTimelines)};var i1=function(){};
_.S(i1,Cu);i1.prototype.getApiPaths=function(){return jJS};
i1.prototype.getExtension=function(X){return _.Y(X,_.Hk)||void 0};
i1.prototype.JSC$12977_buildRequest=function(X,t){t.token&&(X.continuation=t.token)};
_.i_r=function(){};
_.S(_.i_r,Cu);_.H=_.i_r.prototype;_.H.getApiPaths=function(){return jJS};
_.H.getExtension=function(X){return _.Y(X,_.rV)||void 0};
_.H.isNavigationCommand=function(){return!0};
_.H.JSC$12984_getStoreKey=function(X,t){t=t===void 0?{}:t;if(!t.disableCache&&(X=this.getExtension(X))&&X.query)return t={query:X.query},X.params&&(t.params=X.params),_.BP("search",t)};
_.H.JSC$12977_buildRequest=function(X,t,G){t.query&&(X.query=t.query);t.params&&(X.params=t.params);if(!_.A("web_forward_suggest_stats_killswitch")){var y=_.Y(t,A0R);y&&(X.suggestStats=y)}var w;!_.A("kevlar_searchbox_stats_killswitch")&&((w=G.tempData)==null?0:w.gs_l)&&!_.Y(t,A0R)&&(X.webSearchboxStatsUrl="/search?oq="+(G.tempData.oq||"")+"&gs_l="+G.tempData.gs_l);var z;if((z=G.tempData)==null?0:z.entityMid)t=X.suggestionSearchParams||{},t.entityMid=G.tempData.entityMid,X.suggestionSearchParams=t;
_.A("enable_desktop_vdcbg_components")&&(G=_.cP().getFlag(186),X.inlineSettingStatus=G?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.H.getRequestConfig=function(X,t){t=t===void 0?{}:t;X=this.JSC$12984_getStoreKey(X,t);var G;X&&(G={storeStrategy:{storeKey:X}});_.A("web_log_search_ticks_ks")||(G=G||{},G.requestTick="sr_s",G.responseTick="sr_r");return G};var LQ=function(){};
_.S(LQ,Cu);LQ.prototype.getApiPaths=function(){return UZq};
LQ.prototype.getExtension=function(X){return _.Y(X,JPe)};
LQ.prototype.JSC$12977_buildRequest=function(X,t){t.serializedGetSharingProviderDataParams&&(X.serializedGetSharingProviderDataParams=t.serializedGetSharingProviderDataParams)};var v2=function(){};
_.S(v2,Cu);v2.prototype.getApiPaths=function(){return mZB};
v2.prototype.getExtension=function(X){return _.Y(X,lMY)};
v2.prototype.JSC$12977_buildRequest=function(X,t){t.endpoint&&(X.endpoint=t.endpoint);t.action&&(X.action=t.action)};var a1=function(){};
_.S(a1,Cu);a1.prototype.getApiPaths=function(){return shS};
a1.prototype.getExtension=function(X){return _.Y(X,f9q)};
a1.prototype.JSC$12977_buildRequest=function(X,t){X.videoId=t.videoId;t.scheduledRedirectMetadataSourceVideoId&&(X.scheduledRedirectMetadata={sourceVideoId:t.scheduledRedirectMetadataSourceVideoId})};var l1=function(){};
_.S(l1,Cu);l1.prototype.getApiPaths=function(){return AVB};
l1.prototype.getExtension=function(X){return _.Y(X,_.xWz)};
l1.prototype.JSC$12977_buildRequest=function(X,t){X.params=t.params;X.correctionText=t.correctionText};var xc=function(){};
_.S(xc,Cu);xc.prototype.getApiPaths=function(){return tLl};
xc.prototype.getExtension=function(X){return _.Y(X,_.Kpq)};
xc.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params);X.searchQuery=t.searchQuery;X.languageCode=t.languageCode;X.kind=t.kind;X.name=t.name;X.externalVideoId=t.externalVideoId};var fQ=function(){};
_.S(fQ,Cu);fQ.prototype.getApiPaths=function(){return cVo};
fQ.prototype.getExtension=function(X){return _.Y(X,nZ4)};
fQ.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.params=t.params)};var M3=function(X){this.JSC$17981_storeWithEntities=X};
_.S(M3,Cu);M3.prototype.getApiPaths=function(){return VCh};
M3.prototype.getExtension=function(X){return _.Y(X,bvR)||_.Y(X,d44)};
M3.prototype.JSC$12977_buildRequest=function(X,t,G){G.client_data&&(X.clientData=G.client_data);if(t.commerceActionConfig){var y=t.commerceActionConfig;t=y.actionId;y=y.commerceActionParams;t&&(X.actionId=t);y&&(X.commerceActionParams=y)}else{var w=t.actionId,z=t.commerceActionParams;G=t.entityKeys;w&&(X.actionId=w);z&&(X.commerceActionParams=z);var B;t=(y=this.JSC$17981_storeWithEntities)==null?void 0:(B=y.getState())==null?void 0:B.entities;if(G&&t){y=[];B=_.J(G);for(G=B.next();!G.done;G=B.next())if(w=
G.value,G=_.hg(w).entityType,w=_.Kg(t,G,w))z={},y.push((z[G]=w,z));X.entityMutationPayloads=y}}};
M3.prototype.getRequestConfig=function(X){var t,G=(t=_.Y(X,bvR))==null?void 0:t.requestSequenceType;if(G&&X.clickTrackingParams&&G!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:X.clickTrackingParams,sequenceType:G}}};
M3[gA]=[Dw];var Xf=function(){};
_.S(Xf,Cu);Xf.prototype.getApiPaths=function(){return pVe};
Xf.prototype.getExtension=function(X){return _.Y(X,_.Q3P)};
Xf.prototype.JSC$12977_buildRequest=function(X,t){t.feedbackData&&(X.feedbackData=t.feedbackData);t.params&&(X.itemParams=t.params)};
_.ke.Object.defineProperties(Xf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $8=function(){};
_.S($8,Cu);$8.prototype.getApiPaths=function(){return rVq};
$8.prototype.getExtension=function(X){return _.Y(X,I8R)};
$8.prototype.JSC$12977_buildRequest=function(X,t,G){G.payments_payload&&(X.paymentsPayload=G.payments_payload);G.offer_params&&(X.offerParams=G.offer_params);t.transactionParams&&(X.transactionParams=t.transactionParams)};var t7=function(){};
_.S(t7,Cu);t7.prototype.getApiPaths=function(){return NbB};
t7.prototype.getExtension=function(X){return _.Y(X,_.WVo)};
t7.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.buybucketParams&&(X.buybucketData={params:t.buybucketParams},t.stickerParams?X.buybucketData.stickerParams=t.stickerParams:(G.rich_chat_message?X.buybucketData.richChatMessage=G.rich_chat_message:G.chat_message_text&&(X.buybucketData.chatMessageText=G.chat_message_text),G.purchase_price_micros&&(X.buybucketData.purchasePriceMicros=G.purchase_price_micros.toString())));t.donationAmountMicros&&(X.tipAmountMicros=t.donationAmountMicros,
t.tipParams&&(X.tipParams=t.tipParams));t.offerParams&&(X.offerParams=t.offerParams);t.productData&&(X.productData=t.productData);t.transactionParams&&(X.transactionParams=t.transactionParams)};var G0=function(){};
_.S(G0,Cu);G0.prototype.getApiPaths=function(){return PaJ};
G0.prototype.getExtension=function(X){return _.Y(X,rCt)};
G0.prototype.JSC$12977_buildRequest=function(X,t){t.updateFopParams&&(X.updateFopParams=t.updateFopParams)};var yv=function(){};
_.S(yv,Cu);yv.prototype.getApiPaths=function(){return EjS};
yv.prototype.getExtension=function(X){return _.Y(X,_.Yy)};
yv.prototype.JSC$12977_buildRequest=function(X,t){t.couponCode&&(X.couponCode=t.couponCode);t.params&&(X.itemParams=t.params)};var wF=function(){};
_.S(wF,Cu);wF.prototype.getApiPaths=function(){return UEq};
wF.prototype.getExtension=function(X){return _.Y(X,_.kwq)};
wF.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;t.params&&(X.params=t.params);G.ctk&&(X.clientToken=G.ctk)};var z0=function(X){this.JSC$18016_storeWithEntities=X};
_.S(z0,Cu);z0.prototype.getApiPaths=function(){return mEq};
z0.prototype.getExtension=function(X){return _.Y(X,_.o9)};
z0.prototype.JSC$12977_buildRequest=function(X,t,G){G.purchase_price_micros&&(X.productData={pdgData:{purchasePriceMicros:G.purchase_price_micros.toString()}},G.rich_chat_message&&(X.productData.pdgData.richChatMessage=G.rich_chat_message),G.currency_code&&(X.productData.pdgData.currencyCode=G.currency_code));t.transactionParams&&(X.transactionParams=t.transactionParams);t.clientLocationContext&&(X.clientLocationContext=t.clientLocationContext);G.payments_payload&&(X.paymentsPayload=G.payments_payload);
G.funds_guarantee_callback_client_data&&(X.fundsGuaranteeCallbackClientData=G.funds_guarantee_callback_client_data);var y,w;G=(y=this.JSC$18016_storeWithEntities)==null?void 0:(w=y.getState())==null?void 0:w.entities;if(t.entityKeys&&G){y=[];t=_.J(t.entityKeys);for(w=t.next();!w.done;w=t.next()){var z=w.value;w=_.hg(z).entityType;if(z=_.Kg(G,w,z)){var B={};y.push((B[w]=z,B))}}X.entityMutationPayloads=y}};
z0[gA]=[Dw];var HT=function(){};
_.S(HT,Cu);HT.prototype.getApiPaths=function(){return RkS};
HT.prototype.getExtension=function(X){return _.Y(X,cCt)};
HT.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;G.backend_analytics&&(X.serializedBackendAnalyticsEvent=G.backend_analytics);t.offerParams&&(X.offerParams=t.offerParams)};var op=function(){};
_.S(op,Cu);op.prototype.getApiPaths=function(){return EjS};
op.prototype.getExtension=function(X){return _.Y(X,pJV)};
op.prototype.JSC$12977_buildRequest=function(X,t){t.params&&(X.itemParams=t.params)};var J7=function(){};
_.S(J7,Cu);J7.prototype.getApiPaths=function(){return i8Y};
J7.prototype.getExtension=function(X){return _.Y(X,_.TG4)};
J7.prototype.JSC$12977_buildRequest=function(X,t,G){G.resume_time_ms&&(X.resumeTimeMs=G.resume_time_ms);t.pauseParams&&(X.pauseParams=t.pauseParams)};var BT=function(){};
_.S(BT,Cu);BT.prototype.getApiPaths=function(){return LDS};
BT.prototype.getExtension=function(X){return _.Y(X,_.prY)};
BT.prototype.JSC$12977_buildRequest=function(X,t,G){G=G===void 0?{}:G;G.c&&(X.redeemCode=G.c);G.rd&&(X.riskData=G.rd);G.ctk&&(X.clientToken=G.ctk)};var n3=function(){};
_.S(n3,Cu);n3.prototype.getApiPaths=function(){return vjq};
n3.prototype.getExtension=function(X){return _.Y(X,_.ACY)};
n3.prototype.JSC$12977_buildRequest=function(X,t){t.resumeParams&&(X.resumeParams=t.resumeParams)};var Vv=function(X,t){this.clientName=X;this.defaultExpirationDelayMs=t};
Vv.prototype.put=function(X,t){var G=this,y;return _.n(function(w){y=Object.assign({},t.data);y.key=X;y.clientName=G.clientName;y.expireTimestampMs===void 0&&(y.expireTimestampMs=(Math.round((0,_.gl)())+G.defaultExpirationDelayMs).toString());return w.return(G.putInternal(X,y))})};
Vv[gA]=[Rw,wY4];var LEi=function(){Vv.apply(this,arguments);this.JSC$18046_responseStore=new Map};
_.S(LEi,Vv);_.H=LEi.prototype;_.H.get=function(X){var t=this;return _.n(function(G){return G.return(C8(t,X))})};
_.H.putInternal=function(X,t){var G=this,y,w,z;return _.n(function(B){y=G.defaultExpirationDelayMs;t.expireTimestampMs&&(y=Number(t.expireTimestampMs)-Math.round((0,_.gl)()),w=_.At("mweb_override_response_store_expiration_ms"),w>0&&w<y&&(y=w));z=setTimeout(function(){G.remove(X)},y);
G.JSC$18046_responseStore.set(X,{entryData:t,timer:z});_.W$(B)})};
_.H.remove=function(X){var t=this;return _.n(function(G){vJN(t,X);_.W$(G)})};
_.H.removeAll=function(){var X=this;return _.n(function(t){X.JSC$18046_responseStore.forEach(function(G){clearTimeout(G.timer)});
X.JSC$18046_responseStore.clear();_.W$(t)})};
_.H.has=function(X){return!!this.JSC$18046_responseStore.get(X)};
_.H.getKeys=function(){return this.JSC$18046_responseStore.keys()};
var C8=function(X,t){if(X=X.JSC$18046_responseStore.get(t))return new _.qE(X.entryData)},vJN=function(X,t){var G=X.JSC$18046_responseStore.get(t);
G&&(clearTimeout(G.timer),X.JSC$18046_responseStore.delete(t))};var Gkw;var zaA=function(X,t,G){Vv.call(this,X,t);this.token=G};
_.S(zaA,Vv);_.H=zaA.prototype;_.H.get=function(X){var t=this,G,y;return _.n(function(w){return w.nextAddress==1?w.yield(wdf(t.token),2):w.nextAddress!=3?(G=w.yieldResult,w.yield(G.get("ResponseStore",[X,t.clientName]),3)):(y=w.yieldResult)?w.return(new _.qE(y)):w.return(void 0)})};
_.H.putInternal=function(X,t){var G=this,y;return _.n(function(w){if(w.nextAddress==1)return w.yield(wdf(G.token),2);y=w.yieldResult;return w.yield(y.put("ResponseStore",t),0)})};
_.H.remove=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(wdf(t.token),2);G=y.yieldResult;return y.return(G.delete("ResponseStore",[X,t.clientName]))})};
_.H.removeAll=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return G.yield(wdf(X.token),2);t=G.yieldResult;return G.yield(TSq(t,IDBKeyRange.only(X.clientName)),0)})};
_.H.has=function(){throw Error("Wi");};_.b3=new _.FB("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var afT=function(X){var t;this.stateTagsData=(t=X.responseContext)==null?void 0:t.stateTags},lfV=function(X){var t;
return((t=X.stateTagsData)==null?void 0:t.stateTagsModified)||[]};var xwV;xwV=function(X){this.JSC$18059_responseStore=X};
_.HH=function(X,t,G){if(!_.A("state_tags_killswitch")){var y=new afT(t);if(lfV(y).length>0){var w=X.JSC$18059_responseStore.getKeys();w=_.J(w);for(var z=w.next();!z.done;z=w.next()){z=z.value;var B=C8(X.JSC$18059_responseStore,z);if(B){var V=_.Yl(B);a:{var b=void 0;B=lfV(y);V=((b=(new afT(V)).stateTagsData)==null?void 0:b.relevantStateTags)||[];b=_.J(V);for(V=b.next();!V.done;V=b.next())if(V=V.value,V.stateTag!=null&&B.includes(V.stateTag)&&V.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){B=
!0;break a}B=!1}B&&vJN(X.JSC$18059_responseStore,z)}}}}var e;y=(e=t.responseContext)==null?void 0:e.maxAgeSeconds;G&&y&&Number(y)>0&&(t=K5(t,y),X.JSC$18059_responseStore.put(G,new _.qE(t)))};
xwV.prototype.handleResponse=function(X,t){if(!t)throw Error("Xi");var G,y;t=(G=t.config)==null?void 0:(y=G.storeStrategy)==null?void 0:y.storeKey;_.HH(this,X,t)};
xwV[gA]=[_.Zz];_.b6Y=new _.FB("STORE_RESPONSE_PROCESSOR_TOKEN");var ffq=function(X){this.JSC$18062_responseStore=X};
ffq.prototype.handleResponse=function(X,t){if(t.input.match(_.el(JVq))){var G;if(X==null?0:(G=X.entries)==null?0:G.length)for(X=_.J(X.entries),t=X.next();!t.done;t=X.next()){G=t.value.command;var y=void 0;t=(y=_.Y(G,_.E8))==null?void 0:y.unserializedPrefetchData;if(!G||!t)break;y=(new c2).JSC$12984_getStoreKey(G);var w=_.Y(t,sMh),z=void 0,B=void 0,V=void 0,b=_.At("web_shorts_prefetch_service_ttl_seconds")>0?_.At("web_shorts_prefetch_service_ttl_seconds"):Number((V=(z=w)==null?void 0:(B=z.responseContext)==
null?void 0:B.maxAgeSeconds)!=null?V:3600);y&&b>0&&(w=K5(w,b),this.JSC$18062_responseStore.put(y,new _.qE(w)));G=(new II).JSC$12984_getStoreKey(G);t=_.Y(t,HeY);z=w=y=void 0;B=_.At("web_shorts_prefetch_service_ttl_seconds")>0?_.At("web_shorts_prefetch_service_ttl_seconds"):Number((z=(y=t)==null?void 0:(w=y.responseContext)==null?void 0:w.maxAgeSeconds)!=null?z:3600);G&&B>0&&(t=K5(t,B),this.JSC$18062_responseStore.put(G,new _.qE(t)))}}};
ffq[gA]=[_.Zz];var MsN=function(X){this.innertubeTransportService=X};
MsN[gA]=[_.Mr];var XSH=new _.FB("SUBMIT_API_SERVICE_TOKEN");var k8=function(){this.scheduler=_.va()},$zV;
k8.prototype.pause=function(){throw Error("Yi");};
k8.prototype.resume=function(){throw Error("Yi");};
k8.prototype.queue=function(X){var t=this,G=_.d5(),y=_.PO(this.scheduler,function(){try{var w;if(_.Wj.instance)var z=_.Wj.instance;else{var B=new _.NJ("Error: Unexpected uninitialized CommandHandler.");_.xA(B);z=void 0}(w=z)==null||w.resolveCommand(X.command);G.resolve()}catch(V){G.reject(V)}});
G.promise.thenCatch(function(w){w instanceof _.zC&&t.scheduler.cancelJob(y)});
return G.promise};
k8.prototype.queueAll=function(X){var t=new Map;X=_.J(X);for(var G=X.next();!G.done;G=X.next())G=G.value,t.set(G.id,this.queue(G));return t};var GBr=function(X,t){var G=this;this.taskModel=X;this.onTaskCancelledCallback=t;this.resolver=_.d5();X=X.proto.prefetchConfig;if(!X)throw Error("Zi");if(!X.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(y){y instanceof _.zC&&(tYQ(G,G.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),G.onTaskCancelledCallback(G.taskModel.id,G.jobId),G.tick("pcc"));
throw y;});
this.timerName=this.taskModel.id;_.aa(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
GBr.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 tYQ=function(X,t){_.vP({prefetchInfo:{cancellationReason:t}},X.timerName)};
GBr.prototype.tick=function(X){_.ls(X,void 0,this.timerName)};var eX=function(){var X=this;this.scheduler=_.va();this.maxInflightTasks=_.At("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.At("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new miP;this.onTaskCancelled=function(t,G){G&&X.scheduler.cancelJob(G);yqH(X,t);dF(X,3)}},wSq=function(){eX.instance||(eX.instance=new eX);
return eX.instance};
eX.prototype.pause=function(){this.prefetchCoordinatorState=0};
eX.prototype.resume=function(){dF(this,0)};
eX.prototype.queue=function(X){X=ze2(this,X);dF(this,1);return X};
eX.prototype.queueAll=function(X){var t=new Map;X=_.J(X);for(var G=X.next();!G.done;G=X.next())G=G.value,t.set(G.id,ze2(this,G));dF(this,1);return t};
var ze2=function(X,t){var G=X.allPrefetchTasks.get(t.id);if(G)return G.cancellablePromise;try{var y=new GBr(t,X.onTaskCancelled)}catch(z){return _.l$(z)}G=y;G.tick("pcq");var w={prefetchInfo:{taskId:G.taskModel.id,isPrefetch:!0,fetchAction:G.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:G.taskModel.command.clickTrackingParams}};G.taskModel.csn&&(w.clientScreenNonce=G.taskModel.csn);_.vP(w,G.timerName);X.allPrefetchTasks.set(t.id,y);X.drainingHeap.insert(-y.getPriority(),y);return y.cancellablePromise},
dF=function(X,t){X.prefetchCoordinatorState===t&&(X.prefetchCoordinatorState=2,H4T(X))},H4T=function(X){for(var t={};X.prefetchCoordinatorState!==0;t={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(X.inflightPrefetchTasks.size>=X.maxInflightTasks){X.prefetchCoordinatorState=3;break}t.prefetchTask$jscomp$1=X.drainingHeap.remove();if(!t.prefetchTask$jscomp$1){X.prefetchCoordinatorState=1;break}t.taskId$jscomp$3=t.prefetchTask$jscomp$1.taskModel.id;if(X.allPrefetchTasks.has(t.taskId$jscomp$3)){var G=-1;X.coordinatorTimeoutMs>0&&(G=_.PO(X.scheduler,function(y){return function(){jX(X,y.taskId$jscomp$3,Error("aj"))}}(t),X.coordinatorTimeoutMs));
X.inflightPrefetchTasks.set(t.taskId$jscomp$3,G);if(!X.JSC$18080_commandHandler){if(!_.Wj.instance){jX(X,t.taskId$jscomp$3,Error("bj"));continue}X.JSC$18080_commandHandler=_.Wj.instance}a:switch(t.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":G=1;break a;default:G=0}t.prefetchTask$jscomp$1.jobId=X.scheduler.addJob(function(y){return function(){y.prefetchTask$jscomp$1.tick("pcr");try{X.JSC$18080_commandHandler.resolveCommand(y.prefetchTask$jscomp$1.taskModel.command)||
jX(X,y.taskId$jscomp$3,Error("cj"))}catch(w){jX(X,y.taskId$jscomp$3,w)}}}(t),G,0)}}},ohr=function(X,t){(t=yqH(X,t))!=null&&(t.resolver.resolve(),t.tick("pce"));
dF(X,3)},jX=function(X,t,G){(t=yqH(X,t,G))!=null&&(t.resolver.reject(G),t.tick("pcc"),tYQ(t,"CANCELLATION_REASON_ERROR"),Math.random()<=_.At("prefetch_coordinator_error_logging_sampling_rate")&&(G=new _.NJ("Prefetch Command failed.",t.taskModel.id,G.message),_.xA(G)));
dF(X,3)},yqH=function(X,t,G){var y=X.allPrefetchTasks.get(t);
y?((G=X.inflightPrefetchTasks.get(t))&&G!==-1&&X.scheduler.cancelJob(G),X.inflightPrefetchTasks.delete(t),X.allPrefetchTasks.delete(t)):_.Mj(new _.NJ("Unexpected missing prefetch task when deleting task.",t,G==null?void 0:G.message));return y};var Jq4=function(X,t,G,y,w){this.id=X;this.triggerOn=t;this.cancelOn=G;this.command=y;this.proto=w};
_.ke.Object.defineProperties(Jq4.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var BoT=function(){this.JSC$18085_prefetchCoordinator=wSq();$zV||($zV=new k8);this.defaultCoordinator=$zV},nhq;
BoT.getInstance=function(){nhq||(nhq=new BoT);return nhq};
BoT.prototype.get=function(X){switch(X){case 0:return this.JSC$18085_prefetchCoordinator;default:return this.defaultCoordinator}};var gF=function(){this.coordinatorSupplier=BoT.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},kBH=function(X){var t=_.lw()||void 0,G=Object.keys(VY2)[0];
if(G){var y=X.taskIdByTriggerId.get(G);if(y!=null){X.taskIdByTriggerId.delete(G);G=[];y=_.J(y);for(var w=y.next();!w.done;w=y.next())if(w=X.tasks.get(w.value))t!=="UNDEFINED_CSN"&&(w.csn=t),G.push(w);G=JNl(G);t=[];G=_.J(G);for(y=G.next();!y.done;y=G.next()){w=_.J(y.value);y=w.next().value;w=w.next().value;y=X.coordinatorSupplier.get(y).queueAll(w);y=_.J(y);var z=y.next();for(w={};!z.done;w={taskId$jscomp$9:void 0},z=y.next()){var B=_.J(z.value);z=B.next().value;B=B.next().value;w.taskId$jscomp$9=
z;z=B;t.push(w.taskId$jscomp$9);X.queuedPromisesByTask.set(w.taskId$jscomp$9,_.R8(z,function(V){return function(){b4T(X,V.taskId$jscomp$9)}}(w)))}}}}else _.Mj(new _.NJ("Unexpected malformed TriggerEvent."))};
gF.prototype.trigger=function(X,t){var G=this,y=this.tasks.get(X);if(!y||this.queuedPromisesByTask.has(X))return!1;dzQ(this,X,y.triggerOn);t!=="UNDEFINED_CSN"&&(y.csn=t);t=this.coordinatorSupplier.get(y.taskType).queue(y);this.queuedPromisesByTask.set(X,_.R8(t,function(){b4T(G,X)}));
return!0};
gF.prototype.cancel=function(X){var t=this.queuedPromisesByTask.get(X);if(t)t.cancel();else return b4T(this,X)};
var b4T=function(X,t){X.queuedPromisesByTask.delete(t);var G=X.tasks.get(t);if(!G)return!1;X.tasks.delete(t);dzQ(X,t,G.triggerOn);(G=ops(G.cancelOn))&&(X=X.taskIdByCancelId.get(G))&&X.delete(t);return!0},dzQ=function(X,t,G){(G=Object.keys(G)[0])&&(X=X.taskIdByTriggerId.get(G))&&X.delete(t)};var VY2={taskRegistered:{}},Ff=function(){gF.instance||(gF.instance=new gF);this.JSC$18094_taskManager=gF.instance};
_.S(Ff,yD);
Ff.prototype.resolveCommand=function(X){var t=this,G,y;return _.n(function(w){G=_.Y(X,DWB);if((y=G)==null||!y.tasks){var z=new _.NJ("RegisterTasksCommand is missing tasks.");_.xA(z);return w.return()}z=t.JSC$18094_taskManager;for(var B=_.J(G.tasks),V=B.next();!V.done;V=B.next())if(V=V.value,V=V.id&&V.triggerOn&&V.cancelOn&&V.command?new Jq4(V.id,V.triggerOn,V.cancelOn,V.command,V):void 0,V){var b=Object.keys(V.triggerOn)[0];if(b){var e=ops(V.cancelOn);e?(z.tasks.set(V.id,V),z.taskIdByTriggerId.has(b)||z.taskIdByTriggerId.set(b,
new Set),z.taskIdByTriggerId.get(b).add(V.id),z.taskIdByCancelId.has(e)||z.taskIdByCancelId.set(e,new Set),z.taskIdByCancelId.get(e).add(V.id)):_.Mj(new _.NJ("Unexpected malformed cancelOn field."))}else _.Mj(new _.NJ("Unexpected malformed triggerOn field."))}else _.Mj(new _.NJ("Unexpected malformed Task proto."));kBH(t.JSC$18094_taskManager);_.W$(w)})};var eeN={},jq4=(eeN.rendered={priority:0,callback:function(){var X={};X.numCpu=navigator.hardwareConcurrency;var t={};t.ramGb=_.tA.navigator.deviceMemory;var G={staticContext:{}};t.ramGb&&BU6(t.ramGb)&&(G.staticContext.memoryTotalKbytes=(t.ramGb*1048576).toString());X.numCpu&&BU6(X.numCpu)&&(G.staticContext.cpuCores=X.numCpu);if(_.A("web_enable_adaptive_appl_signal")){X={};t=_.XV("rses_dpj");var y=_.XV("rsef_dpj");t&&t>0&&y&&y>0&&(t=Math.ceil(y-t),t>0&&(X.loadLatency=t));X.loadLatency&&BU6(X.loadLatency)&&
(G.appL=X.loadLatency.toString())}_.a7("applicationStarted",G)}},eeN);var gh4=new _.FB("WINDOW_ON_ERROR"),FtH=new _.FB("ERROR_WEIGHT_MAPS"),ToQ=new _.FB("INIT_ERROR");var AqH={},YqB=(AqH.initialized={priority:10,callback:function(X){X.injector.resolve(ToQ)()}},AqH);var sqq=function(){},DzH=function(){var X=_.GA("meta_logger_impl");
X||(X=new sqq,_.dl("meta_logger_impl",X));return X},Sqv=function(){DzH().csiSubscriptionKey=XW0("meta_logging_csi_event",function(X){var t=X.timerName;
if(X=X.timelineData){_.aa(t,{startTime:X.startTime},t);X.infos&&_.vP(X.infos,t);for(var G=_.J(Object.keys(X.ticks)),y=G.next();!y.done;y=G.next())y=y.value,_.ls(y,X.ticks[y],t)}})};
sqq.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&GqG(this.csiSubscriptionKey)};var heN={},Z42=(heN.initialized={priority:10,callback:function(){Sqv()}},heN);var qq4=function(X,t){this.innertubeClientName=X;this.JSC$18110_prefCookie=t};
qq4.prototype.record=function(){if(_.A("web_li_record_binary_eval_tick")){var X=_.XV("rsef_dpj");var t=_.XV("rses_dpj");X=X!==void 0&&t!==void 0?Math.round(X-t):void 0;if(X!==void 0&&X>0){t=_.O2(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var G=this.poolSize;if(!(t.valuesSeen>=1E9)){if(t.valuesSample.length<G)t.valuesSample.push(X);else{var y=Math.floor(Math.random()*(t.valuesSeen+1));y<G&&(t.valuesSample[y]=X)}t.valuesSeen+=1}_.Ku(this.storagePrefix+"-"+this.innertubeClientName,
t,2592E3);X=t.valuesSample;t=npJ(X);X=X.length<this.poolSize?void 0:t<400?1:t<1700?2:3;X!==void 0&&(this.JSC$18110_prefCookie.set(this.cookiePrefix+this.innertubeClientName,X),this.JSC$18110_prefCookie.save())}}else _.uj(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18110_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18110_prefCookie.save()};
qq4[gA]=[Rw,TU];var CJQ=function(){qq4.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.S(CJQ,qq4);var Kt2=new _.FB("PAGE_LOAD_TIME_TOKEN");var O4N=function(X){this.signal=X;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;X.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.PO(_.vz,this.disableLoggingAndSendPayload,1E4)};
O4N.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.vz.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),u4r(this))};
var u4r=function(X){var t=_.a4();if(t){var G={webClientComponentsData:{components:Array.from(X.ids,function(y){return{id:y}})}};
X.ids.clear();_.Pj().visualElementStateChanged(t,G)}};var Qqv=new _.FB("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var T0=function(X,t){this.JSC$18139_storeWithEntities=X;this.JSC$18139_commandHandler=t;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
T0.prototype.start=function(){this.JSC$18139_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
T0.prototype.observeDownloadingEntities=function(){var X=_.Oew(this.JSC$18139_storeWithEntities.getState().entities).map(function(y){return ueV(y)});
if(X.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var t={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:BJ_()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Ag(_.Qf("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18139_commandHandler.resolveCommand(t)}this.downloadingEntities=X}else if(this.downloadingEntities.length){var G=K2s(this.JSC$18139_storeWithEntities.getState().entities).map(function(y){return ueV(y)});
this.downloadingEntities.filter(function(y){return G.includes(y)}).length&&(X={openPopupAction:vdV()},this.JSC$18139_commandHandler.resolveCommand(X));
this.downloadingEntities=[]}};
T0[gA]=[Dw,_.F3];var IPV;_.A7=function(X,t,G,y,w,z,B,V){this.JSC$18142_playerApiPromise=X;this.JSC$18142_commandHandler=t;this.JSC$18142_screenManager=G;this.offlineWebClientEligibility=y;this.JSC$18142_prefStorage=w;this.JSC$18142_actionRouter=z;this.entityTypeMap=B;this.JSC$18142_persistentStorePromiseAccessor=V;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
IPV=function(){var X=_.gw().resolve(_.A7),t;_.n(function(G){if(G.nextAddress==1)return X.downloadFailureListenerBound?G.return():G.yield(X.JSC$18142_playerApiPromise,2);t=G.yieldResult;t.addEventListener("onOfflineOperationFailure",function(y){if(y.failureReason&&y.entityKey&&y.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(y.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var w=_.hg(y.entityKey).entityId;w&&X.JSC$18142_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
w)}else if(_.A("kevlar_woffle")){w=X.JSC$18142_commandHandler;var z=w.resolveCommand;y=y.failureReason;var B=_.Qf("TRANSFER_FAILED",void 0,"Download failed");y==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(B=_.Qf("STORAGE_FULL",void 0,"Storage full"));z.call(w,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ag(B),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
X.downloadFailureListenerBound=!0;_.W$(G)})};
_.A7.prototype.deleteVideo=function(X,t){var G=this,y,w,z;return _.n(function(B){if(B.nextAddress==1)return B.yield(G.JSC$18142_playerApiPromise,2);y=B.yieldResult;z={offlineLoggingData:{offlineDeleteReason:(w=t)!=null?w:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return B.yield(y.queueOfflineAction(X,G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",z),0)})};
_.A7.prototype.pauseVideoDownload=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(t.JSC$18142_playerApiPromise,2);G=y.yieldResult;G.pauseVideoDownload(X);_.W$(y)})};
_.A7.prototype.resumeVideoDownload=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(t.JSC$18142_playerApiPromise,2);G=y.yieldResult;return y.yield(G.resumeVideoDownload(X),0)})};
_.A7[gA]=[_.q7,_.F3,_.iR,Qqv,Dg,jO,ln4,Qa];var Wti=new _.FB("DOWNLOAD_STATE_STORE_TOKEN");var cq2=function(X,t){this.JSC$18162_persistentStorePromiseAccessor=X;this.store=t;this.upliftCompletionResolver=new _.Kp},NoN=function(){var X=_.gw().resolve(pSa),t;
_.n(function(G){switch(G.nextAddress){case 1:if(X.upliftImplPromise)return G.return(X.upliftImplPromise);_.CL(G,2);X.upliftImplPromise=rq4(X);return G.yield(X.upliftImplPromise,4);case 4:X.upliftCompletionResolver.resolve();_.zx(G,3);break;case 2:throw t=_.IY(G),X.upliftCompletionResolver.reject(t),t;case 3:return G.return(X.upliftImplPromise)}})},rq4=function(X){var t,G,y;
return _.n(function(w){switch(w.nextAddress){case 1:return _.X3("LOGGED_IN")?w.yield(X.JSC$18162_persistentStorePromiseAccessor(),2):w.return();case 2:t=w.yieldResult;if(!t)return _.ls("vdeur"),w.return();_.ls("vdeus");_.CL(w,3);return w.yield(PJv(t),5);case 5:G=w.yieldResult;X.store.dispatch(eUs(G));t.observe(function(z){jMv(X.store,z)});
_.zx(w,4);break;case 3:throw y=_.IY(w),_.ls("vdeur"),y;case 4:_.ls("vdeuc"),_.W$(w)}})},PJv=function(X){var t;
return _.n(function(G){if(G.nextAddress==1)return G.yield(gph(X),2);t=G.yieldResult;return G.return(t.reduce(function(y,w){if(!w.data||!w.key||!w.entityType)return y;y[w.entityType]||(y[w.entityType]={});y[w.entityType][w.key]=w.data;return y},{}))})};
cq2[gA]=[Qa,_.Gw];var pSa;pSa=new _.FB("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Y8=new _.FB("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var sk=function(X,t){this.JSC$18165_persistentStorePromiseAccessor=X;this.transportService=t};
sk.prototype.refresh=function(){var X=this,t,G,y,w;return _.n(function(z){if(z.nextAddress==1)return _.X3("LOGGED_IN")?z.yield(X.JSC$18165_persistentStorePromiseAccessor(),2):z.return();if(z.nextAddress!=3)return(t=z.yieldResult)?z.yield(XdJ(t),3):z.return();if((G=z.yieldResult)&&!(Number(G.data.refreshTimestampMs||0)<(0,_.gl)()))return z.return();y={browseId:"SPaccount_downloads"};w=_.el(dP);_.t_(X.transportService,y,w).then(function(B){var V;if(t&&(B==null?void 0:(V=B.responseContext)==null?void 0:
V.maxAgeSeconds)!==0){var b;V=(B==null?void 0:(b=B.responseContext)==null?void 0:b.maxAgeSeconds)||604800;b=String(Math.floor((0,_.gl)())+V*1E3);t.put("service:downloads_settings:fallback",new _.qE({innertubeResponse:B,refreshTimestampMs:b}))}});
_.W$(z)})};
sk[gA]=[_.b3,_.Mr];var DV=function(X,t){this.JSC$18169_playerPromise=X;this.store=t;this.started=!1};
DV.prototype.start=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return X.started?G.return():G.yield(X.JSC$18169_playerPromise,2);t=G.yieldResult;t.addEventListener("onOrchestrationBecameLeader",X.updateIsLeader.bind(X,!0));t.addEventListener("onOrchestrationLostLeader",X.updateIsLeader.bind(X,!1));if(t.isOrchestrationLeader)X.updateIsLeader(t.isOrchestrationLeader());else{var y=new _.NJ("Function isOrchestrationLeader is undefined",{"player.isReady":t.isReady(),"player.playVideo":t.playVideo?
"defined":"undefined"});_.xA(y);X.updateIsLeader(!1)}X.started=!0;_.W$(G)})};
DV.prototype.updateIsLeader=function(X){this.store.dispatch(_.Dl({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:X}}))};
DV[gA]=[_.q7,_.Gw];var Ehv=function(X,t){this.networkStatusManager=X;this.JSC$18172_prefStoragePromise=t;this.redirectsToPreload=["https://youtube.com"]},Uz2=function(){var X=_.gw().resolve(Ehv),t,G,y,w,z,B;
_.n(function(V){switch(V.nextAddress){case 1:return V.yield(X.JSC$18172_prefStoragePromise,2);case 2:t=V.yieldResult;if(!(G=t)){V.jumpTo(3);break}return V.yield(t.get("yt-redirect-prefetch-id"),4);case 4:G=V.yieldResult;case 3:if(G||!X.networkStatusManager.isNetworkAvailable())return V.return();y={cache:"reload",redirect:"manual"};w=_.J(X.redirectsToPreload);z=w.next();case 5:if(z.done){if(!t){V.jumpTo(0);break}return V.yield(t.set("yt-redirect-prefetch-id",!0,86400),0)}B=z.value;_.CL(V,8);return V.yield(_.tA.fetch(B,
y),10);case 10:_.zx(V,6);break;case 8:_.IY(V);case 6:z=w.next(),V.jumpTo(5)}})};var SX=function(X){X?(this.container=X,this.containerWasInjected=!0):this.containerWasInjected=!1};
SX.prototype.openDialog=function(X,t,G){var y=this,w;return _.n(function(z){(w=y.container)==null||w.openDialog(X,t,G);_.W$(z)})};
SX.prototype.closeDialog=function(){var X=this,t;return _.n(function(G){(t=X.container)==null||t.closeDialog();_.W$(G)})};
SX.prototype.isDialogOpen=function(){var X=this,t,G;return _.n(function(y){return y.return((G=(t=X.container)==null?void 0:t.isDialogOpen())!=null?G:!1)})};
SX[gA]=[_.jH(QGS)];_.mzr=new _.FB("POPUP_CONTROLLER_TOKEN");var ReH=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
ReH.prototype.registerPanel=function(X,t){if(X){this.panelMap.set(X,t);var G=this.pendingPanelResolvers.get(X);G&&(G.resolve(t),this.pendingPanelResolvers.delete(X))}};
ReH.prototype.getPanel=function(X){var t=this,G;return _.n(function(y){return(G=t.panelMap.get(X))?y.return(G):y.return(i4q(t,X))})};
var i4q=function(X,t){var G,y;return _.n(function(w){if(G=X.pendingPanelResolvers.get(t))return w.return(G.promise);y=new _.Kp;X.pendingPanelResolvers.set(t,y);return w.return(y.promise)})},LtR=function(X){ReH.call(this);
var t=this;this.popupController=X;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return t.panelMap.size}}};
_.S(LtR,ReH);_.H=LtR.prototype;_.H.getReloadContinuation=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(t.getPanel(X),2);G=y.yieldResult;return y.return(G.getReloadContinuation())})};
_.H.showPanel=function(X,t,G,y,w,z,B){var V=this,b,e,g,F;return _.n(function(T){if(T.nextAddress==1){B&&V.updatePanelContinuationDatas.set(X,B);if((b=G)==null?0:(e=b.engagementPanelPopupPresentationConfig)==null?0:e.popupType){g=G.engagementPanelPopupPresentationConfig.popupType;w===void 0&&(w=document.body);var D=T.return,h=V.popupController,u=h.openPopup;a:switch(g){case "PANEL_POPUP_TYPE_DIALOG":var W="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":W="DROPDOWN";break a;default:throw Error("ej`"+
g);}return D.call(T,u.call(h,X,t,W,w))}return T.yield(V.getPanel(X),2)}F=T.yieldResult;(t||z)&&F.updatePanel(t,!1,y,z);F.showPanel(y);_.W$(T)})};
_.H.hidePanel=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(t.getPanel(X),2);G=y.yieldResult;G.hidePanel();t.popupController.closePopup(X);_.W$(y)})};
_.H.isVisible=function(X,t){var G=this,y;return _.n(function(w){if(w.nextAddress==1)return t&&!G.panelMap.has(X)?w.return(!1):w.yield(G.getPanel(X),2);y=w.yieldResult;return w.return(y.isVisible())})};
_.H.updatePanel=function(X,t,G,y,w,z){G=G===void 0?!1:G;var B=this,V;return _.n(function(b){if(b.nextAddress==1){if(!t&&!w)return b.return();z&&B.updatePanelContinuationDatas.set(X,z);return b.yield(B.getPanel(X),2)}V=b.yieldResult;V.updatePanel(t,G,y,w);_.W$(b)})};
_.H.registerPanelContent=function(X,t){X&&this.panelContentMap.set(X,t)};
_.H.unregisterPanelContent=function(X){this.panelContentMap.delete(X)};
_.H.getPanelContent=function(X){return this.panelContentMap.get(X)};
_.H.getUpdatePanelContinuationData=function(X){return this.updatePanelContinuationDatas.get(X)};
LtR[gA]=[_.mzr];var h7=function(X,t){this.innertubeTransportService=X;this.JSC$18188_screenManager=t},vhr=function(X){var t;
return!((t=X.panelLoadingStrategy)==null||!t.requestTemplate)};
h7.prototype.makeRequest=function(X){var t=this,G,y;return _.n(function(w){switch(w.nextAddress){case 1:if(!vhr(t)){w.jumpTo(2);break}_.CL(w,3);return w.yield(_.kW(t.innertubeTransportService,X),5);case 5:return G=w.yieldResult,G?w.return(G.content):(_.xA(Error("fj")),w.return(void 0));case 3:y=_.IY(w),_.xA(y);case 2:return w.return(void 0)}})};
h7.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
h7.prototype.execute=function(X){var t=this,G,y,w,z,B,V,b,e,g,F;return _.n(function(T){if(T.nextAddress==1){G=X;y=G.data;w=G.fallbackVe;z=G.parentVe;B=G.createScreenConfig;V=G.renderFn;b=G.command;t.panelLoadingStrategy=y;var D,h,u=((D=t.panelLoadingStrategy)==null?0:D.screenVe)?(h=t.panelLoadingStrategy)==null?void 0:h.screenVe:w;u&&_.qP(t.JSC$18188_screenManager,u,z,B);return(e=t.getContent())?T.yield(V(e),2):T.jumpTo(2)}return T.nextAddress!=4?vhr(t)?T.yield(t.makeRequest(b),4):T.return():(F=g=
T.yieldResult)?T.yield(V(F),0):T.return()})};
h7[gA]=[_.Mr,_.iR];var ZV=function(){};
ZV.prototype.getContainer=function(){return _.gk()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
ZV.prototype.openSheet=function(X,t){var G=this,y,w,z,B,V,b;return _.n(function(e){switch(e.nextAddress){case 1:return y={stack:[],error:void 0,hasError:!1},_.CL(e,2,3),w=Bm,e.yield(G.isSheetOpen(),5);case 5:z=e.yieldResult;xvs(y,VDG(w));if(z){if(t&&G.currentTarget===t)return(B=G.getContainer())==null||B.closeSheet(),e.return();G.pendingData={data:X,target:oJq(G,t)};return e.return()}X.viewModel&&(X={viewModel:X.viewModel});(V=G.getContainer())==null||V.openSheet(X,t);G.currentTarget=t;case 3:_.O6(e);
fc_(y);_.Qb(e,0);break;case 2:b=_.IY(e),y.error=b,y.hasError=!0,e.jumpTo(3)}})};
ZV.prototype.closeSheet=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return G.yield((t=X.getContainer())==null?void 0:t.closeSheet(),2);if(G.nextAddress!=4)return X.currentTarget=void 0,X.pendingData?G.yield(X.openSheet(X.pendingData.data,X.pendingData.target),4):G.jumpTo(0);X.pendingData=void 0;_.W$(G)})};
ZV.prototype.isSheetOpen=function(){var X=this,t,G;return _.n(function(y){return y.return((G=(t=X.getContainer())==null?void 0:t.isSheetOpen())!=null?G:!1)})};
var oJq=function(X,t){if(!_.A("web_parent_target_for_sheets"))return t;var G,y;return(y=(G=X.getContainer())==null?void 0:G.getParentTarget(t))!=null?y:t};var Sw=window.documentPictureInPicture;var K5s=_.Vc(["dark"]),OI0=_.Vc(["system-icons"]),u16=_.Vc(["typography"]),QB6=_.Vc(["lang"]),IEG=_.Vc(["style"]),hah=_.Vc(["dir"]),ZIY=_.Vc(["rounded-container"]),qnA=_.Vc(["style"]),cNV=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],qa=function(X){this.JSC$18200_clientRoot=X;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
qa.prototype.openWindow=function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1)return window.documentPictureInPicture&&_.K_()&&!t.currentPipWindow?w.yield((G=Sw?Sw:null)==null?void 0:G.requestWindow(X),2):w.return(!1);if(w.nextAddress!=3){y=w.yieldResult;if(!y)return w.return(!1);y.addEventListener("pagehide",function(){aPQ(t)});
y.addEventListener("resize",t.handlePipWindowResize);t.pipWindowResizeDelay=new _.jb(function(){t.currentPipWindow&&_.sl(t.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.IH(t.currentPipWindow.innerWidth,t.currentPipWindow.innerHeight)])},y);
W5f(y);rNl(y);return w.yield(Sn0(y),3)}if(!YnG())return w.return(!1);t.currentPipWindow=y;t.JSC$18200_eventForwarder=pdh(y,t.JSC$18200_clientRoot);t.pipWindowResizeDelay.start();return w.return(!0)})};
qa.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var aPQ=function(X){if(X.currentPipWindow){var t,G;(t=Sw?Sw:null)==null||(G=t.window)==null||G.close();X.currentPipWindow.removeEventListener("resize",X.handlePipWindowResize);var y;(y=X.pipWindowResizeDelay)==null||y.dispose();X.pipWindowResizeDelay=void 0;var w;(w=X.JSC$18200_eventForwarder)==null||w.stop();X.JSC$18200_eventForwarder=void 0;t=_.J(X.onCloseCallbacks);for(G=t.next();!G.done;G=t.next())G=G.value,G();X.onCloseCallbacks=[];X.currentPipWindow=null}};
qa.prototype.getWindow=function(){return this.currentPipWindow};
var lPN=function(X,t){var G;(G=X.onCloseCallbacks)==null||G.push(t)};
qa.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.K_()};
_.ke.Object.defineProperties(qa.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
qa[gA]=[XoB];var xzi=new _.FB("PICTURE_IN_PICTURE_CONTROLLER");var NUs=function(X,t){this.lengthY=this.lengthX=0;this.lengthX=t.x-X.x;this.lengthY=t.y-X.y};var fPv=function(){},VsN=function(X,t){var G;
(G=X.headerElement)==null||G.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:t}))};var MYv=function(){};
MYv.prototype.openPopup=function(X,t,G,y){var w=this,z;return _.n(function(B){if(!w.container)return B.return();z={openPopupAction:{popup:t,popupType:G,uniqueId:X}};return B.return(w.container.handleOpenPopupAction(z,y))})};
MYv.prototype.closePopup=function(X){this.container&&this.container.closePopup(X)};var X44=function(){this.openTunnels=new Map},b3G=function(X,t,G){if(iI_(G)){var y=_.XO(G,"gclid");
G={handleEvent:function(V){t&&!t.closed&&typeof t.postMessage==="function"&&V&&V.origin&&V.source===t&&V.data&&V.data.action==="gcl_setup"&&t.postMessage(Object.assign({},{action:"gcl_transfer"},y&&{gclid:y},{gadSource:2}),V.origin)}};
for(var w=_.J(X.openTunnels),z=w.next();!z.done;z=w.next()){var B=_.J(z.value);z=B.next().value;B=B.next().value;if(z.closed)try{window.removeEventListener("message",B),X.openTunnels.delete(z)}catch(V){_.xA(V)}}t&&X.openTunnels.size<15&&(X.openTunnels.set(t,G),window.addEventListener("message",G))}};var $RQ=function(){this.clientParams=new Map},Bs4=function(X){for(var t=_.J(X.clientParams.keys()),G=t.next();!G.done;G=t.next())G=G.value,G.startsWith("yt-mini-app-share")&&X.clientParams.delete(G)};var tqT=function(X,t){_.po.call(this);var G=this;this.shortsController=X;this.storeWithShorts=t;X=_.rz(this.storeWithShorts,_.JdV,function(y){if(y){var w,z=(w=G.shortsController.getRoot())==null?void 0:w.getPlayer(),B;(w=(B=G.shortsController.alternativePlayerContainerElement)==null?void 0:B.getPlayerContainer())&&(z==null||z.appendTo(w))}else{var V;B=(V=G.shortsController.alternativePlayerContainerElement)==null?void 0:V.getPlayerContainer().querySelector("#player");w=G.shortsController.activeIndex;
(V=(z=G.shortsController.getRoot())==null?void 0:z.querySelector('ytd-reel-video-renderer[id="'+w+'"] #player-container'))&&(B==null||B.appendTo(V,void 0,!0))}});
this.addOnDisposeCallback(X)};
_.S(tqT,_.po);var C3=function(X,t,G,y,w){var z=this;this.storeWithShorts=X;this.ephemeralResponseStore=t;this.store=G;this.innertubeTransportService=y;this.innertubeTransportLoader=w;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.w5(_.Oe);this.isShortsPipActive=_.w5(_.u7);this.nextReelVe=_.ai(56921);this.prevReelVe=_.ai(56922);this.backButtonVe=_.ai(22156);this.TEST_ONLY={getActiveModules:function(){return z.activeModules}}},GrH=function(X){X.unsubscribeFromStore=
_.rz(X.storeWithShorts,_.okJ,function(t){X.initOrDisposeActiveModules(t);
!t&&X.storeWithShorts.getState().shorts.isFullscreen&&(_.Fi(document.documentElement),X.storeWithShorts.dispatch(_.t1Y(!1)))});
X.initOrDisposeActiveModules(_.okJ(X.storeWithShorts.getState()))},Gbq,yYP,yQH;
C3.prototype.initOrDisposeActiveModules=function(X){X?this.activeModules.push(new tqT(this,this.storeWithShorts)):(_.bf(this.activeModules),this.activeModules.length=0)};
C3.prototype.registerRootElement=function(X){this.rootElement=X;GrH(this)};
C3.prototype.getRoot=function(){return this.rootElement};
C3.prototype.setActiveIndex=function(X){this.activeIndex=X};
_.xKP=function(X,t){var G,y,w,z,B,V,b;return _.n(function(e){switch(e.nextAddress){case 1:return G=new c2,(y=G.JSC$12984_getStoreKey(t))&&X.ephemeralResponseStore.has(y)?e.yield(X.ephemeralResponseStore.get(y),7):e.yield(yQH(X,t),4);case 4:w=e.yieldResult;if(!y){e.jumpTo(3);break}z=K5(w,3600);return e.yield(X.ephemeralResponseStore.put(y,new _.qE(z)),3);case 7:w=(B=e.yieldResult)==null?void 0:_.Yl(B);case 3:return((V=w)==null?0:V.replacementEndpoint)&&(b=_.Y(w.replacementEndpoint,_.E8))&&w.sequenceContinuation&&
(b.sequenceParams=w.sequenceContinuation),e.return(w)}})};
Gbq=function(X,t){t=(new pQ).JSC$12984_getStoreKey(t);return!!t&&X.ephemeralResponseStore.has(t)};
yYP=function(X,t,G){var y,w,z,B,V;_.n(function(b){if(b.nextAddress==1){y=new pQ;w=y.JSC$12984_getStoreKey(t);if(!w)return b.return();if(G.reelWatchSequenceResponse)return z=K5(G.reelWatchSequenceResponse,3600),X.ephemeralResponseStore.put(w,new _.qE(z)),b.jumpTo(0);if(!X.ephemeralResponseStore.has(w))return b.jumpTo(0);V=G;return b.yield(X.ephemeralResponseStore.get(w),4)}V.reelWatchSequenceResponse=(B=b.yieldResult)==null?void 0:_.Yl(B);_.W$(b)})};
yQH=function(X,t){var G=G===void 0?{}:G;var y,w,z;return _.n(function(B){switch(B.nextAddress){case 1:if(X.innertubeTransportService){y=X.innertubeTransportService;B.jumpTo(2);break}if(!X.innertubeTransportLoader){_.$x(Error("hj"));B.jumpTo(2);break}return B.yield(X.innertubeTransportLoader(),4);case 4:y=B.yieldResult;case 2:return B.yield((w=y)==null?void 0:_.kW(w,t,G),5);case 5:return z=B.yieldResult,B.return(z)}})};
_.ke.Object.defineProperties(C3.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
C3[gA]=[EUt,_.Zz,Dw,_.jH(_.Mr),_.jH(ceB)];_.w4i=new _.FB("STORAGE_MANAGER_TOKEN");var vp0=["touchmove","scroll"];var fEE={onSpanEnd:function(X){if(X.parent==null){var t=X.name;_.aa(t);xCl(X,t)}}};var zvV=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},HT4;
zvV.prototype.enqueue=function(X,t){t===1?this.currentPersistentToast=X:this.queue.push(X);this.openToast()};
zvV.prototype.openToast=function(){var X;(X=this.currentToast)!=null&&X.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.K3=new _.FB("TOAST_MANAGER_TOKEN");var oVV=new _.FB("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var JQH=new _.FB("VIEW_TRANSITION_COORDINATOR_TOKEN");var Bii=function(X){this.config=X;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;X=_.J(X.transitionConfigs);for(var t=X.next();!t.done;t=X.next())t=_.J(t.value).next().value,this.transitionTasksMap.set(t,[])};
Bii.prototype.registerElement=function(X,t,G){G=G===void 0?!1:G;for(var y=_.J(Object.keys(t)),w=y.next(),z={};!w.done;z={viewTransitionName:void 0},w=y.next()){w=w.value;z.viewTransitionName=t[w];var B=this.elementTasksMap.get(X),V=void 0;if((V=B)==null?0:V.has(w)){_.fh(new _.NJ("Element already registered for transition",X.tagName,w));break}B=B||new Map;B.set(w,{beforeTransition:function(b){return function(){X.style.viewTransitionName=b.viewTransitionName}}(z),
afterTransition:function(){X.style.viewTransitionName&&(X.style.viewTransitionName="")},
runOnce:G});this.elementTasksMap.set(X,B)}};
_.Bv=function(X,t){var G=X.elementTasksMap.get(t);G&&(G.clear(),G.size===0&&X.elementTasksMap.delete(t))};
Bii[gA]=[oVV];var nVi;_.Vqv=_.Fp(function(X){return _.k("basic-content-view-model",{class:_.cl("ytBasicContentViewModelHost",_.ex(X.className))},_.k(_.d,{cond:function(){return X.data().headline},
then:function(t){return _.k("div",{class:"ytBasicContentViewModelHeadline"},_.k(_.eh,{text:t}))}}),_.k(_.pY,{each:function(){return X.data().paragraphs||[]},
keyBy:"INDEX"},function(t){return _.k("div",{class:"ytBasicContentViewModelParagraph"},_.k(_.d,{cond:function(){var G=t();return!!(G.header||G.customHeader||G.headline)},
then:function(){return _.k(nVi,{paragraph:t})}}),_.k(_.d,{cond:function(){return t().asset||t().text},
then:function(){return _.k("div",{class:"ytBasicContentViewModelParagraphContent"},_.k(_.d,{cond:function(){return t().asset},
then:function(G){return _.k("div",{class:"ytBasicContentViewModelParagraphAsset"},_.k(_.M7,{data:G},{contentPreviewImageViewModel:_.sY}))}}),_.k(_.d,{cond:function(){return t().text},
then:function(G){return _.k("div",{class:"ytBasicContentViewModelParagraphText"},_.k(_.eh,{text:G}))}}))}}))}))},"ze");
nVi=_.Fp(function(X){var t=X.paragraph;return _.k(_.gn,null,_.k(_.d,{cond:function(){return t().headline},
then:function(G){return _.k(_.eh,{text:G,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.k(_.M7,{data:function(){return t().header||t().customHeader}},{sectionHeaderViewModel:function(G){return _.k(_.C0,{data:G.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ae");var kr4=_.Fp(function(X){var t=_.nl("yt-expandable-metadata-header-view-model"),G=_.NI(function(y){if(!_.GF(_.t4(y),t.value,["A".toString(),"BUTTON".toString()])){var w;(w=X.expandedCallback)==null||w.call(X,!1)}});
return _.k("yt-expandable-metadata-header-view-model",{el:t,class:"ytExpandableMetadataHeaderViewModelHost"},_.k(_.d,{cond:function(){return X.expanded()},
then:function(){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":G},_.k("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.k(_.d,{cond:function(){return X.data().expandedTitleImage},
then:function(y){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.k(_.gr,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:y}))}}),_.k("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.k("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.k(_.eh,{text:function(){return X.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.k(_.eh,{text:function(){return X.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.k(_.eh,{text:function(){return X.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.k("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.k(_.M7,{data:function(){return X.data().infoButton}},{buttonViewModel:_.QK}),_.k(_.M7,{data:function(){return X.data().collapseButton}},{buttonViewModel:function(y){return _.k(_.QK,{data:y.data,
onClick:function(){var w;(w=X.expandedCallback)==null||w.call(X,!1)}})}})))},
else:function(){return _.k(bTR,Object.assign({},X))}}))},"Be"),dRB=_.Fp(function(X){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.k(_.d,{cond:function(){return X.data().collapsedLabelImage},
then:function(t){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.k(_.gr,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:t,alt:""}))}}),_.k(_.eh,{text:function(){return X.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ce"),bTR=_.Fp(function(X){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.NI(function(){var t;return void((t=X.expandedCallback)==null?void 0:t.call(X,!0))})},_.k("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.k(_.d,{cond:function(){return X.data().collapsedImage},
then:function(t){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.k(_.gr,{width:16,height:16,data:t,alt:""}))}}),_.k(_.d,{cond:function(){return X.data().showLeadingCollapsedLabel},
then:function(){return _.k(dRB,Object.assign({},X))}}),_.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.k(_.eh,{text:function(){return X.data().collapsedTitle}}))),_.k("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.k(_.d,{cond:function(){return!X.data().showLeadingCollapsedLabel},
then:function(){return _.k(dRB,Object.assign({},X))}}),_.k(_.M7,{data:function(){return X.data().infoButton}},{buttonViewModel:_.QK}),_.k(_.M7,{data:function(){return X.data().expandButton}},{buttonViewModel:function(t){return _.k(_.QK,{data:t.data,
onClick:function(){var G;(G=X.expandedCallback)==null||G.call(X,!0)}})}})))},"De");_.evT=_.Fp(function(X){var t=_.J(_.Ed(function(){return X.data().initiallyExpanded})),G=t.next().value,y=t.next().value,w,z=(w=_.gw().resolve(_.jH(_.kI)))==null?void 0:w(),B=function(){var V=X.data().colorData;
if(V)return z?V==null?void 0:V.darkColorPalette:V==null?void 0:V.lightColorPalette};
return _.k("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Ud({"background-color":function(){var V=B();return(V==null?0:V.section2Color)?_.yY(V.section2Color):""}})},_.k(_.M7,{data:function(){return X.data().header}},{expandableMetadataHeaderViewModel:function(V){return _.k(kr4,{data:V.data,
expanded:function(){return!!G()},
expandedCallback:function(b){y(b)}})}}),_.k(_.d,{cond:function(){return G()},
then:function(){return _.k("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.k(_.M7,{data:function(){return X.data().expandedContent}},{horizontalShelfViewModel:function(V){return _.k(_.$2,{data:V.data,
includeMargin:!0,forceNarrowLayout:!0,palette:B})},
videoSummaryContentViewModel:function(V){return _.k(qoh,{data:V.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(V){return _.k(_.qL,{data:V.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(V){return _.k(_.Vqv,{data:V.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.k(_.M7,{data:function(){return X.data().expandedBottomButtons}},{buttonViewModel:function(V){return _.k("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.k(_.QK,{data:V.data}))}}))}}))},"Ee");var jNB=_.Fp(function(X){var t=X.text;var G=X.marqueeSpacing;var y=X.scrollDelay;var w=X.scrollDuration;var z=X.enableMarqueeScroll;X=X.large;var B=_.J(_.sm(!1,void 0,"kfNqfd")),V=B.next().value,b=B.next().value,e=_.J(_.sm(0,void 0,"bYgZbf"));B=e.next().value;var g=e.next().value,F=_.nl("marquee-scroll");e=_.nl("div");var T=_.nl("span"),D=_.gw().resolve(_.e_);_.Em(function(){if(z()){var W=T.value.getBoundingClientRect().width,c=F.value.getBoundingClientRect().width;if(W>c){var P=(D==="ltr"?-1:1)*
(W+(G?G():16));Promise.resolve().then(function(){b(!0);g(P)})}}},"giRlme");
var h={},u={};return _.k("marquee-scroll",{class:_.cl("ytMarqueeScrollHost",(h.ytMarqueeScrollHostLarge=X,h)),el:F},_.k("div",{id:"marquee-scroll-inner-container",class:_.cl("ytMarqueeScrollInnerContainer",(u.ytMarqueeScrollAnimationEnabled=function(){return V()},u)),
el:e,style:_.Ud({gap:G?(0,_.xB)(G):"16px","animation-duration":w?YUR(w):"16s","animation-delay":y?YUR(y):"3s","--marquee-translate":(0,_.xB)(B)})},_.k("span",{el:T,dir:"auto"},_.k(_.eh,{text:t,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.k(_.d,{cond:V,then:function(){return _.k("span",{"aria-hidden":"true",dir:"auto"},_.k(_.eh,{text:t,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fe");_.gVH=_.Fp(function(X){var t=X.data;var G=X.overlayDensity;X=_.NI(function(){t().onTapCommand&&_.JH(t().onTapCommand);return!1});
var y=_.On_(),w=function(){return(G==null?void 0:G())===1?22:16},z={};
return _.k("reel-sound-metadata-view-model",{class:_.cl("ytReelSoundMetadataViewModelHost",(z.ytReelSoundMetadataViewModelHostLarge=function(){return(G==null?void 0:G())===1},z)),
"on:click":X,tabindex:0,role:"button","on:keydown":y},_.k("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.k(_.d,{cond:function(){return t().musicIcon},
then:function(B){return _.k(_.gr,{data:B,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:w})}}),_.k("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.k(jNB,{text:function(){return t().soundMetadata},
enableMarqueeScroll:function(){return!!t().enableMarqueeScroll},
large:function(){return(G==null?void 0:G())===1}}))))},"Ge");var Fav,TiV,Ok,DR4,hvi,sN4,C2H,qRi;Fav=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];TiV=_.At("wil_icon_max_concurrent_fetches",Infinity);
Ok=function(X,t,G){var y=this;this.iconSet=X;this.appDirection=t;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.tA.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.A("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.A("wil_icon_network_first");this.renderWhenIdle=_.A("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.A("wil_icon_load_immediately");this.isPurging=!1;X=function(){y.cacheStorageAvailable&&(y.cacheStorageAsync=_.tA.caches.open("yt-icons").then(function(z){return y.cacheStorageSync=z}).catch(function(){y.cacheStorageAvailable=!1}))};
G=(G==null?void 0:G())||{};G=_.J(Object.entries(G));for(t=G.next();!t.done;t=G.next()){var w=_.J(t.value);t=w.next().value;w=w.next().value;w=KY(w);AQQ(w);this.iconCache[t]=w.cloneNode(!0)}this.isPurging=YRR(this);this.isPurging instanceof Promise?this.isPurging.then(X):X()};
_.Ccv=function(X,t){var G=X.resolveIcon(t);return G?X.renderingMode===1?sN4(X,G,X.renderingMode):(t=X.iconCache[G.url])?(t=t.cloneNode(!0),DR4(X,t),sN4(X,G,X.renderingMode,t)):_.SRT(X,G).then(function(y){var w=y?0:1;DR4(X,y);return sN4(X,G,w,y)}):(_.fh(new _.NJ("Icon not found",{iconShape:t})),function(){})};
DR4=function(X,t){if(t){X.counter+=1;X="_yt"+X.counter;t=[t].concat(_.RY(t.getElementsByTagName("*")));t=_.J(t);for(var G=t.next();!G.done;G=t.next())if(G=G.value,G.tagName==="style"&&G.textContent)G.textContent=hvi(G.textContent,X,!0);else for(var y=_.J(G.attributes),w=y.next();!w.done;w=y.next()){w=w.value;w.name==="id"&&(w.value+=X);["mask","fill","clip-path"].includes(w.name)&&(w.value=hvi(w.value,X));if(w.name==="style"){var z=G.style;try{z.cssText=hvi(z.cssText,X,!0)}catch(g){var B=void 0,V=
void 0,b=void 0,e=void 0;u3({error:((B=g)==null?void 0:(b=(V=B).toString)==null?void 0:b.call(V))||"",el:G.outerHTML,style:!!z,cssText:(e=z)==null?void 0:e.cssText})}}w.name==="xlink:href"&&(w.value=w.value.replace(/#(.*)/,"#$1"+X))}}};
hvi=function(X,t,G){var y=/url\(["']?#(.*?)["']?\)/;(G===void 0?0:G)&&(y=/url\(["']?#(.*?)["']?\)/g);return X.replace(y,"url(#$1"+t+")")};
sN4=function(X,t,G,y){return function(w,z){var B=Object.assign({},{iconColor:"currentcolor",iconWidth:t.size+"px",iconHeight:t.size+"px",iconDisplay:"block"},z);z=_.OF("DIV");var V=B.iconColor,b=B.iconFilter;B="width: "+B.iconWidth+"; height: "+B.iconHeight+"; display: "+B.iconDisplay+";";b&&(B+=" filter: "+b+";");G===0&&(B+=" fill: "+V+";");G===1&&(b=t.url,B+=" -webkit-mask: url("+b+") no-repeat center / cover; mask: url("+(b+") no-repeat center / cover; background-color: ")+V);t.allowMirroring&&
X.appDirection==="rtl"&&(B+=" transform: scale(-1, 1); transform-origin: center center;");z.setAttribute("style",B);G===0&&y&&z.appendChild(y);w.appendChild(z)}};
_.SRT=function(X,t){var G,y,w;return _.n(function(z){G=function(B){return tI(B)};
y=t.url;if(!ZTq(y))throw Error("jj");w=qRi(X,y);return z.return(w.then(function(B){return B.clone().text()}).then(function(B){var V=G(B);
B=t.size;var b=_.OF("DIV");_.b8(b,V);V=_.uf(b.firstElementChild!==void 0?b.firstElementChild:_.X4S(b.firstChild,!0));B=AQQ(V,B);X.iconCache[y]=B.cloneNode(!0);delete X.responsePromises[y];return B}).catch(function(){}))})};
C2H=function(X){var t,G=(t=X.requestAninmationFrameResolver)==null?void 0:t.promise;G||(X.requestAninmationFrameResolver=new _.Kp,G=X.requestAninmationFrameResolver.promise,_.tA.requestAnimationFrame(function(){var y;(y=X.requestAninmationFrameResolver)==null||y.resolve();X.requestAninmationFrameResolver=null}));
return G};
qRi=function(X,t){var G,y;return _.n(function(w){if(w.nextAddress==1)return X.waitForAnimationFrame?w.yield(C2H(X),2):w.jumpTo(2);G=X.responsePromises[t];G||(y=function(){var z,B,V;return _.n(function(b){switch(b.nextAddress){case 1:if(!X.cacheStorageAvailable){z=void 0;b.jumpTo(2);break}if(B=X.cacheStorageSync){b.jumpTo(3);break}return b.yield(X.cacheStorageAsync,4);case 4:B=b.yieldResult;case 3:z=B;case 2:return V=z,X.isNetworkFirstStrategy?b.return(X.fetchAndUpdateCache(t,V).catch(X.getCacheStorageResponse.bind(X,
t,V))):b.return(X.getCacheStorageResponse(t,V).catch(X.fetchAndUpdateCache.bind(X,t,V)))}})},G=X.renderWhenIdle?new Promise(function(z,B){_.PO(_.vz,function(){y().then(z).catch(B)},10)}):y(),X.responsePromises[t]=G);
return w.return(G.catch(function(z){delete X.responsePromises[t];u3({error:(z==null?0:z.toString)?z.toString():"",url:t});throw z;}))})};
Ok.prototype.fetchAndUpdateCache=function(X,t){var G=this;return _.n(function(y){return y.return(KaV(G,X).then(function(w){OTr(G,X,w,t);return w}))})};
var KaV=function(X,t){var G;return _.n(function(y){if(X.numFetches<TiV)return X.numFetches+=1,y.return(uHv(X,t).finally(function(){--X.numFetches;if(Object.keys(X.queuedResponseResolvers).length){var w=Object.keys(X.queuedResponseResolvers)[0],z=X.queuedResponseResolvers[w];delete X.queuedResponseResolvers[w];z.resolve(KaV(X,w))}}));
G=new _.Kp;X.queuedResponseResolvers[t]=G;return y.return(G.promise)})},uHv=function(X,t,G){G=G===void 0?2:G;
var y;return _.n(function(w){y={credentials:"same-origin",priority:"low"};return w.return(_.tA.fetch(t,y).then(function(z){return z.ok?z:Promise.reject(Error("kj`"+z.status+"`"+z.statusText))}).catch(function(z){if(G>0)return uHv(X,t,G-1);
throw z;}))})},OTr=function(X,t,G,y){_.n(function(w){return y?w.return(new Promise(function(z){_.PO(_.vz,function(){var B,V;
return _.n(function(b){switch(b.nextAddress){case 1:if(!X.isNetworkFirstStrategy){B=void 0;b.jumpTo(2);break}return b.yield(y.match(t).catch(function(){}),3);
case 3:B=b.yieldResult;case 2:if(V=B){b.jumpTo(4);break}return b.yield(y.put(t,G.clone()).catch(function(e){u3({error:(e==null?0:e.toString)?e.toString():"",url:t})}),4);
case 4:z(),_.W$(b)}})},50)})):w.return()})};
Ok.prototype.getCacheStorageResponse=function(X,t){return _.n(function(G){return t?G.return(t.match(X).then(function(y){return y&&y.ok?y:Promise.reject()})):G.return(Promise.reject())})};
var AQQ=function(X,t){t===void 0||X.getAttribute("viewBox")||X.setAttribute("viewBox","0 0 "+t+" "+t);X.setAttribute("focusable","false");X.setAttribute("aria-hidden","true");try{X.style.pointerEvents="none",X.style.display="inherit",X.style.width="100%",X.style.height="100%"}catch(w){var G;u3({error:((G=w)==null?0:G.toString)?w.toString():""});try{X.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(z){var y;u3({error:((y=z)==null?0:y.toString)?z.toString():
""})}}return X},ZTq=function(X){for(var t=_.J(Fav),G=t.next();!G.done;G=t.next())if(X.startsWith(G.value)&&X.endsWith(".svg"))return!0;
return!1};
Ok.prototype.resolveIcon=function(X){return this.iconSet.resolveIcon(X)};
var u3=function(X){_.Mj(new _.NJ("Error in IconManager",X))},YRR=function(X){if(_.A("wil_icons_cache_purge_killswitch"))return!1;
try{var t=_.tA.localStorage}catch(z){return!1}if(!t||!X.cacheStorageAvailable)return!1;var G=function(z){try{var B;(B=t)==null||B.setItem("yt-icons-last-purged",z.toString())}catch(b){var V;u3({error:((V=b)==null?0:V.toString)?b.toString():""})}},y=Number(t.getItem("yt-icons-last-purged"));
if(!y)return y=new Date,y=y.setDate(y.getDate()-Math.floor(Math.random()*90+1)),G(y),!1;if(function(z,B){z=new Date(z);B=new Date(B);return B.getMonth()-z.getMonth()+12*(B.getFullYear()-z.getFullYear())}(y,Date.now())<3)return!1;
try{return _.tA.caches.delete("yt-icons").then(function(z){z&&G(Date.now());return z}).catch(function(){return!1}).finally(function(){X.isPurging=!1})}catch(z){var w;
u3({error:((w=z)==null?0:w.toString)?z.toString():""});return!1}};
Ok[gA]=[c5S,_.e_,_.jH(NyP)];_.Qv=function(X,t){this.iconManager=X;this.iconsToFetch=t};
_.Qv[gA]=[_.IL,_.jH(r5J)];var QNN=function(){};var IHQ=function(X,t,G){this.requestKey=X;this.jmS=t;this.rrb=G;this.gRg=function(){return new XMLHttpRequest};
this.qNb=void 0;this.iJi=[]};
IHQ.prototype.getLatestChallengeResponse=function(){return this.rrb};
var wpP=function(X,t,G){var y,w,z,B;return _.n(function(V){if(V.nextAddress==1){_.aa("attestation_challenge_fetch");_.ls("att_fs",void 0,"attestation_challenge_fetch");if(!X.qNb)throw new _.LU(9,"Missing fetcher");return V.yield(X.qNb(t,G),2)}y=V.yieldResult;z=(w=y)==null?void 0:w.bgChallenge;if(!z)throw new _.LU(15,"Missing field");X.rrb=y;X.iJi.forEach(function(b){b(y)});
B=fJs(z);_.ls("att_fc",void 0,"attestation_challenge_fetch");mDv("attestation_challenge_fetch");return V.return(B)})},Zo4=function(X,t){var G,y,w,z,B;
return _.n(function(V){switch(V.nextAddress){case 1:G=new sF(100,3E5,.25,2),y=void 0;case 2:if(!(G.currBackoffCount_<10)){V.jumpTo(4);break}_.CL(V,5);if(!(G.currBackoffCount_>0)){V.jumpTo(7);break}return V.yield(XnV(G.getValue()),7);case 7:return V.yield(WaR(X,t),9);case 9:return w=V.yieldResult,V.return(w);case 5:z=_.IY(V);z instanceof _.LU?y=z:(B=z instanceof Error?z.message:"Unknown",y=new _.LU(9,B));dB4(G);V.jumpTo(2);break;case 4:if(y)throw y;throw new _.LU(9,"Unknown error");}})},WaR=function(X,
t){t=vTS(aAq(new Lbq,t),X.requestKey);
var G=new _.Kp,y=X.gRg();y.open("POST",X.jmS);y.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");y.setRequestHeader("Content-Type","application/json+protobuf");y.onload=function(){if(_.Fxf(y)){var w=Gy4(y.responseText);G.resolve(w)}else G.reject(new _.LU(_.cfV(_.Du(y)),y.statusText))};
y.onerror=function(){G.reject(new _.LU(_.cfV(_.Du(y)),y.statusText))};
y.send(t.serialize());return G.promise};var p4Q=function(X){this.networkStatusManager=X;this.isDownloaded=$CA===void 0?function(){return!1}:$CA;
this.isReady=!1;this.c2u=cQH(this)},cQH=function(X){var t;
return _.n(function(G){if(G.nextAddress==1)return G.yield(e8h(),2);if(G.nextAddress!=3)return t=G.yieldResult,G.yield(ggP(t),3);X.dK=G.yieldResult;tyJ(X.dK).then(function(){X.isReady=!0});
return G.return(X.dK)})},rQq=function(X,t,G){X.dK?(X=X.dK.hOs({qe:G,
xo3:!0,nXi:!0}),t.serviceIntegrityDimensions={poToken:X}):_.xA(Error("mj"))};
p4Q.prototype.processContext=function(X){var t=this;if(!X.input.match(_.el(wVS)))return _.Vq();var G=X.innerTubeRequest,y=G.videoId;return!y||this.isDownloaded(G)||this.networkStatusManager&&!this.dK&&!this.networkStatusManager.isNetworkAvailable()?_.Vq():this.dK?this.isReady?(rQq(this,G,y),_.Vq()):new nc(tyJ(this.dK).then(function(){rQq(t,G,y)})):new nc(this.c2u.then(function(w){return _.n(function(z){if(z.nextAddress==1)return z.yield(tyJ(w),2);
rQq(t,G,y);_.W$(z)})}))};var Nia=new _.FB("WEB_PO_CONTEXT_PROCESSOR");var P2T=function(X,t){var G=this;this.swg=0;var y;this.q9f=(y=t==null?void 0:t.q9f)!=null?y:window;this.networkStatusManagerPromise=t==null?void 0:t.networkStatusManagerPromise;var w;this.requestKey=(w=t==null?void 0:t.requestKey)!=null?w:_.Yx("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var z;this.lZE=(z=t==null?void 0:t.lZE)!=null?z:function(b){return new XS(b)};
var B;y=(B=t==null?void 0:t.tUa)!=null?B:function(b,e,g){return new IHQ(b,e,g)};
this.bgChallenge=fJs(X.bgChallenge);this.ttlSeconds=MjY(V6(X.challenge||""));this.hg=y(this.requestKey,_.A("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.tA.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",X);$mf(this.hg);var V;this.jfW=(V=t==null?void 0:t.jfW)!=null?V:function(b){_.vj(G.q9f.document,"visibilitychange",function(){G.q9f.document.visibilityState===
"visible"&&b()})}},UR4=function(X){if(!X.vm){var t={maxAttempts:5,
tuv:X.ttlSeconds*1E3};GeJ(X.q9f);X.vm=X.lZE({hg:X.hg,is2:{disable:_.A("html5_web_po_disable_remote_logging"),lD:"aGIf",xr1:kih("html5_web_po_experiment_ids"),t6K:_.A("wpo_dis_lfdms")?0:1E3,ljc:function(y){var w=GM4.get(y);w||(w=new tNR(y),w=new Zo(w),GM4.set(y,w));return w}},
wgO:t,w7M:X.bgChallenge,rh7:yo_});X.swg=Date.now();Xp4(X.vm,function(){X.swg=Date.now()});
Tnw(X.vm,function(){return _.n(function(y){return y.return(EVr(X))})});
var G=X.uNe.bind(X);X.networkStatusManagerPromise&&X.ttlSeconds>0&&X.networkStatusManagerPromise.then(function(y){y.listen("publicytnetworkstatus-online",G)});
X.jfW(G)}};
P2T.prototype.uNe=function(){if(Date.now()>this.swg+this.ttlSeconds*1E3){var X;(X=this.vm)==null||Mke(X)}};
var EVr=function(X){if(X.qzb)return X.qzb;if(!X.vm)throw Error("nj");X.qzb=new yT({vm:X.vm,hg:X.hg,i6b:!0,onError:yo_});return X.qzb},z5J=function(X,t){X=new P2T(X,t);
UR4(X);EVr(X)};var Ip=function(X,t){this.store=X;this.queue=[];t==null||t.addEventListener("yt-navigate-start",this.reset.bind(this))};
Ip.prototype.enqueue=function(X){var t=X.command,G=X.durationMs,y=X.elementToFocus;var w=X.label;var z=X.elementToFocus;X.command?w=_.Qf("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:w,shortcut:_.Qf("SHIFT_PLUS_ENTER")}):z&&(X=w+". "+_.Qf("SHIFT_PLUS_ENTER")+" for more information.",w=_.Qf("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:w,shortcut:_.Qf("SHIFT_PLUS_ENTER")},X));G={announcement:w,durationMs:G!=null?G:8E3};t?G.command=t:y&&(y.classList.add("ephemeral-action-focusable-element"),G.selector=y.tagName+
".ephemeral-action-focusable-element");this.queue.push(G);mRi(this)};
Ip.prototype.activate=function(X){var t=_.dCV(this.store.getState());if(t){if(t==null?0:t.command)_.z7(t.command),this.store.dispatch(fnR(null));if(t==null?0:t.selector)t=document.querySelector(t.selector),_.ctY(t);X.preventDefault()}};
var mRi=function(X){if(!_.dCV(X.store.getState())&&X.queue.length){var t=X.queue.shift();t&&(X.previousAnnouncement===t.announcement&&(t.announcement+="\u00a0"),X.store.dispatch(fnR(t)),X.previousAnnouncement=t.announcement,X.timeoutId=setTimeout(function(){if(t.selector){var G;(G=document.querySelector(t.selector))==null||G.classList.remove("ephemeral-action-focusable-element")}X.store.dispatch(fnR(null));mRi(X)},t.durationMs))}};
Ip.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(fnR(null));this.queue.length=0;this.timeoutId=void 0};
Ip[gA]=[_.Gw,_.jH(_.U2)];_.WT=new _.FB("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Rv4=window.AbortController||jcq;var iT2=new _.FB("AUTH_SERVICE_TOKEN");var Jof=_.Vc(["about:blank"]),oDV;var cT=new _.FB("API_IFRAME_TOKEN"),La2=new _.FB("FETCH_FN_TOKEN"),vVV=new _.FB("PARSE_FN_TOKEN"),aHq=new _.FB("WINDOW_REQUEST_TOKEN"),lHH=new _.FB("TEXT_DECODER_TOKEN");var wmo;wmo=new _.FB("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.xRa=new _.FB("MISC_UI_SHARED_FLAGS_TOKEN");var fHr=function(){};
fHr.prototype.getFlag=function(X){if(X.configType!==2)throw Error("oj");return Mqv(X)};
var Mqv=function(X){switch(X.flagType){case "bool":return _.A(X.flagName);case "int":return _.aq(_.At(X.flagName));case "double":return _.At(X.flagName);case "string":return _.Yx(X.flagName);case "int32_list":return kih(X.flagName);case "int64_list":return kih(X.flagName).map(function(t){return _.aq(t)});
case "string_list":return _.sc(X.flagName);default:throw Error("pj");}};var p3=function(X,t,G){t=t===void 0?{}:t;fP.call(this,G===void 0?"uninitialized":G);this.env=X;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}];t.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=t.shouldWaitOnAsyncImmediate)};
_.S(p3,fP);p3.prototype.init=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?y.yield(X(t.env),2):(X(t.env),y.jumpTo(2));if(y.nextAddress!=4)return t.jobSet?y.yield(t.jobSet.completedResolver.promise,4):y.jumpTo(4);G=_.wv();G.parkOrScheduleJob(function(){t.transition("rendering")},10,"ci");
_.W$(y)})};
p3.prototype.initialRender=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?y.yield(X(t.env),2):(X(t.env),y.jumpTo(2));if(y.nextAddress!=4)return t.jobSet?y.yield(t.jobSet.completedResolver.promise,4):y.jumpTo(4);G=_.wv();G.parkOrScheduleJob(function(){t.transition("rendered")},10,"cr");
_.W$(y)})};
p3.prototype.afterRenderImmediate=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?y.yield(X(t.env),2):(X(t.env),y.jumpTo(2));if(y.nextAddress!=4)return t.jobSet?y.yield(t.jobSet.completedResolver.promise,4):y.jumpTo(4);G=_.wv();G.parkOrScheduleJob(function(){t.transition("after-render-deferred")},10,"carml");
_.W$(y)})};
p3.prototype.afterRenderDeferred=function(X){var t=this;return _.n(function(G){X(t.env);_.W$(G)})};var Xtq;_.fY("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});Xtq={};_.$xH=(Xtq.CSI=e5V(),Xtq.ECATCHER=dmv(),Xtq);var tBi={},GYH=(tBi.rendered={priority:0,callback:function(X){PCh(X.injector.resolve(mu))}},tBi);var JOh=new _.FB("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),yMa=new _.FB("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var wtr=function(X){this.callbackFnMap=X;this.configMap={}};
wtr.prototype.handleResponse=function(X){var t;if(X=(t=X.responseContext)==null?void 0:t.serviceTrackingParams)for(t=_.J(X),X=t.next();!X.done;X=t.next()){X=X.value;var G=X.params,y=X.service;if(G&&y){this.configMap[y]||(this.configMap[y]=new KK4);X=this.configMap[y];var w=void 0,z=(w=this.callbackFnMap)==null?void 0:w[y];G=_.J(G);for(y=G.next();!y.done;y=G.next())w=y.value,y=w.key,w=w.value,y&&w&&(X.set(y,w),z&&z(y,w))}}};
wtr[gA]=[_.jH(yMa)];var zt2=!1,Ao_=0,j_s=null,TDf=null;var H1N=new _.FB("NETWORK_SLI_TOKEN");var ogV=function(X,t,G,y,w){this.networkSli=X;this.fetchFn=t;this.parseFn=G;this.requestFn=y;this.JSC$18324_textDecoder=w};
ogV.prototype.fetch=function(X,t,G){var y=this,w,z,B;return _.n(function(V){w=JMV(y,X,t);B=(z=y.fetchFn)!=null?z:fetch;return V.return(B(w).then(function(b){return y.handleResponse(b,G)}).catch(function(b){_.Mj(b);
if((G==null?0:G.expectJsonStrict)&&b instanceof NW&&b.errorType===1)return Promise.reject(b)}))})};
var z0z=function(X,t,G,y){var w,z,B,V,b,e,g;return _.n(function(F){switch(F.nextAddress){case 1:return w=JMV(X,t,G),_.CL(F,2),F.yield(fetch(w),4);case 4:z=F.yieldResult;_.zx(F,3);break;case 2:throw _.IY(F),new NW(2,"Failed to parse streaming response",w.url);case 3:if(!z.redirected&&!z.ok)throw(B=X.networkSli)==null||B.failure(),new _.NJ("Streaming fetch request not ok",w.url);if(!z.body)throw new _.NJ("No response body in streaming response",w.url);V={};if(_.A("web_streaming_fast"))return b=z.body.getReader(),
F.return(BNr(X,b,V,y));e=z.body.pipeThrough(new TextDecoderStream).getReader();g=new _.Db;return F.return(ngH(X,e,g,w2J,V,y))}})},JMV=function(X,t,G){if(X.networkSli){var y=_.qJ(_.eQ(t,"key"))||"/UNKNOWN_PATH";
X.networkSli.start(y)}y=G;_.A("wug_networking_gzip_request")&&(y=Zd6(G));var w;return new ((w=X.requestFn)!=null?w:window.Request)(t,y)},BNr=function(X,t,G,y){var w,z,B,V,b,e,g,F,T,D,h;
return _.n(function(u){switch(u.nextAddress){case 1:w=X.JSC$18324_textDecoder?new X.JSC$18324_textDecoder("utf-8"):new TextDecoder("utf-8"),z="",B=function(W){W=W.trim();W.length!==0&&W!=="]"&&W!=="["?(W.startsWith("[")&&(W=W.substring(1)),W.endsWith("]")&&(W=W.slice(0,-1)),W.endsWith(",")&&(W=W.slice(0,-1)),W=W.trim()):W=void 0;if(W)try{var c=JSON.parse(W);w2J(G,c);y==null||y(G,c)}catch(P){throw new NW(1,"Failed to parse streaming response",W);}},_.CL(u,2,3);
case 5:return u.yield(t.read(),8);case 8:V=u.yieldResult;b=V.value;if(e=V.done)return z.length>0&&B(z),g=void 0,(g=X.networkSli)==null||g.success(),u.return(G);z+=w.decode(b,{stream:!0});F=z.split("\n");z=F.pop()||"";T=_.J(F);for(D=T.next();!D.done;D=T.next())h=D.value,B(h);u.jumpTo(5);break;case 3:_.O6(u);t.releaseLock();_.Qb(u,0);break;case 2:throw _.IY(u),new NW(1,"Failed to parse streaming response");}})},ngH=function(X,t,G,y,w,z){var B,V,b,e,g,F,T,D,h;
return _.n(function(u){if(u.nextAddress==1)return u.yield(t.read(),2);B=u.yieldResult;V=B.value;if(b=B.done)return(e=X.networkSli)==null||e.success(),u.return(w);try{g=G.parse(V)}catch(W){throw new NW(1,"Failed to parse streaming response",V);}if(g!=null)for(F=_.J(g),T=F.next();!T.done;T=F.next())D=T.value,y(w,D),h=void 0,(h=z)==null||h(w,D);return u.return(ngH(X,t,G,y,w,z))})};
ogV.prototype.handleResponse=function(X,t){var G,y=(G=this.parseFn)!=null?G:JSON.parse;G=X.text().then(function(w){if((t==null?0:t.jspbResponseCtor)&&X.ok)return Siv(t.jspbResponseCtor,w);w=w.replace(")]}'","");if((t==null?0:t.expectJsonStrict)&&w)try{var z=y(w)}catch(V){throw new NW(1,"JSON parsing failed after fetch");}var B;return(B=z)!=null?B:y(w)});
X.redirected||X.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),G=G.then(function(w){_.Mj(new _.NJ("Error: API fetch failed",X.status,X.url,w));return Object.assign({},w,{errorMetadata:{status:X.status}})}));
return G};
ogV[gA]=[_.jH(H1N),_.jH(La2),_.jH(vVV),_.jH(aHq),_.jH(lHH)];var VBB=new _.FB("NETWORK_MANAGER_TOKEN");var b1r=[1,2,4,8,16,30],dxR=function(X){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=X.maxTimeMs;this.maxFrameCount=X.maxFrameCount===void 0?Math.ceil(60*X.maxTimeMs/1E3):X.maxFrameCount;X=_.J(b1r);for(var t=X.next();!t.done;t=X.next())this.brokenFrameSummarizers.push(new kYB(t.value/60*1E3))},etV=function(X){var t=X.frameCountInternal>=X.maxFrameCount;
return X.elapsedTimeMs>=X.maxTimeMs||t},jj2=function(X){for(var t=[],G=_.J(X.brokenFrameSummarizers),y=G.next();!y.done;y=G.next())y=y.value,y=y.brokenFrameCount!==0?{severityMs:Math.round(y.targetFrameTimeMs),
eventCount:y.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(y.averageDurationBetweenEventsMs)}:void 0,y&&t.push(y);return{summaries:t,monitoringDurationMs:Math.round(X.elapsedTimeMs)}};
_.ke.Object.defineProperties(dxR.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 kYB=function(X){this.targetFrameTimeMs=X;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.ke.Object.defineProperties(kYB.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var ggH=function(){};
ggH.prototype.start=function(X,t){var G=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var y=new dxR({maxTimeMs:X});this.monitor=y;this.lastSummaryInternal=void 0;this.metadataToLog=t;return new Promise(function(w){var z=function(B){if(B===void 0)G.stop(),w(void 0);else if(G.monitor!==y)B=Object.assign({},jj2(y),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),w(B);else{var V=G.monitor;if(!etV(V)){V.frameCountInternal++;if(V.prevTime===void 0)V.startTime=
B;else for(var b=B-V.prevTime,e=_.J(V.brokenFrameSummarizers),g=e.next();!g.done;g=e.next()){g=g.value;var F=g.currTimeMs;g.currTimeMs+=b;b>g.targetFrameTimeMs+2&&(g.brokenFrameCount++,g.timeOfFirstBrokenFrameMs===void 0&&(g.timeOfFirstBrokenFrameMs=F),g.timeOfLastBrokenFrameMs=F)}V.prevTime=B}etV(G.monitor)?w(G.stop()):_.vz.addJob(z,5,0)}};
_.vz.addJob(z,5,0)})};
ggH.prototype.stop=function(X){if(!this.monitor)return this.lastSummaryInternal;var t=Object.assign({},jj2(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(t.monitoringDurationMs){X=X!=null?X:this.metadataToLog;var G={droppedFramesSummary:t,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};X&&(G[X.type]=X.data);_.a7("manualSmoothnessMeasurement",G)}this.monitor=void 0;this.lastSummaryInternal=t;this.metadataToLog=void 0;return t};_.FN2=new _.FB("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var TNN;TNN=function(X){this.JSC$18347_expiringStorage=new Ec(X)};
_.AM2=function(X){if(_.YU0()&&(X=_.GGl(_.ps()+"::"+X)))return new TNN(X)};
TNN.prototype.set=function(X,t,G){G=G!==void 0?Date.now()+G:void 0;this.JSC$18347_expiringStorage.set(X,t,G)};
TNN.prototype.get=function(X){return this.JSC$18347_expiringStorage.get(X)};
TNN.prototype.remove=function(X){this.JSC$18347_expiringStorage.remove(X)};var YiB=new _.FB("SESSION_STORAGE");_.rF=function(){};
_.rF.getInstance=function(){var X=_.GA("ytglobal.storage_");X||(X=new _.rF,_.dl("ytglobal.storage_",X));return X};
_.rF.prototype.estimate=function(){var X,t,G;return _.n(function(y){X=navigator;return((t=X.storage)==null?0:t.estimate)?y.return(X.storage.estimate()):((G=X.webkitTemporaryStorage)==null?0:G.queryUsageAndQuota)?y.return(s_J()):y.return()})};
_.dl("ytglobal.storageClass_",_.rF);var ro6=!!(Fb[1]>>14&1);var KHE=0;var pnl=!1;var sja=_.Vc(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Dxa=_.Vc(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Z_N={"/":_.pc,"/?feature=ytca":_.pc,"/feed/downloads":_.zn_};var ca=function(X,t,G){this.JSC$18363_upliftPromise=X;this.store=t;this.JSC$18363_persistentStorePromiseAccessor=G};
ca.prototype.shouldPreferLocalResponse=function(X){return X.browseId==="FEdownloads"||X.browseId==="FEsmart_downloads"&&_.A("kevlar_modern_downloads_page")?!0:!1};
ca.prototype.localInnertubeResponse=function(X){var t=this;return _.n(function(G){return X.browseId==="FEdownloads"?_.A("kevlar_modern_downloads_page")?G.return(SiH(t)):G.return(htQ(t)):X.browseId==="FEsmart_downloads"&&_.A("kevlar_modern_downloads_page")?G.return(Z1B(t)):G.return(Promise.reject(Error("rj")))})};
ca.prototype.canProvideFallbackResponse=function(){return!0};
ca.prototype.localFallbackInnertubeResponse=function(X){var t=this,G,y,w;return _.n(function(z){switch(z.nextAddress){case 1:return z.yield(t.JSC$18363_persistentStorePromiseAccessor(),2);case 2:G=z.yieldResult;if(X.browseId!=="SPaccount_downloads"||!G){z.jumpTo(3);break}return z.yield(XdJ(G),4);case 4:if(y=z.yieldResult)return z.return(_.Yl(y));case 3:return X.browseId==="FEwhat_to_watch"?z.return(qi2(t)):(w=_.A("web_offline_continuation_automatic_retry")||_.A("web_offline_continuation_retry_button"))&&
X.continuation?z.return(C_H(t)):z.return(KNT(t))}})};
var qi2=function(X){var t;return _.n(function(G){if(G.nextAddress==1)return G.yield(X.JSC$18363_upliftPromise,2);t=_.JPG(X.store.getState().entities);return t.length?G.return(O1Q(X,t)):G.return(KNT(X))})},htQ=function(X){var t,G;
return _.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$18363_upliftPromise,2);if(y.nextAddress!=3)return t=ukH([{offlineItemSectionRenderer:{}}]),y.yield(Qj4(X,t),3);G=y.yieldResult;G.onResponseReceivedActions=[Ue("REFRESH_DOWNLOADS")];return y.return(G)})},SiH=function(X){var t,G,y,w,z,B,V,b,e,g,F,T,D,h,u,W;
return _.n(function(c){if(c.nextAddress==1)return c.yield(X.JSC$18363_upliftPromise,2);if(c.nextAddress!=3)return t=X.store.getState(),G=t.entities,y=_.Lg(G),w=_.vK(G),z=_.Nz6(t),B=_.rPv(t),V=_.Pgl(t),b=_.VO6(G),e=_.PK(y),g=_.a$(G),F=_.eO6(G),T=_.UPY(t),D=_.X0(t),h={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.A$w(y,w,b,F,z,B,e,g,V,T,D),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},u=_.Qf("DOWNLOADS",void 0,"Downloads"),
c.yield(IYQ(X,h,u),3);W=c.yieldResult;W.onResponseReceivedActions=[Ue("REFRESH_DOWNLOADS")];return c.return(W)})},Z1B=function(X){var t,G,y,w,z,B,V,b,e;
return _.n(function(g){if(g.nextAddress==1)return g.yield(X.JSC$18363_upliftPromise,2);if(g.nextAddress!=3)return t=X.store.getState(),G=t.entities,y=_.Lg(G),w=_.PK(y),z=_.a$(G),B={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.sXh(y),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},V=_.Qf("SMART_DOWNLOADS",void 0,"Smart downloads"),b=FLs(w,z),g.yield(IYQ(X,B,V,b),3);e=g.yieldResult;e.onResponseReceivedActions=
[Ue("REFRESH_DOWNLOADS")];return g.return(e)})},KNT=function(X){var t,G;
return _.n(function(y){if(y.nextAddress==1)return y.yield(Ai(X.JSC$18363_upliftPromise,X.store),2);t=y.yieldResult;G=ukH([lK6(t)]);return y.return(Qj4(X,G))})},C_H=function(X){var t,G,y,w;
return _.n(function(z){if(z.nextAddress==1)return t={},G=X.store.getState().continuation.continuationCommand,_.Xx(t,_.Hk,G),z.yield(Ai(X.JSC$18363_upliftPromise,X.store,t,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);y=z.yieldResult;w={};_.Xx(w,_.p6e,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:y}}}],targetId:"browse-feedFEwhat_to_watch"});return z.return({responseContext:{},onResponseReceivedActions:[w]})})},ukH=function(X){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:X}}}}]}}},O1Q=function(X,t){var G,y;
return _.n(function(w){var z={contents:mM(t)};G=z&&z.contents?z:{};_.A("kevlar_modern_downloads_page")&&(G=Object.assign({},_.DH_(t),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:G}}}]}};return w.return(Qj4(X,y))})},Qj4=function(X,t){var G,y;
return _.n(function(w){if(w.nextAddress==1)return w.yield(X.JSC$18363_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return G=w.yieldResult,w.yield(s5(G),3);y=w.yieldResult;return w.return({responseContext:{},contents:t,topbar:y})})},IYQ=function(X,t,G,y){var w,z;
return _.n(function(B){if(B.nextAddress==1)return B.yield(X.JSC$18363_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3)return w=B.yieldResult,B.yield(s5(w),3);z=B.yieldResult;var V=B.return;var b=y;b=b===void 0?"":b;b={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:G}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Qf("SETTINGS",void 0,"Settings"),accessibilityText:_.Qf("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:FV("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:G};
return V.call(B,{responseContext:{},contents:t,topbar:z,header:{pageHeaderRenderer:b}})})};var WNq=function(){this.moduleRegistry={};this.fetchCount=0};
WNq.prototype.isFetching=function(){return this.fetchCount>0};
var yc=function(X,t){X.moduleRegistry[t.toString()]={asyncId:t,isFetching:!1};return X};
WNq.prototype.JSC$18374_loadModules=function(){for(var X=this,t=new Map,G=[],y=_.J(_.f1.apply(0,arguments)),w=y.next();!w.done;w=y.next()){w=w.value;var z=this.moduleRegistry[w];z?z.resolver?t.set(w,z.resolver):(z.resolver=new _.Kp,t.set(w,z.resolver),G.push(z.asyncId),z.isFetching=!0):(z=new _.Kp,t.set(w,z),z.resolve(void 0))}G.length&&(this.fetchCount+=1,_.R8(_.h_.getMultipleAsync.apply(_.h_,_.RY(G)).then(function(B){for(var V=0;V<G.length;V++){var b=B[V],e=X.moduleRegistry[G[V].toString()];e.isFetching=
!1;e.resolver.resolve(b)}}).catch(function(B){for(var V=_.J(G),b=V.next();!b.done;b=V.next()){b=b.value;
var e=X.moduleRegistry[b.toString()];e.resolver=void 0;e.isFetching=!1;t.get(b.toString()).reject(B)}}),function(){--X.fetchCount}));
return Promise.all([].concat(_.RY(t.values())).map(function(B){return B.promise}))};_.w1=new _.FB("MODULE_REGISTRY_TOKEN");var cMH={},ptV=(cMH.rendered={priority:0,callback:function(X){a:{var t=void 0;try{var G;b:{if(_.UEh()){var y=_.t7E(_.ps()+"::pom");if(y){var w=new ij(y);break b}}w=void 0}var z=(G=w)==null?void 0:G.get("role_text");if(!z)break a;t={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:z}]}}}}}}catch(b){}t&&X.injector.resolve(_.F3).resolveCommand(t)}try{var B=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(B){var V=JSON.parse(B);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
V&&X.injector.resolve(_.F3).resolveCommand(V)}}catch(b){}}},cMH);var rMH,NNR={},P_Q=(NNR.initialized={priority:10,callback:function(){rMH=iW()}},NNR.rendering={callback:function(X){var t;
return _.n(function(G){if(G.nextAddress==1)return G.yield(rMH,2);t=G.yieldResult;if(!t.endpoint)throw Error("tj`"+_.tA.location.href);lW(X,t);_.W$(G)})}},NNR);var Egr={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(_.RY(_.A("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(X){var t=X.stack;if(t.includes("chrome://")||t.includes("chrome-extension://")||X.message.includes("chrome-extension://")||t.includes("moz-extension://")||t.includes("local.adguard.org")||t.includes("auctioneer3.50million.club")||t.includes("youtubedownloader")||t.includes("youtube_home_page")||t.includes("is_youtube_video_no_longer_available")||
t.includes("switchScreenSizeHack")||t.includes("yt_main_big_banner.js")||t.includes("YouTubeCenter.js")||t.includes("/mytube.js")||t.includes("JSON.parseWrapper")||t.includes("/inj_js/common.js")||t.includes("firebug-lite")||t.includes(".repl.co/")||t.includes("linkfix")||t.includes("playAfterAd")||X.message.includes("Access is denied for this document")&&t.includes("<anonymous>")||X.fileName==="user-script"||X.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
t.includes("<anonymous>"))return!0;if(t.includes("https://www.youtube.com"))return!1;X=t.split("\n");if(!X.length)return!1;if(X.length<=3&&t.includes("s.onloadeddata"))return!0;t=0;for(var G=_.J(X),y=G.next();!y.done;y=G.next())y=y.value,(y.includes("https://")||y.includes("http://"))&&t++;return t/X.length>.95},
weight:0},{callback:function(X){return X.message==="Unknown Error"&&X.name.indexOf("NS_")===0},
weight:100},{callback:function(X){if(!_.Z_)return!1;var t=X.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||X.message.includes("available to complete this operation"),G=X.stack.includes("webcomponents")&&X.message==="Object doesn't support this action";X=X.message.includes("object that does not implement interface Element");return t||G||X},
weight:0},{callback:function(X){return X.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(X){return X.message==="Operation is not supported"&&(X.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(X){return X.stack.includes("eval code (eval (code:1:1)")||X.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(X){return X.message.includes("Permission denied")&&X.stack.includes("this.domHandler")?!0:X.name.includes("TypeError")&&X.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(X){if(!X.stack)return!1;var t=X.stack.trim().split("\n");t.length&&t[0].endsWith("Error: "+X.message)&&t.shift();t.length&&t[t.length-1].includes("at window.onerror (")&&t.pop();if(!t.length)return!0;if(X.message==="Script error.")return t[0].includes("www.youtube.com")||t.length>=2&&t[0].startsWith("at new")&&t[1].startsWith("at window.onerror");if(X.message==="Unexpected token")return!0;X=_.J(t);for(t=X.next();!t.done;t=X.next())if(t=t.value,!(t.includes("<anonymous>")||
t.startsWith("load@")||t.startsWith("global code@")||t.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(X){return X.message==="Cannot read property 'experiments'"&&X.stack.includes("/s/player/")},
weight:500},{callback:function(X){return X.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(X){return X.stack.includes("/embed.js")?(X.params&&X.params&&(X.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.A("use_error_suppression"))var X=_.Md("SUPPRESS_CLIENT_ERRORS",!1);else{if(X=_.uz)X=/Chrome\/(\d+)/.exec(_.es()),X=(X?parseFloat(X[1]):NaN)>=66;X=!(X||_.Ox&&_.K9(65)||_.Xl&&_.K9(12.1)||bt&&_.K9(79))}return X},
weight:500}]};var UxB={},mxB=(UxB.initialized={priority:10,callback:function(X){X.injector.addProvider({provide:XoB,useValue:X.root});X.injector.addProvider({provide:gh4,useValue:fWG});X.injector.addProvider({provide:FtH,useValue:Egr});var t={};X.injector.addProvider((t.provide=ToQ,t.useFactory=function(G,y){return function(){kkh(G,y)}},t[gA]=[gh4,
FtH],t));X.injector.addProvider({provide:Q_,useClass:Q_})}},UxB);var RtH={},i1Q=(RtH.initialized={priority:3,callback:function(){var X;if(X=a0h()){X=X.replace("/",".");var t=_.cP();t.set("tz",X);t.save();X=!0}else X=!1;X||(X=_.cP(),X.set("utco",-Math.floor((new Date).getTimezoneOffset())),X.save())}},RtH);var LNN={},vgR=(LNN.initialized={priority:10,callback:function(X){X.injector.resolve(Q_).start();X=_.Jb();var t=_.X3("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.X3("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.X3("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.X3("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.uW(_.TAf(),{mainAppWeb:Object.assign({},X,{pageType:t})});_.uW(Yyw(),{mainAppWeb:Object.assign({},X,{pageType:t})});
_.uW(sEY(),{mainAppWeb:X});_.uW(DTJ(),{mainAppWeb:X});MPq(function(){_.Q6(sEY(),"FAILURE");_.Q6(DTJ(),"FAILURE")});
XfE();$90();uKA()}},LNN);var aY2={},lYH=(aY2.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.ls("dl"),_.wv().processSignal("pcl");else{var X=function(){_.ls("dl");_.wv().processSignal("pcl");window.removeEventListener("load",X)};
window.addEventListener("load",X)}}},aY2);var xxB={},fYH=(xxB.rendering={priority:0,callback:function(){var X=_.wv();X.parkOrScheduleJob(function(){X.processSignal("eocs")},10,"eor",5E3)}},xxB);var MBR=function(){};
_.S(MBR,yD);
MBR.prototype.resolveCommand=function(X,t){var G,y,w,z,B,V,b,e;return _.n(function(g){w=(G=_.Y(X,_.DNP))==null?void 0:(y=G.dialog)==null?void 0:y.commentReplyDialogRenderer;if(!w)throw new _.NJ("No dialog in createCommentReplyDialogEndpoint");B=(z=t.form)==null?void 0:z.event;if(!B)throw new _.NJ("Event not passed in when resolving command");V=_.J(B.composedPath());for(b=V.next();!b.done;b=V.next())if(e=b.value,e.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||e.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return e.showReplyDialog(w),g.return();
_.W$(g)})};var Na=function(X){this.pageRequestService=X;this.JSC$18389_prefetchCoordinator=wSq()};
_.S(Na,yD);Na.prototype.resolveCommand=function(X){var t=this,G,y,w,z;return _.n(function(B){if(B.nextAddress==1){G=_.Y(X,yZ4);if((y=G)==null||!y.taskId)throw Error("uj");w=G.taskId;_.CL(B,2);return B.yield(_.$64(t.pageRequestService,X,{},"").then(function(V){if(!V)throw Error("vj");},function(V){throw Error("wj`"+V);
}),4)}if(B.nextAddress!=2)return ohr(t.JSC$18389_prefetchCoordinator,w),_.zx(B,0);
z=_.IY(B);jX(t.JSC$18389_prefetchCoordinator,w,z);_.W$(B)})};
Na[gA]=[RA];var PT=function(X){this.innertubeTransportService=X};
_.S(PT,yD);PT.prototype.resolveCommand=function(X){var t=this,G,y;return _.n(function(w){G=_.Y(X,tOS);if(G.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||G.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")y=G.boolValue?2:1,_.gz.getInstance().setState(y,!0,!0);return w.yield(_.kW(t.innertubeTransportService,X),0)})};
PT[gA]=[_.Mr];var Ek={},X$V=(Ek.addToPlaylistEndpoint=g9(Lf),Ek.addToToastAction=g9(vA),Ek.adsControlFlowOpportunityReceivedCommand=g9(qU),Ek.captionLanguageSelectActionCommand=g9(HA),Ek.captionPickerEndpoint=g9(oF),Ek.changeMiniAppPlayStateCommand=g9(vb),Ek.changeTimelyActionVisibilityCommand=g9(Lw),Ek.channelCreationFormEndpoint=g9(Pb),Ek.clearLocationCommand=g9(i4),Ek.clearUrlParamCommand=g9(aw),Ek.copyLinkCommand=g9(bc),Ek.copyTextEndpoint=g9(Ou),Ek.createCommentReplyDialogEndpoint=DNf(MBR),Ek.createPlaylistServiceEndpoint=
g9(kf),Ek.dismissDialogEndpoint=g9(xN),Ek.entityUpdateCommand=g9(QS),Ek.feedbackEndpoint=g9(cb),Ek.getAnswerCommand=g9(b_N),Ek.getPaymentsClientTokenCommand=g9(xf),Ek.getTranscriptEndpoint=g9(aF),Ek.googlePaymentBillingCommand=g9(fw),Ek.googlePaymentPurchaseManagerCommand=g9(M$),Ek.hideEngagementPanelEndpoint=g9(ff),Ek.hideSnackbarCommand=g9(N$),Ek.insertRichSectionCommand=g9(Uu),Ek.listMutationCommand=g9(mI),Ek.logGtmCommand=g9(Eu),Ek.notifyDropdownOptionSelectedCommand=g9(l4),Ek.openAdAllowlistInstructionCommand=
g9(_.Cf),Ek.openOnePickAddVideoModalCommand=g9(dW),Ek.persistSubscriptionsDisplayPreferencesCommand=g9(AR),Ek.pingingEndpoint=g9(Kf),Ek.playlistEditEndpoint=g9(j4),Ek.playlistVotingRefreshPopupCommand=g9(gW),Ek.profileCardCommand=g9(Z6),Ek.refreshPanelEndpoint=g9(MU),Ek.saveImageToDeviceEndpoint=g9(u4),Ek.scrollToSectionEndpoint=DNf(kVH),Ek.seekToVideoTimestampCommand=g9(JR),Ek.selectCountryCommand=g9(Yf),Ek.setCookieCommand=g9(sv),Ek.setLocalStorageCommand=g9(Ev),Ek.setPrefStorageEntryCommand=g9(S4),
Ek.setSettingEndpoint=g9(PT),Ek.sfvAudioItemPlaybackCommand=g9(BA),Ek.shareImageCommand=g9(hR),Ek.sharingProviderDataCommand=g9(Zg),Ek.showCaptionLanguageSelectActionCommand=g9(nw),Ek.showDialogCommand=g9(tR),Ek.showEngagementPanelEndpoint=g9(GU),Ek.showSheetCommand=g9(y4),Ek.showSnackbarCommand=g9(PA),Ek.showTransientPlayerScrimOverlayCommand=g9(V4),Ek.submitFormWithValidationFlowCommand=g9(NU),Ek.talkToRecsDeselectCommand=g9(Uv),Ek.talkToRecsNextCommand=g9(ms),Ek.talkToRecsSelectCommand=g9(RF),
Ek.talkToRecsUpdateTextCommand=g9(ic),Ek.toggleEngagementPanelCommand=g9(wW),Ek.undoFeedbackEndpoint=g9(r$),Ek.updateEngagementPanelContentCommand=g9(zU),Ek.updateUrlParamCommand=g9(lc),Ek.verifyCommand=g9(Pb),Ek.webNativeShareCommand=g9(q$),Ek.webSubmitFormCommand=g9(FC),Ek.ACK_PLAYABLES_3P_DATA_CONSENT=g9(Cw),Ek.CANCEL_NAVIGATION=g9(Kw),Ek.COPY_SHARE_URL=g9(Ov),Ek.MINI_APP_EXIT_DIALOG_SEEN=g9(Q4),Ek.MINI_APP_OPEN_URL=g9(uc),Ek.REQUEST_MINI_APP_FULLSCREEN=g9(IF),Ek.RESUME_NAVIGATION=g9(WA),Ek.SHARE_PLAYABLE_WITH_HIGH_SCORE=
g9(cA),Ek.TELL_US_WHY=g9(pf),Ek);_.A("web_enable_prefetching_videos_on_home")&&(X$V.prefetchWatchCommand=g9(Na),X$V.registerTasksCommand=g9(Ff));_.A("enable_share_panel_navigation_logging_fix_on_web")&&(X$V.shareEntityServiceEndpoint=g9(XC));var JDY=Object.assign({},X$V);var $BQ={},tcQ=($BQ.initialized={priority:10,callback:z__},$BQ);var GcN={},yIi=(GcN.initialized={callback:function(X){var t={},G={};MK0().install((t.document_disposed={callback:function(){_.A("finalize_all_timelines")?RrA():Lq();gDl("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.BF_();var y=X.injector.resolve(Q_);y.intervalId!==void 0&&(y.intervalId&&_.vz.cancelJob(y.intervalId),y.intervalId=void 0,--y.currentPartitionIndex,y=E8B(y),y>0&&a8h({mainAppWeb:_.Jb(),survivalSli:{partitionMinute:y,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));PRB(JP);BF!=null&&
BF.flush();Sl&&Sl.snapshotAndFlush();y=_.J(GM4.values());for(var w=y.next();!w.done;w=y.next())w.value.snapshotAndFlush()}},t),(G.flush_logs={callback:function(){_.lx()}},G))}},GcN);var w$r={},zQa=(w$r.rendered={priority:0,callback:function(){var X=new ppt;X.increment("STARTED");if(_.Md("LOGGED_IN")&&_.Md("SERVER_VERSION")!=="test"&&_.Md("SERVER_VERSION")!=="dev"&&!eeq()&&!dzq()){X.increment("EXECUTING");var t=document.createElement("iframe");t.style.display="none";_.i1A(t,2,_.l_("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Md("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(t);X.increment("DONE")}}},w$r);var HLR={},owB=(HLR.rendered={callback:function(){wSq().resume()}},HLR);var JIr={acknowledgeChannelTouStrikeCommand:U8(qc),addToPlaylistServiceEndpoint:U8(OJ),addToPlaylistEndpoint:U8(OJ),addUpcomingEventReminderEndpoint:U8(U7),browseEndpoint:U8(EJv),channelCreationFormEndpoint:U8(Ah),channelCreationServiceEndpoint:U8(YO),claimLegacyYoutubeChannelEndpoint:U8(oe),clearSearchHistoryEndpoint:U8(Wi),clearWatchHistoryEndpoint:U8(ci),commerceActionCommand:mT(M3),createBackstagePostEndpoint:U8(th),createBroadcastCommand:U8(mF),createCommentEndpoint:U8(j5),createCommentReplyEndpoint:U8(e5),
createLiveChatPollEndpoint:U8(Re),createPlaylistServiceEndpoint:U8(u1),crossAccountChannelTransferEndpoint:U8(Nc),deleteLiveChatMessageCommand:U8(i5),deletePlaylistEndpoint:U8(Q$),deleteVideoEndpoint:U8(a1),dismissalEndpoint:U8(Cx),feedbackEndpoint:U8(Kx),flagEndpoint:U8(N3),getAccountSwitcherEndpoint:U8(re),verifyCommand:U8($O),getAccountsListInnertubeEndpoint:U8(E7),getCommentsFromInboxCommand:U8(kc),getDownloadActionCommand:U8(Ax),getFlowCommand:mT(Ie),getKidsBlocklistPickerCommand:U8(P2),getNotificationMenuEndpoint:U8(RGq),
getPaymentInstrumentsParamsCommand:U8(wF),getPaymentsClientTokenCommand:mT(M3),getPdgBuyFlowCommand:U8(CQ),getReportFormEndpoint:U8(EJ),getSearchInVideoCommand:U8(R1),getAnswerCommand:U8(md),getSurveyCommand:U8(v2),getTranscriptEndpoint:U8(xc),getPostVideoPreviewEndpoint:U8(yk),decorateMessageEndpoint:U8(GE),likeEndpoint:U8(s7),liveChatActionEndpoint:U8(l5),liveChatEndpoint:U8(ae),liveChatItemContextMenuEndpoint:U8(Lx),liveChatPurchaseMessageEndpoint:U8(xO),liveChatReplayEndpoint:U8(vi),manageLiveChatUserEndpoint:U8(zd),
metadataUpdateCommand:U8(V$),moderateLiveChatEndpoint:U8(H2),modifyChannelNotificationPreferenceEndpoint:U8(g8),notificationOptOutEndpoint:U8(Fw),openSuperStickerBuyFlowCommand:U8(w8),performCommentActionEndpoint:U8(b5),playlistEditEndpoint:U8(W2),playlistEditorEndpoint:U8(I1),recordNotificationInteractionsEndpoint:U8(Td),reelWatchEndpoint:U8(c2),refreshPanelEndpoint:U8(sJ),removeUpcomingEventReminderEndpoint:U8(o1),resolveLocationCommand:U8(nQ),revealBusinessEmailCommand:U8(Jh),searchEndpoint:U8(_.i_r),
sendLiveChatMessageEndpoint:U8(Jx),sendLiveChatVoteEndpoint:U8(B2),setSettingEndpoint:U8(DL),shareEntityServiceEndpoint:mT(ZL),sharingProviderDataCommand:U8(LQ),showEngagementPanelEndpoint:U8(Dt),showMoreDrawerCommand:U8(hx),showSheetCommand:U8(Zt),showDialogCommand:U8(SK),subscribeEndpoint:U8(S5),transcriptSubmitCaptionCorrectionCommand:U8(l1),undoFeedbackEndpoint:U8(u5),unsubscribeEndpoint:U8(hh),updateBackstagePostEndpoint:U8(zE),updateCommentEndpoint:U8(FZ),updateCommentReplyEndpoint:U8(ge),updateCommentsSettingsEndpoint:U8(TE),
updateCreatorChannelInnertubeCommand:U8(nx),updateKidsBlacklistEndpoint:U8(UJ),updateEngagementPanelContentCommand:U8(q3),updatePdgFeatureEnablementCommand:U8(KQ),updatedMetadataEndpoint:U8(b1),validateChannelHandleCommand:U8(Vk),updateChannelPageSettingsEndpoint:U8(Bi),verifyAgeEndpoint:U8(Qk),watchEndpoint:mT(II),whitelistEditEndpoint:U8(fQ),ypcCancelRecurrenceEndpoint:U8(Xf),ypcCompleteTransactionEndpoint:U8($8),ypcFixInstrumentEndpoint:U8(G0),ypcGetCartEndpoint:U8(t7),ypcGetOffersEndpoint:U8(yv),
ypcHandleTransactionEndpoint:mT(z0),ypcLogWalletAnalyticDataEndpoint:U8(HT),ypcOffersEndpoint:U8(op),ypcPauseSubscriptionCommand:U8(J7),ypcRedeemCodeEndpoint:U8(BT),ypcResumeSubscriptionCommand:U8(n3),ypcUpdateFopEndpoint:U8(G0)},Uk={},Bqi=(Uk.GET_ACCOUNT_MENU=U8(Pi),Uk.GET_NOTIFICATIONS_MENU=U8(mwi),Uk.GET_NOTIFICATIONS_INBOX=U8(d8),Uk.GET_UNSEEN_NOTIFICATION_COUNT=U8(jK),Uk.GET_USER_MENTION_SUGGESTIONS=U8(we),Uk.LOAD_GUIDE=U8(Uwr),Uk.SUBMIT_FEEDBACK=U8(O7),Uk),m1={},nwi=(m1.CONTINUATION_REQUEST_TYPE_BROWSE=
U8(Hi),m1.CONTINUATION_REQUEST_TYPE_SEARCH=U8(i1),m1.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=U8(cN),m1.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=U8(px),m1.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=U8(de),m1.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=U8(kO),m1.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=U8(r8),m1.CONTINUATION_REQUEST_TYPE_GET_PANEL=U8(Yc),m1),VcH={player:mT(II),watchNext:U8(WN)},bLa={player:mT(II),reelItemWatch:U8(c2),reelWatchSequence:U8(pQ)},kcH={watchEndpoint:mT(pu)},dBH=
{commandEndpointMap:JIr,signalEndpointMap:Bqi,continuationEndpointMap:nwi,watchEndpointMap:VcH,reelWatchEndpointMap:bLa,streamingEndpointMap:kcH};var eQB,jYH,gwq,F3r={disableAllTransitions:(jYH=(eQB=window).matchMedia)==null?void 0:(gwq=jYH.call(eQB,"(prefers-reduced-motion: reduce)"))==null?void 0:gwq.matches,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}}]])};_.Rp=new _.FB("VIEW_TRANSITION_MANAGER_TOKEN");var Tq4=function(X){this.viewTransitionCoordinator=X;this.isBrowseTransitionEnabled=_.Yx("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.A("web_thumbnail_to_watch_transition");this.isLearningJourneyTransitionEnabled=_.A("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.registerRootElement()};
Tq4.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var X={};this.viewTransitionCoordinator.registerElement(document.documentElement,(X.slide="root-slide",X["lockup-to-watch"]="root-lockup-to-watch",X["learning-journey"]="root-learning-journey",X))}};
Tq4[gA]=[JQH];var H70={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 JUG=["videoPrimaryInfoRenderer","title"],BLY=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var AIv;AIv=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Y6V=_.Fp(function(X){X=_.jx(X,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var t=X.data,G=X.playlistData,y=X.expanded,w=X.onExpandClick,z=X.isReadyToResume,B=function(){var g;return!((g=G())==null||!g.contents)},V=function(){var g=G();
return g&&g.totalVideos&&g.currentIndex!==void 0?g.currentIndex+1+" / "+g.totalVideos:""};
X=_.NI(function(){_.i3(_.gw().resolve(_.G2));return!1});
var b=_.NI(function(){B()&&w&&w()}),e={};
return _.k("ytd-miniplayer-info-bar",{class:_.cl("ytdMiniplayerInfoBarHost",(e.ytdMiniplayerInfoBarHasPlaylistData=B,e)),"on:click":b},_.k("div",{class:"ytdMiniplayerInfoBarContent"},_.k("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":X},_.k(_.eh,{text:function(){var g=t();var F=G();if(F==null?0:F.contents){var T;g=(T=_.PRV(F))==null?void 0:T.title}else g=g==null?void 0:g.miniplayerTitle;return Vv_(g)},
noEndpoints:!0,ellipsisTruncate:!0})),_.k("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.k(_.d,{cond:z,then:function(){return _.k(fSP,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:AIv})}}),_.k("h1",null,_.k(_.eh,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var g=t();var F=G();g=z()?{simpleText:_.Qf("CONTINUE_WATCHING",void 0,"Continue watching")}:(F==null?0:F.contents)?F.titleText:g==null?void 0:g.miniplayerSubtitle;return Vv_(g)},
noEndpoints:!0,ellipsisTruncate:!0})),_.k(_.d,{cond:function(){return!!V()&&!z()},
then:function(){return _.k("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.k("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.k("span",null,V))}}))),_.k(_.d,{cond:B,
then:function(){return _.k("div",{class:"ytdMiniplayerInfoBarExpand"},_.k(_.jh,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(g){w&&(w(),g.stopPropagation())}}},
iconName:function(){return y()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"He");var sYq;sYq=_.Fp(function(X){return _.k("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.k(_.jh,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:X.onTap}},
iconName:"yt-icons:close"}))},"Ie");
_.DBR=_.Fp(function(X){X=_.jx(X,{playabilityStatus:void 0,isDisabled:!1});var t=X.size,G=X.playabilityStatus,y=X.isDisabled,w=_.nl("div");X=_.J(_.sm(void 0,void 0,"bJr0Se"));var z=X.next().value,B=X.next().value;X=_.w5(_.u7);var V=!1,b=function(){return t().height<=0};
_.Em(function(){var T=t(),D=b(),h=z();h&&!D&&h.setInternalSize(T.width,T.height)},"OUOyKb");
_.R2(function(){var T,D,h;return _.n(function(u){if(u.nextAddress==1){T=_.gw().resolve(_.G2);D=T.getPlayerElement();if(!T.isMiniplayerActive()||!D||!w.value)return u.return();D.appendTo(w.value);return u.yield(D.getPlayerPromise(),2)}h=u.yieldResult;h.setSizeStyle(!1,!0);B(h);_.W$(u)})});
_.Um(function(){e()});
_.Em(function(){var T=z();if(T)if(y()){var D=T.getPlayerState();(V=D===-1||D===1||D===3)&&T.pauseVideo()}else e()},"KKHe5");
var e=function(){if(V){V=!1;var T;(T=z())==null||T.playVideo()}},g=_.NI(function(){_.i3(_.gw().resolve(_.G2))}),F={};
return _.k("ytd-miniplayer-player-container",{class:_.cl("ytdMiniplayerPlayerContainerHost",(F.ytdMiniplayerPlayerContainerHidden=b,F.ytdMiniplayerPlayerContainerHostShortsPip=X,F)),style:_.Ud({width:function(){return t().width+"px"},
height:function(){return t().height+"px"}})},_.k("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:w}),_.k(_.d,{cond:function(){return!!G()&&!_.UC_(G())},
then:function(){return _.k($u4,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var T;return((T=G())==null?void 0:T.errorScreen)||null},
status:function(){var T;return((T=G())==null?void 0:T.status)||null}})}}),_.k(_.d,{cond:y,
then:function(){return _.k("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":g},_.k(sYq,{onTap:function(){_.gw().resolve(_.G2).close()}}))}}))},"Je");_.S6q=_.Fp(function(X){var t=X.toastData;var G=_.nl("ytd-miniplayer-toast");X=_.J(_.Ed(function(){return!!t()}));
var y=X.next().value,w=X.next().value;X=_.J(_.sm(!1,void 0,"xkrBze"));var z=X.next().value,B=X.next().value,V=function(){var g;return _.bu((g=t())==null?void 0:g.data.title)};
_.LY(function(){_.wB.requestAvailability();t()&&w(!1)});
var b,e;_.Em(function(){y()&&(_.Yt(G.value,"iron-announce",{text:t().label+" "+V()}),b&&_.vz.cancelJob(b),b=_.vz.addLowPriorityJob(function(){B(!0)},2500))},"OTdL1e");
_.Em(function(){z()&&(e&&_.vz.cancelJob(e),e=_.vz.addLowPriorityJob(function(){w(!1);B(!1)},300))},"yybqib");
X={};return _.k("ytd-miniplayer-toast",{el:G,class:_.cl("ytdMiniplayerToastHost",(X.ytdMiniplayerToastOpening=function(){return y()},X.ytdMiniplayerToastClosing=function(){return z()},X))},_.k(_.d,{cond:function(){var g;
return(g=t())==null?void 0:g.data},
then:function(g){return _.k(zNB,{className:"ytdMiniplayerToastThumbnail",data:g,width:78})}}),_.k("div",{class:"ytdMiniplayerToastInfo"},_.k("div",{class:"ytdMiniplayerToastLabel"},function(){var g;
return(g=t())==null?void 0:g.label}),_.k("div",{class:"ytdMiniplayerToastTitle"},V)))},"Ke");var Yzw;var SzG=null;var ZLi=_.Fp(function(X){var t=X.progressState;var G=X.multiMarkersPlayerBarRenderer;var y=X.progressBarWidth;var w=function(){return Chf(G())},z=function(){return ujl(t())},B=function(){return y()*(t().playedTime/t().videoDuration)};
return _.k("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.k(_.pY,{each:w},function(V,b){return _.k(hQ2,{modifiedProps:z,chapters:w,index:b,playedProgressWidth:B,backgroundGradientPosition:function(){var e=z(),g=w(),F=b(),T=B();return(e.playedTime-$E(_.Y(g[F],Xb)))/e.playedTime*T}})}))},"Le"),hQ2=_.Fp(function(X){var t=X.modifiedProps;
var G=X.chapters;var y=X.index;var w=X.playedProgressWidth;var z=X.backgroundGradientPosition;X={};X=_.cl("ytChapteredProgressBarChapteredPlayerBarChapter",(X.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return B().isScrubbing},X.ytChapteredProgressBarHoveredMacroMarker=function(){return B().scrubberHovering},X.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return B().videoPosition==="seen"},X));
var B=function(){return QCw(t(),G(),y())},V=function(){var b=t();
var e=G(),g=y();if(QCw(b,e,g).videoPosition!=="active")b=0;else{var F=$E(_.Y(e[g],Xb));b=(b.playedTime-F)/(($E(_.Y(e[g+1],Xb))||b.videoDuration)-F)}return b};
return _.k("div",{class:X,style:_.Ud({width:function(){var b=t(),e=G(),g=y(),F=_.Y(e[g],Xb);e=_.Y(e[g+1],Xb);return(e?$E(e)-$E(F):b.videoDuration-$E(F))/b.videoDuration*100+"%"},
"background-color":function(){a:{var b=B();switch(b.videoPosition){case "pending":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:b=""}}return b},
"background-size":function(){return(Iq0(B())?w():"")+"px"},
"background-position-x":function(){return(Iq0(B())?z():"")+"px"}})},_.k("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var b=t(),e=G(),g=y();if(QCw(b,e,g).videoPosition==="seen")var F=0;else F=$E(_.Y(e[g],Xb)),e=$E(_.Y(e[g+1],Xb))||b.videoDuration,b=b.videoDuration*b.percentLoaded,F=e<=b?1:F>=b?0:(b-F)/(e-F);return"width: "+F*100+"%"}}),_.k("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Ud({width:function(){return V()*100+"%"},
"background-size":function(){return(Iq0(B(),V())?w():"")+"px"},
"background-position-x":function(){return(Iq0(B(),V())?z():"")+"px"}})}))},"Me");var q62=function(X,t){t=t===void 0?oWh:t;var G,y=[],w,z=!1;return function(){var B=_.f1.apply(0,arguments);if(z&&G===this&&t(B,y))return w;w=X.apply(this,B);z=!0;G=this;y=B;return w}}(function(X){var t=X.heatMarkers,G=X.minHeightDp===void 0?0:X.minHeightDp,y=X.maxHeightDp===void 0?60:X.maxHeightDp;
var w=w===void 0?!1:w;var z=1E3/t.length;X=[];X.push({x:0,y:100});for(var B=0;B<t.length;B++){var V=void 0,b=((V=_.Y(t[B],zoY))==null?void 0:V.heatMarkerIntensityScoreNormalized)||0;V=(B+.5)*z;b=100-_.MM(b*100,G/321*100,y/321*100);B!==0||w||X.push({x:0,y:b});X.push({x:V,y:b});B===t.length-1&&X.push({x:1E3,y:b})}X.push({x:1E3,y:100});t="";for(G=0;G<X.length;G++)w=X[G],G===0?w="M "+w.x.toFixed(1)+","+w.y.toFixed(1):(y=PTl(X[G-1],X[G-2],w),z=PTl(w,X[G-1],X[G+1],!0),w=" C "+(y.x.toFixed(1)+","+y.y.toFixed(1)+
" "+z.x.toFixed(1)+","+z.y.toFixed(1)+" "+w.x.toFixed(1)+","+w.y.toFixed(1))),t+=w;return t});var C8r=_.Fp(function(X){var t=X.progressBarProps;var G=X.config;var y={};X=_.cl("ytHeatSeekerHost",(y.ytHeatSeekerHighContrast=X.highContrast,y));var w=function(){return jCv(G().chapterData)};
return _.k("yt-progress-bar-heatseeker",{class:X,style:function(){var z;return"height: 320px; display: "+(t().isDragging&&((z=w())==null?0:z.heatMarkers)?"block":"none")}},_.k(_.d,{cond:w,
then:function(z){return _.k(_.d,{cond:function(){return z().heatMarkers},
then:function(){return _.k("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.k("path",{d:function(){return q62(z())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ne");var K3q=_.Fp(function(X){var t=X.progressBarProps;var G=X.config;X={};X=_.cl("ytProgressBarLineProgressBarLine",(X.ytProgressBarLineProgressBarLineRounded=function(){return G().rounded},X.ytProgressBarLineProgressBarLineBottomInset=function(){return G().position===2},X));
return _.k("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.k("div",{class:X},_.k("div",{class:"ytProgressBarLineProgressBarBackground"}),_.k("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+t().percentLoaded*100+"%"}}),_.k("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var y=t();return"width: "+(y.videoDuration?_.MM(y.hoveredTime/y.videoDuration,0,1):0)*100+"%"}}),_.k("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+kN0(t())*100+"%"}})))},"Oe");
K3q.idomCompat=!0;var OLT=_.Fp(function(X){var t=X.progressBarProps;var G=X.playheadData;var y=X.interpolateDotPosition;var w=X.hidePlayhead;X={};var z=_.cl("ytProgressBarPlayheadProgressBarPlayheadDot",(X.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return t().isDragging},X.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!t().isDragging&&w()},X));
return _.k("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Ud({"margin-left":function(){return d9_(t())*100+"%"},
transform:function(){return"translateX(-"+(y()?d9_(t())*12:6)+"px)"}})},_.k(_.d,{cond:function(){var B;
return(B=_.ex(G)())==null?void 0:B.playheadImage},
then:function(B){var V={};return _.k("div",{class:_.cl("ytProgressBarPlayheadProgressBarPlayheadCustom",(V.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return t().isDragging},V.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!t().isDragging&&w()},V)),
style:_.Ud({"transform-origin":function(){return(y()?d9_(t())*20:10)+"px center"}})},_.k(_.gr,{data:B,
alt:"","aria-hidden":"true"}))},
else:function(){return _.k("div",{class:z,style:_.Ud({"transform-origin":function(){return(y()?d9_(t())*12:6)+"px center"}})})}}))},"Pe");
OLT.idomCompat=!0;var L3=function(X,t,G,y,w,z){this.getProgressBarRect=X;this.updateProgressBarRect=t;this.getFilmstripYPosition=G;this.setFineScrubbingDraggedTime=y;this.updateFilmStripDraggedYDistance=w;this.resetFilmStripYOffset=z;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.d2(this.onThrottledSeek,100,this)},uM4=function(X,t,G){return function(y){X.handleClick(y,t(),G())}},W34=function(X,t){return function(G){QYv(X,
G,IxV(G),t())}},cIB=function(X,t){return function(G){QYv(X,G,{x:G.clientX,
y:G.clientY},t())}},rIH=function(X,t,G){return function(y){var w=t(),z=G();
p$q(X,y,IxV(y),w,z,!0);if(z.onTouchMove)z.onTouchMove(w)}},P8R=function(X,t,G){return function(y){NqN(X,y,t(),G())}},Ewr=function(X,t){return function(){X.handleMouseLeave(t())}},UBr=function(X,t,G){return function(){var y=t(),w=G();
vT(X,y,w);if(w.onTouchEnd)w.onTouchEnd(y)}},mBr=function(X,t,G){return function(){var y=t(),w=G();
vT(X,y,w);if(w.onTouchEnd)w.onTouchEnd(y)}},RQq=function(X,t,G){return function(){vT(X,t(),G())}},iL2=function(X){return function(t){if(t.keyCode===39||t.keyCode===38){var G,y;
(G=X())==null||(y=G.playerApi)==null||y.seekBy(5,void 0,void 0,72)}else if(t.keyCode===37||t.keyCode===40){var w,z;(w=X())==null||(z=w.playerApi)==null||z.seekBy(-5,void 0,void 0,71)}}},L32=function(X,t,G){return function(y){!G().disableScrubbing&&X.startPosition&&NqN(X,y,t(),G())}},vwv=function(X,t,G){return function(){if(!G().disableScrubbing)if(X.startPosition){var y=t(),w=G();
vT(X,t(),G());if(w.onTouchEnd)w.onTouchEnd(y)}else t().setState({isDragging:!1})}},IxV=function(X){X=X.touches[0];
return{x:X.clientX,y:X.clientY}},NqN=function(X,t,G,y){if(t.buttons!==1){if(t.movementX||t.movementY)t.preventDefault(),t.stopPropagation(),X=axB(X,G,t.clientX),G.setState({isHovering:!0,
hoveredTime:X*G.videoDuration})}else lxB(G),p$q(X,t,{x:t.clientX,y:t.clientY},G,y,!1)};
L3.prototype.handleMouseLeave=function(X){lxB(X)};
var lxB=function(X){X.isHovering&&X.setState({isHovering:!1,hoveredTime:0})},QYv=function(X,t,G,y){X.startPosition||(X.startPosition=G,X.updateProgressBarRect(),X.controlsWereVisibleBeforeDragging=y.controlsVisible,t.stopPropagation(),_.A("medium_progress_bar_modification")||t.preventDefault())},p$q=function(X,t,G,y,w,z){if(X.startPosition)if(z&&w.isInlinePlayback&&X.startPosition&&!X.hasDraggedTheMinimumDistance&&Math.abs(G.y-X.startPosition.y)>Math.abs(G.x-X.startPosition.x))vT(X,y,w);
else if(t.preventDefault(),t.stopPropagation(),y.videoDuration&&(X.startPosition&&!X.hasDraggedTheMinimumDistance&&(X.hasDraggedTheMinimumDistance=Math.abs(G.x-X.startPosition.x)>=1),w.enableFineScrubbing&&(X.startPosition&&(X.isDraggedForFineScrubbing=-(G.y-X.startPosition.y)>=60),!X.startPosition||G.y>=X.startPosition.y||(y.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Wef(y.draggedTime,y,w.chapterData)}),X.setFineScrubbingDraggedTime(y.draggedTime),X.updateFilmStripDraggedYDistance(X.startPosition.y,
G.y,y))),X.hasDraggedTheMinimumDistance)){t=axB(X,y,G.x);if(X.isDraggedForFineScrubbing){var B;(B=y.playerApi)==null||B.pauseVideo();y.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:y.draggedTime,filmStripXDistance:Wef(t*y.videoDuration,y,w.chapterData)})}w.enableFineScrubbing&&(!w.enableFineScrubbing||X.getFilmstripYPosition(y)<68)||y.setState({draggedTime:t*y.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:X.controlsWereVisibleBeforeDragging});var V;(V=
w.cancelAutohideControlsFn)==null||V.call(w)}},vT=function(X,t,G){var y=G.enableFineScrubbing&&t.fineScrubbingActiveState!=="off";
if(t.isDragging||y){y={isDragging:!1,playedTime:t.draggedTime,controlsVisible:X.controlsWereVisibleBeforeDragging};G.enableFineScrubbing&&t.fineScrubbingActiveState!=="on"&&(X.resetFilmStripYOffset(),y.fineScrubbingActiveState="off");var w=w===void 0?SzG:w;var z=_.lw(0);if(z&&w){var B=Math.round(t.playedTime*1E3),V=Math.round(t.draggedTime*1E3);B>2147483647||V>2147483647||_.V1(z,w,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(B),endMediaTimeMs:String(V),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}t.setState(y);
X.seekThrottle.fire(t.draggedTime,t,7);_.A("mweb_new_progress_bar_play_on_seek")&&X.resumeVideo(t);G.unmuteOnSeek&&(G=t.playerApi,t.volumeMuted&&(G==null||G.unMute()))}else t.setState({controlsVisible:!t.controlsVisible}),(z=G.triggerAutohideControlsAfterDelayFn)==null||z.call(G);X.startPosition=null;X.hasDraggedTheMinimumDistance=!1;X.isDraggedForFineScrubbing=!1;X.controlsWereVisibleBeforeDragging=!1};
L3.prototype.handleClick=function(X,t,G){this.updateProgressBarRect();X.stopPropagation();X=axB(this,t,X.clientX)*t.videoDuration;t.setState({playedTime:X});if(t.playerState!==2){var y;(y=G.triggerAutohideControlsAfterDelayFn)==null||y.call(G)}this.seekThrottle.fire(X,t,7)};
var axB=function(X,t,G){X=X.getProgressBarRect(t);return _.MM(0,(G-X.left)/X.width,1)};
L3.prototype.resumeVideo=function(X){if(X.draggedTime<X.videoDuration){var t;(t=X.playerApi)==null||t.playVideo()}};
L3.prototype.onThrottledSeek=function(X,t,G){if(t=t.playerApi){var y;if((y=t.getVideoData())==null?0:y.isLive)y=this.getProgressState(t),X+=(y==null?void 0:y.seekableStart)||0;t.seekTo(X,void 0,void 0,void 0,G)}};
L3.prototype.getProgressState=function(X){var t=X==null?void 0:X.getPresentingPlayerType();return X==null?void 0:X.getProgressState(t)};var McN,fxH,X1R,tkH,xBH,G6V,yKN,w1a,zfQ;McN=_.Fp(function(X){var t=X.progressBarProps;var G=X.config;var y=X.progressBarWidthPx;var w=X.chapterData;var z=Ph0(t,function(){return G().isShortsPage}),B=function(){return!t().isHovering&&!G().isShortsPage};
X={};var V=_.cl("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(X.ytPlayerStoryboardHostMwebShorts=function(){return G().isShortsPage&&!1},X));
return _.k("yt-player-storyboard",null,_.k(_.d,{cond:function(){return t().isDragging||t().isHovering},
then:function(){return _.k(_.d,{cond:z,then:function(b){return _.k(_.d,{cond:B,then:function(){return _.k("div",{class:V,"aria-hidden":"true"},_.k(xBH,{props:t,config:G,isBigboard:!0,chapterData:w}))},
else:function(){return _.k(fxH,{props:t,frame:b,config:G,progressBarWidthPx:y,chapterData:w})}})}})}}))},"Qe");
_.$Vv=_.Fp(function(X){var t=X.progressBarProps;var G=Ph0(t,X.isShortsPage);return _.k("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.k(_.d,{cond:function(){return t().isDragging||t().isHovering},
then:function(){return _.k(_.d,{cond:G,then:function(y){return _.k(X1R,{frame:y,props:t,isBigboard:!0})}})}}))},"Re");
fxH=_.Fp(function(X){var t=X.props;var G=X.frame;var y=X.config;var w=X.progressBarWidthPx;X=X.chapterData;var z={};z=_.cl("ytPlayerStoryboardHost",(z.ytPlayerStoryboardHostMwebShorts=function(){return y().isShortsPage&&!1},z.ytPlayerStoryboardHostInlinePlayer=function(){return y().isInlinePlayer},z.ytPlayerStoryboardHostFadeIn=function(){return y().useFadeInAnimation},z));
return _.k("div",{class:z,"aria-hidden":"true",style:function(){var B=t(),V=cUV(G()),b=w();B=pfV(B)/B.videoDuration;var e=b*B,g=V/2+6;V=b-(V/2+6);return"left: "+(e<=g?g/b*100:e>=V?V/b*100:B*100)+"%"}},_.k(_.d,{cond:function(){var B=t();
return!(y().isShortsPage&&B.videoDuration<15)},
then:function(){return _.k(X1R,{frame:G,props:t,isBigboard:!1})}}),_.k(xBH,{props:t,
config:y,isBigboard:!1,chapterData:X}))},"Se");
X1R=_.Fp(function(X){var t=X.frame;var G=X.props;var y=X.isBigboard;var w=function(){var V,b;return(b=(V=G().playerApi)==null?void 0:V.getVideoContentRect())!=null?b:{width:0,height:0}},z=function(){return cUV(t())},B=function(){var V=t();
return V?V.height/V.rows:0};
X={};X=_.cl((X.ytPlayerStoryboardBigboardImageWrapper=y,X.ytPlayerStoryboardStoryboardImageWrapper=function(){return!y()},X));
return _.k("div",{class:X,style:function(){return"width: "+(y()?w().width:z())+"px; height: "+(y()?w().height:B())+"px;"}},_.k(tkH,{frame:t,
storyboardWidth:z,storyboardHeight:B,storyboardScale:function(){return(y()?w().width:z())/z()}}))},"Te");
tkH=_.Fp(function(X){var t=X.frame;var G=X.storyboardWidth;var y=X.storyboardHeight;var w=X.storyboardScale;var z=function(){var B=t().row,V=t().column,b=G(),e=y(),g=w();return{left:-V*b*g,top:-B*e*g}};
return _.k("img",{src:function(){return t().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+z().left+"px; top: "+z().top+"px; width: "+t().width*w()+"px; height: "+t().height*w()+"px;"}})},"Ue");
xBH=_.Fp(function(X){var t=X.props;var G=X.config;var y=X.isBigboard;var w=X.chapterData;X={};X=_.cl("ytPlayerStoryboardMetadata",(X.ytPlayerStoryboardMetadataBigboard=y,X));return _.k("div",{class:X},_.k(_.d,{cond:y,then:function(){return _.k(_.gn,null,_.k(G6V,{props:t,config:G}),_.k(_.d,{cond:function(){a:{var z=t();var B=G(),V=w(),b;if((B==null?0:B.activeChapter)&&((b=_.Y(B==null?void 0:B.activeChapter,Xb))==null?0:b.title))z=!0;else{B=_.J(gYY(V));for(B=B.next();!B.done;B=B.next()){z=(B=_.Y(B.value,
oZ4))&&rUl(z,B);break a}z=!1}}return z},
then:function(){return _.k(yKN,{props:t,config:G,isBigboard:!0,chapterData:w})}}))},
else:function(){return _.k(_.gn,null,_.k(yKN,{props:t,config:G,isBigboard:!0,chapterData:w}),_.k(G6V,{props:t,config:G}))}}))},"Ve");
G6V=_.Fp(function(X){var t=X.props;var G=X.config;X={};X=_.cl("ytPlayerStoryboardTimestamp",(X.ytPlayerStoryboardTimestampShorts=function(){return G().isShortsPage},X.ytPlayerStoryboardTimestampIsHovering=function(){return t().isHovering||G().isShortsPage&&!0},X));
return _.k("div",{class:X},_.k(_.gn,null,function(){return _.NL_(pfV(t()))}))},"We");
yKN=_.Fp(function(X){var t=X.props;var G=X.config;var y=X.isBigboard;var w=X.chapterData;X={};y=_.cl("ytPlayerStoryboardTitle",(X.ytPlayerStoryboardTitleBigboard=y,X));return _.k("div",{class:y},_.k(_.d,{cond:function(){return!G().isShortsPage},
then:function(){return _.k(w1a,{props:t,activeChapter:function(){return G().activeChapter},
chapterData:w})}}))},"Xe");
w1a=_.Fp(function(X){var t=X.props;var G=X.activeChapter;var y=X.chapterData;return _.k(_.gn,null,_.k(_.pY,{each:function(){return gYY(y())},
keyBy:"INDEX"},function(w){return _.k(_.gn,null,_.k(_.d,{cond:function(){return _.Y(w(),oZ4)&&rUl(t(),_.Y(w(),oZ4))},
then:function(){return _.k(zfQ,{timedMarker:function(){return _.Y(w(),oZ4)}})}}))}),_.k(_.d,{cond:function(){var w;
return G()&&((w=_.Y(G(),Xb))==null?void 0:w.title)},
then:function(w){return _.k(_.eh,{text:w,noPreWrap:!0})}}))},"Ye");
zfQ=_.Fp(function(X){var t=X.timedMarker;return _.k(_.gn,null,_.k("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.k(_.mw,{icon:function(){return t().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.k(_.eh,{text:function(){return t().label},
noPreWrap:!0}))},"Ze");_.HDH=_.Fp(function(X){var t=X.progressBarProps;var G=X.playheadData;var y=X.config;X=_.nl("yt-progress-bar");var w=_.nl("div"),z=_.nl("div"),B=_.J(_.sm({width:0,left:0},void 0,"NcXsUb")),V=B.next().value,b=B.next().value,e=function(){z.value&&b(z.value.getBoundingClientRect())},g=function(){V().width<=0&&e();
return V()};
ei("resize",e);var F=new L3(g,function(){},function(){return 0},function(){},function(){},function(){}),T=function(){return t()};
B=_.J(_.sm(!1,void 0,"ZsF6Xc"));var D=B.next().value,h=B.next().value;B=_.NI(function(){h(!0);y().position===2?setTimeout(function(){e()},100):e()});
var u=_.NI(function(){h(!1);Ewr(F,T)()}),W=_.NI(function(cY){y().doSeekOnClick&&uM4(F,T,y)(cY);
return!1}),c=_.NI(function(cY){W34(F,T)(cY);
return!1}),P=_.NI(function(cY){cIB(F,T)(cY);
return!1}),l=_.NI(function(cY){rIH(F,T,y)(cY);
return!1}),R=_.NI(function(cY){P8R(F,T,y)(cY);
return!1}),L=_.NI(function(){UBr(F,T,y)();
return!1}),x=_.NI(function(){mBr(F,T,y)();
return!1}),w6=_.NI(function(){RQq(F,T,y)();
return!1}),BY=_.NI(function(cY){iL2(T)(cY);
return!1});
ei("mousemove",L32(F,T,y));ei("mouseup",vwv(F,T,y));_.LY(function(){h_l(w.value);h(!1);e();vwv(F,T,y)()});
var kJ={};kJ=_.cl("ytPlayerProgressBarHost",function(){return y().className},(kJ.ytPlayerProgressBarHostReadOnly=function(){return y().disableScrubbing},kJ.ytPlayerProgressBarHostHidden=function(){return y().hideProgressBar&&!D()},kJ.ytPlayerProgressBarHostLowerPlayer=function(){return y().position===0},kJ.ytPlayerProgressBarHostBottomEdge=function(){return y().position===1},kJ.ytPlayerProgressBarHostBottomInset=function(){return y().position===2},kJ.ytPlayerProgressBarHostCustom=function(){return y().position===
3},kJ));
var Ss={},C_=_.cl("ytPlayerProgressBarBackground",(Ss.ytPlayerProgressBarBackgroundHide=function(){return y().position===2&&!D()&&!t().isDragging},Ss));
Ss={};Ss=_.cl("ytPlayerProgressBarDragContainer",(Ss.ytPlayerProgressBarDragContainerBottomEdge=function(){return y().position===1},Ss));
var Fv={};Fv=_.cl("ytPlayerProgressBarProgressBar",(Fv.ytPlayerProgressBarProgressBarInset=function(){return y().position===2},Fv.ytPlayerProgressBarProgressBarInsetMinimized=function(){return y().position===2&&!D()&&!t().isDragging},Fv));
var Uh=function(){return Math.floor(kN0(t())*100)};
return _.k("yt-progress-bar",{el:X,class:kJ},_.k(_.d,{cond:function(){return y().position===2},
then:function(){return _.k("div",{class:C_})}}),_.k("div",{el:w,
"on:click":W,"on:touchstart":c,"on:touchmove":l,"on:mouseenter":B,"on:mousedown":P,"on:mouseleave":u,"on:mousemove":R,"on:mouseup":x,"on:touchend":L,"on:touchcancel":w6,"on:keydown":BY,class:Ss,role:"slider","aria-valuenow":Uh,"aria-valuetext":function(){return Uh()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return t().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Qf("SEEK_SLIDER")},_.k("div",{el:z,class:Fv},_.k(C8r,{progressBarProps:t,config:y,highContrast:function(){return!!y().isInlinePlayback}}),_.k(_.d,{cond:function(){return y().chapterData&&Fel(y().chapterData)},
then:function(){return _.k(ZLi,{progressState:t,multiMarkersPlayerBarRenderer:function(){return y().chapterData},
progressBarWidth:function(){return V().width}})},
else:function(){return _.k(K3q,{progressBarProps:t,config:y})}}),_.k(OLT,{progressBarProps:t,
playheadData:G,interpolateDotPosition:function(){return y().position!==2},
hidePlayhead:function(){return y().playheadDotBehavior===1&&!D()}}))),_.k(McN,{progressBarProps:t,
config:function(){return{activeChapter:O7f(t(),y().chapterData),getProgressBarWidthPx:function(){return g().width},
isShortsPage:!!y().isShortsPage,isInlinePlayer:!!y().isInlinePlayback,useFadeInAnimation:!!y().isInlinePlayback}},
progressBarWidthPx:function(){return V().width},
chapterData:function(){return y().chapterData}}))},"$e");
_.HDH.idomCompat=!0;Object.assign({},_.TLh(),{setState:function(){},
domMeasurements:{},appApi:_.b7w(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var oTB;
_.JKB=_.Fp(function(){var X,t=(X=_.tw(EYf().playerApi))!=null?X:void 0;X=_.J(_.sm(!1,void 0,"HLFBmb"));var G=X.next().value,y=X.next().value;X=_.J(_.sm(!1,void 0,"lHH9bc"));var w=X.next().value,z=X.next().value;X=_.J(_.sm(!1,void 0,"zsY7yd"));var B=X.next().value,V=X.next().value;X=_.J(_.sm(!1,void 0,"KeHQgc"));var b=X.next().value,e=X.next().value;X=_.J(_.sm(0,void 0,"gLLCj"));var g=X.next().value,F=X.next().value;X=_.J(_.sm(0,void 0,"s3RYkf"));var T=X.next().value,D=X.next().value;X=_.J(_.sm(!1,void 0,
"Dn608e"));var h=X.next().value,u=X.next().value;X=_.J(_.sm(0,void 0,"AnkH1b"));var W=X.next().value,c=X.next().value;X=_.J(_.sm(0,void 0,"QYNL0b"));var P=X.next().value,l=X.next().value;X=_.J(_.sm("",void 0,"Yzw45d"));var R=X.next().value,L=X.next().value;X=_.J(_.sm(-1,void 0,"iiVI0c"));var x=X.next().value,w6=X.next().value,BY=_.qt(function(){var kJ={controlsVisible:G(),isOverlayHidden:w(),shouldWaitToHideControls:B(),isDragging:b(),isHovering:h(),videoDuration:W(),playedTime:P(),videoId:R(),draggedTime:T(),
hoveredTime:g(),playerState:x()};return Object.assign({},_.TLh(),kJ,{domMeasurements:{},setState:function(Ss){Ss.controlsVisible!==void 0&&y(Ss.controlsVisible);Ss.isOverlayHidden!==void 0&&z(Ss.isOverlayHidden);Ss.shouldWaitToHideControls!==void 0&&V(Ss.shouldWaitToHideControls);Ss.isDragging!==void 0&&e(Ss.isDragging);Ss.isHovering!==void 0&&u(Ss.isHovering);Ss.draggedTime!==void 0&&D(Ss.draggedTime);Ss.hoveredTime!==void 0&&F(Ss.hoveredTime);Ss.videoDuration!==void 0&&c(Ss.videoDuration);Ss.playedTime!==
void 0&&l(Ss.playedTime);Ss.videoId!==void 0&&L(Ss.videoId);Ss.playerState!==void 0&&w6(Ss.playerState)},
appApi:_.b7w(),playerApi:t})},void 0,"ZW7y9");
_.R2(function(){t==null||t.addEventListener("onVideoProgress",D9h(BY));t==null||t.addEventListener("onVideoDataChange",sCv(BY));t==null||t.addEventListener("onStateChange",AUJ(BY))});
_.Um(function(){if(t==null?0:t.isReady())t==null||t.removeEventListener("onVideoProgress",D9h(BY)),t==null||t.removeEventListener("onVideoDataChange",sCv(BY)),t==null||t.removeEventListener("onStateChange",AUJ(BY))});
return _.k("desktop-shorts-player-controls",null,_.k(oTB,{playerControlsProps:BY}))},"af");
oTB=_.Fp(function(X){var t=X.playerControlsProps;return _.k("div",{class:"desktopShortsPlayerControlsWizHost"},_.k(_.HDH,{progressBarProps:t,config:function(){return{isShortsPage:!0,hideProgressBar:t().videoDuration<30&&t().playerState!==2&&!t().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bf");_.BpT=_.Fp(function(X){function t(kJ){kJ!==0||F()?kJ>50&&(F()||!D())?(T(!1),h(!0)):kJ<=50&&(F()||D())&&(T(!1),h(!1)):T(!0)}
function G(kJ,Ss){var C_;return _.n(function(Fv){if(Fv.nextAddress==1)return Fv.yield(_.uX(),2);C_=Fv.yieldResult;Ss&&C_?(C_.unMute(!0),kJ&&(m9l(kJ,C_.getVolume()),W(C_.getVolume()))):C_&&(C_.mute(!0),kJ&&m9l(kJ,0));_.W$(Fv)})}
function y(kJ){var Ss,C_;return _.n(function(Fv){if(Fv.nextAddress==1)return Fv.yield(_.uX(),2);Ss=Fv.yieldResult;C_=50;Ss&&(C_=Ss.getVolume(),Ss.isMuted()?m9l(kJ,0):m9l(kJ,C_));W(C_);_.W$(Fv)})}
var w=X.orientation;X=_.nl("desktop-shorts-volume-controls");var z=_.nl("button"),B=_.VN("input"),V=_.J(_.sm(!1,void 0,"F6vt0d")),b=V.next().value,e=V.next().value,g=_.J(_.sm(!1,void 0,"S5PCqb"));V=g.next().value;g=g.next().value;var F=V,T=g;g=_.J(_.sm(!0,void 0,"Tgy4e"));V=g.next().value;g=g.next().value;var D=V,h=g;V=_.J(_.sm(50,void 0,"Dq3efd"));var u=V.next().value,W=V.next().value;V=_.qt(function(){var kJ=F();return _.A("web_shorts_keyboard_enable_mute_shortcut")?kJ?_.Qf("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Qf("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):kJ?_.Qf("UNMUTE_VOLUME",void 0,"Unmute"):_.Qf("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
g=_.qt(function(){var kJ=F(),Ss=D();return{sources:[{clientResource:{imageName:kJ?_.A("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Ss?_.A("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.A("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var c=_.qt(function(){var kJ=u();return F()?kJ+"% volume muted":kJ+"% volume"},void 0,"kvkmyc"),P=_.qt(function(){return w()==="vertical_down"},void 0,"zaNsZ");
_.LY(function(){function kJ(){e(!0)}
function Ss(){e(!1)}
B&&B.value&&(B.value.addEventListener("focus",kJ),B.value.addEventListener("focusout",Ss),y(B.value).then(function(){t(Number(R_G(B.value)))}));
z&&z.value&&(z.value.addEventListener("focus",kJ),z.value.addEventListener("focusout",Ss));_.Um(function(){var C_;B==null||(C_=B.value)==null||C_.removeEventListener("focus",kJ);var Fv;B==null||(Fv=B.value)==null||Fv.removeEventListener("focusout",Ss);var Uh;z==null||(Uh=z.value)==null||Uh.removeEventListener("focus",kJ);var cY;z==null||(cY=z.value)==null||cY.removeEventListener("focusout",Ss)})});
var l=_.NI(function(){if(B&&B.value){var kJ=Number(R_G(B.value));U9E(kJ);W(kJ);B.value.style.setProperty("--gradient-percent",kJ+"%");t(kJ)}return!1}),R=_.NI(function(){e(!0)}),L=_.NI(function(){B&&B.value&&(G(B.value,F()),T(!F()));
return!1}),x={},w6={},BY={};
return _.k("desktop-shorts-volume-controls",{"on:pointerleave":_.NI(function(){e(!1)}),
class:_.cl("ytdDesktopShortsVolumeControlsHost",(x.ytdDesktopShortsVolumeControlsHostVertical=P,x.ytdDesktopShortsVolumeControlsHostExpanded=b,x)),el:X},_.k(_.d,{cond:function(){return!P()},
then:function(){var kJ={};return _.k("div",{class:_.cl("ytdDesktopShortsVolumeControlsBackgroundScrim",(kJ.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=b,kJ))})}}),_.k("div",{class:_.cl((w6.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=P,w6))},_.k("button",{"aria-label":V,
title:V,el:z,"on:click":L,"on:pointerenter":R,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},g?_.k(_.gr,{data:g,alt:V,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.k("div",{class:_.cl("ytdDesktopShortsVolumeControlsSliderContainer",(BY.ytdDesktopShortsVolumeControlsSliderContainerExpanded=b,BY.ytdDesktopShortsVolumeControlsSliderContainerVertical=P,BY.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=P,BY.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return b()&&P()},BY))},_.k("input",{"aria-label":_.Qf("VOLUME"),
title:_.Qf("VOLUME"),el:B,"on:input":l,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":u,"aria-valuetext":c,"aria-valuemin":0,"aria-valuemax":100})))},"cf");_.nTR=_.Fp(function(X){var t=X.data;return _.k("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.k(_.J4,{command:function(){return t().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.k(_.d,{cond:function(){return t().iconName},
then:function(G){return _.k(_.mw,{icon:G})}}),_.k("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return t().text}),_.k(_.d,{cond:function(){return t().showEndChevron},
then:function(){return _.k(_.mw,{icon:"CHEVRON_RIGHT"})}})))},"df");var VkR=_.Fp(function(X){var t=X.data;var G=X.overlayDensity;X={};return _.k("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.k(_.M7,{data:function(){return t().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(y){var w=y.data;
return _.k(_.lD,{data:function(){return(G==null?void 0:G())===1?Object.assign({},w(),{avatar:{avatarViewModel:Object.assign({},_.Y(w().avatar,_.Hv),{avatarImageSize:"AVATAR_SIZE_48"})}}):w()}})}}),_.k(_.M7,{data:function(){return t().avatarStackViewModel}},{avatarStackViewModel:function(y){return _.k(_.xK,{data:y.data})}}),_.k(_.eh,{className:_.cl("ytReelChannelBarViewModelChannelName",(X.ytReelChannelBarViewModelChannelNameLarge=function(){return(G==null?void 0:G())===1},X)),
text:function(){return t().channelName},
linkInheritColor:!0,userInput:!0}),_.k("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.k(_.M7,{data:function(){return t().subscribeButtonViewModel}},{subscribeButtonViewModel:function(y){var w=y.data;
return _.k(_.vV,{data:function(){return(G==null?void 0:G())===1?Object.assign({},w(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},w().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):w()},
isOverlay:!1})},
buttonViewModel:_.QK})),_.k("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.k(_.M7,{data:function(){var y,w;return(w=_.Y((y=t())==null?void 0:y.sponsorButtonViewModel,Yto))==null?void 0:w.sponsorButton}},{buttonViewModel:function(y){return _.k(_.QK,{data:y.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ef");var bDN=_.Fp(function(X){var t=function(){var y;return(X==null?void 0:(y=X.overlayDensity)==null?void 0:y.call(X))===1?22:16},G={};
return _.k("yt-reel-multi-format-link-view-model",{class:_.cl("ytReelMultiFormatLinkViewModelHost",(G.ytReelMultiFormatLinkViewModelHostTall=!0,G.ytReelMultiFormatLinkViewModelHostLarge=function(){var y;return((y=X.overlayDensity)==null?void 0:y.call(X))===1},G))},_.k(_.J4,{ariaLabel:function(){return X.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return X.data().command}},_.k("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.k(_.d,{cond:function(){return X.data().icon},
then:function(y){return _.k(_.gr,{data:y,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:t})}}),_.k(_.eh,{text:function(){return X.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ff");
bDN.idomCompat=!0;var k6R=_.Fp(function(X){var t=X.data;var G=X.overlayDensity;var y=_.nl("yt-shorts-suggested-action-view-model");X=_.J(_.sm(!1,void 0,"xDqzhe"));var w=X.next().value,z=X.next().value;X=_.J(_.sm(!1,void 0,"LI9CFd"));var B=X.next().value,V=X.next().value,b=function(){return t().isMultiLineSa},e=_.Pk(gfY,function(){var R,L;
return(L=(R=t().toggleableContent)==null?void 0:R.entityKey)!=null?L:""}),g=function(){var R,L,x;
return(x=t().toggleableContent)!=null&&x.entityKey?(L=(R=e())==null?void 0:R.value)!=null?L:!1:!1},F=function(){var R,L,x,w6,BY,kJ,Ss,C_,Fv,Uh,cY;
return t().toggleableContent?g()?(R=t().toggleableContent)==null?void 0:R.toggledData:(L=t().toggleableContent)==null?void 0:L.untoggledData:{primaryText:(C_=(x=t().defaultContent)==null?void 0:x.primaryText)!=null?C_:t().text,secondaryText:(w6=t().defaultContent)==null?void 0:w6.secondaryText,onTapCommand:(Fv=(BY=t().defaultContent)==null?void 0:BY.onTapCommand)!=null?Fv:t().onTapCommand,icon:(Uh=(kJ=t().defaultContent)==null?void 0:kJ.icon)!=null?Uh:t().icon,image:(cY=(Ss=t().defaultContent)==null?
void 0:Ss.image)!=null?cY:t().image}},T=function(){return b()?t().trailingTapTarget:void 0},D=function(R,L){return function(){return w()?L:R}},h=function(){return{leadingSection:D("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(G==null?void 0:G())===1?D("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):D("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:D("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:D("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
X={};X=_.cl((X.ytShortsSuggestedActionViewModelStaticHost=function(){return!b()},X.ytShortsSuggestedActionViewModelDynamicHost=b,X.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return b()&&B()},X.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return b()&&!B()},X));
_.LY(function(){if(b()){var R=0,L;if((L=t().animationParams)==null?0:L.shouldExpand){var x,w6;R=((w6=(x=t().animationParams)==null?void 0:x.expansionDelaySecs)!=null?w6:0)*1E3}var BY,kJ=((BY=t().animationParams)==null?0:BY.shouldExpand)?setTimeout(function(){z(!0)},R):void 0,Ss,C_;
R=((Ss=t().animationParams)==null?0:Ss.visibilityDelaySecs)?((C_=t().animationParams)==null?NaN:C_.visibilityDelaySecs)*1E3:0;var Fv=setTimeout(function(){V(!0)},R);
_.Um(function(){kJ&&clearTimeout(kJ);clearTimeout(Fv)})}});
var u=function(R){_.JH(R,Object.assign({},{form:{element:y.value}}))},W=_.NI(function(){var R,L=(R=F())==null?void 0:R.onTapCommand;
L&&u(L)}),c=_.NI(function(){var R,L;
if(R=(L=T())==null?void 0:L.onTapCommand)return u(R),!1}),P=_.Ud({"vertical-align":"bottom",
"border-radius":function(){var R;return b()?((R=t().defaultContent)==null?0:R.isCircleImage)?"50%":"4px":"0px"},
width:function(){var R,L,x;return b()&&((R=t().defaultContent)==null?0:R.imageSize)?((x=(L=t().defaultContent)==null?void 0:L.imageSize)!=null?x:24)+"px":null},
height:function(){var R,L,x;return b()&&((R=t().defaultContent)==null?0:R.imageSize)?((x=(L=t().defaultContent)==null?void 0:L.imageSize)!=null?x:24)+"px":null}}),l={};
return _.k("yt-shorts-suggested-action-view-model",{class:X,el:y},_.k("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.k("button",{class:_.cl(function(){return b()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var R;
return(R=t().useFullRoundedBorder)!=null&&R?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!T()&&b()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":b()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var R;
return(R=t().disableFixedHeight)!=null&&R?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(l.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(G==null?void 0:G())===1},l)),
"on:click":W},_.k(_.LX,{model:{color:4}}),_.k("div",{class:_.cl(function(){return b()?h().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.k(_.d,{cond:function(){var R;
return(R=F())==null?void 0:R.image},
then:function(R){return _.k(_.gr,{data:R,alt:"",className:function(){return b()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:P})}}),_.k(_.d,{cond:function(){var R,L;
return(R=F())==null?void 0:(L=R.icon)==null?void 0:L.iconType},
then:function(R){return _.k(_.mw,{icon:R,active:g,className:function(){return b()?w()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.k("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.k(_.d,{cond:function(){var R;
return(R=F())==null?void 0:R.primaryText},
then:function(R){return _.k("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.k(_.eh,{text:R}))}}),_.k(_.d,{cond:function(){var R;
return(R=F())==null?void 0:R.secondaryText},
then:function(R){return _.k("div",{class:function(){return h().secondaryText()}},_.k(_.eh,{text:R}))}}))),_.k(_.d,{cond:T,
then:function(R){return _.k("div",{class:function(){return h().trailingSection()},
"aria-label":function(){var L;return(L=R().a11yLabel)!=null?L:""},
"on:click":c,role:"button",tabindex:0},_.k(_.LX,{model:{color:4}}),_.k(_.mw,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"gf");var dVa=_.Fp(function(X){var t=X.data;var G=X.overlayDensity;var y=_.nl("yt-shorts-video-title-view-model");X=_.NI(function(B){if(_.GF(_.t4(B),y.value,["A".toString()]))return!1;(B=t().truncatedTextOnTapCommand)&&_.JH(B);return!1});
var w={},z={};return _.k("yt-shorts-video-title-view-model",{el:y,class:_.cl("ytShortsVideoTitleViewModelHost",(w.ytShortsVideoTitleViewModelHostClickable=function(){return!!t().truncatedTextOnTapCommand},w)),
"on:click":X},_.k("h2",{class:_.cl("ytShortsVideoTitleViewModelShortsVideoTitle",(z.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(G==null?void 0:G())===1},z))},_.k(_.eh,{text:function(){return t().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"hf");_.efQ=_.Fp(function(X){var t=X.data;var G=X.overlayDensity;return _.k("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.k(_.M7,{data:function(){return t().metadataItems}},{badgeViewModel:function(y){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(_.YM,{data:y.data}))},
playerDisclosureViewModel:function(y){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(_.nTR,{data:y.data}))},
shortsSuggestedActionViewModel:function(y){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(k6R,{data:y.data,overlayDensity:G}))},
reelChannelBarViewModel:function(y){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(VkR,{data:y.data,overlayDensity:G}))},
reelMultiFormatLinkViewModel:function(y){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(bDN,{data:y.data,overlayDensity:G}))},
shortsVideoTitleViewModel:function(y){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(dVa,{data:y.data,overlayDensity:G}))},
reelSoundMetadataViewModel:function(y){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(_.gVH,{data:y.data,overlayDensity:G}))},
toggleButtonViewModel:function(y){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(_.Lv,{data:y.data}))}}))},"jf");var jHQ=_.Fp(function(X){var t=_.jx(X,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),G=t.size,y=t.onTap,w=t.disabled,z=t.tooltipText;return _.k("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.k(_.jh,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:G(),disabled:w(),tooltipText:z(),onTap:y}},
iconName:X.iconType}))},"kf"),gTN=_.Fp(function(X){function t(g){g.stopPropagation();
g.code==="ArrowUp"?(g.preventDefault(),vY0(V.value)):g.code==="ArrowDown"?(g.preventDefault(),aqJ(V.value)):g.code==="KeyM"?i7V():(g.code==="KeyK"||g.code==="Space")&&Les(b())}
var G=_.jx(X,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});X=G.previousButtonDisabled;var y=G.nextButtonDisabled,w=G.data,z=G.playabilityStatus,B=G.previewThumbnail,V=_.nl("ytd-shorts-miniplayer-overlay"),b=_.w5(_.Zc6),e;_.R2(function(){(e=_.aH(V.value))&&e.addEventListener("keydown",t)});
_.Um(function(){var g;(g=e)==null||g.removeEventListener("keydown",t)});
G=function(){var g,F,T;return(g=w())==null?void 0:(F=g.reelPlayerOverlayRenderer)==null?void 0:(T=F.likeButton)==null?void 0:T.likeButtonRenderer};
return _.k("ytd-shorts-miniplayer-overlay",{el:V,class:"ytdShortsMiniplayerOverlayHost"},_.k("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Ud({"background-image":function(){var g=B();return g?'url("'+_.hH(g.thumbnails)+'")':""}})}),_.k("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.k("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.k(jHQ,{iconType:function(){var g=b();
return g===2||g===-1||g===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Les(b())},
tooltipText:function(){var g=b();return g===1||g===3?_.Qf("PLAYER_LABEL_PAUSE"):_.Qf("PLAYER_LABEL_PLAY")}}),_.k(_.BpT,{orientation:"horizontal_right"})),_.k("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.k(jHQ,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:X,onTap:function(){vY0(V.value)},
tooltipText:_.Qf("PREVIOUS_VIDEO_LABEL")}),_.k(jHQ,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:y,onTap:function(){aqJ(V.value)},
tooltipText:_.Qf("NEXT_VIDEO_LABEL")}),_.A("web_shorts_pip_like_button")?_.k("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.k(Qn4,{buttonTooltipPosition:"left",data:G,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.k("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.k(_.d,{cond:function(){var g,F;return _.Y((g=w())==null?void 0:(F=g.reelPlayerOverlayRenderer)==null?void 0:F.metapanel,
_.g_4)},
then:function(g){return _.k("div",{class:_.cl("ytdShortsMiniplayerOverlayInteractive")},_.k(_.efQ,{data:g}))}})),_.k("div",{class:_.cl("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var g;return!((g=w())==null||!g.adsOverlay)||z()&&!EpG(z())}},_.k("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.k(_.JKB,null)))),_.k(_.d,{cond:function(){var g=w(),F,T;
g=_.Y(g==null?void 0:(F=g.adsOverlay)==null?void 0:(T=F.fulfillmentContent)==null?void 0:T.fulfilledLayout,rlh);return _.Y(g==null?void 0:g.renderingContent,mFo)},
then:function(g){return _.k("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.k(Zj4,{data:g}))}}))},"lf");var lq_=_.Fp(function(){var X=_.J(_.sm(new _.IH(NaN,NaN),void 0,"HSMFk")),t=X.next().value,G=X.next().value;X=_.J(_.sm(!1,void 0,"uaAxwf"));var y=X.next().value,w=X.next().value,z=_.J(_.sm(!1,void 0,"nVSwef"));X=z.next().value;var B=z.next().value,V=_.gw().resolve(_.G2).miniplayerPropSignalMap[0],b=V.data,e=V.shortsData,g=V.nextButtonDisabled,F=V.shortsPreviewThumbnail,T=V.previousButtonDisabled,D=V.externalPlaylistData;z=V.toastData;var h=V.playabilityStatus,u=V.isDisabled,W=V.playerVe,c=V.closeVe;
V=_.w5(_.u7);_.Bq("yt-pip-window-resized",function(L){G(L)});
_.Bq("yt-activate-pip-miniplayer",function(){return _.n(function(L){B(!0);_.W$(L)})});
var P=function(){var L;return!((L=D())==null||!L.contents)&&y()},l=function(){var L=t(),x=!!b(),w6=P();
L=L.clone();x&&(L.height-=76);w6&&(L.height-=285);return L},R=function(){w(!y())};
_.Em(function(){var L=W(),x=_.lw(11),w6=_.a4(11);x&&w6&&L&&(_.w9(x,w6,L),w6=c())&&(_.zG(x,L,[w6]),_.o$(x,[w6]))},"HPkp0c");
return _.k("ytd-pip-container",{class:"ytdPipContainerHost"},_.k(_.d,{cond:X,then:function(){return _.k(_.DBR,{isDisabled:u,playabilityStatus:h,size:l})}}),_.k(_.d,{cond:b,
then:function(){return _.k(_.Y6V,{data:b,expanded:y,onExpandClick:R,playlistData:D})}}),_.k(_.d,{cond:P,
then:function(){return _.k("div",{class:"ytdPipContainerPlaylistPanel"},_.k(_.OSq,{data:D,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.k(_.d,{cond:V,
then:function(){return _.k(gTN,{data:e,nextButtonDisabled:g,previousButtonDisabled:T,playabilityStatus:h,previewThumbnail:F})}}),_.k("div",{class:"ytdPipContainerToast"},_.k(_.S6q,{toastData:z})))},"mf");var ap=function(X,t){var G=this;this.pipController=X;this.JSC$18524_clientRoot=t;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=oYG();this.watchPipEnabled=_.A("web_watch_pip");this.shortsPipEnabled=_.A("web_shorts_pip");this.JSC$18524_watchWhileEnabled=_.A("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;_.rz(_.dV(),_.s9V,function(y){G.isSingleOptionSurveyActive=y});
this.JSC$18524_onPlayerPlayVideo=this.JSC$18524_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);_.oO(_.Hq.getInstance(),this.miniplayerServiceActionMap,this.JSC$18524_clientRoot);X.pictureInPictureSupported()&&_.a7("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Gge,qwT,DVR,CGr,KbR,JNJ;
ap.prototype.handleMediaSessionPipActivation=function(){var X=this,t;return _.n(function(G){_.cF().mediaSessionPipActivation=!0;t=_.gw().resolve(_.AS);return t.isOnWatch()&&X.watchPipEnabled?(_.cF().watchPipActivation=!0,_.Fbr(X,t.data),G.jumpTo(0)):t.isOnShorts()&&X.shortsPipEnabled?(_.cF().shortsPipActivation=!0,_.Tpr(X),G.jumpTo(0)):X.isMiniplayerActive()&&X.watchPipEnabled&&!X.watchWhileMode?G.yield(AKi(X),0):G.jumpTo(0)})};
var AKi=function(X){var t,G,y,w;return _.n(function(z){if(z.nextAddress==1)return t=!X.miniplayerToPipMode,G=X.playerElement,y=X.miniplayerData,w=X.watchResponse,z.yield(X.deactivate(),2);if(z.nextAddress!=3)return t?(_.cF().mediaSessionPipActivation=!0,_.cF().watchPipActivation=!0):_.cF().miniplayerButtonActivation=!0,z.yield(X.activate(G,y,w),3);X.miniplayerToPipMode=t;_.W$(z)})};
ap.prototype.onDownloadedVideoDeleted=function(X){var t,G=_.Y((t=this.miniplayerData)==null?void 0:t.watchEndpoint,_.nq),y,w;G&&((y=this.watchResponse)==null?void 0:(w=y.playerResponse)==null?void 0:w.offlineState)!==void 0&&(t=G.videoId)&&X&&t===X&&this.close()};
ap.prototype.onShowMiniplayerCommand=function(X){var t=this,G,y,w,z,B,V,b,e,g,F,T,D,h;return _.n(function(u){switch(u.nextAddress){case 1:return G=_.Y(X,oCh),w=(y=G)==null?void 0:y.miniplayerCommand,z=_.Y(w,_.nq),w&&z&&!t.active?u.yield(_.ig.getInstance(),2):u.return();case 2:return B=u.yieldResult,u.yield((V=B)==null?void 0:V.get("yt-miniplayer-shown-video-id"),3);case 3:b=u.yieldResult;e=z.videoId;if(!e||b===e)return u.return();g=_.gw().resolve(_.AS);if(g.isOnWatch())return _.Mj(Error("Fj")),u.return();
F={channelItem:{externalId:btoa(e)}};t.readyToResumeVe=_.ai(121253,void 0,void 0,F);_.cF().showMiniplayerCommandActivation=!0;return u.yield(_.BUo(t,w,!0),4);case 4:return t.active?(_.l3(t,{readyToResumeVe:t.readyToResumeVe,continueWatching:!0,premiumBranding:!((T=G)==null||!T.showPremiumBranding)}),_.A("ytd_miniplayer_to_wiz")&&_.l3(t,{isReadyToResume:!0}),t.isReadyToResume=!0):_.l3(t,{continueWatching:!0,premiumBranding:!((D=G)==null||!D.showPremiumBranding)}),u.yield((h=B)==null?void 0:h.set("yt-miniplayer-shown-video-id",
z.videoId),5);case 5:t.readyToResumeVe=void 0,_.W$(u)}})};
ap.prototype.init=function(X){this.miniplayerEl?_.Mj(new _.NJ("MiniplayerService already initialized.")):this.miniplayerEl=X};
ap.prototype.isInitialized=function(){var X=!!this.miniplayerEl;X||_.Mj(new _.NJ("MiniplayerService used before initialized."));return X};
_.Fbr=function(X,t){if(X.isInitialized()){var G=_.nYV(t.response,t.playerResponse),y=_.gw().resolve(_.AS).getPlayerFromWatch();_.cF().currentEndpoint=G.watchEndpoint||null;X.activate(y,G,t)}};
_.Tpr=function(X){if(X.isInitialized()){var t=_.gw().resolve(_.AS).getPlayerFromShorts();X.activate(t)}};
Gge=function(X,t){var G;(G=!X.isInitialized())||(G=_.gw().resolve(_.AS).isOnWatch()&&X.watchPipMode,G=!(X.isMiniplayerActive()&&(_.cF().userActivation||_.cF().lockupActivation||G)));if(G)return!1;YwR(X,t)?_.i3(X):JNJ(X,t);return X.watchPipMode?!_.gw().resolve(_.AS).isOnWatch():!0};
ap.prototype.isMiniplayerActive=function(){return this.active};
var YwR=function(X,t){var G;t=(G=_.Y(t,_.nq))==null?void 0:G.videoId;var y,w;X=(w=_.Y((y=X.miniplayerData)==null?void 0:y.watchEndpoint,_.nq))==null?void 0:w.videoId;return t!=null&&t===X};
ap.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Yt(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.sl(this.miniplayerEl,"yt-navigate-home-action"))};
_.BUo=function(X,t,G,y){G=G===void 0?!1:G;var w,z,B;return _.n(function(V){switch(V.nextAddress){case 1:if(X.active){V.jumpTo(2);break}w=_.gw().resolve(_.AS);if(B=(z=X.playerElement)!=null?z:w.getPlayerFromWatch()){V.jumpTo(3);break}return V.yield(_.gw().resolve(_.q7),4);case 4:B=w.getPlayerFromWatch();case 3:if(!B){_.Mj(Error("Hj"));V.jumpTo(2);break}return V.yield(X.activate(B,y),2);case 2:return X.active?V.yield(JNJ(X,t,G),0):V.return()}})};
ap.prototype.activate=function(X,t,G){var y=this,w,z,B,V,b,e,g,F,T;return _.n(function(D){switch(D.nextAddress){case 1:if(!y.isInitialized())return D.return();if(!X)return _.Mj(Error("Hj")),D.return();if(_.gK4()||y.isMiniplayerActive())var h=!0;else h=_.cF().watchPipActivation||_.cF().watchWhileActivation,_.gw().resolve(_.AS).isOnWatch()&&!h?(_.Mj(new _.NJ("miniplayer activated on watch page")),h=!0):h=_.cF().watchWhileActivation?y.userDeactivatedWatchWhile||!!document.pictureInPictureElement||YnG():
!1;if(h)return jl4(),D.return();w=_.cF().mediaSessionPipActivation;z=_.cF().shortsPipActivation;B=_.cF().watchPipActivation;b=(V=_.cF().watchWhileActivation)||B;e=B||z;if(!y.pictureInPictureEnabled()||!e){D.jumpTo(2);break}return D.yield(sHH(y,w),3);case 3:if(!D.yieldResult)return _.Mj(Error("Gj")),jl4(),D.return();case 2:return y.setActive(!0),y.watchResponse=G,y.playerElement=X,y.updateMiniplayerData(t),D.yield(DVR(y,X),4);case 4:if(!y.active)return _.Mj(new _.NJ("miniplayer deactivated during activation")),
y.removePlayerListeners(),D.return();h=_.gw().resolve(_.Gm);h.addEventListener("yt-navigate",_.Ik(y,y.onPlaylistNavigate));h.addEventListener("yt-playlist-data-updated",_.Ik(y,y.JSC$18524_onPlaylistDataUpdated));y.JSC$18524_onPlaylistDataUpdated();jl4();y.JSC$18524_watchWhileEnabled&&_.SwH(y,V);y.pictureInPictureEnabled()&&y.shortsPipEnabled&&(y.shortsPipMode=z,_.dV().dispatch(GH4(y.shortsPipMode)));y.pictureInPictureEnabled()&&y.watchPipEnabled&&(y.watchPipMode=B,_.DCv(y.handleMediaSessionPipActivation));
y.player&&(g=y.player.getPlayerState(),F=g===1,_.dV().dispatch(nMq(g)),_.D0(y.miniplayerEl,"yt-miniplayer-play-state-changed",[F]),_.cF().isVideoPlaying=F);_.D0(y.miniplayerEl,"yt-miniplayer-endpoint-changed");hfN(y);_.ZDv(y);return y.shortsPipMode||y.watchPipMode?D.yield(_.SQ(y.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.A("ytd_miniplayer_to_wiz")?D.yield(_.SQ(y.miniplayerEl,"yt-activate-miniplayer",[b]),6):D.yield(_.SQ(y.miniplayerEl,"yt-activate-miniplayer-action",[X,b]),6);case 6:if(y.watchResponse&&
!_.A("miniplayer_copy_screen_on_activation_killswitch")){h=y.getScreenLayer();var u=_.lw(0),W=zm6(0);u&&W&&(_.fE(u,W,h),h===0&&y8h(void 0,0))}qwT(y);CGr(y,!0);(T=y.getPlayerElement())==null||T.focusOnPlayer();_.W$(D)}})};
ap.prototype.updateMiniplayerData=function(X){this.miniplayerData=X;_.l3(this,{data:X})};
_.ZDv=function(X){var t,G,y=((t=X.miniplayerData)==null?void 0:(G=t.miniplayerRenderer)==null?void 0:G.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";t=X.watchWhileMode||X.watchPipMode?y&&!_.gw().resolve(_.AS).isOnWatch():y;_.l3(X,{isDisabled:t});var w,z;G=_.Y((w=X.miniplayerData)==null?void 0:(z=w.miniplayerRenderer)==null?void 0:z.minimizedEndpoint,_.iY);t&&G&&_.gw().resolve(_.RJ).openSheet({openPopupActionCommand:{openPopupAction:G}},X.miniplayerEl)};
qwT=function(X){if(X.watchResponse&&!KbR(X)){var t,G=(t=X.watchResponse.playerResponse)==null?void 0:t.trackingParams;G&&(_.l3(X,{expandVe:_.ai(35989),closeVe:_.ai(34699),readyToResumeCloseVe:_.ai(131070),repositionVe:_.ai(226204),resizeVe:_.ai(226205)}),_.l3(X,{playerVe:_.i$(G)}))}};
DVR=function(X,t){return _.n(function(G){if(G.nextAddress==1)return t.preparePlayer(),G.yield(t.getPlayerPromise(),2);X.player=G.yieldResult;X.player&&(X.player.addEventListener("onPlayVideo",X.JSC$18524_onPlayerPlayVideo),X.player.addEventListener("onCloseMiniplayer",X.onPlayerCloseMiniplayer),X.player.addEventListener("onExpandMiniplayer",X.onPlayerExpandMiniplayer),X.player.addEventListener("onStateChange",X.onPlayerStateChange));_.W$(G)})};
_.H=ap.prototype;_.H.JSC$18524_onPlayerPlayVideo=function(X){var t=X.sessionData&&"autonav"in X.sessionData,G;X.sessionData&&X.sessionData.itct&&(G=X.sessionData.itct);var y=X.watchEndpoint;t=y&&t?_.cxG(y,G):_.TG(X.videoId,X.listId||void 0,G);X.sessionData&&_.dk(_.Y(t.commandMetadata,_.jQ).url,X.sessionData);JNJ(this,t)};
_.H.onPlayerExpandMiniplayer=function(){_.i3(this)};
_.H.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.H.onPlayerStateChange=function(){if(this.player){var X=this.player.getPlayerState(),t=X===1;_.dV().dispatch(nMq(X));_.dV().dispatch(_.kHo(X));_.D0(this.miniplayerEl,"yt-miniplayer-play-state-changed",[t]);_.cF().isVideoPlaying=t;if(X===0){t=!_.gz.getInstance().isAutoplaySetExplicitly();var G,y,w,z,B,V,b=(G=this.watchResponse.response)==null?void 0:(y=G.contents)==null?void 0:(w=y.twoColumnWatchNextResults)==null?void 0:(z=w.autoplay)==null?void 0:(B=z.autoplay)==null?void 0:(V=B.autoplayExplicitChoiceDialogRenderer)==
null?void 0:V.confirmDialogRenderer;t&&b&&this.player.setAutonavState(1)}X===0&&this.watchWhileMode&&this.deactivate()}};
_.H.onPlaylistNavigate=function(X,t){var G=this,y,w,z,B,V,b,e;return _.n(function(g){if(g.nextAddress==1){if(!_.Y(t.endpoint,_.nq))return g.return();_.cF().currentEndpoint=t.endpoint;_.D0(G.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.gw().resolve(_.AS).isOnWatch()&&(G.watchWhileMode||G.watchPipMode))return g.return();X.stopPropagation();(z=(w=_.Y((y=t.endpoint)==null?void 0:y.commandMetadata,_.jQ))==null?void 0:w.url)&&t.tempData&&!_.RH.isEmpty(t.tempData)&&_.dk(z,t.tempData);B={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};V=new ezq(function(){return G.getPlayerElement()},B,{layer:G.getScreenLayer()});
b=function(F){V.processChunk({endpoint:t.endpoint,data:F})};
OD2(G);G.miniplayerFetchRequest=u24(G,t.endpoint,b);_.CL(g,2);return g.yield(G.miniplayerFetchRequest,4)}if(g.nextAddress!=2)return e=g.yieldResult,QHH(G,e),_.zx(g,0);_.IY(g);_.W$(g)})};
_.H.JSC$18524_onPlaylistDataUpdated=function(){var X=_.gw().resolve(_.Gm).getPlaylistData();this.hasPlaylistData=!!X;_.l3(this,{externalPlaylistData:X||{}})};
_.H.close=function(X){if(this.isInitialized())if(X){if(!((this.watchWhileMode||this.watchPipMode)&&_.gw().resolve(_.AS).isOnWatch()||this.shortsPipMode)){var t;(t=this.getPlayerElement())==null||t.stop()}this.deactivate()}else _.oI().closeMiniplayer(this.miniplayerEl)};
_.H.deactivate=function(X){var t=this,G,y,w,z;return _.n(function(B){if(B.nextAddress==1){if(!t.isInitialized()||!t.active)return B.return();t.setActive(!1);OD2(t);(G=!!X&&YwR(t,X))&&t.isSingleOptionSurveyActive&&_.sl(t.miniplayerEl,"yt-show-watch-page-survey",[t.isSingleOptionSurveyActive]);return B.yield(IAH(t),2)}if(B.nextAddress!=3){CGr(t,!1);t.isReadyToResume=!1;t.watchResponse=void 0;t.updateMiniplayerData(void 0);t.shortsPipMode&&(t.shortsPipMode=!1,_.dV().dispatch(GH4(t.shortsPipMode)),aPQ(t.pipController),
(y=t.player)==null||y.setInternalSize(NaN,NaN));t.watchPipMode&&(t.watchPipMode=!1,aPQ(t.pipController));(w=t.watchWhileMode)&&_.SwH(t,!1);t.removePlayerListeners();var V=_.gw().resolve(_.Gm);V.removeEventListener("yt-navigate",_.Ik(t,t.onPlaylistNavigate));V.removeEventListener("yt-playlist-data-updated",_.Ik(t,t.JSC$18524_onPlaylistDataUpdated));_.cF().currentEndpoint=null;_.D0(t.miniplayerEl,"yt-miniplayer-endpoint-changed");t.playerElement=null;jl4();return t.shortsPipMode||t.watchPipMode?B.jumpTo(3):
B.yield(_.SQ(t.miniplayerEl,_.A("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[G,w]),3)}(z=t.player)==null||z.setInternalSize(NaN,NaN);t.player=null;_.W$(B)})};
var IAH=function(X){var t;return _.n(function(G){t=_.gw().resolve(_.AS);return X.shortsPipMode?G.yield(t.movePlayerToShorts(X.playerElement),0):G.yield(t.movePlayerToWatch(X.playerElement),0)})};
ap.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18524_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
ap.prototype.setActive=function(X){this.active=X;this.isSingleOptionSurveyActive?_.sl(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.sl(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.dV().dispatch(_.Dl({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.SwH=function(X,t){X.watchWhileMode=t;_.l3(X,{watchWhile:t})};
CGr=function(X,t){if(!KbR(X))if(X.shortsPipMode||X.watchPipMode){var G;(G=X.player)==null||G.setDocumentPictureInPicture(t)}else{var y;(y=X.player)==null||y.setMinimized(t)}};
KbR=function(X){return X.watchWhileMode&&_.A("kevlar_watch_while_counterfactual")};
_.i3=function(X){var t;return _.n(function(G){switch(G.nextAddress){case 1:if(!X.isInitialized())return G.return();_.CL(G,2);return G.yield(X.miniplayerFetchRequest,4);case 4:_.zx(G,3);break;case 2:_.IY(G);case 3:X.watchResponse&&X.miniplayerData&&X.miniplayerData.watchEndpoint?(t={url:X.watchResponse.url,endpoint:X.miniplayerData.watchEndpoint,data:X.watchResponse,miniplayer:!0},_.Yt(X.miniplayerEl,"yt-navigate-cache",t)):X.miniplayerData&&X.miniplayerData.watchEndpoint&&_.Yt(X.miniplayerEl,"yt-navigate",
{endpoint:X.miniplayerData.watchEndpoint}),_.W$(G)}})};
JNJ=function(X,t,G){var y,w,z,B;return _.n(function(V){if(V.nextAddress==1){if(YwR(X,t))return V.return();_.cF().currentEndpoint=t;_.D0(X.miniplayerEl,"yt-miniplayer-endpoint-changed");_.D0(X.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.cF().isVideoPlaying=!1;y={clientParams:{miniplayer:!0,autoSaveToQueue:!G}};w=new ezq(function(){return X.getPlayerElement()},y,{layer:X.getScreenLayer(),
parentLayer:0},void 0,X.readyToResumeVe);z=function(b){var e,g,F=Object.assign({},(e=b.playerResponse)==null?void 0:(g=e.playerConfig)==null?void 0:g.playbackStartConfig,{startPaused:!0}),T;G&&((T=b.playerResponse)==null?0:T.playerConfig)&&(b.playerResponse.playerConfig.playbackStartConfig=F);w.processChunk({endpoint:t,data:b})};
OD2(X);X.miniplayerFetchRequest=u24(X,t,z);_.CL(V,2);return V.yield(X.miniplayerFetchRequest,4)}if(V.nextAddress!=2)return B=V.yieldResult,QHH(X,B),_.zx(V,0);_.IY(V);_.W$(V)})};
ap.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var OD2=function(X){X.miniplayerFetchRequest&&(X.miniplayerFetchRequest.cancel&&X.miniplayerFetchRequest.cancel("Active request obsolete"),X.miniplayerFetchRequest=null)},u24=function(X,t,G){var y=_.PN.instance,w,z=(w=_.Y(t.commandMetadata,_.jQ))==null?void 0:w.url,B;
w=!z||_.A("disable_miniplayer_tempdata")?{}:(B=iPE(z))!=null?B:{};return z2(y,t,w,window.location.href,"watch",function(V,b){G(b)},function(V){return V!==X.miniplayerFetchRequest})},QHH=function(X,t){var G;
_.n(function(y){if(!t)return y.return();X.watchResponse=t;qwT(X);hfN(X);G=_.nYV(t.response,t.playerResponse);if(X.isMiniplayerActive()){t.response&&(X.playerElement.watchNextData=t.response);var w=_.RH.getValueByKeys.apply(_.RH,[t].concat(_.RY(hio)));_.RH.getValueByKeys.apply(_.RH,[t].concat(_.RY(O$z)))&&w&&_.gw().resolve(_.Gm).setAutoplayRenderer(w);if(w)if(_.A("kevlar_is_pupi_enabled")){var z,B,V,b,e,g=((z=t.response)==null?0:(B=z.playerOverlays)==null?0:(V=B.playerOverlayRenderer)==null?0:(b=V.autonavToggle)==
null?0:(e=b.autoplaySwitchButtonRenderer)==null?0:e.enabled)?2:1;_.gz.getInstance().setState(g,!1,!1)}else z=zrv()?2:1,(g=X.player)==null||g.setAutonavState(z);X.updateMiniplayerData(G);_.ZDv(X)}_.W$(y)})},hfN=function(X){var t,G,y=(t=X.watchResponse)==null?void 0:(G=t.playerResponse)==null?void 0:G.playabilityStatus,w;
t=y==null?void 0:(w=y.miniplayer)==null?void 0:w.miniplayerRenderer;(t==null?void 0:t.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&t.minimizedEndpoint&&_.hE(X.miniplayerEl,[t.minimizedEndpoint]);_.l3(X,{miniplayerRenderer:t,playabilityStatus:y})};
ap.prototype.openToast=function(X,t){_.l3(this,{toastData:{data:X,label:t}})};
_.l3=function(X,t){var G=X.miniplayerEl,y;for(y in t)G[y]=t[y];(0,X.miniplayerPropSignalMap[1])(t)};
ap.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var X;return this.playerElement?this.playerElement:(X=_.Sm(this.miniplayerEl).querySelector("#player-container"))==null?void 0:X.firstElementChild};
ap.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var sHH=function(X,t){t=t===void 0?!1:t;var G,y,w,z,B,V,b;return _.n(function(e){if(e.nextAddress==1){G=navigator.userActivation.isActive||t;if(!G||!X.pictureInPictureSupported())return e.return(!1);y=Wbv(X);w=y.width;z=y.height;return e.yield(X.pipController.openWindow({width:w,height:z}),2)}B=e.yieldResult;V=X.pipController.getWindow();if(!V||!B)return e.return(!1);V.document.body.style.overflow="hidden";b=x90(V);lPN(X.pipController,function(){cKv(X);b()});
return e.return(!0)})},Wbv=function(X){var t=_.cF().shortsPipActivation,G,y;
X=t?.5625:(y=(G=X.player)==null?void 0:G.getVideoAspectRatio())!=null?y:16/9;G=Math.min(window.innerWidth,window.innerHeight)/2;t=t?0:76;return X>1?new _.IH(G,t+G/X):new _.IH(G*X,t+G)},cKv=function(X){var t;
_.n(function(G){t=_.gw().resolve(_.AS);return t.isOnWatch()&&X.watchPipMode||t.isOnShorts()&&X.shortsPipMode?G.yield(X.deactivate(),0):X.miniplayerToPipMode?G.yield(AKi(X),0):X.watchPipMode?G.yield(_.i3(X),0):G.jumpTo(0)})};
ap.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.ke.Object.defineProperties(ap.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ap[gA]=[xzi,XoB];var p1R="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(" "),
rKi="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(" "),NpB="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
PG2="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var ETB=null;var UVN={},mVa=(UVN.initialized={priority:10,callback:function(X){var t=_.gw();t.addProvider({provide:wmo,useClass:fHr});t.addProvider({provide:_.xRa,useFactory:function(){return new zKB}});
t.addProvider({provide:Rw,useValue:_.Md("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});t.addProvider({provide:wY4,useValue:5184E6});t.addProvider({provide:AAa,useValue:_.va()});t.addProvider({provide:Kt2,useClass:XX4});t.addProvider({provide:zM,useClass:zM});t.addProvider({provide:_.q7,useFactory:function(){return yeq.promise}});
t.addProvider({provide:_.ziq,useFactory:function(){return _.w5t.promise}});
t.addProvider({provide:Qps,useValue:function(){var b;return((b=_.sW())==null?void 0:b.getPlayer())||null}});
var G={};t.addProvider((G.provide=_.b3,G.useFactory=function(b,e){return function(){return HIE(b,e)}},G[gA]=[Rw,
wY4],G));G={};t.addProvider((G.provide=_.Zz,G.useClass=LEi,G[gA]=[Rw,wY4],G));G={};t.addProvider((G.provide=_.b6Y,G.useClass=xwV,G[gA]=[_.Zz],G));t.addProvider({provide:Wb,useFactory:_.dV});t.addProvider({provide:Dw,useFactory:_.dV});t.addProvider({provide:Wti,useFactory:_.dV});t.addProvider({provide:EUt,useFactory:_.dV});t.addProvider({provide:_.Gw,useFactory:_.dV});t.addProvider({provide:Qa,useValue:_.Q1});t.addProvider({provide:iT2,useClass:HpA});t.addProvider({provide:ID4,useClass:QfP});t.addProvider({provide:M3,
useClass:M3});t.addProvider({provide:II,useClass:II});t.addProvider({provide:WN,useClass:WN});t.addProvider({provide:pu,useClass:pu});t.addProvider({provide:z0,useClass:z0});t.addProvider({provide:Ie,useClass:Ie});t.addProvider({provide:ZL,useClass:ZL});t.addProvider({provide:WER,useValue:dBH});t.addProvider({provide:_.iR,useFactory:_.Pj});t.addProvider({provide:TU,useFactory:_.cP});G={};t.addProvider((G.provide=xmJ,G.useFactory=function(b){return function(e){var g=g===void 0?{}:g;var F,T,D=(T=_.Y((F=
e.endpoint)==null?void 0:F.commandMetadata,_.jQ))==null?void 0:T.rootVe;if(D){var h,u;if(F=e.previousCsn||((u=_.Y((h=e.endpoint)==null?void 0:h.commandMetadata,pMJ))==null?void 0:u.parentCsn)){var W=W===void 0?{}:W;if(F!==_.lw(W.layer)||D!==zm6(W.layer))nXV(F,W.cttAuthInfo,W.layer||0),y8h(F,W.layer||0),h=W.layer||0,_.fY(wZV(h===void 0?0:h),D);g.parentCsn=F}e.endpoint&&F?t94(b,e.endpoint,g):_.qP(b,D,void 0,g);var c;((c=e.response)==null?0:c.trackingParams)&&b.graftServerVe(e.response.trackingParams);
var P;((P=e.playerResponse)==null?0:P.trackingParams)&&b.graftServerVe(e.playerResponse.trackingParams);var l;((l=e.reelWatchSequenceResponse)==null?0:l.trackingParams)&&b.graftServerVe(e.reelWatchSequenceResponse.trackingParams)}}},G[gA]=[_.iR],G));
G={};t.addProvider((G.provide=pSa,G.useClass=cq2,G[gA]=[Qa,_.Gw],G));G={};t.addProvider((G.provide=DV,G.useClass=DV,G[gA]=[_.q7,_.Gw],G));G={};t.addProvider((G.provide=T0,G.useClass=T0,G[gA]=[Dw,_.F3],G));t.addProvider({provide:_.mzr,useClass:MYv});G={};t.addProvider((G.provide=_.mD,G.useClass=LtR,G[gA]=[_.mzr],G));t.addProvider({provide:_.RJ,useClass:ZV});t.addProvider({provide:_.dwT,useClass:QNN});t.addProvider({provide:_.ia,useClass:SX});G={};t.addProvider((G.provide=_.e4,G.useClass=fPv,G[gA]=
[_.e4],G));t.addProvider({provide:_.SR,useClass:Z2q});t.addProvider({provide:Pb,useClass:Pb});t.addProvider({provide:Lf,useClass:Lf});G={};t.addProvider((G.provide=Z6,G.useClass=Z6,G[gA]=[_.F3,_.Mr],G));t.addProvider({provide:$f,useClass:h7});G={};t.addProvider((G.provide=y4,G.useClass=y4,G[gA]=[_.RJ,$f],G));_.A("web_enable_feedback_endpoint_resolver")&&(G={},t.addProvider((G.provide=cb,G.useClass=cb,G[gA]=[Wb,Iw],G)),t.addProvider({provide:Iw,useClass:fDq}));_.A("web_enable_feedback_endpoint_resolver_batch_2")&&
(G={},t.addProvider((G.provide=r$,G.useClass=r$,G[gA]=[Wb],G)),G={},t.addProvider((G.provide=pf,G.useClass=pf,G[gA]=[Iw],G)));G={};t.addProvider((G.provide=tR,G.useClass=tR,G[gA]=[_.ia,$f],G));G={};t.addProvider((G.provide=xN,G.useClass=xN,G[gA]=[_.ia],G));G={};t.addProvider((G.provide=GU,G.useClass=GU,G[gA]=[_.Mr,_.mD],G));G={};t.addProvider((G.provide=XC,G.useClass=XC,G[gA]=[_.Mr,_.iR],G));t.addProvider({provide:hR,useClass:hR});G={};t.addProvider((G.provide=FC,G.useClass=FC,G[gA]=[Wb],G));t.addProvider({provide:PA,
useClass:PA});t.addProvider({provide:N$,useClass:N$});G={};t.addProvider((G.provide=Uv,G.useClass=Uv,G[gA]=[Wb],G));G={};t.addProvider((G.provide=ms,G.useClass=ms,G[gA]=[_.Mr,Wb],G));G={};t.addProvider((G.provide=RF,G.useClass=RF,G[gA]=[Wb],G));G={};t.addProvider((G.provide=ic,G.useClass=ic,G[gA]=[Wb],G));G={};t.addProvider((G.provide=ff,G.useClass=ff,G[gA]=[_.mD],G));G={};t.addProvider((G.provide=Ov,G.useClass=Ov,G[gA]=[_.iR],G));G={};t.addProvider((G.provide=pw,G.useClass=pw,G[gA]=[Dg],G));G={};
t.addProvider((G.provide=rW,G.useClass=rW,G[gA]=[Dg],G));t.addProvider({provide:IF,useClass:IF});t.addProvider({provide:WA,useClass:WA});t.addProvider({provide:Kw,useClass:Kw});G={};t.addProvider((G.provide=wW,G.useClass=wW,G[gA]=[_.mD,_.F3],G));t.addProvider({provide:mI,useClass:mI});G={};t.addProvider((G.provide=MU,G.useClass=MU,G[gA]=[_.Mr,_.mD],G));t.addProvider({provide:vb,useClass:vb});G={};t.addProvider((G.provide=j4,G.useClass=j4,G[gA]=[Wb,_.Mr,_.e4],G));G={};t.addProvider((G.provide=kf,G.useClass=
kf,G[gA]=[_.Mr,_.F3],G));t.addProvider({provide:PBt,useValue:ATY});t.addProvider({provide:iFY,useValue:vN_});t.addProvider({provide:dW,useClass:dW});G={};t.addProvider((G.provide=bc,G.useClass=bc,G[gA]=[Wb],G));G={};t.addProvider((G.provide=gW,G.useClass=gW,G[gA]=[_.SR,_.F3],G));G={};t.addProvider((G.provide=NU,G.useClass=NU,G[gA]=[_.F3],G));t.addProvider({provide:QS,useFactory:function(){return new QS(_.dV())}});
t.addProvider({provide:jzY,useFactory:_.lu.getInstance});G={};t.addProvider((G.provide=i4,G.useClass=i4,G[gA]=[Rw,jzY,_.F3],G));t.addProvider({provide:Eu,useClass:Eu});t.addProvider({provide:qU,useClass:qU});t.addProvider({provide:Kf,useClass:Kf});t.addProvider({provide:_.Cf,useClass:_.Cf});t.addProvider({provide:aF,useClass:aF});G={};t.addProvider((G.provide=BA,G.useClass=BA,G[gA]=[Dw],G));G={};t.addProvider((G.provide=nw,G.useClass=nw,G[gA]=[_.F3],G));_.A("web_enable_prefetching_videos_on_home")&&
(t.addProvider({provide:Ff,useClass:Ff}),t.addProvider({provide:Na,useClass:Na}));G={};t.addProvider((G.provide=vA,G.useClass=vA,G[gA]=[_.F3],G));t.addProvider({provide:Ou,useClass:Ou});G={};t.addProvider((G.provide=Zg,G.useClass=Zg,G[gA]=[_.Mr,_.F3],G));G={};t.addProvider((G.provide=u4,G.useClass=u4,G[gA]=[_.F3],G));t.addProvider({provide:PT,useClass:PT});t.addProvider({provide:oF,useClass:oF});G={};t.addProvider((G.provide=HA,G.useClass=HA,G[gA]=[Dw,_.F3],G));G={};t.addProvider((G.provide=fw,G.useClass=
fw,G[gA]=[Dw,_.F3,_.Mr],G));G={};t.addProvider((G.provide=M$,G.useClass=M$,G[gA]=[_.F3],G));G={};t.addProvider((G.provide=xf,G.useClass=xf,G[gA]=[_.F3,_.Mr],G));G={};t.addProvider((G.provide=V4,G.useClass=V4,G[gA]=[_.q7],G));G={};t.addProvider((G.provide=JR,G.useClass=JR,G[gA]=[_.q7],G));t.addProvider({provide:sv,useClass:sv});t.addProvider({provide:S4,useClass:S4});t.addProvider({provide:Ev,useClass:Ev});t.addProvider({provide:q$,useClass:q$});t.addProvider({provide:Yf,useClass:Yf});t.addProvider({provide:aw,
useClass:aw});t.addProvider({provide:AR,useClass:AR});_.A("kevlar_enable_mss_lazy_load")&&t.addProvider({provide:_.w1,useClass:WNq});t.addProvider({provide:_.rv,useClass:C3});t.addProvider({provide:jO,useFactory:function(){return _.Hq.getInstance()}});
t.addProvider({provide:Qqv,useFactory:ANV});t.addProvider({provide:Dg,useFactory:function(){return _.ig.getInstance()}});
t.addProvider({provide:ln4,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});G={};t.addProvider((G.provide=_.A7,G.useClass=_.A7,G[gA]=[_.q7,_.F3,_.iR,Qqv,Dg,jO,ln4,Qa],G));t.addProvider({provide:_.ua,useClass:pT4});t.addProvider({provide:_.H_q,useClass:zG4});G={};t.addProvider((G.provide=l4,G.useClass=l4,G[gA]=[_.H_q],G));G={};t.addProvider((G.provide=_.Y8,G.useFactory=function(b){return b.upliftCompletionResolver.promise},G[gA]=[pSa],G));
G=_.X3("IS_SHELL_LOAD")?"aa":"eocs";var y=_.X3("IS_SHELL_LOAD")?3:2;_.wv().parkOrScheduleJob(function(){NoN()},y,G);
_.wv().parkOrScheduleJob(function(){_.gw().resolve(DV).start()},2,"eocs");
_.wv().parkOrScheduleJob(function(){IPV()},2,"eocs");
_.wv().parkOrScheduleJob(function(){_.gw().resolve(T0).start()},2,"eocs");
_.A("kevlar_debug_data_app_registration_ks")||wTl();t.addProvider({provide:_.xI,useValue:new ph4(X.root)});t.addProvider({provide:wS,useValue:new D7w});t.addProvider({provide:_.iSq,useValue:new mye(X.root)});t.addProvider({provide:_.fp,useValue:new RSq});t.addProvider({provide:_.U2,useClass:cV});t.addProvider({provide:xzi,useClass:qa});_.A("kevlar_network_sli_killswitch")||t.addProvider({provide:H1N,useValue:PNY});t.addProvider({provide:cT,useFactory:BD0});_.A("web_bind_fetch")&&(G={},t.addProvider((G.provide=
La2,G.useFactory=nD0,G[gA]=[_.jH(cT)],G)));_.A("web_bind_parse")&&(G={},t.addProvider((G.provide=vVV,G.useFactory=Vys,G[gA]=[_.jH(cT)],G)));_.A("web_bind_window_request")&&(G={},t.addProvider((G.provide=aHq,G.useFactory=bCw,G[gA]=[_.jH(cT)],G)));_.A("web_bind_text_decoder")&&(G={},t.addProvider((G.provide=lHH,G.useFactory=kel,G[gA]=[_.jH(cT)],G)));G={};t.addProvider((G.provide=Shq,G.useFactory=vDf,G[gA]=[_.Y8,Wb,_.b3],G));G={};t.addProvider((G.provide=Dwq,G.useClass=XZ,G[gA]=[Shq],G));t.addProvider({provide:Plr,
useClass:cAq});t.addProvider({provide:T6H,useClass:YhR});G=[].concat(_.RY(ee));_.A("web_continuation_response_processing")&&G.push(_.Hk);G.push(bvR);_.A("enable_share_panel_navigation_logging_fix_on_web")&&G.push(_.uXB);t.addProvider({provide:T8v,useValue:G});t.addProvider({provide:THf,useClass:FE4});t.addProvider({provide:VBB,useClass:ogV});G={};t.addProvider((G.provide=e1V,G.useClass=tEJ,G[gA]=[Dw],G));_.vz.addLowPriorityJob(function(){UGV()});
G={};t.addProvider((G.provide=Rzq,G.useFactory=function(b){return function(e){var g,F=(g=_.Y(e.commandMetadata,_.jQ))==null?void 0:g.url;if(!F)throw new _.NJ("No URL for PBJ Command",e);F=wPf(F,{pbj:"1"});g=saA(F,{})||{};g=Object.assign({},g,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Md("STS").toString()});e=_.Ks({command:JSON.stringify(e),session_token:_.Md("XSRF_TOKEN")});return b.fetch(F,{method:"POST",headers:g,body:e})}},G[gA]=[VBB],G));
G=[];G.push(t.resolve(T6H));y={};y=(y.client_location=_.lu.getInstance(),y.consistency=_.zks(),y.entities=t.resolve(ID4),y.response_received_commands=t.resolve(THf),y.store=t.resolve(_.b6Y),y.tokens=t.resolve(T6H),y);_.A("web_service_params_response_processor")&&(t.addProvider({provide:yMa,useFactory:function(){var b={};return b.CSI=e5V(),b.ECATCHER=dmv(),b}}),t.addProvider({provide:JOh,
useClass:wtr}),y.service_params=t.resolve(JOh));if(_.A("web_shorts_prefetch_service_enabled")){var w=new ffq(t.resolve(_.Zz));y.shorts_prefetch=w}y.adblock_detection=t.resolve(e1V);t.addProvider({provide:_.Jv,useClass:_.Jv});w=t.resolve(WER);var z=[];_.A("PremiumClientSharedConfig__enable_att_context_processor")&&(t.addProvider({provide:guq,useClass:duJ}),z.push(t.resolve(guq)));if(_.A("owl_pl_await")){var B={};t.addProvider((B.provide=Nia,B.useFactory=function(b){return new p4Q(b)},B[gA]=[_.Jv],
B));
z.push(t.resolve(Nia))}t4e(w,t.resolve(VBB),t.resolve(iT2),y,t.resolve(_.Zz),G,z,t.resolve(Dwq),t.resolve(Plr));t.addProvider({provide:_.Mr,useValue:_.VE.instance});_.A("start_client_gcf")&&t.addProvider({provide:mu,useValue:pq4()});t.addProvider({provide:Ehv,useFactory:function(){return new Ehv(_.gw().resolve(_.Jv),_.ig.getInstance())}});
_.wv().parkOrScheduleJob(function(){Uz2()},1,"eocs");
G={};t.addProvider((G.provide=sk,G.useClass=sk,G[gA]=[_.b3,_.Mr],G));t.addProvider({provide:_.w4i,useFactory:_.rF.getInstance});_.wv().parkOrScheduleJob(function(){_.gw().resolve(sk).refresh()},0,"eocs");
ikS(dBH.watchEndpointMap||{},w.reelWatchEndpointMap||{},X.injector.resolve(_.Mr));t.addProvider({provide:RA,useValue:_.PN.instance});_.A("kevlar_signal_collection_killswitch")||(G={},t.addProvider((G.provide=CJQ,G.useClass=CJQ,G[gA]=[Rw,TU],G)),_.wv().parkOrScheduleJob(function(){_.gw().resolve(CJQ).record()},1,"eocs"));
_.A("web_debug_handler_registration_killswitch")||_.wv().parkOrScheduleJob(function(){G00("DOWNLOAD_PES",TUs);_.A("offline_client_state_export_ks")||G00("OFFLINE_CLIENT_STATE",jBA)},0,"eocs");
_.A("kevlar_prevent_polymer_dynamic_font_load")&&_.wv().parkOrScheduleJob(function(){var b=[_.sw(sja),_.sw(Dxa)];b=_.J(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var g=document.createElement("link");_.dq(g,e,"stylesheet");document.head.appendChild(g)}},1,"eocs");
G=X.injector.resolve(_.Mr);_.jfq.instance=new _.jfq(G);$pl(J5B(new ecR(G)));G={};X.injector.addProvider((G.provide=ji,G.useFactory=function(b){(b=b==null?void 0:b.getCurrentPage())?b=b.visibilityObserver:(ETB||(ETB=VGv()),b=ETB);return b},G[gA]=[_.jH(_.AS)],G.skipCache=!0,G));
t.addProvider({provide:_.G2,useClass:ap});t.addProvider({provide:WV,useClass:RxR});X.injector.addProvider({provide:NZq,useValue:cjJ});t.addProvider({provide:SfR,useValue:jdl});t.addProvider({provide:_.kI,useValue:qQ0});X=t.addProvider;HT4||(HT4=new zvV);X.call(t,{provide:_.K3,useValue:HT4});t.addProvider({provide:_.e_,useValue:_.Md("HTML_DIR")==="rtl"?"rtl":"ltr"});t.addProvider({provide:c5S,useClass:aDY});t.addProvider({provide:_.IL,useClass:Ok});_.gw().addProvider({provide:r5J,useValue:_.A("enable_web_delhi_icons")?
rKi.concat(PG2):p1R.concat(NpB)});t.addProvider({provide:_.Qv,useClass:_.Qv});t.addProvider({provide:_.FN2,useValue:new ggH});t.addProvider({provide:IC4,useClass:O24});t.addProvider({provide:Cw,useClass:Cw});t.addProvider({provide:uc,useClass:uc});X={};t.addProvider((X.provide=zU,X.useClass=zU,X[gA]=[_.Mr,_.mD],X));t.addProvider({provide:lc,useClass:lc});t.addProvider({provide:Xht,useClass:$RQ});t.addProvider({provide:cA,useClass:cA});t.addProvider({provide:srh,useValue:odS});t.addProvider({provide:_.w$,
useClass:uI4});_.A("enable_payments_purchase_manager")&&t.addProvider({provide:YXe,useClass:Fy4});t.addProvider({provide:YiB,useFactory:function(){return function(b){return _.AM2(b)}}});
t.addProvider({provide:_.jVH,useClass:gJH});X={};t.addProvider((X.provide=Lw,X.useClass=Lw,X[gA]=[_.jVH],X));t.addProvider({provide:Q4,useClass:Q4});t.addProvider({provide:vYR,useValue:Dyq});t.addProvider({provide:XJq,useValue:_.evT});t.addProvider({provide:k00,useClass:X44});t.addProvider({provide:oVV,useValue:F3r});X={};t.addProvider((X.provide=JQH,X.useClass=Bii,X[gA]=[oVV],X));X={};t.addProvider((X.provide=_.Rp,X.useClass=Tq4,X[gA]=[JQH],X));X={};t.addProvider((X.provide=_.WT,X.useClass=Ip,X[gA]=
[_.Gw,_.U2],X));if(_.A("web_explore_hub_on_hover")||_.A("web_client_explore_hub_on_hover"))X={},t.addProvider((X.provide=Uu,X.useClass=Uu,X[gA]=[_.Mr,jO],X));if(_.A("web_enable_renderer_logger")){var V=new Rv4;f4J(function(){V.abort()});
t.addProvider({provide:oLV,useValue:new O4N(V.signal)})}t.addProvider({provide:F8Y,useValue:Yv_});X={};t.addProvider((X.provide=XSH,X.useClass=MsN,X[gA]=[_.Mr],X))}},UVN);var RfN={},iDa=(RfN.initialized={priority:10,callback:function(){if(!zt2){OzA();gDl("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.ht(_.WP(gDl,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.A("log_heartbeat_with_lifecycles")){var X={};eG.instance||(eG.instance=new eG);eG.instance.install((X.document_visible={callback:FHh,priority:10},X.document_hidden={callback:FHh,priority:10},X))}else _.jP(document,"visibilitychange",FHh);zt2=!0}(X=_.lw())&&X!=="UNDEFINED_CSN"&&taV(X)}},RfN);var LbR={},vT4=(LbR.initialized={callback:function(X){var t=_.ai(232091),G=X.injector.resolve(_.iR);_.Cc(G,t);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?fqh()&&_.OE(G,t):(X=X.injector.resolve(YiB)("refresh_detector"))&&(X.get("first_tab_load")?_.OE(G,t):X.set("first_tab_load","1"))}},LbR);var aAR={},lAT=(aAR.initialized={priority:10,callback:z1_},aAR);var xVQ={},fAT=(xVQ.initialized={priority:0,callback:function(){var X=new c6S,t="other";_.uz?t="chrome":_.Ox?t="firefox":_.Xl?t="safari":bt&&(t="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(G){X.increment(_.cx(),G,t)}).catch(function(){X.increment(_.cx(),!1,t)}):X.increment(_.cx(),!1,t)}},xVQ);var Mkv={},XpH=(Mkv.rendering={priority:8,callback:H6_},Mkv);var $lB={},tMH=($lB.rendering={priority:10,callback:YPG},$lB.rendered={callback:AOG},$lB),GlT={},y64=(GlT.rendering={callback:YPG},GlT.rendered={callback:AOG},GlT);var wpH=!1,zBT={},Hoa=(zBT.initialized={priority:10,callback:function(){wpH||(yLf({didPatch:function(X){X.el&&CLw(X.el,X.props)},
didUnmount:function(X){ZCh(X.el)}}),wpH=!0)}},zBT);var ob2=/^\/shorts\/?$/;_.fY("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.A("kevlar_enable_mss")){_.Nw0(new AEz);var J6i=!0,BTT,x8;J6i=J6i===void 0?!1:J6i;BTT=BTT===void 0?!1:BTT;x8=x8===void 0?{}:x8;var nb2=x8.cssRowKey||"",VM2=x8.combinedSignature||"";!nb2&&window&&window._F_cssRowKey&&(nb2=window._F_cssRowKey,!VM2&&window._F_combinedSignature&&(VM2=window._F_combinedSignature));if(nb2&&typeof window._F_installCss!=="function")throw Error("vd");var boH=x8.loaderClass||_.wx,f3=hLY("base-js"),klr,dl4=qrh("",f3);klr=_.rN(dl4);var Ma=new boH(klr,nb2,VM2,J6i,BTT),eBT=
x8.useCors||f3&&f3.hasAttribute("crossorigin"),j02=x8.corsMode||f3&&f3.getAttribute("crossorigin");eBT&&(Ma.useCors_=eBT);j02&&(Ma.corsMode_=j02);x8.urlMaxLength&&(Ma.urlMaxLength=x8.urlMaxLength);x8.fetchPriority&&(Ma.fetchPriority=x8.fetchPriority);var gbq=mW();gbq.JSC$9984_loader_=Ma;gbq.setBatchModeEnabled(!0)}
(function(){var X=document.querySelector("ytd-app");if(!X)throw Error("Ij");X=new p3({root:X,injector:_.gw()});X.install(iDa);var t={};X.install((t.initialized={priority:10,callback:GPG},t));_.A("wp_lat_b")&&(t={},X.install((t.initialized={priority:10,callback:function(){HCJ()}},t)));
t={};X.install((t.rendered={priority:0,callback:X7E},t));t={};X.install((t.rendered={priority:0,callback:function(){_.vz.addLowPriorityJob(function(){_.lDJ>1&&(LDY(),fzV())},4E4)}},t));
X.install(lYH);X.install(vT4);X.install(Hoa);Uml();X.install(yIi);X.install(mxB);X.install(vgR);X.install(YqB);X.install(Z42);X.install(tcQ);X.install(mVa);_.A("kevlar_enable_mss_lazy_load")&&X.install(lAT);X.install(i1Q);X.install(fAT);if(!_.X3("IS_SHELL_LOAD")||_.A("kevlar_fetch_initial_data_promise_client")||_.A("sw_nav_preload_pbj")){var G=_.qJ(window.location.href);t=G&&G==="/watch";G=G&&G.match(ob2);t?X.install(y64):G?X.install(XpH):X.install(tMH)}else X.install(P_Q);X.install(fYH);_.A("web_enable_prefetching_videos_on_home")&&
X.install(owB);_.A("start_client_gcf")&&X.install(GYH);X.install(jq4);(new ppt).increment("INSTALLED");X.install(zQa);X.install(ptV);X.transition("initialized");Md0()})();
_.Cp=[[["Z29rdXJmN29raW5kIzgxbQ==","N2NibmF2YWx1ZSN3bTJsemg="],"bm5ubjZkNTJuQURfUExBQ0VNRU5UX0tJTkRfTEFZT1VUX0lEX0VOVEVSRUQjZDI="]];_.qr=["Z2xvYmFsQ2FsbGJhY2tzIzVhenNwbml0ZzFiaQ==","eURldGVjdGVkI3U3ODV2dHd6NGFwbG9uQWJub3JtYWxpdA==","cCMxeHQ5cWdhcGEzYWZvbkFkU2tp","ZXJfcmVzcG9uc2UjZDltMHRxZW1obDl0cmF3X3BsYXk=","ZXJlciNxcGxyNDlndWFrOHBhZHNFbmdhZ2VtZW50UGFuZWxSZW5k"];_.nu="Z2xvYmFsQ2FsbGJhY2tzIzVhenNwbml0ZzFiaQ== eURldGVjdGVkI3U3ODV2dHd6NGFwbG9uQWJub3JtYWxpdA== cCMxeHQ5cWdhcGEzYWZvbkFkU2tp ZXJfcmVzcG9uc2UjZDltMHRxZW1obDl0cmF3X3BsYXk= bXJiYnEwcXdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNjeXA5bA== ZiN2eWQ5c2VneGVmdjZhYl9zYV9l ZXJlciNxcGxyNDlndWFrOHBhZHNFbmdhZ2VtZW50UGFuZWxSZW5k".split(" ");
_._ModuleManager_initialize=function(X,t){if(!_.EF){if(!_.UF)return;_.Nw0(_.UF())}_.EF.setAllModuleInfoString(X,t)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye/syf:6/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syi','syh','sye','syc','syb','sy1','syk','sy7','sy6','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Gg=function(X,t,G,y,w){var z={};t&&(z[t]=G);y?z.errorType=y:w&&(z.errorReason=w);_.a7(X,z);_.lx()};
_.yU=function(X){var t=_.wv();return _.ret(t,X,1)};
_.le({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 X=this.query;X&&(this.full||X[0]==="("||(X="("+X+")"),this._mq=window.matchMedia(X),this._add(),this.queryHandler(this._mq))},
queryHandler:function(X){this._setQueryMatches(X.matches)}});var qFR;var CfH;var KWq=function(){};
_.H=KWq.prototype;_.H.addOwnKeyBinding=function(){};
_.H.removeOwnKeyBindings=function(){};
_.H.keyboardEventMatchesKeys=function(){};
_.H._collectKeyBindings=function(){};
_.H._prepKeyBindings=function(){};
_.H._addKeyBinding=function(){};
_.H._resetKeyEventListeners=function(){};
_.H._listenKeyEventListeners=function(){};
_.H._unlistenKeyEventListeners=function(){};
_.H._onKeyBindingEvent=function(){};
_.H._triggerKeyHandler=function(){};
_.H._tapHandler=function(){};
_.H._focusChanged=function(){};
_.H._detectKeyboardFocus=function(){};
_.H._userActivate=function(){};
_.H._upHandler=function(){};
_.H._spaceKeyDownHandler=function(){};
_.H._spaceKeyUpHandler=function(){};
_.H._asyncClick=function(){};
_.H._pressedChanged=function(){};
_.H._ariaActiveAttributeChanged=function(){};
_.H._activeChanged=function(){};
_.H._controlStateChanged=function(){};
_.H._changedButtonState=function(){};
_.H._focusBlurHandler=function(){};
_.H._disabledChanged=function(){};
_.H._changedControlState=function(){};
_.H._downHandler=function(){};
_.H.ensureRipple=function(){};
_.H.getRipple=function(){};
_.H.hasRipple=function(){};
_.H._noinkChanged=function(){};
_.H._focusedChanged=function(){};
_.H._createRipple=function(){};
_.H.registered=function(){};
_.H._invalidChanged=function(){};
_.H.hasValidator=function(){};
_.H.validate=function(){};
_.H._getValidity=function(){};
_.H._requiredChanged=function(){};
_.H._valueChanged=function(){};
_.H._checkedChanged=function(){};
_.H._buttonStateChanged=function(){};
_.H._setPressed=function(){};
_.H._setPointerDown=function(){};
_.H._setReceivedFocusFromKeyboard=function(){};
_.H._setFocused=function(){};
KWq=_.le({is:"tp-yt-paper-radio-button",_template:function(){if(CfH!==void 0)return CfH;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;qFR===void 0&&(qFR=document.createElement("template"));var y=qFR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return CfH=X},
behaviors:[_.JiS],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(){_.V8(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var X=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),t=Math.floor(3*X);t%2!==X%2&&t++;this.updateStyles({"--paper-radio-button-ink-size":t+"px"})}})}});var OoN;var uo4;_.le({_template:function(){if(uo4!==void 0)return uo4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;OoN===void 0&&(OoN=document.createElement("template"));var y=OoN;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return uo4=X},
is:"tp-yt-paper-radio-group",behaviors:[_.YWq],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(X){var t=this._valueToItem(X);if(!t||!t.hasAttribute("disabled")){if(this.selected){t=this._valueToItem(this.selected);if(this.selected==X)if(this.allowEmptySelection)X="";else{t&&(t.checked=!0);return}t&&
(t.checked=!1)}_.nz.select.apply(this,[X]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(X){this._focusPrevious();X.preventDefault();this._activateFocusedItem()},
_onDownKey:function(X){this._focusNext();X.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(X){_.ASJ._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(X){_.ASJ._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.nz._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.v3._resetTabindices.apply(this,arguments);this.items.forEach(function(X){X.removeAttribute("aria-selected")},this)}});var Q0a;_.Xa("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var w4=function(){return _.O.apply(this,arguments)||this};
_.S(w4,_.O);_.H=w4.prototype;_.H.computeHasPrimaryIcon=function(X){return!(!X.icon&&!X.thumbnail)};
_.H.computeHasSecondary=function(X){return!(!X.secondaryIcon&&!X.secondaryNotificationText)};
_.H.computeHideSecondaryString=function(X){return!_.A("disable_hide_empty_secondary_string")&&!X.secondaryNotificationText};
_.H.computeCompactLinkStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.H.computeHasFitHeight=function(X){return X==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.H.isActiveEndpoint=function(X){return(X=this.get("commandMetadata.webCommandMetadata.url",X))?_.qJ(window.location.href)!=="/account_transfer_channel"&&_.qJ(window.location.href)!=="/gaia_link"&&_.qJ(window.location.href)!=="/channel_switcher"||X!=="/account"?_.qJ(window.location.href)===X:!0:!1};
_.H.onTap=function(){var X;((X=this.data)==null?0:X.serviceEndpoint)&&_.hE(this.hostElement,[this.data.serviceEndpoint])};
w4.prototype.onTap=w4.prototype.onTap;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],w4.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.U("design:type",Boolean)],w4.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.U("design:type",String)],w4.prototype,"compactLinkStyle",void 0);
_.E([_.K({computed:"computeIcon_(data.icon)"}),_.U("design:type",Object)],w4.prototype,"icon",void 0);_.E([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.U("design:type",Object)],w4.prototype,"secondaryIcon",void 0);_.E([_.K({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],w4.prototype,"hasSecondary",void 0);_.E([_.K({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],w4.prototype,"hideSecondaryString",void 0);
_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],w4.prototype,"onTap",null);_.E([_.p({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],w4);
_.N(w4,"ytd-compact-link-renderer",function(){if(Q0a!==void 0)return Q0a;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Q0a=X},{mode:1});var Ior;_.Xa("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var zg=function(){var X=_.O.apply(this,arguments)||this;X.role="link";X.tabindex="0";X.actionMap=_.A("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 X};
_.S(zg,_.O);_.H=zg.prototype;_.H.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Lp()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.H.getCurrentTheme=function(){return _.vy()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Lp()};
_.H.onThemeSelected=function(X,t){var G=X||t?X:_.iu(),y=(G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.GZl(_.qJ(window.location.href));_.pq(0,165,X);_.pq(0,174,t);this.prefs.save();y&&_.sl(this.hostElement,"yt-dark-mode-toggled-action",[G]);_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.H.onTap=function(){this.data.serviceEndpoint&&_.hE(this.hostElement,[this.data.serviceEndpoint])};
_.H.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.H.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.H.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
zg.prototype.onTap=zg.prototype.onTap;zg.prototype.dataChanged=zg.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],zg.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.bY),_.U("design:type",Object)],zg.prototype,"paperItemBehaviors",void 0);_.E([_.K(),_.U("design:type",Object)],zg.prototype,"data",void 0);_.E([_.K({value:function(){return _.cP()}}),
_.U("design:type",_.A8)],zg.prototype,"prefs",void 0);_.E([_.K(),_.U("design:type",Object)],zg.prototype,"label",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zg.prototype,"role",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zg.prototype,"tabindex",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zg.prototype,"dataChanged",null);
_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zg.prototype,"onTap",null);_.E([_.p({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],zg);
_.N(zg,"ytd-toggle-theme-compact-link-renderer",function(){if(Ior!==void 0)return Ior;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Ior=X},{mode:1});
}catch(e){_._DumpException(e)}
try{
var c64,ppa;_.Ho=function(X){return!!X.getOptions("captions")};
_.WWi=function(X){return(X=X.getOption("captions","track"))?!!X.displayName:!1};
_.oG=function(X,t){_.aD(t,X,function(){return c64[t]},function(G){c64[t]=G;
if(!_.A("mweb_player_ve_show_ks")){var y=_.lw(0);y&&G&&_.HK(y,G)}})};
_.J1=function(X){(X=c64[X])&&_.OE(_.Pj(),X)};
c64={};var r6R;/*

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
*/
_.le({_template:function(){if(r6R!==void 0)return r6R;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;ppa===void 0&&(ppa=document.createElement("template"));var y=ppa;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return r6R=X},
is:"tp-yt-paper-checkbox",behaviors:[_.JiS],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.V8(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var X=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),t="px",G=X.match(/[A-Za-z]+$/);G!==null&&(t=G[0]);X=parseFloat(X);G=8/3*X;t==="px"&&(G=Math.floor(G),G%2!==X%2&&G++);this.updateStyles({"--paper-checkbox-ink-size":G+
t})}})},
_computeCheckboxClass:function(X,t){var G="";X&&(G+="checked ");t&&(G+="invalid");return G},
_computeCheckmarkClass:function(X){return X?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.HVJ._createRipple.call(this)}});var NTT=new _.ja("radioButtonSurveyOptionRenderer"),PfV=new _.ja("checkboxSurveyOptionRenderer");var EbV;var UlN;var mlR=0,Bo=function(){var X=_.O.call(this)||this;X.selected=!1;X.isOverlay=!1;X.inputId="toggle-option-"+mlR;mlR++;return X};
_.S(Bo,_.O);Bo.prototype.onTap=function(){_.Yt(this.hostElement,"ytd-toggle-option-clicked")};
_.E([_.K(),_.U("design:type",String)],Bo.prototype,"label",void 0);_.E([_.K(),_.U("design:type",String)],Bo.prototype,"inputId",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Bo.prototype,"selected",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Bo.prototype,"isOverlay",void 0);_.E([_.p({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.U("design:paramtypes",[])],Bo);
_.N(Bo,"ytd-toggle-option-renderer",function(){if(UlN!==void 0)return UlN;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return UlN=X},{mode:1});var nK=function(){var X=_.O.apply(this,arguments)||this;X.isToggleOption=!1;X.isOverlay=!1;return X};
_.S(nK,_.O);nK.prototype.onTap=function(X){X.preventDefault();this.data&&(X=!this.data.checked,this.set("data.checked",X),_.Yt(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:X,value:this.data.value}))};
_.ke.Object.defineProperties(nK.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
nK.prototype.onTap=nK.prototype.onTap;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],nK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],nK.prototype,"isToggleOption",void 0);_.E([_.K(),_.U("design:type",Object)],nK.prototype,"isOverlay",void 0);_.E([_.C("data.responseText"),_.U("design:type",String),_.U("design:paramtypes",[])],nK.prototype,"label",null);
_.E([_.WW("ytd-toggle-option-clicked"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],nK.prototype,"onTap",null);_.E([_.p({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],nK);
_.N(nK,"ytd-checkbox-survey-option-renderer",function(){if(EbV!==void 0)return EbV;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return EbV=X},{mode:1});var RBr;var iov;var VU=function(){var X=_.O.apply(this,arguments)||this;X.checked=!1;X.isToggleOption=!1;return X};
_.S(VU,_.O);VU.prototype.onTap=function(){this.data&&(this.checked?_.sl(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.sl(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
VU.prototype.onTap=VU.prototype.onTap;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],VU.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],VU.prototype,"checked",void 0);_.E([_.K(),_.U("design:type",Object)],VU.prototype,"isToggleOption",void 0);_.E([_.WW("ytd-toggle-option-clicked"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],VU.prototype,"onTap",null);
_.E([_.p({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],VU);
_.N(VU,"ytd-radio-button-survey-option-renderer",function(){if(iov!==void 0)return iov;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return iov=X},{mode:1});var bH=function(){var X=_.O.apply(this,arguments)||this;X.disableAnimation=!1;X.isToggleOption=!0;X.followUpSurveyCommand=null;X.selectedRatingEndpoint=null;X.isSlimlineSurveyFollowUp=!1;X.isShortsStyle=!1;X.styleOverrideAttribute=!0;X.isDarkMode=!1;X.isSubmitted=!1;X.roundedContainer=!0;X.improveShortsResponseRate=_.A("web_improve_shorts_response_rate");X.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 X};
_.S(bH,_.O);_.H=bH.prototype;
_.H.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"}}}}};
_.H.attached=function(){var X=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(G){var y;if((y=G[0])!=null&&y.isIntersecting){_.rX().reportShown(X.hostElement);var w;(w=X.intersectionObserver)==null||w.unobserve(X.hostElement)}},{rootMargin:"0px",
threshold:.6});var t;(t=this.intersectionObserver)==null||t.observe(this.hostElement)};
_.H.onDarkModeToggledAction=function(X){this.isDarkMode=X};
_.H.dataChanged=function(){var X;if(((X=this.data)==null?void 0:X.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var t;((t=this.data)==null?void 0:t.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var G,y,w,z;this.darkColorPalette=(G=this.data)==null?void 0:(y=G.inlineContent)==null?void 0:(w=y.compactVideoRenderer)==null?void 0:(z=w.thumbnail)==null?
void 0:z.darkColorPalette;var B,V,b,e;this.lightColorPalette=(B=this.data)==null?void 0:(V=B.inlineContent)==null?void 0:(b=V.compactVideoRenderer)==null?void 0:(e=b.thumbnail)==null?void 0:e.lightColorPalette;var g,F;if(((g=this.data)==null?0:(F=g.inlineContent)==null?0:F.compactVideoRenderer)&&this.isShortsStyle){var T,D,h,u;X=_.hH((T=this.data)==null?void 0:(D=T.inlineContent)==null?void 0:(h=D.compactVideoRenderer)==null?void 0:(u=h.thumbnail)==null?void 0:u.thumbnails);_.Kd(this.hostElement,
{"--yt-background-url":"url("+X+")"})}};
_.H.handleRequestCompletion=function(){this.hostElement.hidden&&_.Yt(this.hostElement,"yt-dismissible-item-dismissed")};
_.H.onPopupClosed=function(X){var t;((t=X.detail)==null?void 0:t.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.sl(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.H.handleInlineSurveyRatingSelect=function(X,t){var G=this;this.selectedRatingEndpoint=X;this.followUpSurveyCommand=t;this.expanded=!!X;this.getOptionRenderers().forEach(function(y,w){G.notifyPath("followUpSurveyCommand.followUpOptions."+w+".checkboxSurveyOptionRenderer.checked");G.set("followUpSurveyCommand.followUpOptions."+w+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),X=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.sl(this.hostElement,"yt-reel-non-video-content-dismissal-command",[X]))};
_.H.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.sl(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var X,t=(X=this.data)==null?void 0:X.dismissalEndpoint;t&&this.ytComponentBehavior.resolveCommand(t)}};
_.H.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.sl(this.hostElement,"yt-close-popup-action"))};
_.H.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var X=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{X=this.getOptionRenderers().filter(function(y){return y.checked});
if(X.length===0)return;X=X.map(function(y){return y.responseEndpoint})}var t=[];
X.forEach(function(y,w){w!==0&&(y=_.Y(y,_.fV))&&y.feedbackToken&&t.push(y.feedbackToken)});
if(X=X[0]){var G={};t.length>0&&(G.extra_feedback_tokens=t);this.ytComponentBehavior.resolveCommand(X,{form:G})}}};
_.H.getOptionRenderers=function(){var X=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(t){X.isSingleSelect=!!_.Y(t,NTT);return X.isSingleSelect?_.Y(t,NTT):_.Y(t,PfV)}):[]};
_.H.handleInlineSurveyOptionSelect=function(X){X=this.optionSelector.indexOf(X);X!==-1&&this.optionSelector.selectIndex(X)};
_.H.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.H.maybeGetBackgroundColor=function(X){return this.isDarkMode?X.section2Color:X.section3Color};
_.H.colorPaletteChanged=function(){var X=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;X=X&&this.maybeGetBackgroundColor(X);this.dismissibleEl.style.backgroundColor=!X||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Gq(X)};
_.ke.Object.defineProperties(bH.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
bH.prototype.colorPaletteChanged=bH.prototype.colorPaletteChanged;bH.prototype.onPopupClosed=bH.prototype.onPopupClosed;bH.prototype.handleRequestCompletion=bH.prototype.handleRequestCompletion;bH.prototype.dataChanged=bH.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],bH.prototype,"actionHandlerBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],bH.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],bH.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.rt("#follow-up-survey-options"),_.U("design:type",Object)],bH.prototype,"optionSelector",void 0);_.E([_.K(),_.U("design:type",Object)],bH.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],bH.prototype,"disableAnimation",void 0);_.E([_.K(),_.U("design:type",Object)],bH.prototype,"isToggleOption",void 0);_.E([_.K(),_.U("design:type",Object)],bH.prototype,"followUpSurveyCommand",void 0);_.E([_.K(),_.U("design:type",Object)],bH.prototype,"selectedRatingEndpoint",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],bH.prototype,"expanded",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bH.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bH.prototype,"isShortsStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bH.prototype,"styleOverrideAttribute",void 0);_.E([_.K(),_.U("design:type",Boolean)],bH.prototype,"isSingleSelect",void 0);_.E([_.K(),_.U("design:type",Object)],bH.prototype,"isDarkMode",void 0);
_.E([_.K(),_.U("design:type",Object)],bH.prototype,"lightColorPalette",void 0);_.E([_.K(),_.U("design:type",Object)],bH.prototype,"darkColorPalette",void 0);_.E([_.C("selectedRatingEndpoint","isShortsStyle"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],bH.prototype,"isOptionSelected",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bH.prototype,"roundedContainer",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bH.prototype,"improveShortsResponseRate",void 0);_.E([_.rt("#dismissible"),_.U("design:type",HTMLElement)],bH.prototype,"dismissibleEl",void 0);_.E([_.rt("#dismiss-button yt-icon-button"),_.U("design:type",HTMLElement)],bH.prototype,"dismissButtonEl",void 0);_.E([_.rt("#inline-survey-header yt-icon-button"),_.U("design:type",HTMLElement)],bH.prototype,"inlineHeaderDismissButtonEl",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bH.prototype,"dataChanged",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bH.prototype,"handleRequestCompletion",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],bH.prototype,"onPopupClosed",null);
_.E([_.cW("darkColorPalette","lightColorPalette","isDarkMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bH.prototype,"colorPaletteChanged",null);_.E([_.p({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],bH);
_.N(bH,"ytd-inline-survey-renderer",function(){if(RBr!==void 0)return RBr;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return RBr=X},{mode:1});var LWV=["en-CA","en","es-MX","fr-CA"];_.vbQ=_.Fp(function(X){var t=_.jx(X,{isOverlay:!1,isModern:!1}),G=t.captionIconType,y=t.onClick;X=t.ariaLabel;var w=t.ariaPressed,z=t.isOverlay,B=t.isModern;t=_.nl("button",function(e){_.oG(e,127299)});
var V=_.NI(function(e){_.J1(127299);y==null||y(e);return!1}),b={};
return _.k("ytm-closed-captioning-button",{class:_.cl("ytmClosedCaptioningButtonHost",(b.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return G()===-1&&z()},b.ytmClosedCaptioningButtonIconDisabled=function(){return G()===-1&&!z()},b))},_.k("button",{el:t,
class:"ytmClosedCaptioningButtonButton",title:X,"aria-label":X,"aria-pressed":w,"on:click":V},_.k(_.mw,{icon:function(){var e="",g=B();var F=g?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";g=g?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var T=_.cP().get("hl");F=!T||LWV.includes(T)?F:g;g=G();switch(g){case -1:case 0:e=F;break;case 1:e=F+"_FILLED";break;default:_.zr(g)}return e}})))},"nf");
_.vbQ.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.T3=function(X){return function(t,G){var y=X||G.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(t,G,{get:function(){var w;return this.$?this.$[y]:(w=_.pd(this))==null?void 0:w.querySelector("#"+y)},
enumerable:!0,configurable:!0})}};_.Au=function(X){X=X===void 0?!1:X;_.po.call(this);this.pubSub_=new _.Oc(X);_.h6(this,this.pubSub_)};
_.sx(_.Au,_.po);_.Au.prototype.subscribe=function(X,t,G){return this.isDisposed()?0:this.pubSub_.subscribe(X,t,G)};
_.Au.prototype.unsubscribe=function(X,t,G){return this.isDisposed()?!1:this.pubSub_.unsubscribe(X,t,G)};
_.Au.prototype.unsubscribeByKey=function(X){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(X)};
_.Au.prototype.publish=function(X,t){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var A2i=function(){_.Gg("ypcRedeemFlowStarted")},Vh=function(X){_.Gg("ypcRedeemFlowFailed",void 0,void 0,void 0,X)},YQB=function(X,t,G){t&&G&&(X.videos.forEach(function(y){y.videoId===t&&(y.itemId=G)}),X.recommendedVideos.forEach(function(y){y.videoId===t&&(y.itemId=G)}))};var sdQ;var DGa;/*

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
*/
_.le({_template:function(){if(DGa!==void 0)return DGa;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;sdQ===void 0&&(sdQ=document.createElement("template"));var y=sdQ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return DGa=X},
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(X,t){var G=this._resolveSrc(X);G!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",X===""||t?this._setLoading(!1):(this._resolvedSrc=G,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 X=this.$.sizedImgDiv.style,t=this.$.placeholder.style;X.backgroundSize=t.backgroundSize=this.sizing;X.backgroundPosition=t.backgroundPosition=this.sizing?this.position:"";X.backgroundRepeat=t.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(X){X=_.Y5(X,this.$.baseURIAnchor.href);X.length>=2&&X[0]==="/"&&X[1]!=="/"&&(X=(location.origin||location.protocol+"//"+location.host)+X);return X}});var SQv;var hyQ;_.le({_template:function(){if(hyQ!==void 0)return hyQ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;SQv===void 0&&(SQv=document.createElement("template"));var y=SQv;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return hyQ=X},
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(X){return X?"false":"true"},
_headingChanged:function(X){var t=this.getAttribute("heading"),G=this.getAttribute("aria-label");typeof G==="string"&&G!==t||this.setAttribute("aria-label",X)},
_computeHeadingClass:function(X){return X?" over-image":""},
_computeAnimated:function(X){return X}});var Zai=new _.ja("addRendererToItemSectionAction");var qQB;var bL=function(){return _.O.apply(this,arguments)||this};
_.S(bL,_.O);bL.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bL.prototype,"rendererBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],bL.prototype,"dismissibleItemBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bL.prototype,"rendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bL.prototype,"data",void 0);_.E([_.p({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],bL);
_.N(bL,"ytd-comment-history-entry-renderer",function(){if(qQB!==void 0)return qQB;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return qQB=X},{mode:1});var CoQ;_.Xa("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Xa("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var kD=function(){return _.O.apply(this,arguments)||this};
_.S(kD,_.O);_.H=kD.prototype;_.H.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.onKeyUp=function(X){if(X.keyCode===13)this.onTap()};
_.H.onTap=function(){this.data.recordClickEndpoint&&_.gw().resolve(_.F3).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var X=this.data.navigationEndpoint;X&&_.Y(X,_.M0)&&_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}})};
_.H.readChanged=function(){var X;_.Zk(this.hostElement,"unread",!((X=this.data)==null?0:X.read))};
_.H.dataChanged=function(){this.data&&_.Zk(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.H.computeThumbnailSize=function(){var X;return((X=this.data)==null?0:X.highPriorityNotification)?32:48};
_.H.getEndpointURL=function(X){return X&&!_.Y(X,_.M0)?this.componentBehavior.computeHref_(X):null};
_.H.getEndpointData=function(X){return X&&!_.Y(X,_.M0)?X:null};
kD.prototype.computeThumbnailSize=kD.prototype.computeThumbnailSize;kD.prototype.dataChanged=kD.prototype.dataChanged;kD.prototype.readChanged=kD.prototype.readChanged;kD.prototype.onKeyUp=kD.prototype.onKeyUp;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],kD.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],kD.prototype,"data",void 0);_.E([_.K({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.U("design:type",Number)],kD.prototype,"thumbnailSize",void 0);_.E([_.WW("keyup"),_.U("design:type",Function),_.U("design:paramtypes",[KeyboardEvent]),_.U("design:returntype")],kD.prototype,"onKeyUp",null);
_.E([_.cW("data.read"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kD.prototype,"readChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kD.prototype,"dataChanged",null);_.E([_.cW("data.highPriorityNotification"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kD.prototype,"computeThumbnailSize",null);
_.E([_.p({is:"ytd-notification-renderer",disableElementRegistration:!0})],kD);
_.N(kD,"ytd-notification-renderer",function(){if(CoQ!==void 0)return CoQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return CoQ=X},{mode:1});var KzN;var dD=function(){return _.O.apply(this,arguments)||this};
_.S(dD,_.O);dD.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"}}}};
dD.prototype.computeActionButtonClass=function(X){return!X.actionButtons||X.actionButtons.length<=1?"single-button":X.description?"vertical-buttons":"horizontal-buttons"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dD.prototype,"data",void 0);_.E([_.p({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],dD);
_.N(dD,"ytd-playlist-show-metadata-renderer",function(){if(KzN!==void 0)return KzN;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return KzN=X},{mode:1});var OaT;_.Xa("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var ey=function(){return _.O.apply(this,arguments)||this};
_.S(ey,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ey.prototype,"data",void 0);_.E([_.p({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],ey);
_.N(ey,"ytd-purchase-item-renderer",function(){if(OaT!==void 0)return OaT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return OaT=X},{mode:1});var ugv;var Qda={};Qda.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(X){if(X)return X.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(X){if(X==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Xa("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var jy=function(){return _.O.apply(this,arguments)||this};
_.S(jy,_.O);jy.prototype.onYtNavigate=function(X){var t=this.openPopupBehavior.getNavigationEndpointPopupAction(X.detail.endpoint);t&&(X.stopPropagation(),this.openPopupBehavior.openPopup(t))};
jy.prototype.onYtNavigate=jy.prototype.onYtNavigate;_.E([_.q(Qda.YtSimpleTextSectionBehavior),_.U("design:type",Object)],jy.prototype,"ytSimpleTextSectionBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],jy.prototype,"openPopupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],jy.prototype,"data",void 0);
_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],jy.prototype,"onYtNavigate",null);_.E([_.p({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],jy);
_.N(jy,"ytd-simple-text-section-renderer",function(){if(ugv!==void 0)return ugv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ugv=X},{mode:1});var IJq;_.Xa("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var gD=function(){return _.O.apply(this,arguments)||this};
_.S(gD,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gD.prototype,"data",void 0);_.E([_.p({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],gD);
_.N(gD,"ytd-unlimited-page-feature-info-renderer",function(){if(IJq!==void 0)return IJq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return IJq=X},{mode:1});var Wzr;var c2q;var FQ=function(){return _.O.apply(this,arguments)||this};
_.S(FQ,_.O);FQ.prototype.dataChanged=function(){if(this.data){var X=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);X&&(X=_.S_(X,screen.width),this.hostElement.style.backgroundImage="url("+X+")")}};
FQ.prototype.dataChanged=FQ.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],FQ.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],FQ.prototype,"dataChanged",null);_.E([_.p({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],FQ);
_.N(FQ,"ytd-post-redemption-section-renderer",function(){if(c2q!==void 0)return c2q;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return c2q=X},{mode:1});var pwN;var Te=function(){return _.O.apply(this,arguments)||this};
_.S(Te,_.O);Te.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Te.prototype,"data",void 0);_.E([_.p({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Te);
_.N(Te,"ytd-ypc-post-redemption-renderer",function(){if(pwN!==void 0)return pwN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return pwN=X},{mode:1});_.Xa("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Ao=function(){var X=_.O.apply(this,arguments)||this;X.MIN_CODE_LENGTH=12;X.MAX_CODE_LENGTH=24;return X};
_.S(Ao,_.O);_.H=Ao.prototype;_.H.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.H.created=function(){this.riskService=new _.PUA;this.loadPaymentThenable=_.UpY(_.Md("YPC_MB_URL"))};
_.H.ready=function(){var X=this;this.code.addEventListener("keypress",function(t){X.onCodeInputKeypress(t)})};
_.H.dataChanged=function(){var X=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(t){t=_.J(t);for(var G=t.next();!G.done;G=t.next())G=G.value,G.type==="attributes"&&G.attributeName==="dark"&&X.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.H.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var X=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+X+")")}};
_.H.computeRedeemButton=function(X){(X=this.get("redeemButton.buttonRenderer",X))&&(X=Object.assign({},X,{serviceEndpoint:void 0}));return X};
_.H.onRedeemButtonTap=function(X){X.stopPropagation();A2i();this.redeemCode()};
_.H.redeemCode=function(){var X=this;this.isLoading=!0;var t=this.riskService.init();_.m9([t,this.loadPaymentThenable]).then(function(){var G=X.data.redeemButton.buttonRenderer.serviceEndpoint,y=_.EdA(),w=payments.business.integration.ClientTokenFactory.createClientToken(_.Y(G,_.prY).countryCode,y);y={c:X.code.value.trim(),rd:window.btoa(y),ctk:w};G&&_.gw().resolve(_.F3).resolveCommand(G,{form:Object.assign({},y,{element:X.hostElement})})},function(){X.showGenericError();
Vh("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.$x(Error("ho"))})};
_.H.onYtServiceRequestCompleted=function(X){X.stopPropagation();this.isLoading=!1;var t,G;this.errorMessage=(t=X.detail)==null?void 0:(G=t.data)==null?void 0:G.errorMessage;var y,w;this.postRedemptionRenderer=(y=X.detail)==null?void 0:(w=y.data)==null?void 0:w.renderer;var z,B;if(X=(z=X.detail)==null?void 0:(B=z.data)==null?void 0:B.redirectEndpoint)this.isLoading=!0,_.Yt(this.hostElement,"yt-navigate",{endpoint:X});this.errorMessage?Vh("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
X)&&_.Gg("ypcRedeemFlowSucceeded")};
_.H.onYtServiceRequestError=function(X){X.stopPropagation();this.isLoading=!1;if(X=this.get("detail.error.message",X))this.errorMessage=_.Vl(X);Vh("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.H.onInvokeInstrumentManagerActionCompleted=function(X){X.stopPropagation();this.redeemCode()};
_.H.onInvokeInstrumentManagerActionError=function(X){X.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",X)){case "instrumentManagerLoadError":this.showGenericError();Vh("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Vh("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Gg("ypcRedeemFlowCancelled")}};
_.H.onInput=function(){var X=this;_.Jm(this,"onInput",function(){var t=X.code.value.trim();X.redeemButtonDisabled=t.length<X.MIN_CODE_LENGTH||t.length>X.MAX_CODE_LENGTH},200)};
_.H.onCodeInputKeypress=function(X){X.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(A2i(),this.redeemCode())};
_.H.computeImageUrl=function(X){return X?_.S_(X.thumbnails,600):null};
_.H.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Ao.prototype.onInvokeInstrumentManagerActionError=Ao.prototype.onInvokeInstrumentManagerActionError;Ao.prototype.onInvokeInstrumentManagerActionCompleted=Ao.prototype.onInvokeInstrumentManagerActionCompleted;Ao.prototype.onYtServiceRequestError=Ao.prototype.onYtServiceRequestError;Ao.prototype.onYtServiceRequestCompleted=Ao.prototype.onYtServiceRequestCompleted;Ao.prototype.dataChanged=Ao.prototype.dataChanged;
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ao.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Ao.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",Boolean)],Ao.prototype,"redeemButtonDisabled",void 0);
_.E([_.K(),_.U("design:type",Object)],Ao.prototype,"errorMessage",void 0);_.E([_.K(),_.U("design:type",Object)],Ao.prototype,"postRedemptionRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],Ao.prototype,"observer",void 0);_.E([_.rt("#code"),_.U("design:type",HTMLInputElement)],Ao.prototype,"code",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ao.prototype,"dataChanged",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Ao.prototype,"onYtServiceRequestCompleted",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Ao.prototype,"onYtServiceRequestError",null);
_.E([_.WW("yt-invoke-instrument-manager-action-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Ao.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.E([_.WW("yt-invoke-instrument-manager-action-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Ao.prototype,"onInvokeInstrumentManagerActionError",null);_.E([_.p({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Ao);
_.N(Ao,"ytd-redeem-code-renderer",function(){if(Wzr!==void 0)return Wzr;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Wzr=X},{mode:1});var r22;_.Xa("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var YD=function(){var X=_.O.apply(this,arguments)||this;X.businessEmailDisplayState="HIDE_SECTION";return X};
_.S(YD,_.O);_.H=YD.prototype;_.H.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}}}}}};
_.H.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"};
_.H.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.H.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Gi(_.OJh),this.businessEmailDisplayState="CAPTCHA"))};
_.H.onYtServiceRequestCompleted=function(X){var t;if((t=X.detail.data)==null?0:t.businessEmail)this.businessEmail=X.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var G;if((G=X.detail.data)==null?0:G.errorMessage)this.businessEmailErrorMessage=X.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.H.computeEmailHref=function(X){return"mailto:"+X};
_.H.computeSafeUrl=function(X){if(X)return _.l_(X)};
_.H.onBusinessEmailCaptchaSubmit=function(){var X;(X=this.data)!=null&&X.onBusinessEmailRevealClickCommand&&(X=this.JSC$21409_captchaTextarea.value)&&(X={recaptcha_response_token:X,channel_id:this.data.channelId},_.gw().resolve(_.F3).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},X,{element:this.hostElement})}))};
_.H.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ke.Object.defineProperties(YD.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 X,t;return!((X=this.data)==null||!X.primaryLinks)&&!((t=this.data)==null?0:t.links)&&this.data.primaryLinks.every(function(G){return G.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null||!X.primaryLinks)&&!((t=this.data)==null?0:t.links)&&!this.shouldShowNewLinks}}});
YD.prototype.onYtServiceRequestCompleted=YD.prototype.onYtServiceRequestCompleted;YD.prototype.dataChanged=YD.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],YD.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.rt("#g-recaptcha-response"),_.U("design:type",HTMLTextAreaElement)],YD.prototype,"JSC$21409_captchaTextarea",void 0);_.E([_.K(),_.U("design:type",Object)],YD.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],YD.prototype,"businessEmailDisplayState",void 0);_.E([_.K(),_.U("design:type",String)],YD.prototype,"businessEmail",void 0);_.E([_.K(),_.U("design:type",String)],YD.prototype,"businessEmailErrorMessage",void 0);
_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],YD.prototype,"hideDetailsSection",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],YD.prototype,"dataChanged",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],YD.prototype,"shouldShowNewLinks",null);_.E([_.C("data","shouldShowLinks"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],YD.prototype,"shouldShowLegacyLinks",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],YD.prototype,"onYtServiceRequestCompleted",null);_.E([_.p({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],YD);
_.N(YD,"ytd-channel-about-metadata-renderer",function(){if(r22!==void 0)return r22;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return r22=X},{mode:1});var N0a;_.Xa("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var sU=function(){return _.O.apply(this,arguments)||this};
_.S(sU,_.O);sU.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]]"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sU.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],sU.prototype,"lockupContainerType",void 0);_.E([_.K(),_.U("design:type",String)],sU.prototype,"thumbnailFixedWidth",void 0);
_.E([_.p({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],sU);
_.N(sU,"ytd-channel-featured-content-renderer",function(){if(N0a!==void 0)return N0a;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return N0a=X},{mode:1});var PoH;_.Xa("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var DQ=function(){var X=_.O.apply(this,arguments)||this;X.roundContainer=!0;X.amsterdamEnabled=_.A("enable_desktop_amsterdam_info_panels");return X};
_.S(DQ,_.O);_.H=DQ.prototype;_.H.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.H.dataChanged=function(){this.imageWidth=this.imageHeight=24;var X=this.data;X.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!X.style&&X.image&&X.image.thumbnails.length&&(X=X.image.thumbnails[0],this.imageWidth=X.width||0,this.imageHeight=X.height||0)};
_.H.computeSource=function(X){return X.secondarySource?_.bu(X.secondarySource):_.bu(X.source)};
_.H.computeClarifyStyle=function(X){return X?X.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.H.isLargeStyle=function(X){return X==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.H.computeBackgroundStyle=function(X){return X?X.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.H.computeHasActionButton=function(X){return!!X.actionButton};
_.H.computeHasBottomSection=function(X){return!!X.ctaHasBottomSection};
_.H.computeIsSourceMissing=function(X){return X.ctaHasBottomSection===!1?!0:X&&this.computeSource(X)?!1:!0};
_.H.computeSecondaryEndpoint=function(X){return X.secondaryEndpoint||X.endpoint};
DQ.prototype.dataChanged=DQ.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],DQ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],DQ.prototype,"imageWidth",void 0);_.E([_.K(),_.U("design:type",Number)],DQ.prototype,"imageHeight",void 0);
_.E([_.K({computed:"computeSecondaryEndpoint(data)"}),_.U("design:type",Object)],DQ.prototype,"secondaryEndpoint",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.U("design:type",Boolean)],DQ.prototype,"hasActionButton",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.U("design:type",Boolean)],DQ.prototype,"hasBottomSection",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.U("design:type",Boolean)],DQ.prototype,"missingSource",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.U("design:type",String)],DQ.prototype,"icon",void 0);_.E([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.U("design:type",String)],DQ.prototype,"secondaryIcon",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.U("design:type",String)],DQ.prototype,"clarifyStyle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.U("design:type",String)],DQ.prototype,"backgroundStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],DQ.prototype,"roundContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],DQ.prototype,"amsterdamEnabled",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],DQ.prototype,"dataChanged",null);
_.E([_.p({is:"ytd-clarification-renderer",disableElementRegistration:!0})],DQ);
_.N(DQ,"ytd-clarification-renderer",function(){if(PoH!==void 0)return PoH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return PoH=X},{mode:1});var Em2;var UGN;var Sy=function(){var X=_.O.apply(this,arguments)||this;X.amsterdamEnabled=_.A("enable_desktop_amsterdam_info_panels");return X};
_.S(Sy,_.O);_.H=Sy.prototype;_.H.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.H.computeIcon=function(X){return X?"yt-icons:"+X.toLowerCase():null};
_.H.computeUseContacts=function(X){return!!X.contacts&&X.contacts.length>0};
_.H.computePhoneContact=function(X){var t,G;return(t=X.contacts)==null?void 0:(G=t.find(function(y){var w;return(y==null?void 0:(w=y.icon)==null?void 0:w.iconType)==="PHONE"}))==null?void 0:G.actionText};
_.H.computeSmsContact=function(X){var t,G;return(t=X.contacts)==null?void 0:(G=t.find(function(y){var w;return(y==null?void 0:(w=y.icon)==null?void 0:w.iconType)==="SMS"}))==null?void 0:G.actionText};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Sy.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Sy.prototype,"amsterdamEnabled",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.U("design:type",Boolean)],Sy.prototype,"useContacts",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.U("design:type",String)],Sy.prototype,"phoneContact",void 0);_.E([_.p({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Sy);
_.N(Sy,"ytd-single-action-emergency-support-renderer",function(){if(UGN!==void 0)return UGN;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return UGN=X},{mode:1});_.Xa("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var ho=function(){var X=_.O.apply(this,arguments)||this;X.roundedContainer=!0;X.amsterdamEnabled=_.A("enable_desktop_amsterdam_info_panels");return X};
_.S(ho,_.O);ho.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"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ho.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ho.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],ho.prototype,"amsterdamEnabled",void 0);
_.E([_.p({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],ho);
_.N(ho,"ytd-emergency-onebox-renderer",function(){if(Em2!==void 0)return Em2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Em2=X},{mode:1});var mG4;_.Xa("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var ZQ=function(){return _.O.apply(this,arguments)||this};
_.S(ZQ,_.O);ZQ.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ZQ.prototype,"data",void 0);_.E([_.p({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],ZQ);
_.N(ZQ,"ytd-exploratory-results-renderer",function(){if(mG4!==void 0)return mG4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return mG4=X},{mode:1});var RyQ;_.Xa("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var qm=function(){var X=_.O.apply(this,arguments)||this;X.messageData=null;return X};
_.S(qm,_.O);_.H=qm.prototype;_.H.onServiceRequestCompleted=function(X,t){X=t.actions||[];t=0;for(var G=X.length;t<G;t++){var y=X[t],w=void 0,z=void 0;if((w=_.Y(y,_.Et))==null?0:(z=w.item)==null?0:z.messageRenderer)this.messageData=_.Y(y,_.Et).item.messageRenderer}};
_.H.dataChanged=function(){var X=this.data;this.hostElement.hidden=!1;_.Zk(this.hostElement,"is-channel",X&&!X.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.H.computeThumbnailWidth=function(X){return X?126:56};
_.H.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.H.onSubmitTap=function(){var X=this.data,t=this.selectedResponseIndex;X!==void 0&&t!==void 0&&(X=X.responses[t],X.responseData&&_.gw().resolve(_.F3).resolveCommand(X.responseData,{form:{element:this.hostElement}}))};
_.H.onDismissTap=function(){this.hostElement.hidden=!0;var X=this.data;X!==void 0&&X.dismissalEndpoint&&_.gw().resolve(_.F3).resolveCommand(X.dismissalEndpoint,{form:{element:this.hostElement}})};
_.H.updateSelectedResponseIndexFromBinding=function(X){this.selectedResponseIndex=X.detail.value};
qm.prototype.onSelectedResponseIndexChange=qm.prototype.onSelectedResponseIndexChange;qm.prototype.dataChanged=qm.prototype.dataChanged;qm.prototype.onServiceRequestCompleted=qm.prototype.onServiceRequestCompleted;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qm.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],qm.prototype,"messageData",void 0);
_.E([_.K(),_.U("design:type",Number)],qm.prototype,"selectedResponseIndex",void 0);_.E([_.rt("#submit-button"),_.U("design:type",HTMLButtonElement)],qm.prototype,"submitButton",void 0);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],qm.prototype,"onServiceRequestCompleted",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],qm.prototype,"dataChanged",null);
_.E([_.cW("selectedResponseIndex"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],qm.prototype,"onSelectedResponseIndexChange",null);_.E([_.p({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],qm);
_.N(qm,"ytd-feedback-elicitation-single-question-renderer",function(){if(RyQ!==void 0)return RyQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return RyQ=X},{mode:1});var iai;var CC=function(){return _.O.apply(this,arguments)||this};
_.S(CC,_.O);CC.prototype.computeThumbnailWidth=function(X){return X?602:428};
CC.prototype.updateWideFromBinding=function(X){this.wide=X.detail.value};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],CC.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],CC.prototype,"wide",void 0);_.E([_.p({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],CC);
_.N(CC,"ytd-newspaper-hero-video-renderer",function(){if(iai!==void 0)return iai;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return iai=X},{mode:1});var LzR;var KC=function(){return _.O.apply(this,arguments)||this};
_.S(KC,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],KC.prototype,"rendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],KC.prototype,"data",void 0);_.E([_.p({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],KC);
_.N(KC,"ytd-newspaper-mini-video-renderer",function(){if(LzR!==void 0)return LzR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return LzR=X},{mode:1});var vmQ;_.Xa("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var OU=function(){return _.O.apply(this,arguments)||this};
_.S(OU,_.O);OU.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"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],OU.prototype,"data",void 0);_.E([_.p({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],OU);
_.N(OU,"ytd-newspaper-renderer",function(){if(vmQ!==void 0)return vmQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return vmQ=X},{mode:1});var aJR;_.Xa("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var uL=function(){var X=_.O.apply(this,arguments)||this;X.isSegment=!1;X.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};X.nextContinuation={continuationType:"playlistVideoListContinuation"};return X};
_.S(uL,_.O);_.H=uL.prototype;_.H.attached=function(){_.gw();var X;(X=_.gw().resolve(_.jH(_.e4)))!=null&&(X.playlistVideoListElement=this.hostElement)};
_.H.detached=function(){var X;(X=_.gw().resolve(_.jH(_.e4)))!=null&&(X.playlistVideoListElement=void 0);X=_.gw().resolve(_.jH(_.SR));_.A("web_enable_voting_animation")&&X&&(X.parentElem=void 0,X.videos=[],X.continuationsPresent=!1,X.showRefreshPill=!1)};
_.H.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"}}}}}};
_.H.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.H.dataChanged=function(){var X=_.gw().resolve(_.jH(_.SR));if(_.A("web_enable_voting_animation")&&this.data&&X){var t=_.Sm(this.hostElement).querySelector("#contents");t&&(X.parentElem=t);X.addVideos(this.data.contents)}_.exJ(this.ytReorderableBehavior)};
_.H.onRendererstamperFinished=function(){this.canReorder&&_.jpq(this.ytReorderableBehavior,_.Sm(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.H.onPlaylistReloading=function(){this.isReloading=!0};
_.H.onUpdateSetVideoId=function(X){if(X.detail&&this.data&&this.data.contents){var t=X.detail;X=this.data.contents.findIndex(function(w){var z;return((z=w.playlistVideoRenderer)==null?void 0:z.videoId)===t.videoId});
if(!(X<0)&&t.setVideoId&&(this.set("data.contents."+X+".playlistVideoRenderer.setVideoId",t.setVideoId),_.A("web_enable_voting_animation"))){var G;if(X=_.Y((G=this.data.contents[X].playlistVideoRenderer)==null?void 0:G.engagementBar,_.JTl)){var y;(y=X.actions)==null||y.forEach(function(w){if(w=_.Y(w,_.Bcf))w.itemId=t.setVideoId})}(G=_.gw().resolve(_.jH(_.SR)))&&YQB(G,t.videoId,t.setVideoId)}}};
_.H.computeContentsClass=function(X){return X?"reloading":""};
_.H.computeIsSortable=function(X,t){return X&&t>0&&!this.isSegment&&!_.A("shorts_in_playlists_web")};
_.H.computeIsEditable=function(X){return X};
_.H.computeCanReorder=function(X){return X};
_.H.handlePlaylistRemoveVideosAction=function(X){if(this.get("playlistRemoveVideosAction.setVideoIds",X)&&this.data&&this.data.contents){X=_.Y(X,_.Uoz).setVideoIds;for(var t=this.data.contents.length-1;t>=0;){var G=this.data.contents[t].playlistVideoRenderer;G&&G.setVideoId&&X.includes(G.setVideoId)&&this.splice("data.contents",t,1);t--}_.sl(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.H.updateIndices=function(){if(this.data&&this.data.contents)for(var X=0;X<this.data.contents.length;X++)this.set("data.contents."+X+".playlistVideoRenderer.index",_.Vl(String(X+1)))};
_.H.handleDrop=function(X){X=X.currDragItem;var t=_.PY(X.parentNode.childNodes,X),G=this.data.contents.splice(Number(_.bu(X.data.index))-1,1)[0];this.data.contents.splice(t,0,G);t=t?this.get("contents."+(t-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();X=this.buildReorderServiceEndpoint(X.data.setVideoId,t);this.ytComponentBehavior.resolveCommand(X)};
_.H.buildReorderServiceEndpoint=function(X,t){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",X),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",t),this.data.onReorderEndpoint):null};
_.H.handleUpdatePlaylistAction=function(X){var t;(X=_.Y((t=_.Y(X,_.moq))==null?void 0:t.updatedRenderer,_.JZo))&&this.canReorder!==X.canReorder&&this.set("data.canReorder",X.canReorder);X&&X.contents&&(this.set("data.contents",X.contents),this.isReloading=!1);X&&X.continuations&&this.set("data.continuations",X.continuations)};
_.H.handleAddRendererToItemSectionAction=function(X){var t,G=(t=_.Y(X,Zai))==null?void 0:t.renderer,y;G&&((y=_.Y(X,Zai))==null?void 0:y.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,G),X=_.gw().resolve(_.jH(_.SR)),_.A("web_enable_voting_animation")&&X&&(G&&(t=_.odY(G))&&X.recommendedVideos.push({itemId:t,videoId:_.ndG(G),voteCount:_.VLG(G),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.H.isVotingEnabledOnPlaylist=function(X){if(!X)return!1;X=_.J(X);for(X=X.next();!X.done;X=X.next()){var t=void 0;return!!_.Y((t=X.value.playlistVideoRenderer)==null?void 0:t.engagementBar,_.JTl)}return!1};
_.H.onAppendContinuationItemsActionFinished=function(){var X;this.isVotingEnabledOnPlaylist((X=this.data)==null?void 0:X.contents)&&(this.updateIndices(),X=_.gw().resolve(_.jH(_.SR)),_.A("web_enable_voting_animation")&&X&&this.data&&X.addVideos(this.data.contents))};
_.H.updateVideoData=function(X){if(X.detail&&this.data&&this.data.contents){var t=X.detail;X=t.toIdx;var G=t.itemId,y=t.newVoteCount,w=t.voteStatus;t=t.hideItem;var z,B,V=(z=this.data)==null?void 0:(B=z.contents)==null?void 0:B.findIndex(function(F){return _.odY(F)===G});
if(!(V<0)){z=this.data.contents[V];var b;if((b=z.playlistVideoRenderer)==null?0:b.voteCount)z.playlistVideoRenderer.voteCount=y;var e;if(b=_.Y((e=z.playlistVideoRenderer)==null?void 0:e.engagementBar,_.JTl)){var g;(g=b.actions)==null||g.forEach(function(F){(F=_.Y(F,_.Bcf))&&F.initialState&&(F.initialState.votes=y,F.initialState.status=w)})}this.data.contents.splice(V,1);
t||this.data.contents.splice(X,0,z);this.updateIndices()}}};
uL.prototype.updateVideoData=uL.prototype.updateVideoData;uL.prototype.onAppendContinuationItemsActionFinished=uL.prototype.onAppendContinuationItemsActionFinished;uL.prototype.onUpdateSetVideoId=uL.prototype.onUpdateSetVideoId;uL.prototype.onPlaylistReloading=uL.prototype.onPlaylistReloading;uL.prototype.onRendererstamperFinished=uL.prototype.onRendererstamperFinished;uL.prototype.dataChanged=uL.prototype.dataChanged;
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],uL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.JX.YtNextContinuationBehavior),_.U("design:type",Object)],uL.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.q(_.g8Y),_.U("design:type",Object)],uL.prototype,"ytReorderableBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],uL.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],uL.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uL.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],uL.prototype,"isReloading",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uL.prototype,"isSegment",void 0);_.E([_.K({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.U("design:type",Boolean)],uL.prototype,"isSortable",void 0);_.E([_.K({computed:"computeIsEditable(data.isEditable)"}),_.U("design:type",Boolean)],uL.prototype,"isEditable",void 0);_.E([_.K({computed:"computeCanReorder(data.canReorder)"}),_.U("design:type",Boolean)],uL.prototype,"canReorder",void 0);
_.E([_.K({value:101}),_.U("design:type",Number)],uL.prototype,"scrollMargin",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uL.prototype,"dataChanged",null);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uL.prototype,"onRendererstamperFinished",null);
_.E([_.WW("yt-playlist-reloading"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uL.prototype,"onPlaylistReloading",null);_.E([_.WW("yt-update-set-video-id"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uL.prototype,"onUpdateSetVideoId",null);
_.E([_.WW("yt-append-continuation-items-action-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uL.prototype,"onAppendContinuationItemsActionFinished",null);_.E([_.WW("yt-update-video-data-voting-animation"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uL.prototype,"updateVideoData",null);_.E([_.p({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],uL);
_.N(uL,"ytd-playlist-video-list-renderer",function(){if(aJR!==void 0)return aJR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return aJR=X},{mode:_.Cz("kevlar_poly_si_batch_j047")?1:2});var lJV;var Qh=function(){return _.O.apply(this,arguments)||this};
_.S(Qh,_.O);Qh.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"}}}}};
Qh.prototype.onTextWrapperTap=function(X){var t=this.data&&this.data.navigationEndpoint;t&&!_.Fa(_.be(X),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Yt(this.hostElement,"yt-navigate",{endpoint:t})};
Qh.prototype.dataChanged=function(){var X=this.get("data.offerButton.buttonRenderer.serviceEndpoint");X&&X.commandMetadata&&_.Y(X.commandMetadata,_.Le)&&_.Y(X.commandMetadata,_.Le).fireAutomatically&&_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}})};
Qh.prototype.dataChanged=Qh.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Qh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.JV),_.U("design:type",Object)],Qh.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Qh.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_desktop_search_bigger_thumbs")}}),
_.U("design:type",Boolean)],Qh.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.Yx("desktop_search_bigger_thumbs_style")}}),
_.U("design:type",String)],Qh.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Qh.prototype,"leftAligned",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Qh.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Qh);
_.N(Qh,"ytd-movie-renderer",function(){if(lJV!==void 0)return lJV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return lJV=X},{mode:1});var xGB;var I_=function(){var X=_.O.apply(this,arguments)||this;X.rounded=!0;X.pageAttachedTo=void 0;X.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return X};
_.S(I_,_.O);I_.prototype.attached=function(){this.pageAttachedTo=_.gw().resolve(_.AS).getCurrentPage();_.Yt(this.hostElement,"yt-player-attached",this.player)};
I_.prototype.detached=function(){var X;if((X=this.pageAttachedTo)==null?0:X.hostElement)_.Yt(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
I_.prototype.dataChanged=function(){var X;if((X=this.data)==null?0:X.videoId)X={video_id:this.data.videoId,autoplay:!0},!_.A("miniplayer_stop_channel_video_autoplay_killswitch")&&_.gw().resolve(_.G2).isMiniplayerActive()&&(X.pause_at_start=!0,X.autoplay=!1),this.player.loadVideoWithPlayerVars(X)};
I_.prototype.handleSignalActionPausePlayer=function(){_.DR().pause()};
I_.prototype.dataChanged=I_.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],I_.prototype,"data",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],I_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],I_.prototype,"rounded",void 0);_.E([_.rt("#player"),_.U("design:type",Object)],I_.prototype,"player",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],I_.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],I_);
_.N(I_,"ytd-channel-video-player-renderer",function(){if(xGB!==void 0)return xGB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return xGB=X},{mode:1});var fJq;var Mj4;var XLa;var Wn=function(){var X=_.O.apply(this,arguments)||this;X.playing=!1;X.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.GB(X);X.active=!1;return X};
_.S(Wn,_.O);_.H=Wn.prototype;_.H.detached=function(){this.stop()};
_.H.play=function(){var X=this,t,G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return X.active=!0,t=X.get("data.inlinePlaybackEndpoint.watchEndpoint"),G=t.videoId||X.data.videoId,y=t.startTimeSeconds||0,w=t.playerParams||null,_.A("kevlar_player_update_killswitch")?B.yield(X.playerEl.update({args:{video_id:G,startSeconds:y,player_params:w}}),2):(X.playerEl.loadVideoWithPlayerVars({video_id:G,startSeconds:y,player_params:w,autoplay:!0}),B.jumpTo(2));if(B.nextAddress!=4)return B.yield(X.playerEl.getPlayerPromise(),
4);z=B.yieldResult;z.unloadModule("annotations_module");z.addEventListener("onStateChange",function(V){X.onPlayerStateChange(V)});
_.W$(B)})};
_.H.onPlayerStateChange=function(X){if(this.active)switch(this.playing=X===1,X){case 1:_.Yt(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Yt(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.H.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.H.resize=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return G.yield(X.playerEl.getPlayerPromise(),2);t=G.yieldResult;t.setSize(NaN,NaN);_.W$(G)})};
_.E([_.K(),_.U("design:type",Object)],Wn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Wn.prototype,"playing",void 0);_.E([_.K(),_.U("design:type",Object)],Wn.prototype,"playerId",void 0);_.E([_.rt("#player"),_.U("design:type",Object)],Wn.prototype,"playerEl",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Wn);
_.N(Wn,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(XLa!==void 0)return XLa;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return XLa=X},{mode:1});var $p2;var tL2;var cn=function(){var X=_.O.apply(this,arguments)||this;X.width=0;return X};
_.S(cn,_.O);_.H=cn.prototype;_.H.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Ik(this,this.onEnded));this.mp4El.addEventListener("error",_.Ik(this,this.onError))};
_.H.detached=function(){this.videoEl.removeEventListener("ended",_.Ik(this,this.onEnded));this.mp4El.removeEventListener("error",_.Ik(this,this.onError))};
_.H.play=function(){var X=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var t=this.videoEl.play();t?t.then(function(){X.handleVideoStartPlaying()}).catch(function(){_.Yt(X.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Yt(this.hostElement,"yt-video-thumbnail-not-playing")};
_.H.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.H.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.H.dataChanged=function(){var X;if((X=this.data)==null?0:X.thumbnailPlaceholder)X=_.S_(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+X+")";this.stop();this.autoplay&&this.play()};
_.H.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.H.onEnded=function(){this.stop();_.Yt(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.H.onError=function(){_.Yt(this.hostElement,"yt-video-thumbnail-error")};
_.H.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.H.getVideoThumbnail=function(X){if(X&&X.length)return X[0]};
cn.prototype.dataChanged=cn.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],cn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],cn.prototype,"animatePlaceholderOnEntrance",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],cn.prototype,"autoplay",void 0);_.E([_.K({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.U("design:type",Object)],cn.prototype,"videoThumbnail",void 0);
_.E([_.K(),_.U("design:type",Boolean)],cn.prototype,"loop",void 0);_.E([_.K(),_.U("design:type",Boolean)],cn.prototype,"isVideoPlaying",void 0);_.E([_.K(),_.U("design:type",Object)],cn.prototype,"width",void 0);_.E([_.rt("#mp4"),_.U("design:type",HTMLElement)],cn.prototype,"mp4El",void 0);_.E([_.rt("#placeholder"),_.U("design:type",HTMLElement)],cn.prototype,"placeholderEl",void 0);_.E([_.rt("#video"),_.U("design:type",HTMLVideoElement)],cn.prototype,"videoEl",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],cn.prototype,"dataChanged",null);_.E([_.$F({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],cn);
_.N(cn,"yt-video-as-thumbnail-details",function(){if(tL2===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;$p2===void 0&&($p2=document.createElement("template"));var y=$p2;G.call(t,y.content.cloneNode(!0),X.content.firstChild);tL2=X}X=tL2;return X},{mode:2});var pC=function(){var X=_.O.apply(this,arguments)||this;X.disableGridStateAware=!1;X.animationEnabled=_.A("enable_web_ketchup_hero_animation");X.transitioningOut=!1;X.narrow=!1;X.narrower=!1;X.isCarouselInFeed=!1;X.videoTimeoutJobId=0;X.panelTimeoutJobId=0;X.panelTimeoutJobStartMs=0;X.actionMap={"yt-window-resized":"onWindowResized"};return X};
_.S(pC,_.O);_.H=pC.prototype;_.H.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.H.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var X;this.player&&((X=this.data)==null?0:X.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.H.attached=function(){this.onWindowResized()};
_.H.detached=function(){this.clearTimeouts()};
_.H.onWindowResized=function(){this.updateSize()};
_.H.computePanelLayout=function(X){return X&&X.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.H.playVideo=function(){var X;this.video&&((X=this.data)==null?0:X.videoThumbnail)&&this.video.play();var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.play()};
_.H.stopVideo=function(){var X;this.video&&((X=this.data)==null?0:X.videoThumbnail)&&this.video.stop();var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.stop()};
_.H.transitionOut=function(){var X=this;this.transitioningOut=!0;return new Promise(function(t){var G=function(){_.Sm(X.hostElement).querySelector("#action-button").removeEventListener("animationend",G);_.vz.cancelJob(y);t();X.transitioningOut=!1};
var y=_.PO(_.vz,G,1E3);_.Sm(X.hostElement).querySelector("#action-button").addEventListener("animationend",G);X.player&&(X.player.playing=!1)})};
_.H.computeMetadataOrder=function(X){return X&&X.metadataOrder&&X.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?X.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.H.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.H.computeAvatarSize=function(X){return X&&X.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.H.onContentClick=function(X){if(!_.Fa(_.be(X),this.hostElement,["A".toString(),"BUTTON".toString()])){var t;if((t=this.data)==null?0:t.navigationEndpoint){var G;this.componentBehavior.resolveCommand((G=this.data)==null?void 0:G.navigationEndpoint)}}};
_.H.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.H.setBackgroundImage=function(X){if(X=this.getBackgroundImageUrl(X))_.Sm(this.hostElement).querySelector("#hero").style.backgroundImage="url("+X+")"};
_.H.setScrimLayer=function(X){var t=this.getScrimLayerColorStops(X);X=((X==null?void 0:X.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(X=180);_.Md("HTML_DIR")==="rtl"&&(X=-X);t&&(_.Sm(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+X+"deg, "+t+")")};
_.H.isNarrower=function(){return this.hostElement.clientWidth<pC.NARROW_VERSION_SIZE};
_.H.getScrimLayerColorStops=function(){var X,t=(X=this.data)==null?void 0:X.scrimColorValues;if(!t)return null;if(t.length===1)return X=_.yY(t[0]),X+" 0%, "+X+" 100%";if(t.length===3){var G=[0,72,98];return t.map(function(y,w){return _.yY(y)+" "+G[w]+"%"}).join(",")}return null};
_.H.getBackgroundImageUrl=function(X){return X&&X.largeFormFactorBackgroundThumbnail?_.S_((X.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||X.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.H.onPlaying=function(){this.startVideoTimeout()};
_.H.onEnded=function(){this.rotate()};
_.H.startPanelTimeout=function(){var X=this;if(!this.panelTimeoutJobId){var t=this.get("data.minPanelDisplayDurationMs");t&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.PO(_.vz,function(){X.rotate()},t))}};
_.H.startVideoTimeout=function(){var X=this;if(!this.videoTimeoutJobId){_.vz.cancelJob(this.panelTimeoutJobId);var t=Date.now()-this.panelTimeoutJobStartMs;t=Math.max(0,this.get("data.minPanelDisplayDurationMs")-t);t=Math.max(this.get("data.minVideoPlayDurationMs")||0,t);this.videoTimeoutJobId=_.PO(_.vz,function(){X.rotate()},t)}};
_.H.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.vz.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.vz.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.H.rotate=function(){this.clearTimeouts();_.Yt(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.ke.Object.defineProperties(pC.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Sm(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Sm(this.hostElement).querySelector("#video")}}});
_.ke.Object.defineProperties(pC,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
pC.prototype.onEnded=pC.prototype.onEnded;pC.prototype.onPlaying=pC.prototype.onPlaying;pC.prototype.dataChanged=pC.prototype.dataChanged;_.E([_.q(_.y_),_.U("design:type",Object)],pC.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],pC.prototype,"componentBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],pC.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.q(_.nvh),_.U("design:type",Object)],pC.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],pC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pC.prototype,"disableGridStateAware",void 0);_.E([_.K(),_.U("design:type",Object)],pC.prototype,"data",void 0);_.E([_.K({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.U("design:type",String)],pC.prototype,"panelLayout",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pC.prototype,"animationEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pC.prototype,"transitioningOut",void 0);
_.E([_.K({computed:"computeMetadataOrder(data)"}),_.U("design:type",Boolean)],pC.prototype,"metadataOrder",void 0);_.E([_.K({computed:"computeByline(data)"}),_.U("design:type",Object)],pC.prototype,"byline",void 0);_.E([_.K({computed:"computeAvatarSize(data)"}),_.U("design:type",Number)],pC.prototype,"avatarSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pC.prototype,"narrow",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pC.prototype,"narrower",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pC.prototype,"layoutStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pC.prototype,"isCarouselInFeed",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pC.prototype,"dataChanged",null);_.E([_.WW("yt-default-promo-panel-renderer-playing"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pC.prototype,"onPlaying",null);
_.E([_.WW("yt-default-promo-panel-renderer-ended"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pC.prototype,"onEnded",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],pC);
_.N(pC,"ytd-default-promo-panel-renderer",function(){if(Mj4!==void 0)return Mj4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Mj4=X},{mode:1});_.Xa("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var rD=function(){var X=_.O.apply(this,arguments)||this;X.narrower=!1;X.dotMenuVisible=!1;X.paginationThumbnailsVisible=!1;X.active=!0;X.disableGridStateAware=!1;X.actionMap={"yt-window-resized":"onWindowResized"};return X};
_.S(rD,_.O);_.H=rD.prototype;_.H.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]]"}}}}}};
_.H.attached=function(){document.addEventListener("yt-page-type-changed",_.Ik(this,this.onPageTypeChange));this.currentPageSubtype=_.Wy(location.pathname);this.onWindowResized()};
_.H.detached=function(){this.jobId&&_.vz.cancelJob(this.jobId);this.updateSizeJobId&&_.vz.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Ik(this,this.onPageTypeChange))};
_.H.onPageTypeChange=function(X){this.active=X.detail.newPageSubtype===this.currentPageSubtype};
_.H.onWindowResized=function(){this.updateSize()};
_.H.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.H.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.H.setCarouselItem=function(X){X>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.vz.cancelJob(this.jobId);var t=this.getCurrentPanelElement();t&&t.stopVideo();this.currentItemIndex=X%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(t||(t=this.getCurrentPanelElement()),t.playVideo()):this.startRotationJob()};
_.H.scrollThumbnails=function(X){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var t=this.getCurrentPaginationElement();if(t){var G=_.Sm(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?G.style.transform="translateX(0)":(t=t.offsetWidth+8,G.style.transform="translateX(-"+t*(X-Math.ceil(Math.floor(this.overlay.offsetWidth/t)/2)+1)+"px)")}}};
_.H.onDataChanged=function(){var X=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.f5(_.vz,function(){X.getCurrentPanelElement().updateSize();X.updateSize()}))};
_.H.getCurrentPanelElement=function(){return _.Sm(_.Sm(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.H.getCurrentPaginationElement=function(){return _.Sm(_.Sm(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.H.getNavigationClass=function(X,t){return X===t?"selected":""};
_.H.getNavigationDurationStyle=function(X){return"animation-duration:"+(this.get("data.carouselItems."+X+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.H.onNavigationTap=function(X){var t=this,G=X.model.index;G!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){t.setCarouselItem(G)}),this.autorotateActive=!1)};
_.H.onVideoThumbnailEnded=function(){var X=this;if(this.shouldRotate()){var t=this.getCurrentPaginationElement();t&&(t.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){t.classList.remove("finished");X.setNextCarouselItem()}))}};
_.H.onVideoThumbnailError=function(){this.startRotationJob()};
_.H.onVideoNotPlaying=function(){this.startRotationJob()};
_.H.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.H.startRotationJob=function(){var X=this;_.vz.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.vz.addLowPriorityJob(function(){X.getCurrentPanelElement().transitionOut().then(function(){X.setNextCarouselItem()})},this.rotationTimeout))};
_.H.computeDotMenuVisible=function(X,t){return!!X&&!!X.carouselItems&&X.carouselItems.length>1&&!X.paginationThumbnails||!!t};
_.H.computePaginationThumbnailsVisible=function(X,t){var G,y;return((y=X==null?void 0:(G=X.paginationThumbnails)==null?void 0:G.length)!=null?y:0)>1&&!t};
_.H.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.H.computePaginatorAlignment=function(X){return(X==null?void 0:X.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.H.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.H.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.H.isNarrower=function(X){return(X!=null?X:0)<pC.NARROW_VERSION_SIZE};
rD.prototype.activeChanged=rD.prototype.activeChanged;rD.prototype.onVideoNotPlaying=rD.prototype.onVideoNotPlaying;rD.prototype.onVideoThumbnailError=rD.prototype.onVideoThumbnailError;rD.prototype.onVideoThumbnailEnded=rD.prototype.onVideoThumbnailEnded;rD.prototype.onDataChanged=rD.prototype.onDataChanged;_.E([_.q(_.y_),_.U("design:type",Object)],rD.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],rD.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rD.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],rD.prototype,"currentItem",void 0);
_.E([_.K(),_.U("design:type",Number)],rD.prototype,"currentItemIndex",void 0);_.E([_.K(),_.U("design:type",Number)],rD.prototype,"rotationTimeout",void 0);_.E([_.K(),_.U("design:type",Number)],rD.prototype,"loopCount",void 0);_.E([_.K({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.U("design:type",String)],rD.prototype,"paginatorAlignment",void 0);_.E([_.K(),_.U("design:type",Number)],rD.prototype,"jobId",void 0);
_.E([_.K(),_.U("design:type",Number)],rD.prototype,"updateSizeJobId",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],rD.prototype,"isCarouselInFeed",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],rD.prototype,"narrower",void 0);_.E([_.K({computed:"computeDotMenuVisible(data, narrower)"}),_.U("design:type",Object)],rD.prototype,"dotMenuVisible",void 0);
_.E([_.K({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.U("design:type",Object)],rD.prototype,"paginationThumbnailsVisible",void 0);_.E([_.K({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.U("design:type",String)],rD.prototype,"layoutType",void 0);_.E([_.K({value:!0,reflectToAttribute:!0}),_.U("design:type",Boolean)],rD.prototype,"autorotateActive",void 0);_.E([_.K(),_.U("design:type",Object)],rD.prototype,"active",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],rD.prototype,"disableGridStateAware",void 0);_.E([_.rt("#overlay"),_.U("design:type",HTMLElement)],rD.prototype,"overlay",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rD.prototype,"onDataChanged",null);
_.E([_.WW("yt-video-thumbnail-ended"),_.WW("yt-default-promo-panel-renderer-rotate"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rD.prototype,"onVideoThumbnailEnded",null);_.E([_.WW("yt-video-thumbnail-error"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rD.prototype,"onVideoThumbnailError",null);
_.E([_.WW("yt-video-thumbnail-not-playing"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rD.prototype,"onVideoNotPlaying",null);_.E([_.U0("active"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rD.prototype,"activeChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],rD);
_.N(rD,"ytd-carousel-item-renderer",function(){if(fJq!==void 0)return fJq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return fJq=X},{mode:2});var GXq;var yTV;var wLq;var zJr;var Nm=function(){var X=_.O.apply(this,arguments)||this;X.originalQuery=null;X.originalEndpoint=null;return X};
_.S(Nm,_.O);Nm.prototype.computeShowOriginalQueryWithoutEndpoint_=function(X,t){return!(!X||t)};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Nm.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Nm.prototype,"correctedText",void 0);_.E([_.K(),_.U("design:type",Object)],Nm.prototype,"correctedQuery",void 0);_.E([_.K(),_.U("design:type",Object)],Nm.prototype,"correctedEndpoint",void 0);_.E([_.K(),_.U("design:type",Object)],Nm.prototype,"originalText",void 0);_.E([_.K(),_.U("design:type",Object)],Nm.prototype,"originalQuery",void 0);
_.E([_.K(),_.U("design:type",Object)],Nm.prototype,"originalEndpoint",void 0);_.E([_.K({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.U("design:type",Boolean)],Nm.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.E([_.$F({is:"yt-search-query-correction",disableElementRegistration:!0})],Nm);
_.N(Nm,"yt-search-query-correction",function(){if(zJr===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;wLq===void 0&&(wLq=document.createElement("template"));var y=wLq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);zJr=X}X=zJr;return X},{mode:2});_.Xa("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Pn=function(){return _.O.apply(this,arguments)||this};
_.S(Pn,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Pn.prototype,"data",void 0);_.E([_.$F({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Pn);
_.N(Pn,"yt-did-you-mean-renderer",function(){if(yTV===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;GXq===void 0&&(GXq=document.createElement("template"));var y=GXq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);yTV=X}X=yTV;return X},{mode:2});var HJ4;var od4;_.Xa("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var EU=function(){return _.O.apply(this,arguments)||this};
_.S(EU,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],EU.prototype,"data",void 0);_.E([_.$F({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],EU);
_.N(EU,"yt-including-results-for-renderer",function(){if(od4===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;HJ4===void 0&&(HJ4=document.createElement("template"));var y=HJ4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);od4=X}X=od4;return X},{mode:2});var JT2;var BcH;_.Xa("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var UU=function(){return _.O.apply(this,arguments)||this};
_.S(UU,_.O);UU.prototype.computeExtraClasses_=function(X,t){var G="";X&&(G+=" "+X.toLowerCase().replace(/_/g,"-"));t&&(G+=" "+t.toLowerCase().replace(/_/g,"-"));return G};
UU.prototype.computeUrlImg_=function(){var X=this.data;X.image&&(_.Sm(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.S_(X.image.thumbnails,Number.MAX_VALUE)+")")};
UU.prototype.computeUrlImg_=UU.prototype.computeUrlImg_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],UU.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UU.prototype,"computeUrlImg_",null);_.E([_.$F({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],UU);
_.N(UU,"yt-music-pass-feature-info-renderer",function(){if(BcH===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;JT2===void 0&&(JT2=document.createElement("template"));var y=JT2;G.call(t,y.content.cloneNode(!0),X.content.firstChild);BcH=X}X=BcH;return X},{mode:2});var ndv;var VLv;_.Xa("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var mH=function(){return _.O.apply(this,arguments)||this};
_.S(mH,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mH.prototype,"data",void 0);_.E([_.$F({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],mH);
_.N(mH,"yt-no-results-found-showing-results-for-renderer",function(){if(VLv===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;ndv===void 0&&(ndv=document.createElement("template"));var y=ndv;G.call(t,y.content.cloneNode(!0),X.content.firstChild);VLv=X}X=VLv;return X},{mode:2});var bJB;var kX4;_.Xa("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var R_=function(){return _.O.apply(this,arguments)||this};
_.S(R_,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],R_.prototype,"data",void 0);_.E([_.$F({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],R_);
_.N(R_,"yt-results-without-quotes-renderer",function(){if(kX4===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;bJB===void 0&&(bJB=document.createElement("template"));var y=bJB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);kX4=X}X=kX4;return X},{mode:2});var dpB;var eJH;_.Xa("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var iL=function(){return _.O.apply(this,arguments)||this};
_.S(iL,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iL.prototype,"data",void 0);_.E([_.$F({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],iL);
_.N(iL,"yt-search-no-results-renderer",function(){if(eJH===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;dpB===void 0&&(dpB=document.createElement("template"));var y=dpB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);eJH=X}X=eJH;return X},{mode:2});var jrV;var gdT;_.Xa("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var LC=function(){return _.O.apply(this,arguments)||this};
_.S(LC,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],LC.prototype,"data",void 0);_.E([_.$F({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],LC);
_.N(LC,"yt-showing-results-for-renderer",function(){if(gdT===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;jrV===void 0&&(jrV=document.createElement("template"));var y=jrV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);gdT=X}X=gdT;return X},{mode:2});var Fcr;var TcQ;var AT4;var YBR;var vn=function(){var X=_.O.apply(this,arguments)||this;X.answerExpanded=!1;return X};
_.S(vn,_.O);vn.prototype.toggleAnswer_=function(X){var t=_.k3(X);t&&t.classList.contains("yt-simple-endpoint")||(X.preventDefault(),X.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
vn.prototype.toggleAnswer_=vn.prototype.toggleAnswer_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vn.prototype,"answerExpanded",void 0);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],vn.prototype,"toggleAnswer_",null);
_.E([_.$F({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],vn);
_.N(vn,"yt-generic-faq-question-renderer",function(){if(YBR===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;AT4===void 0&&(AT4=document.createElement("template"));var y=AT4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);YBR=X}X=YBR;return X},{mode:2});_.Xa("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var a_=function(){return _.O.apply(this,arguments)||this};
_.S(a_,_.O);a_.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],a_.prototype,"data",void 0);_.E([_.$F({is:"yt-faq-section-renderer",disableElementRegistration:!0})],a_);
_.N(a_,"yt-faq-section-renderer",function(){if(TcQ===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Fcr===void 0&&(Fcr=document.createElement("template"));var y=Fcr;G.call(t,y.content.cloneNode(!0),X.content.firstChild);TcQ=X}X=TcQ;return X},{mode:2});var srV;var Dpr;_.Xa("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var lL=function(){return _.O.apply(this,arguments)||this};
_.S(lL,_.O);
lL.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"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lL.prototype,"data",void 0);_.E([_.$F({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],lL);
_.N(lL,"yt-offer-item-expanded-renderer",function(){if(Dpr===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;srV===void 0&&(srV=document.createElement("template"));var y=srV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Dpr=X}X=Dpr;return X},{mode:2});var SBV;var hJT;_.Xa("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var xD=function(){return _.O.apply(this,arguments)||this};
_.S(xD,_.O);
xD.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"}}}}};
xD.prototype.computeFullWidthMode=function(X){return!(!X||!X.fullWidthMode)};
xD.prototype.computeBorderlessMode=function(X){return!(!X||!X.borderlessMode)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.U("design:type",Boolean)],xD.prototype,"fullWidthMode",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.U("design:type",Boolean)],xD.prototype,"borderlessMode",void 0);_.E([_.$F({is:"yt-offer-item-renderer",disableElementRegistration:!0})],xD);
_.N(xD,"yt-offer-item-renderer",function(){if(hJT===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;SBV===void 0&&(SBV=document.createElement("template"));var y=SBV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);hJT=X}X=hJT;return X},{mode:2});var ZJR;var qBQ;_.Xa("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var fC=function(){return _.O.apply(this,arguments)||this};
_.S(fC,_.O);fC.prototype.computeAriaLevel_=function(X){return this.getLevelID_(X)};
fC.prototype.getLevelID_=function(X){return(X=X.match(/[0-9]+$/))&&X.length==1?X[0]:"1"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],fC.prototype,"data",void 0);_.E([_.K({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.U("design:type",String)],fC.prototype,"ariaLevel",void 0);_.E([_.K({value:"heading",reflectToAttribute:!0}),_.U("design:type",String)],fC.prototype,"role",void 0);
_.E([_.K({value:-1,reflectToAttribute:!0}),_.U("design:type",Number)],fC.prototype,"tabindex",void 0);_.E([_.$F({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],fC);
_.N(fC,"yt-subscription-product-header-renderer",function(){if(qBQ===void 0){var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;ZJR===void 0&&(ZJR=document.createElement("template"));var y=ZJR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);qBQ=X}X=qBQ;return X},{mode:2});var CUV;var KcH;_.Xa("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Mm=function(){return _.O.apply(this,arguments)||this};
_.S(Mm,_.O);Mm.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:_.$W("menuRenderer"),events:!0}}};
Mm.prototype.onStampFinished_=function(){_.Sm(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Mm.prototype.onStampFinished_=Mm.prototype.onStampFinished_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Mm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Mm.prototype,"data",void 0);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mm.prototype,"onStampFinished_",null);
_.E([_.$F({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Mm);
_.N(Mm,"yt-subscription-product-renderer",function(){if(KcH===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;CUV===void 0&&(CUV=document.createElement("template"));var y=CUV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);KcH=X}X=KcH;return X},{mode:2});var OJV;var uY2;_.Xa("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Xj=function(){return _.O.apply(this,arguments)||this};
_.S(Xj,_.O);Xj.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Xj.prototype.imageScrimColorValuesChanged_=function(){var X,t=(X=this.data)==null?void 0:X.imageScrimColorValues;_.Sm(this.hostElement).querySelector("#scrim").style.backgroundColor=t?_.yY(t[0]):"transparent"};
Xj.prototype.imageScrimColorValuesChanged_=Xj.prototype.imageScrimColorValuesChanged_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Xj.prototype,"data",void 0);
_.E([_.cW("data.imageScrimColorValues"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Xj.prototype,"imageScrimColorValuesChanged_",null);_.E([_.$F({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Xj);
_.N(Xj,"yt-subscription-product-upsell-offer-renderer",function(){if(uY2===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;OJV===void 0&&(OJV=document.createElement("template"));var y=OJV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);uY2=X}X=uY2;return X},{mode:2});var QrH;var IKV;var Wci;var cTV;var pLB;var rTB;var $Y=function(){return _.O.apply(this,arguments)||this};
_.S($Y,_.O);$Y.prototype.onYtServiceRequestError_=function(X){_.F7(this.hostElement,X.detail.error.message)};
$Y.prototype.onYtServiceRequestError_=$Y.prototype.onYtServiceRequestError_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$Y.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],$Y.prototype,"collapsible",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],$Y.prototype,"isManageRed",void 0);
_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],$Y.prototype,"onYtServiceRequestError_",null);_.E([_.$F({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],$Y);
_.N($Y,"yt-single-ypc-offer-renderer",function(){if(rTB===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;pLB===void 0&&(pLB=document.createElement("template"));var y=pLB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);rTB=X}X=rTB;return X},{mode:2});var tU=function(){return _.O.apply(this,arguments)||this};
_.S(tU,_.O);tU.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],tU.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],tU.prototype,"isManageRed",void 0);_.E([_.$F({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],tU);
_.N(tU,"yt-single-ypc-offer-list-renderer",function(){if(cTV===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Wci===void 0&&(Wci=document.createElement("template"));var y=Wci;G.call(t,y.content.cloneNode(!0),X.content.firstChild);cTV=X}X=cTV;return X},{mode:2});var Ncv;var PUQ;_.Xa("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var GN=function(){return _.O.apply(this,arguments)||this};
_.S(GN,_.O);GN.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],GN.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],GN.prototype,"isManageRed",void 0);_.E([_.$F({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],GN);
_.N(GN,"yt-ypc-offers-list-renderer",function(){if(PUQ===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Ncv===void 0&&(Ncv=document.createElement("template"));var y=Ncv;G.call(t,y.content.cloneNode(!0),X.content.firstChild);PUQ=X}X=PUQ;return X},{mode:2});_.Xa("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var yF=function(){return _.O.apply(this,arguments)||this};
_.S(yF,_.O);
yF.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}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],yF.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],yF.prototype,"data",void 0);_.E([_.$F({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],yF);
_.N(yF,"yt-unlimited-manage-subscription-page-renderer",function(){if(IKV===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;QrH===void 0&&(QrH=document.createElement("template"));var y=QrH;G.call(t,y.content.cloneNode(!0),X.content.firstChild);IKV=X}X=IKV;return X},{mode:2});var EdQ;var Up4;var wL=function(){return _.O.apply(this,arguments)||this};
_.S(wL,_.O);_.H=wL.prototype;_.H.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.H.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.H.onKeypress_=function(X){X.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.H.handleHeaderTap_=function(X){X.preventDefault();X.stopPropagation();this.expandOffers_()};
_.H.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.H.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
wL.prototype.dataChanged_=wL.prototype.dataChanged_;_.E([_.q(_.NN),_.U("design:type",Object)],wL.prototype,"ironA11yKeysBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],wL.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],wL.prototype,"offersVisible_",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wL.prototype,"dataChanged_",null);_.E([_.$F({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],wL);
_.N(wL,"yt-collapsible-ypc-offer-renderer",function(){if(Up4===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;EdQ===void 0&&(EdQ=document.createElement("template"));var y=EdQ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Up4=X}X=Up4;return X},{mode:2});var mpB;var RJN;_.Xa("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var zN=function(){return _.O.apply(this,arguments)||this};
_.S(zN,_.O);_.H=zN.prototype;_.H.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.H.dataChanged_=function(){if(this.data.backgroundImage){var X=_.S_(this.data.backgroundImage.thumbnails,screen.width),t=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=t?"linear-gradient(180deg, "+t+"), url("+X+")":"url("+X+")";this.data.gtmId&&_.vN(this.data.gtmId,_.Md("GL",""))}};
_.H.onYtServiceRequestError_=function(X){_.F7(this.hostElement,X.detail.error.message)};
_.H.getScrimLayerColorStops_=function(){var X,t,G=(X=this.data.unlimitedHeaderV2Data)==null?void 0:(t=X.unlimitedHeaderV2Data)==null?void 0:t.scrimLayerColors;if(!G)return null;var y=100/G.length;return G.map(function(w,z){z*=y;return _.yY(w)+" "+z+"%"}).join(",")};
_.H.computeLogoWithPadding=function(X){var t,G,y;return(X=(t=X.unlimitedLogoImage)==null?void 0:(G=t.thumbnails)==null?void 0:(y=G[0])==null?void 0:y.height)&&X%31===0?!0:!1};
zN.prototype.onYtServiceRequestError_=zN.prototype.onYtServiceRequestError_;zN.prototype.dataChanged_=zN.prototype.dataChanged_;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.E([_.K({computed:"computeLogoWithPadding(data)"}),_.U("design:type",Boolean)],zN.prototype,"logoWithPadding",void 0);
_.E([_.K(),_.U("design:type",Object)],zN.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zN.prototype,"dataChanged_",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],zN.prototype,"onYtServiceRequestError_",null);_.E([_.$F({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],zN);
_.N(zN,"yt-unlimited-page-header-renderer",function(){if(RJN===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;mpB===void 0&&(mpB=document.createElement("template"));var y=mpB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);RJN=X}X=RJN;return X},{mode:2});var iJN;var LcT;_.Xa("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Hf=function(){return _.O.apply(this,arguments)||this};
_.S(Hf,_.O);Hf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Hf.prototype,"data",void 0);_.E([_.$F({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Hf);
_.N(Hf,"yt-unlimited-user-notification-renderer",function(){if(LcT===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;iJN===void 0&&(iJN=document.createElement("template"));var y=iJN;G.call(t,y.content.cloneNode(!0),X.content.firstChild);LcT=X}X=LcT;return X},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.wq2=_.Fp(function(X){var t=_.jx(X,{numberOfChips:5}).numberOfChips;return _.k("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.k(_.pY,{each:function(){return Array(t==null?void 0:t())}},function(){return _.k("div",{class:"ytGhostChipShelfChip"})}))},"zg");_.zMV=_.Fp(function(X){var t=function(){var z;return((z=X.data)==null?void 0:z.call(X).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},G=_.Is(),y=_.gw().resolve(_.e_);
_.R2(function(){requestAnimationFrame(function(){var z;(z=G.lottieEl)==null||z.addEventListener("DOMLoaded",function(){var B;(B=X.onLottieLoaded)==null||B.call(X)})})});
var w={};return _.k("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var z;return((z=X.data)==null?void 0:z.call(X).targetId)||""}},_.k(_.D8,{className:_.cl((w.ytChatLoadingViewModelRtl=y==="rtl",w)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:t()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||t()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:t()}}},
animationRef:G}))},"Ag");
}catch(e){_._DumpException(e)}
try{
var DtN,Smv,hKi,Zt4,qmB,CmR,K$B,OtR,Q5i,EHH,h1,Pmq,cWB,NhH,rWa,pmH,W$B,Utv,mt2,RKR,it2,ZS,L$V,vHr,xtv,KK,ay4,Oj,qX,uH,lyV,CK,fyq,M0H,X0T,$dV,tgH,GhR,w0r,Jfr,VgR,bYi,kha,dda,e8R,gSR,TnR,Yaq,s2R,Dda,Sav,ZYN,qaq,Cv2,K6H,OYB,uJi,Q2Q,W6T,NnQ,rf2,cfN,Pvv,p0r,ESB,iY4,R8N,UdN,mdR,IG,L6v,vST,l1V,tHH,GAa,ytH,wx4,zZB,HsH,oxH,JtB,BwN,nxR,bsT,kAi,dJq,Mgv;
_.DS=function(X){var t=new _.NJ("Error accessing DB");return _.jJY().then(function(G){return new Promise(function(y,w){try{var z=G.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(X);z.onsuccess=function(){var B=z.result;y(B?B.value:null)};
z.onerror=function(){t.params={key:X,source:"onerror"};w(t)}}catch(B){t.params={key:X,
thrownError:String(B)},w(t)}})},function(){return null})};
_.s5q=function(X,t){var G=_.EgV(t);G!=="javascript:"&&G!=="data:"&&X.setAttribute("href",t)};
DtN=function(X,t){return _.Kg(X.entities,"flowStateEntity",t)};
Smv=function(X,t){return _.Kg(X.entities,"contextNoteUserRatingEntityPayload",t)};
hKi=function(X){return _.r6(X,function(t){return t.languageCode==="en"})};
Zt4=function(X){var t=SZ;if(_.WWi(X))X.setOption("captions","stickyLoading",{}),X.setOption("captions","track",{});else{var G=_.r6(_.OJJ(X),function(y){return y.displayName===t});
X.setOption("captions","track",G)}};
qmB=function(X){if(!X)return 0;var t=X.getPresentingPlayerType(),G=X.getVideoData();return G&&G.isLive?(X=X.getProgressState(t),X.seekableEnd-X.seekableStart):X.getDuration(t)};
CmR=function(X,t){for(var G=_.J(Object.keys(X)),y=G.next();!y.done;y=G.next())if(y=y.value,X[y]!==t[y])return!1;return!0};
K$B=function(){return document.getElementById("player-control-overlay")};
OtR=function(X){X!==-1&&!_.A("player_controls_log_creation_killswitch")&&K$B()&&(_.ls("pcu_cs",X),_.ls("pcu_ce"))};
Q5i=function(X){return _.k("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(X.subscribeButton?[X.subscribeButton,X.channelAccess]:[X.channelAccess]).map(function(t){return _.k("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.k("div",{class:"yt-profile-identity-info-view-model-wiz--button"},uOV(t)))}))};
_.IyR=function(X){var t=X.data;var G=X.hideDivider;X=X.isChannelInfoCard;var y={};y=(y["yt-profile-identity-info-view-model-wiz__frame"]=!0,y["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!t.channelBanner,y);y={class:_.pX(y)};var w,z={imageBannerViewModel:{image:(w=t.channelBanner)==null?void 0:w.image,style:"IMAGE_BANNER_STYLE_INSET"}};w=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},t.channelBanner?_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
uOV(z,{imageBannerViewModel:{isPositionRelative:!0}})):null);z=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},uOV(t.avatar));var B;var V=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},t.channelDisplayName),t.verifiedOrOacBadge?_.k("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.k(_.gr,{data:{thumbnails:[{url:(B=t.verifiedOrOacBadge)==null?void 0:B.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);B=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},V,uOV(t.threeDotMenu));V=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.k("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},t.channelHandle),t.channelPronouns&&t.channelHandle?_.k("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.k("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},t.channelPronouns)),_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},t.leftOfBulletInfo),t.leftOfBulletInfo&&t.rightOfBulletInfo?_.k("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},t.rightOfBulletInfo)));B=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},B,V);return _.k("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.k("div",y,w,_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},z,B),t.channelDescription?_.k("div",{class:X?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
t.channelDescription):null,Q5i(t),G?null:_.k("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
EHH=function(X,t){var G=_.ex(X,{}),y=W$B("top",t),w=W$B("bottom",t),z=W$B("left",t),B=W$B("right",t);return _.Ud({top:function(){return h1(G().position,y)},
bottom:function(){return h1(G().position,w)},
left:function(){return h1(G().position,z)},
right:function(){return h1(G().position,B)},
position:function(){return h1(G().positionType,cWB)},
height:function(){return h1(G().height,ZS)},
width:function(){return h1(G().width,ZS)},
"min-width":function(){return h1(G().minWidth,ZS)},
"min-height":function(){return h1(G().minHeight,ZS)},
"max-width":function(){return h1(G().maxWidth,ZS)},
"max-height":function(){return h1(G().maxHeight,ZS)},
"aspect-ratio":function(){return h1(G().aspectRatio,String)},
"margin-top":function(){return h1(G().margin,y)},
"margin-bottom":function(){return h1(G().margin,w)},
"margin-left":function(){return h1(G().margin,z)},
"margin-right":function(){return h1(G().margin,B)},
"padding-top":function(){return h1(G().padding,y)},
"padding-bottom":function(){return h1(G().padding,w)},
"padding-left":function(){return h1(G().padding,z)},
"padding-right":function(){return h1(G().padding,B)},
"flex-direction":function(){return h1(G().flexDirection,pmH)},
"justify-content":function(){return h1(G().justifyContent,rWa)},
"align-items":function(){return h1(G().alignItems,NhH)},
"flex-grow":function(){return h1(G().flexGrow,String)},
"flex-shrink":function(){return h1(G().flexShrink,String)},
"flex-basis":function(){return h1(G().flexBasis,ZS)},
"align-self":function(){return h1(G().alignSelf,NhH)},
"flex-wrap":function(){return h1(G().flexWrap,Pmq)},
"align-content":function(){return h1(G().alignContent,NhH)}})};
h1=function(X,t){return X!==void 0?t(X):void 0};
Pmq=function(X){switch(X){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
cWB=function(X){switch(X){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
NhH=function(X){switch(X){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"}};
rWa=function(X){switch(X){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"}};
pmH=function(X){switch(X){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"}};
W$B=function(X,t){var G=t==="rtl";switch(X){case "top":var y=Utv;break;case "bottom":y=mt2;break;case "left":y=RKR;break;default:y=it2}return function(w){return h1(y(w,G),ZS)}};
Utv=function(X){var t=X.top;var G=X.vertical;X=X.all;var y;return(y=t!=null?t:G)!=null?y:X};
mt2=function(X){var t=X.bottom;var G=X.vertical;X=X.all;var y;return(y=t!=null?t:G)!=null?y:X};
RKR=function(X,t){var G=X.left;var y=X.end;var w=X.start;var z=X.horizontal;X=X.all;var B,V;return(V=(B=G!=null?G:t?y:w)!=null?B:z)!=null?V:X};
it2=function(X,t){var G=X.right;var y=X.end;var w=X.start;var z=X.horizontal;X=X.all;var B,V;return(V=(B=G!=null?G:t?w:y)!=null?B:z)!=null?V:X};
ZS=function(X){var t=X.value;switch(X.unit){case "YPC_DIMENSION_UNIT_POINT":return t+"px";case "YPC_DIMENSION_UNIT_FRACTION":return t+"%";default:return""+t}};
L$V=function(X){switch(X){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"}};
vHr=function(X){var t=X!=null?X:{};X=t.fontRole;var G=t.fontSize;t=t.fontWeight;if(X!==null&&G!==null)switch(X){case "YPC_FONT_ROLE_DISPLAY":switch(G){case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(G){case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return t===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(G){case "YPC_FONT_SIZE_XL":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
xtv=function(X,t,G){function y(g){return Object.values(g).map(function(F){var T=F.productId;F=F.pricingOptionIndex;return qX(w(T).pricingOptions,F).pricingOptionId})}
function w(g){return V().get(g)}
function z(g){g=y(g);G(g)}
var B=CK([X,t],function(g,F){var T=g==null?void 0:g.selectedPricingOptions;g={};var D=!0;if(T&&F.length)for(var h=_.J(F),u=h.next();!u.done;u=h.next()){u=u.value;var W=ay4(u.pricingOptions,function(l){a:{l=l.pricingOptionId;for(var R=_.J(T),L=R.next();!L.done;L=R.next())if(L.value===l){l=!0;break a}l=!1}return l});
if(W>=0){D=!1;var c=qX(u.pricingOptions,W),P=void 0;g[u.groupId]={productId:u.productId,pricingOptionIndex:W,pricingGroupAttributes:(P=c)==null?void 0:P.pricingGroupAttributes}}}D&&F.length&&(D=qX(F[0].pricingOptions,0),g[F[0].groupId]={productId:F[0].productId,pricingOptionIndex:0,pricingGroupAttributes:D==null?void 0:D.pricingGroupAttributes});return g}),V=CK([t],function(g){return new Map(g.map(function(F){return[F.productId,
F]}))}),b=CK([t],function(g){var F=new Map;
g=_.J(g);for(var T=g.next();!T.done;T=g.next()){var D=T.value;T=D.groupId;var h=D.productId;D=_.J(KK(D.pricingOptions));for(var u=D.next();!u.done;u=D.next()){var W=_.J(u.value);u=W.next().value;W=W.next().value;F.set(W.pricingOptionId,{groupId:T,productId:h,index:u,pricingOption:W,pricingGroupAttributes:W.pricingGroupAttributes})}}return F}),e=CK([t],function(g){var F=new Map;
g=_.J(g);for(var T=g.next();!T.done;T=g.next()){var D=T.value;T=D.groupId;var h=D.productId,u=void 0;D=_.J(KK((u=D.pricingGroups)!=null?u:[]));for(u=D.next();!u.done;u=D.next()){var W=_.J(u.value);u=W.next().value;W=W.next().value;F.set(W.pricingGroupId,{groupId:T,productId:h,index:u,pricingGroup:W,pricingGroupAttributes:W.pricingGroupAttributes})}}return F});
return{getProductById:w,isProductSelected:function(g){var F=w(g);if(!F)return!1;var T;return((T=B()[F.groupId])==null?void 0:T.productId)===g},
getSelectedPricingOptions:function(){return Object.values(B()).map(function(g){var F=g.productId;g=g.pricingOptionIndex;return qX(w(F).pricingOptions,g)})},
getSelectedPricingGroupAttributesByGroupId:function(g){var F;return(g=(F=B()[g])==null?void 0:F.pricingGroupAttributes)?Array.from(g):void 0},
getSelectedProductByGroupId:function(g){var F;return(g=(F=B()[g])==null?void 0:F.productId)?w(g):void 0},
onProductSelected:function(g){var F=w(g);if(F){var T=B(),D;if(((D=T[F.groupId])==null?void 0:D.productId)!==g){var h,u;D=(u=(h=T[F.groupId])==null?void 0:h.pricingOptionIndex)!=null?u:0;Oj(F.pricingOptions)<=D&&(D=0);h=qX(F.pricingOptions,D);var W;u={};z(Object.assign({},T,(u[F.groupId]={productId:g,pricingOptionIndex:D,pricingGroupAttributes:(W=h==null?void 0:h.pricingGroupAttributes)!=null?W:[]},u)))}}},
onPricingOptionSelected:function(g){var F=b().get(g);if(F){g=F.groupId;var T=F.productId;F=F.index;var D=B(),h,u;if(((h=D[g])==null?void 0:h.productId)!==T||((u=D[g])==null?void 0:u.pricingOptionIndex)!==F){var W,c;h={};z(Object.assign({},D,(h[g]={productId:T,pricingOptionIndex:F,pricingGroupAttributes:(c=(W=D[g])==null?void 0:W.pricingGroupAttributes)!=null?c:[]},h)))}}},
onPricingGroupSelected:function(g){var F=e().get(g);if(F){g=F.groupId;var T=F.productId,D=F.pricingGroup.pricingGroupAttributes,h=w(T);if(h){F=B();var u=F[g].pricingGroupAttributes,W;if(((W=F[g])==null?void 0:W.productId)!==T||!uH(lyV(u,Oj(D)),D)){W=Array.from(D);for(D=Oj(D);D<Oj(u);D++){var c="",P=!1,l=Array.from(W);l.push(qX(u,D));for(var R=_.J(h.pricingGroups),L=R.next();!L.done;L=R.next())if(L=L.value,uH(L.pricingGroupAttributes,l)){W.push(qX(u,D));P=!0;break}else c===""&&Oj(L.pricingGroupAttributes)===
l.length&&uH(lyV(L.pricingGroupAttributes,W.length),W)&&(c=qX(L.pricingGroupAttributes,D));P||W.push(c)}c=F[g].pricingOptionIndex;D=[];P=new Map;l=0;h=_.J(KK(h.pricingOptions));for(R=h.next();!R.done;R=h.next())L=_.J(R.value),R=L.next().value,L=L.next().value,uH(L.pricingGroupAttributes,W)&&D.push(R),uH(L.pricingGroupAttributes,u)&&P.set(R,l++);D.length===0?u=0:(u=P.get(c),u=u!==void 0&&u<D.length?D[u]:D[0]);h={};z(Object.assign({},F,(h[g]={productId:T,pricingOptionIndex:u,pricingGroupAttributes:W},
h)))}}}},
onClearGroupSelected:function(g){var F=B();F[g]&&(F=Object.fromEntries(Object.entries(F).filter(function(T){return _.J(T).next().value!==g})),z(F))}}};
KK=function(X){return function G(){var y,w,z,B,V;return _.KV(G,function(b){switch(b.nextAddress){case 1:_.u8(b,2),y=0,w=_.J(X),z=w.next();case 4:if(z.done){b.jumpTo(2);break}B=z.value;V=_.O5;return b.yield([y++,B],7);case 7:V(b.yieldResult);z=w.next();b.jumpTo(4);break;case 2:_.O6(b),_.Qb(b,0)}})}()};
ay4=function(X,t){X=_.J(KK(X));for(var G=X.next();!G.done;G=X.next()){var y=_.J(G.value);G=y.next().value;y=y.next().value;if(t(y))return G}return-1};
Oj=function(X){var t=0;for(X=X[Symbol.iterator]();!X.next().done;)++t;return t};
qX=function(X,t){X=_.J(KK(X));for(var G=X.next();!G.done;G=X.next()){var y=_.J(G.value);G=y.next().value;y=y.next().value;if(G===t)return y}};
uH=function(X,t){if(!X&&!t)return!0;if(!X||!t)return!1;X=Array.from(X);t=Array.from(t);if(X.length!==t.length)return!1;for(var G=0;G<X.length;G++)if(X[G]!==t[G])return!1;return!0};
lyV=function(X,t){t=t===void 0?Infinity:t;var G=[];X=_.J(KK(X));for(var y=X.next();!y.done;y=X.next()){var w=_.J(y.value);y=w.next().value;w=w.next().value;if(y>=t)break;y>=0&&G.push(w)}return G};
CK=function(X,t){var G,y;return function(){for(var w=X.map(function(B){return B()}),z=0;z<w.length;z++)if(!G||w[z]!==G[z]){G=w;
y=t.apply(null,_.RY(w));break}return y}};
fyq=function(X,t,G){var y=[];X=_.J(X);for(var w=X.next();!w.done;w=X.next()){w=w.value;var z=void 0;((z=t)==null?0:z.length)&&!uH(w.pricingGroupAttributes,t)||y.push({pricingOption:w,isSelected:G.includes(w.pricingOptionId)})}return y};
M0H=function(X,t){return _.Kg(X.entities,"pdpStateEntity",t)};
X0T=function(X){var t,G;return!!(X.productId&&X.groupId&&((t=X.pricingOptions)==null?0:t.length)&&X.pricingOptions.every(function(y){return y.pricingOptionId})&&((G=X.pricingGroups)==null||!G.length||Array.isArray(X.pricingGroups)&&X.pricingGroups.every(function(y){return y.pricingGroupId&&y.pricingGroupAttributes&&y.pricingGroupAttributes.length>0})))};
$dV=function(X,t,G){return xtv(X,CK([t],function(y){return y.filter(X0T)}),G)};
tgH=function(X,t){return t.length===0?[X]:[X.slice(0,t[0]),X.slice(t[0])].filter(function(G){return G.length>0})};
GhR=function(X){switch(X){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""}};
w0r=function(X,t,G,y){y=Object.assign({},y);_.Xx(y,yfT,{selectedOptionId:X,primaryButtonOverride:G});_.kF().dispatch(_.EW("flowStateEntity",t,y))};
_.oSH=function(){if(!z8V){var X=_.J(_.sm(new Map,void 0,"UJImUe"));z8V=X.next().value;HY2=X.next().value}return z8V};
Jfr=function(X){if(X)return _.oSH()().get(X)};
_.BnV=function(X,t){if(X&&t){var G=_.oSH();G().set(X,t);X=G();HY2(new Map(X))}};
_.nSi=function(X){return{onSubmit:function(){var t;(t=Jfr(X()))==null||t.onSubmit()},
isValid:function(){var t=Jfr(X());return t?t.isValid():!0},
isSubmitting:function(){var t,G;return!!((t=Jfr(X()))==null?0:(G=t.isSubmitting)==null?0:G.call(t))}}};
VgR=function(X,t){return _.Kg(X.entities,"contextNoteFeedEntityPayload",t)};
bYi=function(X,t){switch(X){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return t==null?void 0:t.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return t==null?void 0:t.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return t==null?void 0:t.ratingNotHelpfulText}};
kha=function(X,t){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:X.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:X.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:X.deleteDialogTitle}]},dialogMessages:[{runs:[{text:X.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:X.deleteActionText}]},command:{performCommentActionEndpoint:{action:t}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:X.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
dda=function(X){X.style.height="auto";X.style.height=X.scrollHeight+"px"};
e8R=function(X){return[X.syncStep,X.asyncStep].filter(function(t){return t!==void 0})};
gSR=function(X){var t,G,y;if(X=(t=X.structuredContextNoteFormSchema)==null?void 0:(G=t.fieldSchemas)==null?void 0:(y=G.noteBody)==null?void 0:y.validationSchema)for(t=_.J(e8R(X)),G=t.next();!G.done;G=t.next()){G=G.value.rules;if(!G)break;G=_.J(G);for(G=G.next();!G.done;G=G.next())return _.Y(G.value,_.j24)}};
TnR=function(X){if(X){X=_.J(e8R(X));for(var t=X.next();!t.done;t=X.next()){t=t.value.rules;if(!t)break;t=_.J(t);for(t=t.next();!t.done;t=t.next())return _.Y(t.value,F6H)}}};
Yaq=function(X){if(X){X=_.J(e8R(X));for(var t=X.next();!t.done;t=X.next()){t=t.value.rules;if(!t)break;t=_.J(t);for(t=t.next();!t.done;t=t.next())return _.Y(t.value,Afa)}}};
s2R=function(X){X=/^https?:\/\//.test(X)?X:"http://"+X;try{var t=_.tW(X)}catch(G){return!1}if(t.toString()!==X)return!1;X=t.JSC$9962_domain_.split(".");return X.length>1&&X.every(function(G){return!!G})};
Dda=function(X,t,G,y){var w;y=(w=y.structuredContextNoteData)==null?void 0:w.createCommentEndpoint;if(w=_.Y(y,_.iez))return w.commentText=_.Vl(X),w.videoPositionMention=t,w.sources=G,y};
Sav=function(X){return X==null?void 0:X.stringValue};
ZYN=function(X,t,G){X=X.map(function(y,w){return{listItemViewModel:{title:y.title,subtitle:y.subtitle,leadingImage:y.leadingImage,trailingImage:w===t?h8v:void 0,rendererContext:{commandContext:{onTap:y.onTap}}}}});
return Object.assign({},G&&{header:{panelHeaderViewModel:{title:G}}},{content:{listViewModel:{listItems:X}}})};
qaq=function(X,t){if(X&&t)switch(t){case "SELECTION_TYPE_BOOL":return X.boolValue;case "SELECTION_TYPE_INT":return X.intValue;case "SELECTION_TYPE_STRING":return X.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return X.privacyStatusValue}};
Cv2=function(X){var t;X=(t=X.options)==null?void 0:t.findIndex(function(G){return G.isSelected});
return X===void 0?-1:X};
K6H=function(X,t,G){var y=function(){return X().label},w={},z=_.cl("ytDropdownViewModelLabel",(w.ytDropdownViewModelLabelError=t,w));
return _.k(_.d,{cond:function(){return X().label&&!(G()===-1&&X().label&&!X().placeholderText)},
then:function(){return _.k("div",{class:z},_.k(_.eh,{text:y}))}})};
OYB=function(X,t){var G={};G=_.cl("ytDropdownViewModelTitle",(G.ytDropdownViewModelTitlePlaceholder=function(){return t()===-1},G));
return _.k("div",{class:G},_.k(_.eh,{text:function(){var y=X();var w=t();if(w===-1)y=y.placeholderText?y.placeholderText:y.label;else{var z,B;y=(z=y.options)==null?void 0:(B=z[w])==null?void 0:B.title}return y}}))};
uJi=function(X,t){var G=function(){return X().hint};
return _.k(_.gn,null,_.k(_.d,{cond:function(){return G()&&!t()},
then:function(){return _.k("div",{class:_.cl("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.k(_.eh,{text:G,className:"ytDropdownViewModelSupportText"}))}}),_.k(_.d,{cond:t,
then:function(){return _.k("div",{id:"dropdown-view-model-error",role:"alert",class:_.cl("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.k(_.mw,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.k(_.eh,{text:t,className:"ytDropdownViewModelSupportText"}))}}))};
Q2Q=function(X,t){var G=_.gw().resolve(_.H_q);_.LY(function(){var y=X().id;y&&G!=null&&G.dropdownMap.set(y,t)})};
W6T=function(X){X=_.Y(X.scheduleButton,I1Q);X=_.Y(X==null?void 0:X.primaryButton,_.vk);X=_.Y(X==null?void 0:X.onTap,_.yL);var t,G,y=((G=_.Y(X,_.Cq))==null?void 0:G.commands)||[X];G=_.J(y);for(X=G.next();!X.done&&!(t=_.Y(X.value,_.vCt));X=G.next());var w;t=(w=t)==null?void 0:w.createBroadcastRequest;if(!t)throw Error("Lj");return t};
NnQ=function(X,t,G){G=G===void 0?{}:G;var y,w;return _.n(function(z){if(y=cfN(t))return z.return(y);(w=p0r(X,t,G))&&rf2(t,w);return z.return(w)})};
rf2=function(X,t){var G=Pvv(X);G&&t.then(function(y){_.gw().resolve(_.Zz).put(G,new _.qE({innertubeResponse:y}))})};
cfN=function(X){if(X=Pvv(X)){var t=_.gw().resolve(_.Zz);if(t.has(X))return t.get(X).then(function(G){return G==null?void 0:_.Yl(G)})}return null};
Pvv=function(X){var t=_.Y(X.endpoint,_.nq);if(t!=null&&t.videoId)return t={videoId:t.videoId},_.A("web_imp_player_mute_params")&&(t.mutedAtStart=X.startPlaybackInMutedState),_.BP("inline_playback",t)};
p0r=function(X,t,G){X=_.kW(X,t.endpoint,ESB(t,G)).then(function(y){return y});
return Promise.resolve(X)};
ESB=function(X,t){t=_.A("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!X.startPlaybackInMutedState},t):Object.assign({},{vis:5,autonav:"1"},t);var G;t={contentPlaybackContext:_.Rc(t,(G=_.Y(X.endpoint.commandMetadata,_.jQ))==null?void 0:G.url,window.location.href)};_.A("web_imp_player_mute_params")&&(t.overrideMutedAtStart=!X.startPlaybackInMutedState);return t};
iY4=function(X,t){var G=window.MutationObserver;G&&(QU=new G(function(y,w){y=_.J(y);for(var z=y.next();!z.done;z=y.next()){z=z.value;var B;if(B=z.type==="childList"&&z.target)a:{B=X;z=UdN(z.target);B=UdN(B);for(var V=null,b=0;b<z.length;b++)if(B.includes(z[b])){if(b===0){B=!1;break a}V=z[b];break}V?(z=mdR(z,V),B=mdR(B,V),B=z<B):B=!1}if(B){t();w.disconnect();break}}}),(G=R8N())&&QU.observe(G,{childList:!0,
subtree:!0}))};
R8N=function(){var X=document.getElementsByTagName("ytd-rich-grid-renderer");if(X.length>0)return X[0];X=document.getElementsByTagName("ytd-section-list-renderer");return X.length>0?X[0]:null};
UdN=function(X){for(var t=[];X;)t.push(X),X=X.parentElement;return t};
mdR=function(X,t){var G=Array.from(t.children);t=X.indexOf(t);return t>0?G.indexOf(X[t-1]):-1};
IG=function(X,t,G){G=G===void 0?{}:G;return _.Qf(X,G,t)};
L6v=function(X){switch(X){case "MUSIC":return!0;default:return!1}};
vST=function(X){return X==null?void 0:X.filter(function(t){return t.premiereTrailerBadgeRenderer})};
l1V=function(X){var t,G=X==null?void 0:(t=X.find(function(F){return F.thumbnailOverlayTimeStatusRenderer}))==null?void 0:t.thumbnailOverlayTimeStatusRenderer,y,w;
if((G==null?0:(y=G.icon)==null?0:y.iconType)&&L6v(G==null?void 0:(w=G.icon)==null?void 0:w.iconType)){var z;return{icon:G==null?void 0:(z=G.icon)==null?void 0:z.iconType}}var B,V;var b=(X=(B=X==null?void 0:(b=X.find(function(F){return F.thumbnailBottomOverlayViewModel}))==null?void 0:b.thumbnailBottomOverlayViewModel)==null?void 0:(V=B.badges)==null?void 0:V.find(function(F){var T,D;
return((T=_.Y(F,a1q))==null?void 0:(D=T.inlinePlaybackBadgeData)==null?void 0:D.replicateAsTimestamp)===!0}))?_.Y(X,a1q):void 0;
if(b==null?0:b.icon){var e,g;if((b=(e=_.$UG(b==null?void 0:b.icon))==null?void 0:(g=e.clientResource)==null?void 0:g.imageName)&&L6v(b))return{icon:b}}return{}};
tHH=function(X,t){var G=xdH,y=_.J(_.sm(f1a(new Mgv(function(){},G,t)),void 0,"PAnyd")),w=y.next().value,z=y.next().value,B=new Mgv(function(V){z(V)},G,t);
_.Em(function(){Promise.resolve().then(function(){var V,b=(V=X())!=null?V:{};B.playerControlsData=b;_.A("player_controls_skip_double_signal_old")&&(B.lastSeenPlayerApi=_.tw(b.playerApi));_.A("player_controls_skip_double_signal_old")||(B.lastSeenPlayerApi=_.tw(b.playerApi));XxT(B)});
_.Um(function(){$JQ(B)})},"HikUP");
_.Um(function(){$JQ(B)});
return function(){return w()}};
GAa=function(X){return function(t){var G=X(),y={playerState:t};if(t===1){var w;(w=G.playerApi)==null||w.loadModule("captions")}if(t===0){var z;(z=G.playerApi)==null||z.unloadModule("captions")}(t!==-1||_.A("web_imp_controls_set_player_state_killswitch"))&&G.setState(y)}};
ytH=function(X){return function(t){X().setState({playbackRate:t})}};
wx4=function(X){return function(t){var G=X(),y=G.playerApi,w=y==null?void 0:y.getVideoData(),z=(w==null?void 0:w.isLive)||!1;w=w==null?void 0:w.video_id;z={videoDuration:qmB(y||void 0),isLive:z,videoId:w};z.videoId!==G.videoId&&(z=Object.assign({},_.TLh(y),z));if(t==null?0:t.playertype)z.playerType=t.playertype;if(y){z.captionsAvailable=_.Ho(y);t=z;var B;w=(B=y.getStoryboardLevel(y.getNumberOfStoryboardLevels()-1))==null?void 0:B.intervalMs;t.storyboardInterval=w?w/1E3:void 0;z.captionsAvailable&&
(z.captionsEnabled=_.WWi(y))}z.volumeMuted=!(y==null||!y.isMuted());G.setState(z)}};
zZB=function(X){return function(t){var G=X(),y=G.playerApi;if(y){var w=y.getPresentingPlayerType();t={playedTime:t||0,percentLoaded:y.getVideoLoadedFraction(),playerType:w};G.playerState===0&&(t.playedTime=G.videoDuration);G.isLive&&(w=y.getProgressState(w),t.playedTime-=w.seekableStart,t.videoDuration=qmB(y));if(G.playerType===1)y=!1;else{var z;if((z=G.uxConfig)==null?0:z.showCuedOverlay){var B;y=!((B=G.playerApi)==null?0:B.getPlayerStateObject(G.playerType).isDomPaused)}else y=!0}y&&delete t.playedTime;
G.setState(t)}}};
HsH=function(X){return function(){var t=X(),G,y,w,z={volume:(w=(G=t.playerApi)==null?void 0:G.getVolume())!=null?w:0,volumeMuted:!((y=t.playerApi)==null||!y.isMuted())};t.setState(z)}};
oxH=function(X){return function(){var t=X(),G=t.playerApi;if(G){var y={captionsAvailable:_.Ho(G)};y.captionsAvailable&&(y.captionsEnabled=_.WWi(G));t.setState(y)}}};
JtB=function(X){return function(){var t=X();if(t.playerApi&&!(t.volumeMuted||t.controlsVisible&&t.isProbablyAScreenreaderUser)){t.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var G;(G=document.querySelector(".player-control-play-pause-icon"))==null||G.focus()}}};
BwN=function(X){return{appApi:Object.assign({},_.b7w(),{showCaptionsToggleToast:function(t){var G,y;(y=(G=X()).showCaptionsToggleToast)==null||y.call(G,t)},
openInMiniplayer:function(){var t,G;(G=(t=X()).openInMiniplayer)==null||G.call(t)}})}};
nxR=function(X,t){var G,y,w;return!!(X==null?0:(G=X.playerResponse)==null?0:(y=G.playerConfig)==null?0:(w=y.inlinePlaybackConfig)==null?0:w.showScrubbingControls)&&!(t==null?0:t.hideScrubbingControls)};
_.VH2=function(X){var t=!X.miniplayerIsActive;return[5,2,0].includes(X.miniplayerPlaybackState)||t};
bsT={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};kAi=function(X,t){var G,y,w,z,B;_.n(function(V){if(!t.length)return V.return([]);G=[];y=_.J(t);for(w=y.next();!w.done;w=y.next())z=w.value,(B=X.resolveIcon(z))&&!X.iconCache[B.url]&&G.push(_.SRT(X,B).then(function(){}).catch(function(){}));
return V.return(Promise.all(G))})};
dJq=function(X,t){var G=[];t=(new Set(t)).values();t=_.J(t);for(var y=t.next();!y.done;y=t.next()){y=y.value;for(var w=_.J(Object.values(bsT)),z=w.next();!z.done;z=w.next())G.push({iconName:y,iconStyle:z.value})}kAi(X.iconManager,G)};
_.eZT=function(X,t,G){var y=G!=null?G:X.iconsToFetch;y!=null&&y.length?t!==void 0&&t>=0?_.PO(_.vz,function(){dJq(X,y)},t):dJq(X,y):Promise.resolve()};
Mgv=function(X,t,G){var y=this;this.renderFn=X;this.listeners=t;this.context=G;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var w;this.lastSeenPlayerApi=_.tw((w=this.playerControlsData)==null?void 0:w.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.TLh(),void 0);_.A("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){f1a(y).setState({playerState:-1});y.resetRecentlyNavigatedJobId&&_.vz.cancelJob(y.resetRecentlyNavigatedJobId);
y.recentlyNavigated=!0;y.resetRecentlyNavigatedJobId=_.vz.addJob(function(){y.recentlyNavigated=!1},8,1E4)})};
Mgv.prototype.setState=function(X){if(!_.A("mweb_player_skip_no_op_state_changes")||!CmR(X,this.state))if(this.state=Object.assign({},this.state,X),!_.A("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)X=-1,_.A("player_controls_log_creation_killswitch")||K$B()||(X=(0,_.gl)()),_.ls("pcu_s"),_.ls("pcu_se"),_.ls("pcu_rs"),this.renderFn(f1a(this)),_.ls("pcu_re"),OtR(X),_.vz.addJob(function(){_.ls("pcu_ap")},8)};
var f1a=function(X){var t;var G=_.tw((t=X.playerControlsData)==null?void 0:t.playerApi);return Object.assign({},X.state,{setState:X.boundSetState,domMeasurements:{progressBarLineRect:X.progressBarLineRect},playerApi:G,appApi:X.context.appApi,playerContainer:X.context.playerContainer,playerControlContainer:X.context.playerControlContainer,uxConfig:X.context.uxConfig})},XxT=function(X){X.listeners.forEach(function(t){X.eventListenerCleanupFunctions.push(t.register(function(){return f1a(X)},function(){return X.getData()}))})},
$JQ=function(X){X.eventListenerCleanupFunctions.forEach(function(t){t()});
X.eventListenerCleanupFunctions.length=0};
Mgv.prototype.getData=function(){return this.playerControlsData};var Wo=new _.ja("abuseReportFlowState");var jua=new _.ja("feedbackFormFlowState");var gxT=new _.ja("inputBoxViewModel");var FUB=new _.ja("flowNextStepCommand");var TwR=new _.ja("flowPrevStepCommand");var Atv=new _.ja("updateFlowCommand");_.YcH=new _.ja("flowStepRenderer");_.j24=new _.ja("lengthValidationRule");var F6H=new _.ja("regexValidationRule");var Afa=new _.ja("selectedValidationRule");var suN=new _.ja("talkToRecsViewModel");var DJR=new _.ja("creatorGoalSetUpFlowDropdownItemViewModel");var ScT=new _.ja("creatorGoalSetUpFlowDropdownViewModel");var a1q=new _.ja("thumbnailBadgeViewModel");_.hZi=new _.ja("radioButtonGroupViewModel");var I1Q=new _.ja("panelFooterViewModel");var Zsi=new _.ja("ypcCancelRecurrenceCommand");var qcq=new _.ja("cancellationFlowState");var yfT=new _.ja("premiumPurchaseFlowState");var CF4=new _.ja("surveyAnswerCardRenderer");var KUN=new _.ja("showMoreButtonRenderer");var OsQ;var u32,QuB=function(){if(u32!==void 0)return u32;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;OsQ===void 0&&(OsQ=document.createElement("template"));var y=OsQ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return u32=X};var co=function(){var X=_.O.apply(this,arguments)||this;X.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";X.goalDescription="";X.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";X.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";X.startButtonId="start-button";X.exampleButtonId="example-button";return X};
_.S(co,_.O);_.H=co.prototype;_.H.getGoalDropdownItems=function(){var X,t;return(t=_.Y((X=this.data)==null?void 0:X.purchaseTargetDropdown,ScT))==null?void 0:t.dropdownItems};
_.H.getTimerDropdownItems=function(){var X,t;return(t=_.Y((X=this.data)==null?void 0:X.timerDropdown,ScT))==null?void 0:t.dropdownItems};
_.H.getColorDropdownItems=function(){var X,t;return(t=_.Y((X=this.data)==null?void 0:X.colorDropdown,ScT))==null?void 0:t.dropdownItems};
_.H.getDropdownItemText=function(X){var t;return(t=_.Y(X,DJR))==null?void 0:t.itemLabel};
_.H.getDropdownItemValue=function(X){X=_.Y(X,DJR);return(X==null?void 0:X.timeLimit)||(X==null?void 0:X.purchaseTarget)||(X==null?void 0:X.eligiblePurchaseType)};
_.H.updateFlowState=function(X){_.sl(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:X}])};
_.H.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.H.updateGoalValue=function(X){this.goal=X.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.H.onTextValueChanged=function(X){this.goalDescription=X.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.H.updateTimerValue=function(X){this.timer=X.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.H.updateTierValue=function(X){this.tier=X.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.H.getButtonViewModel=function(X){X=(X==null?void 0:X.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var t,G=_.Y((t=this.data)==null?void 0:t.startGoalButton,_.vk);return Object.assign({},G,{state:X})};
_.ke.Object.defineProperties(co,{template:{configurable:!0,enumerable:!0,get:function(){return QuB()}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],co.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],co.prototype,"goal",void 0);_.E([_.K(),_.U("design:type",Object)],co.prototype,"goalDescription",void 0);_.E([_.K(),_.U("design:type",Object)],co.prototype,"timer",void 0);_.E([_.K(),_.U("design:type",Object)],co.prototype,"tier",void 0);
_.E([_.K(),_.U("design:type",Object)],co.prototype,"startButtonId",void 0);_.E([_.K(),_.U("design:type",Object)],co.prototype,"exampleButtonId",void 0);_.E([_.$F({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],co);_.N(co,"yt-creator-goal-set-up-flow-view-model",function(){return QuB()},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var IuN;var WU4;var ct4;var pxR=function(){return _.O.apply(this,arguments)||this};
_.S(pxR,_.O);_.E([_.K(),_.U("design:type",Object)],pxR.prototype,"data",void 0);_.E([_.$F({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],pxR);
_.N(pxR,"yt-survey-answer-card-renderer",function(){if(ct4===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;WU4===void 0&&(WU4=document.createElement("template"));var y=WU4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ct4=X}X=ct4;return X},{mode:2});var rtq;var NwB;var pK=function(){return _.O.apply(this,arguments)||this};
_.S(pK,_.O);_.H=pK.prototype;_.H.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.H.selectedItemChanged=function(X){_.sl(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[X.feedbackToken||""]}])};
_.H.surveyAnswerCardRendererClicked=function(X){if(X.target&&_.Y(X.model.item,CF4)){var t=X.target;X=_.Y(X.model.item,CF4);X.onTapCommand?_.Z0(t,[X.onTapCommand],t):this.data.onTapCommand&&_.Z0(t,[this.data.onTapCommand],t);this.selectedItemChanged(X)}};
_.H.checkIsCancellationStyle=function(X){return X==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.H.updateSelectedItemFromBinding=function(X){this.selectedItem=X.detail.value};
pK.prototype.onSelectedItemChanged=pK.prototype.onSelectedItemChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],pK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],pK.prototype,"selectedItem",void 0);_.E([_.K({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.U("design:type",Boolean)],pK.prototype,"isCancellationStyle",void 0);
_.E([_.cW("selectedItem"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pK.prototype,"onSelectedItemChanged",null);_.E([_.$F({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],pK);
_.N(pK,"yt-survey-flow-step-renderer",function(){if(NwB===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;rtq===void 0&&(rtq=document.createElement("template"));var y=rtq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);NwB=X}X=NwB;return X},{mode:2});var r4=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return X};
_.S(r4,_.O);r4.prototype.handleSurveyFlowStepOptionChanged=function(X){this.ytdReduxBehavior.dispatch(_.Dl({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:X}));_.sl(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:X}}])};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],r4.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],r4.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],r4.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],r4);
_.N(r4,"ytd-survey-flow-step-renderer",function(){if(IuN!==void 0)return IuN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return IuN=X},{mode:1});var uOV;uOV=_.L5({avatarViewModel:_.al,buttonViewModel:_.QK,subscribeButtonViewModel:_.vV,imageBannerViewModel:_.d94});_.PFH=_.rr(_.IyR);_.FE(_.IyR);var ExQ;var NX=function(){return _.O.apply(this,arguments)||this};
_.S(NX,_.O);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],NX.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],NX.prototype,"data",void 0);_.E([_.p({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],NX);
_.N(NX,"ytd-channel-history-renderer",function(){if(ExQ!==void 0)return ExQ;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ExQ=X},{mode:1});var UJR;var mJr=function(){return _.O.apply(this,arguments)||this};
_.S(mJr,_.O);_.E([_.K(),_.U("design:type",Object)],mJr.prototype,"data",void 0);_.E([_.p({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],mJr);
_.N(mJr,"ytd-feature-enablement-info-renderer",function(){if(UJR!==void 0)return UJR;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return UJR=X},{mode:1});var RZH;var is4;var Po=function(){var X=_.O.apply(this,arguments)||this;X.textBoxMaxLength=_.A("enable_tvod_campaign_code_integration")?15:12;return X};
_.S(Po,_.O);_.H=Po.prototype;_.H.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.H.onSubmit=function(){var X=this.data.serviceEndpoint,t=_.Y(X,_.Yy);t&&X&&(t.couponCode=this.userInput,_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}}))};
_.H.validate=function(){var X=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=X&&!this.data.errorMessage;this.showErrorMessage=X&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.A("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.H.computeStyle=function(X){return X};
_.H.computeShowValidationBelowInput=function(X){return X!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.H.updateUserInputFromBinding=function(X){this.userInput=X.currentTarget.value};
_.H.updateShowErrorMessageFromBinding=function(X){this.showErrorMessage=X.detail.value};
_.ke.Object.defineProperties(Po.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Po.prototype.dataChanged=Po.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Po.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],Po.prototype,"userInput",void 0);_.E([_.K(),_.U("design:type",Boolean)],Po.prototype,"disableApplyButton",void 0);_.E([_.K(),_.U("design:type",Boolean)],Po.prototype,"hideApplyButton",void 0);
_.E([_.K(),_.U("design:type",Boolean)],Po.prototype,"hideErrorMessage",void 0);_.E([_.K(),_.U("design:type",Boolean)],Po.prototype,"showTick",void 0);_.E([_.K(),_.U("design:type",Boolean)],Po.prototype,"showErrorMessage",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.U("design:type",String)],Po.prototype,"couponStyle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.U("design:type",Boolean)],Po.prototype,"showValidationBelowInput",void 0);_.E([_.K(),_.U("design:type",Object)],Po.prototype,"textBoxMaxLength",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Po.prototype,"dataChanged",null);
_.E([_.C("showTick","showErrorMessage","userInput"),_.U("design:type",String),_.U("design:paramtypes",[])],Po.prototype,"validationState",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Po);
_.N(Po,"ytd-ypc-coupon-renderer",function(){if(is4!==void 0)return is4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return is4=X},{mode:1});var Ej=function(){return _.O.apply(this,arguments)||this};
_.S(Ej,_.O);Ej.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"}}}};
Ej.prototype.computeStyle=function(X){return X};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ej.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.U("design:type",String)],Ej.prototype,"buttonStyle",void 0);_.E([_.p({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Ej);
_.N(Ej,"ytd-flow-bottom-bar-renderer",function(){if(RZH!==void 0)return RZH;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return RZH=X},{mode:1});var LUi;var vx2;var auq;var Uj=function(){return _.O.apply(this,arguments)||this};
_.S(Uj,_.O);Uj.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Uj.prototype.focus=function(X){this.title&&_.VG(this.title,X)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Uj.prototype,"data",void 0);_.E([_.rt("#title"),_.U("design:type",HTMLElement)],Uj.prototype,"title",void 0);_.E([_.p({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Uj);
_.N(Uj,"ytd-flow-top-bar-renderer",function(){if(auq!==void 0)return auq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return auq=X},{mode:1});var luH;var xJr;var fuV;var mg=function(){return _.O.apply(this,arguments)||this};
_.S(mg,_.O);mg.prototype.freeTextValueChanged=function(){_.sl(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
mg.prototype.updateFreeTextValueFromBinding=function(X){this.freeTextValue=X.detail.value};
_.ke.Object.defineProperties(mg.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(t=(X=this.data)==null?void 0:X.responseMaxLength)!=null?t:500,y;return((y=this.freeTextValue)!=null?y:"").length>=G?"maxed-out":""}}});
mg.prototype.freeTextValueChanged=mg.prototype.freeTextValueChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mg.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],mg.prototype,"freeTextValue",void 0);_.E([_.rt("#user-input"),_.U("design:type",HTMLTextAreaElement)],mg.prototype,"input",void 0);
_.E([_.C("freeTextValue"),_.U("design:type",Object),_.U("design:paramtypes",[])],mg.prototype,"characterLimitClass",null);_.E([_.cW("freeTextValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],mg.prototype,"freeTextValueChanged",null);_.E([_.$F({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],mg);
_.N(mg,"yt-free-text-input-flow-step-renderer",function(){if(fuV===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;xJr===void 0&&(xJr=document.createElement("template"));var y=xJr;G.call(t,y.content.cloneNode(!0),X.content.firstChild);fuV=X}X=fuV;return X},{mode:2});var RG=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return X};
_.S(RG,_.O);RG.prototype.handleFreeTextFlowStepInputChanged=function(X){_.sl(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:X}}])};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],RG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],RG.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],RG.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],RG);
_.N(RG,"ytd-free-text-input-flow-step-renderer",function(){if(luH!==void 0)return luH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return luH=X},{mode:1});var MH4;var XzH;var $1N=function(){return _.O.apply(this,arguments)||this};
_.S($1N,_.O);_.E([_.K(),_.U("design:type",Object)],$1N.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],$1N);
_.N($1N,"ytd-metadata-line-renderer",function(){if(XzH!==void 0)return XzH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return XzH=X},{mode:1});var iH=function(){return _.O.apply(this,arguments)||this};
_.S(iH,_.O);iH.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iH.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],iH.prototype,"isMasthead",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],iH);
_.N(iH,"ytd-media-product-renderer",function(){if(MH4!==void 0)return MH4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return MH4=X},{mode:1});var tDv;var LK=function(){return _.O.apply(this,arguments)||this};
_.S(LK,_.O);LK.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
LK.prototype.onBillboardImageLoaded=function(){_.Yt(this.hostElement,"yt-refit")};
LK.prototype.onBillboardImageLoaded=LK.prototype.onBillboardImageLoaded;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],LK.prototype,"data",void 0);_.E([_.rt("#billboardImage"),_.U("design:type",Object)],LK.prototype,"billboardImage",void 0);_.E([_.WW("yt-img-shadow-loaded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],LK.prototype,"onBillboardImageLoaded",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],LK);
_.N(LK,"ytd-billboard-masthead-renderer",function(){if(tDv!==void 0)return tDv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return tDv=X},{mode:1});var GxT;var vo=function(){var X=_.O.apply(this,arguments)||this;X.smallSize=!1;return X};
_.S(vo,_.O);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],vo.prototype,"ytComponentBehaviorType",void 0);_.E([_.K(),_.U("design:type",Object)],vo.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vo.prototype,"smallSize",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],vo);
_.N(vo,"ytd-bullet-formatted-string",function(){if(GxT!==void 0)return GxT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return GxT=X},{mode:1});var yGN;var aG=function(){return _.O.apply(this,arguments)||this};
_.S(aG,_.O);aG.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],aG.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],aG);
_.N(aG,"ytd-offer-detail-renderer",function(){if(yGN!==void 0)return yGN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return yGN=X},{mode:1});var wzi;var lH=function(){return _.O.apply(this,arguments)||this};
_.S(lH,_.O);lH.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lH.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],lH);
_.N(lH,"ytd-offer-detail-step-renderer",function(){if(wzi!==void 0)return wzi;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return wzi=X},{mode:1});var zL4;var xR=function(){var X=_.O.apply(this,arguments)||this;X.isInOfferModule=!1;return X};
_.S(xR,_.O);_.H=xR.prototype;_.H.computeHasEndpoint=function(){var X;return!((X=this.data)==null||!X.onClickCommand)};
_.H.dataChanged=function(){var X;if((X=this.data)==null?0:X.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")};
_.H.detached=function(){var X;if((X=this.data)==null?0:X.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.H.handleClickEvent=function(){var X;if((X=this.data)==null?0:X.onClickCommand){var t;this.componentBehavior.resolveCommand((t=this.data)==null?void 0:t.onClickCommand)}};
_.H.onContentKeyDown=function(X){X.key==="Enter"?this.handleClickEvent(X):X.key===" "&&X.preventDefault()};
_.H.onContentKeyUp=function(X){X.key===" "&&this.handleClickEvent(X)};
xR.prototype.dataChanged=xR.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],xR.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xR.prototype,"data",void 0);_.E([_.K({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],xR.prototype,"hasEndpoint",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xR.prototype,"isInOfferModule",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xR.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],xR);
_.N(xR,"ytd-channel-masthead-renderer",function(){if(zL4!==void 0)return zL4;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return zL4=X},{mode:1});var Hba;var fK=function(){var X=_.O.apply(this,arguments)||this;X.thumbnailObjectFit="CONTAIN";X.thumbnailObjectPosition="LEFT";X.isExpanded=!1;return X};
_.S(fK,_.O);_.H=fK.prototype;_.H.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.H.dataChanged=function(){this.resetStates()};
_.H.computeisTapOnOfferInfoContainerEnabled=function(){var X;return((X=this.data)==null?void 0:X.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.H.onExpandBtnClick=function(){var X,t=_.Y((X=this.data)==null?void 0:X.showMoreButtonRenderer,KUN);t&&_.ug(_.Pj(),t.trackingParams);this.isExpanded=!this.isExpanded};
_.H.onOfferInfoClick=function(X){this.isTapOnOfferInfoContainerEnabled&&(_.Fa(_.be(X)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Tz(_.be(X)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.H.onBottomBarClick=function(){this.executeTapCommand()};
_.H.executeTapCommand=function(){var X,t=(X=this.data)==null?void 0:X.tapCommand;t&&this.ytComponentBehavior.resolveCommand(t)};
_.H.resetStates=function(){this.isExpanded=!1};
_.ke.Object.defineProperties(fK.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var X=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),t,G,y;return((t=this.data)==null?void 0:t.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&X&&!!((G=this.data)==null?0:(y=G.benefits)==null?0:y.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((t=_.Y((X=this.data)==null?void 0:X.showMoreButtonRenderer,KUN))==null?void 0:t.showMoreButtonTitle)||((G=this.data)==null?void 0:G.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((t=_.Y((X=this.data)==null?void 0:X.showMoreButtonRenderer,KUN))==null?void 0:t.showLessButtonTitle)||((G=this.data)==null?void 0:G.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var X;return(X=this.showLessButtonTitle)!=null?X:""}var t;return(t=this.showMoreButtonTitle)!=null?t:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.data)==null?void 0:X.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((t=this.data)==null?0:t.footerTitle)||((G=this.data)==null?0:G.footerSubtitle))}}});
fK.prototype.dataChanged=fK.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],fK.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",String)],fK.prototype,"thumbnailObjectFit",void 0);
_.E([_.K(),_.U("design:type",String)],fK.prototype,"thumbnailObjectPosition",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.U("design:type",Boolean)],fK.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.E([_.K(),_.U("design:type",Object)],fK.prototype,"isExpanded",void 0);_.E([_.K(),_.U("design:type",Object)],fK.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.footerIcon)"}),_.U("design:type",String)],fK.prototype,"icon",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fK.prototype,"dataChanged",null);_.E([_.C("data.thumbnail"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fK.prototype,"hasThumbnail",null);_.E([_.C("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fK.prototype,"enableExpandButton",null);
_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fK.prototype,"enableOfferContentIcon",null);_.E([_.C("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.U("design:type",Object),_.U("design:paramtypes",[])],fK.prototype,"showMoreButtonTitle",null);_.E([_.C("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.U("design:type",Object),_.U("design:paramtypes",[])],fK.prototype,"showLessButtonTitle",null);
_.E([_.C("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.U("design:type",String),_.U("design:paramtypes",[])],fK.prototype,"expandedBtnText",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],fK.prototype,"enableBottomBar",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],fK);
_.N(fK,"ytd-offer-card-renderer",function(){if(Hba!==void 0)return Hba;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Hba=X},{mode:1});var o7H;var MX=function(){return _.O.apply(this,arguments)||this};
_.S(MX,_.O);MX.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"}}}};
MX.prototype.onClick=function(X){if(!_.Fa(X.composedPath()||[],this.hostElement,["A".toString()])){var t,G;if((X=(G=_.Y((t=this.data)==null?void 0:t.actionButton,_.G4))==null?void 0:G.command)&&!this.ytComponentBehavior.resolveCommand(X)){var y;(y=_.Pj())==null||y.clickCommand(X);_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}})}}};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],MX.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],MX.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],MX);
_.N(MX,"ytd-offer-content-renderer",function(){if(o7H!==void 0)return o7H;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return o7H=X},{mode:1});var JG2;var Xd=function(){return _.O.apply(this,arguments)||this};
_.S(Xd,_.O);Xd.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.ke.Object.defineProperties(Xd.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null||!X.title)||!((t=this.data)==null||!t.description)}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Xd.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Xd.prototype,"hasHeaderData",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Xd);
_.N(Xd,"ytd-offer-section-renderer",function(){if(JG2!==void 0)return JG2;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return JG2=X},{mode:1});var BlH;var $L=function(){return _.O.apply(this,arguments)||this};
_.S($L,_.O);
$L.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"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$L.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],$L);
_.N($L,"ytd-offer-selection-step-renderer",function(){if(BlH!==void 0)return BlH;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return BlH=X},{mode:1});var n7a;var tu=function(){return _.O.apply(this,arguments)||this};
_.S(tu,_.O);tu.prototype.computeStyle=function(X){return X};
tu.prototype.computeImageWidth=function(X){return X==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.E([_.K({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.U("design:type",String)],tu.prototype,"containerStyle",void 0);_.E([_.K({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.U("design:type",String)],tu.prototype,"imageWidth",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],tu.prototype,"data",void 0);
_.E([_.p({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],tu);
_.N(tu,"ytd-confirmation-masthead-renderer",function(){if(n7a!==void 0)return n7a;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return n7a=X},{mode:1});var VDv;var G3=function(){return _.O.apply(this,arguments)||this};
_.S(G3,_.O);G3.prototype.computeStyle=function(X){return X};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],G3.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.U("design:type",String)],G3.prototype,"containerStyle",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],G3);
_.N(G3,"ytd-purchase-complete-detail-renderer",function(){if(VDv!==void 0)return VDv;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return VDv=X},{mode:1});var bb4;var yP=function(){var X=_.O.apply(this,arguments)||this;X.scriptsAppended=!1;return X};
_.S(yP,_.O);yP.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"}}}};
yP.prototype.onDataChanged=function(){var X=this.get("data.gtmId");X&&(_.vN(X,_.Md("GL","")),this.setupConversionTracking())};
yP.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var X=document.createElement("noscript");X.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(X);this.scriptsAppended=!0}};
yP.prototype.onDataChanged=yP.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],yP.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],yP.prototype,"scriptsAppended",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yP.prototype,"onDataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],yP);
_.N(yP,"ytd-purchase-complete-step-renderer",function(){if(bb4!==void 0)return bb4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return bb4=X},{mode:1});var kxH;var wm=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(wm,_.O);wm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],wm.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],wm.prototype,"darkerDarkTheme",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],wm);
_.N(wm,"ytd-ypc-transaction-error-message-renderer",function(){if(kxH!==void 0)return kxH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return kxH=X},{mode:1});var d1V;var eLH;var z3=function(){var X=_.O.apply(this,arguments)||this;X.handlePhoneVerificationSuccess=function(t){if(X.isValidPhoneVerificationCompletionMessageEvent(t)){var G;((G=X.data)==null?0:G.nextStepCommand)&&X.ytComponentBehavior.resolveCommand(X.data.nextStepCommand)}};
return X};
_.S(z3,_.O);z3.prototype.isValidPhoneVerificationCompletionMessageEvent=function(X){if(X.data!=="yt-phone-verification-complete")return!1;X=_.bF(X.origin);return X!==null&&X.includes("youtube.com")};
z3.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
z3.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],z3.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],z3.prototype,"data",void 0);_.E([_.$F({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],z3);
_.N(z3,"yt-feature-enablement-soft-entry-renderer",function(){if(eLH===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;d1V===void 0&&(d1V=document.createElement("template"));var y=d1V;G.call(t,y.content.cloneNode(!0),X.content.firstChild);eLH=X}X=eLH;return X},{mode:1});var jS4;var g72;var FG2;var TlQ;var AGH=function(){return _.O.apply(this,arguments)||this};
_.S(AGH,_.O);_.E([_.K(),_.U("design:type",Object)],AGH.prototype,"data",void 0);_.E([_.$F({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],AGH);
_.N(AGH,"yt-benefits-item-renderer",function(){if(TlQ===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;FG2===void 0&&(FG2=document.createElement("template"));var y=FG2;G.call(t,y.content.cloneNode(!0),X.content.firstChild);TlQ=X}X=TlQ;return X},{mode:2});var Yri;var sSR;var HR=function(){return _.O.apply(this,arguments)||this};
_.S(HR,_.O);HR.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
HR.prototype.computeisWithoutPadding=function(){var X;return((X=this.data)==null?void 0:X.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],HR.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.U("design:type",Boolean)],HR.prototype,"isWithoutPadding",void 0);_.E([_.$F({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],HR);
_.N(HR,"yt-benefits-section-renderer",function(){if(sSR===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Yri===void 0&&(Yri=document.createElement("template"));var y=Yri;G.call(t,y.content.cloneNode(!0),X.content.firstChild);sSR=X}X=sSR;return X},{mode:2});var oW=function(){return _.O.apply(this,arguments)||this};
_.S(oW,_.O);oW.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
oW.prototype.computeisUsingLargeWidth=function(){var X;return((X=this.data)==null?void 0:X.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],oW.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.U("design:type",Boolean)],oW.prototype,"isUsingLargeWidth",void 0);_.E([_.$F({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],oW);
_.N(oW,"yt-benefits-flow-step-renderer",function(){if(g72===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;jS4===void 0&&(jS4=document.createElement("template"));var y=jS4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);g72=X}X=g72;return X},{mode:2});var D1T;var Sra;var Ju=function(){return _.O.apply(this,arguments)||this};
_.S(Ju,_.O);Ju.prototype.checkIsUsingLargeWidth=function(){var X;return((X=this.data)==null?void 0:X.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.K(),_.U("design:type",Object)],Ju.prototype,"data",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.E([_.K({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.U("design:type",Boolean)],Ju.prototype,"isUsingLargeWidth",void 0);_.E([_.$F({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ju);
_.N(Ju,"yt-confirmation-flow-step-renderer",function(){if(Sra===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;D1T===void 0&&(D1T=document.createElement("template"));var y=D1T;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Sra=X}X=Sra;return X},{mode:2});var hL4;var ZbH;var qrR=function(){return _.O.apply(this,arguments)||this};
_.S(qrR,_.O);_.E([_.K(),_.U("design:type",Object)],qrR.prototype,"data",void 0);_.E([_.$F({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],qrR);
_.N(qrR,"yt-info-flow-step-renderer",function(){if(ZbH===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;hL4===void 0&&(hL4=document.createElement("template"));var y=hL4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ZbH=X}X=ZbH;return X},{mode:2});var CtB;var KGT;var ObH=function(){return _.O.apply(this,arguments)||this};
_.S(ObH,_.O);_.E([_.K(),_.U("design:type",Object)],ObH.prototype,"data",void 0);_.E([_.$F({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],ObH);
_.N(ObH,"yt-info-list-flow-step-renderer",function(){if(KGT===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;CtB===void 0&&(CtB=document.createElement("template"));var y=CtB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);KGT=X}X=KGT;return X},{mode:2});var ulN=_.Fp(function(X){var t=X.data;return _.k("styled-text-view-model",{class:_.cl("ytStyledTextViewModelHost",function(){return vHr(t().fontAttributes)},function(){return L$V(t().color)})},_.k(_.eh,{text:function(){return t().text},
ariaLabel:function(){var G,y,w;return(w=(G=t().accessibility)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label)!=null?w:""}}))},"of");
ulN.idomCompat=!0;var QS2=_.Fp(function(X){var t=function(){var w,z,B,V;return(V=(B=(w=X.alt)==null?void 0:w.call(X))!=null?B:(z=X.data().accessibilityData)==null?void 0:z.label)!=null?V:""},G=function(){return X.data().imageWidth},y=function(){return X.data().imageHeight};
return _.k("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.k(_.d,{cond:function(){var w=X.data();if(w){var z,B,V;var b=((z=_.gw().resolve(_.jH(_.kI)))==null?0:z())?(B=w.imageDark)!=null?B:w.imageLight:(V=w.imageLight)!=null?V:w.imageDark}else b=void 0;return b},
then:function(w){return _.k(_.gr,Object.assign({},X,{data:w,alt:t,targetWidth:G,targetHeight:y,preserveHeight:!0,preserveWidth:!0}))}}))},"pf");
QS2.idomCompat=!0;var BR=_.Fp(function(X){var t=X.data;X=_.ex(function(){return t().slots},[]);
var G=_.ex(function(){return t().layoutProperties},{}),y=_.gw().resolve(_.e_);
return _.k("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:EHH(G,y)},_.k(_.pY,{each:X,keyBy:"INDEX"},function(w){return _.k("div",{class:"ytContainerLayoutViewModelSlot",style:EHH(function(){return w().layoutProperties},y)},_.k(_.M7,{data:function(){return w().contents}},{containerLayoutViewModel:BR,
badgeViewModel:_.YM,buttonViewModel:_.QK,styledTextViewModel:ulN,contentPreviewImageViewModel:function(z){return _.k(_.sY,{data:z.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(z){return _.k(QS2,{data:z.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qf");
BR.idomCompat=!0;var INa=_.Fp(function(X){var t=X.data;var G=X.stateFns;var y=function(){var e=t(),g=e.productId;return!(!e.clearGroupId&&!g)},w=function(){var e=t(),g=e.clearGroupId;
return(e=e.productId)?G().isProductSelected(e):g?G().getSelectedProductByGroupId(g)==null:!1},z=function(){var e=t(),g=e.clearGroupId;
if(e=e.productId)G().onProductSelected(e);else if(g)G().onClearGroupSelected(g)},B=function(){var e=t(),g=e.clearGroupId;
if(e=e.productId){var F;return"group:"+(((F=G().getProductById(e))==null?void 0:F.groupId)||"")}return g?"group:"+g:""},V=_.ex(function(){return t().header},[]),b=_.ex(function(){return t().body},[]);
return _.k("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.k(_.d,{cond:function(){return V().length>0||y()},
then:function(){return _.k("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.k("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.k(_.M7,{data:V},{containerLayoutViewModel:function(e){return _.k("div",{class:"ytPdpCardSectionViewModelContentItem"},_.k(BR,{data:e.data}))},
styledTextViewModel:function(e){return _.k("div",{class:"ytPdpCardSectionViewModelContentItem"},_.k(ulN,{data:e.data}))}})),_.k(_.d,{cond:y,
then:function(){return _.k("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.k(_.f0,{checked:w,name:B,onChange:z}))}}))}}),_.k(_.d,{cond:function(){return b().length>0},
then:function(){return _.k("div",null,_.k(_.M7,{data:b},{containerLayoutViewModel:function(e){return _.k("div",{class:"ytPdpCardSectionViewModelContentItem"},_.k(BR,{data:e.data}))}}))}}))},"rf");
INa.idomCompat=!0;var WGQ=_.Fp(function(X){var t=X.data;var G=X.stateFns;return _.k("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.k(_.d,{cond:function(){return t().banner},
then:function(y){return _.k("div",{class:"ytPdpCardViewModelBanner"},_.k(_.eh,{text:y}))}}),_.k(_.M7,{data:function(){return t().sections}},{pdpCardSectionViewModel:function(y){y=y.data;
var w={};return _.k("div",{class:_.cl("ytPdpCardViewModelSectionContainer",(w.ytPdpCardViewModelShowDividers=function(){return t().showDividers},w))},_.k(INa,{data:y,
stateFns:G}))}}))},"sf");
WGQ.idomCompat=!0;var cGv=_.Fp(function(X){var t=X.data;var G=X.isOverlay;X={};return _.k("pdp-masthead-view-model",{class:_.cl("ytPdpMastheadViewModelHost",(X.ytPdpMastheadViewModelIsOverlay=G,X))},_.k(_.M7,{data:function(){return t().image}},{contentPreviewImageViewModel:_.sY,
themedImageViewModel:function(y){return _.k(QS2,{data:y.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.k(_.d,{cond:function(){return t().title},
then:function(y){return _.k("h1",{class:"ytPdpMastheadViewModelHeading"},_.k(_.eh,{text:y,isOverlay:G}))}}),_.k(_.pY,{each:function(){var y;
return(y=t().finePrint)!=null?y:[]}},function(y){return _.k("div",{class:"ytPdpMastheadViewModelFinePrint"},_.k(_.eh,{text:y,
isOverlay:G}))}))},"tf");
cGv.idomCompat=!0;var pzH=_.Fp(function(X){var t=X.data;var G=X.stateFns;var y=function(){return"pdp-pricing-group-selector-"+t().pricingGroupAttributeIds},w=_.ex(function(){return t().pricingGroupSelectorSectionHeader});
return _.k("pdp-pricing-group-selector-view-model",null,_.k(_.d,{cond:function(){return!!w()},
then:function(){return _.k(_.M7,{data:w},{sectionHeaderViewModel:function(z){z=z.data;var B={};return _.k("div",{class:_.cl("ytPdpPricingGroupSelectorViewModelSectionHeader",(B.ytPdpPricingGroupSelectorViewModelFullBleed=!0,B.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,B))},_.k(_.C0,{data:z}))}})}}),_.k("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.k(_.pY,{each:function(){var z=G().getSelectedProductByGroupId(t().groupId);
if(!z)return _.fh(Error("Jj`"+t().groupId)),[];var B,V=(B=t().pricingGroupAttributeIds)!=null?B:[],b;if((b=z.pricingGroups)==null||!b.length||!V.length)return[];B=z.pricingGroups.filter(function(T){return V.length?T.pricingGroupAttributes.every(function(D){return V.includes(D)}):!1});
z=[];if(V.length>0){B=[].concat(_.RY(B));b=_.J(V);for(var e=b.next(),g={};!e.done;g={targetAttrId:void 0},e=b.next())g.targetAttrId=e.value,e=B.findIndex(function(T){return function(D){return D.pricingGroupAttributes.includes(T.targetAttrId)}}(g)),e!==-1&&(z.push(B[e]),B.splice(e,1))}var F=G().getSelectedPricingGroupAttributesByGroupId(t().groupId);
return z.map(function(T){var D=!1;F&&T.pricingGroupAttributes&&(D=uH(T.pricingGroupAttributes,F));return{pricingGroup:T,isSelected:D}})},
keyBy:function(z){return z.pricingGroup.pricingGroupId}},function(z){return _.k("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.k("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.k(_.M7,{data:function(){return z().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:BR})),_.k("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.k(_.f0,{checked:function(){return z().isSelected},
name:y,onClick:function(){G().onPricingGroupSelected(z().pricingGroup.pricingGroupId)}})))})))},"uf");
pzH.idomCompat=!0;var rGV=_.Fp(function(X){var t=X.data;var G=X.stateFns;var y=function(){var B=G().getSelectedPricingOptions().map(function(e){return e.pricingOptionId}),V=G().getSelectedProductByGroupId(t().groupId);
if(!V)return _.fh(Error("Kj`"+t().groupId)),[];var b=G().getSelectedPricingGroupAttributesByGroupId(t().groupId);return fyq(V.pricingOptions,b,B)},w=_.ex(function(){return t().pricingOptionSelectorSectionHeader}),z=function(){return y().length>1};
return _.k("pdp-pricing-option-selector-view-model",null,_.k(_.d,{cond:function(){return!!w()&&z()},
then:function(){return _.k(_.M7,{data:w},{sectionHeaderViewModel:function(B){B=B.data;var V={};return _.k("div",{class:_.cl("ytPdpPricingOptionSelectorViewModelSectionHeader",(V.ytPdpPricingOptionSelectorViewModelFullBleed=!0,V.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,V))},_.k(_.C0,{data:B}))}})}}),_.k(_.d,{cond:z,
then:function(){return _.k("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.k(_.pY,{each:y,keyBy:"INDEX"},function(B){return _.k("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.k("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.k(_.M7,{data:function(){return B().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:BR})),_.k("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.k(_.f0,{checked:function(){return B().isSelected},
onClick:function(){G().onPricingOptionSelected(B().pricingOption.pricingOptionId);var V=B().pricingOption.onSelectPricingOption;if(V=_.wr(V)){var b;(b=_.gw().resolve(_.F3))==null||b.resolveCommand(V)}}})))}))}}))},"vf");
rGV.idomCompat=!0;var NlH=_.Fp(function(X){var t=X.data;var G=X.stateFns;return _.k("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.k(_.M7,{data:function(){var y,w;return(w=(y=G().getSelectedPricingOptions()[0])==null?void 0:y.primaryButton)!=null?w:t().emptyStateButton}},{buttonViewModel:_.QK}))},"wf");
NlH.idomCompat=!0;var Pta=_.Fp(function(X){var t=X.stateFns;return _.k("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.k(_.M7,{data:function(){return t().getSelectedPricingOptions().flatMap(function(G){return G.summaryLines}).filter(function(G){return!!G})}},{containerLayoutViewModel:function(G){return _.k("div",{class:"ytPdpSummaryViewModelLineItem"},_.k(BR,{data:G.data}))}}))},"xf");
Pta.idomCompat=!0;var E7N=_.Fp(function(X){function t(W){var c=B();_.dX(_.Xc("pdpStateEntity",c,{key:c,selectedPricingOptions:W}))}
var G=X.data;var y=X.internalScrolling;var w=X.stateFnsForTesting;var z=_.ex(function(){return G().allProducts},[]),B=_.ex(function(){return G().pdpStateEntityKey},""),V=_.Pk(M0H,B),b=_.qt(function(){_.R5(!0);
var W;return(W=w==null?void 0:w())!=null?W:$dV(V,z,t)},void 0,"pjJzrd"),e=_.ex(function(){return G().body},[]),g=_.ex(function(){return G().columnBreakHints},[]),F=function(){return G().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},T=function(){return F()||G().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},D=_.qt(function(){var W=_.b7(G().background),c;
if(W==null?0:(c=W.sources)==null?0:c.length){var P=P===void 0?!0:P;W=_.ycJ(void 0,W.sources,void 0,P,P?1E3:void 0,P?void 0:1E3)}else W=null;return W},void 0,"GO4GAe");
X=_.Ud({"--pdp-view-model-background":function(){return D()?"url("+D()+")":void 0}});
var h={};y=_.cl("ytPdpViewModelHost",(h.ytPdpViewModelHasBackground=function(){return T()||!!D()},h.ytPdpViewModelHasDarkBackground=T,h.ytPdpViewModelHasScrim=F,h.ytPdpViewModelInternalScrolling=_.ex(y,!1),h));
var u=function(W){var c={};return _.cl("ytPdpViewModelItem",(c.ytPdpViewModelFullBleed=function(){return _.mXV(W())==="dividerViewModel"||_.mXV(W())==="sectionHeaderViewModel"},c.ytPdpViewModelNoVerticalPadding=function(){return _.mXV(W())==="sectionHeaderViewModel"},c))};
_.LY(function(){var W=G().onStartCommand;if(W&&(W=_.wr(W))){var c;(c=_.gw().resolve(_.F3))==null||c.resolveCommand(W)}});
return _.k("pdp-view-model",{class:y,style:X},_.k("div",{class:"ytPdpViewModelColumnContainer"},_.k(_.pY,{each:function(){return tgH(e(),g())},
keyBy:"INDEX"},function(W){return _.k("div",{class:"ytPdpViewModelColumn"},_.k(_.M7,{data:W},{containerLayoutViewModel:function(c,P){c=c.data;return _.k("div",{class:u(function(){return W()[P()]})},_.k(BR,{data:c}))},
dividerViewModel:function(c,P){c=c.data;return _.k("div",{class:u(function(){return W()[P()]})},_.k(_.TDP,{data:c}))},
pdpCardViewModel:function(c,P){c=c.data;return _.k("div",{class:u(function(){return W()[P()]})},_.k(WGQ,{data:c,
stateFns:b}))},
pdpMastheadViewModel:function(c,P){c=c.data;return _.k("div",{class:u(function(){return W()[P()]})},_.k(cGv,{data:c,
isOverlay:T}))},
pdpPricingGroupSelectorViewModel:function(c,P){c=c.data;return _.k("div",{class:u(function(){return W()[P()]})},_.k(pzH,{data:c,
stateFns:b}))},
pdpPricingOptionSelectorViewModel:function(c,P){c=c.data;return _.k("div",{class:u(function(){return W()[P()]})},_.k(rGV,{data:c,
stateFns:b}))},
pdpPrimaryButtonViewModel:function(c,P){c=c.data;return _.k("div",{class:u(function(){return W()[P()]})},_.k(NlH,{data:c,
stateFns:b}))},
pdpSummaryViewModel:function(c,P){c=c.data;return _.k("div",{class:u(function(){return W()[P()]})},_.k(Pta,{data:c,
stateFns:b}))},
sectionHeaderViewModel:function(c,P){c=c.data;return _.k("div",{class:u(function(){return W()[P()]})},_.k(_.C0,{data:c}))}}))})))},"yf");
E7N.idomCompat=!0;_.DW(E7N,"pdp-view-model",{props:{data:_.bR,stateFnsForTesting:_.sd,internalScrolling:_.sd}});var U1R=_.Fp(function(X){var t=X.data;var G=X.className;var y=_.Pk(_.jw,function(){return t().flowStateEntityKey});
return _.k("ytm-premium-purchase-button-renderer",{class:_.cl("yt-premium-purchase-button-renderer",G)},_.k(_.M7,{data:function(){var w;return(w=_.Y(y(),yfT))==null?void 0:w.primaryButtonOverride}},{buttonRenderer:function(w){return _.k(_.bZ,{data:w.data,
className:G})},
buttonViewModel:function(w){return _.k(_.QK,{data:w.data,className:G})}}))},"zf");
U1R.idomCompat=!0;var m1q=_.Fp(function(X){var t=X.data;X=X.className;var G=function(){return GhR(t().style)},y=_.cl("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",G),w=_.cl("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",G);
return _.k("yt-flow-bottom-bar-renderer",{class:_.cl("yt-flow-bottom-bar-renderer",X,G)},_.k(_.M7,{data:function(){return t().secondaryButton}},{buttonRenderer:function(z){return _.k(_.bZ,{data:z.data,
className:w})},
buttonViewModel:function(z){return _.k(_.QK,{data:z.data,className:w})},
premiumPurchaseButtonRenderer:function(z){return _.k(U1R,{data:z.data,className:w})}}),_.k(_.M7,{data:function(){return t().primaryButton}},{buttonRenderer:function(z){return _.k(_.bZ,{data:z.data,
className:y})},
buttonViewModel:function(z){return _.k(_.QK,{data:z.data,className:y})},
premiumPurchaseButtonRenderer:function(z){return _.k(U1R,{data:z.data,className:y})}}))},"Af");
m1q.idomCompat=!0;_.DW(m1q,"yt-flow-bottom-bar-renderer",{props:{data:_.bR,className:_.bR}});var RLT=_.Fp(function(X){var t=_.cl(X.className,"ytOfferSummaryRendererHost");return _.k("yt-offer-summary-renderer",{class:t},_.k("div",{class:"ytOfferSummaryRendererTextContainer"},_.k("div",{class:"ytOfferSummaryRendererEyebrowText"},_.k(_.eh,{text:function(){return X.data().eyebrowText}})),_.k("div",{class:"ytOfferSummaryRendererTitle"},_.k(_.eh,{text:function(){return X.data().title}})),_.k("div",{class:"ytOfferSummaryRendererSubtitle"},_.k(_.eh,{text:function(){return X.data().subtitle}})),
_.k("div",{class:"ytOfferSummaryRendererFeatureListData"},_.k(_.pY,{each:function(){var G;
return(G=X.data().featureListData)!=null?G:[]}},function(G){var y;
return _.k("div",{class:"ytOfferSummaryRendererFeatureList"},_.k(_.mw,{icon:(y=G.icon)==null?void 0:y.iconType,active:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(G.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"}}}),_.k("div",{class:"ytOfferSummaryRendererFeatureListText"},_.k(_.eh,{text:G.text,
className:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.k("div",{class:"ytOfferSummaryRendererDescription"},_.k(_.eh,{text:function(){return X.data().description}}))))},"Bf");_.DW(_.Fp(function(X){var t={};t=_.cl("ytOfferSummaryFlowStepRendererHost",(t.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=X.shouldDisableHeaderTopMargin,t));return _.k("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:t},_.k("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.k("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.k(_.eh,{text:function(){return X.data().header}})),_.k("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.k(_.eh,{text:function(){return X.data().subtitle}}))),_.k("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.k(_.M7,{data:function(){return X.data().offerSummary}},{offerSummaryRenderer:function(G){return _.k(RLT,{data:G.data,
className:X.flowClassName})}})))},"Cf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.sd,
flowClassName:_.sd,flowStateEntityKey:_.sd,shouldDisableHeaderTopMargin:_.sd}});var ibq=_.Fp(function(X){var t=X.data;var G=X.className;var y=X.flowStateEntityKey;var w=X.selectionStepStyle;X=_.NI(function(b){var e=t(),g=y==null?void 0:y();b.target&&(b.stopPropagation(),b=g||"",g=_.jw(_.kF().getState(),b),e=Object.assign({},g,{premiumPurchaseFlowState:{selectedOptionId:e.optionId,primaryButtonOverride:e.primaryButtonOverride}}),_.kF().dispatch(_.EW("flowStateEntity",b,e)));return!1});
var z=function(){return(y==null?void 0:y())||""},B=_.Pk(_.jw,z);
_.LY(function(){var b=t(),e=z(),g=B();b.defaultSelected&&e!==""&&b.primaryButtonOverride&&w0r(b.optionId||"",e,b.primaryButtonOverride,g)});
var V={};return _.k("ytm-option-item-renderer",{"on:click":X,class:_.cl(G,"ytm-option-item-renderer",(V["ytm-option-item-renderer--lp2-style"]=function(){return(w==null?void 0:w())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},V))},_.k("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.k("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var b=t(),e=z(),g=B();g=_.Y(g,yfT);return(g?(g==null?void 0:g.selectedOptionId)||"":b.defaultSelected&&e!==""?(b==null?void 0:b.optionId)||"":"")===t().optionId},
name:("input"+_.fG(_.ao)).toString()})),_.k("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.k(_.M7,{data:function(){return t().titleBadge}},{badgeViewModel:function(b){return _.k(_.YM,{data:b.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.k(_.d,{cond:function(){return t().eyebrowText},
then:function(){return _.k("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.k(_.eh,{text:function(){return t().eyebrowText}}))}}),_.k("div",{class:"ytm-option-item-renderer__option-item-title"},_.k(_.eh,{text:function(){return t().title}})),_.k("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.k(_.eh,{text:function(){return t().subtitle}})),_.k(_.d,{cond:function(){return t().featureListData},
then:function(){return _.k("div",{class:"ytm-option-item-renderer__feature-list-data"},_.k(_.pY,{each:function(){return t().featureListData||[]}},function(b){var e,g=(e=b.icon)==null?void 0:e.iconType;
a:switch(b.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":e="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":e="ytm-option-item-renderer__feature-list-icon-small";break a;default:e="ytm-option-item-renderer__feature-list-icon-default"}return _.k("div",{class:"ytm-option-item-renderer__feature-list"},_.k(_.mw,{icon:g,className:e,active:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.k("div",{class:"ytm-option-item-renderer__feature-list-text"},_.k(_.eh,{text:b.text,
className:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.k("div",{class:"ytm-option-item-renderer__option-item-description"},_.k(_.eh,{text:function(){return t().description}}))))},"Df");var LGH=_.Fp(function(X){var t=X.data;var G=X.flowClassName;var y=X.flowStateEntityKey;var w=X.selectionStepStyle;return _.k("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.k("div",{class:"yt-option-section-renderer__option-section-header-section"},_.k("div",{class:"yt-option-section-renderer__option-section-header"},_.k(_.eh,{text:function(){return t().title}}),_.k(_.M7,{data:function(){return t().titleBadge}},{badgeViewModel:function(z){return _.k(_.YM,
{data:z.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.k(_.d,{cond:function(){return t().subtitle},
then:function(){return _.k("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.k(_.eh,{text:function(){return t().subtitle}}))}}),_.k(_.d,{cond:function(){return t().featureListData},
then:function(z){return _.k("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.k(_.pY,{each:z},function(B){var V;return _.k("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.k(_.mw,{icon:(V=B.icon)==null?void 0:V.iconType,active:function(){return B.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(B.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.k("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.k(_.eh,{text:B.text,
className:function(){return B.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.k(_.d,{cond:function(){return t().secondaryTitle},
then:function(){return _.k("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.k(_.eh,{text:function(){return t().secondaryTitle}}))}}),_.k(_.pY,{each:function(){return t().sectionDisclaimers||[]}},function(z){return _.k("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.k(_.eh,{text:z}))})),_.k(_.M7,{data:function(){return t().optionItems}},{optionItemRenderer:function(z){return _.k("div",{class:"yt-option-section-renderer__option-item"},_.k(ibq,{data:z.data,
className:G,flowStateEntityKey:y,selectionStepStyle:w}))}}),_.k(_.d,{cond:function(){return t().offerText},
then:function(){return _.k("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.k(_.eh,{text:function(){return t().offerText}}))}}))},"Ef");
LGH.idomCompat=!0;var v7q=_.Fp(function(X){var t=X.data;var G=X.flowClassName;var y=X.flowStateEntityKey;X=X.isDesktop;var w=function(){var e;return(e=t().flowStateEntityKey)!=null?e:y==null?void 0:y()},z=function(){return(w==null?void 0:w())||""},B=function(){return t().style},V=_.Pk(_.jw,z);
_.LY(function(){var e=t(),g=z(),F=V();!_.Y(F,yfT)&&e.noPreselect&&g!==""&&e.defaultButtonOverride&&w0r("default",g,e.defaultButtonOverride,F)});
var b={};return _.k("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.cl("ytm-option-selection-flow-step-renderer",(b["ytm-option-selection-flow-step-renderer--desktop"]=X,b["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return t().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},b))},_.k("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"},
_.k("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.k(_.eh,{text:function(){return t().header}})),_.k("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.k(_.eh,{text:function(){return t().subtitle}}))),_.k(_.M7,{data:function(){return t().optionItems||[]}},{optionItemRenderer:function(e){return _.k("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.k(ibq,{data:e.data,
className:G,flowStateEntityKey:w,selectionStepStyle:B}))},
optionSectionRenderer:function(e){return _.k("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.k(LGH,{data:e.data,flowClassName:G,flowStateEntityKey:w,selectionStepStyle:B}))}}))},"Ff");
v7q.idomCompat=!0;_.DW(v7q,"yt-option-selection-flow-step-renderer",{props:{data:_.bR,flowClassName:_.bR,flowStateEntityKey:_.bR,isDesktop:_.bR}});var z8V,HY2;_.nn=_.Fp(function(X){var t=_.jx(X,{type:1,disablePadding:!1,disablePrimaryButton:!1}),G=t.data,y=t.type;X=t.disablePadding;var w=t.disablePrimaryButton,z=t.onClickPrimaryButton,B=function(){return G().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},V=function(){return{disabled:w(),
state:w()?"disabled":"active"}},b=function(){return G().leadingLabel||G().trailingLabel};
t={};return _.k("yt-panel-footer-view-model",{class:_.cl("yt-panel-footer-view-model-wiz",(t["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return G().shouldHideDivider},t["yt-panel-footer-view-model-wiz--disable-padding"]=X,t))},_.k(_.d,{cond:b,
then:function(){var e={},g={};return _.k("div",{class:_.cl("yt-panel-footer-view-model-wiz__text-row",(e["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var F=G();return!(!F.leadingLabel&&!F.trailingLabel||!F.primaryButton&&!F.secondaryButton)},e))},_.k(_.eh,{text:function(){return G().leadingLabel},
className:_.cl((g["yt-panel-footer-view-model-wiz--text-padding"]=b,g))}),_.k(_.eh,{text:function(){return G().trailingLabel}}))}}),_.k(_.d,{cond:B,
then:function(){var e={};return _.k("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.k("div",{class:_.cl("yt-panel-footer-view-model-wiz__primary-button",(e["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return G().secondaryButton},e))},_.k(_.M7,{data:function(){return G().primaryButton}},{buttonViewModel:function(g){return _.k(_.QK,{data:g.data,
buttonOverrides:V,onClick:z})}})),_.k(_.M7,{data:function(){return G().secondaryButton}},{buttonViewModel:_.QK}))}}),_.k(_.d,{cond:function(){return!B()},
then:function(){var e={},g={},F={};return _.k("div",{class:_.cl("yt-panel-footer-view-model-wiz__button-row",(e["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===y()},e))},_.k("div",{class:_.cl("yt-panel-footer-view-model-wiz__button-row--left-button",(g["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===y()},g["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!G().secondaryButton||0===y()},g["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===y()},g))},_.k(_.M7,{data:function(){return G().secondaryButton}},{buttonViewModel:_.QK})),_.k("div",{class:_.cl("yt-panel-footer-view-model-wiz__primary-button",(F["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===y()||1===y()},F["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===y()},F))},_.k(_.M7,{data:function(){return G().primaryButton}},{buttonViewModel:function(T){return _.k(_.QK,{data:T.data,
buttonOverrides:V,onClick:z})}})))}}))},"Gf");
_.nn.idomCompat=!0;_.aN4=_.Fp(function(X){X=_.jx(X,{disablePadding:!1});var t=X.data,G=X.disablePadding;X=_.nSi(function(){return t().formId});
var y=X.onSubmit,w=X.isValid,z=X.isSubmitting;return _.k("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.k(_.M7,{data:function(){return t().panelFooter}},{panelFooterViewModel:function(B){return _.k(_.nn,{data:B.data,
onClickPrimaryButton:function(){y()},
disablePrimaryButton:function(){return!w()||z()},
disablePadding:G})}}))},"Hf");_.DW(_.aN4,"yt-form-footer-view-model",{props:{data:_.bR,disablePadding:_.bR}});_.DW(_.Fp(function(X){return _.k("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.k("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.k(_.d,{cond:function(){var t;return(t=X.data())==null?void 0:t.image},
then:function(t){return _.k(_.gr,{data:t,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.k("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.k(_.eh,{text:function(){var t;
return(t=X.data())==null?void 0:t.title}})),_.k("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.k(_.eh,{text:function(){var t;
return(t=X.data())==null?void 0:t.subtitle}})),_.k("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.k(_.M7,{data:function(){var t;
return(t=X.data())==null?void 0:t.viewTipsButton}},{buttonViewModel:_.QK}))))},"If"),"yt-contributor-zero-state-view-model",{props:{data:_.bR}});var lN2=_.Fp(function(X){var t=_.Pk(VgR,_.ex(function(){var V;return(V=X.data())==null?void 0:V.noteFeedEntityKey},"")),G=_.Pk(Smv,_.ex(function(){var V;
return(V=X.data())==null?void 0:V.userRatingEntityKey},"")),y=_.A("enable_user_rating_web"),w=function(){var V,b,e;
return((V=t())==null?0:V.contributorNote)?(b=t())==null?void 0:b.contributorNote:(e=X.data())==null?void 0:e.existingNote},z=function(){var V,b;
return!!G()&&!!bYi((V=G())==null?void 0:V.helpfulnessValue,(b=X.data())==null?void 0:b.noteData)};
if(y){var B={};return _.k("yt-note-view-model",{class:_.cl("ytNoteViewModelHostUserRating",(B.ytNoteViewModelHostUserRatingPublishedNote=function(){var V,b;return(V=X.data())==null?void 0:(b=V.noteData)==null?void 0:b.isPublished},B))},_.k("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.k("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.k(_.d,{cond:function(){var V,b;
return(V=X.data())==null?void 0:(b=V.noteData)==null?void 0:b.isPinned},
then:function(){return _.k(_.mw,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.k(_.d,{cond:function(){var V,b;return(V=X.data())==null?void 0:(b=V.noteData)==null?void 0:b.isPublished},
then:function(){return _.k(_.mw,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.k(_.M7,{data:function(){var V;
return(V=X.data())==null?void 0:V.metadata}},{contentMetadataViewModel:_.DT}),_.k("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var V,b;
return(b=_.Y((V=X.data())==null?void 0:V.metadata,_.r_R))==null?void 0:b.delimiter}),_.k(_.eh,{text:function(){var V;
return(V=w())==null?void 0:V.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.k(_.M7,{data:function(){var V,b,e,g,F,T,D,h=!!((V=X.data())==null?0:(b=V.noteData)==null?0:b.isPinned);V=z();b=(e=X.data())==null?void 0:e.noteData;e=(g=t())==null?void 0:(F=g.contributorNote)==null?void 0:F.deleteAction;g=(T=X.data())==null?void 0:T.overflowButtonNoteWithRatingOnTapOverride;T=(D=X.data())==null?void 0:D.overflowButton;return h?kha(b,e):V?{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:g}}:T}},{buttonViewModel:function(V){return _.k(_.QK,{data:V.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.k("div",{class:"ytNoteViewModelNoteContent"},_.k(_.eh,{text:function(){var V;
return(V=w())==null?void 0:V.text}})),_.k(_.d,{cond:function(){var V,b;
return!((V=X.data())==null?0:(b=V.noteData)==null?0:b.isPinned)},
then:function(){return _.k(_.d,{cond:z,then:function(){return _.k("div",{class:"ytNoteViewModelUserRatingContainer"},_.k(_.eh,{text:function(){var V,b;return bYi((V=G())==null?void 0:V.helpfulnessValue,(b=X.data())==null?void 0:b.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.k(_.M7,{data:function(){var V;return(V=X.data())==null?void 0:V.userRatingButton}},{buttonViewModel:function(V){return _.k(_.QK,{data:V.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.k(_.d,{cond:function(){var V,b;
return!((V=X.data())==null?0:(b=V.noteData)==null?0:b.ignoreDivider)},
then:function(){return _.k("div",{class:"ytNoteViewModelDivider"},_.k(_.M7,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(V){return _.k(_.TDP,{data:V.data})}}))}}))}return _.k("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.k("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.k("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.k(_.d,{cond:function(){var V,b;return(V=X.data())==null?void 0:(b=V.noteData)==null?void 0:b.isPinned},
then:function(){return _.k(_.mw,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.k(_.d,{cond:function(){var V,b;return(V=X.data())==null?void 0:(b=V.noteData)==null?void 0:b.isPublished},
then:function(){return _.k(_.mw,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.k(_.d,{cond:function(){return y},
then:function(){return _.k(_.M7,{data:function(){var V;return(V=X.data())==null?void 0:V.metadata}},{contentMetadataViewModel:function(V){return _.k(_.DT,{data:V.data})}})}}),_.k(_.eh,{text:function(){var V,b;
return(V=X.data())==null?void 0:(b=V.noteData)==null?void 0:b.headerText}}),_.k("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.k(_.eh,{text:function(){var V,b;
return(V=X.data())==null?void 0:(b=V.noteData)==null?void 0:b.delimiter}})),_.k(_.eh,{text:function(){var V,b;
return(V=t())==null?void 0:(b=V.contributorNote)==null?void 0:b.publishedTimeText}})),_.k(_.M7,{data:function(){var V,b,e;
return kha((V=X.data())==null?void 0:V.noteData,(b=t())==null?void 0:(e=b.contributorNote)==null?void 0:e.deleteAction)}},{buttonViewModel:function(V){return _.k(_.QK,{data:V.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.k("div",{class:"ytNoteViewModelNoteContent"},_.k(_.eh,{text:function(){var V,b;
return(V=t())==null?void 0:(b=V.contributorNote)==null?void 0:b.text}})))},"Jf");
lN2.idomCompat=!0;_.DW(lN2,"yt-note-view-model",{props:{data:_.bR}});var VP=_.Fp(function(X){var t=_.jx(X,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),G=t.label,y=t.text,w=t.placeholder,z=t.hint;X=t.rows;var B=t.overflowStyle,V=t.outline,b=t.disabled,e=t.disableNewLines,g=t.characterLimit,F=t.validation,T=t.onInput,D=_.nl("textarea");t=_.J(_.Ed(function(){return y()}));
var h=t.next().value,u=t.next().value;t=_.J(_.sm(!1,void 0,"fXvinf"));var W=t.next().value,c=t.next().value,P=function(){c(!0)},l=function(){c(!1)};
_.LY(function(){var Uh=D.value,cY=B(),f_=h();cY==="expand-vertically"&&f_&&dda(Uh);D.value.addEventListener("focusin",P);D.value.addEventListener("focusout",l)});
_.Um(function(){D.value.removeEventListener("focusin",P);D.value.removeEventListener("focusout",l)});
var R=function(){var Uh;return(Uh=F())==null?void 0:Uh.validate(h())},L=function(){return g()&&!R()&&h().length>g().maxChars},x=function(){return!!R()||L()};
t=_.NI(function(Uh){if(!Uh.currentTarget)return!1;Uh=Uh.currentTarget;u(Uh.value);B()==="expand-vertically"&&dda(Uh);T==null||T(Uh.value);return!0});
var w6=_.NI(function(Uh){e()&&Uh.key==="Enter"&&Uh.preventDefault();return!1}),BY=_.NI(function(){D.value.focus()}),kJ=function(){return w()||G()},Ss={},C_={},Fv={};
return _.k("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.k("div",{class:_.cl("ytStandardsTextareaShapeTextareaContainer",(Ss.ytStandardsTextareaShapeTextareaContainerOutline=V,Ss.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=b,Ss.ytStandardsTextareaShapeTextareaContainerOutlineError=x,Ss)),"on:click":BY},_.k("label",{class:_.cl("ytStandardsTextareaShapeLabel",(C_.ytStandardsTextareaShapeLabelFocused=W,C_.ytStandardsTextareaShapeLabelDisabled=b,C_.ytStandardsTextareaShapeLabelError=
function(){return x()&&!b()},C_.ytStandardsTextareaShapeLabelHidden=function(){return!W()&&!h()&&!!kJ()},C_))},G),_.k("div",{class:_.cl("ytStandardsTextareaShapePlaceholder",(Fv.ytStandardsTextareaShapePlaceholderVisible=function(){return!W()&&!h()},Fv)),
"aria-hidden":"true"},kJ),_.k("textarea",{el:D,class:"ytStandardsTextareaShapeTextarea",rows:X,disabled:b,placeholder:kJ,"on:input":t,"on:keydown":w6},h)),_.k(_.d,{cond:function(){return z()&&!x()},
then:function(){var Uh={};return _.k("div",{class:_.cl("ytStandardsTextareaShapeHint",(Uh.ytStandardsTextareaShapeHintDisabled=b,Uh))},_.k("div",{class:"ytStandardsTextareaShapeHintHintMessage"},z))}}),_.k(_.d,{cond:R,
then:function(){return _.k(x1q,{disabled:b},_.k("div",{class:"ytStandardsTextareaShapeErrorMessage"},R))}}),_.k(_.d,{cond:g,
then:function(Uh){return _.k(_.d,{cond:L,then:function(){return _.k(x1q,{disabled:b},_.k("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Uh().errorMessage}),_.k("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return h().length+"/"+Uh().maxChars}))}})}}))},"Kf");
VP.idomCompat={callbacks:{onInput:!0}};var x1q=_.Fp(function(X){var t={};return _.k("div",{class:_.cl("ytStandardsTextareaShapeError",(t.ytStandardsTextareaShapeErrorDisabled=X.disabled,t)),role:"alert"},_.k(_.mw,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),X.children)},"Lf");_.fNV=_.Fp(function(X){var t=X.data;return _.k("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.k(VP,{text:X.text,label:function(){var G;return(G=t().contentProperties)==null?void 0:G.labelText},
placeholder:function(){var G;return(G=t().contentProperties)==null?void 0:G.placeholderText},
hint:function(){var G;return(G=t().contentProperties)==null?void 0:G.hintText},
outline:function(){var G;return!((G=t().displayProperties)==null?0:G.hideBorder)},
overflowStyle:function(){var G;return((G=t().displayProperties)==null?0:G.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:X.disabled,disableNewLines:function(){var G;return(G=t().displayProperties)==null?void 0:G.disableNewLines},
onInput:X.onInput,characterLimit:X.characterLimit,validation:X.validation,rows:function(){var G;return(G=t().displayProperties)==null?void 0:G.rows}}))},"Mf");_.MDB=_.Fp(function(X){var t=X.data;return _.k("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.k(VP,{text:X.text,label:function(){var G;return(G=t().contentProperties)==null?void 0:G.labelText},
placeholder:function(){var G;return(G=t().contentProperties)==null?void 0:G.placeholderText},
hint:function(){var G;return(G=t().contentProperties)==null?void 0:G.hintText},
outline:function(){var G;return!((G=t().displayProperties)==null?0:G.hideBorder)},
overflowStyle:function(){var G;return((G=t().displayProperties)==null?0:G.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var G;return(G=t().displayProperties)==null?void 0:G.disableNewLines},
onInput:X.onInput,characterLimit:X.characterLimit,validation:X.validation,rows:function(){var G;return(G=t().displayProperties)==null?void 0:G.rows}}))},"Nf");var XOr=_.Fp(function(X){var t=_.J(_.Ed(function(){var kJ,Ss;return((kJ=X.data().structuredContextNoteFormSchema)==null?0:(Ss=kJ.initialValues)==null?0:Ss.noteBody)?X.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),G=t.next().value,y=t.next().value;
t=_.J(_.Ed(function(){X.data();return!1}));
var w=t.next().value,z=t.next().value;t=_.J(_.Ed(function(){X.data();return!1}));
var B=t.next().value,V=t.next().value;t=_.J(_.Ed(function(){var kJ,Ss;return((kJ=X.data().structuredContextNoteFormSchema)==null?0:(Ss=kJ.initialValues)==null?0:Ss.timestamp)?X.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var b=t.next().value,e=t.next().value;t=_.J(_.Ed(function(){X.data();return!1}));
var g=t.next().value,F=t.next().value;t=_.J(_.Ed(function(){var kJ,Ss;return((kJ=X.data().structuredContextNoteFormSchema)==null?0:(Ss=kJ.initialValues)==null?0:Ss.sources)?[X.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var T=t.next().value,D=t.next().value;t=_.J(_.Ed(function(){X.data();return!1}));
var h=t.next().value,u=t.next().value;t=_.J(_.Ed(function(){return!1}));
var W=t.next().value,c=t.next().value;_.LY(function(){var kJ;_.BnV((kJ=X.data().structuredContextNoteFormSchema)==null?void 0:kJ.id,{isSubmitting:W,onSubmit:function(){c(!0);var Ss=Dda(G(),b(),T(),X.data()),C_=_.gw().resolve(_.F3);Ss&&C_&&C_.resolveCommand(Ss,{commandController:{onSuccess:function(){c(!1)}}})},
isValid:function(){return w()&&!B()&&!g()&&!h()}})});
var P=function(kJ){if(kJ!==void 0&&(y(kJ),!w()&&kJ.length>0&&z(!0),w())){var Ss=gSR(X.data());if(Ss){var C_=Ss.minLength;Ss=Ss.maxLength;C_&&kJ.length<C_?V(!0):Ss&&kJ.length>Ss?V(!0):V(!1)}}},l=function(kJ){if(kJ!==void 0){e(kJ);
if(kJ.length>0){var Ss,C_,Fv,Uh,cY=TnR((Ss=X.data())==null?void 0:(C_=Ss.structuredContextNoteFormSchema)==null?void 0:(Fv=C_.fieldSchemas)==null?void 0:(Uh=Fv.timestamp)==null?void 0:Uh.validationSchema);if(cY&&(Ss=cY.regex)&&!(new RegExp(Ss)).test(kJ)){F(!0);return}}F(!1)}},R=function(kJ){if(kJ!==void 0){var Ss=kJ.split(/[ \n]/).map(function(C_){return C_.trim()});
D(Ss);if(kJ.length>0)for(kJ=_.J(Ss),Ss=kJ.next();!Ss.done;Ss=kJ.next())if(!s2R(Ss.value)){u(!0);return}u(!1)}},L=function(){return{validate:function(kJ){if(w()){var Ss=gSR(X.data());
if(Ss){var C_=Ss.minLength;Ss=Ss.translations;if(C_&&kJ.length<C_)return Ss==null?void 0:Ss.minLengthErrorMessage}}}}},x=function(){var kJ=gSR(X.data()),Ss=kJ==null?void 0:kJ.maxLength,C_;
kJ=kJ==null?void 0:(C_=kJ.translations)==null?void 0:C_.maxLengthErrorMessage;if(Ss&&kJ)return{maxChars:Ss,errorMessage:kJ}},w6=function(){return{validate:function(kJ){if(kJ){var Ss,C_,Fv,Uh,cY=TnR((Ss=X.data())==null?void 0:(C_=Ss.structuredContextNoteFormSchema)==null?void 0:(Fv=C_.fieldSchemas)==null?void 0:(Uh=Fv.timestamp)==null?void 0:Uh.validationSchema);
if(cY&&(Ss=cY.regex,cY=cY.translations,Ss&&!(new RegExp(Ss)).test(kJ)))return cY==null?void 0:cY.regexErrorMessage}}}},BY=function(){return{validate:function(kJ){if(kJ){var Ss,C_,Fv,Uh,cY=Yaq((Ss=X.data())==null?void 0:(C_=Ss.structuredContextNoteFormSchema)==null?void 0:(Fv=C_.fieldSchemas)==null?void 0:(Uh=Fv.sources)==null?void 0:Uh.validationSchema);
if(cY&&(Ss=cY.translations,Ss==null?0:Ss.selectedErrorMessage))for(kJ=kJ.split(/[ \n]/).map(function(f_){return f_.trim()}),kJ=_.J(kJ),C_=kJ.next();!C_.done;C_=kJ.next())if(!s2R(C_.value))return kJ=void 0,(kJ=Ss)==null?void 0:kJ.selectedErrorMessage}}}};
return _.k("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.k("div",{class:"ytStructuredContextNoteViewModelTextField"},_.k(_.M7,{data:function(){var kJ;return(kJ=X.data())==null?void 0:kJ.noteContents}},{textFormFieldViewModel:function(kJ){return _.k(_.MDB,{data:kJ.data,
onInput:P,validation:L,characterLimit:x})},
textFieldViewModel:function(kJ){return _.k(_.fNV,{data:kJ.data,onInput:P,validation:L,characterLimit:x})}})),_.k("div",{class:"ytStructuredContextNoteViewModelTextField"},_.k(_.M7,{data:function(){var kJ;
return(kJ=X.data())==null?void 0:kJ.noteTimestamp}},{textFormFieldViewModel:function(kJ){return _.k(_.MDB,{data:kJ.data,
onInput:l,validation:w6})},
textFieldViewModel:function(kJ){return _.k(_.fNV,{data:kJ.data,onInput:l,validation:w6})}})),_.k("div",{class:"ytStructuredContextNoteViewModelTextField"},_.k(_.M7,{data:function(){var kJ;
return(kJ=X.data())==null?void 0:kJ.noteSources}},{textFormFieldViewModel:function(kJ){return _.k(_.MDB,{data:kJ.data,
onInput:R,validation:BY})},
textFieldViewModel:function(kJ){return _.k(_.fNV,{data:kJ.data,onInput:R,validation:BY})}})))},"Of");
XOr.idomCompat=!0;_.DW(XOr,"yt-structured-context-note-view-model",{props:{data:_.bR}});var $j4=_.Fp(function(X){var t=_.J(_.Ed(function(){var z;if((z=X.controlled)==null?0:z.call(X))return[];var B;return(((B=X.data())==null?void 0:B.chips)||[]).map(function(V){V=_.Y(V,_.HF);if(V==null?0:V.selected)return Sav(V.chipValue)}).filter(function(V){return V!==void 0})})),G=t.next().value,y=t.next().value,w=function(z){var B=Sav(z.chipValue);
if(B!==void 0){var V;if((V=X.controlled)==null?0:V.call(X))return void X.controlled().onTap(B);z=G().includes(B)?[].concat(_.RY(G().filter(function(e){return e!==B}))):[].concat(_.RY(G()),[B]);
y(z);var b;if((b=X.uncontrolled)==null?0:b.call(X))X.uncontrolled().onUpdate(z)}};
return _.k("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.k(_.pY,{each:function(){return X.data().chips||[]}},function(z){return _.k("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.k(_.lQ,{data:function(){return _.Y(z,_.HF)},
selected:function(){var B;if(B=_.Y(z,_.HF)){var V=Sav(B.chipValue);if(V!==void 0){var b;B=((b=X.controlled)==null?0:b.call(X))?X.controlled().selectedValues.includes(V):G().includes(V)}else B=void 0}else B=!1;return B},
callback:w}))}))},"Pf");var tPq=_.Fp(function(X){var t=X.data;var G=function(){var V;return((V=t())==null?void 0:V.flowStateKey)||""},y=_.Pk(_.jw,G),w=function(){var V;
return(V=_.Y(y(),jua))==null?void 0:V.chips},z=function(V){if(V!==void 0){var b=w()||[];
b=b.find(function(e){return e===V})?b.filter(function(e){return e!==V}):[].concat(_.RY(b),[V]);
b=Object.assign({},y(),{feedbackFormFlowState:Object.assign({},_.Y(y(),jua),{chips:b})});_.dX(_.EW("flowStateEntity",G(),b))}},B=function(){var V;
return _.Y((V=t())==null?void 0:V.inputBox,gxT)};
X=_.PI(function(V){var b=B();b=!(b==null?0:b.maxChars)||V.length<=b.maxChars;V=Object.assign({},y(),{feedbackFormFlowState:Object.assign({},_.Y(y(),jua),{detail:V}),abuseReportFlowState:Object.assign({},_.Y(y(),Wo),{navigationEnabled:b})});_.dX(_.EW("flowStateEntity",G(),V))},150);
return _.k("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.k("div",{class:"ytFeedbackFormViewModelChips"},_.k(_.M7,{data:function(){var V;return(V=t())==null?void 0:V.chipSelection}},{chipSelectionFormFieldViewModel:function(V){return _.k($j4,{data:V.data,
controlled:function(){return{selectedValues:w()||[],onTap:z}}})}})),_.k("div",{class:"ytFeedbackFormViewModelInputBox"},_.k(VP,{text:function(){var V;
return(V=_.Y(y(),jua))==null?void 0:V.detail},
placeholder:function(){var V;return((V=B())==null?void 0:V.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var V=B();if(V&&V.maxChars)return{maxChars:V.maxChars,errorMessage:V.maxCharsExceededErrorMessage||""}},
onInput:X})),_.k("div",{class:"ytFeedbackFormViewModelFooterText"},_.k(_.eh,{text:function(){return t().footerText}})))},"Qf");
tPq.idomCompat=!0;_.DW(tPq,"yt-feedback-form-view-model",{props:{data:_.bR}});var G5H=_.Fp(function(X){var t=X.data;var G=function(){return t().flowStateKey||""},y=_.Pk(DtN,G),w=function(){return _.Y(y(),Wo)},z=function(){if(_.A("enable_gff_accessibility_fix")){var B=!0,V;
if((V=w())==null?0:V.navigationEnabled){var b;_.JH((b=w())==null?void 0:b.navigationCommand);B=!1}V=Object.assign({},y(),{abuseReportFlowState:Object.assign({},w(),{isReportFormDirty:B})});_.dX(_.EW("flowStateEntity",G(),V))}else _.JH((B=w())==null?void 0:B.navigationCommand)};
return _.k("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.k("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.k(_.M7,{data:function(){return t().cancelButton}},{buttonViewModel:function(B){return _.k(_.QK,{data:B.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:z})}}),_.k(_.M7,{data:function(){var B;
if(t().navButton){var V=Object;var b=V.assign,e=_.Y(t().navButton,_.vk),g=((B=w())==null?0:B.navigationEnabled)||_.A("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",F,T;B=_.Y((F=w())==null?void 0:F.navigationCommand,_.yL);F=(T=_.Y(B,_.zj))==null?void 0:T.url;V={buttonViewModel:b.call(V,{},e,{state:g,iconName:F?"OPEN_IN_NEW":""})}}else V=void 0;return V}},{buttonViewModel:function(B){return _.k(_.QK,{data:B.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:z})}})))},"Rf");
G5H.idomCompat=!0;_.DW(G5H,"yt-report-form-bottom-bar-view-model",{props:{data:_.bR}});var yva=_.Fp(function(X){var t=X.nextStep;return _.k("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.k("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.k(_.mw,{icon:function(){return t().iconName||""}})),_.k("div",null,_.k(_.eh,{text:function(){return t().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Sf"),wO4=_.Fp(function(X){var t=X.data;
var G,y=(G=_.gw().resolve(_.jH(_.kI)))==null?void 0:G(),w=_.Pk(_.jw,function(){return t().flowStateKey||""});
return _.k("yt-report-form-confirmation-page-view-model",{class:function(){var z;return((z=_.Y(w(),Wo))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.k("div",{class:function(){var z;
return((z=_.Y(w(),Wo))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.k(_.gr,{data:function(){return y&&t().imageDark?t().imageDark:t().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.k("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.k("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return t().confirmationHeader}),_.k("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.k(_.eh,{text:function(){return t().confirmationText}})),_.k("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.k(_.eh,{text:function(){return t().lawEnforcementText}})),
_.k("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return t().whatToExpectHeader}),_.k(_.d,{cond:function(){return t().nextSteps},
then:function(z){return _.k("div",null,_.k(_.pY,{each:z},function(B){return _.k(yva,{nextStep:B})}))}}),_.k(_.d,{cond:function(){return t().legalReportText},
then:function(z){return _.k("div",null,_.k(_.eh,{text:z,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Tf");
wO4.idomCompat=!0;_.DW(wO4,"yt-report-form-confirmation-page-view-model",{props:{data:_.bR}});var zPq=_.Fp(function(X){var t=X.data;var G=function(){var z;return((z=_.Y(t().inputBox,gxT))==null?void 0:z.maxChars)||500},y=function(){return t().flowStateKey||""},w=_.Pk(_.jw,y);
X=_.PI(function(z){z=Object.assign({},w(),{flowFormState:{isValid:z.length<=G()},abuseReportFlowState:{userComments:z,navigationEnabled:!(z.length>G()),isReportFormDirty:!0}});_.kF().dispatch(_.Xc("flowStateEntity",y(),z))},150);
_.LY(function(){var z=Object.assign({},w(),{flowFormState:{isValid:!0}});_.kF().dispatch(_.Xc("flowStateEntity",y(),z))});
return _.k("yt-report-form-details-page-view-model",{class:function(){var z;return((z=_.Y(w(),Wo))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.k("h1",{class:function(){var z;
return((z=_.Y(w(),Wo))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return t().detailsPageHeader}),_.k("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.k(_.eh,{text:function(){return t().bodyText}})),_.k("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.k(VP,{label:function(){var z;
return((z=_.Y(t().inputBox,gxT))==null?void 0:z.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var z;return{errorMessage:((z=_.Y(t().inputBox,gxT))==null?void 0:z.maxCharsExceededErrorMessage)||"",maxChars:G()}},
onInput:X})))},"Uf");
zPq.idomCompat=!0;_.DW(zPq,"yt-report-form-details-page-view-model",{props:{data:_.bR}});var HhR=_.Fp(function(X){var t=X.data;var G=X.selectedKey;var y=X.onSelected;var w=X.groupName;var z=function(){return t().text},B=function(){return t().attributedText},V=function(){return t().subtext},b=function(){return t().attributedSubtext},e=_.k("div",{class:"ytRadioButtonItemViewModelLabel"},_.k(_.d,{cond:z,
then:function(){return _.k("div",null,z)}}),_.k(_.d,{cond:B,
then:function(){return _.k(_.eh,{text:B})}}),_.k(_.d,{cond:V,
then:function(){return _.k("div",{class:"ytRadioButtonItemViewModelSubText"},V)}}),_.k(_.d,{cond:b,
then:function(){return _.k("div",{class:"ytRadioButtonItemViewModelSubText"},_.k(_.eh,{text:b}))}})),g=function(){if(B()){var T;
return(T=B())==null?void 0:T.content}return z()},F=function(){if(b()){var T;
return(T=b())==null?void 0:T.content}return V()};
X={};return _.k("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.k(_.f0,{name:w,checked:function(){return!(G==null||!G()||t().key!==(G==null?void 0:G()))},
onChange:function(T){y==null||y(T.target,t(),w==null?void 0:w())},
labelRenderable:function(){return e},
ariaLabel:function(){return F()?g()+", "+F():g()},
className:_.cl((X.ytRadioButtonItemViewModelSubTitle=function(){return!!t().subtext},X))}))},"Vf");_.oAT=_.Fp(function(X){var t=X.data;var G=X.onSelected;var y=X.selectedKey;var w=X.groupName;var z=function(){return(w==null?void 0:w())||t().key};
return _.k("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.k("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.k(_.M7,{data:function(){return t().radioButtons}},{radioButtonItemViewModel:function(B){return _.k(HhR,{data:B.data,
onSelected:G,selectedKey:y,groupName:z})}})))},"Wf");var Jv4=_.Fp(function(X){var t=X.data;var G=_.VN("div"),y=function(){return t().flowStateKey||""},w=_.Pk(_.jw,y),z=function(){return _.Y(w(),Wo)};
_.Em(function(){var B,V;if(((B=z())==null?0:B.isReportFormDirty)&&((V=z())==null||!V.navigationEnabled)&&_.A("enable_gff_accessibility_fix")){var b;if(((b=z())==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var e;(e=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||e.scrollIntoView()}else{var g;(g=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||g.scrollIntoView()}}},"VvP2Ne");
return _.k("yt-report-form-reason-select-page-view-model",{class:function(){var B;return((B=z())==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.k("h1",{class:function(){var B;
return((B=z())==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return t().pageHeader}),_.k("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.k(_.eh,{text:function(){return t().bodyText}})),_.k("div",{class:function(){var B;
return((B=z())==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.k(_.d,{cond:function(){var B,V;
return((B=z())==null?void 0:B.isReportFormDirty)&&!((V=z())==null?0:V.navigationEnabled)&&_.A("enable_gff_accessibility_fix")},
then:function(){return _.k("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:G},_.k(_.mw,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.k("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return t().emptyReasonSelectErrorMessage}))}}),_.k(_.oAT,{data:function(){return _.Y(t().radioButtonGroup,_.hZi)},
onSelected:function(B,V){B=Object.assign({},w(),{abuseReportFlowState:Object.assign({},z(),{reasonKey:V.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:V.command})});_.dX(_.EW("flowStateEntity",y(),B))},
selectedKey:function(){var B;return(B=z())==null?void 0:B.reasonKey},
groupName:"report-form-reason-select-page"})))},"Xf");
Jv4.idomCompat=!0;_.DW(Jv4,"yt-report-form-reason-select-page-view-model",{props:{data:_.bR}});var Bjq=_.Fp(function(X){var t=X.data;var G,y=(G=_.gw().resolve(_.jH(_.kI)))==null?void 0:G();return _.k("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.k("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.k(_.gr,{data:function(){return y&&t().imageDark?t().imageDark:t().image},
alt:""})),_.k("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.k("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return t().header}),_.k(_.eh,{text:function(){return t().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Yf");
Bjq.idomCompat=!0;_.DW(Bjq,"yt-report-form-sign-in-page-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;var G=function(){return t().titleSuperscript},y=function(){return t().answersShelf},w=function(){return t().videoShelf},z=function(){var W;
return(W=t().textInputPlaceholder)==null?void 0:W.content},B=function(){return t().showOpenTextInput&&!_.A("web_hide_explore_hub_until_user_navigates_back_to_home")},V=function(){var W;
return(W=t().textInputValue)==null?void 0:W.content},b=_.A("enable_multi_turns_talk_to_recs_flow"),e=_.VN("input");
_.R2(function(){B()&&V()&&e.value&&(e.value.value=V())});
var g=function(W){W=W.target.value.trim();var c=t().onUpdateText;c&&_.JH(c,{form:{userQuery:W}});t().userQuery=W},F=_.PI(function(W){g(W)},150),T=_.NI(function(W){F(W);
return!1}),D=_.NI(function(W){W.key==="Enter"&&(g(W),(W=t().onNextStepCommand)&&_.JH(W,{forceClickLogging:!0}));
return!1}),h=_.nl("yt-talk-to-recs-view-model"),u=function(){if(_.A("web_hide_explore_hub_until_user_navigates_back_to_home")){var W,c,P;
(P=(c=(W=h.value)==null?void 0:W.closest("ytd-flow-step-renderer"))==null?void 0:c.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||P.click()}};
X={};return _.k("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:h},_.k("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.k(_.M7,{data:function(){return t().topCornerButton}},{buttonViewModel:_.QK})),_.k("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.k("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.k(_.eh,{text:function(){return t().title}}),_.k(_.d,{cond:G,
then:function(){return _.k("sup",{class:"ytwTalkToRecsSuperScript"},_.k(_.eh,{text:G}))}})),_.k("div",{class:"ytwTalkToRecsSubtitle"},_.k(_.eh,{text:function(){return t().subtitle}})),_.k("div",{class:"ytwTalkToRecsResultsShelf"},_.k(_.d,{cond:y,
then:function(){return _.k(_.M7,{data:y},{chipsShelfViewModel:function(W){return _.k("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.k(_.qUJ,{data:W.data,callback:u,enableSingleChipSelection:!0}))}})}}),_.k(_.d,{cond:w,
then:function(){return _.k(_.M7,{data:w},{horizontalShelfViewModel:function(W){return _.k("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.k(_.$2,{data:W.data}))}})}})),_.k("div",{class:_.cl("ytwTalkToRecsRefinementContainer",(X.ytwTalkToRecsBottomMargin=b,X))}," ",_.k(_.d,{cond:B,
then:function(){return _.k("div",{class:"ytwTalkToRecsUserInputBox"},_.k("input",{el:e,type:"text",class:"ytwTalkToRecsTextInput",placeholder:z,value:function(){return t().userQuery},
"on:input":T,"on:keyup":D,maxlength:200}))}}),_.k(_.M7,{data:function(){return b?t().nextButtonViewModel:void 0}},{buttonViewModel:function(W){return _.k("div",{class:"ytwTalkToRecsNextButton"},_.k(_.QK,{data:W.data}))}}))))},"Zf"),"yt-talk-to-recs-view-model",{props:{data:_.bR}});var h8v={sources:[{clientResource:{imageName:"CHECK"}}]};_.nA2=_.Fp(function(X){var t=_.nl("div");X=_.jx(X,{error:void 0});var G=X.data,y=X.error,w=X.onSelected;X=_.J(_.Ed(function(){return Cv2(G())}));
var z=X.next().value,B=X.next().value;Q2Q(G,function(T){B(T);var D,h,u=qaq((D=G().options)==null?void 0:(h=D[T])==null?void 0:h.value,G().type);w==null||w(u);t.value.focus()});
X=_.NI(function(){if(!G().disabled){var T=G(),D=z(),h=t.value;T.options&&(T=ZYN(T.options,D,T.label),_.gw().resolve(_.RJ).openSheet({viewModel:T},h))}});
var V=_.udY(),b=function(){return!!y()},e=function(){return!!G().disabled},g={},F={};
return _.k("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.k("div",{class:_.cl("ytDropdownViewModelDropdownContainer",(g.ytDropdownViewModelDropdownContainerErrorBorder=b,g.ytDropdownViewModelDropdownContainerDisabled=e,g)),"on:click":X,el:t,role:"combobox",tabindex:0,"on:keydown":V,"aria-invalid":b,"aria-disabled":e,"aria-describedby":function(){return b()?"dropdown-view-model-error":void 0}},_.k("div",{class:"ytDropdownViewModelText"},K6H(G,b,z),OYB(G,z)),_.k("div",{class:_.cl("ytDropdownViewModelChevronDown",
(F.ytDropdownViewModelChevronDownDisabled=e,F))},_.k(_.mw,{icon:"CHEVRON_DOWN"}))),uJi(G,y))},"$f");_.DW(_.Fp(function(X){var t=X.data;var G=function(w){var z=W6T(t());z.videoMetadata||(z.videoMetadata={});z.videoMetadata.sponsorshipsMetadata||(z.videoMetadata.sponsorshipsMetadata={});z.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(w)},y=function(w){var z=W6T(t());
z.scheduledRedirectMetadata||(z.scheduledRedirectMetadata={});z.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(w)};
return _.k("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.k("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.k("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.k(_.eh,{text:function(){return t().title}}),_.k(_.mw,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.k(_.eh,{text:function(){return t().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.k(_.M7,{data:function(){return t().tierChoices}},{dropdownViewModel:function(w){return _.k("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.k(_.nA2,{data:w.data,
onSelected:G}))}}),_.k(_.M7,{data:function(){return t().startTimeChoices}},{dropdownViewModel:function(w){return _.k("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.k(_.nA2,{data:w.data,
onSelected:y}))}}),_.k(_.eh,{text:function(){return t().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.k("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.k(_.M7,{data:function(){return t().scheduleButton}},{panelFooterViewModel:_.nn})))},"ag"),"ytfz-schedule-fanzone-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;X=X.className===void 0?"":X.className;var G=_.Pk(DtN,function(){return t().flowStateEntityKey||""}),y={};
y=_.cl("ytFlowBottomBarViewModelFlowBottomBarButtons",(y.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},y));
var w={},z=_.cl("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",y,(w.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},w.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},w));
w={};var B=_.cl("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",y,(w.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},w.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},w));
y={};y=_.cl("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
y));
X=_.cl("ytFlowBottomBarViewModelHost",X);return _.k("yt-flow-bottom-bar-view-model",{class:X},_.k(_.d,{cond:function(){var V;return(V=t())==null?void 0:V.textSection},
then:function(V){return _.k("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.k(_.eh,{text:V}))}}),_.k("div",{class:y},_.k(_.M7,{data:function(){return t().secondaryButton}},{buttonViewModel:function(V){return _.k(_.QK,{data:V.data,
className:B})}}),_.k(_.M7,{data:function(){return t().primaryButton}},{buttonViewModel:function(V){return _.k(_.QK,{data:V.data,
className:z,buttonOverrides:function(){var b;return{disabled:!((b=G())==null||!b.primaryButtonDisabled)}}})}})))},"bg"),"yt-flow-bottom-bar-view-model",{props:{data:_.bR,
className:_.sd}});var VPq="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),bb=function(){var X=_.O.apply(this,arguments)||this;X.enableScrollingFix=!0;X.bottomBar=!1;X.hideBottomBar=!1;X.fitContent=!1;return X};
_.S(bb,_.O);_.H=bb.prototype;_.H.ready=function(){_.A("enable_pdp_icon_prefetch")&&_.eZT(_.gw().resolve(_.Qv),0,VPq)};
_.H.focus=function(X){this.topBar?_.VG(this.topBar,X):this.paperDialog.focus(X)};
_.H.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18892_scroller&&(this.JSC$18892_scroller.dialogElement=this.paperDialog,this.JSC$18892_scroller.attached&&typeof this.JSC$18892_scroller.attached==="function"&&this.JSC$18892_scroller.attached())};
_.H.onDataChanged=function(){var X;this.fitContent=!((X=this.data)==null||!X.fitContent);var t;this.bottomBar=!((t=this.data)==null||!t.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.H.onProgressChanged=function(){var X,t,G=((t=(X=this.data)==null?void 0:X.progress)!=null?t:0)*100;this.progressElement.style.width=G+"%"};
_.H.isProgressHidden=function(){var X;return!((X=this.data)==null?0:X.progress)};
_.H.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(X){return _.A("enable_wiz_next_lp2_msof")&&X&&!X.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.ke.Object.defineProperties(bb.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var X;return _.A("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.Y((X=this.data)==null?void 0:X.content,suN)}}});
bb.prototype.onProgressChanged=bb.prototype.onProgressChanged;bb.prototype.onDataChanged=bb.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bb.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bb.prototype,"enableScrollingFix",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bb.prototype,"bottomBar",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bb.prototype,"hideBottomBar",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],bb.prototype,"containsExploreHub",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bb.prototype,"fitContent",void 0);_.E([_.rt("#progress"),_.U("design:type",HTMLElement)],bb.prototype,"progressElement",void 0);
_.E([_.rt("#scroller"),_.U("design:type",Object)],bb.prototype,"JSC$18892_scroller",void 0);_.E([_.rt("ytd-flow-top-bar-renderer"),_.U("design:type",HTMLElement)],bb.prototype,"topBar",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bb.prototype,"onDataChanged",null);_.E([_.cW("data.progress"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bb.prototype,"onProgressChanged",null);
_.E([_.p({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],bb);
_.N(bb,"ytd-flow-step-renderer",function(){if(vx2!==void 0)return vx2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return vx2=X},{mode:1});var bhH=function(X){this.resolveCommand=X;this.steps={}},k54=function(X,t){t=_.J(t||[]);
for(var G=t.next();!G.done;G=t.next()){G=G.value;var y=Object.values(G)[0],w=void 0;if((w=y)==null?0:w.stepId)X.steps[y.stepId]=G}},j7B=function(X,t){var G,y,w,z,B;
return _.n(function(V){if((G=X.state)==null||!G.currentStepId)return V.return(void 0);y=dji(X);if(!y)return V.return(ePR(X));if(w=_.Y(y,_.YcH)){var b;((b=w.screenLoggingData)==null?0:b.screenVeType)&&_.qP(_.Pj(),w.screenLoggingData.screenVeType);((z=w)==null?0:z.onStepStartCommand)&&X.resolveCommand((B=w)==null?void 0:B.onStepStartCommand,{})}if(w&&t){b=w;var e,g,F,T;((e=t.flowLoggingData)==null?0:e.eventNamespace)&&((g=b.flowEventData)==null?0:g.eventType)&&((F=b.flowEventData)==null?0:F.eventMetadata)&&
((T=t.flowLoggingData)==null?0:T.flowType)&&(e=_.O8(t.flowLoggingData.eventNamespace,b.flowEventData.eventType,b.flowEventData.eventMetadata),_.uu(_.Ql(),e,t.flowLoggingData.flowType));t.steps&&!t.steps.includes(y)&&t.steps.push(y)}return V.return(y)})};
bhH.prototype.back=function(){var X;(X=this.state)!=null&&X.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
bhH.prototype.handleUpdateFlowCommand=function(X){X.steps&&k54(this,X.steps);X.entityUpdateCommand&&this.resolveCommand(X.entityUpdateCommand,{});X.flowContinuationCommand&&(X=X.flowContinuationCommand)&&(this.getFlowContinuationCommand=X);this.awaitFlowContinuation&&(this.awaitFlowContinuation(dji(this)),this.awaitFlowContinuation=void 0)};
bhH.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var ePR=function(X){return _.n(function(t){return X.getFlowContinuationCommand?t.return(new Promise(function(G){X.awaitFlowContinuation=G;X.getFlowContinuationCommand&&X.resolveCommand(X.getFlowContinuationCommand,{flow_state:X.state})})):t.return(Promise.resolve(void 0))})},dji=function(X){var t;
if((t=X.state)!=null&&t.currentStepId)return X.steps[X.state.currentStepId]};var kL=function(){var X=_.O.apply(this,arguments)||this;X.flowState=new bhH(function(t,G){G=G===void 0?{}:G;_.Wj.instance.resolveCommand(t,{form:{form:G,element:X.hostElement}})});
X.initialState=!0;X.isLoading=!1;X.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return X};
_.S(kL,_.O);_.H=kL.prototype;_.H.onPopupClosed=function(X){X&&this.hostElement!==X.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.H.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"}}}};
_.H.focus=function(X){var t=this;_.oL(function(){var G=_.Sm(t.hostElement).querySelector("ytd-flow-step-renderer");(G==null?0:G.topBar)?G.focus(X):t.topBar&&_.VG(t.topBar,X)},1)};
_.H.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.H.computeTopBarHidden=function(X){var t;return!((t=_.Y(X,_.YcH))==null||!t.topBarOverride)};
_.H.dataChanged=function(){var X=this,t,G;return _.n(function(y){if(y.nextAddress==1){((t=X.data)==null?0:t.steps)&&k54(X.flowState,X.data.steps);if((G=X.data)==null?0:G.flowContinuationCommand){var w=X.flowState,z=X.data.flowContinuationCommand;z&&(w.getFlowContinuationCommand=z)}return y.yield(j7B(X.flowState,X.data),2)}X.currentFlowStep=y.yieldResult;_.W$(y)})};
_.H.flowChanged=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1){if(!X.flow)return G.return();X.flowState.state=X.flow;X.isLoading=!0;return G.yield(j7B(X.flowState,X.data),2)}t=G.yieldResult;if(!t||X.flow.isLoading)return G.return();X.currentFlowStep=t;X.initialState=!1;X.isLoading=!1;X.autofocusAndRefit();_.W$(G)})};
_.H.autofocusAndRefit=function(){var X=this,t=_.gw().resolve(_.jH(_.Z8)),G=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),y=document.querySelector("yt-report-form-confirmation-page-view-model"),w=document.querySelector("yt-report-form-details-page-view-model"),z=document.querySelector("yt-report-form-reason-select-page-view-model"),B=document.querySelector("yt-contributor-zero-state-view-model"),
V=document.querySelector("yt-structured-context-note-view-model"),b=document.querySelector("yt-note-view-model");(!G&&t&&t.isKeyBoardInUse()||y||!G&&w||!G&&z||B||V||b)&&_.bx(this.hostElement);_.V8(this,function(){_.Yt(X.hostElement,"yt-refit")})};
_.H.handleUpdateFlowCommand=function(X){this.data&&(X=_.Y(X,Atv),X.targetId===this.data.targetId&&(X.flowContinuationCommand&&(this.data.flowContinuationCommand=X.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(X),this.autofocusAndRefit()))};
_.H.handleFlowNextStepCommand=function(X){this.data&&this.flow&&this.flow.key&&(X=_.Y(X,FUB),X.targetId===this.data.targetId&&(X=X.stepId||"",this.ytdReduxBehavior.dispatch(_.Xc("flowStateEntity",this.flow.key,{currentStepId:X,stepIdStack:(this.flow.stepIdStack||[]).concat(X)}))))};
_.H.handleFlowPrevStepCommand=function(X){if(this.data&&this.flow&&this.flow.key&&(X=_.Y(X,TwR),X.targetId===this.data.targetId)){var t=[].concat(_.RY(this.flow.stepIdStack||[]));t.length>1?(t.pop(),this.ytdReduxBehavior.dispatch(_.Xc("flowStateEntity",this.flow.key,{currentStepId:t[t.length-1],stepIdStack:t}))):X.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(X.onFirstStepCommand)}};
_.H.handleYpcCancelRecurrenceCommand=function(X){if(this.data&&this.flow&&this.flow.key&&(X=_.Y(X,Zsi),X.targetId===this.data.targetId&&X.endpointCommand)){var t=_.Y(this.flow,qcq);t&&_.Y(X.endpointCommand,_.Q3P)&&(_.Y(X.endpointCommand,_.Q3P).feedbackData=t.surveyFeedback);this.ytComponentBehavior.resolveCommand(X.endpointCommand)}};
_.H.handlePartialUpdateFlowStateEntity=function(X){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Xc("flowStateEntity",this.flow.key,X,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
kL.prototype.flowChanged=kL.prototype.flowChanged;kL.prototype.dataChanged=kL.prototype.dataChanged;kL.prototype.onPopupClosed=kL.prototype.onPopupClosed;_.E([_.q(_.MZ),_.U("design:type",Object)],kL.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],kL.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],kL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kL.prototype,"initialState",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kL.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",Object)],kL.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],kL.prototype,"currentFlowStep",void 0);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],kL.prototype,"onPopupClosed",null);_.E([_.K({selectorArgs:["data.flowStateEntityKey"],selector:DtN}),_.U("design:type",Object)],kL.prototype,"flow",void 0);_.E([_.rt("ytd-flow-top-bar-renderer"),_.U("design:type",HTMLElement)],kL.prototype,"topBar",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype",Promise)],kL.prototype,"dataChanged",null);_.E([_.U0("flow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype",Promise)],kL.prototype,"flowChanged",null);_.E([_.p({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],kL);
_.gAR=_.qi()(kL,"ytd-flow-root-renderer",function(){if(LUi!==void 0)return LUi;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return LUi=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var Fuv;var QU=null;_.DW(_.Fp(function(X){return _.k("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.k("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.k(_.eh,{text:function(){return X.data().text}}),_.k("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"cg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.bR}});var TjN=_.Fp(function(X){var t=X.playerControlsProps;var G=X.isShortsPage;return _.k("yt-bigboard",null,_.k(_.d,{cond:function(){return t().isDragging},
then:function(){return _.k("div",{class:"ytBigboardStoryboardHost"},_.k(_.$Vv,{progressBarProps:t,isShortsPage:G}))}}))},"dg");
TjN.idomCompat=!0;_.dm={ACCOUNT_LABEL:IG("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:IG("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:IG("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:IG("AD_BADGE_HINT"),AD_BADGE_TEXT:IG("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:IG("ALL_CHANNELS_LABEL"),AMBIENT_MODE:IG("AMBIENT_MODE"),AMBIENT_MODE_OFF:IG("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:IG("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:IG("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:IG("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:IG("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:IG("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:IG("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:IG("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:IG("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:IG("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:IG("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:IG("AUTO_ZOOM","Auto zoom"),BACK:IG("BACK"),CANCEL:IG("CANCEL"),CHANNEL_SWITCHER_LABEL:IG("CHANNEL_SWITCHER_LABEL"),CLOSE:IG("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:IG("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:IG("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:IG("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:IG("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:IG("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:IG("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:IG("COMMENT_MODAL_CONTENT"),CONFIRM_OK:IG("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:IG("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:IG("COPIED_TO_CLIPBOARD"),COPY:IG("COPY"),COPY_DEBUG_INFO:IG("COPY_DEBUG_INFO"),COPY_EMBED_CODE:IG("COPY_EMBED_CODE"),
COPY_LINK_LABEL:IG("COPY_LINK_LABEL"),COPY_VIDEO_URL:IG("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:IG("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:IG("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:IG("DELETE_FROM_DOWNLOADS"),DIALOG:IG("DIALOG"),DONE:IG("DONE"),DOWNLOAD:IG("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:IG("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:IG("FLAG_CONFIRM"),FLAG_CONTENT:IG("FLAG_CONTENT"),FLAG_LABEL:IG("FLAG_LABEL"),FLAG_TITLE:IG("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:IG("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:IG("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:IG("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:IG("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:IG("HIDE_SEARCH_FILTERS_LABEL"),HOME:IG("HOME","Home"),INVALID_RESPONSE_RECEIVED:IG("INVALID_RESPONSE_RECEIVED"),LIBRARY:IG("LIBRARY","Library"),LISTENING:IG("LISTENING"),LOADING:IG("LOADING"),LONG_PRESS_MIC_TO_SPEAK:IG("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:IG("LOOP"),MENU_DESKTOP:IG("MENU_DESKTOP"),
MENU_EXIT:IG("MENU_EXIT"),MENU_FEEDBACK:IG("MENU_FEEDBACK"),MENU_HELP:IG("MENU_HELP"),MENU_IMPRESSUM:IG("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:IG("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:IG("MENU_SETTINGS"),MENU_SIGN_IN:IG("MENU_SIGN_IN"),MENU_TITLE:IG("MENU_TITLE"),MENU_YOUR_DATA:IG("MENU_YOUR_DATA"),MORE_INFO:IG("MORE_INFO"),MORE_OPTIONS:IG("MORE_OPTIONS"),MUTE_VOLUME:IG("MUTE_VOLUME"),NEW_PLAYLIST:IG("NEW_PLAYLIST"),NEXT_VIDEO:IG("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:IG("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:IG("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:IG("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:IG("NOT_FOUND_TITLE"),NO_DOWNLOADS:IG("NO_DOWNLOADS"),NO_MIC_INPUT:IG("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:IG("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:IG("OOPS_MESSAGE"),OPEN_APP:IG("OPEN_APP"),OPEN_YOUTUBE:IG("OPEN_YOUTUBE"),PAUSE:IG("PAUSE"),PLAY:IG("PLAY"),PLAYER_CAPTION:IG("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:IG("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:IG("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:IG("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:IG("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:IG("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:IG("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:IG("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:IG("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:IG("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:IG("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:IG("PLAYER_MINIMIZE"),PLAYER_NEXT:IG("PLAYER_NEXT"),PLAYER_PAUSE:IG("PLAYER_PAUSE"),PLAYER_PLAY:IG("PLAYER_PLAY"),
PLAYER_PREVIOUS:IG("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:IG("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:IG("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:IG("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:IG("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:IG("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:IG("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:IG("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:IG("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:IG("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:IG("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:IG("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:IG("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:IG("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:IG("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:IG("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:IG("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:IG("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:IG("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:IG("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:IG("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:IG("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:IG("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:IG("PLAY_ALL"),PLEASE_FIX_ERRORS:IG("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:IG("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:IG("PREVIOUS_VIDEO"),PRIVACY_POLICY:IG("PRIVACY_POLICY"),RELOAD:IG("RELOAD"),REQUIRED_LABEL:IG("REQUIRED_LABEL"),SAVE_PLAYLIST:IG("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:IG("SCRUB_SLIDE_USER_EDU"),SEARCH:IG("SEARCH","Search"),
SEARCH_APPEND_LABEL:IG("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:IG("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:IG("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:IG("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:IG("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:IG("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:IG("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:IG("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:IG("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:IG("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:IG("SEEK_SLIDER"),SETTINGS_LABEL:IG("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:IG("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:IG("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:IG("SHOW_LESS"),SHOW_MORE:IG("SHOW_MORE"),SHOW_PLAYER_CONTROLS:IG("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:IG("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:IG("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:IG("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:IG("SIGN_IN_ON_WEB"),STABLE_VOLUME:IG("STABLE_VOLUME"),STABLE_VOLUME_OFF:IG("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:IG("STABLE_VOLUME_ON"),STATS_FOR_NERDS:IG("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:IG("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:IG("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:IG("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:IG("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:IG("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:IG("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:IG("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:IG("TIMESTAMP_SECONDS"),TOGGLE_OFF:IG("TOGGLE_OFF"),TOGGLE_ON:IG("TOGGLE_ON"),TRENDING:IG("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:IG("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:IG("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:IG("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:IG("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:IG("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:IG("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:IG("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:IG("VIDEO_LINK_LABEL")};var AvB=_.Fp(function(X){var t=X.playerApi;X=_.nl("button",function(y){_.oG(y,36843)});
var G=IG("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.k("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.k("button",{el:X,class:"ytPlayerControlsJumpForwardButtonButton",title:G,"aria-label":G,"on:click":_.NI(function(){_.J1(36843);t&&t().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.k("span",null,_.k(_.mw,{icon:"FAST_FORWARD"}))))},"eg");var Y9a=_.Fp(function(X){var t=X.appApi;X=_.nl("button",function(y){_.oG(y,62946)});
var G=IG("OPEN_IN_MINIPLAYER");return _.k("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.k("button",{el:X,class:"ytMiniplayerButtonButton",title:G,"aria-label":G,"on:click":_.NI(function(){_.J1(62946);var y,w;(w=(y=t()).openInMiniplayer)==null||w.call(y);return!1})},_.k(_.mw,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"fg");var s7i=_.Fp(function(X){var t=X.playerApi;X=_.nl("button",function(z){_.oG(z,142812)});
var G=_.J(_.sm(!1,void 0,"I3VCyb")),y=G.next().value,w=G.next().value;G=function(){return IG("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(y()?1:2)})};
return _.k("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.k("button",{el:X,class:"ytPlaybackSpeedButtonButton",title:G,"aria-label":G,"on:click":_.NI(function(){_.J1(142812);if(t){var z=t(),B=y();z.setPlaybackRate(B?1:2);w(!y())}return!1})},_.k("span",null,_.k(_.mw,{icon:function(){return y()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"gg");var DjV=_.Fp(function(X){var t=X.title;var G=X.ariaLabel;var y=X.icon;var w=X.command;var z=X.veType;X=_.nl("button",function(B){z&&_.oG(B,z())});
return _.k("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.k("button",{el:X,class:"ytdThumbnailOverlayButtonButton",title:t,"aria-label":G,"on:click":_.NI(function(){z&&_.J1(z());w&&_.gw().resolve(_.F3).resolveCommand(w())})},_.k(_.mw,{icon:y})))},"hg");var SZ="";var S9r=_.Fp(function(X){var t=X.playerControlsProps,G=X.onClickFn;X=_.qt(function(){var z=t(),B=-1;z.captionsAvailable&&(B=z.captionsEnabled?1:0);return B},void 0,"WecR8e");
var y=_.qt(function(){var z=t();return z.captionsAvailable?_.Qf(z.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Qf("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),w=_.qt(function(){var z=t();
z=z.captionsAvailable?z.captionsEnabled:void 0;return z},void 0,"Q17ly");
return _.k("yt-closed-captions-toggle-button",null,_.k(_.vbQ,{captionIconType:X,ariaLabel:y,ariaPressed:w,onClick:function(z){var B=t();if(B.captionsAvailable){var V=B.playerApi;if(V){var b=B.playerApi;if(b){var e=SZ;if(e){b=b.getOption("captions","track");var g;SZ=(g=b?b.displayName:null)!=null?g:e}else _.Ho(b)?(e=_.OJJ(b),SZ=e.length?(g=hKi(e))?g.displayName:e[0].displayName:""):SZ=""}Zt4(V);_.A("mweb_disable_set_state_captions_killswitch")&&B.setState({captionsEnabled:!B.captionsEnabled})}}var F,
T;(T=(F=B.appApi).showCaptionsToggleToast)==null||T.call(F,B);G==null||G(z)},
isOverlay:!0}))},"ig");var hPB=_.Fp(function(X){var t=X.data;return _.k("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.k(_.X9,{data:function(){return{type:16,text:_.MpV(t().label)}}}))},"jg");var ZhT=_.Fp(function(X){var t=_.cl("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return X.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return X.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return X.size()==="small"?X.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
X.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.k("animated-seek-arrows",{class:_.cl("ytPlayerControlsAnimatedSeekArrowsHost")},_.k("span",{class:t}),_.k("span",{class:t}),_.k("span",{class:t}))},"kg");
ZhT.idomCompat=!0;var q9H=_.Fp(function(){var X=_.Qf("PLAYER_SECONDS",{seconds_placeholder:"30"}),t=_.J(_.sm(!1,void 0,"Yj8msb")),G=t.next().value,y=t.next().value,w=_.J(_.sm(!1,void 0,"r9Z50e"));t=w.next().value;var z=w.next().value;w={};var B=_.cl("jumpForwardOverlayOverlay",(w.jumpForwardOverlayOverlayHidden=t,w));_.LY(function(){var V=null,b=null,e=function(){V!==null&&_.va().cancelJob(V);b!==null&&_.va().cancelJob(b);z(!0);y(!0);_.CX(_.va(),function(){z(!1)});
V=_.CX(_.va(),function(){z(!0);b=_.CX(_.va(),function(){y(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",e);_.Um(function(){window.removeEventListener("jump-forward-clicked",e)})});
return _.k("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.k(_.d,{cond:G,then:function(){return _.k("div",{class:B},_.k(ZhT,{direction:1,size:"large"}),_.k("div",null,X))}}))},"lg");var Cxv=_.dm.MUTE_VOLUME,KuB=_.dm.UNMUTE_VOLUME,Ohi=_.Fp(function(X){var t=X.muteIconType;var G=X.onClick;var y=X.useOutlineIcon;var w=X.useDelhiIcons;X=_.nl("button",function(V){_.oG(V,28662)});
var z=function(){var V=t(),b=y==null?void 0:y(),e=w==null?void 0:w(),g="",F="";switch(V){case -1:case 0:g=b?"VOLUME_OFF":e?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";F=KuB;break;case 1:g=b?"VOLUME_UP_OUTLINE":e?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";F=Cxv;break;case 2:g=b?"VOLUME_DOWN_OUTLINE":e?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";F=Cxv;break;default:_.zr(V)}return{iconName:g,ariaLabel:F}},B=function(){return z().ariaLabel};
return _.k("ytm-mute-button",{class:"ytmMuteButtonHost"},_.k("button",{el:X,class:"ytmMuteButtonButton",title:B,"aria-label":B,"on:click":_.NI(function(V){_.J1(28662);G==null||G(V);return!1})},_.k("span",null,_.k(_.mw,{icon:function(){return z().iconName}}))))},"mg");var uRi=_.Fp(function(X){var t=X.volumeProps;var G=X.onClickFn;var y=X.useOutlineIcon;var w=X.useDelhiIcons;return _.k("yt-mute-toggle-button",null,_.k(Ohi,{muteIconType:function(){var z=t();return z.volumeMuted||z.volume===0?0:z.volume>50?1:2},
onClick:function(z){var B=t().playerApi;B&&(B.isMuted()?B.unMute():B.mute(!1));G==null||G(z)},
useOutlineIcon:function(){return!(y==null||!y())},
useDelhiIcons:function(){return!(w==null||!w())}}))},"ng");
uRi.idomCompat=!0;var Q7V=_.Fp(function(X){var t=X.data;var G=_.nl("ytm-paid-content-overlay-renderer");return _.k("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:G,"on:animationend":_.NI(function(){G.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.k(_.J4,{command:function(){return t().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.k(_.d,{cond:function(){var y;return(y=t().icon)==null?void 0:y.iconType},
then:function(){return _.k("span",null,_.k(_.mw,{icon:function(){var y;return(y=t().icon)==null?void 0:y.iconType}}))}}),_.k("div",{class:"ytmPaidContentOverlayText"},_.k(_.eh,{text:function(){return t().text}})),_.k(_.d,{cond:function(){return t().navigationEndpoint},
then:function(){return _.k(_.mw,{icon:"CHEVRON_RIGHT"})}})))},"og");
Q7V.idomCompat=!0;var xdH=[].concat(_.RY([{register:function(X){var t=HsH(X),G;(G=X().playerApi)==null||G.addEventListener("onVolumeChange",t);return function(){}}},
{register:function(X){var t=oxH(X);X=X().playerApi;X==null||X.addEventListener("captionschanged",t);X==null||X.addEventListener("captionssettingschanged",t);X==null||X.addEventListener("onCaptionsTrackListChanged",t);return function(){}}},
{register:function(X){if(!_.A("mweb_screenreader_accessible_player"))return function(){};
var t=JtB(X),G=document.querySelector("video");G==null||G.addEventListener("touchend",t);return function(){G==null||G.removeEventListener("touchend",t)}}},
{register:function(X){if(!_.A("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var t=JtB(X),G=document.querySelector("video");G==null||G.addEventListener("focus",t);return function(){G==null||G.removeEventListener("focus",t)}}}]),[{register:function(X){var t=GAa(X),G;
(G=X().playerApi)==null||G.addEventListener("onStateChange",t);return function(){}}},
{register:function(X){var t=ytH(X),G;(G=X().playerApi)==null||G.addEventListener("onPlaybackRateChange",t);return function(){}}},
{register:function(X){var t=wx4(X),G;(G=X().playerApi)==null||G.addEventListener("onVideoDataChange",t);return function(){}}},
{register:function(X){var t=zZB(X),G,y;(G=X())==null||(y=G.playerApi)==null||y.addEventListener("onVideoProgress",t);return function(){}}}]);var IUR=_.Fp(function(X){var t=X.data;var G=function(){return _.Qf("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+t().playbackRate})};
return _.k(_.d,{cond:function(){return t().playbackRate&&t().playbackRate!==1},
then:function(){return _.k("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.k("div",{class:"ytPlaybackRateOverlayOverlay"},_.k(ZhT,{direction:1,size:"small"}),_.k("div",{class:"ytPlaybackRateOverlayLabel"},G)))}})},"pg");var Wu4=_.Fp(function(X){var t=X.data;return _.k("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.k(_.d,{cond:function(){var G,y=(G=t())==null?void 0:G.playerResponse,w;return y==null?void 0:(w=y.paidContentOverlay)==null?void 0:w.paidContentOverlayRenderer},
then:function(G){return _.k(Q7V,{data:G})}}))},"rg"),cvH=_.Fp(function(X){var t=X.props;
var G=X.data;var y=X.options;var w=function(){var e,g,F,T;return(e=G())==null?void 0:(g=e.playerResponse)==null?void 0:(F=g.playerConfig)==null?void 0:(T=F.inlinePlaybackConfig)==null?void 0:T.showAudioControls},z=function(){var e,g;
if(w()&&((e=y())==null?void 0:(g=e.additionalButton)==null?void 0:g.button)!==void 0){var F,T,D;e=(F=G())==null?void 0:(T=F.playerApi)==null?void 0:(D=T.getSize())==null?void 0:D.height;if(!(e===void 0||e<180)){var h,u;return(h=y())==null?void 0:(u=h.additionalButton)==null?void 0:u.button}}},B=function(){var e,g;
return(e=y())==null?void 0:(g=e.additionalButton)==null?void 0:g.thumbnailOverlayButtonRenderers},V=function(){var e,g;
return(e=y())==null?void 0:(g=e.additionalButton)==null?void 0:g.thumbnailOverlayButtonViewModels},b=function(){var e=[_.k(uRi,{volumeProps:t}),
_.k(S9r,{playerControlsProps:t})];z()===1&&e.push(_.k(AvB,{playerApi:function(){return t().playerApi}}));
z()===2&&e.push(_.k(Y9a,{appApi:function(){return t().appApi}}));
z()===3&&e.push(_.k(s7i,{playerApi:function(){return t().playerApi}}));
var g=B();if(z()===4&&g){g=_.J(g);for(var F=g.next(),T={};!F.done;T={tooltip$jscomp$2:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$53:void 0,command$jscomp$579:void 0},F=g.next()){F=F.value;T.tooltip$jscomp$2=F.tooltip;var D=void 0,h=void 0;T.ariaLabel$jscomp$22=((D=F.accessibility)==null?void 0:(h=D.accessibilityData)==null?void 0:h.label)||T.tooltip$jscomp$2;D=void 0;T.icon$jscomp$53=(D=F.icon)==null?void 0:D.iconType;T.command$jscomp$579=F.command;T.tooltip$jscomp$2&&T.ariaLabel$jscomp$22&&T.icon$jscomp$53&&
e.push(_.k(DjV,{title:function(u){return function(){return u.tooltip$jscomp$2}}(T),
ariaLabel:function(u){return function(){return u.ariaLabel$jscomp$22}}(T),
icon:function(u){return function(){return u.icon$jscomp$53}}(T),
command:function(u){return function(){return u.command$jscomp$579}}(T)}))}}g=V();
if(z()===4&&g)for(g=_.J(g),F=g.next(),T={};!F.done;T={tooltip$jscomp$3:void 0,ariaLabel$jscomp$23:void 0,icon$jscomp$54:void 0,command$jscomp$580:void 0},F=g.next())F=F.value,T.tooltip$jscomp$3=F.title,T.ariaLabel$jscomp$23=F.accessibilityText||T.tooltip$jscomp$3,T.icon$jscomp$54=F.iconName,T.command$jscomp$580=_.wr(F.onTap),T.tooltip$jscomp$3&&T.ariaLabel$jscomp$23&&T.icon$jscomp$54&&e.push(_.k(DjV,{title:function(u){return function(){return u.tooltip$jscomp$3}}(T),
ariaLabel:function(u){return function(){return u.ariaLabel$jscomp$23}}(T),
icon:function(u){return function(){return u.icon$jscomp$54}}(T),
command:function(u){return function(){return u.command$jscomp$580}}(T)}));
return e};
return _.k(_.d,{cond:w,then:function(){return _.k("div",{class:"ytInlinePlayerControlsTopRightControls"},_.k(_.pY,{each:b},function(e){return _.k("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.k("div",{class:"ytInlinePlayerControlsButtonIcon"},e))}))}})},"sg"),NjT=_.Fp(function(X){var t=X.props;
var G=X.data;var y=X.options;X={};X=_.cl("ytInlinePlayerControlsBottomRightControls",(X.ytInlinePlayerControlsBottomRightControlsHidden=function(){var w;return nxR(G(),y())&&((w=y())==null?void 0:w.insetProgressBar)&&(t().isHovering||t().isDragging)},X));
return _.k("div",{class:X},_.k(pOR,{data:G}),_.k(_.d,{cond:function(){var w;return!((w=y())==null?0:w.hideTimeDisplay)},
then:function(){return _.k(rvH,{props:t,data:G})}}))},"tg"),pOR=_.Fp(function(X){var t=X.data;
return _.k(_.M7,{data:function(){var G;return vST((G=t())==null?void 0:G.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:hPB})},"ug"),rvH=_.Fp(function(X){var t=X.props;
var G=X.data;return _.k(_.d,{cond:function(){return t().isLive},
then:function(){return _.k(Pxa,null)},
else:function(){return _.k(EAN,{props:t,data:G})}})},"vg"),EAN=_.Fp(function(X){var t=X.props;
var G=X.data;var y=_.qt(function(){var w;return l1V((w=G())==null?void 0:w.thumbnailOverlays)},void 0,"kUmuA");
return _.k("div",{class:_.cl("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.dm.PLAYER_TIME_ELAPSED+" "+_.NL_(t().playedTime)}},_.k(_.X9,{data:function(){var w=_.NL_(t().videoDuration-t().playedTime);
return Object.assign({},{type:16,text:w},y())}}))},"wg"),Pxa=_.Fp(function(){var X=_.cl("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.k("div",{class:X},_.k(_.X9,{data:{type:17,text:_.dm.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"xg"),UjR=_.Fp(function(X){var t=X.props;
var G=X.data;var y=X.options;return _.k(_.HDH,{progressBarProps:t,config:function(){var w,z=_.Y((w=G())==null?void 0:w.multiMarkersPlayerBar,_.wrt),B;w=((B=y())==null?0:B.insetProgressBar)?2:1;var V;B=(V=y())==null?void 0:V.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:w,chapterData:z,isInlinePlayback:!0,doSeekOnClick:B,playheadDotBehavior:B?1:0}}})},"yg");_.DW(_.Fp(function(X){var t=X.data;var G=X.appApi;var y=X.options;var w=tHH(t,BwN(G));X={};G={};return _.k("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.k("div",{class:_.cl("ytInlinePlayerControlsDarkenedOverlay",(X.ytInlinePlayerControlsDarkenedOverlayShow=function(){return w().isHovering},X))}),_.k(q9H,null),_.k(IUR,{data:w}),_.k(Wu4,{data:t}),_.k(TjN,{playerControlsProps:w,
isShortsPage:!1}),_.k("div",{class:_.cl((G.ytInlinePlayerControlsControlsHidden=function(){return w().isDragging},G))},_.k(cvH,{props:w,
data:t,options:y}),_.k(NjT,{props:w,data:t,options:y})),_.k(_.d,{cond:function(){return nxR(t(),y())},
then:function(){return _.k(UjR,{props:w,data:t,options:y})}}))},"qg"),"yt-inline-player-controls",{props:{data:_.bR,
appApi:_.sd,options:_.bR}});var eW=function(){var X=_.O.apply(this,arguments)||this;X.opts=null;X.playerControlsData=null;X.playerControlsAppApi={openInMiniplayer:function(){X.openInMiniplayer()}};
X.playerControlsOptions={};X.noAnimation=!1;X.playbackIntentTriggered=!1;X.positionData=null;X.hidden=!0;X.active=!1;X.playing=!1;X.videoPreviewDataIndex=0;X.JSC$18948_playerPromise=null;X.player=null;X.enableAudioControls=!1;X.hasBeenUnmuted=!1;X.captionsHaveBeenTurnedOff=!1;X.JSC$18948_playerEvents=new Map;X.videoPreviewFetchRequest=null;X.scheduledPreviewEndJobId=null;X.JSC$18948_preventProgressSaveTimer=null;X.watchEndpointStartTimeUpdaterInterval=null;X.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};X.windowOnBlurFn=function(){X.deactivate()};
return X};
_.S(eW,_.O);_.H=eW.prototype;
_.H.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.A("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.H.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$18948_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$18948_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$18948_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$18948_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Ik(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Ik(this,this.onScroll))};
_.H.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Ik(this,this.onScroll))};
_.H.onPageTypeChange=function(){this.deactivate()};
_.H.onWindowResized=function(){this.deactivate()};
_.H.onCaptionsChanged=function(X){X=!!X.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!X);this.setCaptionSize()};
_.H.setCaptionSize=function(){var X;if(this.active&&!this.captionsHaveBeenTurnedOff&&((X=this.player)==null?0:X.getCaptionWindowContainerId())){var t;(t=this.player)==null||t.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.H.currentPageAllowed=function(){return!this.isWatchPage};
_.H.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var X=this.positionData,t=X.initialTopPosition,G=X.initialHorizontalPosition;_.Kd(this.hostElement,{"--ytd-video-preview-translate-left":X.finalHorizontalPosition-G+"px","--ytd-video-preview-translate-top":X.finalTopPosition-t+"px","--ytd-video-preview-original-top-position":t+"px","--ytd-video-preview-original-horizontal-position":G+"px",
"--ytd-video-preview-initial-scale":"scale("+X.initialScale+")","--ytd-video-preview-width":X.videoPreviewWidth+"px","--ytd-video-preview-height":X.videoPreviewHeight+"px"});return!0};
_.H.handleOpenVideoPreviewAction=function(X){var t=this,G;return _.n(function(y){if(!t.currentPageAllowed())return y.return(0);t.opts=X;return(G=t.alignVideoPreviewForAnimation(X.thumbnail))?y.return(t.activate()):y.return(0)})};
_.H.onMouseLeave=function(X){this.shouldDeactivateOnMouseLeave(X)&&this.deactivate()};
_.H.onScroll=function(){var X,t;((X=this.opts)==null?0:X.isAutoplay)&&((t=this.opts)==null?0:t.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.H.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.vz.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.H.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.H.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",eW.JSC$18947_DEFAULT_CLICK_LOCATION_BEHAVIOR,eW.JSC$18947_CLICK_LOCATION_ID_MAP)};
_.H.shouldDeactivateOnMouseLeave=function(X){X=X.relatedTarget;if(!X)return!0;var t;return(t=this.opts)!=null&&t.mediaRenderer?!_.hb(this.opts.mediaRenderer).contains(X):!0};
_.H.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.H.onPlaybackStart=function(){var X=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$18948_preventProgressSaveTimer=
_.CX(_.vz,function(){X.resetPreventProgressSaveTimer()},1E4);
var t;if((t=this.opts)==null?0:t.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.CX(_.vz,function(){X.hasMultipleVideoPreviews()?X.startPlaybackForNextVideo():X.deactivate()},this.opts.videoPreviewDurationMs);
var G;this.player.setGlobalCrop(((G=this.opts)==null?0:G.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.H.getRoundedCornersSize=function(){var X;if((X=this.opts)==null?0:X.roundedCornersSize){var t;return(t=this.opts)==null?void 0:t.roundedCornersSize}var G;if((G=this.opts)==null?0:G.enableRounding){var y;if(((y=this.opts)==null?void 0:y.thumbnailSize)==="small")return 1;var w;if(((w=this.opts)==null?void 0:w.thumbnailSize)==="medium")return 2;var z;if(((z=this.opts)==null?void 0:z.thumbnailSize)==="large")return 3}return _.A("web_imp_inset_progress_bar")?3:0};
_.H.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.H.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.H.onMediaContainerClick=function(X){this.isShortcutClick(X)||(this.navigateToWatch(X),X.preventDefault(),X.stopPropagation())};
_.H.activate=function(){var X=this,t,G,y,w,z,B,V,b,e;return _.n(function(g){switch(g.nextAddress){case 1:if(!X.currentPageAllowed())return g.return(0);G=(t=X.videoPreviewData)==null?void 0:t.inlinePlaybackEndpoint;y=_.VE.instance;if(!G||!y)return g.return(0);X.playbackIntentTriggered=!0;((w=X.opts)==null?0:w.mediaRenderer)&&((z=X.opts)==null||!z.isAutoplay)&&iY4(X.opts.mediaRenderer,function(){X.deactivate()});
_.V8(X,function(){X.revealPreviewUi()});
B={};_.A("enable_unknown_lact_fix_on_html5")&&(_.gw().resolve(_.xI),B.lact=_.T5());X.videoPreviewFetchRequest=NnQ(y,X.getInlinePlaybackRequestData(X.videoPreviewData),B);_.CL(g,2);return g.yield(X.videoPreviewFetchRequest,4);case 4:V=g.yieldResult;if(((b=V)==null?void 0:(e=b.playabilityStatus)==null?void 0:e.status)==="OK")return g.return(X.handlePlayerResponse(V));throw Error("Mj");case 2:_.IY(g),X.deactivate();case 3:return g.return(1)}})};
_.H.getInlinePlaybackRequestData=function(X){var t,G=_.A("web_imp_player_mute_params")?((t=this.opts)==null?void 0:t.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:X.inlinePlaybackEndpoint,startPlaybackInMutedState:G}};
_.H.handlePlayerResponse=function(X){var t=this,G,y,w,z,B,V,b,e,g,F;return _.n(function(T){if(T.nextAddress==1){G=t.getInlinePlaybackVideoId();if(!(((y=X)==null?0:(w=y.videoDetails)==null?0:w.videoId)&&t.currentPageAllowed()&&t.playbackIntentTriggered&&t.opts&&G))return t.deactivate(),T.return(0);if(X.videoDetails.videoId!==G)return T.return(0);t.enableAudioControls=!!((z=X.playerConfig)==null?0:(B=z.inlinePlaybackConfig)==null?0:B.showAudioControls);X.trackingParams=t.getInlinePlaybackTrackingParams();
if(!t.inlinePlayer)return T.return(0);V={};if(e=_.Y((b=t.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint,_.nq))V.watch_endpoint=e;if(t.videoPreviewData){var D,h=(D=_.Y(t.videoPreviewData.inlinePlaybackEndpoint,_.nq))==null?void 0:D.startTimeSeconds;h!==void 0&&(X.playerConfig||(X.playerConfig={}),X.playerConfig.playbackStartConfig||(X.playerConfig.playbackStartConfig={}),X.playerConfig.playbackStartConfig.startPosition||(X.playerConfig.playbackStartConfig.startPosition={}),X.playerConfig.playbackStartConfig.startSeconds=
h,X.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(h*1E3))}t.inlinePlayer.loadVideoWithPlayerResponse(X,V);if(t.JSC$18948_playerPromise)return T.jumpTo(2);t.JSC$18948_playerPromise=t.inlinePlayer.getPlayerPromise();return T.yield(t.JSC$18948_playerPromise,3)}T.nextAddress!=2&&(g=T.yieldResult,g.setInlinePreview(!0),g.setSizeStyle(!1,!0),t.ytPlayerListenerBehavior.listenToPlayerEvents(g,t.JSC$18948_playerEvents),t.player=g,_.Yt(t.hostElement,"player-api-ready"));((F=t.opts)==
null?0:F.showPlayerControls)&&t.videoPreviewData&&t.player&&(t.playerControlsData={playerResponse:X,isInlinePlayback:!0,thumbnailOverlays:t.videoPreviewData.thumbnailOverlays,playerApi:t.player},t.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!t.unroundCornersForPlayback,additionalButton:t.getAdditionalButtonType(t.videoPreviewData.thumbnailOverlays)});return T.return(2)})};
_.H.revealPreviewUi=function(){var X=this;this.playbackIntentTriggered&&_.e9_(this,function(){X.hasThumbnailPositionChangedSinceTriggered()||(X.updateActiveState(!0),X.noAnimation=!1)})};
_.H.hasThumbnailPositionChangedSinceTriggered=function(){var X=this.positionData,t=this.getThumbnailPositionData();return(X==null?void 0:X.initialTopPosition)!==(t==null?void 0:t.initialTopPosition)||(X==null?void 0:X.initialHorizontalPosition)!==(t==null?void 0:t.initialHorizontalPosition)};
_.H.getThumbnailPositionData=function(){var X,t;if((t=this.opts)==null||!t.thumbnail)return null;t=this.opts.thumbnail;var G=((X=this.opts)==null?0:X.cropPlayerToFillThumbnailHorizontally)?!1:!0;var y=t.getBoundingClientRect();X=y.width;t=y.height;var w=y.top+window.scrollY;y=y.left+window.scrollX;var z=G?Math.ceil(X):X;G=G?Math.ceil(t):t;var B=X/z;X={initialScale:B,initialTopPosition:w-12*B,finalTopPosition:w-12-(G-t)/2,initialHorizontalPosition:y-(12+(z-X)/2),finalHorizontalPosition:y-12-(z-X)/
2,videoPreviewWidth:z,videoPreviewHeight:G};return X};
_.H.updateActiveState=function(X){this.active=X;this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:X}))};
_.H.stopPlayer=function(X){X=X.resetWatchEndpointStartTime===void 0?!1:X.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(X)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.vz.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.H.deactivate=function(X){X=X===void 0?{}:X;X=X.resetWatchEndpointStartTime===void 0?!1:X.resetWatchEndpointStartTime;QU&&(QU.disconnect(),QU=null);this.stopPlayer({resetWatchEndpointStartTime:X});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.H.isValidThumbnailOverlayButton=function(X,t){X=X.thumbnailOverlayButtonRenderer;var G;return!!X&&!!X.tooltip&&!((G=X.icon)==null||!G.iconType)&&t.includes(X.icon.iconType)};
_.H.isValidThumbnailOverlayButtonViewModel=function(X,t){var G;X=_.Y((G=X.thumbnailOverlayButtonViewModel)==null?void 0:G.overlayButton,_.vk);return!!X&&!!X.title&&!!X.iconName&&t.includes(X.iconName)};
_.H.getAdditionalButtonType=function(X){var t=this;if(_.A("web_imp_fastforward_button"))return{button:1};if(_.A("web_imp_miniplayer_button"))return{button:2};if(_.A("web_imp_playback_speed_button"))return{button:3};var G=["BOX_STACK_3"],y=(X||[]).filter(function(z){return t.isValidThumbnailOverlayButton(z,G)}).map(function(z){return z.thumbnailOverlayButtonRenderer});
if(y.length)return{button:4,thumbnailOverlayButtonRenderers:y};var w=["BOX_STACK_3"];X=(X||[]).filter(function(z){return t.isValidThumbnailOverlayButtonViewModel(z,w)}).map(function(z){return _.Y(z.thumbnailOverlayButtonViewModel.overlayButton,_.vk)});
if(X.length)return{button:4,thumbnailOverlayButtonViewModels:X}};
_.H.allowCaptions=function(){var X;return!((X=this.opts)==null?0:X.forceCaptionsOff)};
_.H.allowUnmuting=function(){var X;return this.enableAudioControls&&!((X=this.opts)==null?0:X.forceMutedVolume)};
_.H.beginStartTimeUpdater=function(){var X=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.ht(function(){X.updateWatchEndpointStartTime()},1E3)};
_.H.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.H.resetPreventProgressSaveTimer=function(){this.JSC$18948_preventProgressSaveTimer!==null&&(_.vz.cancelJob(this.JSC$18948_preventProgressSaveTimer),this.JSC$18948_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.H.updateWatchEndpointStartTime=function(X){var t=this.videoPreviewData;if(this.player&&t!=null&&t.inlinePlaybackEndpoint&&!this.JSC$18948_preventProgressSaveTimer){X=X?0:Math.floor(this.player.getCurrentTime());var G=_.Y(t.navigationEndpoint,_.nq);G&&(G.startTimeSeconds=X);if(t=_.Y(t.inlinePlaybackEndpoint,_.nq))t.startTimeSeconds=X}};
_.H.isShortcutClick=function(X){return!!X&&(X.ctrlKey||X.shiftKey||X.metaKey)};
_.H.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.H.openInMiniplayer=function(){var X=this,t,G;return _.n(function(y){if(y.nextAddress==1){G=(t=X.videoPreviewData)==null?void 0:t.navigationEndpoint;if(!G)return y.return();_.cF().lockupActivation=!0;return y.yield(_.BUo(_.gw().resolve(_.G2),G),2)}_.cF().userActivation=!0;_.W$(y)})};
_.H.navigateToWatch=function(X){var t,G=(t=this.videoPreviewData)==null?void 0:t.navigationEndpoint;if(G){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(G,X,!0);else{if(_.A("web_thumbnail_to_watch_transition")){var y,w;(y=this.opts)==null||(w=y.onNavigateToWatchCallback)==null||w.call(y)}_.Yt(this.hostElement,"yt-navigate",{endpoint:G})}this.deactivate()}};
_.H.getInlinePlaybackVideoId=function(){var X,t;return(t=_.Y((X=this.videoPreviewData)==null?void 0:X.inlinePlaybackEndpoint,_.nq))==null?void 0:t.videoId};
_.H.getInlinePlaybackTrackingParams=function(){var X,t;return(X=this.videoPreviewData)==null?void 0:(t=X.inlinePlaybackEndpoint)==null?void 0:t.clickTrackingParams};
_.H.hasMultipleVideoPreviews=function(){var X;return!!(((X=this.opts)==null?0:X.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.H.startPlaybackForNextVideo=function(){var X;(X=this.opts)!=null&&X.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())};
_.ke.Object.defineProperties(eW.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.opts)==null?0:X.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.opts)==null||!X.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 X;if(Array.isArray((X=this.opts)==null?void 0:X.videoPreviewData)){var t;return(t=this.opts)==null?void 0:t.videoPreviewData[this.videoPreviewDataIndex]}var G;return(G=this.opts)==null?void 0:G.videoPreviewData}}});
eW.prototype.onIsAdsVideoChange=eW.prototype.onIsAdsVideoChange;eW.prototype.onInlinePreviewIsEnabledChange=eW.prototype.onInlinePreviewIsEnabledChange;eW.prototype.optsChanged=eW.prototype.optsChanged;eW.prototype.onMouseLeave=eW.prototype.onMouseLeave;eW.JSC$18947_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);eW.JSC$18947_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"}];
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],eW.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],eW.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],eW.prototype,"componentBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],eW.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.TZ.YtSparklesClickLocationBehavior),_.U("design:type",Object)],eW.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eW.prototype,"opts",void 0);_.E([_.K(),_.U("design:type",Object)],eW.prototype,"playerControlsData",void 0);
_.E([_.K(),_.U("design:type",Object)],eW.prototype,"playerControlsAppApi",void 0);_.E([_.K(),_.U("design:type",Object)],eW.prototype,"playerControlsOptions",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eW.prototype,"noAnimation",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eW.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eW.prototype,"active",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eW.prototype,"playing",void 0);_.E([_.K({selector:_.hO_}),_.U("design:type",Boolean)],eW.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.K(),_.U("design:type",String)],eW.prototype,"pagePath",void 0);_.E([_.K({selector:_.MQ}),_.U("design:type",Boolean)],eW.prototype,"isWatchPage",void 0);_.E([_.C("videoPreviewData"),_.U("design:type",Object),_.U("design:paramtypes",[])],eW.prototype,"thumbnailData",null);
_.E([_.C("opts","active"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],eW.prototype,"hidePlayerControls",null);_.E([_.C("opts"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],eW.prototype,"isAdsVideo",null);_.E([_.C("opts"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],eW.prototype,"roundedCornersSmall",null);
_.E([_.C("opts"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],eW.prototype,"roundedCornersMedium",null);_.E([_.C("opts"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],eW.prototype,"roundedCornersLarge",null);_.E([_.C("opts"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],eW.prototype,"unroundCornersForPlayback",null);
_.E([_.C("opts","videoPreviewDataIndex"),_.U("design:type",Object),_.U("design:paramtypes",[])],eW.prototype,"videoPreviewData",null);_.E([_.K(),_.U("design:type",Object)],eW.prototype,"videoPreviewDataIndex",void 0);_.E([_.rt("#inline-player"),_.U("design:type",Object)],eW.prototype,"inlinePlayer",void 0);_.E([_.WW("mouseleave"),_.U("design:type",Function),_.U("design:paramtypes",[MouseEvent]),_.U("design:returntype")],eW.prototype,"onMouseLeave",null);
_.E([_.U0("opts"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eW.prototype,"optsChanged",null);_.E([_.U0("inlinePreviewIsEnabled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eW.prototype,"onInlinePreviewIsEnabledChange",null);_.E([_.cW("isAdsVideo"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eW.prototype,"onIsAdsVideoChange",null);
_.E([_.p({is:"ytd-video-preview",disableElementRegistration:!0})],eW);
_.N(eW,"ytd-video-preview",function(){if(Fuv!==void 0)return Fuv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Fuv=X},{mode:2});
}catch(e){_._DumpException(e)}
try{
var QzH,IcQ,WSN;QzH=function(X){return _.A("kevlar_watch_cinematics_invisible")||X.fullscreen&&_.A("kevlar_watch_cinematics_invisible_in_fullscreen")||X.theater&&!X.fullscreen&&_.A("kevlar_watch_cinematics_invisible_in_theater")};
IcQ=function(){var X=document.createElement("canvas"),t=X.getContext("2d");if(!t)throw Error("lo");_.ty(X,{position:"absolute",width:"100%",height:"100%"});return{element:X,context:t}};
WSN=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.A("kevlar_watch_cinematics_css_blur")};
_.cOR=function(X,t,G){return Math.abs(X-t)<=(G||1E-6)};
_.pDB=function(X,t){return X==t?!0:X&&t?X.width==t.width&&X.height==t.height:!1};_.rOH=new _.ja("notificationActionRenderer");var NHN=function(X){var t=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Kp;this.element.addEventListener("load",function(){t.loaded=!0;t.resolver.resolve(t.element)});
this.element.addEventListener("error",function(){t.failed=!0});
this.element.src=X};var PKV=function(X,t){this.image=X;this.frame=t};
PKV.prototype.drawToCanvas=function(X,t){var G=this.frame.width/this.frame.columns,y=this.frame.height/this.frame.rows,w=t.offsetX,z=t.offsetY;QzH(t)?(X.fillStyle=t.fullscreen?"#000":"#0f0f0f",X.fillRect(w,z,(t==null?void 0:t.width)||G,(t==null?void 0:t.height)||y)):X.drawImage(this.image,this.frame.column*G,this.frame.row*y,G,y,w,z,(t==null?void 0:t.width)||G,(t==null?void 0:t.height)||y)};
var EGN=function(X){this.color=X};
EGN.prototype.drawToCanvas=function(X,t){var G=t.offsetX,y=t.offsetY,w=t.width,z=t.height;X.fillStyle=QzH(t)?t.fullscreen?"#000":"#0f0f0f":this.color;X.fillRect(G,y,w,z)};var Mv=function(X,t){_.Au.call(this);this.playerApi=t;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.IH(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();UvV(this,X);mvB(this);this.update()};
_.S(Mv,_.Au);Mv.prototype.addEventListeners=function(){var X=this,t=function(){X.update()},G=function(w){X.paused||(w.type==="newdata"&&(X.mosaics.clear(),R14(X),Xq(X)),mvB(X),X.update())},y=function(){X.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",t);this.playerApi.addEventListener("onVideoDataChange",G);this.playerApi.addEventListener("onStateChange",y);this.addOnDisposeCallback(function(){X.playerApi.removeEventListener("onVideoProgress",t);X.playerApi.removeEventListener("onVideoDataChange",G);X.playerApi.removeEventListener("onStateChange",y)})};
var UvV=function(X,t){X.cinematicContainerRenderer!==t&&(X.cinematicContainerRenderer=t,R14(X),Xq(X),X.colorStoreUpdateJobId=_.vz.addLowPriorityJob(function(){var G;if((G=X.cinematicContainerRenderer.colorStore)!=null&&G.sampledColors){G=Infinity;for(var y=_.J(X.cinematicContainerRenderer.colorStore.sampledColors),w=y.next();!w.done;w=y.next()){w=w.value;var z=Number(w.key);z!==0&&z<G&&(G=z);z=_.yY(w.value);X.colorStore.set(w.key,z)}X.colorStoreTimeInterval=G}}))},R14=function(X){X.colorStoreUpdateJobId&&
(_.vz.cancelJob(X.colorStoreUpdateJobId),X.colorStoreUpdateJobId=void 0);
X.colorStore.clear();X.currentStoryboardColor=void 0},i6H=function(X,t){var G;
return(G=X.getStoryboardFrame(t))==null?void 0:G.url};
Mv.prototype.onPlayerStateChange=function(){this.update()};
Mv.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var mvB=function(X){var t=X.getStoryboardFrame(0);t&&(t=new _.IH(t.width/t.columns,t.height/t.rows),_.pDB(X.currentStoryboardSize,t)||(X.currentStoryboardSize=t,X.publish("STORYBOARD_SIZE_CHANGED",X.currentStoryboardSize)))},LSH=function(X,t){X.currentStoryboardIndex=t;
X.pendingStoryboardIndex=NaN;t=X.getStoryboardFrame(X.currentStoryboardIndex);X.currentStoryboard=new PKV(X.mosaics.get(t.url).element,t);X.publish("STORYBOARD_CHANGED",X.currentStoryboard);X.lastUpdateTime=(0,_.gl)()};
Mv.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Xq=function(X){X.currentStoryboardIndex=NaN;X.pendingStoryboardIndex=NaN;X.currentStoryboard&&(X.currentStoryboard=void 0,X.publish("STORYBOARD_CHANGED",void 0));X.lastUpdateTime=NaN};
Mv.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Xq(this);else{var X=this.playerApi.getPlayerState(1);if(X===-1||X===5||X===0)Xq(this);else if(isNaN(this.lastUpdateTime)||!((0,_.gl)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(X=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){X=""+Math.round(X*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var t=this.colorStore.get(X);t?t!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=t,this.currentStoryboard=new EGN(t),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.gl)()):(_.Mj(new _.NJ("Could not find color for timestamp: "+X,this.cinematicContainerRenderer)),Xq(this))}else Xq(this);else vGq(this,X)}};
var vGq=function(X,t){var G=X.getStoryboardFrameIndex(t);if(G!==X.currentStoryboardIndex&&G!==X.pendingStoryboardIndex){t=i6H(X,G);var y=X.mosaics.get(t);y?y.loaded&&LSH(X,G):(X.pendingStoryboardIndex=G,G=new NHN(t),X.mosaics.set(t,G),G.resolver.promise.then(function(){if(!X.isDisposed()&&!X.paused&&!isNaN(X.pendingStoryboardIndex)){var w=i6H(X,X.pendingStoryboardIndex);if(w){var z;(z=X.mosaics.get(w))!=null&&z.loaded&&LSH(X,X.pendingStoryboardIndex)}else Xq(X)}}))}};
Mv.prototype.getStoryboardFrameIndex=function(X){var t=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(X,t)};
Mv.prototype.getStoryboardFrame=function(X){var t=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,G,y;return((y=(G=this.playerApi).getStoryboardFrame)==null?void 0:y.call(G,X,t))||null};
Mv.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var ts=function(X,t,G,y){y=y===void 0?!1:y;_.po.call(this);this.cinematicContainerRenderer=t;this.playerApi=G;this.theater=this.fullscreen=!1;var w;this.ambientLightThemeEnabled=!y&&!!(t==null?0:(w=t.config)==null?0:w.enableInLightTheme);this.ambientFullscreenEnabled=y&&_.A("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=y&&_.A("web_cinematic_theater_mode");this.container=document.createElement("div");X.appendChild(this.container);var z;if(_.A("web_cinematic_theater_mode")||_.A("web_cinematic_fullscreen")||
(t==null?0:(z=t.config)==null?0:z.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);acN(this);X=this.ambientV2Container||this.container;this.backCanvas=IcQ();this.frontCanvas=IcQ();X.appendChild(this.backCanvas.element);X.appendChild(this.frontCanvas.element);this.storyboardManager=new Mv(t,this.playerApi);_.h6(this,this.storyboardManager);this.addEventListeners();lci(this)?xvq(this,100+$v(this)*3*2,100+$v(this)*3*2):fcT(this);
MuN(this,this.storyboardManager.currentStoryboard)};
_.S(ts,_.po);var acN=function(X){X.ambientV2Container?XgH(X):(_.ty(X.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+$O4(X)+", "+tzT(X)+")"}),WSN()&&_.ty(X.container,"filter","blur("+_.At("cinematic_watch_css_filter_blur_strength",40)+"px)"))},XgH=function(X){if(X.ambientV2Container){var t=X.playerApi.getVideoAspectRatio();
_.ty(X.container,{"aspect-ratio":""+t,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.ty(X.ambientV2Container,{"aspect-ratio":""+t,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+$O4(X)+", "+tzT(X)+")"});WSN()&&_.ty(X.ambientV2Container,"filter","blur("+_.At("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
ts.prototype.setFullscreen=function(X,t){this.fullscreen=X;this.theater=!!t;acN(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),X=this.storyboardManager.currentStoryboard,Gsq(this),X&&ys2(this,X)};
ts.prototype.addEventListeners=function(){var X=this,t=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(w){MuN(X,w)}),G=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){fcT(X)});
this.addOnDisposeCallback(function(){X.storyboardManager.unsubscribeByKey(t);X.storyboardManager.unsubscribeByKey(G)});
if(this.ambientV2Container){var y=function(){XgH(X)};
this.playerApi.addEventListener("onVideoDataChange",y);this.addOnDisposeCallback(function(){X.playerApi.removeEventListener("onVideoDataChange",y)})}};
var fcT=function(X){if(!lci(X)){var t=X.storyboardManager.currentStoryboardSize;isNaN(t.width)||isNaN(t.height)||xvq(X,Number(t.width)+$v(X)*3*2,Number(t.height)+$v(X)*3*2)}},xvq=function(X,t,G){X.backCanvas.element.width=t;
X.backCanvas.element.height=G;X.frontCanvas.element.width=t;X.frontCanvas.element.height=G},lci=function(X){return X.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},MuN=function(X,t,G){G=G===void 0?!1:G;
var y=X.frontCanvas.element.getAnimations()[0];y?(y.pause(),X.backCanvas.context.globalAlpha=Number(getComputedStyle(X.frontCanvas.element).opacity),X.frontCanvas.element.style.opacity="0",y.finish()):X.backCanvas.context.globalAlpha=1;X.backCanvas.context.drawImage(X.frontCanvas.element,0,0,X.backCanvas.element.width,X.backCanvas.element.height);Gsq(X);t&&ys2(X,t);t=t?X.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.At("cinematic_watch_fade_out_duration",500);y=_.At("cinematic_watch_transition_frame_rate")/
1E3;var w={};y&&(w={easing:"steps("+Math.round(t*y)+")"});(G===void 0?0:G)||X.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:t,iterations:1},w));X.frontCanvas.element.style.opacity="1"},Gsq=function(X){var t=X.ambientLightThemeEnabled||X.ambientTheaterModeEnabled,G=X.ambientLightThemeEnabled||X.ambientFullscreenEnabled;
X.frontCanvas.context.fillStyle=X.theater&&t||X.fullscreen&&G?"#000":"#0f0f0f";WSN()||(X.frontCanvas.context.filter="blur(0)");X.frontCanvas.context.fillRect(0,0,X.frontCanvas.element.width,X.frontCanvas.element.height)},ys2=function(X,t){WSN()||(X.frontCanvas.context.filter="blur("+$v(X)+"px)");
X.frontCanvas.context.globalAlpha=X.fullscreen&&X.ambientFullscreenEnabled||X.theater&&X.ambientTheaterModeEnabled?_.At("cinematic_watch_effect_letterbox_opacity",.8):_.At("cinematic_watch_effect_opacity",.4);var G={offsetX:$v(X)*3,offsetY:$v(X)*3,theater:X.theater,fullscreen:X.fullscreen};lci(X)&&(G.width=100,G.height=100);t.drawToCanvas(X.frontCanvas.context,G);X.frontCanvas.context.globalAlpha=1},$v=function(X){var t;
return(t=X.cinematicContainerRenderer.config.blurStrength)!=null?t:5},$O4=function(X){var t,G;
if((X.fullscreen||X.theater)&&((t=X.cinematicContainerRenderer.config)==null?0:(G=t.watchFullscreenConfig)==null?0:G.colorSourceWidthMultiplier))return X.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var y;return(y=X.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?y:X.cinematicContainerRenderer.config.colorSourceSizeMultiplier},tzT=function(X){var t,G;
if((X.fullscreen||X.theater)&&((t=X.cinematicContainerRenderer.config)==null?0:(G=t.watchFullscreenConfig)==null?0:G.colorSourceHeightMultiplier))return X.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var y;return(y=X.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?y:X.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
ts.prototype.disposeInternal=function(){_.po.prototype.disposeInternal.call(this);this.container.remove()};
ts.prototype.clear=function(){MuN(this,void 0,!0)};
ts.prototype.pause=function(){this.storyboardManager.pause()};var wgv;wgv=_.NF(function(){var X,t,G=!((t=(X=document.createElement("canvas")).getContext)==null||!t.call(X,"2d")),y;X=!((y=CSS)==null||!y.supports("filter: blur(0)"));y=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var w;return G&&X&&y&&!((w=CSS)==null||!w.supports("aspect-ratio: 1 / 1"))});
_.Gs=function(X,t){_.Au.call(this);this.container=X;this.playerApi=t;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=z$a(this);this.update()};
_.S(_.Gs,_.Au);_.HHr=function(X){var t=document.documentElement.hasAttribute("dark");X.isDarkModeEnabled=t;X.update()};
_.ovT=function(X,t){X.settingEnabled=t;X.update()};
_.Gs.prototype.setFullscreen=function(X,t){this.fullscreen=X;this.theater=!!t;this.update()};
_.JsB=function(X,t){X.cinematicContainerRenderer=t;X.cinematicContainerRenderer&&(X.cinematicsVe=_.ai(X.isShorts()?227858:159022),_.Cc(_.Pj(),X.cinematicsVe),X.loggingClientData={watchCinematicContainerData:{presentationStyle:X.cinematicContainerRenderer.presentationStyle}});X.update()};
_.Gs.prototype.isShorts=function(){var X,t;return((X=this.cinematicContainerRenderer)==null?void 0:(t=X.config)==null?void 0:t.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Gs.prototype.isAllowed=function(){var X;if(X=wgv()){var t,G,y;X=((G=this.cinematicContainerRenderer)==null?void 0:G.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((y=this.cinematicContainerRenderer)==null||!y.colorStore)||((t=this.cinematicContainerRenderer)==null?void 0:t.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(X)if(_.A("web_cinematics_pausing")){var w,z;X=this.isDarkModeEnabled||!!((w=this.cinematicContainerRenderer)==
null?0:(z=w.config)==null?0:z.enableInLightTheme)}else{var B,V;w=!!((B=this.cinematicContainerRenderer)==null?0:(V=B.config)==null?0:V.enableInLightTheme)&&(_.Md("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);X=this.isDarkModeEnabled||w}if(B=X){var b,e;B=!((e=(b=this.prefersReducedMotionQuery)==null?void 0:b.matches)!=null&&e)}return B};
_.BOi=function(X){(X=X.currentCinematicEffect)!=null&&(X=X.storyboardManager,X.paused=!1,mvB(X),X.update())};
_.Gs.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var z$a=function(X){if(!_.A("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion: reduce)"),G=function(){X.update()};
t.addListener(G);X.addOnDisposeCallback(function(){t.removeListener(G)});
return t}};
_.Gs.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var X=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new ts(this.container,X,this.playerApi,this.isDarkModeEnabled),_.h6(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var t=this.currentCinematicEffect;t.cinematicContainerRenderer!==
X&&(t.cinematicContainerRenderer=X,UvV(t.storyboardManager,X),acN(t));X=_.cP();_.pq(0,194,!0);X.save();X=_.lw();this.cinematicsVe&&X&&_.o$(X,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(X=_.lw(),this.cinematicsVe&&X&&_.Jg(X,[this.cinematicsVe],!1,this.loggingClientData),_.Vs(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.ke.Object.defineProperties(_.Gs.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var JOR;var BHH;_.le({_template:function(){if(BHH!==void 0)return BHH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=
X.content,G=t.insertBefore;JOR===void 0&&(JOR=document.createElement("template"));var y=JOR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return BHH=X},
is:"tp-yt-iron-pages",behaviors:[_.ax,_.nz],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var wnV;_.z5V=function(){if(_.A("kevlar_home_skeleton")&&!wnV){var X=document.querySelector("#home-page-skeleton");X&&(_.ls("hgcr"),_.uf(X),wnV=!0)}};
wnV=!1;_.AU=new _.ja("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var aKq,xpR,fKR,MLr,XdV,$CQ,tdB,GkR,wdH,zaQ,HIa,BUi,VdT,bIq,npV,opq,JN2,eaq;_.vdr=function(X,t,G){t=t===void 0?5:t;if(t!==0){var y=typeof X==="function"?X():document.querySelector(X);y?(G==null?0:G.enableSmartFocus)?_.ctY(y):y.focus():setTimeout(function(){_.vdr(X,t-1,G)},500)}};
aKq=function(X){return String.raw.apply(String,[{raw:X}].concat(_.RY(_.f1.apply(1,arguments).map(function(t){return t instanceof Array?t.join(""):t}))))};
xpR=function(X){var t=_.f1.apply(1,arguments),G=t.length;if(!Array.isArray(X)||!Array.isArray(X.raw)||X.length!==X.raw.length||!_.gJP&&X===X.raw||!(_.gJP&&!_.FES||_.Pt(X))||G+1!==X.length)throw new TypeError("$");return new lKi(Object.freeze({strings:Object.freeze(X),args:Object.freeze(t)}))};
fKR=function(X){return _.EjY(_.Pal(X&16777215))<.5};
MLr=function(X,t,G){var y=G.minimumRowsOfVideosBetweenSections===void 0?1:G.minimumRowsOfVideosBetweenSections;return X<(G.minimumRowsOfVideosAtStart===void 0?2:G.minimumRowsOfVideosAtStart)||t!==null&&X-t<=y?!1:!0};
XdV=function(X,t){var G=0,y=0;X=_.J(X);for(var w=X.next();!w.done;w=X.next()){var z=w.value;if(z.richItemRenderer)z.richItemRenderer.rowIndex=y,z.richItemRenderer.colIndex=G++,G===t&&(G=0,y++);else if(z.richGroupRenderer&&z.richGroupRenderer.numColumns!==void 0)z.richGroupRenderer.rowIndex=y,z.richGroupRenderer.colIndex=G,G+=z.richGroupRenderer.numColumns,G===t&&(G=0,y++);else if(z.richSectionRenderer){var B=w=void 0;if(z=_.Y((w=z)==null?void 0:(B=w.richSectionRenderer)==null?void 0:B.content,_.s6h))z.rowIndex=
y++}}};
$CQ=function(X,t){var G=t.contentElement;t=t.rendererToTagNameMap;if(G&&t&&t.size!==0){for(var y=new Map,w=_.J(G.children),z=w.next();!z.done;z=w.next()){z=z.value;var B=z.tagName.toLowerCase(),V=y.get(B);V||(V=[],y.set(B,V));V.push(z)}if(y.size!==0)for(w=Math.min(X.length,G.children.length),z=new Map,B=0;B<w;B++){V=Object.keys(X[B])[0];V=t.get(V);if(!V)break;var b=z.get(V);b===void 0&&(b=0,z.set(V,b));var e=y.get(V);if(!e||b>=e.length)break;z.set(V,b+1);V=e[b];b=G.children[B];b!==V&&(_.pbG=!0,_.rcJ.set(V,
!0),G.insertBefore(V,b),_.rcJ.delete(V),_.pbG=!1)}}};
tdB=function(X,t,G,y,w,z,B){y=y===void 0?{}:y;if(!X||!X.length)return[];X=X.slice();var V=[],b=[];w=null;for(var e=0,g=function(c){b.sort(function(R,L){return L.skippedOnRow-R.skippedOnRow});
for(var P,l=(P=b.shift())==null?void 0:P.content;l;)!l.richSectionRenderer&&c||V.push(l),P=void 0,l=(P=b.shift())==null?void 0:P.content},F=void 0;X.length>0||b.length>0;){for(var T=[],D=t;D>0;){var h=void 0,u=void 0,W=(u=b[0]&&b[0].skippedOnRow<e?(h=b.shift())==null?void 0:h.content:void 0)!=null?u:X.shift();
if(!W)break;if(W.richItemRenderer)h=W.richItemRenderer.targetId,u=void 0,h&&((u=B)==null?0:u.has(h))&&(h=B.get(h),!F||h&&h.timestamp>F.timestamp)&&(F=h),T.push(W),D--;else if(W.richGroupRenderer&&W.richGroupRenderer.numColumns!==void 0)W.richGroupRenderer.numColumns<=D?(T.push(W),D-=W.richGroupRenderer.numColumns):D===t&&W.richGroupRenderer.numColumns>t?(T.push({richGroupRenderer:Object.assign({},W.richGroupRenderer,{numColumns:t})}),D=0):b.push({content:W,skippedOnRow:e});else if(W.richSectionRenderer)if(MLr(e,
w,y)&&D===t){V.push(W);w=e;e++;continue}else b.push({content:W,skippedOnRow:e});else if(W.continuationItemRenderer){g(!0);V.push(W);D=0;break}if(D===0)V.push.apply(V,_.RY(T));else if(!G&&X.length===0){g(!1);V.push.apply(V,_.RY(T));D=0;break}}e++;F&&(V.push(F.content),e++);F=void 0}XdV(V,t);z&&$CQ(V,z);return V};
GkR=function(){return _.f1.apply(0,arguments).flat().filter(function(X){return X}).join(";")};
wdH=function(){return xpR(yNq,GkR.apply(null,_.RY(_.f1.apply(0,arguments))))};
zaQ=function(X){switch(X){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
HIa=function(X){return X.talkToRecs};
BUi=function(X,t){if(t){var G=_.dV().getState().entities.flowStateEntity,y=opq(X),w=[t];y&&y!==t&&w.push(y);var z=!0,B;if(G&&X.flowStateEntityKey&&((B=G[X.flowStateEntityKey])==null?void 0:B.primaryButtonDisabled)!==void 0){var V;z=!((V=G[X.flowStateEntityKey])==null||!V.primaryButtonDisabled)}JN2(X,y!=null?y:t,w,z)}};
VdT=function(X){return _.rz(_.dV(),function(t){return t.entities.flowStateEntity},function(t,G){if(X.flowStateEntityKey){var y,w=t==null?void 0:(y=t[X.flowStateEntityKey])==null?void 0:y.currentStepId,z;
G=G==null?void 0:(z=G[X.flowStateEntityKey])==null?void 0:z.currentStepId;z=_.dV().getState().talkToRecs;if(w&&w!==G){var B;t=(t==null?void 0:(B=t[X.flowStateEntityKey])==null?void 0:B.stepIdStack)||Object.keys(z.stepStates);B=!npV(z==null?void 0:z.stepStates[w]);JN2(X,w,t,B)}}})};
bIq=function(X){return _.rz(_.dV(),HIa,function(t){var G=opq(X);if(G){var y=Object.keys(t.stepStates);t=!npV(t==null?void 0:t.stepStates[G]);JN2(X,G,y,t)}})};
npV=function(X){var t=Object.keys((X==null?void 0:X.selectionStates)||{}).reduce(function(z,B){return z||(X==null?void 0:X.selectionStates[B].isSelected)},!1),G,y,w=!!(X==null?0:(G=X.userQuery)==null?0:(y=G.userQuery)==null?0:y.trim());
return t||w};
opq=function(X){if(X.flowStateEntityKey){var t,G,y=(t=_.dV().getState().entities.flowStateEntity)==null?void 0:(G=t[X.flowStateEntityKey])==null?void 0:G.currentStepId;if(y)return y}};
JN2=function(X,t,G,y){_.dV().dispatch(_.EW("flowStateEntity",X.flowStateEntityKey,{currentStepId:t,stepIdStack:G,key:X.flowStateEntityKey,primaryButtonDisabled:y}))};
_.kkR=function(X,t){return _.Kg(X.entities,"youchatPendingResponseEntity",t)};
_.dCN=function(X){return function(t){_.dX(_.EW("youchatPendingResponseEntity",X,{entityKey:X,isPendingResponse:t}))}};
eaq=function(X){X==null||X.addEventListener("DOMLoaded",function(){X.goToAndPlay(X.totalFrames-48,!0)})};
_.kS=function(X){this.__isSoyCss=!0;this.css=aKq.apply(null,[X.strings].concat(_.RY(X.args)))};
_.kS.prototype.toString=function(){return this.css};
var lKi=function(){_.kS.apply(this,arguments)};
_.S(lKi,_.kS);var yNq=_.Vc(["",""]);var jBQ;var gpR;_.le({_template:function(){if(gpR!==void 0)return gpR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
var t=X.content,G=t.insertBefore;jBQ===void 0&&(jBQ=document.createElement("template"));var y=jBQ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return gpR=X},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var F5Q=new _.ja("talkToRecsFlowRenderer");var TUq=new _.ja("flowRootRenderer");var ANN=new _.ja("learningJourneyQuizViewModel");var Ynv=new _.ja("chipsShelfViewModel");var sB2=new _.ja("responsiveContainerConfiguration");var DCH=new _.ja("horizontalShelfViewModel");_.SnB=new _.ja("engagementPanelSectionListRenderer");var haR=new _.ja("conversationResourceViewModel");var ZI4=function(){this.horizontal=!1},qnQ=function(X,t){X.horizontal=t};
ZI4.prototype.position=function(X,t,G,y){y=y===void 0?1:y;X=this.delta(X)*y+t;y=Math.max(t,G);return X>=Math.min(t,G)&&X<=y?X:G};
ZI4.prototype.axis=function(X){X=this.direction(X);return X==="up"||X==="down"?"Y":"X"};var oC=function(X,t,G){t=t===void 0?_.RI():t;this.target=X;this.manager=t;this.touchAction=G;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
oC.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(_.RY(this.events)));for(var X=_.J(this.events),t=X.next();!t.done;t=X.next())this.listen(t.value)}};
oC.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.RY(this.events)));for(var X=_.J(this.events),t=X.next();!t.done;t=X.next())this.unlisten(t.value)}};
oC.prototype.listen=function(X){this.eventMap[X]&&this.target.addEventListener(X,this.eventMap[X])};
oC.prototype.unlisten=function(X){this.eventMap[X]&&this.target.removeEventListener(X,this.eventMap[X])};var JU=function(){ZI4.apply(this,arguments)};
_.S(JU,ZI4);JU.prototype.direction=function(X){var t=X.detail;X=t.deltaY;t=t.deltaX;return X&&!this.horizontal?X>0?"down":"up":t&&this.horizontal?t>0?"right":"left":"none"};
JU.prototype.distance=function(X){return Math.abs(this.delta(X))};
JU.prototype.delta=function(X){var t=this.direction(X),G=X.detail;X=G.deltaX;G=G.deltaY;return t==="up"||t==="down"?G||0:X||0};
JU.prototype.velocity=function(X){var t=this.direction(X),G=X.detail;X=G.velocityX;G=G.velocityY;return Math.abs(t==="up"||t==="down"?G||0:X||0)};_.Bf=function(X,t,G,y,w,z){w=w===void 0?new JU:w;z=z===void 0?_.RI():z;oC.call(this,t,z,y);var B=this;this.element=X;this.target=t;this.config=G;this.input=w;this.manager=z;this.events=["panstart","panmove","panend"];this.onPanStart=function(){B.config.draggingClass&&B.element.classList.add(B.config.draggingClass);B.config.startAction&&B.config.startAction()};
this.onPanMove=function(V){var b=CTR(B,V);if(b){B.move(V,b);b.fade&&B.fade(V,b);var e=B.input.direction(V);b.moveAction&&b.moveAction(K5q(B,V,b),e)}};
this.onPanEnd=function(V){var b,e,g,F,T,D;return _.n(function(h){if(h.nextAddress==1){B.animationRequestId&&cancelAnimationFrame(B.animationRequestId);B.animationRequestId=void 0;b=CTR(B,V);if(!b)return h.return();e=b;g=e.triggerAction;F=e.fade;T=e.disableFinish;D=e.translateBack;var u=B.input.velocity(V),W=B.input.distance(V),c=B.threshold(b);return u>.3&&W>10||W>c?T?h.jumpTo(6):F?h.yield(OIB(B,V),6):h.yield(u1i(B,V,b),6):D?h.yield(B.translateBack(V),3):h.jumpTo(3)}h.nextAddress!=3&&g&&g();B.config.draggingClass&&
B.element.classList.remove(B.config.draggingClass);B.reset();_.W$(h)})};
X=Object.keys(G.triggers);this.directions=new Set(X);qnQ(this.input,this.directions.has("right")||this.directions.has("left"))};
_.S(_.Bf,oC);_.Bf.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var CTR=function(X,t){t=X.input.direction(t);return X.config.triggers[t]};
_.Bf.prototype.move=function(X,t){var G=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var y=G.input.axis(X),w=G.input.position(X,G.config.startPosition,t.endPosition,t.moveRatio||1);G.element.style.transform="translate"+y+"("+w+"px)";G.animationRequestId=void 0}))};
var K5q=function(X,t,G){var y=G.moveRatio||1;G=Math.abs(X.config.startPosition-G.endPosition);return Math.min(X.input.distance(t)*y,G)/G};
_.Bf.prototype.fade=function(X,t){var G=t.endOpacity;X=K5q(this,X,t);X>0&&(this.element.style.opacity=""+(((G||0)-1)*X+1))};
_.Bf.prototype.threshold=function(X){return X.threshold?X.threshold:Math.abs(X.endPosition-this.config.startPosition)/3};
var u1i=function(X,t,G){var y,w,z,B,V,b,e;return _.n(function(g){if(g.nextAddress==1)return y=X.input.delta(t)+X.config.startPosition,w=X.input.axis(t),z=G,B=z.endPosition,V=z.transitionEndPosition,e=(b=V)!=null?b:B,g.yield(X.element.animate([{transform:"translate"+w+"("+y+"px)"},{transform:"translate"+w+"("+e+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);X.element.style.transform="translate"+w+"("+e+"px)";_.W$(g)})};
_.Bf.prototype.translateBack=function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1){if(!t.element.style.transform)return w.return();G=t.input.axis(X);y=t.config.startPosition;return w.yield(t.element.animate([{transform:t.element.style.transform},{transform:"translate"+G+"("+y+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}t.element.style.transform="translate"+G+"("+y+"px)";_.W$(w)})};
var OIB=function(X,t){var G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return G=X.input.delta(t)+X.config.startPosition,y=X.input.axis(t),w=G+70,z=X.element.style.opacity===""?1:X.element.style.opacity,B.yield(X.element.animate([{transform:"translate"+y+"("+G+"px)",opacity:z},{transform:"translate"+y+"("+w+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);X.element.style.transform="translate"+y+"("+w+"px)";X.element.style.opacity="0";_.W$(B)})};var n7=function(){var X=_.PW.apply(this,arguments)||this;X._noAccessors=!0;X.scrollRate=3;X.autoScrollAnimationStart=0;X.autoScrollPaused=!1;X.autoScrollRafId=0;return X};
_.S(n7,_.PW);_.H=n7.prototype;_.H.created=function(){var X=this;this.boundAutoScrollHandler=function(t){X.autoScroll(t)}};
_.H.detached=function(){this.hostElement.removeEventListener("mouseout",_.Ik(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Ik(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Ik(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.H.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Ik(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Ik(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Ik(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Ik(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Ik(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Ik(this,this.endAutoScroll)),this.endAutoScroll())};
_.H.autoScroll=function(X){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=X);var t;if(t=!this.autoScrollPaused&&this.scrollTarget)t=this.scrollTarget,t=t.scrollHeight-t.scrollTop!==t.clientHeight;t&&(t=1E3/this.scrollRate,X-=this.autoScrollAnimationStart,X>t&&(this.scrollTarget.scrollTop+=Math.ceil(X/t),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.H.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.H.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
n7.prototype.autoScrollEnabledChanged=n7.prototype.autoScrollEnabledChanged;_.E([_.K(),_.U("design:type",Object)],n7.prototype,"scrollRate",void 0);_.E([_.K(),_.U("design:type",Object)],n7.prototype,"scrollTarget",void 0);_.E([_.K(),_.U("design:type",Boolean)],n7.prototype,"autoScrollEnabled",void 0);_.E([_.cW("autoScrollEnabled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],n7.prototype,"autoScrollEnabledChanged",null);_.E([_.E0()],n7);_.QBi=[n7.prototype];var IEv;var VF=function(){var X=_.O.apply(this,arguments)||this;X.buttonUpdate=_.A("web_button_rework");X.dismissButtonOverrides=_.A("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;X.forceDarkTheme=!1;X.forceLightTheme=!1;X.dynamicTextHeight=94;X.hasOverflowButton=!1;X.isInfeedModernization=!1;return X};
_.S(VF,_.O);_.H=VF.prototype;_.H.computeUrlImg=function(X){if(X)return _.hH(X.thumbnails)};
_.H.getLogoHeight=function(X){return this.logoWithPadding(X)?"31":"24"};
_.H.getLogoClassName=function(X){return this.logoWithPadding(X)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.H.logoWithPadding=function(X){var t,G;return(X=(t=X.thumbnails)==null?void 0:(G=t[0])==null?void 0:G.height)&&X%31===0?!0:!1};
_.H.sendImpressionEndpoints=function(X){X.impressionEndpoints&&_.hE(this.hostElement,X.impressionEndpoints)};
_.H.observeBasicPalette=function(){var X,t,G=(X=this.data)==null?void 0:(t=X.colorData)==null?void 0:t.basicColorPaletteData;G?_.fX(this.hostElement,G):_.fX(this.hostElement,{})};
_.H.observeDataChanged=function(){var X;this.dynamicTextHeight=((X=this.data)==null?0:X.supplementalText)?74:94;var t;this.hasSupplementalText=!((t=this.data)==null||!t.supplementalText);if(_.A("web_button_rework")){var G,y,w,z;X=(G=this.data)==null?void 0:(y=G.actionButton)==null?void 0:(w=y.buttonRenderer)==null?void 0:(z=w.colorData)==null?void 0:z.basicColorPaletteData;var B,V,b;if(!((B=this.data)==null?0:(V=B.actionButton)==null?0:(b=V.buttonRenderer)==null?0:b.style)&&X){this.computeIsInfeedModernization(this.data)||
(X.borderColor=X.foregroundTitleColor);var e,g;this.set("data.actionButton.buttonRenderer",_.RH.unsafeClone((e=this.data)==null?void 0:(g=e.actionButton)==null?void 0:g.buttonRenderer))}}};
_.H.observeDataForCounterfactual=function(){if(_.A("kevlar_banner_cf_extra_logging")){var X;((X=this.data)==null?0:X.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.H.computeSupplementalStyle=function(){var X;if((X=this.data)!=null&&X.supplementalText){var t,G,y;if((t=this.data)==null?0:(G=t.colorData)==null?0:(y=G.basicColorPaletteData)==null?0:y.foregroundActivatedColor)return X=_.Gq(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+X+"; --yt-endpoint-hover-color:"+X+"; --yt-endpoint-visited-color:"+X+"; --yt-formatted-string-bold-font-weight:700;"}};
_.H.computeForcedDarkTheme=function(){var X,t,G,y=(X=this.data)==null?void 0:(t=X.actionButton)==null?void 0:(G=t.buttonRenderer)==null?void 0:G.style,w,z,B;X=fKR(((w=this.data)==null?void 0:(z=w.colorData)==null?void 0:(B=z.basicColorPaletteData)==null?void 0:B.backgroundColor)||0);return y&&X};
_.H.computeForcedLightTheme=function(){var X,t,G,y=(X=this.data)==null?void 0:(t=X.actionButton)==null?void 0:(G=t.buttonRenderer)==null?void 0:G.style,w,z,B;X=!fKR(((w=this.data)==null?void 0:(z=w.colorData)==null?void 0:(B=z.basicColorPaletteData)==null?void 0:B.backgroundColor)||0);return y&&X};
_.H.computeHasOverflowButton=function(X){return!!X.overflowButton};
_.H.computeHasTitle=function(X){return!!X.title};
_.H.computeTitleMaxFontSize=function(X){return this.computeHasOverflowButton(X)?28:64};
_.H.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.H.computeIsInfeedModernization=function(){var X,t,G,y,w=(X=this.data)==null?void 0:(t=X.actionButton)==null?void 0:(G=t.buttonRenderer)==null?void 0:(y=G.colorData)==null?void 0:y.basicColorPaletteData;return(w==null?void 0:w.backgroundColor)===452984831||(w==null?void 0:w.backgroundColor)===218103808};
VF.prototype.observeDataForCounterfactual=VF.prototype.observeDataForCounterfactual;VF.prototype.observeDataChanged=VF.prototype.observeDataChanged;VF.prototype.observeBasicPalette=VF.prototype.observeBasicPalette;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],VF.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],VF.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],VF.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],VF.prototype,"buttonUpdate",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],VF.prototype,"hasSupplementalText",void 0);_.E([_.K(),_.U("design:type",Object)],VF.prototype,"dismissButtonOverrides",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.U("design:type",Boolean)],VF.prototype,"hasTitle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.U("design:type",Object)],VF.prototype,"forceDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.U("design:type",Object)],VF.prototype,"forceLightTheme",void 0);_.E([_.K(),_.U("design:type",Object)],VF.prototype,"dynamicTextHeight",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.U("design:type",Object)],VF.prototype,"hasOverflowButton",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.U("design:type",Object)],VF.prototype,"isInfeedModernization",void 0);_.E([_.cW("data.colorData.basicColorPaletteData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VF.prototype,"observeBasicPalette",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VF.prototype,"observeDataChanged",null);_.E([_.cW("data.isVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VF.prototype,"observeDataForCounterfactual",null);_.E([_.p({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],VF);
_.N(VF,"ytd-banner-promo-renderer",function(){if(IEv!==void 0)return IEv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return IEv=X},{mode:1});var W5H;var cNr;var pdR;var bh=function(){return _.O.apply(this,arguments)||this};
_.S(bh,_.O);_.E([_.K(),_.U("design:type",Object)],bh.prototype,"data",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.E([_.p({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],bh);
_.N(bh,"ytd-hashtag-grid-tile-renderer",function(){if(pdR!==void 0)return pdR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return pdR=X},{mode:1});var kY=function(){return _.O.apply(this,arguments)||this};
_.S(kY,_.O);kY.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
kY.prototype.updateRichGridTrendingHashtagsVisibility=function(){var X,t;if(((X=this.data)==null||!X.isExpanded)&&(t=this.data)!=null&&t.tiles){X=this.data.tiles.length;t=X>this.richGridItemsPerRow?this.richGridItemsPerRow+1:X;var G=Math.ceil(X/t);this.fullyVisibleRows=X%t===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}};
kY.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
kY.prototype.updateRichGridTrendingHashtagsVisibility=kY.prototype.updateRichGridTrendingHashtagsVisibility;_.E([_.K(),_.U("design:type",Object)],kY.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Number)],kY.prototype,"fullyVisibleRows",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],kY.prototype,"isShowMoreVisible",void 0);_.E([_.K({selector:_.x0,value:0}),_.U("design:type",Number)],kY.prototype,"richGridItemsPerRow",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],kY.prototype,"ytdReduxBehavior",void 0);_.E([_.cW("data","richGridItemsPerRow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kY.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.E([_.p({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],kY);
_.N(kY,"ytd-hashtag-grid-shelf-renderer",function(){if(cNr!==void 0)return cNr;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return cNr=X},{mode:1});var rN2;var NUq;var dL=function(){var X=_.O.apply(this,arguments)||this;X.visibleVideos=[];X.hiddenVideos=[];X.modern=_.A("web_modern_buttons");X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(dL,_.O);_.H=dL.prototype;_.H.attached=function(){var X=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",X);this.onDarkModeToggledAction(X)};
_.H.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"}}}};
_.H.dataChanged=function(){var X=this;this.requestElementsPerRow();var t,G;this.currentColorPalette=this.isDarkTheme?(t=this.data)==null?void 0:t.darkColorData:(G=this.data)==null?void 0:G.lightColorData;var y;if((y=this.currentColorPalette)==null?0:y.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.V8(this,function(){X.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.H.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.H.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.H.computeIsFirstFeedItem=function(X){return X};
_.H.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&this.set("isDarkTheme",X);this.data&&(this.currentColorPalette=X?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.H.getCurrentLogo=function(X,t){if(X)return t?X.darkLogoImage:X.lightLogoImage};
_.H.computeTitleStyle=function(X){var t;if((t=this.data)!=null&&t.title&&X&&X.textPrimary!==void 0)return"color:"+_.Gq(X.textPrimary)+";"};
_.H.computeSubtitleStyle=function(X){var t;if((t=this.data)!=null&&t.subtitle&&X&&X.textSecondary!==void 0)return"color:"+_.Gq(X.textSecondary)+";"};
_.H.computeDismissIconStyle=function(X){if(this.data&&this.data.dismissButton&&X&&X.textPrimary!==void 0)return"--yt-button-color:"+_.Gq(X.textPrimary)+";"};
_.H.computeOverflowButtonStyle=function(X){if(this.data&&this.data.overflowButton&&X&&X.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Gq(X.textPrimary)+";--yt-spec-icon-active-other:"+_.Gq(X.textPrimary)+";"};
_.H.computeBackgroundStyle=function(X){if(X&&this.data){var t="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var G=_.hH((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);G&&(t+='background-image:url("'+G+'");')}X.backgroundColor!==void 0&&(t+="background-color:"+_.yY(X.backgroundColor)+";");return t}};
_.H.computeButton=function(){var X,t=Object.assign({},_.Y((X=this.data)==null?void 0:X.showMoreButton,_.G4));if(this.modern&&t){t.style="STYLE_MONO_OUTLINE";var G;if(X=(G=this.currentColorPalette)==null?void 0:G.textPrimary)t.colorData={basicColorPaletteData:{foregroundTitleColor:X,borderColor:X}}}return t};
_.H.shouldShowBottomButton=function(X,t){return!(X==null?0:X.header)&&!(X==null||!X.primaryButton)&&t<3};
_.H.checkExpanded=function(X){this.isExpanded=X&&X.content?this.hiddenVideos.length===0:!0};
_.H.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.H.getLogoHeight=function(X){return this.logoWithPadding(X)?"26":"20"};
_.H.getLogoImageId=function(X){return this.logoWithPadding(X)?"logo-image-with-padding":"logo-image"};
_.H.computeHasSectionHeader=function(X){return!!X.header};
_.H.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var X;if((X=this.data.primaryButton)==null?0:X.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 t;((t=this.data.dismissButton)==null?0:t.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var G,y;((G=this.data)==null?0:(y=G.primaryButton)==null?0:y.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.H.setVisibleVideos=function(X){if(this.data&&this.data.content)if(this.data.content.length){var t=this.data.content.length;this.data.header?X?(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.slimItemsPerRow),t)):(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow),t)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(t,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow),t)):(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow-1),t))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.H.setHasMovieRenderer=function(){var X;if((X=this.data)!=null&&X.content){var t;this.hasMovieRenderer=!!_.Y((t=this.data)==null?void 0:t.content[0],_.$NR)}else this.hasMovieRenderer=!1};
_.H.requestElementsPerRow=function(){_.Yt(this.hostElement,"yt-request-elements-per-row")};
_.H.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var X=_.J(this.hiddenMediaRenderers),t=X.next();!t.done;t=X.next())t.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(X=_.Sm(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&X.focus()}};
_.H.updateTitleSpec=function(){var X;(X=this.data)!=null&&X.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.H.logoWithPadding=function(X){var t,G,y;return(X=(t=this.getCurrentLogo(X,this.isDarkTheme))==null?void 0:(G=t.thumbnails)==null?void 0:(y=G[0])==null?void 0:y.height)&&X%31===0?!0:!1};
_.H.onUpdateElementsPerRowAction=function(X,t,G){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X);G&&this.slimItemsPerRow!==G&&(this.slimItemsPerRow=G)};
dL.prototype.slimItemsPerRowChanged=dL.prototype.slimItemsPerRowChanged;dL.prototype.elementsPerRowChanged=dL.prototype.elementsPerRowChanged;dL.prototype.dataChanged=dL.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],dL.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],dL.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],dL.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dL.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],dL.prototype,"currentColorPalette",void 0);_.E([_.K(),_.U("design:type",Array)],dL.prototype,"visibleVideos",void 0);_.E([_.K(),_.U("design:type",Array)],dL.prototype,"hiddenVideos",void 0);
_.E([_.K(),_.U("design:type",Object)],dL.prototype,"primaryButton",void 0);_.E([_.K({reflectToAttribute:!0,value:3}),_.U("design:type",Number)],dL.prototype,"elementsPerRow",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],dL.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],dL.prototype,"isExpanded",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],dL.prototype,"largeTitle",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],dL.prototype,"hasMovieRenderer",void 0);_.E([_.K(),_.U("design:type",Number)],dL.prototype,"slimItemsPerRow",void 0);_.E([_.K(),_.U("design:type",Boolean)],dL.prototype,"showLightVideoMetadata",void 0);_.E([_.K(),_.U("design:type",Boolean)],dL.prototype,"showDarkVideoMetadata",void 0);_.E([_.K(),_.U("design:type",Number)],dL.prototype,"videoMetadataColor",void 0);
_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],dL.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.U("design:type",Boolean)],dL.prototype,"isFirstFeedItem",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.U("design:type",Boolean)],dL.prototype,"hasSectionHeader",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.U("design:type",Boolean)],dL.prototype,"roundedContainer",void 0);_.E([_.NS("#visible-video-container ytd-rich-grid-media"),_.U("design:type",Array)],dL.prototype,"visibleMediaRenderers",void 0);_.E([_.NS("#hidden-video-container ytd-rich-grid-media"),_.U("design:type",Array)],dL.prototype,"hiddenMediaRenderers",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dL.prototype,"modern",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dL.prototype,"dataChanged",null);_.E([_.cW("elementsPerRow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dL.prototype,"elementsPerRowChanged",null);_.E([_.cW("slimItemsPerRow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dL.prototype,"slimItemsPerRowChanged",null);
_.E([_.p({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],dL);
_.N(dL,"ytd-brand-video-shelf-renderer",function(){if(NUq!==void 0)return NUq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return NUq=X},{mode:1});var PT2;var ev=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(ev,_.O);_.H=ev.prototype;_.H.attached=function(){var X=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",X);this.onDarkModeToggledAction(X)};
_.H.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"}}}};
_.H.dataChanged=function(){this.requestElementsPerRow();var X,t;this.currentColorPalette=this.isDarkTheme?(X=this.data)==null?void 0:X.darkColorData:(t=this.data)==null?void 0:t.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.H.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.H.computeIsFirstFeedItem=function(X){return X};
_.H.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&this.set("isDarkTheme",X);this.data&&(this.currentColorPalette=X?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(X),this.updateButtonPalette())};
_.H.shouldShowThumbnailInMetadata=function(X){return X<=1};
_.H.computeVideoMetadataColor=function(){if(this.data){var X;if((X=this.currentColorPalette)==null?0:X.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.H.computeTitleStyle=function(X){var t;if((t=this.data)!=null&&t.title&&X&&X.textPrimary!==void 0)return"color:"+_.Gq(X.textPrimary)+";"};
_.H.computeSubtitleStyle=function(X){var t;if((t=this.data)!=null&&t.subtitle&&X&&X.textSecondary!==void 0)return"color:"+_.Gq(X.textSecondary)+";"};
_.H.computeOverflowButtonStyle=function(X){if(this.data&&this.data.overflowButton&&X.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Gq(X.textPrimary)+";--yt-spec-icon-active-other:"+_.Gq(X.textPrimary)+";"};
_.H.computeBackgroundStyle=function(X){if(X&&this.data){var t="";X.backgroundColor!==void 0&&(t+="background-color:"+_.yY(X.backgroundColor)+";");return t}};
_.H.computeHasOverflowButton=function(X){return!!X.overflowButton};
_.H.updateButtonPalette=function(){if(this.data){var X;if((X=this.data.primaryButton)==null?0:X.buttonRenderer){var t;if((t=this.currentColorPalette)==null?0:t.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var G;((G=this.currentColorPalette)==null?0:G.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)})}}};
_.H.requestElementsPerRow=function(){_.Yt(this.hostElement,"yt-request-elements-per-row")};
_.H.updateTitleSpec=function(){var X;(X=this.data)!=null&&X.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")};
_.H.onUpdateElementsPerRowAction=function(X){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X)};
ev.prototype.elementsPerRowChanged=ev.prototype.elementsPerRowChanged;ev.prototype.dataChanged=ev.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],ev.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],ev.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],ev.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ev.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],ev.prototype,"currentColorPalette",void 0);_.E([_.K(),_.U("design:type",Object)],ev.prototype,"primaryButton",void 0);
_.E([_.K({reflectToAttribute:!0,value:3}),_.U("design:type",Number)],ev.prototype,"elementsPerRow",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],ev.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],ev.prototype,"titleSize",void 0);_.E([_.K(),_.U("design:type",Number)],ev.prototype,"videoMetadataColor",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],ev.prototype,"miniMode",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.U("design:type",Boolean)],ev.prototype,"isFirstFeedItem",void 0);_.E([_.K({reflectToAttribute:!0,value:!0}),_.U("design:type",Boolean)],ev.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.U("design:type",Boolean)],ev.prototype,"hasOverflowButton",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ev.prototype,"dataChanged",null);_.E([_.cW("elementsPerRow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ev.prototype,"elementsPerRowChanged",null);_.E([_.p({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],ev);
_.N(ev,"ytd-brand-video-singleton-renderer",function(){if(PT2!==void 0)return PT2;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return PT2=X},{mode:_.Cz("kevlar_poly_si_batch_j070")?1:2});var Epv;var UCT=_.Fp(function(X){var t=X.data;return _.k(_.gr,{data:function(){return t().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(t().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var G=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":G=88;break a;default:G=88}return G},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return t().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Pi"),Raa=_.Fp(function(X){var t=X.metadataRow;
var G=X.delimiter;return _.k(_.pY,{each:function(){return t().textParts||[]},
keyBy:"INDEX"},function(y,w){return _.k(_.gn,null,_.k(_.eh,{text:y,noWrap:!0,userInput:!0}),_.k(mCR,{delimiter:G,max:function(){return t().textParts.length},
index:w}))})},"Qi"),mCR=_.Fp(function(X){var t=X.delimiter;
var G=X.max;var y=X.index;return _.k(_.d,{cond:function(){return(t==null?void 0:t())&&G()-1>y()},
then:function(){return _.k("span",null,t)}})},"Ri"),iIT=_.Fp(function(X){var t=X.data;
X={};return _.k("yt-profile-page-header-information-view-model",{class:_.cl("profile-page-header-information-view-model-wiz",(X["profile-page-header-information-view-model-wiz--mobile"]=!1,X))},_.k(_.d,{cond:function(){return t().onTap},
then:function(){return _.k(_.J4,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.wr(t().onTap)}},_.k(_.M7,{data:function(){return t().thumbnail}},{profilePageHeaderThumbnailViewModel:UCT}))},
else:function(){return _.k("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.k(_.M7,{data:function(){return t().thumbnail}},{profilePageHeaderThumbnailViewModel:UCT}))}}),_.k("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.k(_.d,{cond:function(){return t().onTap},
then:function(){return _.k(_.M7,{data:function(){return t().title}},{profilePageHeaderTitleViewModel:function(G){var y=G.data;
return _.k(_.J4,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.wr(y().onTap)}},_.k(_.eh,{text:function(){return y().title}}))}})},
else:function(){return _.k(_.M7,{data:function(){return t().title}},{profilePageHeaderTitleViewModel:function(G){var y=G.data;
return _.k(_.eh,{text:function(){return y().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.k(_.M7,{data:function(){return t().metadata}},{profilePageHeaderMetadataViewModel:function(G){var y=G.data;
return _.k(_.d,{cond:function(){return y().metadataRows},
then:function(w){return _.k("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.k(_.pY,{each:w,keyBy:"INDEX"},function(z,B){return _.k(_.gn,null,_.k(Raa,{metadataRow:z,delimiter:" \u2022 "}),_.k(mCR,{delimiter:" \u2022 ",max:function(){return w().length},
index:B}))}))}})}})))},"Si");
iIT.idomCompat=!0;_.DW(iIT,"yt-profile-page-header-information-view-model",{props:{data:_.bR}});var jv=function(){return _.O.apply(this,arguments)||this};
_.S(jv,_.O);jv.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],jv.prototype,"data",void 0);_.E([_.p({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],jv);
_.N(jv,"ytd-effect-pivot-header-view-model",function(){if(Epv!==void 0)return Epv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Epv=
X},{mode:1});var L5a;var gL=function(){return _.O.apply(this,arguments)||this};
_.S(gL,_.O);gL.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gL.prototype,"data",void 0);_.E([_.p({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],gL);
_.N(gL,"ytd-source-pivot-header-renderer",function(){if(L5a!==void 0)return L5a;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return L5a=X},{mode:1});_.vpB=_.Fp(function(X){var t=X.data;var G=function(){var y;return _.w2((y=t())==null?void 0:y.rendererContext)};
X={};return _.k("content-list-item-view-model",{el:_.T7(_.zF(function(){return t().rendererContext})),
class:_.cl("ytContentListItemViewModelHost",(X.ytContentListItemViewModelTappable=G,X)),role:function(){return G()?"listitem":void 0},
tabindex:function(){return G()?0:void 0}},_.k("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.k("div",{class:"ytContentListItemViewModelImageContainer"},_.k(_.d,{cond:function(){return t().image},
then:function(y){return _.k(_.gr,{data:y,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.k(_.M7,{data:function(){var y;
return(y=t())==null?void 0:y.avatar}},{avatarViewModel:_.al})),_.k("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.k("div",{class:_.cl("ytContentListItemViewModelTitle",function(){a:{switch(t().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var y="ytContentListItemViewModelProminentTitle";
break a}y=void 0}return y})},_.k(_.eh,{text:function(){return t().title}})),_.k("div",{class:"ytContentListItemViewModelMetadata"},_.k(_.M7,{data:function(){return t().metadata}},{contentMetadataViewModel:function(y){return _.k(_.DT,{data:y.data,
layout:1})}})))),_.k("div",{class:"ytContentListItemViewModelActionButton"},_.k(_.M7,{data:function(){var y;
return(y=t())==null?void 0:y.actionButton}},{buttonViewModel:_.QK,
toggleButtonViewModel:_.Lv})))},"Ti");_.DW(_.Fp(function(X){var t=function(){return X.data().background},G=function(){return X.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},y=function(){return X.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.k("yt-card-view-model",{class:_.cl("ytCardViewModelHost",X.className)},_.k(_.S1,{contentId:function(){return X.data().contentId}},function(){return _.k("div",{class:_.cl("ytCardViewModelCardViewModelInner",function(){return zaQ(X.data().cardStyle)})},_.k(_.M7,{data:t},{cinematicContainerViewModel:function(w){return _.k(_.oYe,{data:w.data})}}),_.k("div",{class:"ytCardViewModelContentWrapper"},_.k(_.d,{cond:function(){return!G()},
then:function(){var w={};return _.k("div",{class:"ytCardViewModelTopContent"},_.k(_.M7,{data:function(){return X.data().topContent}},{contentListItemViewModel:function(z){return _.k(_.vpB,{data:z.data})}}),_.k("div",{class:_.cl("ytCardViewModelInlineTrailingAction",(w.ytCardViewModelInlineCenterTrailingAction=y,w))},_.k(_.M7,{data:function(){return X.data().trailingAction}},{buttonViewModel:function(z){return _.k(_.QK,{data:z.data})}})))}}),_.k("div",{class:"ytCardViewModelBodyContent"},_.k(_.M7,
{data:function(){return X.data().bodyContent}},{contentListItemViewModel:function(w){return _.k(_.vpB,{data:w.data})}}))),_.k(_.d,{cond:function(){return G()},
then:function(){return _.k("div",{class:"ytCardViewModelOverlayTrailingAction"},_.k(_.M7,{data:function(){return X.data().trailingAction}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data})}}))}}))}))},"Ui"),"yt-card-view-model",{props:{data:_.bR,
className:_.bR}});_.DW(_.Fp(function(X){var t=function(){return _.Y(X.data().flowRoot,TUq)};
_.LY(function(){var G=t(),y=function(){},w=function(){};
if(G){var z,B,V,b=((V=_.Y((z=t())==null?void 0:(B=z.steps)==null?void 0:B[0],_.YcH))==null?void 0:V.stepId)||"";BUi(G,b);y=VdT(G);w=bIq(G)}_.Um(function(){var e=t();e&&_.dV().dispatch(_.EW("flowStateEntity",e.flowStateEntityKey));y();y=function(){};
w();w=function(){}})});
return _.k("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.k(_.S1,{contentId:function(){return X.data().contentId}},function(){return _.k("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.k(_.d,{cond:t,
then:function(G){return _.k(_.gAR,{data:G})}}))}))},"Vi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.bR}});_.DW(_.Fp(function(){return _.k("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.k("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.k("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.k(_.wq2,null)),_.k(_.T7B,{data:{rows:1},isExploreHub:!0}))},"Wi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.DW(_.Fp(function(X){var t=X.data;var G=X.standardUnitMinWidth;X=_.J((0,_.D5Y)(t));var y=X.next().value,w=X.next().value,z=function(){var V,b=(V=y())==null?void 0:V.contents;return b==null||b.length===0},B=function(){w(Object.assign({},y(),{contents:[]}))};
return _.k("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.T7(_.gS({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var V=_.Y(t().chipsShelf,Ynv);if(V!=null&&V!=null&&V.autoselectChipOnVisible){var b,e,g=_.Y(V==null?void 0:(b=V.contents)==null?void 0:b[(e=V.autoselectedChipIndex)!=null?e:0],_.HF);g&&g.tapCommand&&_.JH(g.tapCommand)}}}))},_.k(_.S1,{contentId:function(){return t().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.k("div",null,_.k("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.k(_.M7,{data:function(){return t().header}},{sectionHeaderViewModel:function(V){return _.k(_.C0,{data:V.data,
disableHorizontalPadding:!0})}})),_.k("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.k(_.M7,{data:function(){return t().chipsShelf}},{chipsShelfViewModel:function(V){return _.k(_.qUJ,{data:V.data,
callback:B,enableSingleChipSelection:!0})}})),_.k("div",null,_.k(_.d,{cond:z,
then:function(){return _.k("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.k(_.T7B,{data:{rows:1},isExploreHub:!0}))}}),_.k(_.M7,{data:function(){var V;
return(V=y())==null?void 0:V.contents}},{richShelfRenderer:function(V){return _.k(_.hJ4,{data:V.data,
isInnerShelf:!0,standardUnitMinWidth:G})}})))}))},"Xi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.bR,
standardUnitMinWidth:_.bR}});var Fj=function(){return _.O.apply(this,arguments)||this};
_.S(Fj,_.O);
Fj.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}}};
Fj.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.E([_.q(_.MZ),_.U("design:type",Object)],Fj.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],Fj.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Fj.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Number)],Fj.prototype,"standardUnitMinWidth",void 0);_.E([_.p({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Fj);
_.N(Fj,"ytd-rich-section-renderer",function(){if(rN2!==void 0)return rN2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return rN2=X},{mode:_.Cz("kevlar_poly_si_batch_j029")?
1:2});_.DW(_.PFH,"yt-profile-identity-info-view-model",{props:{data:_.bR,hideDivider:_.bR,isChannelInfoCard:_.bR}});_.DW(_.jC4,"yt-page-header-view-model",{props:{data:_.bR,noPadding:_.bR,enableBanner:_.bR,cinematicContainerTopbarOffset:_.bR,allowCinematicContainerOverflow:_.bR,displayAsSidebar:_.bR,displayAsPanel:_.bR,alwaysUseMediumTextMetadata:_.bR}});_.DW(_.Fp(function(X){var t=X.data;var G=function(){var w;return(w=t().numColumns)!=null?w:2},y=function(){return G()>1?3:2};
X={};return _.k("ytd-rich-grid-group",{class:_.cl("ytdRichGridGroupHost",(X.ytdRichGridGroupHostFirstColumn=function(){return t().colIndex===0},X)),
style:_.Ud({"--ytd-rich-grid-group-num-columns":G,"--ytd-rich-grid-items-per-group":y})},_.k("div",{class:"ytdRichGridGroupContents"},_.k(_.M7,{data:function(){var w;return(w=t().contents)==null?void 0:w.slice(0,y())}},{richItemRenderer:function(w){return _.k(_.DpB,{data:w.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Yi"),"ytd-rich-grid-group",{props:{data:_.bR}});var TN=function(){var X=_.O.apply(this,arguments)||this;X.resizeOnObserverInit=!1;X.isInlinePreviewDisabled=_.A("web_disable_inline_preview");X.disableStickyFilterBar=!1;X.transparentBackgroundChipsBar=!1;X.hideChipsBar=!1;X.isWatchDefaultLayout=!0;X.continuationShowButton=!1;X.rowReducedHorizontalMargin=!1;X.useCompactList=!1;X.manualDownloadsPresent=!1;X.smartDownloadsPresent=!1;X.shouldRenderDownloadsBanner=!1;X.hasOptedIntoSmartDownloads=!1;X.elementsPerRow=4;X.typographyBump=!1;X.showGnomeContents=
!1;X.showExploreHubContents=!1;X.slimItemsPerRow=1;X.pageLoadingFromNavigation=!1;X.loggingRefactor=_.A("kevlar_rich_grid_logging_fix");X.resizeObserver=null;X.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"};X.rendererToTagNameMap=
new Map(Object.entries(X.contentMapping()).map(function(t){var G=_.J(t);t=G.next().value;G=G.next().value;return[t,G.component]}));
X.insertedContent=new Map;return X};
_.S(TN,_.O);_.H=TN.prototype;_.H.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var X=_.J(_.Sm(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),t=X.next();!t.done;t=X.next())t.value.useCompactList=this.useCompactList};
_.H.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var X=_.J(_.Sm(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),t=X.next();!t.done;t=X.next())t=t.value,t.sizing=this.sizing,t.typographyBump=this.typographyBump};
_.H.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.H.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]]"}}}};
_.H.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}}};
_.H.attached=function(){document.addEventListener("yt-page-type-changed",_.Ik(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21600_throttledOnResize=new _.d2(this.resizeObserved,_.At("rich_grid_resize_delay_ms",50),this)};
_.H.detached=function(){var X;(X=this.resizeObserver)==null||X.disconnect();document.removeEventListener("yt-page-type-changed",_.Ik(this,this.onPageChange))};
_.H.insertRichSection=function(X){var t=X.richItemTargetId;X=X.richSectionRendererToInsert;t&&X&&(this.insertedContent.set(t,{content:X,timestamp:Date.now()}),this.reflowContent())};
_.H.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.H.computeIsInlinePreviewEnabled=function(X,t,G){return _.A("web_disable_inline_preview")?!1:!G&&_.VH2({miniplayerIsActive:X,miniplayerPlaybackState:t})};
_.H.computeSizing=function(){var X=_.QKl(this.data);if(X||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return X?this.useCompactList?"COMPACT":X:this.miniMode?"COMPACT":_.A("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.H.updateItemMinAndMaxWidth=function(){var X=_.At("rich_grid_max_item_width",500);X>0&&_.Kd(this.hostElement,{"--ytd-rich-grid-item-max-width":X+"px"});var t;X=this.getRichItemMinWidth((t=this.hostElement)==null?void 0:t.clientWidth);X>0&&_.Kd(this.hostElement,{"--ytd-rich-grid-item-min-width":X+"px"})};
_.H.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.H.resizeObserved=function(){_.D0(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.H.navigateBackToHome=function(){_.A("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.A("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var X=_.gw().resolve(_.AS).isOnWatch(),t,G=((t=_.Wy(location.pathname))==null?void 0:t.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(G)||X)&&this.gnomeContents&&_.A("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);X&&this.exploreHubContents&&_.A("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.dV().dispatch(_.Dl({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.H.onPageChange=function(){var X=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.A("disable_chip_select_on_nav")||_.D0(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.vz.addJob(function(){X.pageLoadingFromNavigation=!1;_.A("disable_chip_select_on_nav")&&_.A("h5_reset_cache_and_filter_before_update_masthead")&&X.resetCacheAndIsFilteredFeed();X.setMasthead();X.maybeSetBigYoodle();X.forceRefreshAndLog();X.terminateVideoPreview();_.A("web_hide_gnome_until_user_navigates_back_to_home")&&
(X.dataChanged(),_.V8(X,function(){if(X.showGnomeContents){var t=Array.from(_.Sm(X.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(y){y=_.Sm(y).querySelector("ytd-rich-shelf-renderer");return!!y&&y.isGnomeShelf()});
if(t){t=t.offsetTop-X.contentsElement.offsetTop;var G=_.gw().resolve(_.AS).getCurrentPage();G&&G.getPageScrollingElement().scrollTo({top:t,behavior:"smooth"})}}}));
_.A("web_hide_explore_hub_until_user_navigates_back_to_home")&&(X.dataChanged(),_.V8(X,function(){if(X.showExploreHubContents&&!_.A("web_explore_hub_no_scroll")){var t=Array.from(_.Sm(X.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(y){return!!y.querySelector("ytd-talk-to-recs-flow-renderer")});
if(t){t=t.offsetTop-X.contentsElement.offsetTop;var G=_.gw().resolve(_.AS).getCurrentPage();G&&G.getPageScrollingElement().scrollTo({top:t,behavior:"smooth"})}}}))},8)):((_.A("web_hide_gnome_until_user_navigates_back_to_home")||_.A("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.H.dataChanged=function(){var X=this,t=_.At("web_rich_grid_row_margin",0);t>0&&_.Kd(this.hostElement,{"--ytd-rich-grid-row-margin":t+"px"});_.D0(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.V8(this,function(){X.updateRichItemGridPositions();X.contentsElement&&_.Kd(X.hostElement,{"--ytd-rich-grid-content-offset-top":X.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.H.initResizeObserver=function(){var X=this;if(window.ResizeObserver){var t;(t=this.resizeObserver)==null||t.disconnect();var G=!1;this.resizeObserver=new ResizeObserver(function(){if(G){var y;(y=X.resizeObserver)==null||y.disconnect();var w;(w=X.JSC$21600_throttledOnResize)==null||w.fire();requestAnimationFrame(function(){var B;(B=X.JSC$21600_throttledOnResize)==null||B.fire();X.initResizeObserver()})}else if(G=!0,X.resizeOnObserverInit){var z;
(z=X.JSC$21600_throttledOnResize)==null||z.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.H.contentLengthChanged=function(){if(_.A("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.D0(this.hostElement,"ytd-rich-item-index-update-action")};
_.H.updateElementsPerRow=function(){_.D0(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.H.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.H.onRichShelfRendererCollapse=function(X){if(this.shownItems){var t=X.detail;X=this.shownItems.findIndex(function(y){var w,z;return((z=_.Y(y==null?void 0:(w=y.richSectionRenderer)==null?void 0:w.content,_.s6h))==null?void 0:z.trackingParams)===t});
var G=X+1;X<0||G>=this.contentsElement.children.length||!this.shownItems[G].richItemRenderer||this.contentsElement.children[G].scrollIntoView({behavior:"smooth",block:"start"})}};
_.H.onSoftReloadPage=function(){this.scrollUpToTop()};
_.H.handleRerenderDownloadsData=function(){_.A("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.H.handlePlaylistRemoveVideosAction=function(X){var t;if(((t=_.Y(X,_.Uoz))==null?0:t.setVideoIds)&&this.data&&this.data.contents){X=_.Y(X,_.Uoz).setVideoIds;for(t=this.data.contents.length-1;t>=0;){var G=_.Y(this.data.contents[t],_.vM);(G=G&&_.Y(G.content,_.tP))&&G.setVideoId&&X.includes(G.setVideoId)&&this.splice("data.contents",t,1);t--}this.updateIndices()}};
_.H.updateIndices=function(){if(this.data&&this.data.contents)for(var X=0;X<this.data.contents.length;X++)this.set("data.contents."+X+".richItemRenderer.index",_.Vl(String(X+1)))};
_.H.hasTopRowInlinePlayableVideoWithEndorsement=function(X){var t;return!((t=X.slice(0,this.getItemsPerRow()))==null||!t.some(function(G){var y;G=_.Y(G==null?void 0:(y=G.richItemRenderer)==null?void 0:y.content,_.wz);var w;return(G==null?void 0:G.inlinePlaybackEndpoint)&&(G==null?void 0:(w=G.thumbnailOverlays)==null?void 0:w.some(function(z){return z.thumbnailOverlayEndorsementRenderer}))}))};
_.H.refreshGridLayoutNew=function(X,t,G,y){var w=y.postsPerRow;var z=y.slimItemsPerRow;var B=y.gameCardsPerRow;y=y.miniGameCardsPerRow;var V;if((V=this.data)==null||!V.contents||!this.containerWidth)return!1;var b;if((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize){var e=_.q3Y(this.data.responsiveContainerConfiguration,this.containerWidth),g;V=_.Vj(Object.assign({},e,{standardUnitMinWidth:(g=this.data)==null?void 0:g.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&e.isCompactList)}else V=_.Vj({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(e=this.data)==null?void 0:e.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=V.typographyBump;g=!1;if(X||this.elementsPerRow!==V.numItems||this.postsPerRow!==w||this.slimItemsPerRow!==z||this.gameCardsPerRow!==
B||this.miniGameCardsPerRow!==y||this.gutter!==V.gutter)g=this.elementsPerRow!==V.numItems,this.elementsPerRow=V.numItems,this.postsPerRow=w,this.slimItemsPerRow=z,this.gameCardsPerRow=B,this.miniGameCardsPerRow=y,this.gutter=V.gutter,this.itemWidth=V.itemWidth,this.reflowContent(t),_.Kd(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":V.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(G);this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:V.maxContainerWidth}));return g};
_.H.refreshGridLayout=function(X,t){var G,y=(G=this.hostElement)==null?void 0:G.clientWidth;this.containerWidth=this.adjustRichGridWidth(y,!0);var w;if((w=this.data)==null||!w.contents||!this.containerWidth)return X&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.A("rg_pending_reflow_ks")&&(X=!0,this.pendingForceReflow=!1);G=this.getRichItemMinWidth(y);var z=this.isShortsPanel?146:194,B=this.getMiniGameCardMinWidth(),V=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
y=G=this.calcElementsPerRow(G,V);(w=G<=3&&this.miniModeAllowed())&&(G=this.calcElementsPerRow(240,4));var b=this.calcMaxSlimElementsPerRow(G,V,this.isDefaultGrid);V=this.calcElementsPerRow(z,b);var e=this.calcElementsPerRow(this.isCompactGrid?z:154,b);z=this.calcElementsPerRow(this.isCompactGrid?z:B,b);B=!1;if(this.sizing)return this.refreshGridLayoutNew(X,t,w,{postsPerRow:y,slimItemsPerRow:V,gameCardsPerRow:e,miniGameCardsPerRow:z});if(X||this.elementsPerRow!==G||this.postsPerRow!==y||this.slimItemsPerRow!==
V||this.gameCardsPerRow!==e||this.miniGameCardsPerRow!==z)B=this.elementsPerRow!==G,this.elementsPerRow=G,this.postsPerRow=y,this.slimItemsPerRow=V,this.gameCardsPerRow=e,this.miniGameCardsPerRow=z,this.reflowContent(t),this.updateElementsPerRow(),_.Kd(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)&&_.Kd(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(w);_.D0(this.hostElement,"yt-rich-grid-layout-refreshed");return B};
_.H.getRichItemMinWidth=function(X){var t=_.At("rich_grid_min_item_width",310);if(!_.A("kevlar_disable_min_width_override")){var G,y;t=(y=(G=this.data)==null?void 0:G.minItemWidth)!=null?y:t}return t+_.hN_(X)};
_.H.calcMaxSlimElementsPerRow=function(X,t,G){return(G===void 0?0:G)?X===1?2:X%2===0?_.A("web_shorts_2_by_3_reduce_items_per_row")&&X>=4?X/2*3-1:X/2*3:_.A("web_shorts_2_by_3_reduce_items_per_row")&&X>=3?X+1:X+2:t*2};
_.H.adjustRichGridWidth=function(X,t){var G=_.A("disable_rich_grid_guide_compensation");if(!this.isWatch&&!G){G=_.gw().resolve(_.jH(_.wb));var y=G==null?void 0:G.guideElement;if(!(!G||G.getData()||y!=null&&y.opened||G.getMiniGuideVisible()))if(G.canFitPersistentGuide(X)&&G.getGuideExpandsAutomatically()){var w,z,B=Number((w=window.getComputedStyle(this.hostElement))==null?void 0:(z=w.getPropertyValue("--app-drawer-width"))==null?void 0:z.replace("px",""));X-=B||0}else if(G.canFitMiniGuide(X)){var V;
w=Number((B=window.getComputedStyle(this.hostElement))==null?void 0:(V=B.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:V.replace("px",""));X-=w||0}}X>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(X-=t?32:48));return X};
_.H.calcElementsPerRow=function(X,t){var G=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),y=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((G+y)/(X+y))||1,t)};
_.H.reflowContent=function(X){var t=this;if(!this.isReflowing){this.isReflowing=!0;var G,y,w=!!((G=this.data)==null?0:(y=G.contents)==null?0:y.some(function(D){return _.Y(D,_.Fc)}));
G=this.getItemsPerRow();var z;y=(z=this.data)==null?void 0:z.reflowOptions;X&&(_.ls("rgr_s"),_.V8(this,function(){_.ls("rgr_nrf")}));
X={};(z=_.Sm(this.hostElement).querySelector("#contents"))&&(X={contentElement:z,rendererToTagNameMap:this.rendererToTagNameMap});z=(z=this.data.contents)?z.slice():[];var B=(_.A("web_hide_gnome_behind_feed_filter_chip")||_.A("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,V=_.A("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,b=-1,e=-1;if(this.isHomePage&&V){for(V=0;V<z.length;V++){var g=void 0,F=void 0;_.Y((g=z[V])==null?void 0:
(F=g.richSectionRenderer)==null?void 0:F.content,F5Q)&&(e=V)}e>-1&&(this.exploreHubContents=z.splice(e,1))}if(this.isHomePage&&B){for(e=0;e<z.length;e++)F=g=void 0,(V=_.Y((g=z[e])==null?void 0:(F=g.richSectionRenderer)==null?void 0:F.content,_.s6h))&&B&&(F=g=void 0,V=_.Y((g=V)==null?void 0:(F=g.contents)==null?void 0:F[0],_.vM),g=void 0,_.Y((g=V)==null?void 0:g.content,_.sES)&&(b=e));b>-1&&(this.gnomeContents=z.splice(b,1))}var T=tdB(z,G,w,y,this.getRichGridStyle(),X,this.insertedContent);w=function(){t.shownItems=
T;t.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(T),_.V8(this,w)):w()}};
_.H.getFirstRowItems=function(X){for(var t=[],G=0;G<X.length;G++){var y=void 0,w=void 0,z=void 0,B=void 0,V=void 0,b=void 0;if(((y=X[G])==null?void 0:(w=y.richItemRenderer)==null?void 0:w.rowIndex)===0||((z=X[G])==null?void 0:(B=z.richGroupRenderer)==null?void 0:B.rowIndex)===0||((V=X[G])==null?void 0:(b=V.richSectionRenderer)==null?void 0:b.rowIndex)===0)t.push(X[G]);else break}return t};
_.H.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.H.handleChipCloudChipSelectAction=function(X,t){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.A("web_hide_gnome_behind_feed_filter_chip")&&(t?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.H.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.A("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.H.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.A("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.H.terminateVideoPreview=function(){_.D0(this.hostElement,"yt-terminate-video-preview-action")};
_.H.updateRichItemGridPositions=function(){var X={gridData:{gridColumnCount:this.elementsPerRow}},t;if((t=this.data)==null?0:t.trackingParams)this.loggingRefactor?_.Pj().stateChanged(this.data.trackingParams,X):(t=_.lw())&&_.d9(t,_.i$(this.data.trackingParams),X);_.D0(this.hostElement,"ytd-rich-item-index-update-action")};
_.H.miniModeAllowed=function(){return _.A("disable_channels_mini_mode")?!1:this.isChannelPage};
_.H.getMiniGameCardMinWidth=function(){return 154};
_.H.updateMiniMode=function(X){this.miniMode=this.miniModeAllowed()&&X;this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_RICH_GRID_MINI_MODE",payload:X}))};
_.H.isCurrentPage=function(){return location.pathname===this.pagePath};
_.H.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var X=_.gw().resolve(_.AS).getCurrentPage();X&&X.setScrollTop(0)}};
_.H.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.H.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.H.maybeSetBigYoodle=function(){var X,t=(X=this.data)==null?void 0:X.bigYoodle;this.bigYoodleData!==t&&(this.bigYoodleData=t)};
_.H.setMasthead=function(){var X;((X=this.data)==null?0:X.masthead)?this.mastheadData=this.data.masthead:_.A("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.H.getRichGridStyle=function(){var X,t;return(t=(X=this.data)==null?void 0:X.style)!=null?t:"RICH_GRID_STYLE_UNKNOWN"};
_.H.onIsShortsGridChange=function(){var X=this.ytdReduxBehavior,t=X.dispatch,G=this.getRichGridStyle();t.call(X,_.Dl({type:"SET_RICH_GRID_STYLE",payload:G}))};
_.ke.Object.defineProperties(TN.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var X=_.gw().resolve(_.AS).getCurrentPage(),t,G,y;return(((t=this.data)==null?void 0:t.targetId)==="browse-feedFEsfv_audio_pivot"||_.A("web_enable_channel_pivot_panel")&&((G=this.data)==null?void 0:G.targetId)==="browse-feedFEsfv_channel_pivot"||_.A("web_enable_effect_pivot_panel")&&((y=this.data)==null?void 0:y.targetId)==="browse-feedFEsfv_effect_pivot")&&(X==null?void 0:X.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.A("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 X;return!((X=this.data)==null?0:X.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var X;return((X=_.gw().resolve(_.AS).getCurrentPage())==null?void 0:X.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var X;return((X=_.gw().resolve(_.AS).getCurrentPage())==null?void 0:X.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var X;return this.hideChipsBar||(((X=this.data)==null?void 0:X.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.A("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.targetId)||"")==="watch-next-feed"&&!_.A("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.data)==null?0:X.enableContentSpecificAspectRatio)||((t=this.data)==null?0:(G=t.responsiveContainerConfiguration)==null?0:G.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.At("web_continuation_handler_margin",0):0}}});
TN.prototype.onIsShortsGridChange=TN.prototype.onIsShortsGridChange;TN.prototype.onReloadContinuationFinish=TN.prototype.onReloadContinuationFinish;TN.prototype.reflowContent=TN.prototype.reflowContent;TN.prototype.handleRerenderDownloadsData=TN.prototype.handleRerenderDownloadsData;TN.prototype.onRichShelfRendererCollapse=TN.prototype.onRichShelfRendererCollapse;TN.prototype.onRequestElementsPerRow=TN.prototype.onRequestElementsPerRow;TN.prototype.contentLengthChanged=TN.prototype.contentLengthChanged;
TN.prototype.dataChanged=TN.prototype.dataChanged;TN.prototype.onSizingChange=TN.prototype.onSizingChange;TN.prototype.onUseCompactListChange=TN.prototype.onUseCompactListChange;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.ax),_.U("design:type",Object)],TN.prototype,"ironResizableBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],TN.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],TN.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],TN.prototype,"componentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],TN.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],TN.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],TN.prototype,"miniMode",void 0);_.E([_.K({value:[]}),_.U("design:type",Array)],TN.prototype,"shownItems",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],TN.prototype,"isReflowing",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],TN.prototype,"isFilteredFeed",void 0);_.E([_.K({selector:_.YE0}),_.U("design:type",Boolean)],TN.prototype,"guideIsExpanded",void 0);
_.E([_.K({selectorArgs:["entitySelectorType"],selector:function(X,t){if(_.A("kevlar_modern_downloads_page")&&t&&t!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(t){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":t=X.entities;var G=_.Lg(t),y=_.vK(t),w=_.Nz6(X),z=_.rPv(X),B=_.Pgl(X),V=_.VO6(t),b=_.PK(G),e=_.a$(t);return _.A$w(G,y,V,_.eO6(t),w,z,b,e,B,_.UPY(X),_.X0(X));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return X=_.Lg(X.entities),_.sXh(X);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return X=
_.JPG(X.entities),_.DH_(X);default:_.Mj(new _.NJ("Error: entitySelectorType defined but not matched in selector.",X,t))}}}),
_.U("design:type",Object)],TN.prototype,"entityDrivenRichGridData",void 0);_.E([_.K(),_.U("design:type",Object)],TN.prototype,"resizeOnObserverInit",void 0);_.E([_.K(),_.U("design:type",Object)],TN.prototype,"bigYoodleData",void 0);_.E([_.K(),_.U("design:type",Object)],TN.prototype,"mastheadData",void 0);_.E([_.K(),_.U("design:type",Boolean)],TN.prototype,"isInlinePreviewDisabled",void 0);_.E([_.K(),_.U("design:type",Object)],TN.prototype,"disableStickyFilterBar",void 0);
_.E([_.K(),_.U("design:type",Object)],TN.prototype,"transparentBackgroundChipsBar",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TN.prototype,"hideChipsBar",void 0);_.E([_.K(),_.U("design:type",Object)],TN.prototype,"isWatchDefaultLayout",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TN.prototype,"continuationShowButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TN.prototype,"rowReducedHorizontalMargin",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TN.prototype,"useCompactList",void 0);_.E([_.K({selector:function(X){return _.vK(X.entities).length>0}}),
_.U("design:type",Object)],TN.prototype,"manualDownloadsPresent",void 0);_.E([_.K({selector:function(X){return _.Lg(X.entities).length>0}}),
_.U("design:type",Object)],TN.prototype,"smartDownloadsPresent",void 0);_.E([_.K({selector:_.rPv}),_.U("design:type",Object)],TN.prototype,"shouldRenderDownloadsBanner",void 0);_.E([_.K({selector:_.Nz6}),_.U("design:type",Object)],TN.prototype,"hasOptedIntoSmartDownloads",void 0);_.E([_.cW("useCompactList"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TN.prototype,"onUseCompactListChange",null);
_.E([_.cW("sizing","typographyBump"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TN.prototype,"onSizingChange",null);_.E([_.K({selector:_.Zc6}),_.U("design:type",Number)],TN.prototype,"miniplayerPlaybackState",void 0);_.E([_.K({selector:_.fg}),_.U("design:type",Boolean)],TN.prototype,"miniplayerIsActive",void 0);
_.E([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.U("design:type",Boolean)],TN.prototype,"isInlinePreviewEnabled",void 0);_.E([_.K({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.U("design:type",String)],TN.prototype,"sizing",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TN.prototype,"elementsPerRow",void 0);
_.E([_.K(),_.U("design:type",Object)],TN.prototype,"typographyBump",void 0);_.E([_.K(),_.U("design:type",Number)],TN.prototype,"itemWidth",void 0);_.E([_.rt("#header"),_.U("design:type",HTMLElement)],TN.prototype,"headerElement",void 0);_.E([_.rt("#contents"),_.U("design:type",HTMLElement)],TN.prototype,"contentsElement",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TN.prototype,"dataChanged",null);
_.E([_.U0("data.contents.length"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TN.prototype,"contentLengthChanged",null);_.E([_.WW("yt-request-elements-per-row"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TN.prototype,"onRequestElementsPerRow",null);
_.E([_.WW("yt-rich-shelf-renderer-collapse"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],TN.prototype,"onRichShelfRendererCollapse",null);_.E([_.U0("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TN.prototype,"handleRerenderDownloadsData",null);
_.E([_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],TN.prototype,"entitySelectorType",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.targetId"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"isSub",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.targetId"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"isWatch",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data.targetId"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"isShortsPanel",null);_.E([_.K({reflectToAttribute:!0}),_.C("isWatch"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"reducedTopMargin",null);_.E([_.K({reflectToAttribute:!0}),_.C("data","isWatch","isWatchDefaultLayout"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"noTopMargin",null);
_.E([_.K({reflectToAttribute:!0}),_.C("isInlinePreviewEnabled","shownItems"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"topRowEndorsement",null);_.E([_.C("data.header"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"hideHeader",null);_.E([_.WW("yt-rich-grid-reflow"),_.U("design:type",Function),_.U("design:paramtypes",[Boolean]),_.U("design:returntype")],TN.prototype,"reflowContent",null);
_.E([_.WW("yt-reload-continuation-finish"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TN.prototype,"onReloadContinuationFinish",null);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"isSlimGrid",null);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"isShortsGrid",null);
_.E([_.C("data","isSlimGrid","isShortsGrid"),_.K(),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"noRichItemGutterMargins",null);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"isShortsGridSlim",null);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"isCompactGrid",null);
_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"isDefaultGrid",null);_.E([_.C("data.targetId"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"hideChipsBarOnHome",null);_.E([_.C("data.targetId"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"hideChipsBarOnWatch",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TN.prototype,"onIsShortsGridChange",null);_.E([_.C("data.enableContentSpecificAspectRatio"),_.K(),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TN.prototype,"force16By9ThumbnailAspectRatio",null);_.E([_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],TN.prototype,"continuationTriggerOffset",null);_.E([_.p({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],TN);
_.N(TN,"ytd-rich-grid-renderer",function(){if(W5H!==void 0)return W5H;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return W5H=X},{mode:2});var aER=_.Fp(function(X){var t=X.thumbsUp,G=X.thumbsDown,y=X.rightAlignThumbs;X=_.J(_.sm(!1,void 0,"FjNDrf"));var w=X.next().value,z=X.next().value;X=_.J(_.sm(!1,void 0,"Tphjfb"));var B=X.next().value,V=X.next().value;X={};return _.k("div",{class:_.cl("ytwThumbsUpDownThumbs",(X.ytwThumbsUpDownRightAlign=function(){return y==null?void 0:y()},X))},_.k(_.Lv,{data:t,
onToggle:function(b){z(b);B()&&V(!1)},
buttonShapeOverrides:function(){return{toggled:w()}}}),_.k(_.Lv,{data:G,
onToggle:function(b){V(b);w()&&z(!1)},
buttonShapeOverrides:function(){return{toggled:B()}}}))},"Zi");
aER.idomCompat=!0;var xC2=_.Fp(function(X){var t=function(){return X.data().pendingStateEntityKey||""},G=_.Pk(_.kkR,t),y=function(){var V;
if(!(V=X.disabled())){var b;V=!((b=G())==null||!b.isPendingResponse)}return V},w=_.J(_.sm(wdH(""),void 0,"aC8eBe")),z=w.next().value,B=w.next().value;
_.R2(function(){requestAnimationFrame(function(){var V=X.data().onShowAnimationMs||0;V=V>0?wdH("--chip-animation-duration: "+V+"ms;"):wdH("");B(V)})});
return _.k("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:z},_.k(_.pY,{each:function(){return X.data().chipData||[]},
keyBy:"REFERENCE"},function(V){return _.k(lEr,{data:V,disabled:y,pendingStateKey:t,onError:X.onError})}))},"$i"),lEr=_.Fp(function(X){var t=_.VN("button"),G=_.J(_.sm(!0,void 0,"NaMiCd")),y=G.next().value,w=G.next().value,z=function(){return X.data().text.content},B=_.NI(function(V){var b,e,g,F,T,D,h,u;
return _.n(function(W){switch(W.nextAddress){case 1:V.stopPropagation();if(X.disabled())return W.return();e=String(Math.floor(((b=_.QE())==null?void 0:b.getCurrentTime())||0)*1E3);g="youchat-"+Date.now();F=function(){_.z7(X.data().onClick||{});var c={continuationCommand:{token:X.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},P={inputComposerFormData:{clientMessageId:g,playerOffsetMs:e}};return new Promise(function(l,R){_.z7(c,{form:{formData:P},commandController:{onSuccess:function(L,
x){l(x)},
onServerError:function(L,x){R(x.error)}}})})};
T=_.dCN(X.pendingStateKey());T(!0);_.vdr("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");w(!1);_.CL(W,2);return W.yield(F(),4);case 4:_.zx(W,3);break;case 2:D=_.IY(W),(u=(h=X).onError)==null||u.call(h,D);case 3:T(!1),_.W$(W)}})});
return _.k(_.d,{cond:y,then:function(){return _.k("div",{class:"ytwYouChatChipsDataChipWrapper"},_.k("button",{el:t,class:"ytwYouChatChipsDataChip","data-disabled":X.disabled,"on:click":B,tabindex:0},z))}})},"aj");var fEa=_.Fp(function(X){var t=X.data;var G=X.initiallyExpanded;var y=function(){var e;return(e=t().conversationResourceData)==null?void 0:e.learningGuideData};
X=_.J(_.Ed(function(){var e;return(e=G==null?void 0:G())!=null?e:!1}));
var w=X.next().value,z=X.next().value,B=function(){z(!0)},V=_.qt(function(){var e,g;
return(g=(e=y())==null?void 0:e.sections)!=null?g:[]},void 0,"xl8NRc"),b=_.qt(function(){return V().length>4},void 0,"oAM7of");
X=_.qt(function(){var e;return!w()&&b()&&(e=y())!=null&&e.expandButton?V().slice(0,4):V()},void 0,"uzQ9rc");
return _.k("yt-conversation-resource-view-model",{class:_.cl("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.k(_.M7,{data:X},{expandableMetadataViewModel:_.evT}),_.k(_.d,{cond:function(){return b()&&!w()},
then:function(){return _.k("div",{id:"showMoreButton"},_.k(_.M7,{data:function(){var e;return(e=y())==null?void 0:e.expandButton}},{buttonViewModel:function(e){return _.k(_.QK,{data:e.data,
onClick:B})}}))}}))},"bj");var MdB=_.Fp(function(X){var t=function(){var x;return(x=X.data().text)==null?void 0:x.content},G=function(){var x,w6;
return(x=X.data().webData)==null?void 0:(w6=x.textResult)==null?void 0:w6.content},y=_.gw().resolve(_.e_),w=_.Is(),z=function(){return X.data().chatResponseStyle},B=function(){return!X.data().transparentBackground},V=function(){return X.data().rightAlignThumbs},b=function(){return X.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||X.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},e=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:b()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:X.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},g=function(){var x;
return X.data().webData||((x=X.data().text)==null?void 0:x.content)||X.data().videoResultsData||X.data().conversationResourceViewModel||X.data().quiz},F=function(){return!!X.data().sectionHeader||g()},T=function(){var x;
return(x=X.data().videoResultsData)==null?void 0:x.videoShelf},D=function(){var x;
return _.Y(((x=X.data().videoResultsData)==null?void 0:x.videoShelf)||{},DCH)},h=function(){var x;
return(x=X.data().webData)==null?void 0:x.sourcesShelf},u=function(){var x;
return _.Y(((x=X.data().webData)==null?void 0:x.sourcesShelf)||{},DCH)},W=function(){return _.Y(X.data().conversationResourceViewModel||{},haR)},c=function(){return _.Y(X.data().quiz||{},ANN)},P=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:X.data().thumbsDownViewModel&&X.data().thumbsUpViewModel},l=function(){return _.Y(X.data().thumbsUpViewModel,_.as)},R=function(){return _.Y(X.data().thumbsDownViewModel,_.as)};
_.R2(function(){requestAnimationFrame(function(){var x;(x=X.shouldAnimateIcon)!=null&&x.call(X)&&eaq(w.lottieEl)})});
var L={};return _.k("you-chat-item-view-model",{class:_.cl("ytwYouChatItemViewModelYouChatItemViewModel",(L.ytwYouChatItemViewModelColumnLayout=function(){return b()},L)),
"data-target-id":function(){return X.data().id||""}},_.k(_.d,{cond:function(){return X.data().removeIcon?!1:F()},
then:function(){var x={};return _.k("div",{"aria-hidden":"true"},_.k(_.D8,{className:_.cl("ytwYouChatItemViewModelIcon",(x.ytwYouChatItemViewModelRtl=y==="rtl",x.ytwYouChatItemViewModelHidden=function(){return!(X.data().hideIcon||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:F())},x)),
animationName:"YOUCHAT_ICON",data:e,animationRef:w}))}}),_.k(_.d,{cond:F,
then:function(){var x={};return _.k("div",{class:_.cl("ytwYouChatItemViewModelHost",(x.ytwYouChatItemViewModelHostNoPadding=function(){return!!X.data().sectionHeader&&!g()},x.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
x.ytwYouChatItemViewModelGradientBackground=B,x)),
role:"alert"},_.k(_.d,{cond:t,then:function(w6){return _.k(_.gYS,{text:w6})}}),_.k(_.M7,{data:function(){return X.data().sectionHeader}},{sectionHeaderViewModel:function(w6){var BY={};
return _.k(_.C0,{data:w6.data,className:_.cl("ytwYouChatItemViewModelSectionHeader",(BY.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!X.data().sectionHeader&&!g()},BY))})}}),_.k(_.d,{cond:G,
then:function(w6){return _.k(_.gYS,{text:w6})}}),_.k(_.d,{cond:T,
then:function(){return _.k("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.k(_.$2,{data:D,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.k(_.d,{cond:h,
then:function(){return _.k("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.k(_.$2,{data:u,hasPeek:!0,disableArrows:!1}))}}),_.k(_.d,{cond:W,
then:function(){return _.k(fEa,{data:W})}}),_.k(_.d,{cond:c,
then:function(){return _.k(_.fQ4,{data:c})}}),_.k(_.d,{cond:P,
then:function(){return _.k(aER,{thumbsUp:l,thumbsDown:R,rightAlignThumbs:V})}}))}}),_.k(_.d,{cond:function(){return X.data().chipsData},
then:function(x){return _.k(xC2,{data:x,disabled:X.pending,onError:X.onError})}}))},"cj");
MdB.idomCompat={callbacks:{onError:!0,onSend:!0}};var XnN=_.Fp(function(X){var t=function(){return X.data().choiceSelectedText},G=function(){return X.data().hasGradientBackground},y={};
return _.k("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.k(_.d,{cond:t,then:function(){return _.k("div",{class:"ytYouChatUserTurnChoiceSelected"},_.k(_.eh,{text:t}))}}),_.k("div",{class:_.cl("ytYouChatUserTurnUserMessage",(y.ytYouChatUserTurnGradientContainer=G,y.ytYouChatUserTurnDefaultContainer=function(){return!G()},y))},function(){return X.data().text}))},"dj");var $mH=_.Fp(function(X){var t=_.J((0,_.ZRJ)(X.data)).next().value;return _.k("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return X.data().targetId||""}},_.k(_.M7,{data:function(){return X.data().header}},{chipBarViewModel:_.FHq}),_.k(_.M7,{data:function(){return t().contents}},{accordionViewModel:_.tvq,
alertBannerViewModel:_.h5R,chatLoadingViewModel:_.zMV,chatUserTurnViewModel:XnN,learningJourneyLoaderViewModel:_.xmh,lockupViewModel:function(G){return _.k(_.qL,{data:G.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:X.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(G){return _.k(MdB,{data:G.data,pending:!1})}}))},"ej");_.DW(_.Fp(function(X){var t=_.J((0,_.ZRJ)(X.data)).next().value,G=_.nl("yt-section-list-renderer"),y=_.J(_.sm(void 0,void 0,"rQpPgc")),w=y.next().value,z=y.next().value,B=function(){var V;return _.Y((V=X.data().sectionListLayoutConfiguration)==null?void 0:V.layoutConfiguration,sB2)};
_.LY(function(){var V,b=(V=G.value)==null?void 0:V.clientWidth;if(B()){V=B();var e=V.responsiveSize;b=b<528?"CONTAINER_SIZE_NARROW":b<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var g=_.J(V.responsiveMap||[]);for(var F=g.next();!F.done;F=g.next())if(F=F.value,F.containerSize===b){g=F.containerType;break b}g=void 0}if(g&&e){b:{if(g==="CONTAINER_TYPE_VERTICAL_LIST")if(e==="RESPONSIVE_SIZE_STANDARD"){if(b!=="CONTAINER_SIZE_NARROW"){F="50%";break b}}else{F=b==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}F=void 0}V={responsiveSize:e,containerSize:b,containerType:g,force16By9ThumbnailAspectRatio:!V.enableContentSpecificAspectRatio,contentPreviewWidth:F,fullbleed:(g==="CONTAINER_TYPE_VERTICAL_LIST"||g==="CONTAINER_TYPE_GRID")&&b==="CONTAINER_SIZE_NARROW"&&!1}}else V=void 0}else V=void 0;z(V)});
return _.k("yt-section-list-renderer",{class:_.cl("ytSectionListRendererHost",X.className),el:G,"data-target-id":function(){return X.data().targetId||""}},_.k(_.M7,{data:function(){return t().contents}},{itemSectionRenderer:function(V){return _.k($mH,{data:V.data,
containerLayoutConfig:w})}}))},"fj"),"yt-section-list-renderer",{props:{data:_.bR,
className:_.sd}});var tyV;var GeV;var yoT=function(){return _.O.apply(this,arguments)||this};
_.S(yoT,_.O);_.E([_.K(),_.U("design:type",Object)],yoT.prototype,"data",void 0);_.E([_.$F({is:"yt-alert-renderer",disableElementRegistration:!0})],yoT);
_.N(yoT,"yt-alert-renderer",function(){if(GeV===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;tyV===void 0&&(tyV=document.createElement("template"));var y=tyV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);GeV=X}X=GeV;return X},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.s0i=function(X,t){var G,y;t=t===void 0?{}:t;var w,z,B,V,b,e,g,F,T,D,h,u;return _.n(function(W){switch(W.nextAddress){case 1:w=t;z=w.shouldWrap===void 0?!0:w.shouldWrap;B=w.skipTransitionTimeoutMs===void 0?300:w.skipTransitionTimeoutMs;V=w.beforeTransition;b=w.afterTransition;if(!z||!document.startViewTransition||document.visibilityState==="hidden")return W.return(X());G=window.innerWidth;y=window.innerHeight;e=!1;(g=V)==null||g();_.CL(W,2);F=document.startViewTransition(X);T=setTimeout(function(){F.skipTransition();
e=!0},B);
return W.yield(F.ready,4);case 4:return clearTimeout(T),W.yield(F.finished,5);case 5:clearTimeout(T);(D=b)==null||D();_.zx(W,0);break;case 2:h=_.IY(W),(u=b)==null||u(),h&&!e&&document.visibilityState!=="hidden"&&G===window.innerWidth&&y===window.innerHeight&&_.xA(h),_.W$(W)}})};
_.X_=function(){for(var X=Array(36),t=0,G,y=0;y<36;y++)y==8||y==13||y==18||y==23?X[y]="-":y==14?X[y]="4":(t<=2&&(t=33554432+Math.random()*16777216|0),G=t&15,t>>=4,X[y]=_.KAz[y==19?G&3|8:G]);return X.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 Dlq=_.Vc(['<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>']),
SFH=_.e7B(Dlq);SFH.setAttribute("style","display: none;");document.head.appendChild(SFH.content);_.$R=_.wz6(function(X){var t=_.OF("DIV");X&&(t.className=X);t.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";X=_.OF("DIV");_.jNR(X,"200px","200px");t.appendChild(X);document.body.appendChild(t);X=t.offsetWidth-t.clientWidth;_.uf(t);return X});var hBa;var ZoH;var t1=function(){var X=_.O.apply(this,arguments)||this;X.icon=null;return X};
_.S(t1,_.O);t1.prototype.dismiss=function(){_.Yt(this.hostElement,"yt-live-chat-error-message-dismiss")};
t1.prototype.computeIcon=function(X){return X&&X.iconType?"yt-icons:"+X.iconType.toLowerCase():"yt-icons:close"};
_.E([_.K(),_.U("design:type",Object)],t1.prototype,"data",void 0);_.E([_.K({computed:"computeIcon(data.icon)"}),_.U("design:type",Object)],t1.prototype,"icon",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],t1);
_.N(t1,"yt-live-chat-error-message-renderer",function(){if(ZoH===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;hBa===void 0&&(hBa=document.createElement("template"));var y=hBa;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ZoH=X}X=ZoH;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var JjV,BsT,naB,VJR,eSB,FBq,TsT,Ajv,Sz,YTq,snN,hs,DyQ,STi,hSH,ZSr,qTa,C02,KBv,OSR,u6a,QnH,Iha,WBB,cj2,phT,rjB,Nsr,P0T,EaT,Uyr,ZC,myv,RSN,iSQ,ahV,lhi,xyN,fh4,MJR,XEr,LBq,vaV,tE2,Gfq,y5T,wEv,zcv,$uH,ouV;JjV=function(X,t){return _.Kg(X.entities,"timedMarkersListSyncEntity",t)};
BsT=function(X,t){return _.Kg(X.entities,"liveReactionsDataEntity",t)};
naB=function(X,t){X=_.Kg(X.entities,"booleanEntity",t);return!(!X||!X.value)};
VJR=function(X,t){var G=_.lw();G&&X&&_.w9(G,_.i$(X),t)};
_.bSa=function(X){return X.watch.isWatchActive};
_.kIT=function(X){return _.tS(X)||_.Gz(X)||_.xcV(X)};
_.dyR=function(X){return!_.kIT(X)};
_.DC=function(X){return X.watch.watchScrollTop};
eSB=function(X){return X.watch.isLiveChatCollapsed};
_.jni=function(){_.A("web_watch_log_theater_mode")&&_.Fj0("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.gaV=function(X,t,G){if(!X.includes("START_TIME_PLACEHOLDER")||!X.includes("END_TIME_PLACEHOLDER"))return X;var y=new Date(0),w=new Date(0);y.setUTCMilliseconds(t);w.setUTCMilliseconds(G);return X.replace("START_TIME_PLACEHOLDER",_.oc(y,7)).replace("END_TIME_PLACEHOLDER",_.oc(w,7))};
FBq=function(X,t){return _.Kg(X.entities,"booleanEntity",t)};
TsT=function(){return function(X){_.dX(_.EW("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:X}))}};
Ajv=function(X){switch(X){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}};
Sz=function(X,t,G){var y=_.wr(G);X&&t&&y&&X.getPlayerPromise().then(function(w){_.A7l(y)&&_.lx();(new _.Ry(w)).executeCommand(y,t);_.A("continue_playback_on_desktop_companion_click")||w.pauseVideo()})};
YTq=function(X){var t=_.sW(),G;if(G=_.GA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;G=(y=G())==null?void 0:y.layoutId}else G=null;Sz(t,G,X)};
snN=function(X){var t=_.sW(),G;if(G=_.GA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;G=(y=G())==null?void 0:y.layoutId}else G=null;Sz(t,G,X)};
hs=function(X,t){var G=X<0?"-":"";X=Math.abs(X);var y=Math.floor(X/3600),w=Math.floor(X)%3600,z=Math.floor(w/60);w=Math.floor(w)%60;var B="";(t===void 0?0:t)&&(B="."+Math.round((X-Math.floor(X))*10));return y>0?G+y+":"+(z<10?"0"+z:""+z)+":"+(w<10?"0"+w:""+w)+B:G+z+":"+(w<10?"0"+w:""+w)+B};
DyQ=function(X){var t=X.match(/[^0-9:\.]/g);if(t&&t.length>0)return null;X=X.split(":");if(X.length===0||X.length>3)return null;t=1;for(var G=0;X.length>0;){var y=X.pop();if(y===void 0)break;var w=Number(y);if(y===""||isNaN(w))return null;G+=w*t;t*=60}return G};
STi=function(X,t,G,y){X=Math.max(G,X);t=Math.min(t,y-G);X+t>y?(G=y,X=G-t):G=X+t;return{start:X,end:G}};
hSH=function(X,t,G,y,w,z){X<G?X=G:X+w>y&&(X=y-w);t>y&&(t=y);t=Math.min(X+z,Math.max(X+w,t));return{start:X,end:t}};
ZSr=function(X,t,G,y,w,z){t>y?t=y:t-w<G&&(t=G+w);X<G&&(X=G);X=Math.min(t-w,Math.max(t-z,X));return{start:X,end:t}};
qTa=function(X){return _.A("web_transcript_cue_id_killswitch")?String(X):"ytd-transcript-renderer_"+X};
C02=function(X){return _.A("web_transcript_cue_id_killswitch")?!0:X.startsWith("ytd-transcript-renderer")};
KBv=function(X){var t=_.sW(),G;if(G=_.GA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;G=(y=G())==null?void 0:y.layoutId}else G=null;Sz(t,G,X)};
OSR=function(X){X.style.height="auto";X.style.height=Math.min(X.scrollHeight||20,80)+"px"};
u6a=function(X,t,G){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:t,hasGradientBackground:G}}],insertByPositionInSection:{sectionTargetId:X,position:"INSERTION_POSITION_LAST"}}}]}}}};
QnH=function(X){var t=_.sW(),G;G=(G=_.GA("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.layoutId:null;Sz(t,G,X)};
Iha=function(X){var t=_.sW(),G;G=(G=_.GA("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.layoutId:null;Sz(t,G,X)};
WBB=function(X,t){t=t===void 0?!1:t;if(X.simpleText)X=[{text:X.simpleText}];else{var G;X=((G=X.runs)!=null?G:[]).map(function(y){return Object.assign({},y)})}if(t)for(t=_.J(X),G=t.next();!G.done;G=t.next())G.value.bold=!0;
return X};
cj2=function(X){var t=X.startEndTimeTemplate,G=X.startTimeUtcMillis;X=X.endTimeUtcMillis;if(t&&G&&X)return _.Vl(_.gaV(_.bu(t),Number(G),Number(X)))};
phT=function(X,t){var G,y,w=X==null?void 0:(G=X.viewCount)==null?void 0:(y=G.videoViewCountRenderer)==null?void 0:y.shortViewCount;if(!t&&w)return w;var z,B;return X==null?void 0:(z=X.viewCount)==null?void 0:(B=z.videoViewCountRenderer)==null?void 0:B.viewCount};
rjB=function(X,t){var G=X==null?void 0:X.relativeDateText;return!t&&G?[G,!0]:[X==null?void 0:X.dateText,!1]};
Nsr=function(X,t,G,y,w){y=y===void 0?!0:y;w=w===void 0?"":w;var z=phT(X,t),B=_.J(rjB(X,t)),V=B.next().value;B=B.next().value;t=t?X==null?void 0:X.sponsorsOnlyFirstTimeLongText:X==null?void 0:X.sponsorsOnlyFirstTimeShortText;var b=[];G&&z&&b.push(z);!G&&B||!V||b.push(V);X=[].concat(_.RY(b),[t,X==null?void 0:X.stationName,X==null?void 0:X.rating,X?cj2(X):void 0,X==null?void 0:X.upNextProgramText,X==null?void 0:X.superTitleLink]).filter(function(e){return!!e});
G={runs:[]};for(z=0;z<X.length;z++)G.runs.push.apply(G.runs,_.RY(WBB(X[z],y))),z<X.length-1&&G.runs.push({text:" "+w+" ",bold:y});return G};
P0T=function(X){if(X)return{runs:[{text:X,bold:!0}]}};
EaT=function(X){var t,G,y,w;if(X=X==null?void 0:(t=X.contents)==null?void 0:(G=t.twoColumnWatchNextResults)==null?void 0:(y=G.results)==null?void 0:(w=y.results)==null?void 0:w.contents){var z,B;return(B=(z=X.find(function(V){return!!V.videoPrimaryInfoRenderer}))==null?void 0:z.videoPrimaryInfoRenderer)==null?void 0:B.updatedMetadataEndpoint}};
Uyr=function(X,t){var G;return(G=X.sourceConfigs)==null?void 0:G.find(function(y){return y.videoId===t})};
ZC=function(X){return X==="End of video"||X==="End of playlist"};
myv=function(X){var t,G,y,w;return(t=X.getWatchNextResponse())==null?void 0:(G=t.contents)==null?void 0:(y=G.twoColumnWatchNextResults)==null?void 0:(w=y.playlist)==null?void 0:w.playlist};
RSN=function(X){var t,G,y,w,z,B;return(t=myv(X))==null?void 0:(G=t.playlistButtons)==null?void 0:(y=G.menuRenderer)==null?void 0:(w=y.topLevelButtons)==null?void 0:(z=w[0])==null?void 0:(B=z.playlistLoopButtonRenderer)==null?void 0:B.playlistLoopStateEntityKey};
iSQ=function(X){var t=_.gw().resolve(_.Gm),G;return(t=(G=_.Y(t.getAutoplayEndpoint(),_.nq))==null?void 0:G.playlistId)&&t===X};
ahV=function(X,t,G,y,w){function z(){_.vz.cancelJob(qO);var B=LBq(t,G/X.getPlaybackRate()),V=B.hours,b=B.minutes;B=(B.seconds*1E3||6E4)/X.getPlaybackRate();X.setVideoTimeLeft(vaV(V,b));y&&X.getPlayerState()!==0&&X.setSleepTimerTimeLeft(vaV(V,b,!0));(V>0||b>0)&&!w&&(qO=_.Rs(_.vz,z,B))}
_.vz.cancelJob(qO);qO=_.Rs(_.vz,z)};
lhi=function(X,t,G){function y(){_.vz.cancelJob(CH);var w=LBq(t,G),z=w.hours;w=w.minutes;var B=6E4/X.getPlaybackRate();if(z>0||w>0)X.setSleepTimerTimeLeft(vaV(z,w,!0)),CH=_.Rs(_.vz,y,B)}
_.vz.cancelJob(CH);CH=_.Rs(_.vz,y)};
xyN=function(X,t){var G=X.getVolume()/(t/500),y=function(w){_.vz.cancelJob(KH);var z=Math.floor(w-G);X.setVolume(z,!1);z>0&&(KH=_.Rs(_.vz,function(){y(z)},500))};
_.vz.cancelJob(KH);KH=_.Rs(_.vz,function(){y(X.getVolume())})};
fh4=function(X,t){_.vz.cancelJob(KH);t&&X.syncVolume()};
MJR=function(){var X={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Qf("SLEEP_TIMER_DISRUPTED")}}}}};_.gw().resolve(_.F3).resolveCommand(X)};
XEr=function(X){return(X.getDuration()-X.getProgressState().current)*1E3};
LBq=function(X,t){X=X+t-(0,_.gl)();if(X<=0)return{hours:0,minutes:0,seconds:0};var G=new $uH(0,0,0,0,0,0,X);X=G.getHours();t=G.getMinutes();G=G.getSeconds();G!==0&&t++;t!==0&&t%60===0&&(X++,t=0);return{hours:X,minutes:t,seconds:G}};
vaV=function(X,t,G){return X>0&&t>0?G?_.Qf("TIME_LEFT_HOURS_MINUTES",{hours:X.toString(),minutes:t.toString()}):_.Qf("TIME_HOURS_MINUTES",{hours:X.toString(),minutes:t.toString()}):X>0?G?_.Ia("TIME_LEFT_HOURS",X):_.Ia("TIME_HOURS",X):G?_.Qf("TIME_LEFT_MINUTES",{minutes:t.toString()}):_.Qf("TIME_MINUTES",{minutes:t.toString()})};
tE2=function(X,t){if(X.timelyActions)return X.timelyActions.find(function(G){var y;return((y=_.Y(G,OM))==null?void 0:y.cueRangeId)===t})};
Gfq=function(X){var t=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.qg(X);X.keyMap_.forEach(function(G,y){_.Eh(t,y)||this.remove(y)},X)};
y5T=function(X,t){X.reloadContinuationItemsCommandMatcher=t};
_.un=function(X,t){X.insertBefore(t,X.childNodes[0]||null)};
wEv=function(X){if(X>=48&&X<=57||X>=96&&X<=106||X>=65&&X<=90||_.C9&&X==0)return!0;switch(X){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 _.qe;default:return!1}};
zcv=function(X){if(X.altKey&&!X.ctrlKey||X.metaKey||X.keyCode>=112&&X.keyCode<=123)return!1;if(wEv(X.keyCode))return!0;switch(X.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!_.qe;default:return X.keyCode<166||X.keyCode>183}};
$uH=function(X,t,G,y,w,z,B){this.date=typeof X==="number"?new Date(X,t||0,G||1,y||0,w||0,z||0,B||0):new Date(X&&X.getTime?X.getTime():_.YE())};
_.sx($uH,_.U_);_.H=$uH.prototype;_.H.getHours=function(){return this.date.getHours()};
_.H.getMinutes=function(){return this.date.getMinutes()};
_.H.getSeconds=function(){return this.date.getSeconds()};
_.H.getMilliseconds=function(){return this.date.getMilliseconds()};
_.H.getUTCDay=function(){return this.date.getUTCDay()};
_.H.getUTCHours=function(){return this.date.getUTCHours()};
_.H.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.H.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.H.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.H.setHours=function(X){this.date.setHours(X)};
_.H.setMinutes=function(X){this.date.setMinutes(X)};
_.H.setSeconds=function(X){this.date.setSeconds(X)};
_.H.setMilliseconds=function(X){this.date.setMilliseconds(X)};
_.H.setUTCHours=function(X){this.date.setUTCHours(X)};
_.H.setUTCMinutes=function(X){this.date.setUTCMinutes(X)};
_.H.setUTCSeconds=function(X){this.date.setUTCSeconds(X)};
_.H.setUTCMilliseconds=function(X){this.date.setUTCMilliseconds(X)};
_.H.add=function(X){_.U_.prototype.add.call(this,X);X.hours&&this.setUTCHours(this.date.getUTCHours()+X.hours);X.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+X.minutes);X.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+X.seconds)};
_.H.JSC$11206_toIsoString=function(X){var t=_.U_.prototype.JSC$11206_toIsoString.call(this,X);return X?t+"T"+_.s1(this.getHours(),2)+":"+_.s1(this.getMinutes(),2)+":"+_.s1(this.getSeconds(),2):t+"T"+_.s1(this.getHours(),2)+_.s1(this.getMinutes(),2)+_.s1(this.getSeconds(),2)};
_.H.equals=function(X){return this.getTime()==X.getTime()};
_.H.toString=function(){return this.JSC$11206_toIsoString()};
_.H.clone=function(){var X=new $uH(this.date);X.firstDayOfWeek_=this.firstDayOfWeek_;X.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return X};
_.H2i=function(X){return _.Dl({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:X}})};
ouV=new _.ja("imageTileRenderer");var J5r=new _.ja("adGridCardCollectionViewModel");var ByQ=new _.ja("carouselTitleViewModel");var nuH=new _.ja("ctaCarouselItemViewModel");var VEV=new _.ja("textFieldViewModel");_.b2Q=new _.ja("engagementPanelHeaderShowNavigationButtonCommand");var kfR=new _.ja("hideEngagementPanelScrimAction");var du2=new _.ja("setActivePanelItemAction");var ecB=new _.ja("showEngagementPanelScrimAction");var jfR=new _.ja("updateEngagementPanelAction");var guN=new _.ja("updateSearchInVideoResultsAction");var FyH=new _.ja("transcriptCueGroupRenderer");var TyR=new _.ja("transcriptCueRenderer");var A52=new _.ja("transcriptFooterRenderer");var YXv=new _.ja("engagementPanelAdSubtitleRenderer");var sfV=new _.ja("videoDescriptionFantasySectionViewModel");var DuH=new _.ja("deleteClipEngagementPanelCommand");var SXR=new _.ja("loopCommand");var hcr=new _.ja("changeCreatorEndscreenVisibilityCommand");var Z2R=new _.ja("liveChatCallForQuestionsRenderer");var qXa=new _.ja("updateTimedMarkersSyncObserverCommand");var OM=new _.ja("timelyActionViewModel");var CqH=new _.ja("timelyActionsOverlayViewModel");var Kyi=new _.ja("repeatChapterCommand");var O2T=new _.ja("watchPlayerOverflowMenuCommand");var uIH=new _.ja("compositeVideoOverlayRenderer");var QfH=new _.ja("sortFilterSubMenuRenderer");var IDH=new _.ja("switchListItemViewModel");var WyB=new _.ja("inputComposerViewModel");var c54=new _.ja("transcriptEditSegmentCommand");var pEN=new _.ja("transcriptUpdateSegmentTextCommand");var r52=new _.ja("transcriptSearchBoxRenderer");var NyH=new _.ja("transcriptSegmentListRenderer");var PqH=new _.ja("transcriptSegmentRenderer");_.EuT=new _.ja("updateDateTextAction");var UuH=new _.ja("updateTitleAction");var muN=new _.ja("updateViewershipAction");var RcQ=new _.ja("carouselLockupRenderer");var Qn=new _.ja("expandableVideoDescriptionBodyRenderer");var i2H=new _.ja("videoDescriptionHeaderRenderer");var LyQ=new _.ja("videoDescriptionYouchatSectionViewModel");_.Iv=_.At("kevlar_watch_page_horizontal_margin",24);_.vuv=_.At("kevlar_watch_page_columns_top_padding",24);_.aDq=426+_.Iv*2;_.Wg=_.At("kevlar_watch_two_column_width_threshold",1E3);_.lD2=_.Iv*2;_.xuR=_.At("kevlar_watch_secondary_width",402);_.fDR=_.At("kevlar_watch_max_player_width",1280);_.MER=_.At("kevlar_watch_flexy_metadata_height",136);_.XYk=_.lD2+310+_.Iv;_.$wW=_.lD2+360+_.Iv;var tst={PAUSE_CHAT:18};var GVx;var yAY;var cg=function(){return _.O.apply(this,arguments)||this};
_.S(cg,_.O);cg.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
cg.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var X=_.Y(this.data.button,_.vk);X&&(X.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.ke.Object.defineProperties(cg,{template:{configurable:!0,enumerable:!0,get:function(){if(yAY===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;GVx===void 0&&(GVx=document.createElement("template"));var y=GVx;G.call(t,y.content.cloneNode(!0),X.content.firstChild);yAY=X}X=yAY;return X}}});
_.E([_.q(_.yK),_.U("design:type",Object)],cg.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({selectorArgs:["data.enabledEntityKey"],selector:naB,observer:"onEnabledChange"}),_.U("design:type",Boolean)],cg.prototype,"enabled",void 0);_.E([_.K(),_.U("design:type",Object)],cg.prototype,"data",void 0);_.E([_.$F({is:"yt-disableable-button-view-model",noInjection:!0})],cg);var wYt;var zGt;var H_B=["transVert01","transVert02","transVert03"],oJB="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),pH=function(){var X=_.O.apply(this,arguments)||this;X.emojiManager=_.wQ;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};X.reactionBuckets=[];X.noEmojiIdentifier="NO_EMOJI";return X};
_.S(pH,_.O);_.H=pH.prototype;_.H.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.H.desktopFountainEmojiSizePxChanged=function(){_.Kd(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.H.createUserReactionAnimation=function(X){this.createEmojiAnimation(X,!0)};
_.H.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var X;((X=this.data)==null?0:X.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.EW("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.RY(this.emojiContainer.children)).forEach(function(t){t.remove()})};
_.H.detached=function(){this.cleanupFountain()};
_.H.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var X;this.reactionBuckets=_.RH.unsafeClone((X=this.emojiFountainData)==null?void 0:X.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.H.processEmojiBucket=function(X){var t=this;if(this.reactionBuckets&&!(X>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var G=this.reactionBuckets[X];this.generateEmojiAnimations(G);if(X<this.reactionBuckets.length-1){var y;if(G==null?0:(y=G.duration)==null?0:y.seconds)this.emojiBucketTimerId=setTimeout(function(){t.processEmojiBucket(X+1)},Number(G.duration.seconds)*1E3)}}};
_.H.generateEmojiAnimations=function(X){var t=this,G=this.getRandomEmojiIdFromBucketWithOverride(X);if(G&&G!==this.noEmojiIdentifier){var y=0;X.targetEps?(y=this.linearInterpolateBounded(1,20,100,12,X.emojiSizeIndex||0),this.createEmojiAnimation(G,!1,X.emojiAnimationMs,y),y=this.getEmojiDelayMsFromTargetEps(X.targetEps)):(this.createEmojiAnimation(G),y=this.getEmojiDelayMsFromDistribution(X.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){t.generateEmojiAnimations(X)},y)}};
_.H.getRandomEmojiIdFromBucketWithOverride=function(X){if(!(X&&X.reactionsData&&X.reactionsData.length&&X.totalReactions))return this.noEmojiIdentifier;for(var t=X.totalReactions,G=1,y=_.J(X.reactionsData),w=y.next();!w.done;w=y.next())w=w.value,(w.reactionWeightOverride||w.reactionWeightOverride===0)&&w.reactionCount&&(t-=w.reactionCount,G-=w.reactionWeightOverride);y=!0;G<0&&(y=!1,t=X.totalReactions,G=1);if(y&&G>0&&t===0)if(G===1){w=0;for(var z=_.J(X.reactionsData),B=z.next();!B.done;B=z.next())B=
B.value,B.reactionCount&&B.reactionCount>0&&w++;w=1/w;z=_.J(X.reactionsData);for(B=z.next();!B.done;B=z.next())B.value.reactionWeightOverride=w}else for(w=1/(1-G),z=_.J(X.reactionsData),B=z.next();!B.done;B=z.next())B=B.value,B.reactionWeightOverride&&(B.reactionWeightOverride*=w);w=Math.random();z=0;B=_.J(X.reactionsData);for(var V=B.next();!V.done;V=B.next())if(V=V.value,V.reactionCount&&(z=(V.reactionWeightOverride||V.reactionWeightOverride===0)&&y?z+V.reactionWeightOverride:z+G*V.reactionCount/
t,z>w&&(V.reactionCount--,X.totalReactions--,V=this.reactionItemToEmojiString(V),V!==this.noEmojiIdentifier)))return V;return this.noEmojiIdentifier};
_.H.reactionItemToEmojiString=function(X){if(X.unicodeEmojiId)return X.unicodeEmojiId;if(X.emoteId)return X.emoteId;if(X.videoReactionType)switch(X.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.H.createEmojiAnimation=function(X,t,G,y){t=t===void 0?!1:t;this.lastEmojiRequestedForTesting=X;var w=X.startsWith("yt-icons:"),z=_.GK(this.emojiManager,X);if(z||w){var B=document.createElement("emoji");B.classList.add("yt-emoji-fountain-view-model");B.classList.add(H_B[Math.floor(Math.random()*H_B.length)]);var V=document.createElement("div");V.classList.add("yt-emoji-fountain-view-model");V.classList.add("horizontal-container");V.classList.add(oJB[Math.floor(Math.random()*oJB.length)]);t?(G=document.createElement("div"),
G.classList.add("user-reaction-bubble"),G.classList.add("yt-emoji-fountain-view-model"),V.appendChild(G)):(G&&(B.style.animationDuration=G+"ms",V.style.animationDuration=G+"ms"),y&&(B.style.width=y+"px",B.style.height=y+"px"));w?(w=document.createElement("yt-icon"),w.polymerController.icon=X,y&&(w.style.width=y+"px",w.style.height=y+"px"),X=w):X=this.emojiManager.createEmoji(z,!1);X.classList.add("yt-emoji-fountain-view-model");V.appendChild(X);B.appendChild(V);this.emojiContainer.appendChild(B);
B.addEventListener("animationend",function(){B.remove()});
var b,e;if((b=this.data)==null?0:(e=b.loggingDirectives)==null?0:e.trackingParams)t=t?_.ai(183501):_.ai(183500),VJR(this.data.loggingDirectives.trackingParams,t),_.hAw(t);setTimeout(function(){B&&B.remove()},2E3)}};
_.H.getEmojiDelayMsFromDistribution=function(X){return Math.random()*(X||1)*1E3};
_.H.getEmojiDelayMsFromTargetEps=function(X){return Math.random()*2*(1/X)*1E3};
_.H.linearInterpolateBounded=function(X,t,G,y,w){w=Math.min(Math.max(w,X),G);return(t*(G-w)+y*(w-X))/(G-X)};
pH.prototype.onEmojiFountainDataEntityUpdate=pH.prototype.onEmojiFountainDataEntityUpdate;pH.prototype.desktopFountainEmojiSizePxChanged=pH.prototype.desktopFountainEmojiSizePxChanged;pH.prototype.isActiveChanged=pH.prototype.isActiveChanged;_.E([_.K(),_.U("design:type",_.tB)],pH.prototype,"emojiManager",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],pH.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],pH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],pH.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(X,t){return _.Kg(X.entities,"emojiFountainDataEntity",t)}}),
_.U("design:type",Object)],pH.prototype,"emojiFountainData",void 0);_.E([_.K(),_.U("design:type",Boolean)],pH.prototype,"isActive",void 0);_.E([_.cW("isActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pH.prototype,"isActiveChanged",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pH.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",String)],pH.prototype,"lastEmojiRequestedForTesting",void 0);
_.E([_.K({value:function(){return _.At("desktop_fountain_emoji_size_px",20)}}),
_.U("design:type",Number)],pH.prototype,"desktopFountainEmojiSizePx",void 0);_.E([_.cW("desktopFountainEmojiSizePx"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pH.prototype,"desktopFountainEmojiSizePxChanged",null);_.E([_.rt("#emoji-container"),_.U("design:type",HTMLElement)],pH.prototype,"emojiContainer",void 0);
_.E([_.cW("emojiFountainData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pH.prototype,"onEmojiFountainDataEntityUpdate",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],pH);
_.N(pH,"yt-emoji-fountain-view-model",function(){if(zGt===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;wYt===void 0&&(wYt=document.createElement("template"));var y=wYt;G.call(t,y.content.cloneNode(!0),X.content.firstChild);zGt=X}X=zGt;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var JAi;var B6k;var rO=function(){return _.O.apply(this,arguments)||this};
_.S(rO,_.O);rO.prototype.onChoiceChanged=function(){this.data&&_.Kd(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
rO.prototype.onChoiceChanged=rO.prototype.onChoiceChanged;_.E([_.K(),_.U("design:type",Object)],rO.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rO.prototype,"onChoiceChanged",null);_.E([_.p({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],rO);
_.N(rO,"yt-live-chat-banner-poll-choice",function(){if(B6k===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;JAi===void 0&&(JAi=document.createElement("template"));var y=JAi;G.call(t,y.content.cloneNode(!0),X.content.firstChild);B6k=X}X=B6k;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var nJM;var Vsj;var NO=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("web_button_rework_with_live");X.small=!1;return X};
_.S(NO,_.O);NO.prototype.computeIsSmall=function(){var X;return((X=this.buttonOverrides)==null?void 0:X.size)==="S"};
NO.prototype.computeId=function(){return this.data&&this.data.targetId};
_.E([_.q(_.wG.YtLiveChatTooltipTargetingBehavior),_.U("design:type",Object)],NO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.U("design:type",String)],NO.prototype,"id",void 0);_.E([_.K(),_.U("design:type",Object)],NO.prototype,"buttonOverrides",void 0);_.E([_.K(),_.U("design:type",Object)],NO.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],NO.prototype,"modern",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.U("design:type",Object)],NO.prototype,"small",void 0);_.E([_.p({disableElementRegistration:!0,is:"yt-live-chat-button"})],NO);
_.N(NO,"yt-live-chat-button",function(){if(Vsj===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;nJM===void 0&&(nJM=document.createElement("template"));var y=nJM;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Vsj=X}X=Vsj;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var b_j;var kVk;var Pg=function(){var X=_.O.apply(this,arguments)||this;X.inCollapsedBanner=!1;X.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};X.questionButtonOverrides={style:"mono",type:"filled"};return X};
_.S(Pg,_.O);_.H=Pg.prototype;_.H.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]]"}}}}}};
_.H.onContextMenuButtonClick=function(X){this.ytLiveChatItemBehavior.showContextMenu(X)};
_.H.onYtRendererstamperFinished=function(){this.menuButton=_.Sm(this.hostElement).querySelector("#menu-button")};
_.H.dataChanged=function(){var X,t;if((t=_.Y((X=this.data)==null?void 0:X.overflowMenuButton,_.G4))==null?0:t.command)this.data.contextMenuEndpoint=_.Y(this.data.overflowMenuButton,_.G4).command};
_.H.onButtonClick=function(){var X,t=_.Y((X=this.data)==null?void 0:X.askQuestionButton,_.G4);if(t){if(t.trackingParams&&(X=_.i$(t.trackingParams))){var G=_.lw();G&&_.BK(G,X)}_.Yt(this.hostElement,"innertube-command",t.command)}};
Pg.prototype.onYtRendererstamperFinished=Pg.prototype.onYtRendererstamperFinished;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],Pg.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],Pg.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K({observer:"dataChanged"}),_.U("design:type",Object)],Pg.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Pg.prototype,"inCollapsedBanner",void 0);_.E([_.K(),_.U("design:type",Object)],Pg.prototype,"buttonOverrides",void 0);_.E([_.K(),_.U("design:type",Object)],Pg.prototype,"questionButtonOverrides",void 0);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Pg.prototype,"onYtRendererstamperFinished",null);
_.E([_.p({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Pg);
_.N(Pg,"yt-live-chat-call-for-questions-renderer",function(){if(kVk===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;b_j===void 0&&(b_j=document.createElement("template"));var y=b_j;G.call(t,y.content.cloneNode(!0),X.content.firstChild);kVk=X}X=kVk;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var dw1={};dw1.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 X=this;window.requestAnimationFrame(function(){X.restoreFocusNode_||(X.restoreFocusNode_=document.activeElement);var t=_.Eyh(X.hostElement);t.length&&t[t.length-1].focus()})},
isAttachedChanged_:function(X,t){X?this.focusChild_():t&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(X){this.hidden||_.be(X).indexOf(this.hostElement)!==-1||(X.stopPropagation(),this.focusChild_())}};var eG_;var jVY;var EM=function(){return _.O.apply(this,arguments)||this};
_.S(EM,_.O);EM.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
EM.prototype.onClick=function(X){X.target!==this.confirmButton&&X.target!==this.cancelButton&&(this.hidden=!0)};
_.E([_.rt("#confirm_button"),_.U("design:type",Object)],EM.prototype,"confirmButton",void 0);_.E([_.rt("#cancel_button"),_.U("design:type",Object)],EM.prototype,"cancelButton",void 0);_.E([_.K(),_.U("design:type",gJY)],EM.prototype,"data",void 0);_.E([_.K({value:!0,reflectToAttribute:!0}),_.U("design:type",Boolean)],EM.prototype,"hidden",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(dw1.YtLiveChatDialogBehavior),_.U("design:type",Object)],EM.prototype,"ytLiveChatDialogBehavior",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],EM);
var gJY=_.N(EM,"yt-live-chat-dialog-renderer",function(){if(jVY===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;eG_===void 0&&(eG_=document.createElement("template"));var y=eG_;G.call(t,y.content.cloneNode(!0),X.content.firstChild);jVY=X}X=jVY;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var FEt;var T6Y,AAN=function(){if(T6Y!==void 0)return T6Y;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;FEt===void 0&&(FEt=document.createElement("template"));var y=FEt;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return T6Y=X};var Yhx;var sVt;var UM=function(){var X=_.O.apply(this,arguments)||this;X.tooltip=null;X.data=null;X.id="";X.active=!1;X.icon="";X.disabled=!1;X.showTooltip=!1;X.useToggledActiveState=!0;X.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return X};
_.S(UM,_.O);_.H=UM.prototype;
_.H.dataChanged=function(){var X;((X=this.data)==null?0:X.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,_.Cd)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var t;if((t=this.data)==null?0:t.disabled)this.disabled=!0};
_.H.computeId=function(X){return X};
_.H.computeIcon=function(X,t){if(!X)return"";if(this.useToggledActiveState)return"yt-icons:"+X.toLowerCase();var G,y;return t&&((G=this.data)==null?0:(y=G.toggledIcon)==null?0:y.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+X.toLowerCase()};
_.H.logPDGEntryPoint=function(){_.NQA(_.O8("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")};
_.H.immediatelyShowTooltip=function(){var X=_.Sm(this.hostElement).querySelector("#tooltip");X.animationDelay=0;X.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};X.show()};
_.H.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.H.onClick=function(X){var t;((t=this.data)==null?0:t.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(),X.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Yt(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.H.computeShowTooltip=function(X,t){return!!(X&&X.tooltip&&t)};
_.H.maybeUpdateTooltipText=function(){var X=this,t;if((t=this.data)==null?0:t.tooltip){var G=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Cd)(X.tooltip).textContent=G},250)}};
_.H.handleLiveChatActions=function(X){var t=this;X.length&&(this.id!=="creator"&&this.id!=="product-picker"||X.forEach(function(G){(G=t.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",G))&&G.durationSec===G.fullDurationSec&&t.startBubble(t.colorFromDecimal(G.startBackgroundColor))}))};
_.H.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.H.startBubble=function(X){_.Kd(this.hostElement,{"--yt-live-chat-monetization-button-glow":X});this.hostElement.setAttribute("bubble","")};
_.H.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.H.colorFromDecimal=function(X){typeof X==="string"&&(X=Number(X));return"rgba("+[X>>16&255,X>>8&255,X&255,(X>>24&255)/255].join()+")"};
UM.prototype.onAnimationEnd=UM.prototype.onAnimationEnd;UM.prototype.disabledChanged=UM.prototype.disabledChanged;UM.prototype.dataChanged=UM.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],UM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.wG.YtLiveChatTooltipTargetingBehavior),_.U("design:type",Object)],UM.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],UM.prototype,"data",void 0);_.E([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.U("design:type",Object)],UM.prototype,"id",void 0);_.E([_.K({notify:!0,reflectToAttribute:!0}),_.U("design:type",Object)],UM.prototype,"active",void 0);
_.E([_.K({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.U("design:type",Object)],UM.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],UM.prototype,"disabled",void 0);_.E([_.K({computed:"computeShowTooltip(data, disabled)"}),_.U("design:type",Object)],UM.prototype,"showTooltip",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],UM.prototype,"useToggledActiveState",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UM.prototype,"dataChanged",null);_.E([_.cW("disabled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UM.prototype,"disabledChanged",null);_.E([_.WW("animationend"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],UM.prototype,"onAnimationEnd",null);
_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],UM);
_.N(UM,"yt-live-chat-icon-toggle-button-renderer",function(){if(sVt===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Yhx===void 0&&(Yhx=document.createElement("template"));var y=Yhx;G.call(t,y.content.cloneNode(!0),X.content.firstChild);sVt=X}X=sVt;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var DwB;var ShB;var m7=function(){return _.O.apply(this,arguments)||this};
_.S(m7,_.O);m7.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.K(),_.U("design:type",Object)],m7.prototype,"data",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.p({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],m7);
_.N(m7,"yt-live-chat-message-input-prompt-header-renderer",function(){if(ShB===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;DwB===void 0&&(DwB=document.createElement("template"));var y=DwB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ShB=X}X=ShB;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var hGi;var Z_j;var qhN;var ClY;var KEk;var O_N;var uvt=function(){return _.O.apply(this,arguments)||this};
_.S(uvt,_.O);_.E([_.K(),_.U("design:type",Object)],uvt.prototype,"data",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],uvt);
_.N(uvt,"yt-live-chat-message-subtext-renderer",function(){if(O_N===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;KEk===void 0&&(KEk=document.createElement("template"));var y=KEk;G.call(t,y.content.cloneNode(!0),X.content.firstChild);O_N=X}X=O_N;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var Rv=function(){var X=_.O.apply(this,arguments)||this;X.subtextOnBottom=!1;X.buttonOverrides={style:"mono",type:"tonal"};return X};
_.S(Rv,_.O);Rv.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Rv.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Rv.prototype,"subtextOnBottom",void 0);_.E([_.K(),_.U("design:type",Object)],Rv.prototype,"buttonOverrides",void 0);
_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Rv);
_.N(Rv,"yt-live-chat-message-renderer",function(){if(ClY===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;qhN===void 0&&(qhN=document.createElement("template"));var y=qhN;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ClY=X}X=ClY;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var QVk;var IfB;var LH=function(){var X=_.O.apply(this,arguments)||this;X.isRemovable=!1;X.hasPrefilledText=!1;X.isInputDirty=!1;X.overCharacterLimit=!1;X.underCharacterLimit=!1;X.showErrorMessage=!1;return X};
_.S(LH,_.O);_.H=LH.prototype;_.H.computeId=function(){return this.data.id};
_.H.computeInputData=function(){return this.data.inputData};
_.H.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.H.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.H.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.H.getLiveChatRichMessageInput=function(){return _.Sm(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.H.clearInput=function(){_.Sm(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.H.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.H.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.H.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.H.handleTextInputCharCountChanged=function(X){X=X.detail&&X.detail.characterCount;X!==void 0&&(this.characterCount=X,X!==0&&(this.isInputDirty=!0))};
_.H.onInputFocusOut=function(){this.isInputDirty=!0};
_.H.onClickCloseButton=function(){_.Yt(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
LH.prototype.handleTextInputCharCountChanged=LH.prototype.handleTextInputCharCountChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],LH.prototype,"data",void 0);_.E([_.K({computed:"computeId(data.id)"}),_.U("design:type",String)],LH.prototype,"id",void 0);_.E([_.K({computed:"computeInputData(data.inputData)"}),_.U("design:type",Object)],LH.prototype,"inputData",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.U("design:type",Object)],LH.prototype,"isRemovable",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.U("design:type",Object)],LH.prototype,"hasPrefilledText",void 0);_.E([_.K({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.U("design:type",Number)],LH.prototype,"charactersRemaining",void 0);
_.E([_.K(),_.U("design:type",Number)],LH.prototype,"characterCount",void 0);_.E([_.K(),_.U("design:type",Object)],LH.prototype,"isInputDirty",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.U("design:type",Object)],LH.prototype,"overCharacterLimit",void 0);_.E([_.K({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.U("design:type",Object)],LH.prototype,"underCharacterLimit",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.U("design:type",Object)],LH.prototype,"showErrorMessage",void 0);_.E([_.WW("yt-live-chat-text-input-field-renderer-character-count-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],LH.prototype,"handleTextInputCharCountChanged",null);
_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],LH);
_.N(LH,"yt-live-chat-poll-editor-input",function(){if(IfB===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;QVk===void 0&&(QVk=document.createElement("template"));var y=QVk;G.call(t,y.content.cloneNode(!0),X.content.firstChild);IfB=X}X=IfB;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var WEx;var cAB;var pYt={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},vg=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("web_button_rework_with_live");X.closeButtonOverrides={iconPosition:"icon-only"};X.startButtonOverrides={style:"mono",type:"filled"};X.addOptionButtonOverrides={style:"mono",type:"text"};return X};
_.S(vg,_.O);_.H=vg.prototype;
_.H.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"}}}}};
_.H.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var X;_.Y((X=this.data)==null?void 0:X.startButton,_.G4)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.H.computeId=function(){return this.data&&this.data.id||""};
_.H.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.H.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.H.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.H.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.H.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var X=0;X<this.pollEditorInfoWithDefaults.minPollOptions;X++)this.addPollOptionData()};
_.H.getIsValidPoll=function(){var X=this;if(!this.pollEditorInfoWithDefaults)return!1;var t=this.pollEditorInfoWithDefaults,G=t.minPollOptionChars,y=t.maxPollOptionChars,w=t.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>t.maxPollQuestionChars)return!1;t=_.Sm(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(t).every(function(z,B){z=z.characterCount;!z&&w[B]&&(z=X.ytRendererBehavior.getSimpleString(w[B]).length);return z!==void 0&&z>=G&&z<=y})};
_.H.isValidPollChanged=function(){var X;_.Y((X=this.data)==null?void 0:X.startButton,_.G4)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.H.addPollOptionData=function(){var X=this.pollEditorInfoWithDefaults,t=X.maxPollOptionChars,G=X.optionPlaceholderText,y=X.customOptionPlaceholderText,w=X.pollOptionData;this.currentNumPollOptions>=X.maxPollOptions||(X={liveChatPollOptionInput:{inputData:{placeholder:y[this.currentNumPollOptions]||G,maxCharacterLimit:t},maxCharacterLimit:t,minCharacterLimit:X.minPollOptionChars,hasPrefilledText:!!y[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=X.minPollOptions}},w.charCountErrorText&&
(X.liveChatPollOptionInput.charCountErrorText=w.charCountErrorText),w.charsRemainingAltLabel&&(X.liveChatPollOptionInput.charsRemainingAltLabel=w.charsRemainingAltLabel),w.removeOptionAltText&&(X.liveChatPollOptionInput.removeOptionAltText=w.removeOptionAltText),this.push("pollOptionsData",X),w=Array.from(_.Sm(_.Sm(this.hostElement).querySelector("#poll-options")).children),w.forEach(function(z,B){z.polymerController.set("data.id",B)}),_.Sm(w[w.length-1]).querySelector("#input").focus())};
_.H.getPollOptionInputValues=function(){var X=this,t=[],G=_.Sm(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),y=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(G).forEach(function(w,z){var B=null;w=w.getLiveChatRichMessageInput();var V;(w==null?0:(V=w.textSegments)==null?0:V.length)?B=_.JS(w):y[z]&&(B=X.formattedStringToLiveChatRichMessageInput(y[z]));t.push(B)});
return t};
_.H.requestCreateAndStartPoll=function(X){var t=this.getPollOptionInputValues();if(!t.some(function(y){return!y})){t={optionText:t};
var G=_.Sm(_.Sm(this.hostElement).querySelector("#poll-question")).firstChild;G&&G.liveChatRichMessageInput&&(t.questionText=_.JS(G.liveChatRichMessageInput));_.hE(this.hostElement,[X,t])}};
_.H.selectedChanged=function(){if(this.selected){var X=_.Sm(_.Sm(this.hostElement).querySelector("#start-button")).firstElementChild;if(X){var t;(t=_.Sm(X).querySelector("#button")||_.hb(X).querySelector("button"))==null||t.focus()}}};
_.H.handleTextInputChanged=function(X){var t;((t=X.target)==null?void 0:t.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=X.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.H.handleStartButtonAction=function(X){X.detail.actionName==="yt-service-request"&&(X.stopPropagation(),(X=X.detail.args[1])&&this.requestCreateAndStartPoll(X))};
_.H.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.H.handleServiceRequestCompleted=function(X){this.createPollRequestInFlight=!1;(X=X.detail&&X.detail.data)&&X.success&&(_.Yt(this.hostElement,"picker-cancelled"),_.sl(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.H.onCloseClick=function(){_.Yt(this.hostElement,"picker-cancelled");_.sl(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.H.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.H.handlePollEditorInputClosed=function(X){var t=this.pollOptionsData.findIndex(function(G){return G.liveChatPollOptionInput.id===X.detail.id});
this.splice("pollOptionsData",t,1);this.isValidPoll=this.getIsValidPoll()};
_.H.onPickerCancelled=function(){this.reset()};
_.H.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var X=_.Sm(_.Sm(this.hostElement).querySelector("#poll-question")).firstChild;X&&X.setLiveChatRichMessageInput(null);if(X=_.Sm(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){X=_.J(Array.from(X));for(var t=X.next();!t.done;t=X.next())t.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.H.formattedStringToLiveChatRichMessageInput=function(X){return X.simpleText?{text_segments:[X.simpleText]}:{text_segments:X.runs}};
_.ke.Object.defineProperties(vg.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(pYt,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
vg.prototype.onPickerCancelled=vg.prototype.onPickerCancelled;vg.prototype.handlePollEditorInputClosed=vg.prototype.handlePollEditorInputClosed;vg.prototype.handleServiceRequestCompleted=vg.prototype.handleServiceRequestCompleted;vg.prototype.handleServiceRequestSent=vg.prototype.handleServiceRequestSent;vg.prototype.handleTextInputChanged=vg.prototype.handleTextInputChanged;vg.prototype.selectedChanged=vg.prototype.selectedChanged;vg.prototype.isValidPollChanged=vg.prototype.isValidPollChanged;
vg.prototype.shouldInitializePollChanged=vg.prototype.shouldInitializePollChanged;vg.prototype.dataChanged=vg.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vg.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vg.prototype,"modern",void 0);
_.E([_.K(),_.U("design:type",Object)],vg.prototype,"closeButtonOverrides",void 0);_.E([_.K(),_.U("design:type",Object)],vg.prototype,"startButtonOverrides",void 0);_.E([_.K(),_.U("design:type",Object)],vg.prototype,"addOptionButtonOverrides",void 0);_.E([_.K({computed:"computeId(data.id)",reflectToAttribute:!0}),_.U("design:type",String)],vg.prototype,"id",void 0);_.E([_.K({value:function(){return[]}}),
_.U("design:type",Array)],vg.prototype,"pollOptionsData",void 0);_.E([_.C("pollEditorInfoWithDefaults"),_.U("design:type",Object),_.U("design:paramtypes",[])],vg.prototype,"pollQuestionData",null);_.E([_.K({value:0}),_.U("design:type",Number)],vg.prototype,"pollQuestionCharacterCount",void 0);_.E([_.C("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.U("design:type",Object),_.U("design:paramtypes",[])],vg.prototype,"pollQuestionCharactersRemaining",null);
_.E([_.K({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.U("design:type",Boolean)],vg.prototype,"overQuestionCharacterLimit",void 0);_.E([_.C("data.pollEditorInfo"),_.U("design:type",Object),_.U("design:paramtypes",[])],vg.prototype,"pollEditorInfoWithDefaults",null);_.E([_.K({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.U("design:type",Number)],vg.prototype,"currentNumPollOptions",void 0);
_.E([_.K({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.U("design:type",Boolean)],vg.prototype,"hasMaxNumPollOptions",void 0);_.E([_.C("pollEditorInfoWithDefaults","pollOptionsData"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],vg.prototype,"shouldInitializePoll",null);_.E([_.K(),_.U("design:type",Object)],vg.prototype,"isValidPoll",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],vg.prototype,"createPollRequestInFlight",void 0);_.E([_.K(),_.U("design:type",Object)],vg.prototype,"selected",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.U("design:type",Boolean)],vg.prototype,"showQuestionErrorMessage",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vg.prototype,"dataChanged",null);_.E([_.cW("shouldInitializePoll"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vg.prototype,"shouldInitializePollChanged",null);_.E([_.cW("isValidPoll"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vg.prototype,"isValidPollChanged",null);
_.E([_.cW("selected"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vg.prototype,"selectedChanged",null);_.E([_.WW("yt-live-chat-text-input-field-renderer-character-count-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],vg.prototype,"handleTextInputChanged",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vg.prototype,"handleServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],vg.prototype,"handleServiceRequestCompleted",null);
_.E([_.WW("yt-live-chat-poll-editor-input-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],vg.prototype,"handlePollEditorInputClosed",null);_.E([_.WW("picker-cancelled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vg.prototype,"onPickerCancelled",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],vg);
_.N(vg,"yt-live-chat-poll-editor-panel-renderer",function(){if(cAB===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;WEx===void 0&&(WEx=document.createElement("template"));var y=WEx;G.call(t,y.content.cloneNode(!0),X.content.firstChild);cAB=X}X=cAB;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var rAY;var N6i;var av=function(){return _.O.apply(this,arguments)||this};
_.S(av,_.O);av.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
av.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ke.Object.defineProperties(av.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var X,t;return(X=this.data)==null?void 0:(t=X.title)==null?void 0:t.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var X;return _.wr((X=this.data)==null?void 0:X.onTapCommand)}}});
_.E([_.q(_.pv.YtEndpointBehavior),_.U("design:type",Object)],av.prototype,"ytEndpointBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],av.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],av.prototype,"itemId",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],av.prototype,"hasPromotion",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],av.prototype,"innertubeCommand",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],av);
_.N(av,"yt-live-chat-product-picker-panel-item-view-model",function(){if(N6i===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;rAY===void 0&&(rAY=document.createElement("template"));var y=rAY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);N6i=X}X=N6i;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var PlY;var EJt;var ln=function(){var X=_.O.apply(this,arguments)||this;X.id="product-picker";X.selected=!1;X.closeButtonId="close-button";X.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return X};
_.S(ln,_.O);_.H=ln.prototype;_.H.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.H.observeSelected=function(){this.selected&&this.hostElement.focus();var X=_.Sm(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");X.length&&X[0].focus()};
_.H.onCloseBuyFlow=function(){_.Yt(this.hostElement,"picker-cancelled")};
_.H.onCloseClick=function(){_.Yt(this.hostElement,"picker-cancelled");var X;((X=this.data)==null?0:X.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.Y(this.data.closeButton,_.vk))};
_.H.onCloseEngageWithAudienceEditorPanels=function(){_.Yt(this.hostElement,"picker-cancelled")};
ln.prototype.observeSelected=ln.prototype.observeSelected;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],ln.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ln.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ln.prototype,"id",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ln.prototype,"selected",void 0);_.E([_.K(),_.U("design:type",Object)],ln.prototype,"closeButtonId",void 0);_.E([_.cW("selected"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ln.prototype,"observeSelected",null);
_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],ln);
_.N(ln,"yt-live-chat-product-picker-panel-view-model",function(){if(EJt===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;PlY===void 0&&(PlY=document.createElement("template"));var y=PlY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);EJt=X}X=EJt;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var UwY;var mwN;var xv=function(){var X=_.O.apply(this,arguments)||this;X.iconId="";X.icon="";X.disabled=!1;X.systemIcons=_.A("kevlar_system_icons");return X};
_.S(xv,_.O);_.H=xv.prototype;_.H.attached=function(){_.A("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.H.computeIconId=function(X){return X&&X.icon&&X.icon.iconType?X.icon.iconType.toLowerCase():""};
_.H.computeIcon=function(X){return X&&X.icon&&X.icon.iconType?(X=X.icon.iconType.toLowerCase(),(X.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+X):""};
_.H.computeDisabled=function(X){return!!X};
_.H.computeCommand=function(X,t){return t?void 0:X};
_.H.computeTooltip=function(X,t){return t&&X?X:""};
_.H.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ke.Object.defineProperties(xv.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.A("live_chat_compute_product_button_aria_label"))return"";var X="",t,G,y;if((t=this.data)==null?0:(G=t.text)==null?0:(y=G.runs)==null?0:y.length)X=this.data.text.runs[0].text||"";else{var w,z;if((w=this.data)==null?0:(z=w.text)==null?0:z.simpleText)X=this.data.text.simpleText}var B,V,b;if((B=this.data)==null?0:(V=B.subtext)==null?0:(b=V.runs)==null?0:b.length)X&&(X+=". "),X+=this.data.subtext.runs[0].text||
"";else{var e,g;if((e=this.data)==null?0:(g=e.subtext)==null?0:g.simpleText)X&&(X+=". "),X+=this.data.subtext.simpleText}return X}}});
_.E([_.q(_.pv.YtEndpointBehavior),_.U("design:type",Object)],xv.prototype,"ytEndpointBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xv.prototype,"data",void 0);_.E([_.K({computed:"computeIconId(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xv.prototype,"iconId",void 0);
_.E([_.K({computed:"computeIcon(data)",reflectToAttribute:!0}),_.U("design:type",Object)],xv.prototype,"icon",void 0);_.E([_.K({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.U("design:type",Object)],xv.prototype,"disabled",void 0);_.E([_.K({computed:"computeCommand(data.command, disabled)"}),_.U("design:type",Object)],xv.prototype,"command",void 0);_.E([_.K({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.U("design:type",String)],xv.prototype,"tooltip",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xv.prototype,"systemIcons",void 0);_.E([_.C("data.text","data.subtext"),_.K(),_.U("design:type",String),_.U("design:paramtypes",[])],xv.prototype,"ariaLabel",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],xv);
_.N(xv,"yt-live-chat-product-button-renderer",function(){if(mwN===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;UwY===void 0&&(UwY=document.createElement("template"));var y=UwY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);mwN=X}X=mwN;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var RGB;var i_Y;var fH=function(){var X=_.O.apply(this,arguments)||this;X.selected=!1;X.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 X};
_.S(fH,_.O);_.H=fH.prototype;_.H.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"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.H.computeId=function(X){return X.id||""};
_.H.onCloseClick=function(){_.Yt(this.hostElement,"picker-cancelled")};
_.H.observeSelected=function(){this.selected&&this.hostElement.focus();var X=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");X.length&&X[0].focus()};
_.H.onCloseBuyFlow=function(){_.Yt(this.hostElement,"picker-cancelled")};
_.H.onCloseEngageWithAudienceEditorPanels=function(){_.Yt(this.hostElement,"picker-cancelled")};
fH.prototype.observeSelected=fH.prototype.observeSelected;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],fH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],fH.prototype,"data",void 0);
_.E([_.K({computed:"computeId(data)",reflectToAttribute:!0}),_.U("design:type",String)],fH.prototype,"id",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],fH.prototype,"selected",void 0);_.E([_.cW("selected"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fH.prototype,"observeSelected",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],fH);
_.N(fH,"yt-live-chat-product-picker-renderer",function(){if(i_Y===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;RGB===void 0&&(RGB=document.createElement("template"));var y=RGB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);i_Y=X}X=i_Y;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var LEN;var vJj;var af1;var lfg;var MO=function(){return _.O.apply(this,arguments)||this};
_.S(MO,_.O);MO.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()};
MO.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
MO.prototype.created=function(){this.ids={background:_.X_(),maskOne:_.X_(),maskTwo:_.X_(),gradient:_.X_(),largeBackground:_.X_(),largeGradientOne:_.X_(),largeGradientTwo:_.X_(),largeGradientPath:_.X_()}};
MO.prototype.maybeLoadAnimationBackground=MO.prototype.maybeLoadAnimationBackground;_.E([_.K({value:!1}),_.U("design:type",Boolean)],MO.prototype,"useLargeBackground",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],MO.prototype,"useAnimationBackground",void 0);_.E([_.K({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.U("design:type",Boolean)],MO.prototype,"useRegularBackground",void 0);
_.E([_.K(),_.U("design:type",Object)],MO.prototype,"ids",void 0);_.E([_.K(),_.U("design:type",Object)],MO.prototype,"lottieAnimation",void 0);_.E([_.rt("#animation-background"),_.U("design:type",HTMLDivElement)],MO.prototype,"animationBackground",void 0);_.E([_.cW("useAnimationBackground"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],MO.prototype,"maybeLoadAnimationBackground",null);
_.E([_.$F({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],MO);
_.N(MO,"yt-live-interactivity-component-background",function(){if(lfg===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;af1===void 0&&(af1=document.createElement("template"));var y=af1;G.call(t,y.content.cloneNode(!0),X.content.firstChild);lfg=X}X=lfg;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var X6=function(){var X=_.O.apply(this,arguments)||this;X.characterCount=0;X.showInputErrorMessage=!1;X.startQnaRequestInFlight=!1;X.modern=_.A("web_button_rework_with_live");X.buttonOverrides={style:"mono",type:"filled"};X.closeButtonOverrides={iconPosition:"icon-only"};X.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return X};
_.S(X6,_.O);_.H=X6.prototype;
_.H.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]]"}}}}}};
_.H.onCharacterCountChanged=function(X){var t,G,y,w,z=(G=_.Y(this==null?void 0:(t=this.data)==null?void 0:t.creatorCallForQuestions,Z2R))==null?void 0:(y=G.inputField)==null?void 0:(w=y.liveChatTextInputFieldRenderer)==null?void 0:w.maxCharacterLimit,B,V;z!=null&&(X==null?void 0:(B=X.detail)==null?void 0:B.characterCount)!=null&&_.Y(this==null?void 0:(V=this.data)==null?void 0:V.startButton,_.G4)&&(t=X.detail.characterCount>z,this.set("data.startButton.buttonRenderer.isDisabled",X.detail.characterCount===
0||t),this.showInputErrorMessage=t)};
_.H.onCloseClick=function(){_.Yt(this.hostElement,"picker-cancelled");_.sl(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.H.onPickerCancelled=function(){var X=_.Sm(this.hostElement).querySelector("#qna-creator-text-input-field");X&&X.setLiveChatRichMessageInput(null)};
_.H.handleOpenQnaStartPanel=function(){var X=_.Sm(this.hostElement).querySelector("#qna-creator-text-input-field");X&&X.focus()};
_.H.handleStartButtonAction=function(X){var t=this;if(X.detail.actionName==="yt-service-request"&&(X.stopPropagation(),X=X.detail.args[1])){var G=_.Sm(this.hostElement).querySelector("#qna-creator-text-input-field"),y;(G==null?0:(y=G.liveChatRichMessageInput)==null?0:y.textSegments)&&G.liveChatRichMessageInput.textSegments.length!==0&&(y={rich_message:_.JS(G.liveChatRichMessageInput)},_.hE(this.hostElement,[X,y]).then(function(){_.Yt(t.hostElement,"picker-cancelled")}))}};
_.H.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.H.handleServiceRequestCompleted=function(X){var t;X=X==null?void 0:(t=X.detail)==null?void 0:t.data;(X==null?0:X.actions)&&X.actions.length>0?this.startQnaRequestInFlight=!1:_.sl(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.H.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
X6.prototype.handleServiceRequestError=X6.prototype.handleServiceRequestError;X6.prototype.handleServiceRequestCompleted=X6.prototype.handleServiceRequestCompleted;X6.prototype.handleServiceRequestSent=X6.prototype.handleServiceRequestSent;X6.prototype.onPickerCancelled=X6.prototype.onPickerCancelled;X6.prototype.onCharacterCountChanged=X6.prototype.onCharacterCountChanged;_.E([_.K(),_.U("design:type",Object)],X6.prototype,"characterCount",void 0);
_.E([_.K(),_.U("design:type",Object)],X6.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],X6.prototype,"showInputErrorMessage",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],X6.prototype,"startQnaRequestInFlight",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],X6.prototype,"modern",void 0);_.E([_.K(),_.U("design:type",Object)],X6.prototype,"buttonOverrides",void 0);
_.E([_.K(),_.U("design:type",Object)],X6.prototype,"closeButtonOverrides",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],X6.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.q(_.zK.YtLiveChatItemBehavior),_.U("design:type",_.HC)],X6.prototype,"ytLiveChatItemBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],X6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.WW("yt-live-chat-text-input-field-renderer-character-count-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],X6.prototype,"onCharacterCountChanged",null);_.E([_.WW("picker-cancelled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],X6.prototype,"onPickerCancelled",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],X6.prototype,"handleServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],X6.prototype,"handleServiceRequestCompleted",null);
_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],X6.prototype,"handleServiceRequestError",null);_.E([_.p({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],X6);
_.N(X6,"yt-live-chat-qna-start-panel-renderer",function(){if(vJj===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;LEN===void 0&&(LEN=document.createElement("template"));var y=LEN;G.call(t,y.content.cloneNode(!0),X.content.firstChild);vJj=X}X=vJj;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var xwg;var ffB;var $a=function(){return _.O.apply(this,arguments)||this};
_.S($a,_.O);$a.prototype.dismiss=function(){_.Yt(this.hostElement,"yt-live-chat-error-message-dismiss")};
$a.prototype.edit=function(){_.Yt(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.E([_.K(),_.U("design:type",Object)],$a.prototype,"data",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],$a);
_.N($a,"yt-live-chat-text-actions-error-message-renderer",function(){if(ffB===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;xwg===void 0&&(xwg=document.createElement("template"));var y=xwg;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ffB=X}X=ffB;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var Msj;var XSk;var $zg;var tYM;var tj=function(){var X=_.O.apply(this,arguments)||this;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.newnessDotEligible=!1;return X};
_.S(tj,_.O);tj.prototype.sendReaction=function(){var X,t,G=((X=this.data)==null?void 0:X.emojiId)||((t=this.data)==null?void 0:t.emoteId),y;G&&((y=this.data)==null?0:y.shouldTriggerAnimation)&&_.sl(this.hostElement,"yt-create-user-reaction-animation",[G]);var w;(X=_.wr((w=this.data)==null?void 0:w.onTap))&&_.cj(X,this.hostElement);this.showNewnessDot&&_.sl(this.hostElement,"yt-hide-newness-dot")};
tj.prototype.onClick=function(X){(!X||X.clientX||X.clientY)&&this.sendReaction()};
tj.prototype.onKeyDown=function(X){X.key!=="Enter"&&X.key!==" "||X.repeat||this.sendReaction()};
_.ke.Object.defineProperties(tj.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var X,t;return!!(((X=this.data)==null?0:X.emojiId)||((t=this.data)==null?0:t.emoteId))}}});
_.E([_.K(),_.U("design:type",Object)],tj.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],tj.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",Object)],tj.prototype,"newnessDotEligible",void 0);_.E([_.C("data.maybeShowNewnessDot"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tj.prototype,"showNewnessDot",null);_.E([_.C("data.emojiId","data.emoteId"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],tj.prototype,"useYtImage",null);
_.E([_.$F({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],tj);
_.N(tj,"yt-reaction-control-panel-button-view-model",function(){if(tYM===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;$zg===void 0&&($zg=document.createElement("template"));var y=$zg;G.call(t,y.content.cloneNode(!0),X.content.firstChild);tYM=X}X=tYM;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var GBY;var yqY;var GI=function(){var X=_.O.apply(this,arguments)||this;X.reactionControlPanelExpanded=!1;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.newnessDotEligible=!1;return X};
_.S(GI,_.O);_.H=GI.prototype;_.H.expandedButtonsChanged=function(){var X,t;_.Kd(this.hostElement,{"--expanded-buttons-height":((t=(X=this.expandedButtonsData)==null?void 0:X.length)!=null?t:0)*36+"px"})};
_.H.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}}};
_.H.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.H.onMouseLeave=function(){var X=this;this.collapseTimer=setTimeout(function(){X.reactionControlPanelExpanded=!1},500)};
_.H.onFocusIn=function(){this.onMouseEnter()};
_.H.onFocusOut=function(){this.onMouseLeave()};
_.H.onCollapsedButtonFocusIn=function(){var X=this;setTimeout(function(){var t;(t=X.expandedButtons.querySelector("button"))==null||t.focus()},100)};
_.H.onCollapsedButtonFocusOut=function(X){X.stopPropagation()};
_.ke.Object.defineProperties(GI.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var X,t;return _.RH.unsafeClone((X=this.liveReactionsData)==null?void 0:X.emojiButtonData)||((t=this.data)==null?void 0:t.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var X;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((X=this.data)==null||!X.maybeShowNewnessDot)}}});
GI.prototype.expandedButtonsChanged=GI.prototype.expandedButtonsChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],GI.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],GI.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],GI.prototype,"reactionControlPanelExpanded",void 0);_.E([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:BsT}),_.U("design:type",Object)],GI.prototype,"liveReactionsData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],GI.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",Object)],GI.prototype,"newnessDotEligible",void 0);
_.E([_.C("liveReactionsData","data.expandedButtons"),_.U("design:type",Object),_.U("design:paramtypes",[])],GI.prototype,"expandedButtonsData",null);_.E([_.C("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.K({reflectToAttribute:!0}),_.U("design:type",Object),_.U("design:paramtypes",[])],GI.prototype,"showNewnessDot",null);_.E([_.rt("#expanded-buttons"),_.U("design:type",HTMLElement)],GI.prototype,"expandedButtons",void 0);
_.E([_.cW("expandedButtonsData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GI.prototype,"expandedButtonsChanged",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],GI);
_.N(GI,"yt-reaction-control-panel-view-model",function(){if(yqY===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;GBY===void 0&&(GBY=document.createElement("template"));var y=GBY;G.call(t,y.content.cloneNode(!0),X.content.firstChild);yqY=X}X=yqY;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var yz=new _.M1("yt-live-chat"),wSB=Date.parse("2024-7-24"),ws=function(){var X=_.O.apply(this,arguments)||this;X.emojiManager=_.wQ;X.newnessDotEligible=!1;X.newnessDotImpressionCounted=!1;X.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return X};
_.S(ws,_.O);_.H=ws.prototype;_.H.emojiCustomizationEnabledChanged=function(){var X;((X=this.data)==null?0:X.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((X=yz.getCreationTime("emoji-customization-count"))&&X<wSB&&yz.set("emoji-customization-count","0"),X=Number(yz.get("emoji-customization-count"))||0,X<3&&(this.newnessDotEligible=!0,yz.set("emoji-customization-count",(X+1).toString())),this.newnessDotImpressionCounted=!0)};
_.H.hideNewnessDot=function(){this.newnessDotEligible=!1;yz.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.H.handleReactionsMute=function(X){var t=_.lw(),G=_.ai(206221),y={checkboxData:{state:X?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};t&&_.BK(t,G,y);this.reactionsMuted=X};
_.H.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.H.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}}};
_.ke.Object.defineProperties(ws.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var X;return(!((X=this.liveReactionsData)==null||!X.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
ws.prototype.liveReactionsSettingChanged=ws.prototype.liveReactionsSettingChanged;ws.prototype.emojiCustomizationEnabledChanged=ws.prototype.emojiCustomizationEnabledChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.yK),_.U("design:type",Object)],ws.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],ws.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ws.prototype,"data",void 0);_.E([_.K(),_.U("design:type",_.tB)],ws.prototype,"emojiManager",void 0);_.E([_.K(),_.U("design:type",Object)],ws.prototype,"newnessDotEligible",void 0);_.E([_.K(),_.U("design:type",Object)],ws.prototype,"newnessDotImpressionCounted",void 0);
_.E([_.K({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:naB}),_.U("design:type",Boolean)],ws.prototype,"liveReactionsSetting",void 0);_.E([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:BsT}),_.U("design:type",Object)],ws.prototype,"liveReactionsData",void 0);_.E([_.K({value:function(){var X=_.A("enable_lwe_web_mute"),t=yz.get("allow-reactions");return t===void 0?!1:!t&&X}}),
_.U("design:type",Boolean)],ws.prototype,"reactionsMuted",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ws.prototype,"liveReactionsEnabled",null);_.E([_.cW("data.emojiCustomizationEnabled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ws.prototype,"emojiCustomizationEnabledChanged",null);
_.E([_.cW("liveReactionsEnabled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ws.prototype,"liveReactionsSettingChanged",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],ws);
_.N(ws,"yt-reaction-control-panel-overlay-view-model",function(){if(XSk===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Msj===void 0&&(Msj=document.createElement("template"));var y=Msj;G.call(t,y.content.cloneNode(!0),X.content.firstChild);XSk=X}X=XSk;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var ze_={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(X){var t=this.$.pickers.selected;if(t){_.Sm(this.hostElement).removeAttribute(t+"-open");var G="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(G="#picker-buttons",t==="emoji"&&_.Sm(this.hostElement).querySelector("#emoji-picker-button")&&(G="#emoji-picker-button"));if(G=_.Sm(this.hostElement).querySelector(G).querySelector("#"+t))G.active=!1}G=X;t==X&&(G=null);t!=
X&&_.Sm(this.hostElement).setAttribute(X+"-open","");this.$.pickers.selected=G;_.sl(this.hostElement,"yt-live-chat-picker-changed",[G])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var zI=function(){var X=_.O.apply(this,arguments)||this;X.numSentMessages=0;X.timeoutDurationMs=0;X.timeoutMs=0;X.lastTimeoutTimeMs=0;X.pendingMessageId="";X.hasFiredInitialFocusActions=!1;X.isBeforeFocusEnabled=!0;X.id="";X.characterCount=0;X.maxCharacterLimit=0;X.remainingCharacterCount=0;X.inputExpanded=!1;X.buttonOverrides={iconPosition:"icon-only"};X.inReplyPanel=!1;X.countdownRatio=0;X.isTooltipVisible=!1;X.tooltipTimeout=1E4;X.systemIcons=_.A("kevlar_system_icons");X.tallerEmojiPicker=_.A("live_chat_taller_emoji_picker");
X.sendReplyMessageInFlight=!1;X.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"};X.onResize=function(){X.maybeToggleCharacterCount()};
return X};
_.S(zI,_.O);_.H=zI.prototype;
_.H.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"}}}};
_.H.attached=function(){window.addEventListener("resize",this.onResize)};
_.H.detached=function(){window.removeEventListener("resize",this.onResize)};
_.H.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.H.sendMessage=function(){var X=this,t,G,y,w;return _.n(function(z){if(X.sendDisabled)return z.return();X.isTooltipVisible&&_.sl(X.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(X.data.sendButton&&X.data.sendButton.buttonRenderer){X.input.completeEmojis();t=X.data.sendButton.buttonRenderer.serviceEndpoint;if(!t)return z.return();y=((G=_.Y(t,_.iPt))==null?void 0:G.clientIdPrefix)||"";w={client_message_id:y+String(X.numSentMessages++),rich_message:_.JS(X.input.liveChatRichMessageInput)};
X.pendingMessageId=w.client_message_id;X.inReplyPanel&&(X.sendReplyMessageInFlight=!0);_.hE(X.hostElement,[t,w]);X.input.setLiveChatRichMessageInput(null)}_.W$(z)})};
_.H.handleSendButtonAction=function(X){X.detail.actionName==="yt-service-request"&&(X.stopPropagation(),this.sendMessage())};
_.H.onSendCompleted=function(X,t){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(X=this.get("timeoutDurationUsec",t.data))&&this.handleTimeout(Number(X)/1E3);this.errorMessage=this.get("errorMessage",t.data);this.pendingMessageId=""};
_.H.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.sl(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.H.handlePickerButtonToggle=function(X){X=X.detail.targetId;this.ytPickerBehavior.togglePicker_(X);if(X==="emoji")this.input.focus();else if(X==="qna-start-panel"){var t,G;(t=_.Sm(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(G=t.querySelector("#qna-creator-text-input-field"))==null||G.focus()}};
_.H.onComponentReplaced=function(X){var t,G;X.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((t=X.replacement.liveChatMessageInputRenderer)==null?0:(G=t.headerRenderer)==null?0:G.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.H.onEmojiSelect=function(X){this.input.focus();this.input.insertEmoji(X.detail)};
_.H.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.H.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.sl(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.sl(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.H.onOpenPopupAction=function(X,t){var G=this;t===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.sl(G.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.H.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.H.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.H.focusChanged=function(){this.maybeToggleCharacterCount()};
_.H.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var X=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",X>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.H.computeId=function(){return this.data&&this.data.targetId||""};
_.H.computeSendDisabled=function(X,t,G,y){X=!!(!X||t&&X>t||y);(t=_.Sm(this.hostElement).querySelector("#send-button"))&&t.children.length&&(t.children[0].disabled=X);return X};
_.H.handleTimeout=function(X){this.timeoutDurationMs=this.timeoutMs=X;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.H.updateTimeout=function(X){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(X-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=X,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.H.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.H.onErrorMessageEdit=function(X){this.input.setLiveChatRichMessageInput(X.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.H.errorMessageChanged=function(){var X=this;_.oL(function(){_.sl(X.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.H.computeAuthorNameColor=function(X){var t;if(_.A("live_chat_author_name_color_usernames")&&(X==null?0:(t=X.authorName)==null?0:t.simpleText))return _.H0A(_.oB6(X.authorName.simpleText));if(_.A("live_chat_seed_color_usernames")&&(X==null?0:X.authorSeedColorArgb))return _.H0A(_.OV(X.authorSeedColorArgb));if(_.A("live_chat_colored_usernames"))return"#cc0000";var G;return _.A("live_chat_simple_color_usernames")&&(X==null?0:(G=X.authorName)==null?0:G.simpleText)&&(X==null?0:X.authorUsernameColorLight)&&
(X==null?0:X.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.OV(X.authorUsernameColorDark):_.OV(X.authorUsernameColorLight):""};
_.H.onIsTooltipVisibleChanged=function(){var X=_.Sm(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){X.hidden=!1;X.setAttribute("role","alert")},0):(X.hidden=!0,X.removeAttribute("role"))};
_.H.onFocusedChanged=function(X){this.inputFocused=X.detail.value};
_.ke.Object.defineProperties(zI.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 X;return!((X=this.data)==null||!X.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:(t=X.pickers)==null?void 0:t.find(function(G){return G.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var X=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return X?this.ytRendererBehavior.getSimpleString(X):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
zI.prototype.onIsTooltipVisibleChanged=zI.prototype.onIsTooltipVisibleChanged;zI.prototype.errorMessageChanged=zI.prototype.errorMessageChanged;zI.prototype.onErrorMessageEdit=zI.prototype.onErrorMessageEdit;zI.prototype.onErrorMessageDismiss=zI.prototype.onErrorMessageDismiss;zI.prototype.focusChanged=zI.prototype.focusChanged;zI.prototype.characterCountChanged=zI.prototype.characterCountChanged;zI.prototype.onEmojiSelect=zI.prototype.onEmojiSelect;zI.prototype.handlePickerButtonToggle=zI.prototype.handlePickerButtonToggle;
zI.prototype.onSendError=zI.prototype.onSendError;zI.prototype.onSendCompleted=zI.prototype.onSendCompleted;zI.prototype.sendMessage=zI.prototype.sendMessage;zI.prototype.dataChanged=zI.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],zI.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(ze_.YtPickerBehavior),_.U("design:type",Object)],zI.prototype,"ytPickerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],zI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.wG.YtLiveChatTooltipTargetingBehavior),_.U("design:type",Object)],zI.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],zI.prototype,"hasFiredInitialFocusActions",void 0);
_.E([_.K(),_.U("design:type",Object)],zI.prototype,"isBeforeFocusEnabled",void 0);_.E([_.K(),_.U("design:type",Object)],zI.prototype,"data",void 0);_.E([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.U("design:type",Object)],zI.prototype,"id",void 0);_.E([_.K(),_.U("design:type",Object)],zI.prototype,"characterCount",void 0);_.E([_.K(),_.U("design:type",Object)],zI.prototype,"maxCharacterLimit",void 0);
_.E([_.K(),_.U("design:type",Object)],zI.prototype,"remainingCharacterCount",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zI.prototype,"inputExpanded",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],zI.prototype,"inputFocused",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],zI.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.E([_.K(),_.U("design:type",_.BC)],zI.prototype,"participantsManager",void 0);
_.E([_.K(),_.U("design:type",Object)],zI.prototype,"buttonOverrides",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zI.prototype,"inReplyPanel",void 0);_.E([_.C("characterCount, maxCharacterLimit, countdownActive"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],zI.prototype,"sendDisabled",null);_.E([_.K(),_.U("design:type",Object)],zI.prototype,"countdownRatio",void 0);
_.E([_.C("countdownRatio"),_.U("design:type",Number),_.U("design:paramtypes",[])],zI.prototype,"countdownStrokeDashOffset",null);_.E([_.C("countdownRatio"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],zI.prototype,"countdownActive",null);_.E([_.C("data.interactionMessage"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],zI.prototype,"hasInteractionMessage",null);
_.E([_.C("data.emojiPickerButton"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],zI.prototype,"hasEmojiPickerButton",null);_.E([_.C("data, characterCount"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],zI.prototype,"showAvatar",null);_.E([_.C("data.pickers"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],zI.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.K(),_.U("design:type",Object)],zI.prototype,"errorMessage",void 0);_.E([_.K(),_.U("design:type",Object)],zI.prototype,"genericErrorMessage",void 0);_.E([_.K(),_.U("design:type",Object)],zI.prototype,"isTooltipVisible",void 0);_.E([_.K(),_.U("design:type",Object)],zI.prototype,"tooltipTimeout",void 0);_.E([_.C("data.onInitialFocusCommand"),_.U("design:type",String),_.U("design:paramtypes",[])],zI.prototype,"tooltipMessage",null);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zI.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zI.prototype,"tallerEmojiPicker",void 0);_.E([_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],zI.prototype,"authorNameColor",null);_.E([_.K(),_.U("design:type",Object)],zI.prototype,"sendReplyMessageInFlight",void 0);_.E([_.rt("#input"),_.U("design:type",_.Owo)],zI.prototype,"input",void 0);
_.E([_.rt("#count"),_.U("design:type",HTMLElement)],zI.prototype,"count",void 0);_.E([_.rt("#input-container"),_.U("design:type",HTMLElement)],zI.prototype,"inputContainer",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zI.prototype,"dataChanged",null);_.E([_.WW("yt-live-chat-send-message"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype",Promise)],zI.prototype,"sendMessage",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[Event,_.g5]),_.U("design:returntype")],zI.prototype,"onSendCompleted",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zI.prototype,"onSendError",null);
_.E([_.WW("yt-live-chat-icon-toggle-button-renderer-toggle"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],zI.prototype,"handlePickerButtonToggle",null);_.E([_.WW("yt-emoji-select"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],zI.prototype,"onEmojiSelect",null);
_.E([_.cW("characterCount"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zI.prototype,"characterCountChanged",null);_.E([_.cW("inputFocused"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zI.prototype,"focusChanged",null);_.E([_.WW("yt-live-chat-error-message-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zI.prototype,"onErrorMessageDismiss",null);
_.E([_.WW("yt-live-chat-error-message-edit"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],zI.prototype,"onErrorMessageEdit",null);_.E([_.cW("errorMessage"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zI.prototype,"errorMessageChanged",null);_.E([_.cW("isTooltipVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zI.prototype,"onIsTooltipVisibleChanged",null);
_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],zI);
_.N(zI,"yt-live-chat-message-input-renderer",function(){if(Z_j===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;hGi===void 0&&(hGi=document.createElement("template"));var y=hGi;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Z_j=X}X=Z_j;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var H41;var ohY;var Hh=function(){var X=_.O.apply(this,arguments)||this;X.systemIcons=_.A("kevlar_system_icons");X.firedOnClickCommand=!1;X.inReplyPanel=!1;return X};
_.S(Hh,_.O);
Hh.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"}}}};
Hh.prototype.onButtonToggle=function(X){X.target.disabled||this.ytPickerBehavior.togglePicker_(X.detail.targetId)};
Hh.prototype.onClick=function(){var X=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.sl(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return X.firedOnClickCommand=!1},5E3))};
_.ke.Object.defineProperties(Hh.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:(t=X.panels)==null?void 0:t.find(function(G){return G.liveChatProductPickerPanelViewModel}))!==void 0}}});
Hh.prototype.onButtonToggle=Hh.prototype.onButtonToggle;_.E([_.q(ze_.YtPickerBehavior),_.U("design:type",Object)],Hh.prototype,"ytPickerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Hh.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Hh.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!1}),_.U("design:type",Object)],Hh.prototype,"firedOnClickCommand",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Hh.prototype,"inReplyPanel",void 0);_.E([_.C("data.pickers"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Hh.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.WW("yt-live-chat-icon-toggle-button-renderer-toggle"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Hh.prototype,"onButtonToggle",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Hh);
_.N(Hh,"yt-live-chat-restricted-participation-renderer",function(){if(ohY===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;H41===void 0&&(H41=document.createElement("template"));var y=H41;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ohY=X}X=ohY;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var on=function(){var X=_.O.apply(this,arguments)||this;X.genericErrorMessage=_.Vl("Error, try again.");X.inReplyPanel=!1;X.hideBorder=!1;return X};
_.S(on,_.O);on.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}}}}}};
_.ke.Object.defineProperties(on,{template:{configurable:!0,enumerable:!0,get:function(){return AAN()}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],on.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],on.prototype,"genericErrorMessage",void 0);_.E([_.K(),_.U("design:type",Object)],on.prototype,"inReplyPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],on.prototype,"hideBorder",void 0);
_.E([_.$F({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],on);_.N(on,"yt-live-chat-engagement-panel-input-renderer",function(){return AAN()},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var Jqt,Bo1;Jqt=_.ai(115994);Bo1=_.ai(115993);_.Jj=function(X,t,G){var y=this;var w=G.dragDownAction;this.layer=0;this.JSC$22250_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.JSC$22250_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.fullscreen=!1;var z=_.Pj();_.Kc(z,Jqt,this.layer);_.Kc(z,Bo1,this.layer);this.dragDownAction=function(){w();_.n5(z,{visualElement:y.fullscreen?Jqt:Bo1})};
this.gesture=new _.Bf(X,t,this.JSC$22250_watchConfig,"pandown");this.attach()};
_.Jj.prototype.attach=function(){this.gesture.attach()};
_.Jj.prototype.detach=function(){this.gesture.detach()};
_.Jj.prototype.update=function(X){this.fullscreen=X;this.gesture.config=X?this.JSC$22250_watchFullScreenConfig:this.JSC$22250_watchConfig};var nhB={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(X){if(X&&X.length==1&&Array.isArray(X[0].loggingUrls)){X=_.RH.unsafeClone(X[0]);var t=this.macros||{},G=this.getAdModuleClient_();if(!G)return _.qY();X.loggingUrls.forEach(function(y){if(y.baseUrl){var w=y.baseUrl;var z=t;z=z===void 0?{}:z;w=G.getOptions().includes("replaceUrlMacros")?_.iMJ(G,"replaceUrlMacros",{url:w,additionalMapping:z}):w;y.baseUrl=w}},this);
X=[X]}return _.hE(this.hostElement,X)},
getAdModuleClient_:function(){var X=_.sW(this);return X?(X=X.getPlayer())?new _.Ry(X):null:null}}]};var VY_;var Bh=function(){var X=_.O.apply(this,arguments)||this;X.isCollapsed=!1;X.modernPanels=_.A("kevlar_watch_modern_panels");X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return X};
_.S(Bh,_.O);_.H=Bh.prototype;_.H.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.H.onDonateTap=function(){var X=this.get("data.donateButton.buttonRenderer.command");if(X){var t=_.lw(),G=this.get("data.donateButton.buttonRenderer.trackingParams");t&&G&&_.BK(t,_.i$(G));this.ytOpenPopupBehavior.openPopup(X)}};
_.H.onShowMore=function(){this.isCollapsed=!1;var X=_.lw(),t=this.get("data.expandButton.buttonRenderer.trackingParams");X&&t&&_.BK(X,_.i$(t))};
_.H.onShowLess=function(){this.isCollapsed=!0};
_.H.dataChanged=function(){_.Kd(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.H.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.H.handleUpdate=function(X){if(X=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",X))this.set("data.startLabel",X.startLabel),this.set("data.endLabel",X.endLabel),this.set("data.progress",X.progress),this.set("data.amountRaisedLabel",X.amountRaisedLabel),this.dataChanged()};
_.H.handleOpenPopupAction=function(X){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",X)&&_.sl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.H.computeHeaderBackgroundUrl=function(X,t){if(X)return t?X.headerBackgroundDarkUrl:X.headerBackgroundUrl};
_.H.isProgressBarVisible=function(X){return!(!X||X.progress===void 0)};
_.H.headerBackgroundClass=function(){return _.Md("HTML_DIR")==="rtl"?"flip":""};
Bh.prototype.dataChanged=Bh.prototype.dataChanged;_.E([_.q(_.cr.YtOpenPopupBehavior),_.U("design:type",Object)],Bh.prototype,"ytOpenPopupBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Bh.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],Bh.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Bh.prototype,"isCollapsed",void 0);_.E([_.K({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.U("design:type",String)],Bh.prototype,"headerBackgroundUrl",void 0);_.E([_.K(),_.U("design:type",Boolean)],Bh.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Bh.prototype,"modernPanels",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Bh.prototype,"dataChanged",null);_.E([_.p({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Bh);
_.N(Bh,"ytd-donation-shelf-renderer",function(){if(VY_!==void 0)return VY_;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return VY_=X},{mode:1});var b41;var kBk=function(){return _.O.apply(this,arguments)||this};
_.S(kBk,_.O);_.E([_.K(),_.U("design:type",Object)],kBk.prototype,"data",void 0);_.E([_.p({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],kBk);
_.N(kBk,"ytd-donation-unavailable-renderer",function(){if(b41!==void 0)return b41;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return b41=X},{mode:1});var dzM;var nS=function(){return _.O.apply(this,arguments)||this};
_.S(nS,_.O);nS.prototype.computeIconType=function(X){return X?"yt-icons:"+X.toLowerCase():null};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],nS.prototype,"data",void 0);_.E([_.p({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],nS);
_.N(nS,"ytd-limited-state-message-renderer",function(){if(dzM!==void 0)return dzM;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return dzM=X},{mode:1});var eej;var Vz=function(){return _.O.apply(this,arguments)||this};
_.S(Vz,_.O);Vz.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Vz.prototype.onTap=function(X){var t=this.data&&this.data.endpoint;t&&!_.Fa(_.be(X),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Yt(this.hostElement,"yt-navigate",{endpoint:t})};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Vz.prototype,"data",void 0);_.E([_.p({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Vz);
_.N(Vz,"ytd-autotagging-metadata-renderer",function(){if(eej!==void 0)return eej;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return eej=X},{mode:1});var jqt;var b0=function(){return _.O.apply(this,arguments)||this};
_.S(b0,_.O);b0.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],b0.prototype,"data",void 0);_.E([_.p({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],b0);
_.N(b0,"ytd-autotagging-metadata-row-renderer",function(){if(jqt!==void 0)return jqt;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return jqt=X},{mode:1});var ght;var Ftk;var ka=function(){var X=_.O.apply(this,arguments)||this;X.engagementPanelContent=!1;return X};
_.S(ka,_.O);ka.prototype.computeHasDividerLine=function(X,t){return X&&!t};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ka.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.U("design:type",Boolean)],ka.prototype,"hasDividerLine",void 0);_.E([_.K(),_.U("design:type",Object)],ka.prototype,"engagementPanelContent",void 0);
_.E([_.p({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],ka);
_.N(ka,"ytd-metadata-row-header-renderer",function(){if(Ftk!==void 0)return Ftk;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Ftk=X},{mode:1});var ToM;var ds=function(){return _.O.apply(this,arguments)||this};
_.S(ds,_.O);ds.prototype.computeHasDividerLine=function(X){return X};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ds.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.U("design:type",Boolean)],ds.prototype,"hasDividerLine",void 0);_.E([_.p({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],ds);
_.N(ds,"ytd-metadata-row-renderer",function(){if(ToM!==void 0)return ToM;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return ToM=X},{mode:1});var AqY;var eJ=function(){return _.O.apply(this,arguments)||this};
_.S(eJ,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eJ.prototype,"data",void 0);_.E([_.p({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],eJ);
_.N(eJ,"ytd-metadata-with-image-row-renderer",function(){if(AqY!==void 0)return AqY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return AqY=X},{mode:1});var YqW;var jJ=function(){var X=_.O.apply(this,arguments)||this;X.rounded=!0;X.fixie=!1;X.fullWidth=!1;return X};
_.S(jJ,_.O);_.H=jJ.prototype;_.H.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.onDataChanged=function(){var X=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(t){X.onEndpointLinkKeyPress(t)}))};
_.H.onEndpointLinkKeyPress=function(X){X.target===this.endpointLink&&X.keyCode===13&&_.Yt(this.hostElement,"click")};
_.H.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var X;if((X=this.data)==null?0:X.endpoint)_.Z0(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.H.onYtNavigate=function(X){this.endpointHref||(X.stopPropagation(),X.preventDefault())};
_.H.onInformationButtonContainerClick=function(X){X.target.id!=="information-button-container"&&(X.stopPropagation(),X.preventDefault())};
_.H.computeStyle=function(X){return X};
_.H.computeIsThumbnailStyle=function(X){return X==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.H.computeThumbnailWidth=function(X){switch(X){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}};
_.H.computeThumbnailObjectFit=function(X){switch(X){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.ke.Object.defineProperties(jJ.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
jJ.prototype.onYtNavigate=jJ.prototype.onYtNavigate;jJ.prototype.onClick=jJ.prototype.onClick;jJ.prototype.onDataChanged=jJ.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],jJ.prototype,"componentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],jJ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],jJ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.U("design:type",String)],jJ.prototype,"componentStyle",void 0);_.E([_.K({computed:"computeIsThumbnailStyle(data.style)"}),_.U("design:type",Boolean)],jJ.prototype,"isThumbnailStyle",void 0);_.E([_.K({computed:"computeThumbnailObjectFit(data.style)"}),_.U("design:type",String)],jJ.prototype,"thumbnailObjectFit",void 0);
_.E([_.K({computed:"computeThumbnailWidth(data.style)"}),_.U("design:type",Number)],jJ.prototype,"thumbnailWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],jJ.prototype,"rounded",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],jJ.prototype,"fixie",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],jJ.prototype,"fullWidth",void 0);_.E([_.rt("#endpoint-link"),_.U("design:type",HTMLAnchorElement)],jJ.prototype,"endpointLink",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],jJ.prototype,"onDataChanged",null);_.E([_.C("data.endpoint"),_.U("design:type",Object),_.U("design:paramtypes",[])],jJ.prototype,"endpointHref",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],jJ.prototype,"onClick",null);
_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],jJ.prototype,"onYtNavigate",null);_.E([_.p({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],jJ);
_.N(jJ,"ytd-rich-metadata-renderer",function(){if(YqW!==void 0)return YqW;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return YqW=X},{mode:_.Cz("kevlar_poly_si_batch_j075")?1:2});var sqB;var gs=function(){var X=_.O.apply(this,arguments)||this;X.fixie=!1;X.fullWidth=!1;return X};
_.S(gs,_.O);gs.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
gs.prototype.computeHasDividerLine=function(X){return X};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gs.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.U("design:type",Boolean)],gs.prototype,"hasDividerLine",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gs.prototype,"fixie",void 0);_.E([_.K(),_.U("design:type",Object)],gs.prototype,"fullWidth",void 0);
_.E([_.p({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],gs);
_.N(gs,"ytd-rich-metadata-row-renderer",function(){if(sqB!==void 0)return sqB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return sqB=X},{mode:1});var F6=function(){var X=_.O.apply(this,arguments)||this;X.engagementPanelContent=!1;X.fixie=!1;X.fullWidth=!1;return X};
_.S(F6,_.O);
F6.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"}}}};
F6.prototype.computeCollapsibleItems=function(X,t,G){return X===void 0||t===void 0||G===void 0||G?[]:X.slice(t)};
F6.prototype.computeAlwaysShownItems=function(X,t){return X&&X.length?X.slice(0,t):[]};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],F6.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],F6.prototype,"collapsed",void 0);
_.E([_.K({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.U("design:type",Array)],F6.prototype,"alwaysShownItems",void 0);_.E([_.K({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.U("design:type",Array)],F6.prototype,"collapsibleItems",void 0);_.E([_.K(),_.U("design:type",Object)],F6.prototype,"engagementPanelContent",void 0);_.E([_.K(),_.U("design:type",Object)],F6.prototype,"fixie",void 0);
_.E([_.K(),_.U("design:type",Object)],F6.prototype,"fullWidth",void 0);_.E([_.p({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],F6);
_.N(F6,"ytd-metadata-row-container-renderer",function(){if(ght!==void 0)return ght;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ght=X},{mode:1});var DzY;var TI=function(){var X=_.O.apply(this,arguments)||this;X.currentPageUrl="";X.baseUrl="";X.isHiddenByUser=null;X.hidden=!1;X.showAboveScrim=!1;X.watchNextGrid=_.A("kevlar_watch_grid");X.modernButtons=_.A("web_modern_buttons");X.roundedContainer=!0;X.noBorder=!1;X.roundBackground=!_.A("live_chat_round_background_killswitch");X.overflowHideChat=_.A("live_chat_overflow_hide_chat");X.forceDarkTheme=!1;X.theaterWatchWhile=!1;X.isListeningForPlayerProgress=!1;X.JSC$22286_playerEvents=new Map;X.isFrameReady=
!1;X.player=null;X.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 X};
_.S(TI,_.O);_.H=TI.prototype;_.H.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.D0(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.H.created=function(){var X=this;this.handleIframeEventListener=function(t){X.handleIframeEvent(t)};
this.handleKeyboardEventListener=function(t){X.handleKeyboardEvent(t)};
this.JSC$22286_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22286_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22286_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22286_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22286_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.H.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()};
_.H.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};
_.H.computeBaseUrl=function(X){var t="/live_chat";this.isChatReplay()&&(t="/live_chat_replay");return _.sp(_.YP(_.TT(_.tW(X),t),null),"").toString()};
_.H.dataChanged=function(){_.A("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.H.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var X=this.url;if(this.isChatReplay()&&this.player){var t=Math.floor(this.player.getProgressState().current*1E3);X=_.yA(_.tW(X),"playerOffsetMs",t.toString()).toString()}t=this.chatframe;try{var G=X==="about:blank"?_.T6P:_.l_(X),y=t.contentDocument.location,w=_.Mx(G);w!==void 0&&y.replace(w)}catch(z){t.src=X}}};
_.H.collapsedChanged=function(){_.Yt(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.H.handleIframeEvent=function(X){if(X&&this.baseUrl.startsWith(X.origin)&&X.source===this.chatframe.contentWindow&&_.$h(X.data))if(X.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(X);else if(X.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(X.data["yt-show-feedback-dialog"]){var t=_.gw().resolve(_.jH(_.iSq));if(t){var G=X.ports,y;G&&G.length&&(y=function(){G[0].postMessage({})});
X=X.data["yt-show-feedback-dialog"];t.showFeedbackDialog(X.customProductData,X.feedbackContent,y,X.bucket)}}else if(X.data["yt-show-survey"])_.Yt(this.hostElement,"yt-show-survey",X.data["yt-show-survey"]);else if(X.data["yt-purchase-membership"])_.gw().resolve(_.F3).resolveCommand(X.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(X.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(X.data["yt-tunnel-out-live-service-request"]);else if(X.data["yt-user-activity"])_.FR();
else if(X.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(X.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(X.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(X.data["yt-open-popup"]);else if(X.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(X.data["yt-log-flow-logging-event-command"]);else if(X.data["yt-hide-live-chat"])this.onShowHideChat();else X.data["yt-report-moderation-state-log"]&&
this.player&&(t={cpn:this.player.getVideoData().cpn},_.a7("liveChatBeingModerated",t))};
_.H.attachLiveChatResponseVeTrackingParams=function(X){X=_.i$(X);var t=_.lw(),G=_.GA("liveChatRenderer.trackingParams",this.data);t&&G&&_.w9(t,_.i$(G),X)};
_.H.handleBuyflowMessages=function(X){var t=X.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,G=X.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,y=X.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.iJV(_.TC(_.VY),t.replace(/-/g,"+").replace(/_/g,"/"),function(w){X.ports[0].postMessage({success:!0,buyFlowResponse:w})},void 0,function(w){X.ports[0].postMessage({success:!1,
error:w&&w.message||"Buyflow rejected without error."})},_.cP().get("hl"),void 0,function(){X.ports[0].postMessage({closed:!0})},G,y)};
_.H.setupPlayerProgressRelay=function(){var X=this;if(!this.isListeningForPlayerProgress){var t=_.DR();t!=null&&t.getPlayerPromise&&(t.getPlayerPromise().then(function(G){X.playerApiReady(G)}),this.isListeningForPlayerProgress=!0)}};
_.H.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.H.playerApiReady=function(X){this.setPlayer(X)};
_.H.playerProgressHandler=function(){if(this.player){var X=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":X.current})}};
_.H.playerAdStartHandler=function(X){this.postToContentWindow({"yt-player-ad-start":X})};
_.H.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.H.playerStateChangeHandler=function(X){this.postToContentWindow({"yt-player-state-change":X})};
_.H.setPlayer=function(X){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22286_playerEvents);X&&(this.player=X,this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$22286_playerEvents),_.Yt(this.hostElement,"player-api-ready"))};
_.H.liveChatPageUrl=function(X,t,G,y){return!G||t?"about:blank":G.liveChatRenderer?(t=_.tW(this.currentPageUrl).JSC$9962_queryData_,Gfq(t),X=_.tW(X),t.add("continuation",G.liveChatRenderer.continuations[0].reloadContinuationData.continuation),G=_.Lp()==="USER_INTERFACE_THEME_DARK",(y||G)&&t.add("dark_theme","true"),_.YP(X,t),y=_.tW(X.toString()),G=y.JSC$9962_queryData_,"SESSION_INDEX"in _.xS&&(G.add("authuser",_.Md("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.xS&&G.add("pageId",_.Md("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.xS&&G.add("sdc",_.Md("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),y.toString()):""};
_.H.isCollapsed=function(X,t){return t!==null?t:this.isChatReplay()||X&&X.conversationBarRenderer&&X.conversationBarRenderer.availabilityMessage?!0:X?X.liveChatRenderer?X.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.A("live_chat_hide_premiere_replay_message")||X.conversationBarRenderer&&X.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.H.isHidden=function(X,t,G){var y=t&&t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage,w=t&&t.liveChatRenderer&&t.liveChatRenderer.showHideButton,z=t&&t.liveChatRenderer&&t.liveChatRenderer.showButton;return G&&X&&!y&&!z||!G&&X&&!y&&!w?!0:t&&t.liveChatRenderer&&t.liveChatRenderer.initialDisplayState?t.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.H.computeButtonOverride=function(X,t){if(X&&t)return{type:"outline"}};
_.H.setCollapsedState=function(X){_.Y(X,_.OPh)&&(this.isHiddenByUser=!!_.Y(X,_.OPh).collapsed,!this.isHiddenByUser&&_.A("enable_teaser_framework_web_client")&&_.sl(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.H.forwardReduxActionToIframe=function(X){this.postToContentWindow({"yt-live-chat-forward-redux-action":X})};
_.H.onLoopRangeChange=function(X){this.showAboveScrim=!(X==null||!X.postId)};
_.H.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.H.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.H.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.H.sendDarkThemePostMessage=function(X){this.postToContentWindow({"yt-live-chat-set-dark-theme":X})};
_.H.onLiveChatBuyFlowCallback=function(X){this.postToContentWindow({"yt-live-chat-buy-flow-callback":X})};
_.H.handleKeyboardEvent=function(X){(0,_.RH.containsValue)(tst,X.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:X.type,keyCode:X.keyCode}})};
_.H.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.H.postToContentWindow=function(X){if(this.isFrameReady)try{var t=window.location.protocol+"//"+window.location.host,G;(G=this.chatframe)!=null&&G.contentWindow?this.chatframe.contentWindow.postMessage(X,t):_.Mj(new _.NJ("Tried posting a message to an iframe with no content window",X))}catch(y){_.xA(y)}};
_.H.shouldHideChatFrame=function(X){return X&&_.A("hide_live_chat_button_when_collapsed")};
_.ke.Object.defineProperties(TI.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.A("live_chat_overflow_hide_chat")||_.A("web_watch_chat_hide_button_killswitch"))return _.A("live_chat_overflow_hide_chat");var X,t,G,y;return!!((X=this.data)==null?0:(t=X.liveChatRenderer)==null?0:(G=t.header)==null?0:(y=G.liveChatHeaderRenderer)==null?0:y.collapseButton)}}});
TI.prototype.collapsedChanged=TI.prototype.collapsedChanged;TI.prototype.urlChanged=TI.prototype.urlChanged;TI.prototype.dataChanged=TI.prototype.dataChanged;TI.prototype.onShowHideChat=TI.prototype.onShowHideChat;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],TI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],TI.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],TI.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.q(_.cr.YtOpenPopupBehavior),_.U("design:type",Object)],TI.prototype,"ytOpenPopupBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],TI.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],TI.prototype,"currentPageUrl",void 0);
_.E([_.K({computed:"computeBaseUrl(currentPageUrl,data)"}),_.U("design:type",Object)],TI.prototype,"baseUrl",void 0);_.E([_.K({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.U("design:type",String)],TI.prototype,"url",void 0);_.E([_.K(),_.U("design:type",Object)],TI.prototype,"isHiddenByUser",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.U("design:type",Object)],TI.prototype,"hidden",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.U("design:type",Boolean)],TI.prototype,"collapsed",void 0);_.E([_.K({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.U("design:type",Boolean)],TI.prototype,"hideChatFrame",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TI.prototype,"showAboveScrim",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TI.prototype,"watchNextGrid",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],TI.prototype,"modernButtons",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TI.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TI.prototype,"noBorder",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],TI.prototype,"roundBackground",void 0);
_.E([_.K({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.U("design:type",Object)],TI.prototype,"toggleButtonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],TI.prototype,"overflowHideChat",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TI.prototype,"forceDarkTheme",void 0);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],TI.prototype,"enableShowWithoutHideChatButton",null);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TI.prototype,"theaterWatchWhile",void 0);_.E([_.rt("#chatframe"),_.U("design:type",HTMLIFrameElement)],TI.prototype,"chatframe",void 0);_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TI.prototype,"onShowHideChat",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TI.prototype,"dataChanged",null);
_.E([_.cW("url"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TI.prototype,"urlChanged",null);_.E([_.cW("collapsed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TI.prototype,"collapsedChanged",null);_.E([_.p({is:"ytd-live-chat-frame",disableElementRegistration:!0})],TI);
_.N(TI,"ytd-live-chat-frame",function(){if(DzY!==void 0)return DzY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return DzY=X},{mode:1});var Sqt;var Aj=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("web_modern_buttons");X.buttonOverrides={style:"call-to-action",type:"filled"};return X};
_.S(Aj,_.O);Aj.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=_.Gq(this.data.backgroundColor)))};
Aj.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var X=this.getFormattedStringLoggingDirectives(this.data.headline);X&&this.rendererBehavior.logExplicitClick(X)}};
Aj.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var X=this.getFormattedStringLoggingDirectives(this.data.description);X&&this.rendererBehavior.logExplicitClick(X)}};
Aj.prototype.getFormattedStringLoggingDirectives=function(X){return X&&X.runs&&X.runs.length>0&&X.runs[0]&&X.runs[0].loggingDirectives?X.runs[0].loggingDirectives:null};
Aj.prototype.dataChanged=Aj.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Aj.prototype,"rendererBehavior",void 0);_.E([_.q(nhB.YtMacroReplacementBehavior),_.U("design:type",Object)],Aj.prototype,"macroReplacementBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Aj.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Aj.prototype,"navigationEndpoint",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Aj.prototype,"enableColors",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Aj.prototype,"modern",void 0);_.E([_.K(),_.U("design:type",Object)],Aj.prototype,"buttonOverrides",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Aj.prototype,"dataChanged",null);_.E([_.p({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Aj);
_.N(Aj,"ytd-action-basic-immersive-content-renderer",function(){if(Sqt!==void 0)return Sqt;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Sqt=X},{mode:1});var hej;var Z4_;var Ya=function(){return _.O.apply(this,arguments)||this};
_.S(Ya,_.O);Ya.prototype.dataChanged=function(){var X;((X=this.data)==null?void 0:X.backgroundColor)!==void 0&&_.Kd(this.hostElement,{"--bgu-color":_.Gq(this.data.backgroundColor)})};
Ya.prototype.onImageTileClick=function(){var X;((X=this.data)==null?0:X.navigationEndpoint)&&_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var t;((t=this.data)==null?0:t.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.ke.Object.defineProperties(Ya.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var X;if(((X=this.data)==null?void 0:X.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 X;return((X=this.data)==null?void 0:X.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var X,t,G;if(((X=this.data)==null?void 0:(t=X.detailsLine)==null?void 0:t.texts)!=null&&((G=this.data)==null?void 0:G.detailsLine.texts.length)>0){var y;return(y=this.data)==null?void 0:y.detailsLine.texts.map(function(w){return w.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var X,t,G;if(((X=this.data)==null?void 0:(t=X.optionalDetailsLine)==null?void 0:t.texts)!=null&&((G=this.data)==null?void 0:G.optionalDetailsLine.texts.length)>0){var y;return(y=this.data)==null?void 0:y.optionalDetailsLine.texts.map(function(w){return w.text}).join("")}return null}}});
Ya.prototype.dataChanged=Ya.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ya.prototype,"rendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Ya.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ya.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.backgroundColor"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Ya.prototype,"hasBackgroundColor",null);
_.E([_.C("data.objectFit"),_.U("design:type",Object),_.U("design:paramtypes",[])],Ya.prototype,"getObjectFit",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.tileRenderingStyle"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Ya.prototype,"hasTileMetadata",null);_.E([_.C("data.detailsLine"),_.U("design:type",Object),_.U("design:paramtypes",[])],Ya.prototype,"getSecondaryDetails",null);
_.E([_.C("data.optionalDetailsLine"),_.U("design:type",Object),_.U("design:paramtypes",[])],Ya.prototype,"getOptionalDetails",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ya.prototype,"dataChanged",null);_.E([_.p({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Ya);
_.N(Ya,"ytd-image-tile-renderer",function(){if(Z4_!==void 0)return Z4_;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Z4_=X},{mode:1});var qqt;var sT=function(){return _.O.apply(this,arguments)||this};
_.S(sT,_.O);sT.prototype.getOpenLinkIcon=function(){return _.A("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
sT.prototype.onSitelinkTap=function(){_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.A("kevlar_command_handler_migration_killswitch"))_.Z0(this.hostElement,this.data.clickCommands,this.hostElement);else for(var X=_.J(this.data.clickCommands),t=X.next();!t.done;t=X.next())this.ytComponentBehavior.resolveCommand(t.value)};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],sT.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sT.prototype,"rendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sT.prototype,"data",void 0);_.E([_.p({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],sT);
_.N(sT,"ytd-sitelink-renderer",function(){if(qqt!==void 0)return qqt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qqt=X},{mode:1});var Dh=function(){var X=_.O.apply(this,arguments)||this;X.paddingFix=_.A("enable_ads_web_ep_buenos_aires_and_padding_fix");return X};
_.S(Dh,_.O);Dh.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"}}}};
Dh.prototype.dataChanged=function(){var X=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;X.ytMacroReplacementBehavior.sendServiceRequestAction([t])})};
Dh.prototype.shouldHideFooter=function(X){return!(X&&_.A("use_ads_engagement_panel_desktop_footer_cta"))};
_.ke.Object.defineProperties(Dh.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:X.imageTileRenderers)===void 0||((t=this.data)==null?void 0:t.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(G){var y;return(y=_.Y(G,ouV))==null?void 0:y.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:X.imageTileRenderers)===void 0||((t=this.data)==null?void 0:t.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(G){var y;return((y=_.Y(G,ouV))==null?void 0:y.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Dh.prototype.dataChanged=Dh.prototype.dataChanged;_.E([_.q(nhB.YtMacroReplacementBehavior),_.U("design:type",Object)],Dh.prototype,"ytMacroReplacementBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Dh.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Dh.prototype,"paddingFix",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.imageTileRenderers"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Dh.prototype,"removeBorderFromImageTiles",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.imageTileRenderers"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Dh.prototype,"useFooteredMetadataRenderingStyle",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Dh.prototype,"dataChanged",null);_.E([_.p({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Dh);
_.N(Dh,"ytd-action-engagement-panel-content-renderer",function(){if(hej!==void 0)return hej;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return hej=X},{mode:1});var CJM;var Kt_=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;return _.k("ad-grid-card-image-full-metadata-view-model",{class:function(){var y;return((y=t().interaction)==null?0:y.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.T7(_.gS({visibilityCallback:function(y){var w,z=(w=t().interaction)==null?void 0:w.onFirstVisible;y&&z&&_.JH(z)},
showOption:_.FF}),_.ny(function(){return t().interaction},G)),
"aria-label":function(){var y,w;return(y=t().interaction)==null?void 0:(w=y.accessibility)==null?void 0:w.label}},_.k("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.k(_.M7,{data:function(){return t().adImage}},{adImageViewModel:function(y){return _.k(_.rf,{data:y.data,
customCommandResolver:G})}})),_.k("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.k(_.d,{cond:function(){return t().headline},
then:function(y){return _.k(_.eh,{text:y,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.k(_.d,{cond:function(){return t().detailsLine},
then:function(y){return _.k("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.k(_.M7,{data:y},{adDetailsLineViewModel:function(w){return _.k(_.ZT,{data:w.data,customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.k(_.d,{cond:function(){return t().secondaryDetailsLine},
then:function(y){return _.k("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.k(_.M7,{data:y},{adDetailsLineViewModel:function(w){return _.k(_.ZT,{data:w.data,customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"oj");var O4j=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;return _.k("ad-grid-card-image-view-model",{class:function(){var y;return((y=t().interaction)==null?0:y.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.T7(_.gS({visibilityCallback:function(y){var w,z=(w=t().interaction)==null?void 0:w.onFirstVisible;y&&z&&_.JH(z)},
showOption:_.FF}),_.ny(function(){return t().interaction},G)),
"aria-label":function(){var y,w;return(y=t().interaction)==null?void 0:(w=y.accessibility)==null?void 0:w.label}},_.k(_.M7,{data:function(){return t().adImage}},{adImageViewModel:function(y){return _.k(_.rf,{data:y.data,
customCommandResolver:G})}}),_.k("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.k(_.M7,{data:function(){return t().adCardBadge}},{adCardBadgeViewModel:_.enq})))},"pj");var u4Y=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;return _.k("ad-grid-card-text-view-model",{class:function(){var y;return((y=t().interaction)==null?0:y.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.T7(_.gS({visibilityCallback:function(y){var w,z=(w=t().interaction)==null?void 0:w.onFirstVisible;y&&z&&_.JH(z)},
showOption:_.FF}),_.ny(function(){return t().interaction},G)),
"aria-label":function(){var y,w;return(y=t().interaction)==null?void 0:(w=y.accessibility)==null?void 0:w.label}},_.k("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.k(_.d,{cond:function(){return t().title},
then:function(y){return _.k(_.eh,{text:y,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.k("div",{class:function(){return _.A("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.k(_.pY,{each:function(){var y;
return((y=t())==null?void 0:y.descriptions)||[]},
keyBy:"INDEX"},function(y){return _.k(_.eh,{text:y,className:function(){return _.A("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.k("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.k(_.M7,{data:function(){return t().moreInfoButton}},{adButtonViewModel:function(y){return _.k(_.Ae,{data:y.data,
customCommandResolver:G})}})))},"qj");var Qqt=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;var y=X.adGridCardCollectionStyle;return _.k("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.T7(_.gS({visibilityCallback:function(w){var z,B=(z=t().interaction)==null?void 0:z.onFirstVisible;w&&B&&_.JH(B)},
showOption:_.FF})),style:function(){return"grid-template-columns: repeat("+Ajv(y?y():t().style)+", minmax(0, 1fr));"}},_.k(_.M7,{data:function(){var w;
return(w=t())==null?void 0:w.gridCards}},{adGridCardImageViewModel:function(w){return _.k(O4j,{data:w.data,
customCommandResolver:G})},
adGridCardImageFullMetadataViewModel:function(w){return _.k(Kt_,{data:w.data,customCommandResolver:G})},
adGridCardTextViewModel:function(w){return _.k(u4Y,{data:w.data,customCommandResolver:G})}}))},"rj");_.DW(_.Fp(function(X){var t=X.data;return _.k("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.T7(_.gS({visibilityCallback:function(G){var y,w=(y=t().interaction)==null?void 0:y.onFirstVisible;G&&w&&_.JH(w)},
showOption:_.FF}),_.ny(function(){return t().interaction},YTq))},_.k("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.k(_.d,{cond:_.sgh("(min-width: "+((0,_.$R)()+_.Wg)+"px)"),
then:function(){return _.k(_.M7,{data:function(){return t().adGridCardCollection}},{adGridCardCollectionViewModel:function(G){return _.k(Qqt,{data:G.data,
customCommandResolver:YTq})}})},
else:function(){return _.k(_.M7,{data:function(){return t().adGridCardCollection}},{adGridCardCollectionViewModel:function(G){return _.k(Qqt,{data:G.data,
customCommandResolver:YTq,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.k("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.k(_.M7,{data:function(){return t().adButton}},{adButtonViewModel:function(G){return _.k(_.Ae,{data:G.data,
customCommandResolver:YTq})}})))},"sj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;return _.k("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.T7(_.gS({visibilityCallback:function(G){var y,w=(y=t().interaction)==null?void 0:y.onFirstVisible;G&&w&&_.JH(w)},
showOption:_.FF}),_.ny(function(){return t().interaction},snN))},_.k("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.k(_.M7,{data:function(){if(_.sgh("(min-width: "+((0,_.$R)()+_.Wg)+"px)")())var G=t().adGridCardCollection;
else{G=Object.assign({},_.Y(t().adGridCardCollection,J5r));var y;G.gridCards!==void 0&&((y=G.gridCards)==null?void 0:y.length)>1?G.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":G.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";G={adGridCardCollectionViewModel:G}}return G}},{adGridCardCollectionViewModel:function(G){return _.k(Qqt,{data:G.data,
customCommandResolver:snN})}})),_.k("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.k(_.M7,{data:function(){return t().adButton}},{adButtonViewModel:function(G){return _.k(_.Ae,{data:G.data,
customCommandResolver:snN})}})))},"tj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.bR}});var SJ=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return X};
_.S(SJ,_.O);_.H=SJ.prototype;_.H.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"}}}};
_.H.attached=function(){this.getDataFromPlayerAndRender()};
_.H.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.H.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.H.getDataFromPlayerAndRender=function(){var X=this,t=_.sW(this.hostElement);t&&t.getPlayerPromise().then(function(G){X.getCachedDataAndListen(G)})};
_.H.getCachedDataAndListen=function(X){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(X,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(X,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=X)};
_.H.resolveCachedActions=function(){var X=_.GA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(X=X&&X())&&!_.RH.isEmpty(X)&&this.sendUpdateEngagementPanelAction(X);(X=(X=_.GA("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&X())&&!_.RH.isEmpty(X)&&this.sendChangeEngagementPanelVisibilityAction(X);(X=(X=_.GA("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&X())&&!_.RH.isEmpty(X)&&this.sendScrollToEngagementPanelCommand(X)};
_.H.sendUpdateEngagementPanelAction=function(X){var t;_.sl(this.hostElement,"yt-update-engagement-panel-action",[(t=_.RH.get(X,"action"))!=null?t:X])};
_.H.sendChangeEngagementPanelVisibilityAction=function(X){_.sl(this.hostElement,"yt-change-engagement-panel-visibility-action",[X])};
_.H.sendScrollToEngagementPanelCommand=function(X){_.sl(this.hostElement,"yt-scroll-to-engagement-panel-command",[X])};
_.H.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.A("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Mj(Error("vo"))};
SJ.prototype.dataChanged=SJ.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],SJ.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],SJ.prototype,"componentBehavior",void 0);_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],SJ.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],SJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],SJ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],SJ.prototype,"player",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],SJ.prototype,"dataChanged",null);_.E([_.p({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],SJ);
_.N(SJ,"ytd-ads-engagement-panel-content-renderer",function(){if(CJM!==void 0)return CJM;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return CJM=X},{mode:1});var IPg;var hj=function(){var X=_.O.apply(this,arguments)||this;X.player=null;X.JSC$22323_playerEvents=new Map;X.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return X};
_.S(hj,_.O);_.H=hj.prototype;_.H.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]]"}}}}}};
_.H.created=function(){this.player=null;this.JSC$22323_playerEvents=new Map;this.JSC$22323_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22323_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22323_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22323_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.H.attached=function(){var X=this,t=_.sW();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));t&&t.getPlayerPromise().then(function(G){X.setPlayer(G);X.set("isPageLoad",!1)})};
_.H.setPlayer=function(X){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22323_playerEvents);this.set("player",X);X&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$22323_playerEvents),X.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.H.onLoopRangeChange=function(X){var t=_.gw().resolve(_.jH(_.AS));if((!t||t.isOnWatch())&&this.hostElement.clientHeight){var G;!X&&((G=this.data)==null?0:G.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.H.onVideoProgress=function(X){var t,G,y=((t=this.player)==null?void 0:(G=t.getPresentingPlayerType)==null?void 0:G.call(t))===2;this.isAdPlaying!==y&&this.set("isAdPlaying",y);var w;if(!y&&(w=this.player)!=null&&w.getLoopRange()){G=this.player.getLoopRange();t=G.startTimeMs;G=G.endTimeMs;y=this.player.getProgressState(1).seekableStart;var z;t<y*1E3&&((z=this.data)==null?0:z.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
X=G<X*1E3;var B;((B=this.player)==null?0:B.getLoopRange())&&X&&this.player.seekTo(t/1E3)}};
_.H.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.H.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.H.onYtDeleteClipEngagementPanelCommand=function(X){_.Y(X,DuH).command&&this.ytComponentBehavior.resolveCommand(_.Y(X,DuH).command)};
_.ke.Object.defineProperties(hj.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.voteCount)||_.Vl("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],hj.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],hj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],hj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],hj.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],hj.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],hj.prototype,"isAdPlaying",void 0);_.E([_.K({reflectToAttribute:!0,value:!0}),_.U("design:type",Boolean)],hj.prototype,"isPageLoad",void 0);_.E([_.K({reflectToAttribute:!0,value:!0}),_.U("design:type",Boolean)],hj.prototype,"isDarkTheme",void 0);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],hj.prototype,"voteCount",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],hj.prototype,"channelEndpoint",null);_.E([_.C("channelEndpoint"),_.U("design:type",Object),_.U("design:paramtypes",[])],hj.prototype,"channelHref",null);_.E([_.p({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],hj);
_.N(hj,"ytd-clip-attribution-renderer",function(){if(IPg!==void 0)return IPg;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return IPg=X},{mode:1});var WtN;var Zh=function(){var X=_.O.apply(this,arguments)||this;X.player=null;X.JSC$22328_playerEvents=new Map;return X};
_.S(Zh,_.O);_.H=Zh.prototype;_.H.created=function(){this.player=null;this.JSC$22328_playerEvents=new Map;this.JSC$22328_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22328_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22328_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.H.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.H.attached=function(){var X=this,t=_.sW();t&&t.getPlayerPromise().then(function(G){X.setPlayer(G);X.set("isPageLoad",!1)})};
_.H.setPlayer=function(X){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22328_playerEvents);this.set("player",X);if(X){this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$22328_playerEvents);var t;(X==null?void 0:(t=X.getPresentingPlayerType)==null?void 0:t.call(X))===2&&this.playerAdStartHandler()}};
_.H.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.H.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.H.onVideoProgress=function(){var X,t,G=((X=this.player)==null?void 0:(t=X.getPresentingPlayerType)==null?void 0:t.call(X))===2;this.isAdPlaying!==G&&this.set("isAdPlaying",G)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],Zh.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Zh.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Zh.prototype,"isAdPlaying",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.U("design:type",Boolean)],Zh.prototype,"isPageLoad",void 0);_.E([_.p({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Zh);
_.N(Zh,"ytd-clip-section-footer-renderer",function(){if(WtN!==void 0)return WtN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return WtN=X},{mode:1});var cq_;var pSN;var qy=function(){return _.O.apply(this,arguments)||this};
_.S(qy,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qy.prototype,"data",void 0);_.E([_.p({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],qy);
_.N(qy,"ytd-clip-ad-state-renderer",function(){if(pSN!==void 0)return pSN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return pSN=X},{mode:1});var rqt;var CS=function(){var X=_.O.apply(this,arguments)||this;X.value="";X.valid=!1;X.userChangedValue=!1;X.disabled=!1;X.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return X};
_.S(CS,_.O);_.H=CS.prototype;_.H.detached=function(){this.userChangedValue=!1};
_.H.handleKeyDown=function(X){if(_.qe)var t=13;else _.h$E&&_.C9?t=13:t=13;X.keyCode===t&&X.preventDefault()};
_.H.handleInput=function(){var X=_.Sm(this.hostElement).querySelector("#title");if(X){var t=(X.value||"").replace(/\r|\n/g," ");this.set("value",t);X.value=t;this.valid=X.validate();this.userChangedValue=!0}};
_.H.handleBlur=function(){this.valid=_.Sm(this.hostElement).querySelector("#title").validate()};
_.H.onValueChanged=function(){_.Yt(this.hostElement,"title-changed",{title:this.value})};
_.H.onValidChanged=function(){_.Yt(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.H.setInput=function(X,t){var G=_.Sm(this.hostElement).querySelector("#title");G&&(G.value=X,this.handleInput(),t&&(G.invalid=!1,this.valid=!0))};
_.H.onClipCreationDisable=function(){this.set("disabled",!0)};
_.H.onClipCreationEnable=function(){this.set("disabled",!1)};
_.H.onClipCreationVisibilityChange=function(X){var t=this;X.visible?requestAnimationFrame(function(){var G;((G=_.Sm(t.hostElement).querySelector("#title"))==null?void 0:G.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
CS.prototype.onValidChanged=CS.prototype.onValidChanged;CS.prototype.onValueChanged=CS.prototype.onValueChanged;CS.prototype.handleBlur=CS.prototype.handleBlur;CS.prototype.handleInput=CS.prototype.handleInput;CS.prototype.handleKeyDown=CS.prototype.handleKeyDown;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],CS.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],CS.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],CS.prototype,"value",void 0);_.E([_.K(),_.U("design:type",Object)],CS.prototype,"valid",void 0);_.E([_.K(),_.U("design:type",Object)],CS.prototype,"userChangedValue",void 0);_.E([_.K(),_.U("design:type",Object)],CS.prototype,"disabled",void 0);_.E([_.WW("keydown"),_.U("design:type",Function),_.U("design:paramtypes",[KeyboardEvent]),_.U("design:returntype")],CS.prototype,"handleKeyDown",null);
_.E([_.WW("input"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],CS.prototype,"handleInput",null);_.E([_.WW("blur"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],CS.prototype,"handleBlur",null);_.E([_.cW("value"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],CS.prototype,"onValueChanged",null);
_.E([_.cW("valid"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],CS.prototype,"onValidChanged",null);_.E([_.p({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],CS);
_.N(CS,"ytd-clip-creation-text-input-renderer",function(){if(rqt!==void 0)return rqt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return rqt=X},{mode:1});var Noj;var PJt;var Eht;var Uz_;var mzY;var KS=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};X.pendingStoryboardImages_={};X.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];X.tickLabelInterval=30;X.mediumTickInterval=5;X.largeTickInterval=15;X.aboveRulerHeight=32;X.rulerHeight=50;X.smallTickHeight=4;X.mediumTickHeight=8;X.largeTickHeight=16;X.mediaListeners_=
{};return X};
_.S(KS,_.O);_.H=KS.prototype;_.H.attached=function(){var X=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(t){t=_.J(["screen and (min-resolution: "+t+")","screen and (max-resolution: "+t+")"]);for(var G=t.next();!G.done;G=t.next()){G=G.value;var y=window.matchMedia(G);y&&(X.mediaListeners_[G]=X.updatePixelRatio_.bind(X),y.addEventListener?y.addEventListener("change",X.mediaListeners_[G]):y.addListener?y.addListener(X.mediaListeners_[G]):delete X.mediaListeners_[G])}})};
_.H.detached=function(){this.setPlayer(null);for(var X=_.J(Object.keys(this.mediaListeners_)),t=X.next();!t.done;t=X.next()){var G=t.value;t=this.mediaListeners_[G];(G=window.matchMedia(G))&&(G.removeEventListener?G.removeEventListener("change",t):G.removeListener&&G.removeListener(t))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.H.onVisibilityChangedAction_=function(X){var t=this;X.visible&&!this.player_&&(X=_.sW())&&X.getPlayerPromise().then(function(G){t.setPlayer(G)})};
_.H.setPlayer=function(X){X&&this.set("player_",X)};
_.H.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.H.setUpCanvas_=function(){var X=this.rulerWidth,t=this.devicePixelRatio_,G=this.visible;this.set("canvasReady_",!1);if(G&&t!==0){G=this.aboveRulerHeight+this.rulerHeight;var y=_.Sm(this.hostElement).querySelector("#ticks");y.width=X*t;y.height=G*t;y.style.width=X+"px";y.style.height=G+"px";y.getContext("2d").scale(t,t);this.set("canvasReady_",!0)}};
_.H.drawRuler_=function(X,t,G,y,w,z,B,V,b,e,g,F){X&&G&&t&&(X=_.Sm(this.hostElement).querySelector("#ticks"),t=X.getContext("2d"),t.clearRect(0,0,X.width,X.height),t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),t.lineWidth=2,t.beginPath(),t.moveTo(0,this.aboveRulerHeight),t.lineTo(X.width,this.aboveRulerHeight),t.moveTo(0,X.height),t.lineTo(X.width,X.height),t.stroke(),this.drawRulerTicks_(X,z,w,y),this.drawStoryboardImages_(X,G,z,w,y),t.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
t.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(B-z,y,!1),this.rulerHeight),G=this.timeToPixels_(V-z,y,!1),t.fillRect(G,this.aboveRulerHeight,X.width-G,this.rulerHeight),this.drawSpeedLines_(X,z,F))};
_.H.drawRulerTicks_=function(X,t,G,y){var w=X.getContext("2d");w.save();w.lineWidth=1;for(var z=Math.floor(Math.max(0,t-this.tickLabelInterval));z<t+G;z++){w.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var B=(z-t)*y;w.beginPath();w.moveTo(B,X.height);var V=this.smallTickHeight;z%this.largeTickInterval===0?V=this.largeTickHeight:z%this.mediumTickInterval===0&&(V=this.mediumTickHeight);w.lineTo(B,X.height-V);w.stroke();z%this.tickLabelInterval===0&&(w.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),w.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),w.fillText(hs(z),B+4,12),w.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),w.moveTo(B,0),w.lineTo(B,this.aboveRulerHeight),w.stroke())}w.restore()};
_.H.percentToHex_=function(X){X=Math.round(X*255).toString(16);X.length<2&&(X="0"+X);return X};
_.H.drawSpeedLines_=function(X,t,G){var y=X.getContext("2d");y.save();var w=Math.min(25,Math.abs(G)-15)/25,z=X.width*.3*w,B=X.width*-.3,V=X.width*1.3,b=this.aboveRulerHeight;X=X.height;var e=Math.round(4*w),g=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");g.length<7&&(g="#"+g.substring(1,4).repeat(2));var F=this.percentToHex_(.5+w/2);F=g+F;g+="00";if(w>0)for(w=0;w<e;w++){var T=B+Math.random()*(V-B),D=b+Math.random()*(X-b),h=z+t%z,u=y.createLinearGradient(T,D,T+h,D);
G<0?(u.addColorStop(0,F),u.addColorStop(.4,F),u.addColorStop(.9,g)):(u.addColorStop(.1,g),u.addColorStop(.6,F),u.addColorStop(1,F));y.strokeStyle=u;y.lineWidth=1;y.beginPath();y.moveTo(T,D);y.lineTo(T+h,D);y.stroke()}y.restore()};
_.H.getStoryboardForTime_=function(X,t,G){G===void 0&&(G=t.getNumberOfStoryboardLevels()-1);X=t.getStoryboardFrameIndex(X,G);return t.getStoryboardFrame(X,G)};
_.H.drawStoryboardImages_=function(X,t,G,y,w){if(!this.disabled){X=X.getContext("2d");var z=this.getStoryboardForTime_(0,t);if(z){var B=z.width/z.columns;z=z.height/z.rows;var V=B/z,b=this.rulerHeight*V;b=this.tickLabelInterval*(V<this.tickLabelInterval*w/this.rulerHeight?1/Math.floor(this.tickLabelInterval*w/b):Math.round(b/(this.tickLabelInterval*w)));var e=b*w,g=this.rulerHeight,F=e/this.rulerHeight,T=Math.floor(Math.max(0,G-b));for(T-=T%b;T<G+y;T+=b){var D=this.getStoryboardForTime_(T,t),h=this.getPreloadedStoryboard_(D.url);
if(h){var u=(T-G)*w,W=this.aboveRulerHeight,c=D.column*B,P=D.row*z;if(V<F){var l=g/(e/V);D=B;l*=z;P+=(z-l)/2}else D=e/(g*V)*B,l=z,c+=(B-D)/2;X.drawImage(h,c,P,D,l,u,W,e,g)}else this.fetchStoryboardImage_(D)}}}};
_.H.getPreloadedStoryboard_=function(X){return this.storyboardImages_.find(function(t){if(t.src==X)return!0;var G=t.src.indexOf(X);return G!=-1&&G==t.src.length-X.length})};
_.H.fetchStoryboardImage_=function(X){var t=this,G=this.getPreloadedStoryboard_(X.url),y=this.pendingStoryboardImages_[X.url];G||y!==void 0||(G=new Promise(function(w){var z=new Image(X.width,X.height);z.src=X.url;z.onload=function(){w(z)};
z.onerror=function(){w(null)}}),this.pendingStoryboardImages_[X.url]=G,G.then(function(w){w&&t.push("storyboardImages_",w);
return w}).finally(function(){delete t.pendingStoryboardImages_[X.url]}))};
_.H.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.H.timeToPixels_=function(X,t,G){X*=t;return G===void 0||G?X+"px":X};
_.H.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
KS.prototype.drawRuler_=KS.prototype.drawRuler_;KS.prototype.setUpCanvas_=KS.prototype.setUpCanvas_;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],KS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],KS.prototype,"start",void 0);_.E([_.K({value:30}),_.U("design:type",Number)],KS.prototype,"end",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],KS.prototype,"visible",void 0);_.E([_.K(),_.U("design:type",Object)],KS.prototype,"player_",void 0);_.E([_.K(),_.U("design:type",Number)],KS.prototype,"tickSpacing",void 0);_.E([_.K(),_.U("design:type",Number)],KS.prototype,"windowSizeSec",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],KS.prototype,"rulerWidth",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],KS.prototype,"rulerShift",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],KS.prototype,"canvasReady_",void 0);_.E([_.K({value:function(){return[]}}),
_.U("design:type",Array)],KS.prototype,"storyboardImages_",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],KS.prototype,"disabled",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],KS.prototype,"forceRender_",void 0);_.E([_.K({value:1}),_.U("design:type",Number)],KS.prototype,"devicePixelRatio_",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],KS.prototype,"windowSpeed",void 0);
_.E([_.cW("visible","devicePixelRatio_","rulerWidth"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],KS.prototype,"setUpCanvas_",null);
_.E([_.cW("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.U("design:type",Function),_.U("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.U("design:returntype")],KS.prototype,"drawRuler_",null);_.E([_.$F({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],KS);
_.N(KS,"yt-clip-creation-scrubber-canvas",function(){if(mzY===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);mzY=X}X=mzY;return X},
{mode:2});var Rek;var i4B;var OT=function(){var X=_.O.apply(this,arguments)||this;X.start=0;X.end=30;X.visible=!1;X.draggingLeft_=!1;X.draggingRight_=!1;X.draggingRuler_=!1;X.draggingWindow_=!1;X.seekableStart=0;X.seekableEnd=0;X.rulerWidth_=0;X.rulerShift_=0;X.windowSlideSpeed=0;X.disabled=!1;X.initialized=!1;X.durationAccessibilityLabel="";X.activeLoopRange_=!1;X.rulerDragMouseStart_=0;X.rulerDragRulerStart_=0;X.rulerDragStartTime_=0;X.rulerDragEndTime_=0;X.dragMouseLastX_=0;X.scrollInterval_=null;X.scrubberVe_=null;X.boundHandlers_=
{};X.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return X};
_.S(OT,_.O);_.H=OT.prototype;
_.H.created=function(){var X=this;this.JSC$22341_playerEvents=new Map;this.JSC$22341_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22341_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22341_playerEvents.set("onStateChange",this.onStateChange_);var t={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(t).forEach(function(G){X.boundHandlers_[G]=t[G].bind(X)})};
_.H.attached=function(){this.activeLoopRange_=!1;_.Sm(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Sm(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.ai(156731)};
_.H.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Sm(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Sm(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.H.onVisibilityChangedAction_=function(X){var t=this;X.visible&&!this.player_&&(X=_.sW())&&X.getPlayerPromise().then(function(G){t.setPlayer(G)})};
_.H.setPlayer=function(X){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22341_playerEvents);X&&(this.set("player_",X),this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$22341_playerEvents))};
_.H.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.H.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.H.beginHandleDrag_=function(X){this.disabled||(X.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=X.clientX,X.target===_.Sm(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():X.target===_.Sm(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.H.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.H.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.H.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.H.beginRulerDrag_=function(X){this.disabled||(X.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=X.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.H.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.H.beginWindowScroll_=function(){var X=this;this.scrollInterval_=setInterval(function(){var t=X.windowSlideSpeed;if(t=_.cOR(X.start,X.boundedRulerStartLimit_())?t-.1:_.cOR(X.end,X.boundedRulerEndLimit_())?t+.1:0){var G=X.capRulerOffset_(X.rulerShift_+t);G==X.rulerShift_?t=0:(X.set("rulerShift_",G),_.Yt(X.hostElement,"set-fixed-length-range",{start:X.start+t,duration:X.end-X.start}))}X.set("windowSlideSpeed",t)},33)};
_.H.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.H.endDrag_=function(){this.logClick();var X=void 0;this.draggingRight_?X=this.end-1:this.draggingLeft_&&(X=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,X);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))};
_.H.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.H.updateRulerSize_=function(){this.set("rulerWidth_",_.Sm(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.H.handleMouseDrag_=function(X){X.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(X):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(X):this.draggingWindow_&&this.handleWindowDrag_(X))};
_.H.handleRulerDrag_=function(X){X=this.pixelsToTime_(X.clientX-this.rulerDragMouseStart_);X=this.capRulerOffset_(this.rulerDragRulerStart_-X);this.set("rulerShift_",X);var t=this.rulerDragStartTime_-(this.rulerDragRulerStart_-X);_.Yt(this.hostElement,"set-fixed-length-range",{start:t,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-X)-t})};
_.H.handleWindowDrag_=function(X){var t=X.clientX-this.dragMouseLastX_;this.dragMouseLastX_=X.clientX;X=this.pixelsToTime_(t);_.Yt(this.hostElement,"set-fixed-length-range",{start:this.start+X,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.H.capRulerOffset_=function(X){var t=this.seekableStart-this.pixelsToTime_(16),G=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(t,X),G)};
_.H.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.H.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.H.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.H.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.H.handleWindowHandleDrag_=function(X){var t=X.clientX-this.dragMouseLastX_;this.dragMouseLastX_=X.clientX;X=this.pixelsToTime_(t);if(this.draggingLeft_){var G=this.start+X;var y=this.end}else this.draggingRight_&&(G=this.start,y=this.end+X);_.Yt(this.hostElement,"set-range",{start:G,end:y,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.H.onVideoProgress_=function(X){this.disabled||(X=this.timeToPixels_(X-this.rulerShift_,this.tickSpacing_),_.Sm(this.hostElement).querySelector("#playhead").style.transform="translateX("+X+")")};
_.H.onClipCreationDisable_=function(){this.endDrag_()};
_.H.timeToPixels_=function(X,t,G){X*=t;return G===void 0||G?X+"px":X};
_.H.pixelsToTime_=function(X){return X/this.tickSpacing_};
_.H.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.H.centerRuler_=function(X,t,G){this.set("rulerShift_",this.capRulerOffset_(X+(t-X)/2-G/2))};
_.H.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.H.updateLoopRange_=function(X,t,G,y,w,z,B){X&&(t&&y&&!G?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(X.pauseVideo(),X.seekTo(w,!1,void 0,void 0,50)):this.draggingRight_?(X.pauseVideo(),X.seekTo(z-.1,!1,void 0,void 0,50)):(B!==void 0?X.seekTo(B,!0,void 0,void 0,50):(t=X.getCurrentTime(),t<w||t>z?X.seekTo(w,!0,void 0,void 0,50):X.seekTo(t,!0,void 0,void 0,50)),X.playVideo()),X.setLoopRange({startTimeMs:w*1E3,endTimeMs:z*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(X.getCurrentTime())):
this.activeLoopRange_&&(X.setLoopRange(null),this.activeLoopRange_=!1))};
_.H.updateHandles_=function(){_.Sm(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Sm(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.H.updateRuler_=function(){var X=this.end,t=this.start,G=this.draggableStartLimit_(),y=this.draggableEndLimit_();(t<G-.001||X>y+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.H.computeDurationLabel_=function(X,t){return X?X.replace("$clip_length",parseFloat(t).toFixed(1)):""};
_.H.computeDuration_=function(X,t){return this.isValidTime_(X)&&this.isValidTime_(t)&&X<t?t-X:0};
_.H.isValidTime_=function(X){return isNaN(parseFloat(X))||X<0?!1:this.player_?X>=this.seekableStart&&X<=this.seekableEnd:!0};
_.H.computeWindowSizeSec_=function(X,t,G){return Math.min((X||12E4)/1E3,G-t)};
_.H.computeTickSpacing_=function(X,t){return t?t/X:1};
_.H.onDragStateChanged_=function(){_.Yt(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.H.centerRangeOnTime_=function(X){var t=this.duration;X=STi(X-t/2,t,this.seekableStart,this.seekableEnd);_.Yt(this.hostElement,"set-fixed-length-range",{start:X.start,duration:X.end-X.start})};
_.H.nearlyLessThan_=function(X,t,G){return X+(G===void 0?1E-6:G)<t};
_.H.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var X=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(X,this.start)||this.nearlyLessThan_(this.end,X))&&this.centerRangeOnTime_(X)}};
_.H.onStateChange_=function(X){this.visible&&!this.disabled&&X==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.H.computeDragState_=function(X,t,G,y){return X?"left":t?"right":G?"ruler":y?"window":"none"};
_.H.logClick=function(){var X=_.lw(),t=_.a4();X&&t&&this.scrubberVe_&&(_.A("combine_ve_grafts")?_.Cc(_.Pj(),this.scrubberVe_,t):_.w9(X,t,this.scrubberVe_),_.BK(X,this.scrubberVe_))};
OT.prototype.onDragStateChanged_=OT.prototype.onDragStateChanged_;OT.prototype.updateRuler_=OT.prototype.updateRuler_;OT.prototype.updateHandles_=OT.prototype.updateHandles_;OT.prototype.onUpdateLoopRange=OT.prototype.onUpdateLoopRange;OT.prototype.onInitializedChanged_=OT.prototype.onInitializedChanged_;OT.prototype.onVisibleChanged_=OT.prototype.onVisibleChanged_;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],OT.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",Object)],OT.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"start",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"end",void 0);_.E([_.K({computed:"computeDuration_(start, end)"}),_.U("design:type",Number)],OT.prototype,"duration",void 0);
_.E([_.K(),_.U("design:type",String)],OT.prototype,"lengthTemplate",void 0);_.E([_.K({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.U("design:type",String)],OT.prototype,"durationLabel",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"visible",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"player_",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"draggingLeft_",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"draggingRight_",void 0);
_.E([_.K(),_.U("design:type",Object)],OT.prototype,"draggingRuler_",void 0);_.E([_.K({value:!1}),_.U("design:type",Object)],OT.prototype,"draggingWindow_",void 0);_.E([_.K({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.U("design:type",Number)],OT.prototype,"tickSpacing_",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"seekableStart",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"seekableEnd",void 0);
_.E([_.K(),_.U("design:type",Number)],OT.prototype,"windowSizeMs",void 0);_.E([_.K({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.U("design:type",Number)],OT.prototype,"windowSizeSec_",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"rulerWidth_",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"rulerShift_",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"windowSlideSpeed",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],OT.prototype,"disabled",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"initialized",void 0);_.E([_.K(),_.U("design:type",Object)],OT.prototype,"durationAccessibilityLabel",void 0);_.E([_.K({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.U("design:type",String)],OT.prototype,"dragState",void 0);
_.E([_.cW("visible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OT.prototype,"onVisibleChanged_",null);_.E([_.cW("initialized"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OT.prototype,"onInitializedChanged_",null);_.E([_.cW("player_","visible","disabled","initialized","start","end"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OT.prototype,"onUpdateLoopRange",null);
_.E([_.cW("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OT.prototype,"updateHandles_",null);_.E([_.cW("start","end"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OT.prototype,"updateRuler_",null);
_.E([_.cW("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OT.prototype,"onDragStateChanged_",null);_.E([_.$F({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],OT);
_.N(OT,"yt-clip-creation-scrubber-view",function(){if(i4B===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Rek===void 0&&(Rek=document.createElement("template"));var y=Rek;G.call(t,y.content.cloneNode(!0),X.content.firstChild);i4B=X}X=i4B;return X},{mode:2});var u0=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};X.startHighlightTimeout=0;X.endHighlightTimeout=0;return X};
_.S(u0,_.O);_.H=u0.prototype;_.H.attached=function(){var X=this;this.startInput.addEventListener("input",function(t){return X.handleStartInput_(t)});
this.endInput.addEventListener("input",function(t){return X.handleEndInput_(t)});
this.startInput.addEventListener("focusout",function(t){return X.handleStartBlur_(t)});
this.endInput.addEventListener("focusout",function(t){return X.handleEndBlur_(t)})};
_.H.setPlayer=function(X){this.set("player_",X)};
_.H.onSetFixedLengthRange_=function(X){var t=X.detail;X=t.start;var G=t.duration,y=t.startLimit;t=t.endLimit;y||(y=this.seekableStart_);t||(t=this.seekableEnd_);X=STi(X,G,y,t);this.start=X.start;this.end=X.end};
_.H.onSetRange_=function(X){var t=X.detail;X=t.start;var G=t.end,y=t.startLimit;t=t.endLimit;y||(y=this.seekableStart_);t||(t=this.seekableEnd_);if(X=hSH(X,G,y,t,this.minLengthSec,this.maxLengthSec))this.start=X.start,this.end=X.end};
_.H.updateInputs_=function(){var X=this.end,t=this.start;this.startInput.focused||(this.startInput.value=hs(t,!0));this.endInput.focused||(this.endInput.value=hs(X,!0))};
_.H.handleStartInput_=function(X){X=DyQ(X.target.value);if(X===null)this.set("startValid",!1);else{var t=this.end,G=hSH(X,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);G?(this.set("endWillUpdate",G.end!==t),this.set("startValid",G.start===X)):this.set("startValid",!1)}};
_.H.handleEndInput_=function(X){X=DyQ(X.target.value);if(X===null)this.set("endValid",!1);else{var t=this.start,G=ZSr(this.start,X,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);G?(this.set("startWillUpdate",G.start!==t),this.set("endValid",G.end===X)):this.set("endValid",!1)}};
_.H.handleStartBlur_=function(X){X=DyQ(X.target.value);X===null?this.startInput.value=hs(this.start,!0):this.forceUpdateInputs_(hSH(X,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.H.handleEndBlur_=function(X){X=DyQ(X.target.value);X===null?this.endInput.value=hs(this.end,!0):this.forceUpdateInputs_(ZSr(this.start,X,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.H.forceUpdateInputs_=function(X){X&&(this.start=X.start,this.end=X.end);this.startInput.value=hs(this.start,!0);this.endInput.value=hs(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.H.initializeClipRange_=function(){var X=this.seekableEnd_,t=this.seekableStart_,G=this.visible_,y=this.player_;if(!y||!G||t===null||!X)this.set("initialized",!1);else if(!this.initialized){var w=y.getCurrentTime(),z=this.getDefaultLengthSec_();G=y.getVideoData();var B=y.getPlayerState()==1,V=G.isLive;z=Math.min(z,X-t);w=Math.max(0,w);X=V?ZSr(w-z,w,t,X,this.minLengthSec,this.maxLengthSec):B?STi(w-z/2,z,t,X):STi(w,z,t,X);this.start=X.start;this.end=X.end;this.set("initialized",!0);G.isLive&&y.seekTo(X.start);
this.startInput.value=hs(this.start,!0);this.endInput.value=hs(this.end,!0)}};
_.H.onStartChanged_=function(){var X=this;_.Yt(this.hostElement,"start-changed",{start:this.start});var t;isNaN((t=this.oldStart)!=null?t:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){X.set("highlightStart",!1);X.startHighlightTimeout=0;X.oldStart=X.start},3E3))};
_.H.onEndChanged_=function(){var X=this;_.Yt(this.hostElement,"end-changed",{end:this.end});var t;isNaN((t=this.oldEnd)!=null?t:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){X.set("highlightEnd",!1);X.endHighlightTimeout=0;X.oldEnd=X.end},3E3))};
_.H.onVisibilityChangedAction_=function(X){var t=this;this.set("visible_",X.visible);this.visible_&&!this.player_&&(X=_.sW())&&X.getPlayerPromise().then(function(G){t.setPlayer(G)})};
_.H.computeMinLengthSec_=function(X){return X/1E3||5};
_.H.computeMaxLengthSec_=function(X){return X/1E3||60};
_.H.computeDefaultLengthSec_=function(X){return X/1E3};
_.H.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.H.computeSeekableStart_=function(X,t){return X&&t?X.getProgressState(1).seekableStart:0};
_.H.computeSeekableEnd_=function(X,t){return X&&t?X.getProgressState(1).seekableEnd:0};
_.H.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.H.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.H.onDragState_=function(X){this.set("highlightStart",X.detail.startChanging);this.set("highlightEnd",X.detail.endChanging)};
u0.prototype.onDragState_=u0.prototype.onDragState_;u0.prototype.onEndChanged_=u0.prototype.onEndChanged_;u0.prototype.onStartChanged_=u0.prototype.onStartChanged_;u0.prototype.initializeClipRange_=u0.prototype.initializeClipRange_;u0.prototype.updateInputs_=u0.prototype.updateInputs_;u0.prototype.onSetRange_=u0.prototype.onSetRange_;u0.prototype.onSetFixedLengthRange_=u0.prototype.onSetFixedLengthRange_;
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],u0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],u0.prototype,"data",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],u0.prototype,"start",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],u0.prototype,"startValid",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],u0.prototype,"startWillUpdate",void 0);_.E([_.K({value:30}),_.U("design:type",Number)],u0.prototype,"end",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],u0.prototype,"endValid",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],u0.prototype,"endWillUpdate",void 0);_.E([_.K({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.U("design:type",Number)],u0.prototype,"minLengthSec",void 0);
_.E([_.K({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.U("design:type",Number)],u0.prototype,"maxLengthSec",void 0);_.E([_.K({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.U("design:type",Number)],u0.prototype,"defaultLengthSec",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],u0.prototype,"visible_",void 0);_.E([_.K(),_.U("design:type",Object)],u0.prototype,"player_",void 0);
_.E([_.K({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.U("design:type",Number)],u0.prototype,"seekableStart_",void 0);_.E([_.K({computed:"computeSeekableEnd_(player_, visible_)"}),_.U("design:type",Number)],u0.prototype,"seekableEnd_",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],u0.prototype,"initialized",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],u0.prototype,"disabled",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],u0.prototype,"highlightStart",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],u0.prototype,"highlightEnd",void 0);_.E([_.rt("#start"),_.U("design:type",HTMLInputElement)],u0.prototype,"startInput",void 0);_.E([_.rt("#end"),_.U("design:type",HTMLInputElement)],u0.prototype,"endInput",void 0);
_.E([_.WW("set-fixed-length-range"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],u0.prototype,"onSetFixedLengthRange_",null);_.E([_.WW("set-range"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],u0.prototype,"onSetRange_",null);_.E([_.cW("start","end"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],u0.prototype,"updateInputs_",null);
_.E([_.cW("player_","visible_","seekableStart_","seekableEnd_"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],u0.prototype,"initializeClipRange_",null);_.E([_.cW("start"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],u0.prototype,"onStartChanged_",null);_.E([_.cW("end"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],u0.prototype,"onEndChanged_",null);
_.E([_.WW("clips-drag-state"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],u0.prototype,"onDragState_",null);_.E([_.$F({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],u0);
_.N(u0,"yt-clip-creation-scrubber-renderer",function(){if(Uz_===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Eht===void 0&&(Eht=document.createElement("template"));var y=Eht;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Uz_=X}X=Uz_;return X},{mode:2});var Qz=function(){var X=_.O.apply(this,arguments)||this;X.player_=null;X.JSC$22355_playerEvents=new Map;X.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return X};
_.S(Qz,_.O);_.H=Qz.prototype;_.H.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"}}}};
_.H.created=function(){this.JSC$22355_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22355_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22355_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22355_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.H.detached=function(){this.setPlayer(null)};
_.H.onVisibilityChangedAction_=function(X){var t=this,G;if((G=this.data)==null?0:G.externalVideoId){var y;this.videoId=(y=this.data)==null?void 0:y.externalVideoId}this.getPlayer().then(function(w){if(X.visible)t.returnTime=w.getCurrentTime(),t.isAtLiveHead=w.getProgressState().isAtLiveHead;else{var z=t.returnTime;t.isAtLiveHead&&(z=Number.POSITIVE_INFINITY);w.seekTo(z,void 0,void 0,void 0,51)}})};
_.H.getPlayer=function(){var X=this;if(!this.player_){var t=_.sW();if(t)return t.getPlayerPromise().then(function(G){X.setPlayer(G);return G})}return Promise.resolve(this.player_)};
_.H.setPlayer=function(X){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22355_playerEvents);if(X){this.player_=X;var t;((t=this.data)==null?0:t.externalVideoId)||this.set("videoId",X.getVideoData().video_id||"");var G;(X==null?void 0:(G=X.getPresentingPlayerType)==null?void 0:G.call(X))===2&&(this.set("isAdPlaying",!0),_.sl(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$22355_playerEvents)}};
_.H.ready=function(){_.Sm(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.H.onTitleChanged_=function(X){this.set("titleValue",X.detail.title)};
_.H.onStartChanged_=function(X){this.set("start",X.detail.start)};
_.H.onEndChanged_=function(X){this.set("end",X.detail.end)};
_.H.onTitleValidChanged_=function(X){this.set("titleValid",X.detail.valid)};
_.H.onStartValidChanged_=function(X){this.set("startValid",X.detail.valid)};
_.H.onEndValidChanged_=function(X){this.set("endValid",X.detail.valid)};
_.H.onVideoDataChange_=function(){var X;if((X=this.data)==null||!X.externalVideoId){var t;this.set("videoId",((t=this.player_)==null?void 0:t.getVideoData().video_id)||"")}};
_.H.computeFormValid_=function(X,t,G,y){return!!(X&&t&&G&&y)};
_.H.computeCancelButton_=function(X,t,G){return X&&_.Y(X,_.G4)?{buttonRenderer:Object.assign({},_.Y(X,_.G4),{isDisabled:t||G})}:null};
_.H.computeSubmitButton_=function(X,t,G){return X&&_.Y(X,_.G4)?{buttonRenderer:Object.assign({},_.Y(X,_.G4),{command:void 0,isDisabled:!this.formValid||t||G})}:null};
_.H.computeSubmitCommand_=function(X){return X||null};
_.H.onSubmit_=function(X){var t=this;X.stopPropagation();X.preventDefault();this.submitCommand_&&(X={},X.comment_text=this.titleValue,X.clip_external_video_id=this.videoId,X.clip_offset_ms=parseInt(this.start*1E3,10),X.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.hE(this.hostElement,[this.submitCommand_,X]).then(function(){t.set("isLoading_",!1)},function(){t.set("isLoading_",!1)}))};
_.H.playerAdStartHandler_=function(){_.sl(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.H.playerAdEndHandler_=function(){_.sl(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.H.onVideoProgress_=function(){var X=this;this.getPlayer().then(function(t){var G,y=(t==null?void 0:(G=t.getPresentingPlayerType)==null?void 0:G.call(t))===2;X.isAdPlaying!==y&&(y?X.playerAdStartHandler_():X.playerAdEndHandler_())})};
Qz.prototype.onEndValidChanged_=Qz.prototype.onEndValidChanged_;Qz.prototype.onStartValidChanged_=Qz.prototype.onStartValidChanged_;Qz.prototype.onTitleValidChanged_=Qz.prototype.onTitleValidChanged_;Qz.prototype.onEndChanged_=Qz.prototype.onEndChanged_;Qz.prototype.onStartChanged_=Qz.prototype.onStartChanged_;Qz.prototype.onTitleChanged_=Qz.prototype.onTitleChanged_;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Qz.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",Object)],Qz.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Qz.prototype,"data",void 0);_.E([_.K({value:""}),_.U("design:type",String)],Qz.prototype,"titleValue",void 0);
_.E([_.K({value:!1}),_.U("design:type",Boolean)],Qz.prototype,"titleValid",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],Qz.prototype,"start",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],Qz.prototype,"startValid",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],Qz.prototype,"end",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],Qz.prototype,"endValid",void 0);_.E([_.K({value:""}),_.U("design:type",String)],Qz.prototype,"videoId",void 0);
_.E([_.K({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.U("design:type",Boolean)],Qz.prototype,"formValid",void 0);_.E([_.K({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.U("design:type",Object)],Qz.prototype,"submitButton_",void 0);_.E([_.K({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.U("design:type",Object)],Qz.prototype,"submitCommand_",void 0);
_.E([_.K({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.U("design:type",Object)],Qz.prototype,"cancelButton_",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],Qz.prototype,"isLoading_",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Qz.prototype,"isAdPlaying",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],Qz.prototype,"returnTime",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],Qz.prototype,"isAtLiveHead",void 0);
_.E([_.WW("title-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Qz.prototype,"onTitleChanged_",null);_.E([_.WW("start-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Qz.prototype,"onStartChanged_",null);_.E([_.WW("end-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Qz.prototype,"onEndChanged_",null);
_.E([_.WW("title-valid-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Qz.prototype,"onTitleValidChanged_",null);_.E([_.WW("start-valid-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Qz.prototype,"onStartValidChanged_",null);_.E([_.WW("end-valid-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Qz.prototype,"onEndValidChanged_",null);
_.E([_.$F({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Qz);
_.N(Qz,"yt-clip-creation-renderer",function(){if(PJt===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Noj===void 0&&(Noj=document.createElement("template"));var y=Noj;G.call(t,y.content.cloneNode(!0),X.content.firstChild);PJt=X}X=PJt;return X},{mode:2});var In=function(){return _.O.apply(this,arguments)||this};
_.S(In,_.O);In.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"}}}};
In.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(X){return X.hasOwnProperty("clipCreationRenderer")})&&_.sl(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
In.prototype.onPanelContentVisibleChanged=In.prototype.onPanelContentVisibleChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.JC.YtVisibilityBehavior),_.U("design:type",Object)],In.prototype,"ytVisibilityBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],In.prototype,"ytdReduxBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],In.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],In.prototype,"panelContentVisible",void 0);_.E([_.cW("panelContentVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],In.prototype,"onPanelContentVisibleChanged",null);_.E([_.p({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],In);
_.N(In,"ytd-clip-section-renderer",function(){if(cq_!==void 0)return cq_;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return cq_=X},{mode:1});var Lti;var Wh=function(){return _.O.apply(this,arguments)||this};
_.S(Wh,_.O);_.H=Wh.prototype;
_.H.onKeyDown=function(X){if(this.snippetElements.length!==0&&(X=X.keyCode,X===38||X===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);X===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.MM(this.highlightedIndex,-1,this.snippetElements.length);X=this.snippetElements.length;var t=this.highlightedIndex%X;this.highlightedIndex=t*X<0?t+X:t;X=this.snippetElements[this.highlightedIndex];this.highlightSnippet(X);this.ensureVisible(X)}};
_.H.onKeyUp=function(X){var t=this;zcv(X)&&(X.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.vz.cancelJob(this.inputTimerId),this.inputTimerId=_.vz.addLowPriorityJob(function(){t.typedValue&&(t.fetchSnippets(t.typedValue),t.logInputGesture(t.data))},1E3))};
_.H.onClick=function(X){(X=_.bTq(X.target,null,"snippet-item"))&&this.selectSnippet(X)};
_.H.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.H.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.H.ready=function(){var X=this;this.inputElement.addEventListener("focus",function(){X.snippetsWrapper.style.removeProperty("display")})};
_.H.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.H.getSourceTimelines=function(){if(!this.data)return[];var X=[];if(this.data.searchInVideoSources)for(var t=_.J(this.data.searchInVideoSources),G=t.next();!G.done;G=t.next())G=G.value,G==="SEARCH_IN_VIDEO_SOURCE_ASR"?X.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):G==="SEARCH_IN_VIDEO_SOURCE_OCR"&&X.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return X};
_.H.fetchSnippets=function(X){var t=_.sl(this.hostElement,"yt-get-current-video-id-action")[0],G=this.getSourceTimelines();X={getSearchInVideoCommand:{externalVideoId:t,query:X!=null?X:"",sourceTimelines:G},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}})};
_.H.filterSnippets=function(X,t){var G=this;if(t){this.filteredSnippets=(0,_.RH.unsafeClone)(X);var y=RegExp(_.DoJ(t),"i");this.filteredSnippets=this.filteredSnippets.filter(function(B){return y.test(G.ytRendererBehavior.getSimpleString(B.snippet))});
X=_.J(this.filteredSnippets);for(var w=X.next();!w.done;w=X.next()){w=w.value;var z=this.ytRendererBehavior.getSimpleString(w.snippet);w.snippet={runs:[{text:z.substring(0,z.toLowerCase().indexOf(t))},{text:z.substring(z.toLowerCase().indexOf(t),z.toLowerCase().indexOf(t)+t.length),bold:!0},{text:z.substring(z.toLowerCase().indexOf(t)+t.length,z.length)}]}}}else this.filteredSnippets=X};
_.H.onUpdateSearchInVideoResults=function(X){if(!(this.snippets.length>0)){var t,G,y;if((y=(t=_.Y(X,guN))==null?void 0:(G=t.results)==null?void 0:G.length)!=null&&y){var w;this.filteredSnippets=this.snippets=((w=_.Y(X,guN))==null?void 0:w.results).map(function(z){var B,V,b;return{startMs:z==null?void 0:(B=z.searchInVideoResultRenderer)==null?void 0:B.startMs,startTimeText:z==null?void 0:(V=z.searchInVideoResultRenderer)==null?void 0:V.startTimeText,snippet:z==null?void 0:(b=z.searchInVideoResultRenderer)==
null?void 0:b.snippet}})}}};
_.H.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};
_.H.highlightSnippet=function(X){X.classList.add("highlighted")};
_.H.removeSnippetHighlight=function(X){X.classList.remove("highlighted")};
_.H.selectSnippet=function(X){this.typedValue=String(X.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(X);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.H.ensureVisible=function(X){var t=this.snippetsWrapper.scrollTop,G=t+this.snippetsWrapper.clientHeight,y=X.offsetTop-this.snippetsWrapper.offsetTop;X=y+X.clientHeight;y<t?this.snippetsWrapper.scrollTop-=t-y:X>G&&(this.snippetsWrapper.scrollTop+=X-G)};
_.H.seekPlayer=function(X){var t,G;return _.n(function(y){if(y.nextAddress==1){if(!X)return y.jumpTo(0);t=Number(X.dataset.startOffset);return y.yield(_.DR().getPlayerPromise(),3)}G=y.yieldResult;G.seekTo(t/1E3,!0);G.wakeUpControls();_.W$(y)})};
_.H.logInputGesture=function(X){var t=_.lw();t&&(X==null?0:X.trackingParams)&&_.V1(t,_.i$(X.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.H.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("typed-value-changed",this.typedValue))};
_.H.updateTypedValueFromBinding=function(X){this.typedValue=X.currentTarget.value};
Wh.prototype.typedValueChangedForBinding=Wh.prototype.typedValueChangedForBinding;Wh.prototype.dataChanged=Wh.prototype.dataChanged;Wh.prototype.panelContentVisibleChanged=Wh.prototype.panelContentVisibleChanged;Wh.prototype.onClick=Wh.prototype.onClick;Wh.prototype.onKeyUp=Wh.prototype.onKeyUp;Wh.prototype.onKeyDown=Wh.prototype.onKeyDown;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Wh.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Wh.prototype,"data",void 0);_.E([_.K({value:[]}),_.U("design:type",Array)],Wh.prototype,"snippets",void 0);_.E([_.K({value:[]}),_.U("design:type",Array)],Wh.prototype,"filteredSnippets",void 0);_.E([_.K({value:[]}),_.U("design:type",Array)],Wh.prototype,"snippetElements",void 0);
_.E([_.rt("#siv-input"),_.U("design:type",HTMLElement)],Wh.prototype,"inputElement",void 0);_.E([_.rt("#siv-snippets-wrapper"),_.U("design:type",HTMLElement)],Wh.prototype,"snippetsWrapper",void 0);_.E([_.K(),_.U("design:type",String)],Wh.prototype,"typedValue",void 0);_.E([_.K({value:-1}),_.U("design:type",Number)],Wh.prototype,"highlightedIndex",void 0);_.E([_.WW("keydown"),_.U("design:type",Function),_.U("design:paramtypes",[_.c6]),_.U("design:returntype")],Wh.prototype,"onKeyDown",null);
_.E([_.WW("keyup"),_.U("design:type",Function),_.U("design:paramtypes",[_.c6]),_.U("design:returntype")],Wh.prototype,"onKeyUp",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],Wh.prototype,"onClick",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Wh.prototype,"panelContentVisible",void 0);
_.E([_.cW("panelContentVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Wh.prototype,"panelContentVisibleChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Wh.prototype,"dataChanged",null);_.E([_.cW("typedValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Wh.prototype,"typedValueChangedForBinding",null);
_.E([_.p({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Wh);
_.N(Wh,"ytd-search-in-video-renderer",function(){if(Lti!==void 0)return Lti;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Lti=X},{mode:1});var vhY;var ch=function(){return _.O.apply(this,arguments)||this};
_.S(ch,_.O);ch.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
ch.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]]"}}}}}};
ch.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var X,t,G,y,w=(t=_.Y((X=this.data)==null?void 0:X.onClickCommand,_.PM))==null?void 0:(G=t.item)==null?void 0:(y=G.notificationTextRenderer)==null?void 0:y.successResponseText;w&&_.OM0(this.hostElement,w)}};
_.ke.Object.defineProperties(ch.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y;return this.isProductPlaceholder&&((X=this.data)==null?void 0:(t=X.hiddenProductOptions)==null?void 0:t.showDropCountdown)&&!!((G=this.data)==null?0:(y=G.hiddenProductOptions)==null?0:y.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var X;return!this.isProductPlaceholder&&!((X=this.data)==null?0:X.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null?0:X.priceReplacementText)&&!((t=this.data)==null||!t.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ch.prototype,"componentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ch.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ch.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("isProductPlaceholder"),_.U("design:type",Object),_.U("design:paramtypes",[])],ch.prototype,"useCenterLayoutContainer",null);_.E([_.K({computed:"computeButtonOverride(data)"}),_.U("design:type",Object)],ch.prototype,"buttonOverride",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ch.prototype,"isProductPlaceholder",null);
_.E([_.C("isProductPlaceholder"),_.U("design:type",Object),_.U("design:paramtypes",[])],ch.prototype,"showDropCountdown",null);_.E([_.C("isProductPlaceholder","data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ch.prototype,"showBrandName",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ch.prototype,"showPriceReplacementText",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ch.prototype,"showPrice",null);
_.E([_.C("isProductPlaceholder"),_.U("design:type",Object),_.U("design:paramtypes",[])],ch.prototype,"showMetadata",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],ch);
_.N(ch,"ytd-product-list-item-renderer",function(){if(vhY!==void 0)return vhY;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return vhY=X},{mode:1});var aPM;var pS=function(){return _.O.apply(this,arguments)||this};
_.S(pS,_.O);pS.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
pS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
pS.prototype.panelContentVisibleChanged=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return X.playerApi?G.jumpTo(2):G.yield(_.DR().getPlayerPromise(),3);G.nextAddress!=2&&(X.playerApi=G.yieldResult);(t=X.playerApi)==null||t.productsInVideoVisibilityUpdated(!!X.panelContentVisible);_.W$(G)})};
pS.prototype.panelContentVisibleChanged=pS.prototype.panelContentVisibleChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],pS.prototype,"panelContentVisible",void 0);_.E([_.K(),_.U("design:type",Object)],pS.prototype,"data",void 0);
_.E([_.cW("panelContentVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype",Promise)],pS.prototype,"panelContentVisibleChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],pS);
_.N(pS,"ytd-product-list-renderer",function(){if(aPM!==void 0)return aPM;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return aPM=X},{mode:1});var lPj;var rs=function(){var X=_.O.apply(this,arguments)||this;X.hideTimestamps=!!_.O2("hide-transcript-timestamps");X.currentCueIndex=-1;X.flatCues=[];X.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};X.TEST_ONLY={getFlatCues:function(){return X.flatCues}};
return X};
_.S(rs,_.O);_.H=rs.prototype;_.H.hideTimestampsChanged=function(){_.Ku("hide-transcript-timestamps",this.hideTimestamps)};
_.H.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.H.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.H.dataChanged=function(){var X;if((X=this.data)!=null&&X.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;X=_.J(this.data.cueGroups);for(var t=X.next();!t.done;t=X.next()){t=_.J(_.Y(t.value,FyH).cues);for(var G=t.next();!G.done;G=t.next())this.flatCues.push(Number(_.Y(G.value,TyR).startOffsetMs))}}};
_.H.onYtPlayerTimeChanged=function(X){if(!(X<0)){for(var t=this.currentCueIndex,G=t;;){var y=G>=0?this.flatCues[G]/1E3:-1;if(X+.5<y)--G;else if(y=G+1<this.flatCues.length?this.flatCues[G+1]/1E3:Infinity,X+.5>y)G+=1;else break}G!==t&&(t>=0&&((X=this.getCueElement(t))&&X.classList.remove("active"),(t=this.getCueGroupElement(t))&&t.classList.remove("active")),(t=this.getCueElement(G))&&t.classList.add("active"),(t=this.getCueGroupElement(G))&&t.classList.add("active"),this.currentCueIndex=G,this.isHovered||
this.scrollElementToTop(G))}};
_.H.scrollElementToTop=function(X){X=this.getCueElement(X>=3?X-3:0);this.hostElement.scrollTop=Math.min(X.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.H.getCueElement=function(X){return _.Sm(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[X]+'"]')};
_.H.getCueGroupElement=function(X){return(X=this.getCueElement(X))&&X.parentElement?X.parentElement.parentElement:null};
_.H.onTap=function(X){var t=_.k3(X);X.target.classList.contains("cue")&&this.seekCueElement(t)};
_.H.onKeyPress=function(X){X.keyCode==13&&(X=_.bTq(X.target,null,"cue"))&&this.seekCueElement(X)};
_.H.seekCueElement=function(X){X=Number(X.getAttribute("start-offset"));_.sl(this.hostElement,"yt-transcript-player-seek",[X/1E3])};
_.H.onMouseEnter=function(){this.isHovered=!0};
_.H.onMouseLeave=function(){this.isHovered=!1};
rs.prototype.onMouseLeave=rs.prototype.onMouseLeave;rs.prototype.onMouseEnter=rs.prototype.onMouseEnter;rs.prototype.onKeyPress=rs.prototype.onKeyPress;rs.prototype.onTap=rs.prototype.onTap;rs.prototype.dataChanged=rs.prototype.dataChanged;rs.prototype.hideTimestampsChanged=rs.prototype.hideTimestampsChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],rs.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rs.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],rs.prototype,"hideTimestamps",void 0);_.E([_.K(),_.U("design:type",Boolean)],rs.prototype,"isHovered",void 0);_.E([_.cW("hideTimestamps"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rs.prototype,"hideTimestampsChanged",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rs.prototype,"dataChanged",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],rs.prototype,"onTap",null);_.E([_.WW("keypress"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],rs.prototype,"onKeyPress",null);
_.E([_.WW("mouseenter"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rs.prototype,"onMouseEnter",null);_.E([_.WW("mouseleave"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rs.prototype,"onMouseLeave",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],rs);
_.N(rs,"ytd-transcript-body-renderer",function(){if(lPj!==void 0)return lPj;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return lPj=X},{mode:1});var xzN;var Ny=function(){var X=_.O.apply(this,arguments)||this;X.darkerPanels=_.A("web_watch_darker_panels");return X};
_.S(Ny,_.O);Ny.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ny.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ny.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Ny.prototype,"darkerPanels",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Ny);
_.N(Ny,"ytd-transcript-footer-renderer",function(){if(xzN!==void 0)return xzN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return xzN=X},{mode:1});var fPt;var MYt;var Ph=function(){var X=_.O.apply(this,arguments)||this;X.systemIcons=_.A("kevlar_system_icons");X.showClearButton=!1;return X};
_.S(Ph,_.O);_.H=Ph.prototype;_.H.handleInput=function(X){var t=this;X.target.value.length?_.Jm(this,"ytdTranscriptSearchBoxSearch",function(){t.emitSearchEvent(X)},500):(_.bis(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=X.target.value.length>0};
_.H.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.H.handleClick=function(){var X,t=(X=this.data)==null?void 0:X.trackingParams;t&&_.ug(_.Pj(),t)};
_.H.handleClear=function(){_.bis(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var X,t,G=(t=_.Y((X=this.data)==null?void 0:X.clearButton,_.G4))==null?void 0:t.trackingParams;G&&_.ug(_.Pj(),G);this.clear()};
_.H.emitSearchEvent=function(X){_.Yt(this.hostElement,"yt-transcript-search-box-search",{query:X.target.value});var t,G;(X=(G=_.Y((t=this.data)==null?void 0:t.searchButton,_.G4))==null?void 0:G.trackingParams)&&_.ug(_.Pj(),X)};
_.H.emitClearEvent=function(){_.Yt(this.hostElement,"yt-transcript-search-box-clear")};
_.ke.Object.defineProperties(Ph.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Sm(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ph.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Ph.prototype,"systemIcons",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Ph);
_.N(Ph,"ytd-transcript-search-box-renderer",function(){if(MYt!==void 0)return MYt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return MYt=X},{mode:1});var X4t;var $RM;var ET=function(){return _.O.apply(this,arguments)||this};
_.S(ET,_.O);ET.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var X,t;this.sectionHeaderAriaLabel=(X=this.data)==null?void 0:(t=X.accessibility)==null?void 0:t.accessibilityData.label}};
ET.prototype.fireSelectedEvent=function(X){_.Yt(this.hostElement,"ytd-transcript-section-header",{startMs:X})};
ET.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
ET.prototype.handleKeyPress=function(X){this.data&&X.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.ke.Object.defineProperties(ET.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=(X=this.data)==null?void 0:X.enableTappableTranscriptHeader)!=null?t:!1}}});
ET.prototype.dataChanged=ET.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],ET.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],ET.prototype,"sectionHeaderAriaLabel",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ET.prototype,"enableTappableTranscriptHeader",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ET.prototype,"dataChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],ET);
_.N(ET,"ytd-transcript-section-header-renderer",function(){if($RM!==void 0)return $RM;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return $RM=X},{mode:1});var tq1;var GrY;var UT=function(){var X=_.O.apply(this,arguments)||this;X.isEditMode=!1;X.touchCaptionsEnabled=!1;X.deleteCaptionCorrectionPopupCommand=null;X.voteCaptionCorrectionPopupCommand=null;X.roundedContainer=!0;X.mouseOver=!1;X.textChanged=!1;X.messages={suggest_correction:_.Qf("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Qf("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Qf("submit_correction",void 0,"Submit for review"),cancel_correction:_.Qf("cancel_correction",
void 0,"Cancel"),replay_segment:_.Qf("replay_segment",void 0,"Re-play segment"),delete_correction:_.Qf("delete_correction",void 0,"Delete correction")};X.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return X};
_.S(UT,_.O);_.H=UT.prototype;_.H.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)};
_.H.handleDelete=function(X){if(this.deleteCaptionCorrectionPopupCommand){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);t&&this.ytdOpenPopupBehavior.openPopup(t);X.stopPropagation()}};
_.H.handleSubmit=function(X){if(this.data&&this.data.submitCaptionCorrectionCommand&&(X.stopPropagation(),this.textChanged)){var t;X=(t=_.Y(this.data.submitCaptionCorrectionCommand,_.xWz))==null?void 0:t.params;t=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:X,correctionText:String(this.ironTextAreaElement.value),originalText:_.bu(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(t);this.isEditMode=!1}};
_.H.handleUpdateSegmentText=function(X){(X=_.Y(X,pEN))&&X.targetId&&this.data&&X.targetId===this.data.targetId&&(X.userCorrection&&(this.editedText=X.userCorrection),X.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.bu(this.data.snippet)),X.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=X.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=X.voteCaptionCorrectionPopupCommand?
X.voteCaptionCorrectionPopupCommand:null,X.accessibility&&(this.segmentAriaLabel=X.accessibility.accessibilityData.label))};
_.H.handleCancel=function(X){this.isEditMode=!1;X.stopPropagation();this.logClientVe(159409)};
_.H.handleEditSegmentCommand=function(X){(X=_.Y(X,c54))&&X.targetId&&this.data&&X.targetId===this.data.targetId&&this.handleEdit()};
_.H.handleEditButtonClick=function(X){this.data&&(this.handleEdit(),X.stopPropagation())};
_.H.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var X;(X=this.ironTextAreaElement.textarea)==null||X.focus();this.logClientVe(159407)}};
_.H.handleMouseEnter=function(){this.mouseOver=!0};
_.H.handleMouseLeave=function(){this.mouseOver=!1};
_.H.handleReplay=function(X){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),X.stopPropagation(),this.logClientVe(159408))};
_.H.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()))};
_.H.handleKeypress=function(X){this.data&&(this.isEditMode?X.stopPropagation():this.isEnterPress(X)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(X)&&this.logClientVe(138758))};
_.H.handleTextboxClick=function(X){X.stopPropagation()};
_.H.handleTextboxKeydown=function(X){this.isControlEnterPress(X)?this.handleSubmit(X):X.key==="Escape"&&this.handleCancel(X)};
_.H.handleTextboxKeyup=function(){this.textChanged=_.bu(this.latestText)!==String(this.ironTextAreaElement.value)};
_.H.fireSelectedEvent=function(X){_.Yt(this.hostElement,"yt-transcript-segment-selected",{startMs:X})};
_.H.fireReplayEvent=function(X,t){_.Yt(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(X-100,0),endMs:t})};
_.H.fireEditEvent=function(X,t){_.Yt(this.hostElement,"yt-transcript-segment-edit",{startMs:X,endMs:t})};
_.H.isEnterPress=function(X){return X.key==="Enter"||X.code==="Enter"||X.code==="NumpadEnter"||X.keyCode===13?!0:!1};
_.H.isControlEnterPress=function(X){var t=X.key==="Enter"||X.code==="Enter"||X.code==="NumpadEnter"||X.keyCode===13;return(X.ctrlKey||X.metaKey)&&t};
_.H.isCopyPress=function(X){var t=X.ctrlKey;return X.key==="c"&&t};
_.H.logClick=function(){var X,t=(X=this.data)==null?void 0:X.trackingParams;t&&_.ug(_.Pj(),t)};
_.H.logClientVe=function(X){_.OE(_.Pj(),_.ai(X))};
_.ke.Object.defineProperties(UT.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}}});
UT.prototype.handleMouseLeave=UT.prototype.handleMouseLeave;UT.prototype.handleMouseEnter=UT.prototype.handleMouseEnter;UT.prototype.dataChanged=UT.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],UT.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],UT.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],UT.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],UT.prototype,"isEditMode",void 0);_.E([_.K(),_.U("design:type",Object)],UT.prototype,"touchCaptionsEnabled",void 0);_.E([_.K(),_.U("design:type",Object)],UT.prototype,"editedText",void 0);_.E([_.K(),_.U("design:type",Object)],UT.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.E([_.K(),_.U("design:type",Object)],UT.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.E([_.K(),_.U("design:type",String)],UT.prototype,"segmentAriaLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],UT.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],UT.prototype,"mouseOver",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],UT.prototype,"textChanged",void 0);_.E([_.K(),_.U("design:type",Object)],UT.prototype,"messages",void 0);
_.E([_.rt("#suggestion"),_.U("design:type",Object)],UT.prototype,"ironTextAreaElement",void 0);_.E([_.C("data","editedText"),_.U("design:type",Object),_.U("design:paramtypes",[])],UT.prototype,"latestText",null);_.E([_.C("touchCaptionsEnabled","isEditMode"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],UT.prototype,"enableEditButton",null);
_.E([_.C("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],UT.prototype,"enableUndoButton",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UT.prototype,"dataChanged",null);_.E([_.WW("mouseenter"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UT.prototype,"handleMouseEnter",null);
_.E([_.WW("mouseleave"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],UT.prototype,"handleMouseLeave",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],UT);
_.N(UT,"ytd-transcript-segment-renderer",function(){if(GrY!==void 0)return GrY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return GrY=X},{mode:1});var mB=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};X.isError=!1;X.darkerPanels=_.A("web_watch_darker_panels");X.useParentMaxHeight=_.A("web_watch_transscript_use_parent_max_height");X.segmentOffsets=[];X.segmentIndex=-1;return X};
_.S(mB,_.O);_.H=mB.prototype;_.H.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"}}}}};
_.H.segmentsChanged=function(){this.updateOffsets()};
_.H.onYtPlayerTimeChanged=function(X){for(var t=this.segmentIndex,G=t;;){if(G>=0){var y=this.segmentOffsets[G].start;var w=this.segmentOffsets[G].isAutoScrollable}else y=-1,w=!0;var z=X+.5;if(!w){y=G+1<this.segmentOffsets.length?this.segmentOffsets[G+1].start:Infinity;if(z>=y){G+=1;continue}G=-1;break}if(z<y)y=G-1>=0&&this.segmentOffsets[G-1].isAutoScrollable,w=G===0||y?1:2,G-=w;else if(w=G+1<this.segmentOffsets.length&&this.segmentOffsets[G+1].isAutoScrollable?1:2,y=G+w<this.segmentOffsets.length?
this.segmentOffsets[G+w].start:Infinity,z>y)G+=w;else{if(G<0)break;G<this.segmentOffsets.length&&z>this.segmentOffsets[G].end&&(G=-1);break}}if(t!==G){if(t>=0){var B;(B=this.getSegmentElement(t))==null||B.classList.remove("active")}this.segmentIndex=G;if(!(G<0)){var V;(V=this.getSegmentElement(G))==null||V.classList.add("active");this.isHovered||this.scrollElementToTop(G)}}};
_.H.handleSegmentEdit=function(X){X.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=X.target,_.sl(this.hostElement,"yt-transcript-player-edit",[X.detail.startMs/1E3,X.detail.endMs/1E3]))};
_.H.handleSegmentSelected=function(X){_.sl(this.hostElement,"yt-transcript-player-seek",[X.detail.startMs/1E3])};
_.H.handleSegmentReplay=function(X){_.sl(this.hostElement,"yt-transcript-player-replay",[X.detail.startMs/1E3,X.detail.endMs/1E3])};
_.H.handleSectionHeaderSelected=function(X){_.sl(this.hostElement,"yt-transcript-player-seek",[X.detail.startMs/1E3])};
_.H.onMouseEnter=function(){this.isHovered=!0};
_.H.onMouseLeave=function(){this.isHovered=!1};
_.H.onRetryButtonClick=function(){_.Yt(this.hostElement,"transcript-retry-button-click")};
_.H.getSegmentElement=function(X){return _.Sm(this.hostElement).querySelector(":nth-child("+(X+1)+")")};
_.H.scrollElementToTop=function(X){X=this.getSegmentElement(X>=2?X-2:0);this.hostElement.scrollTop=Math.min(X.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.H.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(X){var t,G=(t=X.transcriptSegmentRenderer)!=null?t:X.transcriptSectionHeaderRenderer;return{start:Number(G.startMs)/1E3,end:Number(G.endMs)/1E3,isAutoScrollable:X.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.H.clearHighlightedSegments=function(){var X=_.Sm(this.hostElement);X=_.J(X.querySelectorAll("ytd-transcript-segment-renderer"));for(var t=X.next();!t.done;t=X.next())t.value.classList.remove("active")};
_.ke.Object.defineProperties(mB.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:X.searchResultSegments)||((t=this.data)==null?void 0:t.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
mB.prototype.onMouseLeave=mB.prototype.onMouseLeave;mB.prototype.onMouseEnter=mB.prototype.onMouseEnter;mB.prototype.handleSectionHeaderSelected=mB.prototype.handleSectionHeaderSelected;mB.prototype.handleSegmentReplay=mB.prototype.handleSegmentReplay;mB.prototype.handleSegmentSelected=mB.prototype.handleSegmentSelected;mB.prototype.handleSegmentEdit=mB.prototype.handleSegmentEdit;mB.prototype.segmentsChanged=mB.prototype.segmentsChanged;
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],mB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mB.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],mB.prototype,"isError",void 0);
_.E([_.K(),_.U("design:type",Object)],mB.prototype,"noResultLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mB.prototype,"darkerPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mB.prototype,"useParentMaxHeight",void 0);_.E([_.C("data"),_.U("design:type",Array),_.U("design:paramtypes",[])],mB.prototype,"segments",null);
_.E([_.C("segments","noResultLabel"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],mB.prototype,"displayNoResults",null);_.E([_.cW("segments"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],mB.prototype,"segmentsChanged",null);_.E([_.WW("yt-transcript-segment-edit"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],mB.prototype,"handleSegmentEdit",null);
_.E([_.WW("yt-transcript-segment-selected"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],mB.prototype,"handleSegmentSelected",null);_.E([_.WW("yt-transcript-segment-replay"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],mB.prototype,"handleSegmentReplay",null);
_.E([_.WW("ytd-transcript-section-header"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],mB.prototype,"handleSectionHeaderSelected",null);_.E([_.WW("mouseenter"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],mB.prototype,"onMouseEnter",null);_.E([_.WW("mouseleave"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],mB.prototype,"onMouseLeave",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],mB);
_.N(mB,"ytd-transcript-segment-list-renderer",function(){if(tq1!==void 0)return tq1;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return tq1=X},{mode:1});var Rn=function(){var X=_.O.apply(this,arguments)||this;X.hideTimestamps=!!_.O2("hide-transcript-timestamps");X.isLoadingTranscripts=!1;X.darkerPanels=_.A("web_watch_darker_panels");X.isError=!1;X.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return X};
_.S(Rn,_.O);_.H=Rn.prototype;_.H.headerChanged=function(){var X,t;this.baseGetTranscriptsCommand=(t=_.Y((X=this.data)==null?void 0:X.header,r52))==null?void 0:t.onTextChangeCommand};
_.H.bodyChanged=function(){var X=this.getBodyRenderer();X&&(X.initialSegments&&(this.initialTranscriptsRenderer=X),X.noResultLabel&&(this.noResultLabel=X.noResultLabel),X.retryLabel&&(this.retryLabel=X.retryLabel))};
_.H.detached=function(){this.clearSearchBoxText()};
_.H.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.H.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"}}}};
_.H.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.H.fireSearch=function(X){var t=this;if(X){var G=X.detail.query;if(this.baseGetTranscriptsCommand){var y;X=(y=_.Y(this.baseGetTranscriptsCommand,_.Kpq))==null?void 0:y.params;var w;y=_.Y((w=this.data)==null?void 0:w.footer,A52);var z;if((w=(z=_.Y(y==null?void 0:y.languageMenu,QfH))==null?void 0:z.subMenuItems)&&w.length>0&&(z=w.find(function(b){return b.selected}))){var B,V;
X=(B=z.continuation)==null?void 0:(V=B.reloadContinuationData)==null?void 0:V.continuation}B=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:X,searchQuery:G}});this.ytComponentBehavior.resolveCommand(B,{commandController:{onServerError:function(){t.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});y5T(this.ytContinuationHandlerBehavior,function(){return G===t.getCurrentSearchBoxText()})}}};
_.H.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.H.onRetryButtonClick=function(){this.isError=!1;var X={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:X}))};
_.H.hideTimestampsChanged=function(){_.Ku("hide-transcript-timestamps",this.hideTimestamps)};
_.H.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.H.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.H.handleSignalActionCopyTranscript=function(){var X=this,t=this.getBodyRenderer();t&&(t=((t==null?void 0:t.searchResultSegments)||(t==null?void 0:t.initialSegments)||[]).map(function(G){return _.Y(G,PqH)}).filter(function(G){return!!G}).map(function(G){return{snippet:G.snippet||{runs:[{text:""}]},
startTimeText:G.startTimeText||{simpleText:""}}}).map(function(G){var y=(G.snippet.runs||[]).reduce(function(w,z){return w+z.text},"");
return X.hideTimestamps?y:G.startTimeText.simpleText+" "+y}).join("\n"),this.copyToClipboard(t))};
_.H.copyToClipboard=function(X){navigator.clipboard&&navigator.clipboard.writeText(X)};
_.H.getCurrentSearchBoxText=function(){var X;return(X=this.searchBox)==null?void 0:X.value};
_.H.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.H.getBodyRenderer=function(){var X;return _.Y((X=this.data)==null?void 0:X.body,NyH)};
_.H.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.ke.Object.defineProperties(Rn.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Sm(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Rn.prototype.hideTimestampsChanged=Rn.prototype.hideTimestampsChanged;Rn.prototype.searchCleared=Rn.prototype.searchCleared;Rn.prototype.fireSearch=Rn.prototype.fireSearch;Rn.prototype.onReloadContinuationFinish=Rn.prototype.onReloadContinuationFinish;Rn.prototype.bodyChanged=Rn.prototype.bodyChanged;Rn.prototype.headerChanged=Rn.prototype.headerChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Rn.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],Rn.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Rn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Rn.prototype,"hideTimestamps",void 0);
_.E([_.K(),_.U("design:type",Object)],Rn.prototype,"isLoadingTranscripts",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Rn.prototype,"darkerPanels",void 0);_.E([_.K(),_.U("design:type",Object)],Rn.prototype,"isError",void 0);_.E([_.cW("data.header"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rn.prototype,"headerChanged",null);
_.E([_.U0("data.body"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rn.prototype,"bodyChanged",null);_.E([_.WW("yt-reload-continuation-finish"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rn.prototype,"onReloadContinuationFinish",null);_.E([_.WW("yt-transcript-search-box-search"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],Rn.prototype,"fireSearch",null);
_.E([_.WW("yt-transcript-search-box-clear"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rn.prototype,"searchCleared",null);_.E([_.cW("hideTimestamps"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rn.prototype,"hideTimestampsChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Rn);
_.N(Rn,"ytd-transcript-search-panel-renderer",function(){if(X4t!==void 0)return X4t;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return X4t=X},{mode:1});var i0=function(){var X=_.O.apply(this,arguments)||this;X.player=null;X.playerPollJobId=0;return X};
_.S(i0,_.O);_.H=i0.prototype;_.H.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.H.onLoadReloadContinuation=function(X){_.A("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:X.target.data.continuation}}):(X={clickTrackingParams:X.target.data.clickTrackingParams,getTranscriptEndpoint:{params:X.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}}))};
_.H.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"}}}};
_.H.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.H.attached=function(){this.updatePlayerListening()};
_.H.detached=function(){this.updatePlayerListening()};
_.H.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.H.startPlayerListening=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return(t=_.sW())?G.yield(t.getPlayerPromise(),2):G.return();X.player=G.yieldResult;X.playerPollJobId=_.vz.addLowPriorityJob(function(){X.getPlayerVideoProgress()},1E3);
X.player.addEventListener("onCueRangeEnter",function(y){X.onCueRangeEnter(y)});
X.player.addEventListener("onCueRangeExit",function(y){X.onCueRangeExit(y)});
X.player.addEventListener("onStateChange",function(y){X.onPlayerStateChange(y)});
X.player.addEventListener("SEEK_TO",function(y){X.onPlayerSeek(y)});
_.W$(G)})};
_.H.getPlayerVideoProgress=function(){var X=this;_.vz.cancelJob(this.playerPollJobId);if(this.player){var t=this.player.getCurrentTime();_.sl(this.hostElement,"yt-player-time-changed",[t])}this.playerPollJobId=_.vz.addLowPriorityJob(function(){X.getPlayerVideoProgress()},1E3)};
_.H.stopPlayerListening=function(){this.player=null;_.vz.cancelJob(this.playerPollJobId)};
_.H.onPlayerStateChange=function(X){X===2&&this.removePendingCue()};
_.H.onPlayerSeek=function(X){var t;if(t=this.pendingReplayCueId)t=this.pendingReplayCueId,t=X===(_.A("web_transcript_cue_id_killswitch")?Number(t):Number(t.split("_")[1]));t||this.removePendingCue()};
_.H.onCueRangeEnter=function(X){C02(X)&&(this.pendingReplayCueId=X)};
_.H.onCueRangeExit=function(X){C02(X)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.H.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.H.onYtTranscriptPlayerSeek=function(X){this.player&&this.player.seekTo(X,!0)};
_.H.onYtTranscriptPlayerReplay=function(X,t){this.player&&(this.player.addCueRange(qTa(X),X,t),this.player.seekTo(X,!0),this.player.playVideo())};
_.H.onYtTranscriptPlayerEdit=function(X,t){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(qTa(X),X,t),this.player.seekTo(X,!0))};
i0.prototype.onLoadReloadContinuation=i0.prototype.onLoadReloadContinuation;i0.prototype.panelContentVisibleChanged=i0.prototype.panelContentVisibleChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],i0.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],i0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],i0.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],i0.prototype,"panelContentVisible",void 0);_.E([_.cW("panelContentVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],i0.prototype,"panelContentVisibleChanged",null);
_.E([_.WW("yt-load-reload-continuation"),_.U("design:type",Function),_.U("design:paramtypes",[Object]),_.U("design:returntype")],i0.prototype,"onLoadReloadContinuation",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],i0);
_.N(i0,"ytd-transcript-renderer",function(){if(fPt!==void 0)return fPt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return fPt=X},{mode:1});var yQY;var w4N;var LS=function(){return _.O.apply(this,arguments)||this};
_.S(LS,_.O);LS.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Z0(this.hostElement,[this.data.clickCommand],this.hostElement))};
LS.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.$R)()+_.Wg)+"px)"};
LS.prototype.updateShouldHideFromBinding=function(X){this.shouldHide=X.detail.value};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],LS.prototype,"rendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],LS.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],LS.prototype,"shouldHide",void 0);_.E([_.p({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],LS);
_.N(LS,"ytd-ad-engagement-panel-banner-renderer",function(){if(w4N!==void 0)return w4N;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return w4N=X},{mode:_.Cz("kevlar_poly_si_batch_j070")?1:2});var zvg;var vh=function(){var X=_.O.apply(this,arguments)||this;X.modernPanels=_.A("kevlar_watch_modern_panels");X.buttonUpdate=_.A("web_modern_buttons");X.adsSemanticText=_.A("enable_ads_web_ep_buenos_aires_and_padding_fix");return X};
_.S(vh,_.O);vh.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.E([_.K(),_.U("design:type",Object)],vh.prototype,"data",void 0);_.E([_.K({computed:"computeHideDefaultAdBadge(data)"}),_.U("design:type",Boolean)],vh.prototype,"hideDefaultAdBadge",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vh.prototype,"modernPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vh.prototype,"buttonUpdate",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vh.prototype,"adsSemanticText",void 0);
_.E([_.p({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],vh);
_.N(vh,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(zvg!==void 0)return zvg;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return zvg=X},{mode:1});var HTt;var an=function(){var X=_.O.apply(this,arguments)||this;X.darkerPanels=_.A("web_watch_darker_panels");X.enableSqueezebackPanels=_.A("web_shorts_enable_squeezeback_panels");X.enableAnchoredPanel=_.A("desktop_shorts_v2_anchored_panel");X.modernPanels=_.A("kevlar_watch_modern_panels");X.headerClickListener=function(t){X.onHeaderClick(t)};
X.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return X};
_.S(an,_.O);_.H=an.prototype;_.H.computeAdsInfoButton=function(){if(_.A("web_modern_buttons")){var X,t;return(t=_.Y((X=this.data)==null?void 0:X.subtitleComplex,YXv))==null?void 0:t.adInfoRenderer}};
_.H.updateHeaderClickListener=function(){var X,t,G;((X=this.data)==null?0:X.navigationEndpoint)||((t=this.data)==null?0:t.onClickCommand)||_.Y((G=this.data)==null?void 0:G.visibilityButton,_.yq)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.H.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}}}}}};
_.H.collapsedChanged=function(){var X;(X=this.data)!=null&&X.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.A("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.H.focus=function(X){var t=this;this.titleElement&&_.vz.addJob(function(){_.VG(t.titleElement,X)},0,500)};
_.H.computeTitleAriaLabel=function(X){var t=[];if(X.title){var G,y;t.push(this.ytRendererBehavior.getSimpleString(X.title)||((G=X.title.accessibility)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label))}X.contextualInfo&&t.push(this.ytRendererBehavior.getSimpleString(X.contextualInfo));return t.join(" ")};
_.H.onHeaderClick=function(X){this.shouldTriggerHeaderClick(X)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Z0(this.hostElement,[this.data.onClickCommand],this.hostElement)):(X=this.getVisibilityToggleButton())&&X.click())};
_.H.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var X=_.Y(this.data.visibilityButton,_.G4)||_.Y(this.data.visibilityButton,_.yq);X&&this.ytRendererBehavior.logExplicitClick(X)}};
_.H.getVisibilityToggleButton=function(){var X=_.Sm(this.hostElement).querySelector("#visibility-button").firstElementChild;return(X==null?void 0:X.is)==="ytd-toggle-button-renderer"?X:null};
_.H.shouldTriggerHeaderClick=function(X){return!_.Fa(_.be(X),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.H.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(X){X=_.Y(X,_.b2Q);this.targetId&&(X==null?void 0:X.targetId)===this.targetId&&(X=X.navigationButton)&&this.set("data.navigationButton",X)};
_.ke.Object.defineProperties(an.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.A("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var X;return!!(((X=this.entity)==null?0:X.isActionButtonHidden)||this.hideActionButton)}}});
an.prototype.collapsedChanged=an.prototype.collapsedChanged;an.prototype.updateHeaderClickListener=an.prototype.updateHeaderClickListener;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],an.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],an.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],an.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],an.prototype,"targetId",void 0);_.E([_.K(),_.U("design:type",Boolean)],an.prototype,"collapsed",void 0);_.E([_.K(),_.U("design:type",Boolean)],an.prototype,"hideActionButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],an.prototype,"shortsPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],an.prototype,"liveChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],an.prototype,"learningChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],an.prototype,"darkerPanels",void 0);_.E([_.rt("#title"),_.U("design:type",HTMLElement)],an.prototype,"titleElement",void 0);_.E([_.rt("#header"),_.U("design:type",HTMLElement)],an.prototype,"headerElement",void 0);
_.E([_.K({computed:"computeAdsInfoButton(data)"}),_.U("design:type",Object)],an.prototype,"adsInfoButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],an.prototype,"enableSqueezebackPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],an.prototype,"enableAnchoredPanel",void 0);_.E([_.K({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(X,t){return _.Kg(X.entities,"engagementPanelTitleHeaderEntity",t)}}),
_.U("design:type",Object)],an.prototype,"entity",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],an.prototype,"modernPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("targetId"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],an.prototype,"adsSemanticText",null);_.E([_.cW("data","data.navigationEndpoint","data.onClickCommand"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],an.prototype,"updateHeaderClickListener",null);
_.E([_.U0("collapsed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],an.prototype,"collapsedChanged",null);_.E([_.C("entity","hideActionButton"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],an.prototype,"isActionButtonHidden",null);_.E([_.p({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],an);
_.N(an,"ytd-engagement-panel-title-header-renderer",function(){if(HTt!==void 0)return HTt;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return HTt=X},{mode:1});var oVg;var l0=function(){return _.O.apply(this,arguments)||this};
_.S(l0,_.O);l0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],l0.prototype,"data",void 0);_.E([_.p({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],l0);
_.N(l0,"ytd-macro-markers-info-item-renderer",function(){if(oVg!==void 0)return oVg;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return oVg=X},{mode:1});var JQY;var Vqt=function(X,t,G,y,w,z){_.po.call(this);var B=this;this.JSC$22457_containerElement=X;this.hostElement=t;this.supportedSyncItems=G;this.syncEntityKey=y;this.options=w;this.renderLazyListItems=z;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;BiN(this);nVN(this);this.JSC$22457_scrollAnimation=new _.yS(function(V){X.scrollTop=V});
_.h6(this,this.JSC$22457_scrollAnimation);this.addOnDisposeCallback(function(){B.exitBrowsingMode(!1);B.activeItem&&B.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.S(Vqt,_.po);var BiN=function(X){var t=_.rz(_.gw().resolve(_.Gw),function(G){return G.entities.markersEngagementPanelSyncEntity||{}},function(G,y){var w;
G[X.syncEntityKey]!==y[X.syncEntityKey]&&((w=G[X.syncEntityKey])==null?void 0:w.activeItemIndex)!==void 0&&X.updatePanelActiveItem(G[X.syncEntityKey].activeItemIndex)});
X.unsubscribeFromTimedMarkersListSyncEntity=t;X.addOnDisposeCallback(t);bTi(X)},bTi=function(X){var t=_.gw().resolve(_.Gw);
t=_.kUA(t.getState(),X.syncEntityKey);(t==null?void 0:t.activeItemIndex)!==void 0&&(t=X.getItemByIndex(t.activeItemIndex))&&X.setActiveItem(t)},nVN=function(X){var t=new _.d2(X.onScroll,50,X);
_.h6(X,t);var G=function(){t.fire()};
X.JSC$22457_containerElement.addEventListener("scroll",G);X.addOnDisposeCallback(function(){X.JSC$22457_containerElement.removeEventListener("scroll",G)})};
_.H=Vqt.prototype;
_.H.updatePanelActiveItem=function(X){var t=this.getItemByIndex(X);if(t){if(this.setActiveItem(t),this.contentVisible)if(this.browsingMode){var G;((G=this.options)==null?void 0:G.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(X=krt(this),t.offsetTop<this.JSC$22457_containerElement.clientHeight+this.JSC$22457_containerElement.scrollTop&&X&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));dRW(this)}else this.scrollToItem(t)}else _.Mj(new _.NJ("Could not find "+this.supportedSyncItems+
" sync child to set active.",X,this.JSC$22457_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.H.getItemByIndex=function(X){var t;(t=this.renderLazyListItems)==null||t.call(this,X);t=this.JSC$22457_containerElement.querySelectorAll(this.supportedSyncItems);if(t.length>X)return t[X]};
_.H.setActiveItem=function(X){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));X.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=X};
_.H.scrollToItem=function(X){X=this.getScrollPositionForItem(X);this.JSC$22457_containerElement.scrollTop!==X&&this.JSC$22457_scrollAnimation.start(this.JSC$22457_containerElement.scrollTop,X,300)};
_.H.getScrollPositionForItem=function(X){if(this.JSC$22457_containerElement.querySelectorAll(this.supportedSyncItems)[0]===X)return 0;var t,G=((t=this.options)==null?0:t.percentOffset)?this.JSC$22457_containerElement.clientHeight*this.options.percentOffset:0;X=_.lG(X).y+this.JSC$22457_containerElement.scrollTop-(_.lG(this.JSC$22457_containerElement).y+G);return Math.max(0,Math.min(X,this.JSC$22457_containerElement.scrollHeight-this.JSC$22457_containerElement.offsetHeight))};
_.H.onScroll=function(){this.activeItemBelowSyncPosition=krt(this);if(this.activeItem&&!this.JSC$22457_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22457_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var X;switch((X=this.options)==null?void 0:X.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!ev1(this));dRW(this);break;default:this.enterBrowsingMode(!0)}}};
_.H.enterBrowsingMode=function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1){if(t.browsingMode)return w.return();t.browsingMode=!0;X&&t.hostElement.classList.add("browsing-mode");t.playerExitBrowsingModeListener=function(){t.exitBrowsingMode(!1)};
return w.yield(_.uX(),2)}G=w.yieldResult;(y=G)==null||y.addEventListener("SEEK_TO",t.playerExitBrowsingModeListener);_.W$(w)})};
_.H.exitBrowsingMode=function(X){X=X===void 0?!0:X;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),X&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.H.removePlayerSeekListener=function(){var X=this,t,G;return _.n(function(y){if(y.nextAddress==1)return X.playerExitBrowsingModeListener?y.yield(_.uX(),3):y.jumpTo(0);t=y.yieldResult;(G=t)==null||G.removeEventListener("SEEK_TO",X.playerExitBrowsingModeListener);X.playerExitBrowsingModeListener=void 0;_.W$(y)})};
var dRW=function(X){var t;((t=X.options)==null?void 0:t.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(ev1(X)?X.hostElement.classList.remove("browsing-mode"):X.activeItem&&X.hostElement.classList.add("browsing-mode"))},krt=function(X){if(!X.activeItem)return!1;
var t,G=((t=X.options)==null?0:t.percentOffset)?X.JSC$22457_containerElement.clientHeight*X.options.percentOffset:0;return X.activeItem.offsetTop>=X.JSC$22457_containerElement.scrollTop+G},ev1=function(X){if(!X.activeItem)return!1;
var t=X.activeItem.offsetTop+14<=X.JSC$22457_containerElement.scrollTop+X.JSC$22457_containerElement.clientHeight;return X.activeItem.offsetTop+X.activeItem.clientHeight-14>=X.JSC$22457_containerElement.scrollTop&&t};
Vqt.prototype.panelContentVisibleChanged=function(X){(this.contentVisible=X)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var jNW=function(X,t){X.syncEntityKey=t;var G;(G=X.unsubscribeFromTimedMarkersListSyncEntity)==null||G.call(X);BiN(X)},gVk=function(X,t){X.options=t};var xa=function(){var X=_.O.apply(this,arguments)||this;X.browsingMode=!1;X.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return X};
_.S(xa,_.O);_.H=xa.prototype;_.H.activeItemChanged=function(){if(!_.A("synced_panel_scrolling_controller")){var X;((X=this.syncEntity)==null?void 0:X.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.H.created=function(){var X=this;_.A("synced_panel_scrolling_controller")||(this.JSC$22461_scrollAnimation=new _.yS(function(t){X.contents.scrollTop=t}),this.boundExitBrowsingMode=function(){X.exitBrowsingMode(!1)})};
_.H.detached=function(){if(_.A("synced_panel_scrolling_controller")){var X;(X=this.scrollController)==null||X.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.H.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"}}}};
_.H.dataChanged=function(){var X=this;_.A("synced_panel_scrolling_controller")?_.V8(this,function(){if(X.scrollController){var t;(t=X.scrollController)==null||t.exitBrowsingMode(!1);var G,y,w;(y=X.scrollController)==null||jNW(y,(w=(G=X.data)==null?void 0:G.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key");var z,B,V;(V=X.scrollController)==null||gVk(V,{percentOffset:(z=X.data)==null?void 0:z.selectedItemAlignmentPercentOffset,floatingPillType:(B=X.data)==null?void 0:B.floatingPillType})}else{var b,
e,g,F;X.scrollController=new Vqt(X.contents,X.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(F=(b=X.data)==null?void 0:b.syncModelEntityKey)!=null?F:"default-macro-markers-list-renderer-entity-key",{percentOffset:(e=X.data)==null?void 0:e.selectedItemAlignmentPercentOffset,floatingPillType:(g=X.data)==null?void 0:g.floatingPillType},function(T){X.renderLazyListItems(T)})}X.scrollController.panelContentVisibleChanged(!!X.panelContentVisible)}):this.exitBrowsingMode()};
_.H.computeButtonShape=function(){var X=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){X.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.H.computeSyncEnabled=function(X){return!(X==null||!X.syncButtonLabel)};
_.H.renderLazyListItems=function(X){for(var t=this.contents.children,G=0,y=0;y<t.length;y++){var w=void 0;(w=t[y].ytLazyListBehavior)==null||w.fillRemainingListItems();var z=void 0,B=void 0;w=_.Y((z=this.data)==null?void 0:(B=z.contents)==null?void 0:B[y],_.I9h);B=z=void 0;if((z=w)==null?0:(B=z.contents)==null?0:B.length)G+=w.contents.length;if(G>=X)break}};
_.H.getItemByIndex=function(X){this.renderLazyListItems(X);var t=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(t.length>X)return t[X]};
_.H.setActiveItem=function(X){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);X.active!==void 0&&(X.active=!0);this.currentActiveItem=X};
_.H.handleSetActivePanelItemAction=function(X){if((X=_.Y(X,du2))&&this.panelTargetId===X.panelTargetId){X=X.itemIndex;if(_.A("synced_panel_scrolling_controller")){var t,G;var y=(G=(t=this.data)==null?void 0:t.syncModelEntityKey)!=null?G:"default-macro-markers-list-renderer-entity-key"}else{var w;y=(w=this.data)==null?void 0:w.syncModelEntityKey}if(y){var z;((z=this.syncEntity)==null?void 0:z.activeItemIndex)!==X&&this.ytdReduxBehavior.dispatch(_.EW("markersEngagementPanelSyncEntity",y,{key:y,activeItemIndex:X}))}else this.updatePanelActiveItem(X)}};
_.H.updatePanelActiveItem=function(X){var t=this.getItemByIndex(X);t?(this.setActiveItem(t),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(t)):_.Mj(new _.NJ("Could not find ytd-macro-markers-list-renderer sync child to set active.",X,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.H.scrollToItem=function(X){X=this.getScrollPositionForItem(X);this.contents.scrollTop!==X&&this.JSC$22461_scrollAnimation.start(this.contents.scrollTop,X,300)};
_.H.getScrollPositionForItem=function(X){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===X)return 0;X=_.lG(X).y+this.contents.scrollTop-_.lG(this.contents).y-this.getStickyHeaderHeight(X);return Math.min(X,this.contents.scrollHeight-this.contents.offsetHeight)};
_.H.getStickyHeaderHeight=function(X){if(X.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var t,G,y;return(y=(t=X.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(G=t.header)==null?void 0:G.offsetHeight)!=null?y:0}return 0};
_.H.onScroll=function(){_.A("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22461_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.H.enterBrowsingMode=function(){var X=this;return _.n(function(t){if(t.nextAddress==1){if(X.browsingMode)return t.return();X.browsingMode=!0;return t.yield(_.DR().getPlayerPromise(),2)}X.player=t.yieldResult;X.player.addEventListener("SEEK_TO",X.boundExitBrowsingMode);_.W$(t)})};
_.H.exitBrowsingMode=function(X){this.browsingMode&&(this.browsingMode=!1,(X===void 0||X)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.H.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.H.onSyncClick=function(){if(_.A("synced_panel_scrolling_controller")){var X;(X=this.scrollController)==null||X.exitBrowsingMode()}else this.exitBrowsingMode()};
_.H.panelContentVisibleChanged=function(){if(_.A("synced_panel_scrolling_controller")){var X;(X=this.scrollController)==null||X.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
xa.prototype.panelContentVisibleChanged=xa.prototype.panelContentVisibleChanged;xa.prototype.dataChanged=xa.prototype.dataChanged;xa.prototype.activeItemChanged=xa.prototype.activeItemChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],xa.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],xa.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xa.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],xa.prototype,"useCustomColors",void 0);_.E([_.K({computed:"computeSyncEnabled(data)"}),_.U("design:type",Boolean)],xa.prototype,"syncEnabled",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],xa.prototype,"panelTargetId",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],xa.prototype,"panelContentVisible",void 0);_.E([_.rt("#contents"),_.U("design:type",HTMLElement)],xa.prototype,"contents",void 0);_.E([_.rt("#sync-container"),_.U("design:type",HTMLElement)],xa.prototype,"syncContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xa.prototype,"browsingMode",void 0);
_.E([_.K({selectorArgs:["data.syncModelEntityKey"],selector:_.kUA}),_.U("design:type",Object)],xa.prototype,"syncEntity",void 0);_.E([_.cW("syncEntity.activeItemIndex"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xa.prototype,"activeItemChanged",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xa.prototype,"dataChanged",null);
_.E([_.cW("panelContentVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xa.prototype,"panelContentVisibleChanged",null);_.E([_.p({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],xa);
_.N(xa,"ytd-macro-markers-list-renderer",function(){if(JQY!==void 0)return JQY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return JQY=X},{mode:1});var Fat;var fS=function(){return _.O.apply(this,arguments)||this};
_.S(fS,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],fS.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],fS.prototype,"data",void 0);_.E([_.p({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],fS);
_.N(fS,"ytd-error-corrections-section-item-renderer",function(){if(Fat!==void 0)return Fat;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Fat=X},{mode:1});var Tig;var My=function(){return _.O.apply(this,arguments)||this};
_.S(My,_.O);My.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],My.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],My.prototype,"data",void 0);_.E([_.p({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],My);
_.N(My,"ytd-error-corrections-section-renderer",function(){if(Tig!==void 0)return Tig;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Tig=X},{mode:1});var AQM;var XI=function(){return _.O.apply(this,arguments)||this};
_.S(XI,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],XI.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],XI.prototype,"data",void 0);_.E([_.p({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],XI);
_.N(XI,"ytd-topic-link-renderer",function(){if(AQM!==void 0)return AQM;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return AQM=X},{mode:1});var YRi;var $u=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("kevlar_modern_sd_v2");X.modernLockupV2=_.A("modernize_structured_description_playlist_lockups_v2");X.modernTypography=_.A("web_modern_typography");return X};
_.S($u,_.O);$u.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$u.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],$u.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],$u.prototype,"modernLockupV2",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],$u.prototype,"modernTypography",void 0);_.E([_.p({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],$u);
_.N($u,"ytd-video-description-course-section-renderer",function(){if(YRi!==void 0)return YRi;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return YRi=X},{mode:1});var sNt;var t5=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("kevlar_modern_sd_v2");X.modernTypography=_.A("web_modern_typography");return X};
_.S(t5,_.O);t5.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],t5.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],t5.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],t5.prototype,"modernTypography",void 0);
_.E([_.p({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],t5);
_.N(t5,"ytd-video-description-files-section-renderer",function(){if(sNt!==void 0)return sNt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return sNt=X},{mode:1});var DRt;var Gf=function(){return _.O.apply(this,arguments)||this};
_.S(Gf,_.O);Gf.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Gf.prototype,"data",void 0);_.E([_.p({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Gf);
_.N(Gf,"ytd-video-description-gaming-section-renderer",function(){if(DRt!==void 0)return DRt;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return DRt=X},{mode:1});var SR1;var yx=function(){var X=_.O.apply(this,arguments)||this;X.isExpanded=!1;return X};
_.S(yx,_.O);yx.prototype.computeHasDefaultMetadataEndpoint=function(X){var t;X=X==null?void 0:(t=X.defaultMetadata)==null?void 0:t.runs;return!(!X||X.length!==1||!X[0].navigationEndpoint)};
yx.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.ke.Object.defineProperties(yx.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],yx.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],yx.prototype,"isExpanded",void 0);_.E([_.K({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],yx.prototype,"hasDefaultMetadataEndpoint",void 0);
_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],yx.prototype,"isExpandable",null);_.E([_.C("data","isExpandable","isExpanded"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],yx.prototype,"showExpandedMetadata",null);_.E([_.p({is:"ytd-info-row-renderer",disableElementRegistration:!0})],yx);
_.N(yx,"ytd-info-row-renderer",function(){if(SR1!==void 0)return SR1;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return SR1=X},{mode:1});var hvN;var wy=function(){var X=_.O.apply(this,arguments)||this;X.currentIndex=0;X.supportComponentResize=!0;X.modern=_.A("kevlar_modern_sd_v2");X.JSC$22487_lastScrollContainerWidth=NaN;return X};
_.S(wy,_.O);_.H=wy.prototype;
_.H.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"}}}};
_.H.getItemsPath=function(){return"videoLockups"};
_.H.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.H.onIronResize=function(){this.updateVideoLockupStyles()};
_.H.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.H.updateVideoLockupStyles=function(){var X;this.JSC$22487_scrollContainer!==void 0&&(X=this.videoLockups)!=null&&X.length&&(X=this.JSC$22487_scrollContainer.clientWidth,X!==this.JSC$22487_lastScrollContainerWidth&&(this.JSC$22487_lastScrollContainerWidth=X,_.Kd(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(X*.8,415)+"px"}),_.Yt(this.hostElement,"iron-resize")))};
_.ke.Object.defineProperties(wy.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var X=[],t;if((t=this.data)==null||!t.carouselLockups)return X;t=_.J(this.data.carouselLockups);for(var G=t.next();!G.done;G=t.next()){G=G.value;var y=void 0;((y=_.Y(G,RcQ))==null?0:y.videoLockup)&&X.push(_.Y(G,RcQ).videoLockup)}return X}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.videoLockups)==null||!X.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var X=[],t;if((t=this.data)==null||!t.carouselLockups)return X;var G;return(G=_.Y(this.data.carouselLockups[this.scrollCount],RcQ))==null?void 0:G.infoRows}}});
wy.prototype.dataChanged=wy.prototype.dataChanged;wy.prototype.onIronResize=wy.prototype.onIronResize;wy.prototype.hiddenChanged=wy.prototype.hiddenChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],wy.prototype,"componentBehavior",void 0);_.E([_.q(_.Yj.YtdHorizontalListBehavior),_.U("design:type",Object)],wy.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],wy.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],wy.prototype,"inlineStructuredDescription",void 0);_.E([_.K({value:2}),_.U("design:type",Number)],wy.prototype,"initialCount",void 0);_.E([_.K(),_.U("design:type",Object)],wy.prototype,"currentIndex",void 0);
_.E([_.K(),_.U("design:type",Number)],wy.prototype,"scrollCount",void 0);_.E([_.K(),_.U("design:type",Object)],wy.prototype,"supportComponentResize",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],wy.prototype,"contentHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],wy.prototype,"modern",void 0);_.E([_.rt("#scroll-container"),_.U("design:type",HTMLDivElement)],wy.prototype,"JSC$22487_scrollContainer",void 0);
_.E([_.cW("contentHidden"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wy.prototype,"hiddenChanged",null);_.E([_.C("data"),_.U("design:type",Array),_.U("design:paramtypes",[])],wy.prototype,"videoLockups",null);_.E([_.C("videoLockups"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],wy.prototype,"hasVideoLockups",null);
_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wy.prototype,"onIronResize",null);_.E([_.C("data","scrollCount"),_.U("design:type",Object),_.U("design:paramtypes",[])],wy.prototype,"infoRows",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wy.prototype,"dataChanged",null);_.E([_.p({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],wy);
_.N(wy,"ytd-video-description-music-section-renderer",function(){if(hvN!==void 0)return hvN;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return hvN=X},{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var ZTB;var zf=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("kevlar_modern_sd_v2");X.modernTypography=_.A("web_modern_typography");return X};
_.S(zf,_.O);zf.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.E([_.K({}),_.U("design:type",Object)],zf.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zf.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zf.prototype,"modernTypography",void 0);
_.E([_.p({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],zf);
_.N(zf,"ytd-video-description-transcript-section-renderer",function(){if(ZTB!==void 0)return ZTB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ZTB=X},{mode:1});var qRN;_.DW(_.Fp(function(X){var t=_.Pk(_.nLA,function(){return X.data().firstProviderLinkStatusEntityKey}),G=_.Pk(_.nLA,function(){return X.data().secondProviderLinkStatusEntityKey}),y=function(){var w,z;
return((w=t())==null?void 0:w.linked)||((z=G())==null?void 0:z.linked)};
return _.k("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.k(_.eh,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return X.data().sectionTitle}}),_.k(_.eh,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return y()?X.data().connectedMessage:X.data().notConnectedMessage}}),_.k(_.d,{cond:y,
then:function(){return _.k(_.M7,{data:function(){return X.data().connectedButton}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.k(_.d,{cond:function(){return!y()},
then:function(){return _.k(_.M7,{data:function(){return X.data().notConnectedButton}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"uj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;return _.k("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.k("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.k(_.eh,{text:function(){return t().sectionTitle}})),_.k("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.k(_.eh,{text:function(){return t().bodyHeader}})),_.k("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.k(_.eh,{text:function(){return t().bodyText}})),_.k(_.d,
{cond:function(){return t().attributionText},
then:function(){return _.k("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.k(_.eh,{text:function(){return t().attributionText}}))}}))},"vj"),"how-this-was-made-section-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){return _.k("yt-video-description-youchat-section-view-model",{class:_.cl("ytVideoDescriptionYouchatSectionViewModelHost")},_.k("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.k(_.eh,{text:function(){return X.data().sectionTitle}})),_.k("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.k(_.eh,{text:function(){return X.data().subHeaderText}})),_.k("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.k(_.QK,{data:function(){return _.Y(X.data().primaryButton,
_.vk)}})))},"wj"),"yt-video-description-youchat-section-view-model",{props:{data:_.bR}});var HE=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return X};
_.S(HE,_.O);_.H=HE.prototype;
_.H.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}}}}}};
_.H.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.H.dataChanged=function(){var X,t;this.hasDescriptionOnly=!(((X=this.data)==null?void 0:(t=X.items)==null?void 0:t.length)!==1||!_.Y(this.data.items[0],Qn))};
_.H.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.H.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.H.autoFocusDescription=function(){var X;((X=_.gw().resolve(_.jH(_.Z8)))==null?0:X.isKeyBoardInUse())&&this.description&&_.bx(this.description)};
_.H.resize=function(){if(_.A("kevlar_disable_sd_resize"))this.JSC$22495_cardList&&_.Yt(this.JSC$22495_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Yt(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Yt(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.H.scrollToSection=function(X){if(X=this.getSectionElement(X))_.sl(this.hostElement,"yt-scroll-to-watch-element",[X]),X.focus()};
_.H.getSectionElement=function(X){switch(X){case "infocards-item-section":var t;return(t=this.infocardsSection)!=null?t:null;case "transcript-item-section":var G;return(G=this.transcriptSection)!=null?G:null;case "how-this-was-made-section-item-section":var y;return(y=this.howThisWasMadeSection)!=null?y:null;case "files-item-section":var w;return(w=this.filesSection)!=null?w:null;default:return null}};
_.H.handleSetActiveItemAction=function(X){var t=_.Y(X,du2),G=t&&(t==null?void 0:t.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22495_cardList;if(t&&G){X=this.currentActiveChapter;var y=this.currentActiveProblem;t=G==null?void 0:G.getItemByIndex(t.itemIndex);var w=G=!0;t&&(t.active=!0,t.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(G=X!==t,w=!1,this.currentActiveChapter=t):(t==null?void 0:t.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(G=!1,w=y!==t,this.currentActiveProblem=t));X&&G&&(X.active=!1);y&&w&&(y.active=!1)}};
_.ke.Object.defineProperties(HE.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.A("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
HE.prototype.onYtExpanderMoreTapped=HE.prototype.onYtExpanderMoreTapped;HE.prototype.onHiddenChanged=HE.prototype.onHiddenChanged;HE.prototype.dataChanged=HE.prototype.dataChanged;HE.prototype.panelContentVisibleChanged=HE.prototype.panelContentVisibleChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],HE.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],HE.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.ax),_.U("design:type",Object)],HE.prototype,"ironResizableBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],HE.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],HE.prototype,"panelContentVisible",void 0);_.E([_.K(),_.U("design:type",Boolean)],HE.prototype,"hasDescriptionOnly",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],HE.prototype,"inlineStructuredDescription",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],HE.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],HE.prototype,"shortsPanel",void 0);_.E([_.K(),_.U("design:type",Object)],HE.prototype,"videoSummary",void 0);_.E([_.K(),_.U("design:type",Object)],HE.prototype,"merchShelf",void 0);
_.E([_.C("videoSummary"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],HE.prototype,"showVideoSummary",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],HE.prototype,"engagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],HE.prototype,"watchWhileSdp",void 0);_.E([_.rt("ytd-expandable-video-description-body-renderer"),_.U("design:type",Object)],HE.prototype,"description",void 0);
_.E([_.rt("ytd-horizontal-card-list-renderer"),_.U("design:type",Object)],HE.prototype,"JSC$22495_cardList",void 0);_.E([_.rt("ytd-horizontal-card-list-renderer[center-items]"),_.U("design:type",Object)],HE.prototype,"problemWalkthroughCardList",void 0);_.E([_.rt("ytd-shelf-renderer"),_.U("design:type",Object)],HE.prototype,"shelfSection",void 0);_.E([_.rt("ytd-video-description-music-section-renderer"),_.U("design:type",Object)],HE.prototype,"musicMetadataSection",void 0);
_.E([_.rt("ytd-video-description-infocards-section-renderer"),_.U("design:type",Object)],HE.prototype,"infocardsSection",void 0);_.E([_.rt("ytd-video-description-transcript-section-renderer"),_.U("design:type",Object)],HE.prototype,"transcriptSection",void 0);_.E([_.rt("how-this-was-made-section-view-model"),_.U("design:type",Object)],HE.prototype,"howThisWasMadeSection",void 0);_.E([_.rt("ytd-video-description-files-section-renderer"),_.U("design:type",Object)],HE.prototype,"filesSection",void 0);
_.E([_.cW("panelContentVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],HE.prototype,"panelContentVisibleChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],HE.prototype,"dataChanged",null);_.E([_.cW("hidden"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],HE.prototype,"onHiddenChanged",null);
_.E([_.WW("yt-expander-more-tapped"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],HE.prototype,"onYtExpanderMoreTapped",null);_.E([_.p({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],HE);
_.N(HE,"ytd-structured-description-content-renderer",function(){if(qRN!==void 0)return qRN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qRN=X},{mode:2});var C2Y;var Kag;var of=function(){return _.O.apply(this,arguments)||this};
_.S(of,_.O);of.prototype.computeAriaLabel=function(X){var t,G;return(X==null?void 0:(t=X.accessibility)==null?void 0:(G=t.accessibilityData)==null?void 0:G.label)||_.Qf("LOADING",void 0,"Loading")};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],of.prototype,"data",void 0);_.E([_.K({computed:"computeAriaLabel(data)"}),_.U("design:type",String)],of.prototype,"ariaLabel",void 0);_.E([_.$F({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],of);
_.N(of,"yt-content-loading-renderer",function(){if(Kag===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;C2Y===void 0&&(C2Y=document.createElement("template"));var y=C2Y;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Kag=X}X=Kag;return X},{mode:_.Cz("kevlar_poly_si_batch_j043")?1:2});_.DW(_.Fp(function(X){var t=_.J(_.sm(!1,void 0,"QkPiwb")),G=t.next().value,y=t.next().value;t=_.J(_.sm(!1,void 0,"AFECB"));var w=t.next().value,z=t.next().value;_.LY(function(){var b=_.Y(X.data().collaboratePlaylistCollaborationSetting,IDH);b&&y(b.switchedOnByDefault);var e=_.Y(X.data().allowNewCollaboratorsPlaylistCollaborationSetting,IDH);e&&z(e.switchedOnByDefault);if(!b&&!e||!b&&X.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")y(!0),z(!0)});
var B=function(b){y(b);z(b);var e=X.data().playlistCollaborationEntityKey||"";var g=_.kF().getState();(g=_.Kg(g.entities,"playlistCollaborationEntity",e))&&(g==null?void 0:g.isCollaborative)===b||_.kF().dispatch(_.EW("playlistCollaborationEntity",e,Object.assign({},g,{isCollaborative:b})))},V=function(b){z(b)};
return _.k("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.k("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.k(_.M7,{data:function(){return X.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.k(_.pnJ,{data:b.data,
onSwitch:B})}})),_.k(_.d,{cond:G,
then:function(){return _.k(_.gn,null,_.k("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.k(_.M7,{data:function(){return X.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.k(_.pnJ,{data:b.data,
onSwitch:V,overrideDisabled:!1})}})),_.k(_.d,{cond:w,
then:function(){return _.k("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.k(_.M7,{data:function(){return X.data().copyLinkButton}},{buttonViewModel:_.QK}))}}),_.k("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.k(_.M7,{data:function(){return X.data().playlistCollaborators}},{contentListItemViewModel:_.vpB})))}}))},"xj"),"playlist-collaboration-view-model",{props:{data:_.bR}});var OTY=_.Fp(function(X){var t=X.data;var G=X.customCommandResolver;return _.k(_.gn,null,_.k("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.k(_.M7,{data:function(){return t().adAvatar}},{adAvatarViewModel:function(y){return _.k(_.eRS,{data:y.data,
customCommandResolver:G})}})),_.k("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.k(_.d,{cond:function(){return t().headline},
then:function(y){return _.k(_.eh,{text:y,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.k("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.k(_.M7,{data:function(){return t().adBadge}},{adBadgeViewModel:function(y){return _.k(_.he,{data:y.data,
hasDot:function(){return t().primaryDetailsLine!==void 0},
customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.k(_.M7,{data:function(){return t().primaryDetailsLine}},{adDetailsLineViewModel:function(y){return _.k(_.ZT,{data:y.data,
customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"yj"),uHt=_.Fp(function(X){var t=X.data;
var G=X.customCommandResolver;return _.k("ad-avatar-lockup-view-model",{class:function(){var y;return((y=t().interaction)==null?0:y.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.T7(_.gS({visibilityCallback:function(y){var w,z=(w=t().interaction)==null?void 0:w.onFirstVisible;y&&z&&_.JH(z)},
showOption:_.FF}),_.ny(function(){return t().interaction},G)),
"aria-label":function(){var y,w;return(y=t().interaction)==null?void 0:(w=y.accessibility)==null?void 0:w.label}},_.k(_.P0,null,_.k(_.rn,{when:function(){return t().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.k(OTY,{data:t,
customCommandResolver:G})}),_.k(_.Nd,null,function(){return null})))},"zj");_.DW(_.Fp(function(X){var t=X.data;var G=X.panelContentVisibility;X=_.gS({visibilityCallback:function(z){var B,V=(B=t().interaction)==null?void 0:B.onFirstVisible;z&&V&&_.JH(V)},
showOption:_.FF});var y=_.ny(function(){return t().interaction},KBv);
_.im(function(){var z,B;if(B=_.GA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var V;B=(V=B())==null?void 0:V.onLayoutVisibleCallback}else B=null;(z=B)==null||z()});
var w=function(){return G()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.k("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.T7(X,y)},_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.k(_.d,{cond:_.sgh("(min-width: "+((0,_.$R)()+_.Wg)+"px) or (max-width: 600px)"),then:function(){return _.k(_.M7,{data:function(){return t().adImage}},{adImageViewModel:function(z){return _.k(_.rf,{data:z.data,
targetHeight:80,customCommandResolver:KBv})}})}})),_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.k(_.M7,{data:function(){return t().adAvatarLockup}},{adAvatarLockupViewModel:function(z){return _.k(uHt,{data:z.data,
customCommandResolver:KBv})}})),_.k(_.d,{cond:w,
then:function(){return _.k(_.M7,{data:function(){return t().adButton}},{adButtonViewModel:function(z){return _.k(_.Ae,{data:z.data,
customCommandResolver:KBv})}})},
else:function(){return _.k(_.M7,{data:function(){return t().menu}},{buttonViewModel:_.QK})}}),_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.k(_.M7,{data:function(){var z=_.Y(t().toggleButton,_.as);
return{toggleButtonViewModel:Object.assign({},z,{isTogglingDisabled:!0,isToggled:w()})}}},{toggleButtonViewModel:_.Lv})))))},"Aj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.bR,
panelContentVisibility:_.bR}});_.DW(_.Fp(function(X){var t=function(){return _.Y(X.data().inputComposerViewModel,WyB)},G=function(){var h;
return((h=t())==null?void 0:h.youchatPendingResponseEntityKey)||""},y=_.Pk(_.kkR,G),w=function(){var h;
return!((h=y())==null||!h.isPendingResponse)},z=_.J(_.sm(!0,void 0,"DR0q1d")),B=z.next().value,V=z.next().value,b=function(){return t().sectionTargetId||"youchat_messages_section"};
z=_.VN("yt-chat-input-view-model");var e=_.nl("textarea"),g=_.Pk(FBq,"chat_input_view_model_state"),F=TsT(),T=function(){var h;return!((h=g())==null||!h.value)};
_.LY(function(){var h;if(!T()&&((h=t())==null?0:h.welcomeFeatureContinuation)){h={continuationCommand:{token:t().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var u,W=String(Math.floor(((u=_.QE())==null?void 0:u.getCurrentTime())||0)*1E3);u={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:W}};_.z7(h,{form:{formData:u}});F(!0)}var c=b(),P;(P=_.gw().resolve(_.jH(_.U2)))==null||P.addEventListener("yt-navigate-start",function(){_.lX.remove(c);F(!1)},
{once:!0})});
var D=function(){var h=e.value.value;e.value.value="";OSR(e.value);var u,W=((u=t())==null?void 0:u.enableGradientColorBg)||!1;u=u6a(b(),h,W);_.z7(u);var c=_.dCN(G()),P;_.JH(((P=t())==null?void 0:P.onSubmitCommand)||{});c(!0);var l;P=String(Math.floor(((l=_.QE())==null?void 0:l.getCurrentTime())||0)*1E3);var R;l={continuationCommand:{token:(R=t())==null?void 0:R.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};h={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:h,
playerOffsetMs:P}};_.z7(l,{form:{formData:h},commandController:{onSuccess:function(){c(!1)},
onServerError:function(){var L=b();_.z7({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:L}}]}}});c(!1)}}})};
return _.k("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:z},_.k("div",{class:"chatInputViewModelChatInputWrapper"},_.k("form",{class:"chatInputViewModelChatInputForm"},_.k("textarea",{class:"chatInputViewModelChatInput",el:e,"on:keydown":_.NI(function(h){var u=w()||!1;OSR(e.value);u||h.key!=="Enter"||h.shiftKey||(h.preventDefault(),D());return!1}),
"on:keyup":_.NI(function(){V(e.value.value.length===0);return!1}),
placeholder:function(){var h,u;var W=_.Y((u=t())==null?void 0:u.inputFormField,VEV);return W==null?void 0:(h=W.contentProperties)==null?void 0:h.placeholderText},
rows:1}),_.k(_.QK,{data:function(){return _.Y(X.data().sendButton,_.vk)},
onClick:function(h){h.preventDefault();D();V(e.value.value.length===0)},
buttonOverrides:function(){return{disabled:B()||w()}}})),_.k(_.eh,{className:"chatInputViewModelChatDisclaimer",
text:function(){var h;return(h=_.Y(X.data().disclaimer,_.W2q))==null?void 0:h.text}})))},"Bj"),"yt-chat-input-view-model",{props:{data:_.bR}});var QNj=["engagement-panel-clip-create","engagement-panel-clip-view"],IHM=0,J5=function(){var X=_.O.apply(this,arguments)||this;var t;X.headerData=(t=X.data)==null?void 0:t.header;X.darkerPanels=_.A("web_watch_darker_panels");X.matchContentTheme=_.A("web_watch_panel_content_match_theme");X.disableAutoFill=!1;X.isFullscreen=!1;X.isTheaterMode=!1;X.modernPanels=_.A("kevlar_watch_modern_panels");X.liveChatReplyPanel=!1;X.enableAnchoredPanel=_.A("desktop_shorts_v2_anchored_panel");X.disableBackdropFilter=
_.A("web_disable_backdrop_filter");X.trackEngagementPanelVisibility=_.A("web_watch_track_engagement_panel_visibility");X.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 X};
_.S(J5,_.O);_.H=J5.prototype;
_.H.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(X){var t;return(X==null?void 0:(t=X.webComponentHint)==null?void 0:t.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"}}}};
_.H.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var X;if((X=this.hostElement.parentElement)==null?0:X.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.H.detached=function(){this.updateTheaterDisablement()};
_.H.showPanel=function(){var X=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.vz.addJob(function(){X.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.H.maybeScrollToItemSection=function(X){var t=this,G,y=X==null?void 0:(G=X.sectionListEngagementPanelExtras)==null?void 0:G.scrollToItemSectionIdentifier;y&&_.vz.addJob(function(){var w;(w=t.sectionListRendererElement)==null||w.scrollToItemSection(y)},8)};
_.H.hidePanel=function(){var X=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.vz.addJob(function(){X.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.H.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.H.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.H.updatePanel=function(X,t,G,y){var w=this;if((X=X==null?void 0:X.engagementPanelSectionListRenderer)||y){if(X){y=X.header;var z=X.content,B=X.footer;(X=X.targetId)&&this.set("data.targetId",X);y&&this.set("data.header",y);z&&this.set("data.content",z);B&&this.set("data.footer",B)}else y&&(X=y.content,z=y.secondaryHeaderContent,(y=y.targetId)&&this.set("data.targetId",y),X&&this.set("data.content",X),z&&(this.secondaryHeaderData=z));this.updateChildVisibilityProperties();if(t){var V;_.A("kevlar_update_panel_focus_scroll_killswitch")||
(V={preventScroll:!0});this.focus(V)}_.V8(this,function(){_.Yt(w.hostElement,"yt-refit");w.maybeScrollToItemSection(G)})}};
_.H.computeHeaderData=function(){var X,t=(0,_.RH.unsafeClone)((X=this.data)==null?void 0:X.header);if(t){X=new _.ja(Object.keys(t)[0]);var G=_.Y(t,X),y=_.Y(this.secondaryHeaderData,X);y&&_.Xx(t,X,Object.assign({},y,G))}return t};
_.H.getReloadContinuation=function(){var X,t,G,y=_.J(((X=this.data)==null?void 0:(t=X.content)==null?void 0:(G=t.sectionListRenderer)==null?void 0:G.continuations)||[]);for(X=y.next();!X.done;X=y.next())if(X=X.value,X.reloadContinuationData)return X.reloadContinuationData.continuation};
_.H.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var X;((X=this.data)==null?0:X.targetId)&&(X=this.contentElement.firstElementChild)&&X.setAttribute("panel-target-id",this.data.targetId)};
_.H.forwardPopupClosedToFlowRootRenderer=function(){var X=_.Sm(this.hostElement).querySelector("ytd-flow-root-renderer");if(X)X.onPopupClosed()};
_.H.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var X;if(!QNj.includes((X=this.theaterDisablementPanelIdentifier)!=null?X:""))if(X=_.A("web_watch_imax_theater_mode")&&this.isTheaterMode,X=_.A("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||X,_.A("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||X){var t;this.visibility=(t=this.data)==null?void 0:t.visibility;var G;this.trackEngagementPanelVisibility&&((G=this.data)==null?void 0:G.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var y,w,z,B;this.contentEmpty=!!(((y=this.data)==null?0:(w=y.content)==null?0:w.structuredDescriptionContentRenderer)&&Object.keys((z=this.data)==null?void 0:(B=z.content)==null?void 0:
B.structuredDescriptionContentRenderer).length===0);(t=_.gw().resolve(_.mD))&&t.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.H.isTheaterModeChanged=function(){_.A("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.H.isFullscreenChanged=function(){_.A("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.H.focus=function(X){if(this.header)this.header.focus(X);else{var t;(t=_.Sm(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||t.focus(X)}};
_.H.visibilityChanged=function(){if(!_.A("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var X=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=y||!this.lastVisibility,z,B,V,b=((z=this.data)==null?void 0:(B=z.identifier)==null?void 0:
B.tag)||((V=this.data)==null?void 0:V.panelIdentifier);if(X&&w){var e;((e=this.data)==null?0:e.onShowCommands)&&_.Z0(this.hostElement,this.data.onShowCommands,this.hostElement);b&&_.dV().dispatch(_.Dl({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:b}}))}else if(t&&G){var g;((g=this.data)==null?0:g.onHideCommands)&&_.Z0(this.hostElement,this.data.onHideCommands,this.hostElement);b&&_.dV().dispatch(_.Dl({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:b}}))}X&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*IHM++));_.A("kevlar_watch_focus_on_engagement_panels")&&X&&y&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.H.notifyVisibilityChanged=function(X){var t;_.D0(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,X,(t=this.data)==null?void 0:t.targetId])};
_.H.updateTheaterDisablement=function(){if(!_.A("kevlar_watch_theater_disablement_killswitch")){var X=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&QNj.includes(X)&&!_.A("watch_next_grid_ignore_disallowed_panels")){var t=_.tS(_.dV().getState()),G=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";X!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():G?(this.originalTheaterState===void 0&&(this.originalTheaterState=t,this.theaterDisablementPanelIdentifier=
X),t&&_.sl(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.H.clearTheaterDisablement=function(){_.sl(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.H.updateChildVisibilityProperties=function(){this.hostElement||_.A("kevlar_panel_property_init_killswitch")||this._enableProperties();var X=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=X);var t,G=(t=this.headerElement)==null?void 0:t.firstElementChild;if(G&&!this.adHeaderImageLockupViewModel){t=X==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";G.collapsed=t;G=_.Sm(G).querySelector("#visibility-button");if(!G)return;(G=G.firstElementChild)&&
G.polymerController.is==="ytd-toggle-button-renderer"&&G.polymerController.data.isToggled!==t&&G.polymerController.set("data.isToggled",t)}var y;if(t=(y=this.contentElement)==null?void 0:y.firstElementChild)if(X&&X!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")t.removeAttribute("panel-content-visible");else{t.setAttribute("panel-content-visible","");var w;(w=t.markDirty)==null||w.call(t)}};
_.H.onYtChangeEngagementPanelVisibilityAction=function(X){var t=this,G,y=(G=this.data)==null?void 0:G.targetId,w,z,B;G=((w=this.data)==null?void 0:(z=w.identifier)==null?void 0:z.tag)||((B=this.data)==null?void 0:B.panelIdentifier);var V=_.Y(X,_.ryq),b;X=y&&(V==null?void 0:V.targetId)===y||G&&(V==null?void 0:(b=V.panelIdentifier)==null?void 0:b.tag)===G;this.dialog&&X&&(V==null?void 0:V.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(y==="engagement-panel-comments-section"?_.sl(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.sl(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",G]));!_.A("kevlar_use_engagement_panel_management_component")&&X&&(y=V.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!y?_.vz.addJob(function(){t.visibility=V.visibility},2,this.hideDelayMs):this.visibility=V.visibility,V.visibility&&this.notifyVisibilityChanged(V.visibility))};
_.H.onYtScrollToEngagementPanelCommand=function(X){var t,G=(t=this.data)==null?void 0:t.targetId,y,w,z;t=((y=this.data)==null?void 0:(w=y.identifier)==null?void 0:w.tag)||((z=this.data)==null?void 0:z.panelIdentifier);X=_.Y(X,_.xot);var B;(G&&(X==null?void 0:X.targetId)===G||t&&(X==null?void 0:(B=X.panelIdentifier)==null?void 0:B.tag)===t)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.sl(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.H.attachVEs=function(X){var t,G;(X==null?0:(t=X.content)==null?0:(G=t.productListRenderer)==null?0:G.trackingParams)&&_.Pj().graftServerVe(X.content.productListRenderer.trackingParams);var y,w;(X==null?0:(y=X.content)==null?0:(w=y.transcriptRenderer)==null?0:w.trackingParams)&&_.Pj().graftServerVe(X.content.transcriptRenderer.trackingParams)};
_.H.onYtUpdateEngagementPanelAction=function(X){var t,G=(t=this.data)==null?void 0:t.targetId;X=_.Y(X,jfR);G&&(X==null?void 0:X.targetId)===G&&(this.updatePanel({engagementPanelSectionListRenderer:{header:X==null?void 0:X.header,content:X==null?void 0:X.content}},!1),this.attachVEs(X))};
_.H.onYtShowEngagementPanelScrimAction=function(X){var t,G=(t=this.data)==null?void 0:t.targetId;X=_.Y(X,ecB);G&&(X==null?void 0:X.engagementPanelTargetId)===G&&(this.scrimmed=!0)};
_.H.onYtHideEngagementPanelScrimAction=function(X){var t,G=(t=this.data)==null?void 0:t.targetId;X=_.Y(X,kfR);G&&(X==null?void 0:X.engagementPanelTargetId)===G&&(this.scrimmed=!1)};
_.H.getIdentifier=function(){var X,t,G;return((X=this.data)==null?void 0:X.panelIdentifier)||((t=this.data)==null?void 0:(G=t.identifier)==null?void 0:G.tag)};
_.H.getSurface=function(){var X,t;return(X=this.data)==null?void 0:(t=X.identifier)==null?void 0:t.surface};
_.ke.Object.defineProperties(J5.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var X=this.getIdentifier();return X==="engagement-panel-youchat"||X==="PAyouchat"}}});
J5.prototype.visibilityChanged=J5.prototype.visibilityChanged;J5.prototype.isFullscreenChanged=J5.prototype.isFullscreenChanged;J5.prototype.isTheaterModeChanged=J5.prototype.isTheaterModeChanged;J5.prototype.dataChanged=J5.prototype.dataChanged;J5.prototype.forwardPopupClosedToFlowRootRenderer=J5.prototype.forwardPopupClosedToFlowRootRenderer;J5.prototype.onYtRendererstamperFinished=J5.prototype.onYtRendererstamperFinished;
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],J5.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],J5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],J5.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],J5.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],J5.prototype,"data",void 0);
_.E([_.K({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.U("design:type",Object)],J5.prototype,"headerData",void 0);_.E([_.K(),_.U("design:type",Object)],J5.prototype,"secondaryHeaderData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],J5.prototype,"visibility",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],J5.prototype,"contentEmpty",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],J5.prototype,"scrimmed",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],J5.prototype,"dialog",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],J5.prototype,"dropdown",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],J5.prototype,"darkerPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],J5.prototype,"matchContentTheme",void 0);_.E([_.K(),_.U("design:type",Object)],J5.prototype,"disableAutoFill",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.A("optimal_reading_width_comments_ep")}),_.U("design:type",Boolean)],J5.prototype,"optimalReadingWidthComments",void 0);_.E([_.K(),_.U("design:type",Number)],J5.prototype,"hideDelayMs",void 0);_.E([_.K({selector:_.Gz,reflectToAttribute:!0}),_.U("design:type",Object)],J5.prototype,"isFullscreen",void 0);_.E([_.K({selector:_.tS,reflectToAttribute:!0}),_.U("design:type",Object)],J5.prototype,"isTheaterMode",void 0);
_.E([_.K(),_.U("design:type",Number)],J5.prototype,"showDelayMs",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.targetId"),_.U("design:type",Object),_.U("design:paramtypes",[])],J5.prototype,"targetId",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],J5.prototype,"webSize",null);_.E([_.K(),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],J5.prototype,"hideFooterBorder",null);
_.E([_.K(),_.U("design:type",Object)],J5.prototype,"isWatch",void 0);_.E([_.K(),_.U("design:type",Object)],J5.prototype,"originalTheaterState",void 0);_.E([_.K(),_.U("design:type",Object)],J5.prototype,"theaterDisablementPanelIdentifier",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],J5.prototype,"modernPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],J5.prototype,"isWatchWhilePanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],J5.prototype,"shortsPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],J5.prototype,"liveChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],J5.prototype,"learningChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],J5.prototype,"liveChatReplyPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],J5.prototype,"enableAnchoredPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],J5.prototype,"disableBackdropFilter",void 0);_.E([_.K(),_.U("design:type",Object)],J5.prototype,"trackEngagementPanelVisibility",void 0);_.E([_.rt("#header"),_.U("design:type",HTMLElement)],J5.prototype,"headerElement",void 0);_.E([_.rt("#header > *"),_.U("design:type",HTMLElement)],J5.prototype,"header",void 0);
_.E([_.rt("ytd-section-list-renderer"),_.U("design:type",Object)],J5.prototype,"sectionListRendererElement",void 0);_.E([_.rt("panel-ad-header-image-lockup-view-model"),_.U("design:type",HTMLElement)],J5.prototype,"adHeaderImageLockupViewModel",void 0);_.E([_.rt("#content"),_.U("design:type",HTMLElement)],J5.prototype,"contentElement",void 0);
_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],J5.prototype,"onYtRendererstamperFinished",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],J5.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.E([_.U0("data","isFullscreen","isTheaterMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],J5.prototype,"dataChanged",null);
_.E([_.cW("isTheaterMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],J5.prototype,"isTheaterModeChanged",null);_.E([_.cW("isFullscreen"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],J5.prototype,"isFullscreenChanged",null);_.E([_.cW("visibility"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],J5.prototype,"visibilityChanged",null);
_.E([_.p({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],J5);
_.N(J5,"ytd-engagement-panel-section-list-renderer",function(){if(yQY!==void 0)return yQY;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return yQY=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var Wai;var BE=function(){var X=_.O.apply(this,arguments)||this;X.lastRenderedPanelIds=new Set;X.visiblePanels=[];X.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return X};
_.S(BE,_.O);_.H=BE.prototype;_.H.dataChanged=function(){if(this.data){for(var X=[],t=_.J(this.data),G=t.next();!G.done;G=t.next()){G=G.value;var y=void 0,w=void 0,z=(y=G)==null?void 0:(w=y.engagementPanelSectionListRenderer)==null?void 0:w.visibility;w=y=void 0;((y=G)==null?0:(w=y.engagementPanelSectionListRenderer)==null?0:w.targetId)&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&X.push(G)}this.visiblePanels=X}else this.visiblePanels=[]};
_.H.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}}};
_.H.withoutVisiblePanelById=function(X){return this.visiblePanels.filter(function(t){var G;return((G=t.engagementPanelSectionListRenderer)==null?void 0:G.targetId)!==X})};
_.H.onYtChangeEngagementPanelVisibilityAction=function(X){var t=this,G=_.Y(X,_.ryq);if(this.data&&(G==null?0:G.targetId)&&(G==null?0:G.visibility)){var y,w=(y=this.data.find(function(B){var V;return((V=B.engagementPanelSectionListRenderer)==null?void 0:V.targetId)===G.targetId}))==null?void 0:y.engagementPanelSectionListRenderer;
if(w){var z=this.withoutVisiblePanelById(G.targetId);G.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(X=this.data.find(function(B){var V;return((V=B.engagementPanelSectionListRenderer)==null?void 0:V.targetId)===G.targetId}))&&(z=[X].concat(_.RY(z)));
this.hideDelayMs&&G.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&z.length===0?_.vz.addJob(function(){w.visibility=G.visibility;t.visiblePanels=z},10,this.hideDelayMs):(w.visibility=G.visibility,this.visiblePanels=z);
_.D0(this.hostElement,"yt-engagement-panels-visible-changed",[z])}}};
_.H.onRendererstamperFinished=function(){var X=new Set(this.visiblePanels.map(function(t){var G;return(G=t.engagementPanelSectionListRenderer)==null?void 0:G.targetId}));
this.handlePanelVisibilityChange(X,this.lastRenderedPanelIds);this.lastRenderedPanelIds=X};
_.H.handlePanelVisibilityChange=function(X,t){X=X===void 0?new Set:X;t=t===void 0?new Set:t;if(this.data)for(var G=_.J(this.data),y=G.next();!y.done;y=G.next()){y=y.value;var w=void 0,z=void 0,B=(w=y)==null?void 0:(z=w.engagementPanelSectionListRenderer)==null?void 0:z.targetId;if(B&&(w=t.has(B),z=X.has(B),B=void 0,!w&&z?(z=w=void 0,B=(w=y)==null?void 0:(z=w.engagementPanelSectionListRenderer)==null?void 0:z.onShowCommands):w&&!z&&(z=w=void 0,B=(w=y)==null?void 0:(z=w.engagementPanelSectionListRenderer)==
null?void 0:z.onHideCommands),B))for(y=_.J(B),B=y.next();!B.done;B=y.next())this.ytComponentBehavior.resolveCommand(B.value)}};
BE.prototype.onRendererstamperFinished=BE.prototype.onRendererstamperFinished;BE.prototype.dataChanged=BE.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],BE.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],BE.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],BE.prototype,"lastRenderedPanelIds",void 0);_.E([_.K(),_.U("design:type",Number)],BE.prototype,"hideDelayMs",void 0);_.E([_.K(),_.U("design:type",Array)],BE.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Array)],BE.prototype,"visiblePanels",void 0);_.E([_.K(),_.U("design:type",Boolean)],BE.prototype,"isWatchWhilePanel",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],BE.prototype,"dataChanged",null);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],BE.prototype,"onRendererstamperFinished",null);_.E([_.p({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],BE);
_.N(BE,"ytd-watch-engagement-panels",function(){if(Wai!==void 0)return Wai;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Wai=X},{mode:1});var cQk;var n2=function(){return _.O.apply(this,arguments)||this};
_.S(n2,_.O);n2.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.b8(_.Sm(this.hostElement).querySelector("#text"),_.Z4J(_.KtJ,this.data.companionLegalText))};
n2.prototype.computeAutoScrollEnabled=function(X,t){return X&&!t};
n2.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
n2.prototype.onToggleTap=function(){this.expanded=!this.expanded};
n2.prototype.expandedChanged=n2.prototype.expandedChanged;n2.prototype.dataChanged=n2.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.QBi),_.U("design:type",Object)],n2.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],n2.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],n2.prototype,"expanded",void 0);
_.E([_.K({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.U("design:type",Boolean)],n2.prototype,"autoScrollEnabled",void 0);_.E([_.K(),_.U("design:type",String)],n2.prototype,"expanderIcon",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],n2.prototype,"dataChanged",null);
_.E([_.cW("expanded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],n2.prototype,"expandedChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],n2);
_.N(n2,"ytd-companion-legal-text-renderer",function(){if(cQk!==void 0)return cQk;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return cQk=X},{mode:1});var p4M;var Vx=function(){var X=_.O.apply(this,arguments)||this;X.buttonUpdate=_.A("web_modern_buttons");X.kevlarWatchGrid=_.A("kevlar_watch_grid");X.centerAlignDescription=_.A("action_companion_center_align_description");X.truncateDomain=_.A("action_companion_truncate_domain");return X};
_.S(Vx,_.O);_.H=Vx.prototype;_.H.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.H.getOnLayoutVisibleCallback=function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.onLayoutVisibleCallback:null};
_.H.getLayoutId=function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.layoutId:null};
_.H.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Vx.JSC$22542_DEFAULT_AD_BADGE_RENDERER);var X=this.getOnLayoutVisibleCallback();X&&X()}};
_.H.getButtonRenderer=function(X){return X.actionButton&&_.Y(X.actionButton,_.G4)?(delete _.Y(X.actionButton,_.G4).navigationEndpoint,_.Y(X.actionButton,_.G4)):{}};
_.H.onClick=function(X){var t=this;if((!_.A("web_modern_buttons")||!_.Fa(_.be(X),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){X=_.sW();var G=this.getLayoutId();X&&G&&_.A("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?X.getPlayerPromise().then(function(y){(new _.Ry(y)).executeCommand(t.data.navigationEndpoint,G)}):_.A("kevlar_companion_resolve_command_killswitch")?_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.sl(this.hostElement,"yt-companion-ad-clicked",["action-companion",G])}};
_.ke.Object.defineProperties(Vx.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.data)==null?0:(t=X.detailsLine)==null?0:(G=t.adRating)==null?0:G.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 X,t,G,y;return((X=this.data)==null?0:(t=X.detailsLine)==null?0:(G=t.adRating)==null?0:(y=G.ratingIcon)==null?0:y.iconType)?_.Q2(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y;return((X=this.data)==null?0:(t=X.detailsLine)==null?0:(G=t.texts)==null?0:(y=G[0])==null?0:y.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 X,t;return((X=this.data)==null?0:(t=X.description)==null?0:t.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var X=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return X?X.indexOf("/default_banner")!==-1:!0}}});
Vx.prototype.onClick=Vx.prototype.onClick;Vx.prototype.dataChanged=Vx.prototype.dataChanged;Vx.JSC$22542_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Qf("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Vx.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Vx.prototype,"rendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Vx.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Vx.prototype,"buttonUpdate",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Vx.prototype,"kevlarWatchGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Vx.prototype,"centerAlignDescription",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Vx.prototype,"truncateDomain",void 0);
_.E([_.K({computed:"computeButtonOverride(buttonUpdate)"}),_.U("design:type",Object)],Vx.prototype,"buttonOverride",void 0);_.E([_.C("data.detailsLine.adRating.ratingText"),_.U("design:type",Object),_.U("design:paramtypes",[])],Vx.prototype,"getRating",null);_.E([_.C("getRating"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Vx.prototype,"computeRatingHidden",null);
_.E([_.C("data.detailsLine.adRating.ratingIcon.iconType"),_.U("design:type",Object),_.U("design:paramtypes",[])],Vx.prototype,"iconType",null);_.E([_.C("data.detailsLine.texts.0.text"),_.U("design:type",Object),_.U("design:paramtypes",[])],Vx.prototype,"getDetailsLine",null);_.E([_.C("getDetailsLine"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Vx.prototype,"computeDetailsLineHidden",null);
_.E([_.C("data.description.text"),_.U("design:type",Object),_.U("design:paramtypes",[])],Vx.prototype,"getDescriptionText",null);_.E([_.C("getDescriptionText"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Vx.prototype,"computeDescriptionTextHidden",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Vx.prototype,"interactionLoggingClientData",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Vx.prototype,"hideBanner",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Vx.prototype,"dataChanged",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],Vx.prototype,"onClick",null);_.E([_.p({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Vx);
_.N(Vx,"ytd-action-companion-ad-renderer",function(){if(p4M!==void 0)return p4M;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return p4M=X},{mode:_.Cz("kevlar_poly_si_batch_j067")?1:2});var rQB;var NiN;var bq=function(){var X=_.O.apply(this,arguments)||this;X.buttonUpdate=_.A("web_modern_buttons");X.hideLegacyBanner=_.A("enable_dsa_one_click_ata_translators_infeed_elements");X.adInfoButtonStyle="mono";X.adInfoButtonType="text";X.noDotAdBadge=!0;return X};
_.S(bq,_.O);_.H=bq.prototype;_.H.getOnLayoutVisibleCallback=function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.onLayoutVisibleCallback:null};
_.H.getLayoutId=function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.layoutId:null};
_.H.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 X=this.data.image.thumbnail.thumbnails[0];this.imageSrc=X.url?_.l_(X.url):void 0;this.imageWidth=X.width||0;this.imageHeight=X.height||0}this.data.clickthroughEndpoint&&_.Y(this.data.clickthroughEndpoint,_.zj)&&(X=_.Y(this.data.clickthroughEndpoint,_.zj).url,_.A("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
X||"":X?(X=_.l_(X),this.clickThroughUrl=_.Rj(X)):this.clickThroughUrl=void 0);(X=this.getOnLayoutVisibleCallback())&&X()}};
_.H.onClick=function(X){_.Fa(_.be(X),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(X)};
_.H.handleClick=function(){var X=this;this.data&&this.data.clickthroughEndpoint&&(_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(t){X.macroReplacementBehavior.sendServiceRequestAction([t])}),_.sl(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.H.onLoad=function(){_.D0(this.hostElement,"yt-refit-popups-action")};
_.ke.Object.defineProperties(bq.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.interactionLoggingClientData:null}}});
bq.prototype.onLoad=bq.prototype.onLoad;bq.prototype.onClick=bq.prototype.onClick;bq.prototype.dataChanged=bq.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bq.prototype,"rendererBehavior",void 0);_.E([_.q(nhB.YtMacroReplacementBehavior),_.U("design:type",Object)],bq.prototype,"macroReplacementBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bq.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bq.prototype,"buttonUpdate",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bq.prototype,"hideLegacyBanner",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bq.prototype,"adInfoButtonStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bq.prototype,"adInfoButtonType",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],bq.prototype,"macros",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],bq.prototype,"interactionLoggingClientData",null);_.E([_.K(),_.U("design:type",String)],bq.prototype,"clickThroughUrl",void 0);_.E([_.K(),_.U("design:type",_.Ei)],bq.prototype,"imageSrc",void 0);_.E([_.K(),_.U("design:type",Number)],bq.prototype,"imageWidth",void 0);_.E([_.K(),_.U("design:type",Number)],bq.prototype,"imageHeight",void 0);_.E([_.K(),_.U("design:type",Object)],bq.prototype,"noDotAdBadge",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bq.prototype,"dataChanged",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],bq.prototype,"onClick",null);_.E([_.WW("load"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bq.prototype,"onLoad",null);_.E([_.p({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],bq);
_.N(bq,"ytd-image-companion-renderer",function(){if(NiN!==void 0)return NiN;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return NiN=X},{mode:_.Cz("kevlar_poly_si_batch_j067")?1:2});var P21;var ku=function(){return _.O.apply(this,arguments)||this};
_.S(ku,_.O);_.H=ku.prototype;_.H.dataChanged=function(){this.set("data.adBadge",ku.JSC$22551_DEFAULT_AD_BADGE_RENDERER);if(this.data){var X=this.getOnLayoutVisibleCallback();X&&X()}};
_.H.getOnLayoutVisibleCallback=function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.onLayoutVisibleCallback:null};
_.H.getLayoutId=function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.layoutId:null};
_.H.onCompanionClicked=function(X){this.data&&(X.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.sl(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.H.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var X=_.sW(),t=this.getLayoutId(),G=this.data.clickToAdvSiteEndpoint;X&&t&&_.A("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?X.getPlayerPromise().then(function(y){(new _.Ry(y)).executeCommand(G,t)}):_.Yt(this.hostElement,"yt-navigate",{endpoint:G})}};
_.H.sendTrackingPings=function(X){if(X&&X.length!==0&&X[0].loggingUrls&&(X=X[0].loggingUrls.map(this.getBaseUrl)))for(var t=0;t<X.length;t++)_.HO(X[t])};
_.H.getBaseUrl=function(X){return X.baseUrl||""};
_.ke.Object.defineProperties(ku.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var X=_.GA("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.interactionLoggingClientData:null}}});
ku.prototype.onCompanionClicked=ku.prototype.onCompanionClicked;ku.prototype.dataChanged=ku.prototype.dataChanged;ku.JSC$22551_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Qf("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ku.prototype,"data",void 0);_.E([_.rt("#title"),_.U("design:type",HTMLElement)],ku.prototype,"shopTitle",void 0);
_.E([_.U0("data.impressionEndpoints"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ku.prototype,"dataChanged",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],ku.prototype,"interactionLoggingClientData",null);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],ku.prototype,"onCompanionClicked",null);
_.E([_.p({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],ku);
_.N(ku,"ytd-shopping-companion-renderer",function(){if(P21!==void 0)return P21;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return P21=X},{mode:1});_.DW(_.Fp(function(X){var t=X.data;X=_.gS({visibilityCallback:function(y){var w,z=(w=t().interaction)==null?void 0:w.onFirstVisible;y&&z&&_.JH(z)},
showOption:_.FF});var G=_.ny(function(){return t().interaction},QnH);
_.im(function(){var y,w;w=(w=_.GA("yt.www.ads.eventcache.getLastCompanionData"))?(w=w())&&w.onLayoutVisibleCallback:null;(y=w)==null||y()});
return _.k("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.NI(function(y){_.D0(y.currentTarget,"yt-refit-popups-action")}),
el:_.T7(X,G),"aria-label":function(){var y,w;return(y=t().interaction)==null?void 0:(w=y.accessibility)==null?void 0:w.label}},_.k("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.k(_.M7,{data:function(){return t().adImage}},{adImageViewModel:function(y){return _.k(_.rf,{data:y.data,
targetHeight:80,customCommandResolver:QnH})}})),_.k("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.k("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.k(_.M7,{data:function(){return t().adBadge}},{adBadgeViewModel:function(y){return _.k(_.he,{data:y.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.k("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.k(_.M7,{data:function(){return t().menu}},{buttonViewModel:_.QK}))))},"Cj"),"banner-image-layout-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;X=_.gS({visibilityCallback:function(y){var w,z=(w=t().interaction)==null?void 0:w.onFirstVisible;y&&z&&_.JH(z)},
showOption:_.FF});var G=_.ny(function(){return t().interaction},Iha);
_.im(function(){var y,w;w=(w=_.GA("yt.www.ads.eventcache.getLastCompanionData"))?(w=w())&&w.onLayoutVisibleCallback:null;(y=w)==null||y()});
return _.k("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.T7(X,G)},_.k("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.k(_.M7,{data:function(){return t().adImage}},{adImageViewModel:function(y){return _.k(_.rf,{data:y.data,
targetHeight:80,customCommandResolver:Iha})}})),_.k("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.k("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.k(_.M7,{data:function(){return t().adAvatarLockup}},{adAvatarLockupViewModel:function(y){return _.k(uHt,{data:y.data,
customCommandResolver:Iha})}})),_.k(_.M7,{data:function(){return t().adButton}},{adButtonViewModel:function(y){return _.k(_.Ae,{data:y.data,
customCommandResolver:Iha})}}),_.k("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.k(_.M7,{data:function(){return t().menu}},{buttonViewModel:_.QK}))))},"Dj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.bR}});var EVY={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"},dy=function(){var X=_.O.apply(this,arguments)||this;X.updateCompanionDataJobId=0;X.contentVideoId=null;X.player=null;X.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return X};
_.S(dy,_.O);_.H=dy.prototype;_.H.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:EVY}}};
_.H.attached=function(){var X=this,t=_.sW();t&&t.getPlayerPromise().then(function(G){X.getCachedDataAndListen(G)})};
_.H.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.H.updateRendererStamper=function(){var X={};if(this.data)for(var t in EVY)if(this.data[t]){X[t]=this.data[t];break}if(this.oneofRenderer!=void 0||Object.keys(X).length)this.oneofRenderer=X};
_.H.getCachedDataAndListen=function(X){var t=this.retrieveCachedCompanionData();t&&Object.keys(t).length&&this.receiveCompanionData(t);this.ytPlayerListenerBehavior.listenToPlayerEvent(X,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=X};
_.H.retrieveCachedCompanionData=function(){return _.tA.yt&&_.tA.yt.www&&_.tA.yt.www.ads&&_.tA.yt.www.ads.eventcache&&_.tA.yt.www.ads.eventcache.getLastCompanionData?_.tA.yt.www.ads.eventcache.getLastCompanionData():null};
_.H.receiveCompanionData=function(X){X&&Object.keys(X).length?(this.contentVideoId=X.contentVideoId,this.setCompanionData(X)):this.setCompanionData(X)};
_.H.setCompanionData=function(X){this.cancelPendingCompanionAdJobs();if(X){this.updateCompanionDataJobId=0;for(var t in EVY)EVY.hasOwnProperty(t)&&(this.data[t]=void 0);X.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",X.shoppingCompanionCarouselRenderer):X.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",X.imageCompanionAdRenderer):X.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",X.actionCompanionAdRenderer),_.D0(this.hostElement,
"yt-hide-unlimited-offer-module"),_.D0(this.hostElement,"yt-hide-tvfilm-offer-module")):X.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",X.bannerImageLayoutViewModel):X.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",X.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.H.dataChanged=function(){var X=this,t=_.sW();t?t.getPlayerPromise().then(function(G){X.contentVideoId&&G.getVideoUrl().includes("v="+X.contentVideoId)||(X.cancelPendingCompanionAdJobs(),X.updateRendererStamper())}):_.yQ(Error("wo"))};
_.H.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.vz.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.H.handleCompanionAdClicked=function(X,t){this.player.onAdUxClicked(X,t);this.player.pauseVideo()};
dy.prototype.dataChanged=dy.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],dy.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],dy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],dy.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dy.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],dy.prototype,"oneofRenderer",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dy.prototype,"dataChanged",null);_.E([_.p({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],dy);
_.N(dy,"ytd-companion-slot-renderer",function(){if(rQB!==void 0)return rQB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return rQB=X},{mode:_.Cz("kevlar_poly_si_batch_j067")?
1:2});var URt;var eE=function(){return _.O.apply(this,arguments)||this};
_.S(eE,_.O);eE.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
eE.prototype.dataChanged=eE.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eE.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],eE.prototype,"companionSlotData",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eE.prototype,"dataChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],eE);
_.N(eE,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(URt!==void 0)return URt;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return URt=X},{mode:1});var mRN;var jE=function(){var X=_.O.apply(this,arguments)||this;X.skinnyMode=!1;X.COMPACT_EVENT_COUNT=4;X.onShelfToggleButtonTap=function(){X.logTap(X.data);X.showingMore=!X.showingMore};
X.onShelfToggleButtonFocus=function(){X.showingMore||(X.logTap(X.data),X.showingMore=!0,_.V8(X,function(){var t=X.COMPACT_EVENT_COUNT-1,G;(G=_.Sm(X.hostElement).querySelector("#event-"+t))==null||G.focus()}))};
return X};
_.S(jE,_.O);_.H=jE.prototype;_.H.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.H.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.H.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Ik(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Ik(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Ik(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Ik(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Ik(this.infoTooltip,this.infoTooltip.hide))};
_.H.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Ik(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Ik(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Ik(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Ik(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Ik(this.infoTooltip,this.infoTooltip.hide))};
_.H.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)};
_.H.onShowingMoreChanged=function(){var X;this.showingMoreChanged((X=this.showingMore)!=null?X:!1)};
_.H.showingMoreChanged=function(X){var t=this.get("data.events")||[];this.set("restEvents",t.slice(1,X?t.length:this.COMPACT_EVENT_COUNT).map(function(G){return G.ticketEventRenderer}));
t.slice(0,X?t.length:this.COMPACT_EVENT_COUNT).forEach(function(G){var y=_.lw();G=G.ticketEventRenderer.trackingParams;_.a4()&&y&&G&&(G=_.i$(G),y&&_.HK(y,G))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.H.computeAriaLabel=function(X){return X.subtitle1+", "+X.subtitle2};
_.H.logTap=function(X){_.a4()&&this.ytRendererBehavior.logExplicitClick(X)};
_.H.isKeyboardAction=function(X){return this.get("detail.x",X)===0&&this.get("detail.y",X)===0};
_.H.onFirstEventTap=function(X){X.target&&this.handleTap(X.target,this.firstEvent,this.isKeyboardAction(X))};
_.H.onTicketLinkTap=function(X){X.target&&this.handleTap(X.target,X.model.item,this.isKeyboardAction(X))};
_.H.handleTap=function(X,t,G){if(t.buttonCommand)if(t.hasMultipleOffers)Object.assign(_.Y(t.buttonCommand,_.iY),{properties:{source:G?"keyboard":"tap"}}),this.logTap(t),this.popupPositionTarget=X,_.Z0(this.hostElement,[t.buttonCommand],this.hostElement);else{var y;if((y=_.Y(t.buttonCommand,_.zj))==null?0:y.url)this.logTap(t),_.zc(window,_.Y(t.buttonCommand,_.zj).url)}};
jE.prototype.onShowingMoreChanged=jE.prototype.onShowingMoreChanged;jE.prototype.dataChanged=jE.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],jE.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],jE.prototype,"firstEvent",void 0);_.E([_.K(),_.U("design:type",Object)],jE.prototype,"restEvents",void 0);_.E([_.K(),_.U("design:type",String)],jE.prototype,"imageUrl",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],jE.prototype,"showingMore",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],jE.prototype,"canShowMore",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],jE.prototype,"skinnyMode",void 0);_.E([_.K(),_.U("design:type",HTMLElement)],jE.prototype,"popupPositionTarget",void 0);_.E([_.rt("#banner-info-tooltip"),_.U("design:type",Object)],jE.prototype,"infoTooltip",void 0);
_.E([_.rt("#info-container"),_.U("design:type",HTMLElement)],jE.prototype,"infoContainer",void 0);_.E([_.rt("#shelf-toggler"),_.U("design:type",HTMLElement)],jE.prototype,"shelfToggleButton",void 0);_.E([_.rt("#separator"),_.U("design:type",HTMLDivElement)],jE.prototype,"separator",void 0);_.E([_.K(),_.U("design:type",String)],jE.prototype,"shelfTogglerLabelText",void 0);_.E([_.K(),_.U("design:type",String)],jE.prototype,"shelfTogglerIcon",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],jE.prototype,"dataChanged",null);_.E([_.U0("showingMore"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],jE.prototype,"onShowingMoreChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],jE);
_.N(jE,"ytd-ticket-shelf-renderer",function(){if(mRN!==void 0)return mRN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return mRN=X},{mode:1});var Rvt;var iT_;var gy=function(){return _.O.apply(this,arguments)||this};
_.S(gy,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gy.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],gy);
_.N(gy,"ytd-comments-entry-point-message-renderer",function(){if(iT_!==void 0)return iT_;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return iT_=X},{mode:1});var La_;var FI=function(){return _.O.apply(this,arguments)||this};
_.S(FI,_.O);_.ke.Object.defineProperties(FI.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.teaserAvatar)}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],FI.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],FI.prototype,"hasAvatar",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],FI);
_.N(FI,"ytd-comments-entry-point-teaser-renderer",function(){if(La_!==void 0)return La_;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return La_=X},{mode:1});var vVg;var Tf=function(){return _.O.apply(this,arguments)||this};
_.S(Tf,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Tf.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Tf);
_.N(Tf,"ytd-comments-simplebox-renderer",function(){if(vVg!==void 0)return vVg;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return vVg=X},{mode:1});var A5=function(){var X=_.O.apply(this,arguments)||this;X.fullHeight=!_.A("comment_teaser_full_height_kill_switch")&&_.A("kevlar_watch_grid");return X};
_.S(A5,_.O);A5.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"}}}};
A5.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
A5.prototype.onTap=function(){var X=this.tapCommand;X&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(X))};
A5.prototype.onKeyUp=function(X){if(X.keyCode===13)this.onTap()};
_.ke.Object.defineProperties(A5.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null?0:X.onTap)return this.data.onTap;var t,G;if(((t=this.data)==null?0:t.teaserContent)||((G=this.data)==null?0:G.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)!=null&&X.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
A5.prototype.onKeyUp=A5.prototype.onKeyUp;A5.prototype.onTap=A5.prototype.onTap;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],A5.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],A5.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],A5.prototype,"fullHeight",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],A5.prototype,"tapCommand",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],A5.prototype,"simpleboxPlaceholder",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],A5.prototype,"hasSimpleboxPlaceholder",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],A5.prototype,"simpleboxAvatar",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],A5.prototype,"teaserContent",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],A5.prototype,"hasTeaserContent",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],A5.prototype,"teaserAvatar",null);
_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],A5.prototype,"hasTeaserAvatar",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],A5.prototype,"messageText",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],A5.prototype,"contentRenderer",null);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],A5.prototype,"hasContents",null);
_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],A5.prototype,"hasContentRenderer",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],A5.prototype,"onTap",null);_.E([_.WW("keypress"),_.U("design:type",Function),_.U("design:paramtypes",[_.c6]),_.U("design:returntype")],A5.prototype,"onKeyUp",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],A5);
_.N(A5,"ytd-comments-entry-point-header-renderer",function(){if(Rvt!==void 0)return Rvt;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Rvt=X},{mode:1});var aHB;_.A("web_enable_sink_animated_rolling_character_and_number")?_.DW(_.rF4,"yt-animated-rolling-number",{props:{numberText:_.bR,numberValue:_.bR,heightPx:_.bR,fontSizeMultiplier:_.bR,shouldAnimate:_.bR,forceRollUp:_.bR}}):_.up(_.Hx6,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var lHk=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),xRN={numberText:"",heightPx:2*lHk,shouldAnimate:!1},Yu=function(){var X=_.O.apply(this,arguments)||this;X.usingAnimatedComponents=!0;X.wasDetailed=!1;X.JSC$22588_browserSupportsAnimation=_.A("web_supports_animations_api");X.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};X.detailed=!1;X.shouldAnimate=!1;X.viewCountProps=xRN;X.dateTextProps=
xRN;X.metadataBadgesInDescription=_.A("web_metadata_badges_in_description");return X};
_.S(Yu,_.O);_.H=Yu.prototype;_.H.resetAnimationState=function(){this.shouldAnimate=!1};
_.H.updateDynamicMetadata=function(){if(this.JSC$22588_browserSupportsAnimation){if(!this.detailed){var X,t,G,y;var w=(X=this.videoPrimaryInfoRenderer)==null?void 0:(t=X.viewCount)==null?void 0:(G=t.videoViewCountRenderer)==null?void 0:(y=G.extraShortViewCount)==null?void 0:y.simpleText;var z,B,V,b;var e=(z=this.videoPrimaryInfoRenderer)==null?void 0:(B=z.viewCount)==null?void 0:(V=B.videoViewCountRenderer)==null?void 0:(b=V.shortViewCount)==null?void 0:b.simpleText}if(!e){var g,F,T,D;w=(g=this.videoPrimaryInfoRenderer)==
null?void 0:(F=g.viewCount)==null?void 0:(T=F.videoViewCountRenderer)==null?void 0:(D=T.unlabeledViewCountValue)==null?void 0:D.simpleText;var h,u,W,c;e=(h=this.videoPrimaryInfoRenderer)==null?void 0:(u=h.viewCount)==null?void 0:(W=u.videoViewCountRenderer)==null?void 0:(c=W.viewCount)==null?void 0:c.simpleText}var P,l,R;X=Number((P=this.videoPrimaryInfoRenderer)==null?void 0:(l=P.viewCount)==null?void 0:(R=l.videoViewCountRenderer)==null?void 0:R.originalViewCount);var L,x;P=(L=this.videoPrimaryInfoRenderer)==
null?void 0:(x=L.relativeDateText)==null?void 0:x.simpleText;var w6;L=!((w6=this.videoPrimaryInfoRenderer)==null||!w6.relativeDateText);if(w&&e&&X&&(P||!L)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;w6=e.split(new RegExp("("+w+")"));w=P0T(w6[0]);var BY;e={numberText:(BY=w6[1])!=null?BY:"",numberValue:X,heightPx:2*lHk,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var kJ;BY=((kJ=w6[2])!=null?kJ:"")+"  ";this.setViewCount(e,w,P0T(BY));
if(!this.detailed&&L){w=P.split(/(\d+)/);kJ=P0T(w[0]);var Ss;BY={numberText:(Ss=w[1])!=null?Ss:"",heightPx:2*lHk,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var C_;Ss=((C_=w[2])!=null?C_:"")+"  ";this.setDateText(BY,kJ,P0T(Ss))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.H.setViewCount=function(X,t,G){_.bu(t)!==_.bu(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=t);this.viewCountProps.numberText!==(X==null?void 0:X.numberText)&&(this.viewCountProps=X||xRN);_.bu(G)!==_.bu(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=G)};
_.H.setDateText=function(X,t,G){_.bu(t)!==_.bu(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=t);this.dateTextProps.numberText!==(X==null?void 0:X.numberText)&&(this.dateTextProps=X||xRN);_.bu(G)!==_.bu(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=G)};
_.H.onYtUpdateViewershipAction=function(X){this.videoPrimaryInfoRenderer&&(_.Y(X,muN).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.Y(X,muN).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.Y(X,muN).viewCount)))};
_.H.onYtUpdateDateTextAction=function(X){if(this.videoPrimaryInfoRenderer){X=_.Y(X,_.EuT).dateText;this.shouldAnimate=!0;var t;((t=this.videoPrimaryInfoRenderer)==null?0:t.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",X):this.set("videoPrimaryInfoRenderer.dateText",X)}};
_.ke.Object.defineProperties(Yu.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Nsr(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.bu(Nsr(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.bu(this.viewCountPreNumberText),this.viewCountProps.numberText,_.bu(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.bu(this.dateTextPreNumberText),this.dateTextProps.numberText,_.bu(this.dateTextPostNumberText)].join("")}}});
Yu.prototype.updateDynamicMetadata=Yu.prototype.updateDynamicMetadata;Yu.prototype.resetAnimationState=Yu.prototype.resetAnimationState;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Yu.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Yu.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Yu.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Yu.prototype,"detailed",void 0);_.E([_.K(),_.U("design:type",Object)],Yu.prototype,"shouldAnimate",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Yu.prototype,"viewCountPreNumberText",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Yu.prototype,"viewCountProps",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Yu.prototype,"viewCountPostNumberText",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Yu.prototype,"dateTextPreNumberText",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Yu.prototype,"dateTextProps",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Yu.prototype,"dateTextPostNumberText",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Yu.prototype,"metadataBadgesInDescription",void 0);_.E([_.C("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.U("design:type",Object),_.U("design:paramtypes",[])],Yu.prototype,"infoText",null);
_.E([_.C("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.U("design:type",String),_.U("design:paramtypes",[])],Yu.prototype,"descriptionInfoTooltipText",null);_.E([_.C("detailed"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Yu.prototype,"showDescriptionInfoTooltip",null);
_.E([_.C("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.U("design:type",String),_.U("design:paramtypes",[])],Yu.prototype,"animatedViewCountAccessibilityLabel",null);_.E([_.C("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.U("design:type",String),_.U("design:paramtypes",[])],Yu.prototype,"animatedDateTextAccessibilityLabel",null);
_.E([_.cW("videoPrimaryInfoRenderer"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Yu.prototype,"resetAnimationState",null);_.E([_.cW("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Yu.prototype,"updateDynamicMetadata",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Yu);
_.N(Yu,"ytd-watch-info-text",function(){if(aHB!==void 0)return aHB;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return aHB=X},{mode:1});var fHY;var Mqt="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var XtB=_.Fp(function(X){var t=X.data;var G=X.setTapCommand;_.Em(function(){var y=_.wr(t().onTap);G(y)},"X4onJd");
return _.k("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.k(_.M7,{data:function(){return t().avatar}},{avatarViewModel:_.al}),_.k("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.k("span",null,function(){return t().simpleboxText})))},"Ej");var $xk=_.Fp(function(X){return _.k("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.k(_.d,{cond:function(){return _.Y(X.data().avatar,_.Hv)},
then:function(t){return _.k(_.al,{data:t,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.k("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.k(_.eh,{text:function(){return X.data().teaserText}})))},"Fj");var tBN=_.Fp(function(X){var t=X.data;var G=X.setTapCommand;_.Em(function(){var y=_.wr(t().onTap);G(y)},"PmAol");
return _.k("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.k(_.M7,{data:function(){return t().teasers}},{commentsEntryPointTeaserViewModel:$xk}))},"Gj");var GYY=_.Fp(function(X){var t=X.data;var G=X.setTapCommand;_.Em(function(){var y=_.wr(t().onTap);G(y)},"Nh3Hjd");
return _.k("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.k(_.eh,{text:function(){return t().messageText}}))},"Hj");var yMN=_.Fp(function(X){var t=X.data;var G=X.setTapCommand;var y=X.isDisabled;_.Em(function(){var w=(y==null?0:y())?void 0:_.wr(t().onTap);G(w)},"omeiWe");
return _.k("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.k(_.mw,{icon:function(){return t().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.k(_.d,{cond:function(){return t().image},
then:function(w){return _.k(_.gr,{data:w,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.k(_.eh,{text:function(){return t().text},
className:function(){return t().image||t().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.k(_.M7,{data:function(){return t().button}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:y==null?void 0:y()}}})}}))},"Ij");var wtY=_.Fp(function(X){var t=X.data;var G=X.itemIndex;var y=X.selectedIndex;var w=X.indexUpdatedCallback;var z=X.observer;X=X.title;var B=_.nl("yt-carousel-item-view-model",function(F){_.A("web_metadata_carousel_elref_bugfix")&&z&&z().observe(F)}),V=function(F){G()===y()&&w(F)},b=_.w5(eSB),e=_.w5(_.fLG),g=function(){var F,T,D;
return((F=t())==null?void 0:F.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!b()||((T=t())==null?void 0:T.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&e().includes("PAposts_by_host")||((D=t())==null?void 0:D.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&e().includes("PAyouchat")};
_.LY(function(){_.A("web_metadata_carousel_elref_bugfix")||z&&z().observe(B.value)});
return _.k("yt-carousel-item-view-model",{el:B,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":X},_.k(_.M7,{data:function(){var F,T;return(T=(F=_.Y(t().carouselItem,nuH))==null?void 0:F.textCarousel)!=null?T:t().carouselItem}},{textCarouselItemViewModel:function(F){return _.k(yMN,{data:F.data,
setTapCommand:V,isDisabled:g})},
commentTeaserCarouselItemViewModel:function(F){return _.k(tBN,{data:F.data,setTapCommand:V})},
commentInputBoxCarouselItemViewModel:function(F){return _.k(XtB,{data:F.data,setTapCommand:V})},
commentsEntryPointMessageViewModel:function(F){return _.k(GYY,{data:F.data,setTapCommand:V})}}))},"Jj");var zt_=_.Fp(function(X){var t=X.numDots;var G=X.activeIndex;return _.k("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.k(_.pY,{each:function(){return Array.from({length:t()})},
keyBy:"INDEX"},function(y,w){return _.k("div",{class:function(){var z={};return _.pX("ytCarouselDotsShapeDot",(z.ytCarouselDotsShapeDotActive=w===G(),z))}})}))},"Kj");var H1j=_.Fp(function(X){var t=X.data;var G=X.handleCarouselNavigation;var y=X.numItems;var w=X.selectedIndex;var z=function(){return{disabled:w()===0}},B=function(){return{disabled:w()===y()-1}};
return _.k("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.k("div",null,_.k("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return t().title}),_.k(_.d,{cond:function(){return t().subtitle},
then:function(V){return _.k("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return t().subtitleAccessibilityText}},V)}})),_.k(_.d,{cond:function(){return y()>1},
then:function(){return _.k("div",{class:"ytCarouselTitleViewModelNavigation"},_.k(zt_,{numDots:y,activeIndex:w}),_.k(_.d,{cond:function(){return t().previousButton},
then:function(V){return _.k(_.M7,{data:V},{buttonViewModel:function(b){return _.k(_.QK,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return G(-1)},
buttonOverrides:z})}})}}),_.k(_.d,{cond:function(){return t().nextButton},
then:function(V){return _.k(_.M7,{data:V},{buttonViewModel:function(b){return _.k(_.QK,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return G(1)},
buttonOverrides:B})}})}}))}}))},"Lj");_.DW(_.Fp(function(X){var t=X.data;var G,y=_.nl("yt-video-metadata-carousel-view-model"),w=_.nl("div",function(L){if(_.A("web_metadata_carousel_elref_bugfix")){var x=function(){var w6=L.offsetWidth*u(),BY=24*(u()-1);T(w6+BY)};
x();window.ResizeObserver&&(G=new ResizeObserver(x),G.observe(L))}}),z=_.Md("HTML_DIR")==="rtl",B=!1,V=0,b=0;
X=_.J(_.sm(0,void 0,"f4aYxe"));var e=X.next().value,g=X.next().value;X=_.J(_.sm(0,void 0,"kU9O9"));var F=X.next().value,T=X.next().value;X=_.J(_.sm(!1,void 0,"GqphDd"));var D=X.next().value,h=X.next().value,u=function(){var L,x,w6;return(w6=(L=t())==null?void 0:(x=L.carouselTitles)==null?void 0:x.length)!=null?w6:0},W=function(){w.value&&w.value.scrollLeft!==V&&g((z?w.value.scrollLeft<V:w.value.scrollLeft>V)?Math.min(e()+1,u()-1):Math.max(e()-1,0))},c;
window.IntersectionObserver&&(c=new IntersectionObserver(function(L){L=_.J(L);for(var x=L.next();!x.done;x=L.next())if(x.value.isIntersecting){if(B){B=!1;break}W()}else g(b)},{threshold:.2}));
_.Em(function(){if(w.value){var L=(z?-1:1)*(F()/u()+12)*(D()&&c?b:e());typeof w.value.scrollTo==="function"?w.value.scrollTo({left:L,behavior:"smooth"}):w.value.scrollLeft=L;V=L;b=D()&&c?b:e()}},"ZP1VMb");
var P,l=function(L){P=L};
_.LY(function(){if(!_.A("web_metadata_carousel_elref_bugfix")){var L=function(){var w6=w.value.offsetWidth*u(),BY=24*(u()-1);T(w6+BY)};
L();if(window.ResizeObserver){var x=new ResizeObserver(L);x.observe(w.value);_.Um(function(){x.disconnect();c&&c.disconnect()})}}});
_.Um(function(){if(_.A("web_metadata_carousel_elref_bugfix")){var L;(L=G)==null||L.disconnect();var x;(x=c)==null||x.disconnect()}});
var R=function(L){L=e()+L;L>=0&&L<u()&&(B=!0,g(L))};
return _.k("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:y,"on:click":_.NI(function(L){if(_.GF(_.t4(L),y.value,["BUTTON".toString()])||!P)return!1;_.gw().resolve(_.F3).resolveCommand(P,{forceClickLogging:!0});return!1}),
"on:touchstart":_.NI(function(){h(!0);return!1}),
"on:touchend":_.NI(function(){c||W();h(!1);return!1}),
hidden:function(){var L,x;return!((L=t())==null?0:(x=L.carouselItems)==null?0:x.length)}},_.k("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.k(_.d,{cond:function(){return t().carouselTitles},
then:function(L){return _.k(_.M7,{data:function(){return L()[D()&&c?b:e()]}},{carouselTitleViewModel:function(x){return _.k(H1j,{data:x.data,
handleCarouselNavigation:R,numItems:u,selectedIndex:e})}})}})),_.k("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:w},_.k("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+F()+"px;"}},_.k(_.d,{cond:function(){return t().carouselItems},
then:function(L){return _.k(_.pY,{each:L},function(x,w6){return _.k(_.M7,{data:function(){return x}},{carouselItemViewModel:function(BY){return _.k(wtY,{data:BY.data,
itemIndex:w6,selectedIndex:e,indexUpdatedCallback:l,observer:c,title:function(){a:{var kJ=w6();var Ss,C_=(Ss=t())==null?void 0:Ss.carouselTitles;if(C_&&(kJ=C_[kJ])){var Fv;kJ=(Fv=_.Y(kJ,ByQ))==null?void 0:Fv.title;break a}kJ=void 0}return kJ}})}})})}}))))},"Mj"),"yt-video-metadata-carousel-view-model",{props:{data:_.bR}});var ogg=_.A("web_action_buttons_update_owner_width")?32:12,sX=function(){var X=_.O.apply(this,arguments)||this;X.isHovering=!1;X.enableColorSampling=_.A("web_delhi_colorful_sd");X.metadataBadgesInDescription=_.A("web_metadata_badges_in_description");X.descriptionCollapsed=!0;X.useFadedScrimDescription=_.A("kevlar_enable_faded_scrim_on_description");X.skinnyMode=!1;X.playlist=!1;X.isDark=document.documentElement.hasAttribute("dark");X.disableVideoOwnerOnTap=_.A("swatchie_video_owner_on_tap_ks");X.swatcherooDelayLoad=
_.A("swatcheroo_enable_ghost_cards");X.primaryMenuWidth=0;X.videoId="";X.titleHeadlineXs=_.A("web_watch_typography_title_headline_xs");X.titleHeadlineS=_.A("web_watch_typography_title_headline_s");X.titleHeadlineM=_.A("web_watch_typography_title_headline_m");X.titleHashtagBlackLinkified=_.A("web_title_hashtag_black_linkified");X.titleHashtagGreyLinkified=_.A("web_title_hashtag_grey_linkified");X.actionButtonsUpdateOwnerWidth=_.A("web_action_buttons_update_owner_width");X.shouldForceIconOnly=!1;X.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};X.isFullscreen=!1;X.isTheaterMode=!1;return X};
_.S(sX,_.O);_.H=sX.prototype;_.H.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.H.updateOwnerAndDescriptionPosition=function(){_.A("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.un(this.bottomRowElement,this.ownerElement)):(_.un(this.bottomRowElement,this.descriptionElement),_.un(this.topRowElement,this.ownerElement)))};
_.H.titleOnTap=function(X){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Fa(_.be(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||this.handleExpandDescriptionCommands()}};
_.H.videoOwnerOnTap=function(X){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Fa(_.be(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.H.detached=function(){var X=this,t;return _.n(function(G){(t=X.resizeObserver)==null||t.disconnect();_.W$(G)})};
_.H.maybeAttachResizeObserver=function(){var X=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.d2(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){X.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.H.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var X=this.hostElement.clientWidth,t=Math.max(this.largerItemWrap?400:350,X/2-ogg);if(_.A("web_action_buttons_update_owner_width")){var G;t=(((G=document.getElementById("owner"))==null?void 0:G.clientWidth)||0)+ogg}this.actionsOnSeparateLine=this.primaryMenuWidth>X-t?!0:!1}};
_.H.stripAttributedDescription=function(X){return{content:X.content.replace(/[\r\n]{2,}/g,"\n")}};
_.H.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.A("web_modern_buttons"),forceIconButton:!_.A("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:_.A("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"}}}};
_.H.videoPrimaryInfoRendererChanged=function(){var X;if((X=this.videoPrimaryInfoRenderer)==null?0:X.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.H.videoSecondaryInfoRendererChanged=function(){var X,t;(t=(X=this.descriptionInlineExpander).collapse)==null||t.call(X);this.descriptionExpandClientVe=_.ai(110509);this.descriptionCollapseClientVe=_.ai(110510);X=_.lw();t=_.a4();X&&t&&(_.A("combine_ve_grafts")?(_.Cc(_.Pj(),this.descriptionExpandClientVe,t),_.Cc(_.Pj(),this.descriptionCollapseClientVe,t)):_.zG(X,t,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.H.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.H.updateTopLevelIconsOnly=function(){var X=this;_.A("top_level_update_killswitch")||this.menu&&_.vz.addLowPriorityJob(function(){X.menu.topLevelIconsOnly=X.skinnyMode},_.At("swathceroo_delay_flexible_menu_update",100))};
_.H.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.A("web_action_buttons_minimize_subscribe")};
_.H.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.H.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.H.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.H.onYtTextInlineExpanderExpandedChanged=function(){if(!_.A("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var X,t;(t=(X=this.structuredDescriptionContentRendererElement).resize)==null||t.call(X)}};
_.H.onRenderStamperFinished=function(X){(X==null?void 0:X.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.H.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.H.onYtExpanderLessTapped=function(){var X,t=(X=this.videoSecondaryInfoRenderer)==null?void 0:X.showLessCommand;t&&this.ytComponentBehavior.resolveCommand(t)};
_.H.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.H.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.H.onDescriptionClick=function(X){if(!_.Fa(_.be(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.A("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.H.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.H.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.H.logCollapseClick=function(){var X=_.lw();X&&this.descriptionCollapseClientVe&&_.BK(X,this.descriptionCollapseClientVe)};
_.H.logExpandClick=function(){var X=_.lw();X&&this.descriptionExpandClientVe&&_.BK(X,this.descriptionExpandClientVe)};
_.H.collapseDescription=function(){this.descriptionCollapsed=!0};
_.H.scrollToTopOfContainer=function(){_.sl(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.H.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.H.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.H.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.H.resize=function(){if(this.descriptionInlineExpander){var X,t;(t=(X=this.descriptionInlineExpander).resize)==null||t.call(X)}else _.Mj(new _.NJ("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var G;(G=this.menu)==null||G.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.A("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.H.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var X,t,G,y,w=_.A("web_action_buttons_update_owner_width")?(G=(X=_.Sm(this.menu).querySelector("#button-shape"))==null?void 0:X.clientWidth)!=null?G:0:(y=(t=_.Sm(this.menu).querySelector("#button"))==null?void 0:t.clientWidth)!=null?y:0,z,B;X=((B=(z=_.Sm(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:z.clientWidth)!=null?B:0)+8+w;var V,b;w=(b=(V=_.Sm(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:V.children.length)!=null?b:2;X<=8*w||(this.primaryMenuWidth=X)}};
_.H.onYtUpdateTitleAction=function(X){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.Y(X,UuH).title)};
_.H.onYtUpdateDescriptionAction=function(X){if(X=_.Y(X,_.tVe)){var t,G=!((t=this.videoSecondaryInfoRenderer)==null||!t.attributedDescription);X.isEmpty||!X.description&&!X.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):X.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",X.attributedDescription):X.description&&(G?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.$I(X.description)):this.set("videoSecondaryInfoRenderer.description",X.description))}};
_.H.onYtDarkModeToggledAction=function(X){this.isDark=X};
_.H.registerPanel=function(){if(!_.A("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var X=_.A("web_watch_imax_theater_mode")&&this.isTheaterMode;X=_.A("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||X;var t=_.gw().resolve(_.mD);t&&!X&&t.registerPanel("engagement-panel-structured-description",this)}};
_.H.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.H.parseColorSamplingData=function(){var X;if(_.A("web_delhi_colorful_sd")&&((X=this.structuredDescriptionContentRenderer)==null?0:X.items)&&(X=this.structuredDescriptionContentRenderer.items.find(function(w){return!!_.Y(w,Qn)}))){var t,G;
this.hoverColor={lightTheme:(t=_.Y(X,Qn))==null?void 0:t.lightThemeColorPalette,darkTheme:(G=_.Y(X,Qn))==null?void 0:G.darkThemeColorPalette};var y;this.hoverText=(y=_.Y(X,Qn))==null?void 0:y.colorSampledDescriptionBodyText}};
_.H.updateHoverColor=function(){if(_.A("web_delhi_colorful_sd")){var X=this.hoverColor,t={},G;X=(G=this.isDark?X==null?void 0:X.darkTheme:X==null?void 0:X.lightTheme)!=null?G:{};G=_.J(Mqt);for(var y=G.next();!y.done;y=G.next()){y=y.value;var w=X[y];t["--yt-saturated-"+_.Q8(y)]=w?_.yY(w):"initial"}_.Kd(this.hostElement,t)}};
_.H.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.H.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.H.showPanel=function(X){this.expandDescription();var t=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;t.resize();var G,y=X==null?void 0:(G=X.sectionListEngagementPanelExtras)==null?void 0:G.scrollToItemSectionIdentifier;y?_.vz.addJob(function(){t==null||t.scrollToSection(y)},8):this.scrollToTopOfContainer()};
_.H.isVisible=function(){return!this.descriptionCollapsed};
_.H.getReloadContinuation=function(){};
_.H.hidePanel=function(){};
_.H.updatePanel=function(){};
_.ke.Object.defineProperties(sX.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var X;return _.A("web_delhi_colorful_sd")&&(X=this.structuredDescriptionContentRenderer)!=null&&X.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(t){return!_.Y(t,Qn)&&!_.Y(t,i2H)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.structuredDescriptionContentRendererComputed)!=null&&X.items){var t;X=_.J((t=this.structuredDescriptionContentRendererComputed)==null?void 0:t.items);for(t=X.next();!t.done;t=X.next())if(t=_.Y(t.value,_.MtP))return t}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.videoPrimaryInfoRenderer)==null?0:X.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return!!((X=this.videoSecondaryInfoRenderer)==null?0:(t=X.owner)==null?0:(G=t.videoOwnerRenderer)==null?0:G.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var X,t;if((X=this.videoSecondaryInfoRenderer)==null?0:(t=X.attributedDescription)==null?0:t.content){var G,y;return(y=this.stripAttributedDescription((G=this.videoSecondaryInfoRenderer)==null?void 0:G.attributedDescription))!=null?y:{runs:[]}}}if(_.A("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var w,z,B,V;return(V=(B=(w=this.videoSecondaryInfoRenderer)==
null?void 0:w.description)!=null?B:(z=this.videoSecondaryInfoRenderer)==null?void 0:z.attributedDescription)!=null?V:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=(X=this.videoSecondaryInfoRenderer)==null?void 0:X.headerRuns)!=null?t:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.commentsEntryPointHeaderRenderer)==null||!X.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.videoMetadataCarousel)==null||!X.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.At("swatchie_desc_lines",3):this.hasTeaserCarousel?_.At("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var X,t,G=Object.assign({},(X=this.videoSecondaryInfoRenderer)==null?void 0:(t=X.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(G&&G.rows&&G.collapsedItemCount!==void 0&&!(G.rows.length<=G.collapsedItemCount))return G.rows=G.rows.slice(G.collapsedItemCount),G.collapsedItemCount=0,G}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var X,t,G=Object.assign({},(X=this.videoSecondaryInfoRenderer)==null?void 0:(t=X.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(G&&G.rows&&G.collapsedItemCount!==void 0)return G.rows=G.rows.slice(0,G.collapsedItemCount),G.collapsedItemCount=G.rows.length,G}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var X,t;return!!((X=this.structuredDescriptionContentRendererComputed)==null?0:(t=X.items)==null?0:t.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 X;return(X=this.videoSecondaryInfoRenderer)==null?void 0:X.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.videoSecondaryInfoRenderer)==null?0:(t=X.owner)==null?0:(G=t.videoOwnerRenderer)==null?0:G.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y;return!!((X=this.videoPrimaryInfoRenderer)==null?0:(t=X.videoActions)==null?0:(G=t.menuRenderer)==null?0:(y=G.flexibleItems)==null?0:y.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.dr(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.dr(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var X=this;if(_.A("web_title_hashtag_grey_delinkified")){var t,G=_.RH.unsafeClone((t=this.videoPrimaryInfoRenderer)==null?void 0:t.title);(t=G==null?void 0:G.runs)&&t.forEach(function(y){if(y==null?0:y.navigationEndpoint)y.textColor=4284506208,X.isDark&&(y.textColor=4289374890)});
return G}return(G=this.videoPrimaryInfoRenderer)==null?void 0:G.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.A("web_title_hashtag_black_delinkified")||_.A("web_title_hashtag_grey_delinkified")}}});
sX.prototype.updateHoverColor=sX.prototype.updateHoverColor;sX.prototype.parseColorSamplingData=sX.prototype.parseColorSamplingData;sX.prototype.resetDescriptionState=sX.prototype.resetDescriptionState;sX.prototype.registerPanel=sX.prototype.registerPanel;sX.prototype.onYtExpanderLessTapped=sX.prototype.onYtExpanderLessTapped;sX.prototype.onYtExpanderMoreTapped=sX.prototype.onYtExpanderMoreTapped;sX.prototype.onRenderStamperFinished=sX.prototype.onRenderStamperFinished;
sX.prototype.onYtTextInlineExpanderExpandedChanged=sX.prototype.onYtTextInlineExpanderExpandedChanged;sX.prototype.onYtTextInlineExpanderCollapseClicked=sX.prototype.onYtTextInlineExpanderCollapseClicked;sX.prototype.onYtTextInlineExpanderExpandClicked=sX.prototype.onYtTextInlineExpanderExpandClicked;sX.prototype.moveActionsElement=sX.prototype.moveActionsElement;sX.prototype.updateShouldForceIconOnly=sX.prototype.updateShouldForceIconOnly;sX.prototype.updateTopLevelIconsOnly=sX.prototype.updateTopLevelIconsOnly;
sX.prototype.structuredDescriptionContentRendererChanged=sX.prototype.structuredDescriptionContentRendererChanged;sX.prototype.videoSecondaryInfoRendererChanged=sX.prototype.videoSecondaryInfoRendererChanged;sX.prototype.videoPrimaryInfoRendererChanged=sX.prototype.videoPrimaryInfoRendererChanged;sX.prototype.maybeUpdateActionsOnSeparateLine=sX.prototype.maybeUpdateActionsOnSeparateLine;sX.prototype.updateOwnerAndDescriptionPosition=sX.prototype.updateOwnerAndDescriptionPosition;
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],sX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],sX.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],sX.prototype,"ytdReduxBehavior",void 0);_.E([_.rt("#above-the-fold"),_.U("design:type",HTMLElement)],sX.prototype,"aboveTheFoldContainer",void 0);_.E([_.rt("#menu ytd-menu-renderer"),_.U("design:type",Object)],sX.prototype,"menu",void 0);_.E([_.rt("#description-inline-expander"),_.U("design:type",Object)],sX.prototype,"descriptionInlineExpander",void 0);
_.E([_.rt("#faded-structured-description"),_.U("design:type",Object)],sX.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.E([_.rt("#structured-description"),_.U("design:type",Object)],sX.prototype,"structuredDescriptionContentRendererElement",void 0);_.E([_.rt("#title"),_.U("design:type",HTMLElement)],sX.prototype,"titleElement",void 0);_.E([_.rt("#description"),_.U("design:type",HTMLElement)],sX.prototype,"descriptionElement",void 0);
_.E([_.rt("#description-interaction"),_.U("design:type",Object)],sX.prototype,"descriptionInteraction",void 0);_.E([_.rt("#owner"),_.U("design:type",HTMLElement)],sX.prototype,"ownerElement",void 0);_.E([_.rt("#top-row"),_.U("design:type",HTMLElement)],sX.prototype,"topRowElement",void 0);_.E([_.rt("#bottom-row"),_.U("design:type",HTMLElement)],sX.prototype,"bottomRowElement",void 0);_.E([_.rt("#actions"),_.U("design:type",HTMLElement)],sX.prototype,"actionsElement",void 0);
_.E([_.rt("#bottom-actions"),_.U("design:type",HTMLElement)],sX.prototype,"bottomActionsElement",void 0);_.E([_.rt("#ytd-watch-info-text"),_.U("design:type",Object)],sX.prototype,"watchInfoTextElement",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"videoSecondaryInfoRenderer",void 0);
_.E([_.K(),_.U("design:type",Object)],sX.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"videoMetadataCarousel",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.C("structuredDescriptionContentRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"structuredDescriptionContentRendererComputed",null);
_.E([_.K(),_.U("design:type",Object)],sX.prototype,"videoSummary",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"merchShelf",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"infoPanelBelowMetadata",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"hoverColor",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"hoverText",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"isHovering",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"enableColorSampling",void 0);_.E([_.C("structuredDescriptionContentRendererComputed"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"productShelf",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"metadataBadgesInDescription",void 0);_.E([_.C("videoPrimaryInfoRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"shouldHideBadges",null);
_.E([_.C("productShelf","descriptionCollapsed"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sX.prototype,"shouldShowProductShelf",null);_.E([_.K(),_.U("design:type",Boolean)],sX.prototype,"isWatchFlexy",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"descriptionCollapsed",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],sX.prototype,"useFadedScrimDescription",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"skinnyMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("videoSecondaryInfoRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"largerItemWrap",null);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"playlist",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"clarifyBox",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"playerAds",void 0);
_.E([_.K(),_.U("design:type",Boolean)],sX.prototype,"isDark",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],sX.prototype,"actionsOnSeparateLine",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"disableVideoOwnerOnTap",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"swatcherooDelayLoad",void 0);_.E([_.K(),_.U("design:type",Boolean)],sX.prototype,"suppressTopLevelMetadataRows",void 0);
_.E([_.K(),_.U("design:type",Object)],sX.prototype,"primaryMenuWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"videoId",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"titleHeadlineXs",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"titleHeadlineS",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"titleHeadlineM",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"titleHashtagBlackLinkified",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"titleHashtagGreyLinkified",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.E([_.K(),_.U("design:type",Object)],sX.prototype,"shouldForceIconOnly",void 0);
_.E([_.U0("skinnyMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"updateOwnerAndDescriptionPosition",null);_.E([_.U0("skinnyMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.E([_.C("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"descriptionText",null);_.E([_.C("videoSecondaryInfoRenderer.headerRuns"),_.U("design:type",Array),_.U("design:paramtypes",[])],sX.prototype,"headerRuns",null);
_.E([_.K({value:!1}),_.C("commentsEntryPointHeaderRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"hasTeaser",null);_.E([_.K({value:!1,reflectToAttribute:!0}),_.C("videoMetadataCarousel"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"hasTeaserCarousel",null);_.E([_.K({value:3}),_.C("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"descriptionMaxLines",null);
_.E([_.C("videoSecondaryInfoRenderer.metadataRowContainer"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"collapsibleMetadataRows",null);_.E([_.C("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"alwaysVisibleMetadataRows",null);
_.E([_.C("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sX.prototype,"hasInlineStructuredDescription",null);_.E([_.C("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sX.prototype,"showInlineStructuredDescription",null);
_.E([_.C("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"descriptionExpandCommand",null);_.E([_.C("videoSecondaryInfoRenderer.owner"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"videoOwnerCommand",null);_.E([_.K({reflectToAttribute:!0}),_.C("videoPrimaryInfoRenderer.videoActions"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sX.prototype,"flexMenuEnabled",null);
_.E([_.K({selector:_.Gz,reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"isFullscreen",void 0);_.E([_.K({selector:_.tS,reflectToAttribute:!0}),_.U("design:type",Object)],sX.prototype,"isTheaterMode",void 0);_.E([_.C("descriptionText","useFadedScrimDescription"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sX.prototype,"showAttributedStringDescription",null);
_.E([_.C("descriptionText","useFadedScrimDescription"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sX.prototype,"showFormattedStringDescription",null);_.E([_.C("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sX.prototype,"showFadedStructuredDescription",null);
_.E([_.U0("videoPrimaryInfoRenderer"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"videoPrimaryInfoRendererChanged",null);_.E([_.C("videoPrimaryInfoRenderer.title"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"videoTitle",null);_.E([_.C("videoPrimaryInfoRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],sX.prototype,"noEndpoints",null);
_.E([_.U0("videoSecondaryInfoRenderer"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"videoSecondaryInfoRendererChanged",null);_.E([_.cW("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"structuredDescriptionContentRendererChanged",null);
_.E([_.cW("skinnyMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"updateTopLevelIconsOnly",null);_.E([_.cW("skinnyMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"updateShouldForceIconOnly",null);_.E([_.cW("skinnyMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"moveActionsElement",null);
_.E([_.WW("yt-text-inline-expander-expand-clicked"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"onYtTextInlineExpanderExpandClicked",null);_.E([_.WW("yt-text-inline-expander-collapse-clicked"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.E([_.WW("yt-text-inline-expander-expanded-changed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],sX.prototype,"onRenderStamperFinished",null);
_.E([_.WW("yt-expander-more-tapped"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"onYtExpanderMoreTapped",null);_.E([_.WW("yt-expander-less-tapped"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"onYtExpanderLessTapped",null);
_.E([_.cW("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"registerPanel",null);_.E([_.cW("videoSecondaryInfoRenderer"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"resetDescriptionState",null);
_.E([_.cW("structuredDescriptionContentRenderer"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"parseColorSamplingData",null);_.E([_.cW("hoverColor","isDark"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sX.prototype,"updateHoverColor",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-watch-metadata"})],sX);
_.N(sX,"ytd-watch-metadata",function(){if(fHY!==void 0)return fHY;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return fHY=X},{mode:2});_.etg=function(X){_.po.call(this);this.JSC$22612_watchApi=X;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;JMg(this);BNY(this);ngk(this);VBW(this);b1Y(this);kYW(this);dxx(this)};
_.S(_.etg,_.po);var ngk=function(X){var t=function(){_.A("kevlar_is_pupi_enabled")||DD(X)};
X.JSC$22612_watchApi.getRoot().addEventListener("yt-player-updated",t);X.addOnDisposeCallback(function(){X.JSC$22612_watchApi.getRoot().removeEventListener("yt-player-updated",t)})},b1Y=function(X){if(_.A("kevlar_endscreen_auto_theater_mode")){var t=X.JSC$22612_watchApi.subscribeToActiveChanged(function(){jj_(X)},!1);
X.addOnDisposeCallback(t)}},JMg=function(X){var t,G,y,w,z;
_.n(function(B){if(B.nextAddress==1)return B.yield(X.JSC$22612_watchApi.playerApi,2);t=B.yieldResult;G=function(V){V=!!V;SE(X)&&(V=V?2:1,_.gz.getInstance().setState(V,!0,!1))};
y=function(V){V&&_.dyR(_.dV().getState())&&(_.sl(X.JSC$22612_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),X.temporaryTheaterMode=!0)};
w=function(V){_.A("kevlar_player_update_autonav_on_new_data")&&V.type==="newdata"&&(_.A("kevlar_is_pupi_enabled")||DD(X))};
z=function(V){X.onPlayerStateChange(V)};
_.A("kevlar_endscreen_auto_theater_mode")&&t.addEventListener("onAutonavCancelled",y);t.addEventListener("onAutonavChangeRequest",G);t.addEventListener("onVideoDataChange",w);t.addEventListener("onStateChange",z);X.addOnDisposeCallback(function(){t.removeEventListener("onAutonavChangeRequest",G);t.removeEventListener("onVideoDataChange",w);t.removeEventListener("onStateChange",z);_.A("kevlar_endscreen_auto_theater_mode")&&t.removeEventListener("onAutonavCancelled",y)});
_.W$(B)})},BNY=function(X){X.JSC$22612_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){X.autonavCancelledBySignal=!0;
_.A("kevlar_is_pupi_enabled")||DD(X)});
X.JSC$22612_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(t,G,y){G&&DD(X,y)});
X.JSC$22612_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){SE(X)&&_.gz.getInstance().setState(2,!0,!0)});
X.JSC$22612_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){SE(X)&&_.gz.getInstance().setState(1,!0,!0)});
X.addOnDisposeCallback(function(){X.JSC$22612_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");X.JSC$22612_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");X.JSC$22612_watchApi.unregisterActionHandler("yt-enable-autoplay-command");X.JSC$22612_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},VBW=function(X){var t=X.JSC$22612_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dxx(X)}),G=X.JSC$22612_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){kYW(X)});
X.addOnDisposeCallback(function(){X.JSC$22612_watchApi.unsubscribeByKey(t);X.JSC$22612_watchApi.unsubscribeByKey(G)})},dxx=function(X){X.autonavCancelledBySignal=!1;
_.A("kevlar_is_pupi_enabled")||DD(X)},kYW=function(X){var t=X.JSC$22612_watchApi.getWatchNextResponse(),G,y;
var w=(t=(y=_.Y(t==null?void 0:(w=t.playerOverlays)==null?void 0:(G=w.playerOverlayRenderer)==null?void 0:G.autonavToggle,_.yC4))==null?void 0:y.enabled)?2:1;_.A("kevlar_is_pupi_enabled")?_.gz.getInstance().setState(w,!1,!1):DD(X);_.A("web_persist_server_autonav_state_on_client")&&typeof t==="boolean"&&_.HmE(w===2)},SE=function(X){if(X.autonavCancelledBySignal)return!1;
var t,G,y,w;return!!((t=X.JSC$22612_watchApi.getWatchNextResponse())==null?0:(G=t.contents)==null?0:(y=G.twoColumnWatchNextResults)==null?0:(w=y.autoplay)==null?0:w.autoplay)};
_.etg.prototype.onPlayerStateChange=function(X){if(X===0){X=!_.gz.getInstance().isAutoplaySetExplicitly();var t=this.JSC$22612_watchApi.getWatchNextResponse(),G,y,w,z;t=_.Y(t==null?void 0:(G=t.contents)==null?void 0:(y=G.twoColumnWatchNextResults)==null?void 0:(w=y.autoplay)==null?void 0:(z=w.autoplay)==null?void 0:z.autoplayExplicitChoiceDialogRenderer,_.Ste);SE(this)&&X&&t&&_.Wj.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:t},popupType:"DIALOG"}})}else jj_(this)};
var jj_=function(X){X.temporaryTheaterMode&&(X.temporaryTheaterMode=!1,_.sl(X.JSC$22612_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},DD=function(X,t){t=t===void 0?!1:t;
var G;_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22612_watchApi.playerApi,2);G=y.yieldResult;SE(X)?G.setAutonavState(_.gz.getInstance().getState(),t):G.setAutonavState(1,t);_.W$(y)})};var ggY={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"};_.TNj=function(X){_.po.call(this);var t=this;this.JSC$22617_watchApi=X;var G=this.JSC$22617_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){FN_(t)});
this.addOnDisposeCallback(function(){t.JSC$22617_watchApi.unsubscribeByKey(G)});
FN_(this)};
_.S(_.TNj,_.po);var FN_=function(X){var t=X.JSC$22617_watchApi.getPlayerResponse(),G=X.JSC$22617_watchApi.getWatchNextResponse();if(!_.UC_(t==null?void 0:t.playabilityStatus,G==null?void 0:G.playerOverlays)){var y;var w=t==null?void 0:(y=t.playabilityStatus)==null?void 0:y.errorScreen}X.JSC$22617_watchApi.provideRenderingData("ERROR_SCREEN",w)};var AM_=_.Fp(function(X){var t=X.data;X=_.A("web_watch_video_details_hide_subtitle");var G=_.A("web_watch_video_details_single_line_title"),y=_.NI(function(){var V=t().onTap;V&&_.gw().resolve(_.F3).resolveCommand(V)}),w={},z={},B={};
return _.k("yt-player-overlay-video-details-renderer",{class:_.cl("ytPlayerOverlayVideoDetailsRendererHost",(w.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.A("web_watch_video_details_transparent_background"),w)),"on:click":y,role:"button"},_.k("h2",{class:_.cl("ytPlayerOverlayVideoDetailsRendererTitle",(z.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return G},z))},_.k(_.eh,{text:function(){return t().title}})),_.k("div",{class:_.cl("ytPlayerOverlayVideoDetailsRendererSubtitle",
(B.ytPlayerOverlayVideoDetailsRendererHideSubtitle=X,B))},_.k(_.eh,{text:function(){return t().subtitle}})))},"Nj");var h5={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},YiW=_.Fp(function(X){var t=X.data;var G=_.w5(_.Gz),y=_.A("web_watch_action_bar_resize_buttons"),w=_.A("delhi_modern_web_player_icons")&&!_.A("enable_web_delhi_icons"),z=function(){return y&&!G()?{size:"M"}:void 0};
X={};return _.k("yt-player-quick-action-buttons",{class:_.cl("ytPlayerQuickActionButtonsHost",(X.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!G()},X))},_.k(_.pY,{each:function(){if(w){var B=t();
B=JSON.parse(JSON.stringify(B));for(var V=_.J(B),b=V.next();!b.done;b=V.next()){var e=b.value,g=void 0;b=_.Y((g=_.Y(e,_.fe))==null?void 0:g.toggleButtonViewModel,_.as);var F=void 0;g=_.Y((F=_.Y(e,_.x_))==null?void 0:F.toggleButtonViewModel,_.as);F=_.Y(e,_.vk);e=_.Y(e,_.as);if(b)g=_.Y(b.defaultButtonViewModel,_.vk),b=_.Y(b.toggledButtonViewModel,_.vk),g&&g.iconName&&(g.iconName=h5[g.iconName]),b&&b.iconName&&(b.iconName=h5[b.iconName]);else if(g)b=_.Y(g.defaultButtonViewModel,_.vk),g=_.Y(g.toggledButtonViewModel,
_.vk),b&&b.iconName&&(b.iconName=h5[b.iconName]),g&&g.iconName&&(g.iconName=h5[g.iconName]);else if(F)F.iconName&&(F.iconName=h5[F.iconName]);else if(e){b=_.Y(e.defaultButtonViewModel,_.vk);g=_.Y(e.toggledButtonViewModel,_.vk);e=void 0;if((e=b)==null?0:e.iconName)b.iconName=h5[b.iconName];b=void 0;if((b=g)==null?0:b.iconName)g.iconName=h5[g.iconName]}}}else B=t();return B}},function(B){return _.k(_.M7,{data:function(){return B}},{buttonViewModel:function(V){return _.k(_.QK,{data:V.data,
buttonOverrides:z})},
likeButtonViewModel:function(V){return _.k(_.f8,{data:V.data,buttonShapeOverrideables:z,disableIconAnimation:!0})},
dislikeButtonViewModel:function(V){return _.k(_.xj,{data:V.data,buttonShapeOverrideables:z})},
toggleButtonViewModel:function(V){return _.k(_.Lv,{data:V.data,buttonShapeOverrides:z})}})}))},"Oj");_.DxN=function(X){_.po.call(this);var t=this;this.JSC$22622_watchApi=X;X=_.J(_.sm({},void 0,"ufFdVc"));this.quickActionsViewModel=X.next().value;this.setQuickActionsViewModel=X.next().value;X=_.J(_.sm({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=X.next().value;this.setPlayerOverlayVideoDetailsRenderer=X.next().value;var G=this.JSC$22622_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){sjN(t)});
this.addOnDisposeCallback(function(){t.JSC$22622_watchApi.unsubscribeByKey(G)});
sjN(this)};
_.S(_.DxN,_.po);
var sjN=function(X){var t,G,y,w,z,B,V,b,e,g,F,T,D,h;_.n(function(u){if(u.nextAddress==1)return u.yield(X.JSC$22622_watchApi.playerApi,2);t=u.yieldResult;G=X.JSC$22622_watchApi.getWatchNextResponse();z=(y=G)==null?void 0:(w=y.playerOverlays)==null?void 0:w.playerOverlayRenderer;V=_.Y((B=z)==null?void 0:B.fullscreenQuickActionsBar,_.zU4);(e=(b=X).setQuickActionsViewModel)==null||e.call(b,V||{});V&&Sik(X,t);T=(g=z)==null?void 0:(F=g.videoDetails)==null?void 0:F.playerOverlayVideoDetailsRenderer;(h=(D=
X).setPlayerOverlayVideoDetailsRenderer)==null||h.call(D,T||{});T&&htM(X,t);_.W$(u)})},Sik=function(X,t){if(!X.quickActionButtonsContainer){X.quickActionButtonsContainer=document.createElement("div");
t.setFullscreenQuickActions(X.quickActionButtonsContainer);var G=function(){return X.quickActionsViewModel().quickActionButtons||[]},y=_.Ea(X.quickActionButtonsContainer,function(){return _.k(YiW,{data:G})});
X.addOnDisposeCallback(function(){t.setFullscreenQuickActions(void 0);y()})}},htM=function(X,t){if(!X.playerOverlayVideoDetailsRendererContainer){X.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
t.setPlayerOverlayVideoDetailsRenderer(X.playerOverlayVideoDetailsRendererContainer);var G=_.Ea(X.playerOverlayVideoDetailsRendererContainer,function(){return _.k(AM_,{data:X.playerOverlayVideoDetailsRenderer})});
X.addOnDisposeCallback(function(){t.setPlayerOverlayVideoDetailsRenderer(void 0);G()})}};_.ZD=function(X){_.po.call(this);var t=this;this.JSC$22627_watchApi=X;this.JSC$22627_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;X=_.rz(_.dV(),_.Gz,function(G){t.onFullscreenChanged(G)});
this.addOnDisposeCallback(X);X=_.rz(_.dV(),_.DC,function(G){t.onWatchScroll(G)});
this.addOnDisposeCallback(X);_.A("kevlar_watch_while_v2")&&(X=_.rz(_.dV(),_.fg,function(G){Z1W(t,G)}),this.addOnDisposeCallback(X));
qi_(this);C_Y(this);KN1();this.onWatchScroll(_.DC(_.dV().getState()));_.X3("START_IN_FULL_WINDOW_MODE")&&this.JSC$22627_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.S(_.ZD,_.po);var qi_=function(X){X.JSC$22627_watchApi.registerActionHandler("yt-fullscreen-change-action",function(t){var G=X.JSC$22627_watchApi.isActive();t&&!G||_.dV().dispatch(_.Dl({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!t}}))});
X.addOnDisposeCallback(function(){X.JSC$22627_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},C_Y=function(X){var t,G;
_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22627_watchApi.playerApi,2);t=y.yieldResult;G=function(){X.onFullerscreenEduClicked()};
t.addEventListener("onFullerscreenEduClicked",G);X.addOnDisposeCallback(function(){t.removeEventListener("onFullerscreenEduClicked",G)});
_.W$(y)})};
_.ZD.prototype.onFullscreenChanged=function(X){var t=this,G;return _.n(function(y){if(y.nextAddress==1)return t.isFullscreen=!!_.gk(),y.yield(t.JSC$22627_watchApi.playerApi,2);G=y.yieldResult;t.JSC$22627_miniplayerActive||G.setFauxFullscreen(t.isFullscreen);if(X&&(t.JSC$22627_watchApi.focusOnPlayer(),!t.fullerscreenEduButtonShownThisPlayback)){t.fullerscreenEduButtonShownThisPlayback=!0;var w=_.O2("yt-fullerscreen-edu-button-shown-count")||0;_.Ku("yt-fullerscreen-edu-button-shown-count",w+1,31536E3);
t.updateFullerscreenEduButtonSubtleModeState()}_.W$(y)})};
var Z1W=function(X,t){var G;_.n(function(y){if(y.nextAddress==1)return X.JSC$22627_miniplayerActive=t,y.yield(X.JSC$22627_watchApi.playerApi,2);G=y.yieldResult;G.setFauxFullscreen(!X.JSC$22627_miniplayerActive&&X.isFullscreen);_.W$(y)})};
_.ZD.prototype.onWatchScroll=function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1)return _.A("external_fullscreen_with_edu")?w.yield(t.JSC$22627_watchApi.playerApi,2):w.return();G=w.yieldResult;y=X<=0;t.shouldShowFullerscreenEdu!==y&&(t.shouldShowFullerscreenEdu=y,G.updateFullerscreenEduButtonVisibility(!t.shouldShowFullerscreenEdu));_.W$(w)})};
_.ZD.prototype.onFullerscreenEduClicked=function(){this.JSC$22627_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var X=_.O2("yt-fullerscreen-edu-button-click-count")||0;_.Ku("yt-fullerscreen-edu-button-click-count",X+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.ZD.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var X=this,t,G,y,w,z,B;return _.n(function(V){if(V.nextAddress==1)return t=_.O2("yt-fullerscreen-edu-button-click-count")||0,G=_.O2("yt-fullerscreen-edu-button-shown-count")||0,y=_.At("external_fullscreen_button_click_threshold"),w=_.At("external_fullscreen_button_shown_threshold"),z=t>=y||G>=w,V.yield(X.JSC$22627_watchApi.playerApi,2);B=V.yieldResult;B.updateFullerscreenEduButtonSubtleModeState(z);_.W$(V)})};
_.ZD.prototype.disposeInternal=function(){_.po.prototype.disposeInternal.call(this);var X=_.gk();_.A("kevlar_exit_fullscreen_leaving_watch")&&X&&_.Fi(X)};
var KN1=function(){if(_.A("web_watch_add_viewport_meta_tag")){var X=document.querySelector("meta[name=viewport]"),t=document.head;t&&!X&&(X=document.createElement("meta"),X.name="viewport",X.content="width=device-width, initial-scale=1.0, viewport-fit=cover",t.appendChild(X))}};_.qu=function(X){_.po.call(this);var t=this;this.JSC$22631_watchApi=X;this.jobId=0;this.pendingRequestId=void 0;var G=this.JSC$22631_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){O1M(t)});
this.addOnDisposeCallback(function(){t.JSC$22631_watchApi.unsubscribeByKey(G)});
O1M(this)};
_.S(_.qu,_.po);var ukk=function(X){_.vz.cancelJob(X.jobId);X.pendingRequestId=void 0},O1M=function(X){ukk(X);
var t=EaT(X.JSC$22631_watchApi.getWatchNextResponse());if(t){var G=250,y,w=(y=_.Y(t,_.yPR))==null?void 0:y.initialDelayMs;_.A("web_watch_updated_metadata_server_initial_delay")&&w&&(G=w);X.jobId=_.vz.addLowPriorityJob(function(){return X.fetchUpdatedMetadata(t)},G)}};
_.qu.prototype.fetchUpdatedMetadata=function(X,t){var G=this,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c;return _.n(function(P){switch(P.nextAddress){case 1:t&&(y={continuation:t});if(!_.A("web_get_updated_metadata_fantasy_panel_continuation_params")){P.jumpTo(2);break}w=_.gw().resolve(_.mD);z="PAsports_fantasy";return P.yield(w.isVisible(z,!0),3);case 3:P.yieldResult&&(e=(V=(B=w).getUpdatePanelContinuationData)==null?void 0:(b=V.call(B,z))==null?void 0:b.updatePanelContinuationRequest)&&(y||(y={}),y.clientParams=
{panelContinuationParams:{panelContinuation:e}});case 2:g=_.gw().resolve(_.Mr);if(!g)return _.xA(Error("xo")),P.return();F={};G.pendingRequestId=F;return P.yield(_.kW(g,X,y),4);case 4:T=P.yieldResult;if(F!==G.pendingRequestId)return P.return();u=(D=T)==null?void 0:(h=D.continuation)==null?void 0:h.timedContinuationData;((W=u)==null?0:W.continuation)&&((c=u)==null?0:c.timeoutMs)&&(G.jobId=_.vz.addLowPriorityJob(function(){return G.fetchUpdatedMetadata(X,u.continuation)},u.timeoutMs));
_.W$(P)}})};
_.qu.prototype.disposeInternal=function(){_.po.prototype.disposeInternal.call(this);ukk(this)};var Qjt=_.Fp(function(X){var t=_.NI(function(){var y=X.data().videoId;if(X.active())y=_.TG(y),_.gw().resolve(_.F3).resolveCommand(y);else{var w=X.playerApi(),z=w.getAvailableAudioTracks(),B,V,b=(B=X.sourceVideoConfig().audioTracks)==null?void 0:(V=B.find(function(e){return e.isDefaultForSource}))==null?void 0:V.id;
if(z=z.find(function(e){return e.getLanguageInfo().getId()===b}))w.setAudioTrack(z,!0),w.setCompositeParam({activeVideoId:y}),X.setActiveSourceId(y)}}),G={};
return _.k("ytw-composite-source-video-overlay",{class:_.cl("ytwCompositeSourceVideoOverlayHost",(G.ytwCompositeSourceVideoOverlayActive=X.active,G.ytwCompositeSourceVideoOverlayInteracting=X.interacting,G)),style:_.Ud({left:function(){var y;return((y=X.data().topLeftCornerX)!=null?y:0)*100+"%"},
top:function(){var y;return((y=X.data().topLeftCornerY)!=null?y:0)*100+"%"},
width:function(){var y;return((y=X.data().width)!=null?y:0)*100+"%"},
height:function(){var y;return((y=X.data().height)!=null?y:0)*100+"%"}}),
"on:click":t},_.k("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Pj");var IYM=_.Fp(function(X){var t=_.J(_.Ed(function(){var B,V=(B=X.data().sources)==null?void 0:B.find(function(b){return b.isActive});
if(V)return V.videoId})),G=t.next().value,y=t.next().value;
t=_.J(_.sm(!1,void 0,"WI4BUb"));var w=t.next().value,z=t.next().value;return _.k("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.NI(function(){z(!0)}),
"on:mouseout":_.NI(function(){z(!1)})},_.k(_.d,{cond:function(){return X.data().sources},
then:function(B){return _.k(_.pY,{each:B},function(V){return _.k(Qjt,{data:V,active:function(){return V.videoId===G()},
setActiveSourceId:y,interacting:w,playerApi:X.playerApi,sourceVideoConfig:function(){return Uyr(X.compositeVideoConfig(),V.videoId)}})})}}))},"Qj");_.ptg=function(X){_.po.call(this);this.JSC$22647_watchApi=X;X=_.J(_.sm({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=X.next().value;this.setCompositeVideoOverlayRenderer=X.next().value;X=_.J(_.sm({},void 0,"U5hcq"));this.compositeVideoConfig=X.next().value;this.setCompositeVideoConfig=X.next().value;WNB(this);cMY(this)};
_.S(_.ptg,_.po);var WNB=function(X){var t=X.JSC$22647_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){cMY(X)});
X.addOnDisposeCallback(function(){X.JSC$22647_watchApi.unsubscribeByKey(t)})},rMY=function(X){var t;
return _.n(function(G){if(G.nextAddress==1)return G.yield(X.JSC$22647_watchApi.playerApi,2);t=G.yieldResult;t.setCompositeVideoOverlayRendererComponent(X.container);_.W$(G)})},NNi=function(X){var t;
return _.n(function(G){if(G.nextAddress==1)return G.yield(X.JSC$22647_watchApi.playerApi,2);t=G.yieldResult;t.setCompositeVideoOverlayRendererComponent(void 0);_.W$(G)})},P_M=function(X){var t,G;
return _.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22647_watchApi.playerApi,2);t=y.yieldResult;X.container=document.createElement("div");G=_.Ea(X.container,function(){return _.k(IYM,{data:X.compositeVideoOverlayRenderer,compositeVideoConfig:X.compositeVideoConfig,playerApi:t})});
X.addOnDisposeCallback(G);_.W$(y)})},cMY=function(X){var t,G,y,w,z,B,V,b;
_.n(function(e){return e.nextAddress==1?(t=X.JSC$22647_watchApi.getPlayerResponse(),z=_.Y((G=t)==null?void 0:(y=G.overlay)==null?void 0:(w=y.playerControlsOverlayRenderer)==null?void 0:w.compositeVideoOverlay,uIH),b=(B=t)==null?void 0:(V=B.playerConfig)==null?void 0:V.compositeVideoConfig,z&&X.setCompositeVideoOverlayRenderer(z),b&&X.setCompositeVideoConfig(b),z&&b?X.container?e.jumpTo(6):e.yield(P_M(X),6):EgY(X)?e.yield(NNi(X),0):e.jumpTo(0)):EgY(X)?e.jumpTo(0):e.yield(rMY(X),0)})},EgY=function(X){var t;
return!((t=X.container)==null||!t.parentElement)};
_.ptg.prototype.disposeInternal=function(){EgY(this)&&NNi(this);_.po.prototype.disposeInternal.call(this)};_.LNj=function(X){_.po.call(this);var t=this;this.JSC$22653_watchApi=X;var G=this.JSC$22653_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var y=t.JSC$22653_watchApi.getPlayerResponse();if(y){var w,z;if(y=_.Y((w=y.endscreen)==null?void 0:(z=w.endscreenRenderer)==null?void 0:z.hideButton,_.as)){var B;(B=t.setEndscreenHideButton)==null||B.call(t,y);UxW(t)}}});
this.addOnDisposeCallback(function(){t.JSC$22653_watchApi.unsubscribeByKey(G)});
X=_.J(_.sm({},void 0,"PPHRb"));this.endscreenHideButton=X.next().value;this.setEndscreenHideButton=X.next().value;mxW(this);Rtk(this);i1M(this)};
_.S(_.LNj,_.po);var UxW=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return X.creatorEndscreenHideButtonContainer?y.return():y.yield(X.JSC$22653_watchApi.playerApi,2);t=y.yieldResult;X.creatorEndscreenHideButtonContainer=document.createElement("div");_.wh(X.creatorEndscreenHideButtonContainer,!1);t.setCreatorEndscreenHideButton(X.creatorEndscreenHideButtonContainer);G=_.Ea(X.creatorEndscreenHideButtonContainer,function(){return _.k(_.Lv,{data:X.endscreenHideButton,useOutlinedIcon:!0})});
X.addOnDisposeCallback(function(){G();var w;(w=t)==null||w.setCreatorEndscreenHideButton(void 0)});
_.W$(y)})},mxW=function(X){var t,G;
_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22653_watchApi.playerApi,2);t=y.yieldResult;G=function(){X.creatorEndscreenHideButtonContainer&&_.wh(X.creatorEndscreenHideButtonContainer,!0)};
t.addEventListener("endscreenelementshown",G);X.addOnDisposeCallback(function(){var w;(w=t)==null||w.removeEventListener("endscreenelementshown",G)});
_.W$(y)})},Rtk=function(X){var t=function(){X.creatorEndscreenHideButtonContainer&&_.wh(X.creatorEndscreenHideButtonContainer,!1)},G=X.JSC$22653_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",t),y=X.JSC$22653_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",t);
X.addOnDisposeCallback(function(){X.JSC$22653_watchApi.unsubscribeByKey(G);X.JSC$22653_watchApi.unsubscribeByKey(y)})},i1M=function(X){X.JSC$22653_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(t){var G=_.Y(t,hcr);
X.JSC$22653_watchApi.playerApi.then(function(y){y==null||y.setCreatorEndscreenVisibility(!!G.hide)})});
X.addOnDisposeCallback(function(){X.JSC$22653_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.aY_=function(X){_.po.call(this);this.JSC$22659_watchApi=X;vgi(this)};
_.S(_.aY_,_.po);var vgi=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22659_watchApi.playerApi,2);t=y.yieldResult;G=function(w){_.dV().dispatch(_.Dl({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:w}}))};
t.addEventListener("onRetroModeChanged",G);X.addOnDisposeCallback(function(){t.removeEventListener("onRetroModeChanged",G)});
_.W$(y)})};var CH=0,qO=0,KH=0;var lYk;lYk=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.C2=function(X){_.po.call(this);this.JSC$22672_watchApi=X;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;xxW(this)};
_.S(_.C2,_.po);
var xxW=function(X){var t,G,y;_.n(function(w){if(w.nextAddress==1)return w.yield(X.JSC$22672_watchApi.playerApi,2);t=w.yieldResult;if(X.isDisposed())return w.return();X.sessionStorage=_.AM2("yt-sleep-timer");X.sessionStorage||_.Mj(new _.NJ("SessionStorage for Sleep Timer is undefined."));((G=X.sessionStorage)==null?void 0:G.get("yt-sleep-timer"))==="true"&&(MJR(),(y=X.sessionStorage)==null||y.remove("yt-sleep-timer"),t.syncVolume());fYk(X,t);MBi(X,t);X$g(X,t);_.W$(w)})},fYk=function(X,t){var G=function(e){X.onSleepTimerSettingsChanged(e,
t)},y=function(e){X.onPlayerStateChange(e,t)},w=function(){X.onLoopChange(t)},z=function(){X.onCloseMiniplayer(t)},B=function(){ahV(t,(0,_.gl)(),XEr(t),X.selectedOption==="End of video",t.getPlayerState()!==1)},V=function(){X.onSeekComplete(t)},b=function(){_.vz.cancelJob(qO);
var e=t.getCurrentTime()>=t.getDuration(),g=X.selectedOption==="End of video"||X.selectedOption==="End of playlist"&&!iSQ(X.playlistId);e&&g&&$BM(X,t)};
t.addEventListener("onSleepTimerSettingsChanged",G);t.addEventListener("onLoopChange",w);t.addEventListener("onLoopRangeChange",w);t.addEventListener("onStateChange",y);t.addEventListener("onCloseMiniplayer",z);t.addEventListener("onSleepTimerFeatureAvailable",B);t.addEventListener("SEEK_COMPLETE",V);t.addEventListener("onAdStart",b);X.addOnDisposeCallback(function(){t.removeEventListener("onSleepTimerSettingsChanged",G);t.removeEventListener("onLoopChange",w);t.removeEventListener("onLoopRangeChange",
w);t.removeEventListener("onStateChange",y);t.removeEventListener("onCloseMiniplayer",z);t.removeEventListener("onSleepTimerFeatureAvailable",B);t.removeEventListener("SEEK_COMPLETE",V);t.removeEventListener("onAdStart",b)})},MBi=function(X,t){var G=X.JSC$22672_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var y=t.getVideoData().video_id,w,z=(w=myv(X.JSC$22672_watchApi))==null?void 0:w.playlistId;
X.pauseAutonavPlayback&&(t.pauseVideo(),t.syncVolume(),X.pauseAutonavPlayback=!1);if(X.selectedOption==="End of video"&&y!==X.videoId)K2(X,t);else{if(X.selectedOption==="End of playlist"){w=iSQ(X.playlistId);if(z!==X.playlistId){K2(X,t);break a}w?w&&tcM(X,t):Gcj(X,t)}X.videoId=y;X.playlistId=z}}});
X.addOnDisposeCallback(function(){X.JSC$22672_watchApi.unsubscribeByKey(G)})},X$g=function(X,t){var G=_.gw().resolve(_.Gw),y=_.rz(G,_.DPf,function(z){z&&X.selectedOption!=="Off"&&K2(X,t)}),w=X.JSC$22672_watchApi.subscribeToActiveChanged(function(z){var B,V;
return _.n(function(b){if(b.nextAddress==1)return b.yield(_.cF().navigationFinishPromise,2);B=!_.gK4();V=_.gw().resolve(_.G2).isMiniplayerActive();z||!ZC(X.selectedOption)||V||B||K2(X,t);_.W$(b)})},!1);
G=_.rz(G,function(z){return z.entities.playlistLoopStateEntity||{}},function(z){z=z===void 0?{}:z;
var B=RSN(X.JSC$22672_watchApi);if(B){var V;((V=z[B])==null?void 0:V.state)==="PLAYLIST_LOOP_STATE_ALL"&&ZC(X.selectedOption)&&K2(X,t)}});
X.addOnDisposeCallback(y);X.addOnDisposeCallback(G);X.addOnDisposeCallback(w)};
_.C2.prototype.onSleepTimerSettingsChanged=function(X,t){switch(X){case "Off":this.selectedOption!=="Off"&&K2(this,t);break;case "End of video":case "End of playlist":yIN(this,X,t);break;default:yIN(this,X,t,lYk.get(X))}};
_.C2.prototype.onLoopChange=function(X){(X.getLoopVideo()||X.getLoopRange())&&ZC(this.selectedOption)&&K2(this,X)};
_.C2.prototype.onCloseMiniplayer=function(X){ZC(this.selectedOption)&&K2(this,X)};
var yIN=function(X,t,G,y){w$Y(X,G);X.selectedOption=t;X.videoId=G.getVideoData().video_id;X.playlistId="";var w;(w=X.sessionStorage)==null||w.set("yt-sleep-timer","true");X.adjustmentsCount++;ahV(G,(0,_.gl)(),XEr(G),X.selectedOption==="End of video");if(X.selectedOption==="End of video")Gcj(X,G),zQN(X,G);else if(X.selectedOption==="End of playlist"){zQN(X,G);var z,B;X.playlistId=(B=(z=myv(X.JSC$22672_watchApi))==null?void 0:z.playlistId)!=null?B:"";iSQ(X.playlistId)||Gcj(X,G)}else y&&(X.presetFadeSchedulerId=
_.Rs(_.vz,function(){xyN(G,15E3)},y-15E3),X.presetPauseSchedulerId=_.Rs(_.vz,function(){$BM(X,G)},y),lhi(G,(0,_.gl)(),y))},$BM=function(X,t){if(X.JSC$22672_watchApi.isActive()){var G={dismissDialogEndpoint:{}};
var y={commandExecutorCommand:{commands:[G,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};G={buttonViewModel:{title:_.Qf("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:G}}};y={buttonViewModel:{title:_.Qf("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:y}}};var w={dialogHeaderViewModel:{headline:{content:_.Qf("SLEEP_TIMER_ENDED_TITLE")}}},
z={basicContentViewModel:{paragraphs:[{text:{content:_.Qf("SLEEP_TIMER_ENDED_TEXT")}}]}};G={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:w,content:z,footer:{panelFooterViewModel:{primaryButton:G,secondaryButton:y,shouldHideDivider:!0}}}}}}};_.gw().resolve(_.F3).resolveCommand(G,{form:{element:X}})}else MJR();HLi(X,!1);owW(X,t);t.pauseVideo();_.gz.getInstance().getState()===2&&t.getPlayerState()===5&&(X.pauseAutonavPlayback=!0)},K2=function(X,t){HLi(X,!0);
owW(X,t);MJR()},owW=function(X,t){w$Y(X,t);
X.selectedOption="Off";X.videoId="";X.playlistId="";X.adjustmentsCount=0;var G;(G=X.sessionStorage)==null||G.remove("yt-sleep-timer");_.vz.cancelJob(CH);t.resetSleepTimerMenuSettings()},HLi=function(X,t){t={timer_length_adjustment_times_during_session:X.adjustmentsCount-1,
is_session_cancelled:t};switch(X.selectedOption){case "Off":t.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":t.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":t.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:t.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",t.option_duration_in_minutes=lYk.get(X.selectedOption)/6E4}_.a7("sleepTimerSessionFinishEvent",t)};
_.C2.prototype.onPlayerStateChange=function(X,t){X===1?ahV(t,(0,_.gl)(),XEr(t),this.selectedOption==="End of video"):X===0?(_.vz.cancelJob(qO),t.setVideoTimeLeft(vaV(0,0))):X===2&&_.vz.cancelJob(qO);this.selectedOption==="End of video"?X===0?$BM(this,t):X===2&&fh4(t):this.selectedOption!=="End of playlist"||iSQ(this.playlistId)||(X===0?$BM(this,t):X===2&&fh4(t))};
_.C2.prototype.onSeekComplete=function(X){X.getPlayerState()===2&&ahV(X,(0,_.gl)(),XEr(X),this.selectedOption==="End of video",!0)};
_.C2.prototype.onCueRangeEnter=function(X,t){X==="sleep-timer-fade-audio"&&xyN(t,(t.getDuration()-t.getProgressState().current)*1E3)};
_.C2.prototype.onCueRangeExit=function(X,t){X==="sleep-timer-fade-audio"&&t.getPlayerState()!==0&&fh4(t,!0)};
var Gcj=function(X,t){t.addCueRange("sleep-timer-fade-audio",t.getDuration()-15,t.getDuration());t.addEventListener("onCueRangeEnter",function(G){X.onCueRangeEnter(G,t)});
t.addEventListener("onCueRangeExit",function(G){X.onCueRangeExit(G,t)})},tcM=function(X,t){t.removeCueRange("sleep-timer-fade-audio");
t.removeEventListener("onCueRangeEnter",function(G){X.onCueRangeEnter(G,t)});
t.removeEventListener("onCueRangeExit",function(G){X.onCueRangeExit(G,t)})},w$Y=function(X,t){ZC(X.selectedOption)?tcM(X,t):(_.vz.cancelJob(X.presetPauseSchedulerId),_.vz.cancelJob(X.presetFadeSchedulerId),X.presetPauseSchedulerId=0,X.presetFadeSchedulerId=0);
fh4(t,!0)},zQN=function(X,t){t.setLoop(!1);
t.setLoopVideo(!1);t.setLoopRange(null);(X=RSN(X.JSC$22672_watchApi))&&_.gw().resolve(_.Gw).dispatch(_.EW("playlistLoopStateEntity",X,{key:X,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.VcY=function(X){_.po.call(this);this.JSC$22675_watchApi=X;JIY(this);BqN(this);nwN(this);X=X.getRoot();if(X.is==="ytd-watch-flexy"||X.is==="ytd-watch-grid")X.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.jni();_.A("web_watch_log_theater_mode_cookie_state")&&_.QQ.get("wide","0")==="1"&&_.Fj0("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.S(_.VcY,_.po);var JIY=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22675_watchApi.playerApi,2);t=y.yieldResult;G=function(w){bLN(X,!!w)};
t.addEventListener("SIZE_CLICKED",G);X.addOnDisposeCallback(function(){t.removeEventListener("SIZE_CLICKED",G)});
_.W$(y)})},BqN=function(X){X.JSC$22675_watchApi.registerActionHandler("yt-toggle-theater-mode",function(t,G){bLN(X,t,G===void 0?!0:G)});
X.addOnDisposeCallback(function(){X.JSC$22675_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.VcY.prototype.getState=function(){return _.tS(_.dV().getState())};
var bLN=function(X,t,G){G=G===void 0?!0:G;var y,w,z,B=_.A("enable_player_resize_transition")&&!!X.JSC$22675_watchApi.getWatchNextResponse()&&!((y=X.JSC$22675_watchApi.getWatchNextResponse())==null?0:(w=y.contents)==null?0:(z=w.twoColumnWatchNextResults)==null?0:z.conversationBar);_.s0i(function(){_.dV().dispatch(_.Dl({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:t}}));_.A("theater_mode_scroll_to_top_killswitch")||X.JSC$22675_watchApi.scrollWatchTo(0,!1);_.gk()&&_.A("external_fullscreen")&&_.Fi(document.documentElement);
nwN(X);G&&_.Iu("wide",t?"1":"0",-1);_.sl(X.JSC$22675_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);X.JSC$22675_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:t});t&&_.jni()},{shouldWrap:B})},nwN=function(X){var t;
_.n(function(G){if(G.nextAddress==1)return G.yield(X.JSC$22675_watchApi.playerApi,2);t=G.yieldResult;t.setSizeStyle(!0,X.getState());_.W$(G)})};var eQW=function(X){_.po.call(this);var t=this;this.playerApi=X;this.timeToPanelSyncKeyMap={};var G;if(X==null?0:(G=X.isReady)==null?0:G.call(X)){G=_.rz(_.gw().resolve(_.Gw),function(w){return w.entities.timedMarkersListSyncEntity||{}},function(w,z){w=w===void 0?{}:w;
z=z===void 0?{}:z;for(var B=_.J(Object.keys(z)),V=B.next();!V.done;V=B.next())V=V.value,w[V]!==z[V]&&kck(t,z[V]);z=_.J(Object.keys(w));for(B=z.next();!B.done;B=z.next())B=B.value,V=w[B],t.timeToPanelSyncKeyMap[B]&&dBk(t,V)});
this.addOnDisposeCallback(G);var y=function(w){t.onCueRangeEnter(w)};
X.addEventListener("onCueRangeEnter",y);this.addOnDisposeCallback(function(){var w;(w=X.removeEventListener)==null||w.call(X,"onCueRangeEnter",y)})}};
_.S(eQW,_.po);
var dBk=function(X,t){var G,y;if((G=X.playerApi)==null?0:(y=G.isReady)==null?0:y.call(G)){var w;if((G=t==null?void 0:(w=t.timedListData)==null?void 0:w.sections)&&t!=null&&t.key)for(w=_.J(G),G=w.next();!G.done;G=w.next())if(G=G.value,G.timedSyncDataList&&G.sectionId)for(y=0;y<G.timedSyncDataList.length;y++){var z=G.timedSyncDataList[y];z.syncItemId&&X.playerApi.addCueRange(G.sectionId+"_"+t.key+"_"+z.syncItemId,Number(z.videoTimeMs)/1E3,y===G.timedSyncDataList.length-1?0x8000000000000:Number(G.timedSyncDataList[y+
1].videoTimeMs)/1E3)}}},kck=function(X,t){var G,y;
if((G=X.playerApi)==null?0:(y=G.isReady)==null?0:y.call(G)){var w;if((G=t==null?void 0:(w=t.timedListData)==null?void 0:w.sections)&&t!=null&&t.key)for(w=_.J(G),G=w.next();!G.done;G=w.next())if(G=G.value,G.timedSyncDataList&&G.sectionId){y=_.J(G.timedSyncDataList);for(var z=y.next();!z.done;z=y.next())z=z.value,z.syncItemId&&X.playerApi.removeCueRange(G.sectionId+"_"+t.key+"_"+z.syncItemId)}}};
eQW.prototype.onCueRangeEnter=function(X){for(var t=_.J(Object.keys(this.timeToPanelSyncKeyMap)),G=t.next();!G.done;G=t.next()){G=G.value;var y=_.J(X.split("_"+G+"_")),w=y.next().value;y=y.next().value;if(w&&y){X=_.gw().resolve(_.Gw);t=this.timeToPanelSyncKeyMap[G];var z=_.kUA(X.getState(),t);G=jYY(G,w,y);if(G===-1)break;G={activeSyncId:y,activeItemIndex:G,activeSectionInfo:{sectionIdentifier:w}};z?X.dispatch(_.Xc("markersEngagementPanelSyncEntity",t,G)):X.dispatch(_.EW("markersEngagementPanelSyncEntity",
t,Object.assign({},{key:t},G)));break}}};
var jYY=function(X,t,G){var y=_.gw().resolve(_.Gw),w,z;X=(w=JjV(y.getState(),X))==null?void 0:(z=w.timedListData)==null?void 0:z.sections;if(!X)return-1;w=0;z=_.J(X);for(X=z.next();!X.done;X=z.next()){X=X.value;y=X.timedSyncDataList||[];if(X.sectionId===t)return t=y.findIndex(function(B){return B.syncItemId===G}),t===-1?t:w+t;
w+=y.length}return-1};_.Tqt=function(X){_.po.call(this);var t=this;this.JSC$22688_watchApi=X;this.unresolvedCommands=[];this.JSC$22688_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(G){gwB(t,G)});
this.addOnDisposeCallback(function(){t.JSC$22688_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
F3Y(this)};
_.S(_.Tqt,_.po);var F3Y=function(X){var t;_.n(function(G){if(G.nextAddress==1)return G.yield(X.JSC$22688_watchApi.playerApi,2);t=G.yieldResult;if(X.isDisposed())return G.return();X.timedSyncObserver=new eQW(t);X.unresolvedCommands.length&&(X.unresolvedCommands.forEach(function(y){return gwB(X,y)}),X.unresolvedCommands=[]);
_.h6(X,X.timedSyncObserver);_.W$(G)})},gwB=function(X,t){if(X.timedSyncObserver){var G=_.Y(t,qXa);
if(G&&G.timedSyncEntityKey&&G.panelSyncEntityKey){X=X.timedSyncObserver;t=G.timedSyncEntityKey;var y=G.panelSyncEntityKey;G=!!G.isEnabled;G=G===void 0?!0:G;var w=_.gw().resolve(_.Gw);w=JjV(w.getState(),t);G?X.timeToPanelSyncKeyMap[t]||(X.timeToPanelSyncKeyMap[t]=y,dBk(X,w)):(delete X.timeToPanelSyncKeyMap[t],kck(X,w))}}else X.unresolvedCommands.push(t)};var AIt=_.Fp(function(X){var t=X.data,G=X.maybeLogSmartSkipClientData,y=null,w=null,z=_.A("web_enable_auto_focus_for_timely_action_button"),B=function(){y=document.activeElement},V=function(){t().smartSkipMetadata&&(y=document.activeElement,_.vdr(function(){return w}))},b=function(g){if(t().smartSkipMetadata&&(!g||g.key!=="Enter")){y&&y.isConnected&&(_.vdr(function(){return y}),y=null);
var F;(F=w)==null||F.blur()}};
X=_.NI(function(){G==null||G(!0,t());return!1});
var e=_.T7(_.zF(function(){return t().rendererContext},{onTap:function(g,F){F({disableClickTracking:!0})}}),_.gS({visibilityCallback:function(g){if(z)g?w&&t().smartSkipMetadata&&(V(),document.addEventListener("focusin",B)):(document.removeEventListener("focusin",B),b());
else if(g){g=_.yj(t().rendererContext);var F=Number(t().maxVisibleDurationMilliseconds),T,D=(T=_.Y(t().rendererContext,_.N0))==null?void 0:T.label;g&&F&&D&&(T={label:D,command:g,durationMs:F},_.gw().resolve(_.WT).enqueue(T))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.R2(function(){if(z){var g;if((w=(g=e.value)==null?void 0:g.querySelector("button"))&&t().smartSkipMetadata){var F;(F=e.value)==null||F.addEventListener("keydown",b)}}});
_.Um(function(){z&&(w&&t().smartSkipMetadata&&w.removeEventListener("keydown",b),document.removeEventListener("focusin",B),b())});
return _.k("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:e,"on:click":X},_.k(_.M7,{data:function(){return t().content}},{buttonViewModel:_.QK}))},"Rj");var Y6g=_.Fp(function(X){var t=X.data,G=X.playerApi,y=_.gw().resolve(_.jVH);X=_.J(_.Ed(function(){t()}));
var w=X.next().value,z=X.next().value,B=function(){return tE2(t(),w())},V=function(e,g){var F,T,D=(F=_.Y(g==null?void 0:g.rendererContext,_.EV))==null?void 0:(T=F.loggingDirectives)==null?void 0:T.trackingParams;
if((g=g==null?void 0:g.smartSkipMetadata)&&g.loggingData&&(T=g.loggingData,g=T.algorithmId,F=T.startMilliseconds,T=T.endMilliseconds,g&&F!==void 0&&T!==void 0)){var h,u;e={smartSkipData:Object.assign({},{versionName:g,startMediaTimeMs:F,endMediaTimeMs:T},e&&{userInteractionMediaTimeMs:(Math.floor(((h=_.sW())==null?void 0:(u=h.getPlayer())==null?void 0:u.getCurrentTime())||0)*1E3).toString()})};h=_.lw();var W;D&&(W=_.i$(D));h&&W&&_.d9(h,W,e)}},b=function(e,g){var F=tE2(t(),e);
if(F){var T=_.Y(F,OM),D;if(D=g)D=G(),F=_.Y(F,OM),D=F!=null&&F.smartSkipMetadata?!(D==null?0:D.isSameMarkerTypeVisible((F==null?void 0:F.smartSkipMetadata.markerKey)||"")):!0;if(D){var h,u;(T==null?0:(h=T.smartSkipMetadata)==null?0:(u=h.loggingData)==null?0:u.isCounterfactual)||(V(!1,T),z(e))}else g||w()!==e||z(void 0)}};
_.Em(function(){var e=t().timelyActions;if(e){e=_.J(e);for(var g=e.next();!g.done;g=e.next()){g=_.Y(g.value,OM);var F=void 0;(F=g)!=null&&F.cueRangeId&&y.timelyActionsMap.set(g.cueRangeId,b)}_.Um(function(){y.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.k("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.k(_.M7,{data:B},{timelyActionViewModel:function(e){return _.k(AIt,{data:e.data,maybeLogSmartSkipClientData:function(){V(!0,_.Y(B(),OM))}})}}))},"Sj");_.DBx=function(X){_.po.call(this);this.JSC$22700_watchApi=X;X=_.J(_.sm({},void 0,"pLDp2"));this.timelyActionsOverlay=X.next().value;this.setTimelyActionsOverlay=X.next().value;sYB(this)};
_.S(_.DBx,_.po);var sYB=function(X){var t,G,y,w;_.n(function(z){if(z.nextAddress==1)return S6B(X),hQ_(X),X.timelyActionsContainer=document.createElement("div"),z.yield(X.JSC$22700_watchApi.playerApi,2);t=z.yieldResult;(y=(G=t).insertTimelyActionUi)==null||y.call(G,X.timelyActionsContainer);w=_.Ea(X.timelyActionsContainer,function(){return _.k(Y6g,{data:X.timelyActionsOverlay,playerApi:t})});
X.addOnDisposeCallback(w);_.W$(z)})},hQ_=function(X){var t=X.JSC$22700_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){S6B(X)});
X.addOnDisposeCallback(function(){X.JSC$22700_watchApi.unsubscribeByKey(t)})},S6B=function(X){var t=X.JSC$22700_watchApi.getWatchNextResponse();
if(t){var G,y;if(t=_.Y((G=t.playerOverlays)==null?void 0:(y=G.playerOverlayRenderer)==null?void 0:y.timelyActionsOverlayViewModel,CqH)){var w;(w=X.setTimelyActionsOverlay)==null||w.call(X,t)}}};_.q6_=function(X){_.po.call(this);this.JSC$22704_watchApi=X;ZLN(this)};
_.S(_.q6_,_.po);var ZLN=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22704_watchApi.playerApi,2);t=y.yieldResult;G=function(w){_.Wj.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.Y(w,_.rOH)},popupType:"TOAST"}})};
t.addEventListener("onYtShowToast",G);X.addOnDisposeCallback(function(){t.removeEventListener("onYtShowToast",G)});
_.W$(y)})};var C8Y,uMt,p$B,K3B,OL1,cIW,Ixg,W3t,rIY,Nqj;C8Y=!1;_.QYt=function(X){_.po.call(this);this.JSC$22707_watchApi=X;this.fullscreen=this.theater=!1;K3B(this);OL1(this);uMt(this)};
_.S(_.QYt,_.po);uMt=function(X){var t,G,y;_.n(function(w){if(w.nextAddress==1)return w.yield(X.JSC$22707_watchApi.playerApi,2);t=w.yieldResult;if(X.isDisposed())return w.return();G=X.JSC$22707_watchApi.getElement("CINEMATICS");if(!G)return w.return();X.JSC$22707_cinematicController=new _.Gs(G,t);_.h6(X,X.JSC$22707_cinematicController);_.HHr(X.JSC$22707_cinematicController);Ixg(X,_.MCV());y=X.JSC$22707_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(z){W3t(X,z)});
X.addOnDisposeCallback(function(){X.JSC$22707_watchApi.unsubscribeByKey(y)});
cIW(X);W3t(X,X.JSC$22707_cinematicController.isAllowed());_.A("web_cinematic_manager_redux_killswitch")?_.OX(X,X.fullscreen,X.theater):p$B(X);rIY(X);_.W$(w)})};
p$B=function(X){X.fullscreen=_.Gz(_.dV().getState());X.theater=_.tS(_.dV().getState());_.OX(X,X.fullscreen,X.theater);var t=_.rz(_.dV(),_.Gz,function(y){X.fullscreen=y;_.OX(X,X.fullscreen,X.theater)}),G=_.rz(_.dV(),_.tS,function(y){X.theater=y;
_.OX(X,X.fullscreen,X.theater)});
X.addOnDisposeCallback(t);X.addOnDisposeCallback(G)};
K3B=function(X){var t=X.JSC$22707_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cIW(X)});
X.addOnDisposeCallback(function(){X.JSC$22707_watchApi.unsubscribeByKey(t)})};
OL1=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22707_watchApi.playerApi,2);t=y.yieldResult;G=function(w){Ixg(X,w)};
t.addEventListener("cinematicSettingsToggleChange",G);X.addOnDisposeCallback(function(){t.removeEventListener("cinematicSettingsToggleChange",G)});
_.W$(y)})};
cIW=function(X){var t=X.JSC$22707_watchApi.getWatchNextResponse(),G;t=_.Y(t==null?void 0:(G=t.pageVisualEffects)==null?void 0:G[0],_.AU);var y;(y=X.JSC$22707_cinematicController)==null||_.JsB(y,t)};
Ixg=function(X,t){var G;(G=X.JSC$22707_cinematicController)==null||_.ovT(G,t);Nqj(X)};
W3t=function(X,t){var G;_.n(function(y){if(y.nextAddress==1)return _.A("kevlar_watch_cinematics_invisible")&&(t=!1),y.yield(X.JSC$22707_watchApi.playerApi,2);G=y.yieldResult;G.updateCinematicSettings(t);Nqj(X);_.W$(y)})};
rIY=function(X){var t=_.cP();if(_.A("kevlar_measure_ambient_mode_idle")&&!t.getFlag(192)&&!C8Y){C8Y=!0;var G=_.PO(_.vz,function(){_.gw().resolve(_.FN2).start(1E4)},5E3);
X.addOnDisposeCallback(function(){_.vz.cancelJob(G);_.gw().resolve(_.FN2).stop()})}};
_.OX=function(X,t,G){X.fullscreen=t;X.theater=G;var y;(y=X.JSC$22707_cinematicController)==null||y.setFullscreen(X.fullscreen,X.theater);if(_.A("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(X.theater||X.fullscreen){var w;(w=X.JSC$22707_cinematicController)==null||_.BOi(w)}else if((X=X.JSC$22707_cinematicController)!=null){var z;(z=X.currentCinematicEffect)==null||z.pause()}};
Nqj=function(X){if(_.A("web_cinematic_theater_mode")||_.A("web_cinematic_fullscreen")){var t;X.JSC$22707_watchApi.getRoot().toggleCinematicsActive(!((t=X.JSC$22707_cinematicController)==null||!t.isEnabled()))}};_.mBY=function(X){_.po.call(this);var t=this;this.JSC$22710_watchApi=X;this.commentsReady=!1;this.setCommentsJobId=0;X=_.rz(_.dV(),_.DC,function(){P8i(t)});
this.addOnDisposeCallback(X);var G=this.JSC$22710_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){EwY(t)}),y=this.JSC$22710_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){EwY(t)});
this.addOnDisposeCallback(function(){t.JSC$22710_watchApi.unsubscribeByKey(G);t.JSC$22710_watchApi.unsubscribeByKey(y)});
var w=function(){_.A("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&UBY(t,"false")};
this.JSC$22710_watchApi.getRoot().addEventListener("yt-page-data-will-update",w);this.addOnDisposeCallback(function(){t.JSC$22710_watchApi.getRoot().removeEventListener("yt-page-data-will-update",w)});
EwY(this)};
_.S(_.mBY,_.po);var EwY=function(X){X.commentsReady=!1;_.vz.cancelJob(X.setCommentsJobId);X.setCommentsJobId=_.PO(_.vz,function(){P8i(X)},1E3)},P8i=function(X){if(!X.commentsReady){_.ls("cmi");
_.vz.cancelJob(X.setCommentsJobId);var t,G,y,w,z=(t=X.JSC$22710_watchApi.getWatchNextResponse())==null?void 0:(G=t.contents)==null?void 0:(y=G.twoColumnWatchNextResults)==null?void 0:(w=y.results)==null?void 0:w.results.contents;t=void 0;if(z&&z.length)for(z=_.J(z),G=z.next();!G.done;G=z.next())if(G=G.value,w=y=void 0,((y=G)==null?void 0:(w=y.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section"){_.A("web_watch_provide_undefined_comments")?t=G.itemSectionRenderer:X.JSC$22710_watchApi.provideRenderingData("COMMENTS",
G.itemSectionRenderer);UBY(X,"true");break}_.A("web_watch_provide_undefined_comments")&&X.JSC$22710_watchApi.provideRenderingData("COMMENTS",t);X.commentsReady=!0;X.JSC$22710_watchApi.dispatchEvent("yt-watch-comments-ready")}},UBY=function(X,t){var G;
(G=X.JSC$22710_watchApi.getElement("COMMENTS"))==null||G.setAttribute("canScheduleJobs",t)};_.WE=function(X){_.po.call(this);var t=this;this.JSC$22713_watchApi=X;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.A("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.A("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.A("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.At("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)RQB(this);
else{var G=this.JSC$22713_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){uq(t);Qx(t)}),y=this.JSC$22713_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){If(t);
Qx(t)});
this.JSC$22713_watchApi.getRoot().is==="ytd-watch-grid"&&_.A("swatcheroo_pbs_load_grid")&&(iL_(this),L3_(this));this.addOnDisposeCallback(function(){t.JSC$22713_watchApi.unsubscribeByKey(G);t.JSC$22713_watchApi.unsubscribeByKey(y);_.vz.cancelJob(t.provideRichGridJobId)});
uq(this);If(this)}};
_.S(_.WE,_.po);var RQB=function(X){var t=X.JSC$22713_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){X.providePlayerJobId=_.f5(_.vz,function(){uq(X);Qx(X)},X.provideAllDataDelayMs)}),G=X.JSC$22713_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){X.provideWatchNextJobId=_.f5(_.vz,function(){If(X);
Qx(X)},X.provideAllDataDelayMs)}),y=X.JSC$22713_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){X.provideWatchNextJobId=_.f5(_.vz,function(){If(X);
Qx(X)},X.provideAllDataDelayMs)});
X.JSC$22713_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.PO(_.vz,function(){uq(X);If(X);Qx(X)},100)});
X.JSC$22713_watchApi.addPageDisposeJob(function(){_.vz.cancelJob(X.provideWatchNextJobId);_.vz.cancelJob(X.providePlayerJobId)});
X.addOnDisposeCallback(function(){X.JSC$22713_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");X.JSC$22713_watchApi.unsubscribeByKey(t);X.JSC$22713_watchApi.unsubscribeByKey(G);X.JSC$22713_watchApi.unsubscribeByKey(y);_.vz.cancelJob(X.providePlayerJobId);_.vz.cancelJob(X.provideWatchNextJobId)});
uq(X);If(X)},uq=function(X){var t=X.JSC$22713_watchApi.getPlayerResponse(),G,y,w=(y=t==null?void 0:(G=t.playabilityStatus)==null?void 0:G.messageRenderers)!=null?y:[],z,B;
t=(B=t==null?void 0:(z=t.playabilityStatus)==null?void 0:z.messages)!=null?B:[];z=_.J(t);for(B=z.next();!B.done;B=z.next())w.push({alertRenderer:{text:_.Vl(B.value),type:"WARNING"}});X.JSC$22713_watchApi.provideRenderingData("ALERTS",w)},If=function(X){var t=[],G,y,w,z=X.JSC$22713_watchApi.getWatchNextResponse(),B,V,b,e,g=z==null?void 0:(B=z.contents)==null?void 0:(V=B.twoColumnWatchNextResults)==null?void 0:(b=V.results)==null?void 0:(e=b.results)==null?void 0:e.contents;
if(g)for(B=_.J(g),V=B.next();!V.done;V=B.next())if(V=V.value,V.videoPrimaryInfoRenderer)var F=V;else if(V.videoSecondaryInfoRenderer){var T=V;e=b=void 0;V=Object.assign({},(b=V.videoSecondaryInfoRenderer)==null?void 0:(e=b.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer);if(V.rows&&V.collapsedItemCount!==void 0){V.rows=V.rows.slice(0,V.collapsedItemCount).filter(function(Uq){return!!Uq.richMetadataRowRenderer});
V.collapsedItemCount=V.rows.length;var D={metadataRowContainerRenderer:V}}}else if(V.merchandiseShelfRenderer)var h=V;else if(V.ticketShelfRenderer)var u=V;else if(V.expandableMetadataRenderer)var W=V;else if(V.itemSectionRenderer)if(b=V.itemSectionRenderer.contents,e=void 0,X.directlyProvideComments&&((e=V.itemSectionRenderer)==null?void 0:e.sectionIdentifier)==="comment-item-section")_.ls("cmi"),X.JSC$22713_watchApi.provideRenderingData("COMMENTS",V.itemSectionRenderer);else if(b)for(V=_.J(b),b=
V.next();!b.done;b=V.next())if(b=b.value,b.commentsEntryPointHeaderRenderer)var c=b;else if(b.clarificationRenderer||b.infoPanelContainerRenderer||b.infoPanelContentRenderer||b.emergencyOneboxRenderer){t.push(b);var P=P||!!T}else b.limitedStateMessageRenderer?y=b:b.videoMetadataCarouselViewModel&&(w=b);if(_.A("web_watch_merch_in_sd_when_ticket_shelf_present")&&h&&u){var l=h;h=void 0}if(X.provideWatchNextSecondaryResults){var R,L,x;X.JSC$22713_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
z==null?void 0:(R=z.contents)==null?void 0:(L=R.twoColumnWatchNextResults)==null?void 0:(x=L.secondaryResults)==null?void 0:x.secondaryResults)}if(X.JSC$22713_watchApi.getRoot().is==="ytd-watch-grid"){var w6,BY;X.JSC$22713_watchApi.provideRenderingData("LIVE_CHAT",z==null?void 0:(w6=z.contents)==null?void 0:(BY=w6.twoColumnWatchNextResults)==null?void 0:BY.conversationBar)}var kJ,Ss,C_,Fv;(R=z==null?void 0:(kJ=z.contents)==null?void 0:(Ss=kJ.twoColumnWatchNextResults)==null?void 0:(C_=Ss.secondaryResults)==
null?void 0:(Fv=C_.secondaryResults)==null?void 0:Fv.offerModule)&&(R.donationShelfRenderer||R.donationUnavailableRenderer)&&X.JSC$22713_watchApi.getRoot().is!=="ytd-watch-grid"&&(G=R);kJ=X.JSC$22713_watchApi.getPlayerResponse();if(!kJ||!_.UC_(kJ.playabilityStatus,z==null?void 0:z.playerOverlays)){var Uh;if(z==null?0:(Uh=z.contents)==null?0:Uh.singleColumnWatchNextResults){var cY,f_;var sq=z==null?void 0:(cY=z.contents.singleColumnWatchNextResults.results)==null?void 0:(f_=cY.results)==null?void 0:
f_.contents}else{var oq,ll,go,kh;Uh=!!(g==null?0:(oq=g[0])==null?0:(ll=oq.itemSectionRenderer)==null?0:(go=ll.contents)==null?0:(kh=go[0])==null?0:kh.backgroundPromoRenderer);var Aq,OR;oq=!!(z==null?0:(Aq=z.contents)==null?0:(OR=Aq.twoColumnWatchNextResults)==null?0:OR.secondaryResults);Uh&&!oq&&(sq=g)}}g=t[0];Aq=t[1];P&&t.length===1&&(Aq=g,g=void 0);X.JSC$22713_watchApi.provideRenderingData("PRIMARY_INFO",F);X.JSC$22713_watchApi.provideRenderingData("SECONDARY_INFO",T);X.JSC$22713_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
c);X.JSC$22713_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",w);X.JSC$22713_watchApi.provideRenderingData("CLARIFICATION",g);X.JSC$22713_watchApi.provideRenderingData("RICH_METADATA",D);X.JSC$22713_watchApi.provideRenderingData("MERCH_SHELF",h);_.A("web_watch_merch_in_sd_when_ticket_shelf_present")&&X.JSC$22713_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",l);X.JSC$22713_watchApi.provideRenderingData("TICKET_SHELF",u);X.JSC$22713_watchApi.provideRenderingData("LIMITED_STATE",y);X.JSC$22713_watchApi.getRoot().is!==
"ytd-watch-grid"&&X.JSC$22713_watchApi.provideRenderingData("DONATION_SHELF",G);X.JSC$22713_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",sq);X.JSC$22713_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Aq);X.JSC$22713_watchApi.provideRenderingData("EXPANDABLE_METADATA",W);if(X.swatcherooProvideAllDataOnScheduledJob){var Mz,HY,yR,hq,gi,TB;F=z==null?void 0:(Mz=z.contents)==null?void 0:(HY=Mz.twoColumnWatchNextResults)==null?void 0:(yR=HY.secondaryResults)==null?void 0:(hq=yR.secondaryResults)==
null?void 0:(gi=hq.results)==null?void 0:(TB=gi[0])==null?void 0:TB.richGridRenderer;X.JSC$22713_watchApi.provideRenderingData("RICH_GRID_RENDERER",F)}};
_.WE.prototype.hasCompanionAds=function(X){var t,G;return(G=X==null?void 0:(t=X.adPlacements)==null?void 0:t.some(function(y){var w,z,B,V;return(y==null?void 0:(w=y.adPlacementRenderer)==null?void 0:(z=w.renderer)==null?void 0:z.actionCompanionAdRenderer)||(y==null?void 0:(B=y.adPlacementRenderer)==null?void 0:(V=B.renderer)==null?void 0:V.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?G:!1};
var Qx=function(X){if(!_.A("swaterdoo_ps_wn_handle_ks")){X.swatcherooProvideAllDataOnScheduledJob||L3_(X,3E3);var t=X.JSC$22713_watchApi.getPlayerResponse(),G,y,w,z,B,V=(G=X.JSC$22713_watchApi.getWatchNextResponse())==null?void 0:(y=G.contents)==null?void 0:(w=y.twoColumnWatchNextResults)==null?void 0:(z=w.secondaryResults)==null?void 0:(B=z.secondaryResults)==null?void 0:B.offerModule;t=X.hasCompanionAds(t);var b,e;G=(V==null?void 0:(b=V.tvfilmOfferModuleRenderer)==null?void 0:b.clientShouldSuppressIfCompanionAdDisplayed)||
(V==null?void 0:(e=V.unlimitedOfferModuleRenderer)==null?void 0:e.suppressIfCompanionAds);b=t&&G;X.JSC$22713_watchApi.getRoot().is==="ytd-watch-grid"&&X.JSC$22713_watchApi.provideRenderingData("OFFER_MODULE",b?void 0:V)}},L3_=function(X,t){_.A("swatcheroo_pbs_load_grid")&&(X.provideRichGridJobId&&_.vz.cancelJob(X.provideRichGridJobId),X.provideRichGridJobId=_.f5(_.vz,function(){X.provideRichGridJobId=0;
var G,y,w,z,B,V,b,e=(G=X.JSC$22713_watchApi.getWatchNextResponse())==null?void 0:(y=G.contents)==null?void 0:(w=y.twoColumnWatchNextResults)==null?void 0:(z=w.secondaryResults)==null?void 0:(B=z.secondaryResults)==null?void 0:(V=B.results)==null?void 0:(b=V[0])==null?void 0:b.richGridRenderer;e&&X.JSC$22713_watchApi.provideRenderingData("RICH_GRID_RENDERER",e)},t))},iL_=function(X){var t,G;
_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22713_watchApi.playerApi,2);t=y.yieldResult;G=function(){X.onPlaybackStart()};
t.addEventListener("onPlaybackStartExternal",G);X.addOnDisposeCallback(function(){t.removeEventListener("onPlaybackStartExternal",G)});
_.W$(y)})};
_.WE.prototype.onPlaybackStart=function(){L3_(this)};_.axW=function(X){_.po.call(this);var t=this;this.JSC$22723_watchApi=X;X.playerApi.then(function(G){t.player=G});
this.gestures=new _.Jj(this.JSC$22723_watchApi.getRoot(),X.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.bSa(_.dV().getState())&&_.DC(_.dV().getState())<=0)if(_.Gz(_.dV().getState())){var G;(G=t.player)==null||G.toggleFullscreen()}else _.sl(t.JSC$22723_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
vwt(this)};
_.S(_.axW,_.po);var vwt=function(X){var t=_.rz(_.dV(),_.Gz,function(G){X.onFullscreenChanged(G)});
X.addOnDisposeCallback(t);t=_.rz(_.dV(),_.DC,function(G){X.gestures&&(G>0?X.gestures.detach():X.gestures.attach())});
X.addOnDisposeCallback(t)};
_.axW.prototype.onFullscreenChanged=function(X){this.gestures&&this.gestures.update(X)};_.xBk=function(X){_.po.call(this);var t=this;this.JSC$22726_watchApi=X;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(X.subscribeToActiveChanged(function(G){t.onActiveChanged(G)}));
lxW(this)};
_.S(_.xBk,_.po);var fxk=function(X){if(_.A("swatcheroo_page_dispose_all_watch_data"))X.pageDisposalDataTypes=Object.values(ggY).filter(function(G){return G!=="PLAYLIST"});
else if(_.A("swatcheroo_page_dispose_rich_grid")){var t;(t=X.pageDisposalDataTypes)==null||t.push("RICH_GRID_RENDERER")}},lxW=function(X){_.A("swatcheroo_enable_ghost_cards")&&(fxk(X),X.JSC$22726_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.vz.cancelJob(X.clearDataJobId);
X.clearDataJobId=0}),X.runPageDisposeJob=function(){var t=_.gw().resolve(_.AS).getDestinationPageType()==="watch";
X.clearDataJobId=_.f5(_.vz,X.runClearDataJob,t?0:_.At("web_watch_delay_page_dispose_ms",1E4))},X.runClearDataJob=function(){Mcj(X)},X.runOnYtNavigateAwayFinish=function(){X.clearDataJobId&&(_.vz.cancelJob(X.clearDataJobId),X.clearDataJobId=0,Mcj(X))},document.addEventListener("yt-navigate-finish",X.runOnYtNavigateAwayFinish),X.JSC$22726_watchApi.addPageDisposeJob(X.runPageDisposeJob),X.addOnDisposeCallback(function(){X.JSC$22726_watchApi.removePageDisposeJob(X.runPageDisposeJob);
X.JSC$22726_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",X.runOnYtNavigateAwayFinish)}))},Mcj=function(X){X.pageDisposalDataTypes.forEach(function(t){X.JSC$22726_watchApi.provideRenderingData(t,void 0)});
X.clearDataJobId=0};
_.xBk.prototype.onActiveChanged=function(X){X&&((X=document.querySelector("#watch-page-skeleton"))&&_.uf(X),X1x(this),document.body.removeAttribute("no-y-overflow"),_.X3("IS_SHELL_LOAD")&&_.z5V())};
var X1x=function(X){_.n(function(t){if(t.nextAddress==1)return t.yield(X.JSC$22726_watchApi.playerApi,2);_.Ji();_.W$(t)})};var $Vt;$Vt=_.A("kevlar_watch_while_counterfactual")?0:.25;_.cE=function(X){_.po.call(this);this.JSC$22729_watchApi=X;this.JSC$22729_watchWhileEnabled=_.A("kevlar_watch_while_v2");this.pipEnabled=_.A("web_enable_pip_on_miniplayer");tkY(this);G6g(this);yKj(this)};
_.S(_.cE,_.po);var tkY=function(X){X.JSC$22729_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){w1N(X)});
X.addOnDisposeCallback(function(){X.JSC$22729_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},G6g=function(X){var t,G;
_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22729_watchApi.playerApi,2);t=y.yieldResult;G=function(){w1N(X)};
t.addEventListener("onCollapseMiniplayer",G);X.addOnDisposeCallback(function(){t.removeEventListener("onCollapseMiniplayer",G)});
_.W$(y)})},yKj=function(X){var t=X.JSC$22729_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&t&&X.JSC$22729_watchWhileEnabled&&(X.playerIntersectionObserver=new IntersectionObserver(function(G){X.handleIntersect(G)},{threshold:[$Vt]}),X.playerIntersectionObserver.observe(t),X.addOnDisposeCallback(function(){var G;
(G=X.playerIntersectionObserver)==null||G.disconnect()}))},w1N=function(X){var t,G,y;
_.n(function(w){if(w.nextAddress==1){t=_.gw().resolve(_.AS);G=t.data;y=_.nYV(G.response,G.playerResponse);_.cF().miniplayerButtonActivation=!0;if(X.pipEnabled)return _.cF().watchPipActivation=!0,w.jumpTo(2);_.gw().resolve(_.G2).collapse();return w.yield(_.cF().navigationFinishPromise,2)}if(w.nextAddress!=4)return _.cF().currentEndpoint=y.watchEndpoint||null,w.yield(_.gw().resolve(_.G2).activate(X.JSC$22729_watchApi.getElement("PLAYER"),y,G),4);_.cF().userActivation=!0;_.W$(w)})};
_.cE.prototype.handleIntersect=function(X){zfM(this,X[X.length-1])};
var zfM=function(X,t){X.watchWhileJobId&&_.vz.cancelJob(X.watchWhileJobId);X.watchWhileJobId=_.vz.addLowPriorityJob(function(){var G,y;return _.n(function(w){if(w.nextAddress==1)return X.watchWhileJobId=void 0,G=_.gw().resolve(_.G2),t.intersectionRatio>$Vt?G.isMiniplayerActive()?w.yield(G.deactivate(),0):w.jumpTo(0):(y=!G.isMiniplayerActive())?w.yield(HDk(X),5):w.jumpTo(4);w.nextAddress!=4&&(y=w.yieldResult);if(!y)return w.jumpTo(0);_.cF().watchWhileActivation=!0;return w.yield(oTW(X),0)})},100)},
HDk=function(X){return _.n(function(t){return t.nextAddress==1?_.A("kevlar_watch_while_paused")?t.return(!0):t.yield(X.isPlayerPlaying(),2):t.return(t.yieldResult)})};
_.cE.prototype.isPlayerPlaying=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return G.yield(X.JSC$22729_watchApi.playerApi,2);t=G.yieldResult;return G.return(t.getPlayerStateObject().isPlaying)})};
var oTW=function(X){var t,G;return _.n(function(y){t=_.gw().resolve(_.AS).data;G=_.nYV(t.response,t.playerResponse);_.cF().currentEndpoint=G.watchEndpoint||null;return y.yield(_.gw().resolve(_.G2).activate(X.JSC$22729_watchApi.getElement("PLAYER"),G,t),0)})};_.nTi=function(X){_.po.call(this);this.JSC$22733_watchApi=X;JKW(this);Bp1(this)};
_.S(_.nTi,_.po);var Bp1=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22733_watchApi.playerApi,2);t=y.yieldResult;G=function(w){var z;w.sessionData&&w.sessionData.itct&&(z=w.sessionData.itct);var B=w.watchEndpoint;if(B&&w.sessionData&&w.sessionData.autonav)B=_.cxG(B,z);else{var V;B=_.TG(w.videoId,(V=w.listId)!=null?V:void 0,z)}z={endpoint:B};w.sessionData&&(z.tempData=w.sessionData);X.JSC$22733_watchApi.dispatchEvent("yt-navigate",z)};
t.addEventListener("onPlayVideo",G);X.addOnDisposeCallback(function(){t.removeEventListener("onPlayVideo",G)});
_.W$(y)})},JKW=function(X){var t=function(G){X.onYtNavigate(G)};
X.JSC$22733_watchApi.getRoot().addEventListener("yt-navigate",t);X.addOnDisposeCallback(function(){X.JSC$22733_watchApi.getRoot().removeEventListener("yt-navigate",t)})};
_.nTi.prototype.onYtNavigate=function(X){var t=this,G,y,w,z,B,V,b,e,g;return _.n(function(F){if(F.nextAddress==1){if(!((G=X.detail)==null?0:(y=G.endpoint)==null?0:y.watchEndpoint))return F.return();w=X.detail.endpoint.watchEndpoint;z=t.JSC$22733_watchApi.getWatchNextResponse();V=_.Y((B=z)==null?void 0:B.currentVideoEndpoint,_.nq);if(!V)return F.return();if(w.videoId!==V.videoId||w.playlistId&&w.playlistId!==V.playlistId||typeof w.startTimeSeconds!=="number")return F.jumpTo(0);X.stopPropagation();
(b=_.A("kevlar_watch_while_v2")&&!_.A("kevlar_watch_while_counterfactual"))&&_.gw().resolve(_.G2).isMiniplayerActive()||t.JSC$22733_watchApi.scrollWatchTo(0,!0);return F.yield(t.JSC$22733_watchApi.playerApi,3)}e=F.yieldResult;g=w.startTimeSeconds;e.seekTo(g,void 0,void 0,void 0,84);e.wakeUpControls();g<e.getDuration()&&e.playVideo();_.W$(F)})};_.bDj=function(X){_.po.call(this);var t=this;this.JSC$22736_watchApi=X;var G=this.JSC$22736_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Vki(t)});
this.addOnDisposeCallback(function(){t.JSC$22736_watchApi.unsubscribeByKey(G)});
Vki(this)};
_.S(_.bDj,_.po);var Vki=function(X){var t=X.JSC$22736_watchApi.getWatchNextResponse();if(t){var G,y=[].concat(_.RY((G=t==null?void 0:t.engagementPanels)!=null?G:[]));y.unshift.apply(y,_.RY(k6i(t)));X.JSC$22736_watchApi.provideRenderingData("ENGAGEMENT_PANELS",y)}},dVN=function(X){var t,G,y,w=(t=X.engagementPanels)==null?void 0:(G=t.find(function(D){var h;
return((h=D.engagementPanelSectionListRenderer)==null?void 0:h.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(y=G.engagementPanelSectionListRenderer.content)==null?void 0:y.structuredDescriptionContentRenderer,z;
if(_.Y(w==null?void 0:(z=w.items)==null?void 0:z.find(function(D){return!!_.Y(D,LyQ)}),LyQ))return!0;
var B,V,b,e;if(X=(((B=X.contents)==null?void 0:(V=B.twoColumnWatchNextResults)==null?void 0:(b=V.results)==null?void 0:(e=b.results)==null?void 0:e.contents)||[]).find(function(D){return D.videoPrimaryInfoRenderer})){var g,F,T;
return(((g=X.videoPrimaryInfoRenderer)==null?void 0:(F=g.videoActions)==null?void 0:(T=F.menuRenderer)==null?void 0:T.flexibleItems)||[]).some(function(D){D=_.Y(D,_.Zeq);if(!D)return!1;var h,u;D=(h=D.topLevelButton)==null?void 0:(u=h.buttonViewModel)==null?void 0:u.onTap;if(!D)return!1;h=_.wr(D);if(!h)return!1;var W;return((W=_.Y(h,_.xl))==null?void 0:W.panelIdentifier)==="PAyouchat"})}return!1},k6i=function(X){var t=[];
if(!_.A("web_watch_inject_placeholder_fantasy_panel_killswitch")){var G,y,w,z=(G=X.engagementPanels)==null?void 0:(y=G.find(function(V){var b;return((b=V.engagementPanelSectionListRenderer)==null?void 0:b.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(w=y.engagementPanelSectionListRenderer.content)==null?void 0:w.structuredDescriptionContentRenderer,B;
_.Y(z==null?void 0:(B=z.items)==null?void 0:B.find(function(V){return!!_.Y(V,sfV)}),sfV)&&(G=_.CUJ("PAsports_fantasy"),G.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t.push(G))}dVN(X)&&(X=_.CUJ("PAyouchat"),X.engagementPanelSectionListRenderer.targetId="PAyouchat",X.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t.push(X));
return t};_.jHM=function(X){_.po.call(this);this.JSC$22739_watchApi=X;efM(this)};
_.S(_.jHM,_.po);var efM=function(X){X.JSC$22739_watchApi.registerActionHandler("yt-loop-command",function(t){gTj(X,t)});
X.JSC$22739_watchApi.registerActionHandler("yt-repeat-chapter-command",function(t){FbY(X,t)});
X.addOnDisposeCallback(function(){X.JSC$22739_watchApi.unregisterActionHandler("yt-loop-command");X.JSC$22739_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},gTj=function(X,t){var G;
_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22739_watchApi.playerApi,2);G=y.yieldResult;_.Y(t,SXR).loop?(G.setLoopRange({startTimeMs:Number(_.Y(t,SXR).startTimeMs),endTimeMs:Number(_.Y(t,SXR).endTimeMs),postId:_.Y(t,SXR).postId,type:"clips"}),G.playVideo()):G.setLoopRange(null);_.W$(y)})},FbY=function(X,t){var G,y;
_.n(function(w){if(w.nextAddress==1)return w.yield(X.JSC$22739_watchApi.playerApi,2);G=w.yieldResult;y=_.Y(t,Kyi).repeat;y==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(G.setLoopRange({startTimeMs:Number(_.Y(t,Kyi).startTimeMs),endTimeMs:Number(_.Y(t,Kyi).endTimeMs),type:"repeatChapter"}),G.playVideo()):y==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&G.setLoopRange(null);_.W$(w)})};_.AKN=function(X){_.po.call(this);this.JSC$22744_watchApi=X;TpY(this)};
_.S(_.AKN,_.po);var TpY=function(X){X.JSC$22744_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(t){Ywx(X,t)});
X.addOnDisposeCallback(function(){X.JSC$22744_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Ywx=function(X,t){var G,y,w,z,B,V,b,e,g,F,T;
_.n(function(D){if(D.nextAddress==1)return D.yield(X.JSC$22744_watchApi.playerApi,2);G=D.yieldResult;if(z=(w=(y=_.Y(t,O2T))==null?void 0:y.highlightedMenuItemKey)!=null?w:"")(V=(B=G).highlightSettingsMenuItem)==null||V.call(B,z);if(g=(e=(b=_.Y(t,O2T))==null?void 0:b.openMenuItemKey)!=null?e:"")(T=(F=G).openSettingsMenuItem)==null||T.call(F,g);_.W$(D)})};var sHk=_.Cg("/youtube/app/watch/player_state","playerStateEntity");_.Swk=function(X){_.po.call(this);this.JSC$22747_watchApi=X;DVx(this)};
_.S(_.Swk,_.po);var hfj=function(X){switch(X){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"}},DVx=function(X){var t,G;
_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22747_watchApi.playerApi,2);t=y.yieldResult;G=function(w){X.onPlayerStateChange(w)};
t.addEventListener("onStateChange",G);X.addOnDisposeCallback(function(){t.removeEventListener("onStateChange",G)});
_.W$(y)})};
_.Swk.prototype.onPlayerStateChange=function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1)return w.yield(t.JSC$22747_watchApi.playerApi,2);G=w.yieldResult;y=G.getVideoData().video_id;_.kF().dispatch(_.EW("playerStateEntity",sHk,{key:sHk,playerState:hfj(X),videoId:y}));_.W$(w)})};_.qw1=function(X){_.po.call(this);var t=this;this.JSC$22751_watchApi=X;this.enableExternalPlaylistPanelInPlayer=_.A("delhi_web_player_use_external_playlist_panel");_.gw().resolve(_.Gm).setPlayer(this.JSC$22751_watchApi.getElement("PLAYER"));X=this.JSC$22751_watchApi.subscribeToActiveChanged(function(G){t.onActiveChanged(G)});
this.addOnDisposeCallback(X);ZDt(this)};
_.S(_.qw1,_.po);var ZDt=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return X.enableExternalPlaylistPanelInPlayer?y.yield(X.JSC$22751_watchApi.playerApi,2):y.return();t=y.yieldResult;G=function(){if(X.playlistPanelElement)X.playlistPanelElement.onToggleExpanded()};
t.addEventListener("onToggleExternalPlaylistPanel",G);X.addOnDisposeCallback(function(){t.removeEventListener("onToggleExternalPlaylistPanel",G)});
_.W$(y)})};
_.qw1.prototype.onActiveChanged=function(X){var t=this,G=_.gw().resolve(_.Gm),y=function(){CGY(t)};
X?(this.playlistPanelElement=this.JSC$22751_watchApi.getElement("PLAYLIST_PANEL"))?(G.setPlaylistComponent(this.playlistPanelElement),G.addEventListener("yt-playlist-data-updated",y),this.addOnDisposeCallback(function(){G.removeEventListener("yt-playlist-data-updated",y)}),CGY(this)):_.yQ(Error("yo")):(G.removeEventListener("yt-playlist-data-updated",y),G.cancelVideoSkip())};
var CGY=function(X){var t=_.gw().resolve(_.Gm);X.JSC$22751_watchApi.provideRenderingData("PLAYLIST",t.getPlaylistData())};_.p2=function(X){_.po.call(this);var t=this;this.JSC$22754_watchApi=X;this.onPageScroll=function(){t.scrollThrottle.fire();t.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.d2(this.onThrottledScroll,200,this);_.h6(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.d2(this.onMastheadThrottledScroll,50,this);_.h6(this,this.mastheadScrollThrottle);this.animation=new _.yS(function(G){t.JSC$22754_watchApi.getRoot().setScrollTop(G)});
X=_.rz(_.dV(),_.Gz,function(){t.onFullscreenChanged()});
this.addOnDisposeCallback(X);Kbi(this);OD_(this);this.onThrottledScroll()};
_.S(_.p2,_.po);
_.p2.prototype.onFullscreenChanged=function(){var X=this,t=this.JSC$22754_watchApi.getRoot();!this.pageScrollElement&&t.pageScrollElement?(this.pageScrollElement=t.pageScrollElement,t.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){X.pageScrollElement&&X.pageScrollElement.removeEventListener("scroll",X.onPageScroll)})):this.pageScrollElement&&!t.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var Kbi=function(X){window.addEventListener("scroll",X.onPageScroll);X.addOnDisposeCallback(function(){window.removeEventListener("scroll",X.onPageScroll)})},OD_=function(X){X.JSC$22754_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(t){a:{var G;
if(G=X.JSC$22754_watchApi.getRoot().contains(t)&&!X.animation.isAnimating()){G=t.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var y,w,z=(t==null?void 0:(y=t.parentElement)==null?void 0:(w=y.parentElement)==null?void 0:w.id)==="fixed-secondary";G=!(G&&z)}if(G){if(_.A("kevlar_watch_scroll_manager_absolute_offset_killswitch"))y=t.offsetTop;else for(y=0,w=t;w!==null;)y+=w.offsetTop,y-=w.scrollTop,w=w.offsetParent;w=y;y=w-24;t=w+t.offsetHeight+24;w=X.JSC$22754_watchApi.getRoot().getPageScrollingElement();
G=X.JSC$22754_watchApi.getRoot().getScrollTop();z=G+w.clientHeight-56;if(y<G+56)t=y-56;else if(t>z)t-=w.clientHeight;else break a;X.scrollWatchTo(Math.max(0,t),!0)}}});
X.addOnDisposeCallback(function(){X.JSC$22754_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.p2.prototype.onThrottledScroll=function(){var X=_.dV(),t=X.dispatch,G=this.JSC$22754_watchApi.getRoot().getScrollTop();t.call(X,_.Dl({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:G}}))};
_.p2.prototype.onMastheadThrottledScroll=function(){this.JSC$22754_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22754_watchApi.getRoot().getScrollTop())};
_.p2.prototype.scrollWatchTo=function(X,t){(t===void 0?0:t)?this.animation.start(this.JSC$22754_watchApi.getRoot().getScrollTop(),Math.max(0,X),500):this.JSC$22754_watchApi.getRoot().setScrollTop(X)};_.IAk=function(X){_.po.call(this);var t=this;this.JSC$22757_watchApi=X;var G=this.JSC$22757_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){u2t(t)}),y=this.JSC$22757_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QHk(t)});
this.addOnDisposeCallback(function(){t.JSC$22757_watchApi.unsubscribeByKey(G);t.JSC$22757_watchApi.unsubscribeByKey(y)});
u2t(this);QHk(this)};
_.S(_.IAk,_.po);
var u2t=function(X){var t,G,y,w=(y=(t=X.JSC$22757_watchApi.getPlayerResponse())==null?void 0:(G=t.videoDetails)==null?void 0:G.title)!=null?y:"";X.JSC$22757_watchApi.dispatchEvent("yt-update-title",w)},QHk=function(X){var t,G,y,w,z,B,V,b=(V=((B=(t=X.JSC$22757_watchApi.getWatchNextResponse())==null?void 0:(G=t.contents)==null?void 0:(y=G.twoColumnWatchNextResults)==null?void 0:(w=y.results)==null?void 0:(z=w.results)==null?void 0:z.contents)!=null?B:[]).find(function(e){return!!e.videoPrimaryInfoRenderer}))==null?
void 0:V.videoPrimaryInfoRenderer;
(t=_.bu(b==null?void 0:b.title))&&X.JSC$22757_watchApi.dispatchEvent("yt-update-title",t)};_.cKt=function(X){_.po.call(this);this.JSC$22760_watchApi=X;Wbt(this)};
_.S(_.cKt,_.po);var Wbt=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$22760_watchApi.playerApi,2);t=y.yieldResult;G=function(){X.onYpcContentRequest()};
t.addEventListener("onYpcContentRequest",G);X.addOnDisposeCallback(function(){t.removeEventListener("onYpcContentRequest",G)});
_.W$(y)})};
_.cKt.prototype.onYpcContentRequest=function(){var X,t,G,y,w,z=(X=this.JSC$22760_watchApi.getWatchNextResponse())==null?void 0:(t=X.contents)==null?void 0:(G=t.twoColumnWatchNextResults)==null?void 0:(y=G.secondaryResults)==null?void 0:(w=y.secondaryResults)==null?void 0:w.offerModule,B,V,b,e;X=(e=(b=(V=(B=z==null?void 0:z.episodeOfferModuleRenderer)!=null?B:z==null?void 0:z.movieOfferModuleRenderer)!=null?V:z==null?void 0:z.unlimitedOfferModuleRenderer)!=null?b:z==null?void 0:z.liveOfferModuleRenderer)!=
null?e:z==null?void 0:z.tvfilmOfferModuleRenderer;var g,F,T;z=(T=z==null?void 0:(g=z.tvfilmOfferModuleRenderer)==null?void 0:(F=g.actionButtons)==null?void 0:F.length)!=null?T:0;F=Math.max(z-1,0);var D,h,u;g=(u=X==null?void 0:(D=X.offerButton)==null?void 0:D.buttonRenderer)!=null?u:X==null?void 0:(h=X.actionButtons)==null?void 0:h[F].buttonRenderer;var W,c;(D=(c=(W=g==null?void 0:g.navigationEndpoint)!=null?W:g==null?void 0:g.serviceEndpoint)!=null?c:g==null?void 0:g.command)&&_.Wj.instance.resolveCommand(D)};
}catch(e){_._DumpException(e)}
try{
var xjB,vAB,ihN;_.LuH=function(){var X=_.RH.clone(RPQ),t;return(new _.Kh(function(G,y){X.onSuccess=function(w){_.Fxf(w)?G(new ihN(w)):y(new _.jW("Request failed, status="+_.Du(w),"net.badstatus",w))};
X.onError=function(w){y(new _.jW("Unknown request error","net.unknown",w))};
X.onTimeout=function(w){y(new _.jW("Request timed out","net.timeout",w))};
t=_.Cs("//googleads.g.doubleclick.net/pagead/id",X)})).thenCatch(function(G){if(G instanceof _.zC){var y;
(y=t)==null||y.abort()}return _.l$(G)})};
_.aUv=function(X){a:{var t="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(t="EMBEDDED_PLAYER_MODE_PFL");var G=X.raw_embedded_player_response;if(!G&&(X=X.embedded_player_response))try{G=JSON.parse(X)}catch(w){break a}if(G)b:for(var y in vAB)if(vAB[y]==G.embeddedPlayerMode){t=vAB[y];break b}}return t==="EMBEDDED_PLAYER_MODE_PFL"};
_.lUi=function(){if(_.A("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.PkV())return Error("pf");var X=_.Md("PLAYER_VARS",{});if(_.RH.get(X,"privembed",!1)=="1")return Error("qf");if(_.aUv(X))return Error("rf")};
xjB=function(X){switch(X){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:_.zr(X,"unknown result type")}};
_.fUr=function(X,t,G){t=_.pCV[t];G={detected:X===0,source:t.tIT,detectionResult:xjB(X),contentCpn:G};_.a7("biscottiBasedDetection",G);_.oUR.increment(t.tIT,X);t.oas!==void 0&&_.fY("CATSTAT",_.Wk_(X,t))};
_.gm=function(X,t){var G={};G.key=X;G.value=t;return _.jJY().then(function(y){return new Promise(function(w,z){try{var B=y.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(G);B.onsuccess=function(){w()};
B.onerror=function(){z()}}catch(V){z(V)}})})};
_.XqV=function(){var X=_.At("user_engagement_experiments_rate_limit_ms"),t=MPR.get("last-user-engagement-exp-trigger-timestamp");return!t||(0,_.gl)()>=t+X?(MPR.set("last-user-engagement-exp-trigger-timestamp",(0,_.gl)()),!0):!1};
_.Fd=function(X,t,G,y,w){t=t===void 0?null:t;G=G===void 0?null:G;y=y===void 0?null:y;w=w===void 0?null:w;X={youThereEventType:X};G&&(X.lactThresholdMs=G.lactThresholdMs,X.mediaPosSec=G.promptDelaySec,X.lactServerRequestMs=G.lactServerRequestMs,X.triggerReason=G.triggerReason);w!=null&&(X.renderingMediaPosSec=Math.round(w));t||(t=_.lw());t&&(X.clientScreenNonce=t);y&&(X.clientPlaybackNonce=y);_.a7("youThere",X)};
vAB={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"};ihN=function(X){this.xhr=X};
_.jW=function(X,t,G){_.Xv.call(this,X+", errorCode="+t);this.errorCode=t;this.xhr=G;this.name="PromiseAjaxError"};
_.S(_.jW,_.Xv);var RPQ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var MPR=new _.M1("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.mjT=function(X){return _.Dl({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:X})};
}catch(e){_._DumpException(e)}
try{
var EX,lA1,fA1,Mkt,Xpk,$lW,Gl1,nb_,VM_,bok,tMk,xVM,HoN,zB1,eB1;_.aAi=function(){var X=window.location.hash;X.charAt(0)==="#"&&(X=X.charAt(1)==="!"?X.substring(2):X.substring(1));return _.Hx(X)};
EX=function(X,t,G){var y;return _.n(function(w){if(w.nextAddress==1)return w.yield(t(),2);y=w.yieldResult;G(y,X);_.W$(w)})};
lA1=function(){return _.n(function(X){return X.nextAddress==1?X.yield((_.lUi()!==void 0?_.l$(Error("sf")):_.LuH()).then(function(){return 1},function(t){if(t.message==="Biscotti id is disabled")return 3;
_.Mj("Failed fetching bid");return 0}),2):X.return(X.yieldResult)})};
fA1=function(){var X=_.T8("ZWQtcGxheWVyI3ZhMm9reHJnbzV0cXl0LWhhdmVuLWVtYg=="),t=_.T8("ZnJhbWUjZmhiZG9hYjV2a3ZraQ==");return document.querySelector(t+xVM+X)?0:1};
Mkt=function(){return _.Y$V(_.nu)};
Xpk=function(){return _.shY()===0?0:_.DZV()};
$lW=function(){return _.CVY(_.RoE([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Gl1=function(){return _.kKl(tMk)};
_.y6t=function(X){_.n(function(t){switch(t.nextAddress){case 1:return t.yield(EX("b.f_",lA1,X),2);case 2:return t.yield(EX("j.s_",_.VCJ,X),3);case 3:return t.yield(EX("r.s_",_.JB_,X),4);case 4:return t.yield(EX("e.h_",Gl1,X),5);case 5:if(!_.A("ab_det_sc_inj")){t.jumpTo(6);break}return t.yield(EX("s.i_",_.TQG,X),6);case 6:if(_.A("ab_deg_unex_thr")){t.jumpTo(8);break}return t.yield(EX("a.o_",_.gQh,X),8);case 8:if(_.A("ks_get_o_pp")){t.jumpTo(10);break}return t.yield(EX("g.o_",_.jhG,X),10);case 10:if(_.A("ks_det_gpbl")){t.jumpTo(12);
break}return t.yield(EX("p.i_",_.ew_,X),12);case 12:return t.yield(EX("f.i_",_.f8V,X),14);case 14:return t.yield(EX("a.b_",_.Hr0,X),15);case 15:return t.yield(EX("p.m_",_.$ZG,X),16);case 16:if(!_.A("ab_det_el_h_v2")){t.jumpTo(17);break}return t.yield(EX("n.h_",$lW,X),17);case 17:return t.yield(EX("o.p_",Mkt,X),19);case 19:return t.yield(EX("e.i_",fA1,X),20);case 20:if(_.A("ab_det_apm"))return t.yield(EX("o.a_",Xpk,X),0);t.jumpTo(0)}})};
_.wpY=function(X,t){X={videoId:X};t&&(X.playlistId=t);return X};
_.ob_=function(){if(_.PkV()){var X=_.Md("PLAYER_VARS",{});if(_.RH.get(X,"privembed",!1)!="1"&&!_.aUv(X)){var t=function(){zB1=!0;"google_ad_status"in window?_.fY("DCLKSTAT",1):_.fY("DCLKSTAT",2)};
try{_.Gi(_.wEe,t)}catch(G){}HoN.push(_.vz.addLowPriorityJob(function(){if(!(zB1||"google_ad_status"in window)){try{_.uBA(_.wEe.toString(),t)}catch(G){}zB1=!0;_.fY("DCLKSTAT",3)}},5E3))}}};
_.UX=function(X,t,G){G=G===void 0?!1:G;var y=Math.max(X.width,_.aDq);if(_.A("kevlar_watch_feed_big_thumbs")&&X.width>=1550-_.$R()&&X.height>=800)y-=_.$wW;else if(X.width>=_.Wg){var w=_.lD2+_.xuR+_.Iv;_.A("kevlar_watch_feed_big_thumbs")&&(w=_.XYk);y-=w}else y-=_.lD2;y=Math.min(y,_.fDR);w=240;G&&(w=380);t<.5624||(!_.A("kevlar_watch_flexy_disable_small_window_sizing")&&(X.height<630&&X.width>=657||X.height>=630&&X.width>=_.Wg&&X.width<1327)?w=360:!_.A("kevlar_watch_flexy_disable_large_window_sizing")&&
X.height>=630&&X.width>=1327&&(w=480));var z=Math.min(y*t,X.height-(56+_.vuv+_.MER));z=Math.max(z,w);t<1?y=z/t:X.width>=_.Wg&&(y=_.UX(X,.5625,G).width);return new _.IH(Math.round(y),Math.round(z))};
_.J6N=function(X){var t=0;X.indexOf("h")!=-1&&(X=X.split("h"),t=X[0]*60*60,X=X[1]);X.indexOf("m")!=-1&&(X=X.split("m"),t=X[0]*60+t,X=X[1]);X.indexOf("s")!=-1?(X=X.split("s"),t=X[0]*1+t):t=X*1+t;return t};
_.BT1=function(){_.At("service_worker_push_logged_out_prompt_watches")!=-1&&_.DS("WatchCount").then(function(X){X>=100||_.gm("WatchCount",X+1)})};
nb_=function(X){var t=X.externalVideoId||"";return t?X.isShortsEligible?"https://www.youtube.com/shorts/"+t:"https://www.youtube.com/watch?v="+t:""};
VM_=function(X){var t=[];X.viewCount&&t.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:X.viewCount});X.likeCount&&t.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:X.likeCount});return t};
bok=function(X){var t,G,y={"@context":"https://schema.org","@type":"VideoObject",description:_.bu(X.description),duration:"PT"+(X.lengthSeconds||"0")+"S",embedUrl:X.embed?X.embed.iframeUrl:"",name:_.bu(X.title),thumbnailUrl:((t=X.thumbnail)==null?void 0:(G=t.thumbnails)==null?void 0:G.map(function(g){return g&&g.url||""}))||[],
uploadDate:X.publishDate};_.A("mweb_video_schema_id_killswitch")||(y["@id"]=nb_(X));t=VM_(X);t.length&&(y.interactionStatistic=t);X.category&&(y.genre=X.category);X.ownerChannelName&&(y.author=X.ownerChannelName);X.liveBroadcastDetails&&(y.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:X.liveBroadcastDetails.startTimestamp,endDate:X.liveBroadcastDetails.endTimestamp}]);if(X.learningResource){X=X.learningResource;y["@type"]=["VideoObject","LearningResource"];var w;if((w=X.learningResourceType)==
null?0:w.length)y.learningResourceType=X.learningResourceType[0];var z;if((z=X.educationalAlignment)==null?0:z.length)y.educationalAlignment={"@type":"AlignmentObject",targetName:X.educationalAlignment[0]};var B;if((B=X.educationalLevel)==null?0:B.length){w=X.educationalLevel[0];var V;if((V=X.educationalLevelCountry)==null?0:V.length)w+=" ("+X.educationalLevelCountry+")";y.educationalLevel=w}var b,e;if(((b=X.learningResourceType)==null?0:b.length)&&X.learningResourceType[0]==="Problem walkthrough"&&
((e=X.problemDescriptions)==null?0:e.length))for(y.hasPart=[],V=_.J(X.problemDescriptions),b=V.next();!b.done;b=V.next())w=b.value,b=w.problemDescriptionText,e=w.startOffset,w=w.url,b&&e!==void 0&&w&&y.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:b,text:b,startOffset:e,url:w})}return y};
_.klY=function(X){return _.Dl({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:X}})};
tMk=[[["YXJ5I2hobHlnM2R4M2l1ZXByaW0=",null,null],[null,["MXk5ejR5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciN2OG41bXll","OGl4bTYzMWNzdHlsZS1zY29wZSNsMnM3"],null],["bjRhdmQ1cmNtYXN0aGVhZC1hZCM3N3Nh",["cmVuZGVyZXIjcHNlcTJhdWk3emQ4eXRkLXJpY2gtZ3JpZC0="],null],[null,["cmVuZGVyZXIjeGUycXpudHV4bGIweXRkLXJpY2gtZ3JpZC0=","N2JuYXo5c2hzdHlsZS1zY29wZSNxd2xo"],null],[null,["ZGVyZXIjZm51NmNucnphazh1eXRkLWJhbm5lci1wcm9tby1yZW4=","M3U5YXg5YnNzdHlsZS1zY29wZSMyaXZk"],null],[null,["dC1yZW5kZXJlciNtcjdmYjh1b3o1eTJ5dGQtYWQtc2xv"],
null]],[["eG01OWwzM25zdnBsYXllci1hZHMja28=",null,null]],[["cmlwdGlvbi1pbm5lciMxbG1sbHV0OWxsbzlkZXNj",null,null],[null,null,"bmRlcmVyIzduZTE1cmVjYTRpcXl0ZC1tZXJjaC1zaGVsZi1yZQ=="],["cmRlZGNtYWluI3ZxZm1rbGQ=",["bmRlcmVyIzVxMzhyamlxZ3kwZHl0ZC1tZXJjaC1zaGVsZi1yZQ=="],null]]];xVM="#";HoN=[];zB1=!1;_.dlt=["engagement-panel-ads"];eB1=new _.ja("updateSentimentBarStateCommand");_.j0_=new _.ja("showSurveyCommand");_.my=new _.ja("changeMarkersVisibilityCommand");var FWt,TTN,DlB,s0N,YFB,Rf;_.gbB=function(X,t){this.playerProvider_=X;this.actionSenderElement_=t;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.gbB.prototype.reset=function(){FWt(this);this.isUserPredictedAbsent_=!1};
FWt=function(X,t){!X.youThereData_||X.showWarningJob_||t!==void 0&&t||(_.Fd("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.lw(),X.youThereData_,X.clientPlaybackNonce_),_.lx());_.vz.cancelJob(X.showWarningJob_);X.showWarningJob_=0;_.vz.cancelJob(X.showBlockingWarningJob_);X.showBlockingWarningJob_=0;_.vz.cancelJob(X.pausePlaybackJob_);X.pausePlaybackJob_=0;X.youThereData_=null;X.clientPlaybackNonce_=void 0;X.inYouThereFlow_=!1};
_.A6W=function(X,t){var G,y,w;_.n(function(z){if(z.nextAddress==1)return X.reset(),z.yield(X.playerProvider_().getPlayerPromise(),2);G=z.yieldResult;X.clientPlaybackNonce_=G.getVideoData().cpn;X.youThereData_=t.configData.youThereData;if(!X.youThereData_)return z.return();if(X.youThereData_.triggerReason&&X.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.XqV())return _.Fd("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.lw(),X.youThereData_,X.clientPlaybackNonce_),z.return();y=X.youThereData_.promptDelaySec;
w=G.getCurrentTime();X.showWarningJob_=_.vz.addLowPriorityJob(function(){return _.n(function(B){X.showWarningJob_=0;return B.yield(TTN(X),0)})},Math.max(y-w,0)*1E3);
_.W$(z)})};
TTN=function(X){var t,G,y,w,z,B;return _.n(function(V){if(V.nextAddress==1)return V.yield(X.playerProvider_().getPlayerPromise(),2);if(V.nextAddress!=3)return t=V.yieldResult,G=t.getCurrentTime(),V.yield(YFB(X),3);y=V.yieldResult;if(!y||!X.youThereData_)return V.return();if(_.A("check_user_lact_at_prompt_shown_time_on_web")&&(w=parseInt(X.youThereData_.lactThresholdMs,10),_.T5()<w))return _.Fd("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.lw(),X.youThereData_,X.clientPlaybackNonce_),V.return();if(X.youThereData_.playbackPauseDelayMs<=
0)return s0N(X),V.return();!_.A("external_fullscreen")&&(z=_.gk())&&(X.ignoreFullscreenExitUserActivity_=!0,_.vz.addLowPriorityJob(function(){X.ignoreFullscreenExitUserActivity_=!1},2E3),_.Fi(z));
X.youThereData_.showToastWarningPrompt&&(Rf(X,X.youThereData_.showWarningActions),X.inYouThereFlow_=!0,_.Fd("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.lw(),X.youThereData_,X.clientPlaybackNonce_,G),_.Fd("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.lw(),X.youThereData_,X.clientPlaybackNonce_,G));B=0;X.youThereData_.blockingPromptDelayMs&&(B=X.youThereData_.blockingPromptDelayMs);X.showBlockingWarningJob_=_.vz.addLowPriorityJob(function(){return _.n(function(b){X.showBlockingWarningJob_=0;return b.yield(DlB(X),
0)})},B);
_.W$(V)})};
DlB=function(X){var t,G,y;return _.n(function(w){if(w.nextAddress==1)return w.yield(YFB(X),2);t=w.yieldResult;if(!X.youThereData_)return w.return();t&&(X.youThereData_.showBlockingWarningAction&&(_.Fd("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.lw(),X.youThereData_,X.clientPlaybackNonce_),(G=_.Y(X.youThereData_.showBlockingWarningAction,_.Cq))?Rf(X,G.commands):Rf(X,[X.youThereData_.showBlockingWarningAction]),X.inYouThereFlow_=!0),y=X.youThereData_.playbackPauseDelayMs,X.pausePlaybackJob_=
_.vz.addLowPriorityJob(function(){return _.n(function(z){X.pausePlaybackJob_=0;return z.yield(s0N(X),0)})},y));
_.W$(w)})};
s0N=function(X){var t;return _.n(function(G){if(G.nextAddress==1)return G.yield(YFB(X),2);t=G.yieldResult;if(!X.youThereData_)return G.return();t&&(_.Fd("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.lw(),X.youThereData_,X.clientPlaybackNonce_),Rf(X,X.youThereData_.showPausedActions),X.inYouThereFlow_=!0);_.W$(G)})};
_.gbB.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var X=_.Y(this.youThereData_.userActiveDuringFlowAction,_.Cq);X?Rf(this,X.commands):Rf(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Fd("YOU_THERE_EVENT_TYPE_LACT_RESET",_.lw(),this.youThereData_,this.clientPlaybackNonce_),_.lx());FWt(this,!0)}_.SFY(this,!1)};
_.hBN=function(X){_.Fd("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.lw(),X.youThereData_,X.clientPlaybackNonce_)};
YFB=function(X){var t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(X.playerProvider_().getPlayerPromise(),2);t=y.yieldResult;G=t.getPlayerState();return y.return(G==-1||G==1||G==3)})};
_.SFY=function(X,t){var G;_.n(function(y){if(y.nextAddress==1){if(X.isUserPredictedAbsent_==t)return y.jumpTo(0);X.isUserPredictedAbsent_=t;return y.yield(X.playerProvider_().getPlayerPromise(),3)}G=y.yieldResult;G.setUserEngagement(t);t&&_.Fd("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.lw(),X.youThereData_,X.clientPlaybackNonce_);_.W$(y)})};
Rf=function(X,t){if(_.A("handle_service_request_actions")||_.A("kevlar_youthere_service_endpoint_actions_killswitch"))_.Z0(X.actionSenderElement_,t,X.actionSenderElement_);else{t=_.J(t);for(var G=t.next();!G.done;G=t.next())G=G.value,G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.sendPost?_.hE(X.actionSenderElement_,[G]):_.Z0(X.actionSenderElement_,[G],X.actionSenderElement_)}};var Zok;var qFx;var iq=function(){var X=_.O.apply(this,arguments)||this;X.systemIcons=_.A("kevlar_system_icons");X.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return X};
_.S(iq,_.O);iq.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var X=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(X=this.data.percentIfLiked||0,this.activated=!0):(X=this.data.percentIfIndifferent||0,this.activated=!1);_.Sm(this.hostElement).querySelector("#like-bar").style.width=X+"%"}};
iq.prototype.handleUpdateSentimentBarStateCommand=function(X){this.data&&this.set("data.likeStatus",_.Y(X,eB1).likeStatus)};
iq.prototype.observeLikeStatus=iq.prototype.observeLikeStatus;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],iq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iq.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],iq.prototype,"activated",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],iq.prototype,"systemIcons",void 0);_.E([_.cW("data.likeStatus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],iq.prototype,"observeLikeStatus",null);_.E([_.p({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],iq);
_.N(iq,"ytd-sentiment-bar-renderer",function(){if(qFx!==void 0)return qFx;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qFx=X},{mode:1});var CfY;var L2=function(){var X=_.O.apply(this,arguments)||this;X.small=!0;return X};
_.S(L2,_.O);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],L2.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],L2.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],L2.prototype,"small",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],L2);
_.N(L2,"ytd-video-view-count-renderer",function(){if(CfY!==void 0)return CfY;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return CfY=X},{mode:_.Cz("kevlar_poly_si_batch_j080")?1:2});var vE=function(){var X=_.O.apply(this,arguments)||this;X.infoFormattedStrings=[];X.wrapVideoActions=_.A("kevar_watch_wrap_video_actions");X.hideSentimentBar=_.A("kevlar_watch_hide_sentiment_bar");X.actionMap={};return X};
_.S(vE,_.O);_.H=vE.prototype;_.H.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.A("web_modern_buttons"),forceIconButton:!_.A("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.H.dataChanged=function(){_.A("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.H.computeInfoFormattedStrings=function(X){if(!X)return[];var t=[];X.dateText&&t.push(X.dateText);X.stationName&&t.push(X.stationName);X.rating&&t.push(X.rating);X.startEndTimeTemplate&&X.startTimeUtcMillis&&X.endTimeUtcMillis&&t.push(_.Vl(_.gaV(_.bu(X.startEndTimeTemplate),Number(X.startTimeUtcMillis),Number(X.endTimeUtcMillis))));X.upNextProgramText&&t.push(X.upNextProgramText);return t};
_.H.scheduleInitialUpdatedMetadataRequest=function(){var X,t=(X=this.data)==null?void 0:X.updatedMetadataEndpoint;if(t){var G;X=Number((G=_.Y(t,_.yPR))==null?void 0:G.initialDelayMs);G=isNaN(X)?250:X;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),G)}};
_.H.setSentimentBarWidth=function(){var X=this;_.V8(this,function(){var t=_.Sm(X.hostElement).querySelector("ytd-menu-renderer");if(t){t=t.topLevelButtons;for(var G=0,y=0;y<t.length;y++){var w=t[y],z=X.get("toggleButtonSupportedData.toggleButtonIdData.id",w.data);if(z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||z==="TOGGLE_BUTTON_ID_TYPE_LIKE")G+=w.clientWidth+8;else break}G&&(X.sentiment.style.width=G-8+" px")}})};
_.H.fetchUpdatedMetadata=function(X){var t;X&&(t={continuation:X});var G;(X=(G=this.data)==null?void 0:G.updatedMetadataEndpoint)&&_.gw().resolve(_.F3).resolveCommand(X,{form:Object.assign({},t,{element:this.hostElement})})};
_.H.onYtServiceRequestSent=function(X,t){t.endpoint&&_.Y(t.endpoint,_.wP)&&(this.hasUpdateSentimentBarStateCommands()&&!_.A("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.Y(t.endpoint,_.wP).status),this.setSentimentBarWidth())};
_.H.hasUpdateSentimentBarStateCommands=function(){var X,t,G,y,w=(y=(X=this.data)==null?void 0:(t=X.videoActions)==null?void 0:(G=t.menuRenderer)==null?void 0:G.topLevelButtons)!=null?y:[];X=_.J(w);for(t=X.next();!t.done;t=X.next()){t=t.value;w=y=G=void 0;var z=(G=t.toggleButtonRenderer)==null?void 0:(y=G.toggleButtonSupportedData)==null?void 0:(w=y.toggleButtonIdData)==null?void 0:w.id;if(z==="TOGGLE_BUTTON_ID_TYPE_LIKE"||z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){y=G=void 0;t=(y=_.Y((G=t.toggleButtonRenderer)==
null?void 0:G.defaultServiceEndpoint,_.Cq))==null?void 0:y.commands;if(!t)break;t=_.J(t);for(G=t.next();!G.done;G=t.next())if(_.Y(G.value,eB1))return!0}}return!1};
_.H.onYtServiceRequestCompleted=function(X,t){var G;(X=(G=t.data)==null?void 0:G.loggingDirectives)&&_.WHE(_.Pj(),X);this.get("continuation.timedContinuationData",t.data)&&this.data&&this.data.updatedMetadataEndpoint&&(t=t.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,t.continuation),t.timeoutMs))};
_.H.computeHasDateText=function(X){return!!X&&!!X.dateText};
_.ke.Object.defineProperties(vE.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y;return!((y=(X=this.data)==null?void 0:(t=X.videoActions)==null?void 0:(G=t.menuRenderer)==null?void 0:G.flexibleItems)==null||!y.length)}}});
vE.prototype.onYtServiceRequestCompleted=vE.prototype.onYtServiceRequestCompleted;vE.prototype.onYtServiceRequestSent=vE.prototype.onYtServiceRequestSent;vE.prototype.dataChanged=vE.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],vE.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.gG.YtTaskEmitterBehavior),_.U("design:type",Object)],vE.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vE.prototype,"data",void 0);_.E([_.K({computed:"computeInfoFormattedStrings(data)"}),_.U("design:type",Array)],vE.prototype,"infoFormattedStrings",void 0);
_.E([_.K({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],vE.prototype,"hasDateText",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vE.prototype,"wrapVideoActions",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vE.prototype,"hideSentimentBar",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],vE.prototype,"flexMenuEnabled",null);
_.E([_.rt("#sentiment"),_.U("design:type",Object)],vE.prototype,"sentiment",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vE.prototype,"dataChanged",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],vE.prototype,"onYtServiceRequestSent",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],vE.prototype,"onYtServiceRequestCompleted",null);
_.N(vE,"ytd-video-primary-info-renderer",function(){if(Zok===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);Zok=X}X=Zok;return X},{mode:1});var KWB;var af=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return X};
_.S(af,_.O);_.H=af.prototype;_.H.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"}}}};
_.H.dataChanged=function(){var X;this.descriptionToggled=!((X=this.data)==null||!X.defaultExpanded);var t;this.collapsed=this.descriptionAlwaysCollapsed||!((t=this.data)==null?0:t.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.ai(110509);this.showLessClientVe=_.ai(110510);X=_.lw();t=_.a4();X&&t&&_.zG(X,t,[this.showMoreClientVe,this.showLessClientVe])};
_.H.onYtExpanderMoreTapped=function(){var X,t=(X=this.data)==null?void 0:X.showMoreCommand;t&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(t);(X=_.lw())&&this.showMoreClientVe&&_.BK(X,this.showMoreClientVe)};
_.H.onYtExpanderLessTapped=function(){var X=_.lw();X&&this.showLessClientVe&&_.BK(X,this.showLessClientVe);var t;(X=(t=this.data)==null?void 0:t.showLessCommand)&&this.componentBehavior.resolveCommand(X)};
_.H.handleUpdateDateTextAction=function(X){this.data&&this.data.dateText&&this.set("data.dateText",_.Y(X,_.EuT).dateText)};
_.H.handleUpdateDescriptionAction=function(X){if(X=_.Y(X,_.tVe))X.isEmpty||!X.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.$I(X.description)):this.set("data.description",X.description)};
_.H.onYtChangeEngagementPanelVisibilityAction=function(X){if(_.A("web_structured_description_show_more")||_.A("web_engagement_panel_open_description")){var t,G=(t=_.Y(X,_.ryq))==null?void 0:t.targetId,y;X=((y=_.Y(X,_.ryq))==null?void 0:y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";G==="engagement-panel-structured-description"&&X&&(this.descriptionToggled=!0)}};
_.H.updateCollapsedFromBinding=function(X){this.collapsed=X.detail.value};
_.H.updateDescriptionToggledFromBinding=function(X){this.descriptionToggled=X.detail.value};
_.H.updateCanCollapseFromBinding=function(X){this.canCollapse=X.detail.value};
_.ke.Object.defineProperties(af.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(X=this.data)==null?void 0:(t=X.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer;return!!G&&!!G.rows&&G.rows.length>G.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.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}}});
af.prototype.onYtExpanderLessTapped=af.prototype.onYtExpanderLessTapped;af.prototype.onYtExpanderMoreTapped=af.prototype.onYtExpanderMoreTapped;af.prototype.dataChanged=af.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],af.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],af.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],af.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],af.prototype,"collapsed",void 0);_.E([_.K(),_.U("design:type",Boolean)],af.prototype,"descriptionToggled",void 0);
_.E([_.K(),_.U("design:type",Boolean)],af.prototype,"canCollapse",void 0);_.E([_.K(),_.U("design:type",Object)],af.prototype,"subscribeButtonData",void 0);_.E([_.K(),_.U("design:type",Number)],af.prototype,"descriptionCollapsedHeight",void 0);_.E([_.K(),_.U("design:type",Object)],af.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.K({value:function(){return _.A("web_watch_description_always_collapsed")}}),
_.U("design:type",Boolean)],af.prototype,"descriptionAlwaysCollapsed",void 0);_.E([_.rt("#description"),_.U("design:type",HTMLDivElement)],af.prototype,"description",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],af.prototype,"dataChanged",null);_.E([_.WW("yt-expander-more-tapped"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],af.prototype,"onYtExpanderMoreTapped",null);
_.E([_.WW("yt-expander-less-tapped"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],af.prototype,"onYtExpanderLessTapped",null);_.E([_.C("data.metadataRowContainer"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],af.prototype,"metadataCollapsible",null);_.E([_.C("data","structuredDescriptionContentRenderer"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],af.prototype,"hasInlineStructuredDescription",null);
_.E([_.C("data.attributedDescription"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],af.prototype,"hasAttributedDescription",null);_.E([_.C("hasInlineStructuredDescription","collapsed"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],af.prototype,"loadStructuredDescription",null);_.E([_.C("data","structuredDescriptionContentRenderer","collapsed"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],af.prototype,"showInlineStructuredDescription",null);
_.E([_.C("data","hasInlineStructuredDescription","metadataCollapsible"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],af.prototype,"descriptionAlwaysCollapsible",null);
_.N(af,"ytd-video-secondary-info-renderer",function(){if(KWB===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);KWB=X}X=KWB;return X},{mode:2});var Ooj;var lq=function(){return _.O.apply(this,arguments)||this};
_.S(lq,_.O);lq.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:_.A("web_modern_buttons"),forceIconButton:!_.A("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
lq.prototype.activate=function(X){X.appendTo(this.player);X.getPlayerPromise().then(function(t){t.setMinimized(!0)});
this.active=!0};
lq.prototype.deactivate=function(){var X=this.player.firstElementChild;X.getPlayerPromise().then(function(t){t.setMinimized(!1)});
this.active=!1;return X};
lq.prototype.onScrollUpTap=function(){var X=_.gw().resolve(_.AS).getCurrentPage();X&&X.setScrollTop(0)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],lq.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lq.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],lq.prototype,"active",void 0);
_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.U("design:type",Boolean)],lq.prototype,"darkLaunch",void 0);_.E([_.rt("#player"),_.U("design:type",HTMLDivElement)],lq.prototype,"player",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],lq);
_.N(lq,"ytd-miniplayer-bar-renderer",function(){if(Ooj!==void 0)return Ooj;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Ooj=X},{mode:1});_.DW(_.Fp(function(X){var t=_.nl("script");_.Em(function(){var G;if(G=JSON)G=bok(X.data()),G=_.JI(JSON.stringify(G).replace(/</g,"\\u003C"));var y=X.data(),w=_.bu(y.title).trim().length===0,z=!y.publishDate||y.publishDate.trim().length===0,B,V,b,e,g=!((B=y.thumbnail)==null?0:(V=B.thumbnails)==null?0:V.length)||!((b=y.thumbnail)==null?0:b.thumbnails[0].url)||((e=y.thumbnail)==null?void 0:e.thumbnails[0].url.trim().length)===0;t.value&&G&&!(w||z||g)&&_.B$(t.value,G)},"I9AhLd");
return _.k("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.k("script",{el:t,type:"application/ld+json"}))},"Tj"),"player-microformat-renderer",{props:{data:_.sd}});
}catch(e){_._DumpException(e)}
try{
var rKN,Rfj;_.p1x=function(X){return X.watch.watchWindowSize};
rKN=function(X,t,G,y){if(X.isLockupToWatchTransitionEnabled){if(t){var w={};X.viewTransitionCoordinator.registerElement(t,(w["lockup-to-watch"]="player-lockup-to-watch",w["watch-next-appears"]="player-watch-next-loaded",w))}G&&(t={},X.viewTransitionCoordinator.registerElement(G,(t["lockup-to-watch"]="below-lockup-to-watch",t["watch-next-appears"]="below-watch-next-loaded",t)));y&&(G={},X.viewTransitionCoordinator.registerElement(y,(G["watch-next-appears"]="secondary-watch-next-loaded",G)))}};
_.NpW=function(X){return _.Dl({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:X}})};
Rfj=function(X){_.po.call(this);var t=this;this.JSC$22764_watchApi=X;X=_.rz(_.dV(),_.xcV,function(){PG_(t)});
this.addOnDisposeCallback(X);X=_.rz(_.dV(),_.p1x,function(){PG_(t)});
this.addOnDisposeCallback(X);ETW(this);UVj(this);mVN()};
_.S(Rfj,_.po);var ETW=function(X){var t=function(y){_.dV().dispatch(_.H2i(y.matches))},G=window.matchMedia("(max-width: "+(999+_.$R())+"px)");
G.addListener(t);X.addOnDisposeCallback(function(){G.removeListener(t)});
t(G)},UVj=function(X){X.JSC$22764_watchApi.registerActionHandler("yt-window-resized",function(){mVN()});
X.addOnDisposeCallback(function(){X.JSC$22764_watchApi.unregisterActionHandler("yt-window-resized")})},mVN=function(){var X=_.Py();
_.dV().dispatch(_.Dl({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:X.width,height:X.height}}}))},PG_=function(X){var t;
_.n(function(G){if(G.nextAddress==1)return G.yield(X.JSC$22764_watchApi.playerApi,2);t=G.yieldResult;t.setSize(NaN,NaN);_.W$(G)})};var iDN=function(X){_.po.call(this);var t=_.gw().resolve(_.Rp);rKN(t,X.getElement("PLAYER_CONTAINER"),X.getElement("BELOW_THE_PLAYER"),X.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var G=X.getElement("PLAYER_CONTAINER"),y=X.getElement("BELOW_THE_PLAYER"),w=X.getElement("SECONDARY");t.isLockupToWatchTransitionEnabled&&(G&&_.Bv(t.viewTransitionCoordinator,G),y&&_.Bv(t.viewTransitionCoordinator,y),w&&_.Bv(t.viewTransitionCoordinator,w))})};
_.S(iDN,_.po);_.ry=function(X){_.Au.call(this);var t=this;this.rootElement=X;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return t.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(G){t.initOrDisposeActiveModules(G)}));
this.onAttached()};
_.S(_.ry,_.Au);_.H=_.ry.prototype;_.H.getRoot=function(){return this.rootElement};
_.H.getElement=function(X){return this.rootElement.getElement(X)};
_.H.setPlayerResponse=function(X){this.playerResponse=X;this.publish("PLAYER_RESPONSE_UPDATED",X)};
_.H.getPlayerResponse=function(){return this.playerResponse};
_.H.setWatchNextResponse=function(X){this.watchNextResponse===X?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=X,this.publish("WATCH_NEXT_RESPONSE_UPDATED",X))};
_.H.getWatchNextResponse=function(){return this.watchNextResponse};
_.H.registerActionHandler=function(X,t){var G=this;if(_.A("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.oO(_.Hq.getInstance(),(y[X]=t,y),this.getRoot())}else this.actionHandlers.has(X)||(this.actionHandlers.set(X,[]),y={},_.oO(_.Hq.getInstance(),(y[X]=function(){var w=_.f1.apply(0,arguments);return(G.actionHandlers.get(X)||[]).map(function(z){return z.apply(null,_.RY(w))})},y),this.getRoot())),this.actionHandlers.get(X).push(t)};
_.H.unregisterActionHandler=function(X){if(_.A("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.Ja(_.Hq.getInstance(),(t[X]=!0,t),this.getRoot())}else(t=this.actionHandlers.get(X))?(t.pop(),t.length===0&&(t={},_.Ja(_.Hq.getInstance(),(t[X]=!0,t),this.getRoot()),this.actionHandlers.delete(X))):_.Mj(new _.NJ("Attempted to unregister an action handler which is not registered.",X))};
_.H.addPageDisposeJob=function(X){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.RV(this.rootElement.pageDisposeJobs,X)};
_.H.removePageDisposeJob=function(X){this.rootElement.pageDisposeJobs&&_.vY(this.rootElement.pageDisposeJobs,X)};
_.H.dispatchEvent=function(X,t){_.Yt(this.rootElement,X,t)};
_.H.provideRenderingData=function(X,t){this.rootElement.provideRenderingData(X,t)};
_.H.scrollWatchTo=function(X,t){var G;(G=this.watchScrollManager)==null||G.scrollWatchTo(X,t)};
_.H.focusOnPlayer=function(){var X=this.getElement("PLAYER");_.V8(X,function(){if(X&&X.firstElementChild){var t=X.querySelector(".html5-video-player");t&&(_.gb(_.gw().resolve(_.xI)),t.focus())}else _.Mj(Error("zo"))})};
_.H.updateCinematicFullscreenConfig=function(){if(_.A("web_cinematic_manager_redux_killswitch")){var X=!!this.rootElement.theater,t=!!this.rootElement.fullscreen,G;(G=this.watchCinematicManager)==null||_.OX(G,t,X)}};
_.H.subscribeToActiveChanged=function(X,t){t=t===void 0?!0:t;var G=_.rz(_.dV(),_.bSa,function(y){X(y)});
t&&X(_.bSa(_.dV().getState()));return G};
_.H.isActive=function(){return _.bSa(_.dV().getState())};
_.H.onAttached=function(){var X=_.A("external_fullscreen");_.A("use_unified_flag_accessor")&&(X=_.gw().resolve(_.xRa).retriever.getFlag(_.yWe));(X||_.X3("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Lbi=function(X){return X.getRoot().is==="ytd-watch-flexy"||X.getRoot().is==="ytd-watch-grid"},Nu=function(X){return X.getRoot().is==="ytd-watch-fixie"};
_.ry.prototype.initPersistentModules=function(){if(Nu(this)||Lbi(this)&&_.A("kevlar_watch_flexy_theater_manager")){var X=new _.VcY(this);_.h6(this,X)}X=new _.xBk(this);_.h6(this,X);X=new _.ZD(this);_.h6(this,X);X=new _.WE(this);_.h6(this,X);X=new _.Swk(this);_.h6(this,X);X=new _.C2(this);_.h6(this,X);if(Nu(this)||Lbi(this)&&_.A("kevlar_watch_flexy_playlist_manager"))X=new _.qw1(this),_.h6(this,X);_.A("web_thumbnail_to_watch_transition")&&(X=new iDN(this),_.h6(this,X))};
_.ry.prototype.initOrDisposeActiveModules=function(X){X?(this.watchScrollManager=new _.p2(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.nTi(this)),this.activeModules.push(new _.etg(this)),Nu(this)&&this.activeModules.push(new Rfj(this)),this.activeModules.push(new _.IAk(this)),this.activeModules.push(new _.cE(this)),(Nu(this)||_.A("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.TNj(this)),this.activeModules.push(new _.jHM(this)),
(Nu(this)||_.A("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.cKt(this)),(Nu(this)||_.A("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.q6_(this)),_.A("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.QYt(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.A("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.AKN(this)),_.A("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.axW(this)),
X=_.A("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.A("kevlar_watch_flexy_comments_manager")&&!X&&this.activeModules.push(new _.mBY(this)),_.A("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.qu(this)),this.activeModules.push(new _.Tqt(this)),this.activeModules.push(new _.bDj(this)),_.A("web_enable_timely_actions")&&this.activeModules.push(new _.DBx(this)),_.A("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.LNj(this)),
_.A("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ptg(this)),_.A("web_fullscreen_components")&&this.activeModules.push(new _.DxN(this)),_.A("web_player_rtr_ctrls")&&this.activeModules.push(new _.aY_(this))):(_.bf(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.ry.prototype.disposeInternal=function(){_.Au.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ke.Object.defineProperties(_.ry.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var oDr,sz,JoH,BDB,Vyq,bCR,nDB,ke2;oDr=function(){var X=_.rk();X.info||(X.info={});return X.info};
sz=function(X){return Math.round(_.Ul()+X)};
JoH=function(){var X;if(_.A("csi_use_performance_navigation_timing")){var t,G,y,w=_.El==null?void 0:(X=_.El.getEntriesByType)==null?void 0:(t=X.call(_.El,"navigation"))==null?void 0:(G=t[0])==null?void 0:(y=G.toJSON)==null?void 0:y.call(G);w?(w.requestStart=sz(w.requestStart),w.responseEnd=sz(w.responseEnd),w.redirectStart=sz(w.redirectStart),w.redirectEnd=sz(w.redirectEnd),w.domainLookupEnd=sz(w.domainLookupEnd),w.connectStart=sz(w.connectStart),w.connectEnd=sz(w.connectEnd),w.responseStart=sz(w.responseStart),
w.secureConnectionStart=sz(w.secureConnectionStart),w.domainLookupStart=sz(w.domainLookupStart),w.isPerformanceNavigationTiming=!0,X=w):X=_.El.timing}else X=_.A("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.El.timing)):_.El.timing;return X};
BDB=function(){if(_.El.getEntriesByType){var X=_.El.getEntriesByType("paint");if(X=_.r6(X,function(G){return G.name==="first-paint"}))return sz(X.startTime)}var t;
_.A("csi_use_performance_navigation_timing")?t=_.El.getEntriesByType("first-paint")[0].startTime:t=_.El.timing.msFirstPaint;return t?Math.max(0,t):0};
Vyq=function(){var X=window.location.protocol,t=_.El.getEntriesByType("resource");t=_.S$(t,function(G){return G.name.indexOf(X+"//fonts.gstatic.com/s/")===0});
(t=nDB(t,function(G,y){return y.duration>G.duration?y:G}))&&t.startTime>0&&t.responseEnd>0&&(_.mx("wffs",sz(t.startTime)),_.mx("wffe",sz(t.responseEnd)))};
bCR=function(X,t){X=document.querySelector(X);if(!X)return!1;var G="",y=X.nodeName;y==="SCRIPT"?(G=X.src,G||(G=X.getAttribute("data-timing-href"))&&(G=window.location.protocol+G)):y==="LINK"&&(G=X.href);_.H$(document)&&X.setAttribute("nonce",_.H$(document));return G?(X=_.El.getEntriesByName(G))&&X[0]&&(X=X[0],G=_.Ul(),_.mx("rsf_"+t,G+Math.round(X.fetchStart)),_.mx("rse_"+t,G+Math.round(X.responseEnd)),X.transferSize!==void 0&&X.transferSize===0)?!0:!1:!1};
_.Dq=function(X,t){_.tt(function(){_.PP("").info.actionType=X;t&&_.fY("TIMING_AFT_KEYS",t);_.fY("TIMING_ACTION",X);var G=_.uLJ(_.Md("TIMING_INFO",{}));Object.keys(G).length>0&&_.Ra(G);G={isNavigation:!0,actionType:_.Fol(_.Md("TIMING_ACTION"))};var y=_.Md("PREVIOUS_ACTION");y&&(G.previousAction=_.Fol(y));if(y=_.Md("CLIENT_PROTOCOL"))G.httpProtocol=y;if(y=_.Md("CLIENT_TRANSPORT"))G.transportProtocol=y;(y=_.lw())&&y!=="UNDEFINED_CSN"&&(G.clientScreenNonce=y);y=_.OmJ();if(y===1||y===-1)G.isVisible=!0;
y=_.nCh().loadType==="cold";var w=oDr();y||(y=w.yt_lt==="cold");if(y){G.loadType="cold";y=oDr();w=JoH();var z=_.Ul(),B=_.Md("CSI_START_TIMESTAMP_MILLIS",0);B>0&&!_.A("embeds_web_enable_csi_start_override_killswitch")&&(z=B);z&&(_.mx("srt",w.responseStart),y.prerender!==1&&_.DDY(z));y=BDB();y>0&&_.mx("fpt",y);y=JoH();y.isPerformanceNavigationTiming&&_.Ra({performanceNavigationTiming:!0},void 0);_.mx("nreqs",y.requestStart,void 0);_.mx("nress",y.responseStart,void 0);_.mx("nrese",y.responseEnd,void 0);
y.redirectEnd-y.redirectStart>0&&(_.mx("nrs",y.redirectStart,void 0),_.mx("nre",y.redirectEnd,void 0));y.domainLookupEnd-y.domainLookupStart>0&&(_.mx("ndnss",y.domainLookupStart,void 0),_.mx("ndnse",y.domainLookupEnd,void 0));y.connectEnd-y.connectStart>0&&(_.mx("ntcps",y.connectStart,void 0),_.mx("ntcpe",y.connectEnd,void 0));y.secureConnectionStart>=_.Ul()&&y.connectEnd-y.secureConnectionStart>0&&(_.mx("nstcps",y.secureConnectionStart,void 0),_.mx("ntcpe",y.connectEnd,void 0));_.El&&"getEntriesByType"in
_.El&&Vyq();y=[];if(document.querySelector&&_.El&&_.El.getEntriesByName)for(var V in ke2)ke2.hasOwnProperty(V)&&(w=ke2[V],bCR(V,w)&&y.push(w));if(y.length>0)for(G.resourceInfo=[],V=_.J(y),y=V.next();!y.done;y=V.next())G.resourceInfo.push({resourceCache:y.value})}_.Ra(G);G=_.NY();G.preLoggedGelInfos||(G.preLoggedGelInfos=[]);V=G.preLoggedGelInfos;G=_.bmv();y=void 0;for(w=0;w<V.length;w++)if(z=V[w],z.loadType){y=z.loadType;break}if(_.nCh().loadType==="cold"&&(G.loadType==="cold"||y==="cold")){y=_.Vtw();
w=_.NY();w=w.gelTicks?w.gelTicks:w.gelTicks={};for(var b in y)if(!(b in w))if(typeof y[b]==="number")_.mx(b,_.is(b));else if(_.A("log_repeated_ytcsi_ticks"))for(z=_.J(y[b]),B=z.next();!B.done;B=z.next())B=B.value,_.mx(b.slice(1),B);b={};y=!1;V=_.J(V);for(w=V.next();!w.done;w=V.next())y=w.value,_.Xi(G,y),_.Xi(b,y),y=!0;y&&_.Ra(b)}_.czl(!0);b=_.Md("TIMING_ACTION");_.GA("ytglobal.timingready_")&&b&&_.LoE()&&_.Wov()&&_.CyY()})()};
nDB=function(X,t){return Array.prototype.reduce.call(X,t,{duration:0})};
ke2={'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 dmH={};dmH.YtVisibilityRootBehavior=[_.tRB.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Vs(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Md("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var X=_.Md("INNERTUBE_CLIENT_NAME")!=="WEB";_.A("kevlar_use_vimio_behavior")&&X&&_.$h4()}}];_.Sv={};_.Sv.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(X){X.detail.contextProvider=this;X.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
dmH.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.d5();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(X){var t=this;this.pageCount+=1;_.A("kevlar_use_vimio_behavior")&&(_.Md("INNERTUBE_CLIENT_NAME")==="WEB"?_.vz.addJob(function(){t.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(X)},
loadPage_:function(X){this.data=X},
ytPageBehaviorActiveObserver_:function(X){var t=this;_.A("kevlar_use_vimio_behavior")&&(X?_.Md("INNERTUBE_CLIENT_NAME")==="WEB"?_.vz.addJob(function(){t.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(X){if(!this.setScrollTopJobId_){var t=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){t.setScrollTopJobId_=0;var G=_.gw().resolve(_.jH(_.xI));G&&_.gb(G);this.getPageScrollingElement().scrollTop=X}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.iM(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var HCV;var YY=function(){var X=_.O.apply(this,arguments)||this;X.playerListenerConfig=null;X.actionMap={"yt-show-watch-page-survey":"openSurvey"};return X};
_.S(YY,_.O);_.H=YY.prototype;_.H.dataChanged=function(){var X=this,t=_.sW();t&&t.getPlayerPromise().then(function(y){X.maybeRemovePlayerListeners(y)});
var G=this.data&&this.data.survey;G&&((G=(G=G.singleOptionSurveyRenderer||G.checkboxSurveyRenderer||G.multiStageSurveyRenderer)&&G.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(t,G):this.openSurvey())};
_.H.triggerWatchPageSurvey=function(X,t){var G=this,y,w,z,B,V,b,e,g,F;return _.n(function(T){if(T.nextAddress==1)return X?T.yield(X.getPlayerPromise(),2):T.return();G.player=T.yieldResult;if(!G.player)return T.return();y={};w=_.J(t);for(z=w.next();!z.done;z=w.next())B=z.value,V=_.J(G.createEventListenerPair(B)),b=V.next().value,e=V.next().value,g=b,F=e,g&&F&&(y[g]=F,G.ytPlayerListenerBehavior.listenToPlayerEvent(G.player,g,F));G.playerListenerConfig=y;_.W$(T)})};
_.H.createEventListenerPair=function(X){var t=X.playbackEventTrigger;return t?this.handlePlaybackTrigger(t):(X=X.watchTimeTrigger)?this.handleWatchTimeTrigger(X):[void 0,void 0]};
_.H.handleWatchTimeTrigger=function(X){var t=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var G=X.videoWatchFraction,y=X.watchTimeSec;return y&&G?["onVideoProgress",function(){t.player&&t.isWatchTimeConditionMet(t.player,G,y)&&t.showSurvey()}]:[void 0,
void 0]};
_.H.isWatchTimeConditionMet=function(X,t,G){var y=X.getProgressState(),w=y.current-this.lastKnownPlaybackPosition;w<5&&(this.accumulatedMediaTime+=w);this.lastKnownPlaybackPosition=y.current;y=Math.round(this.accumulatedMediaTime/y.duration*1E3)/1E3;return X.getPresentingPlayerType&&X.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>G||y>t)};
_.H.handlePlaybackTrigger=function(X){var t=this;X=X.playbackEvent;if(X==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var G="onStateChange";var y=function(w){w===0&&t.showSurvey()}}else X==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(G="onVideoProgress",y=function(w){t.player&&t.player.getPresentingPlayerType&&t.player.getPresentingPlayerType()===1&&w&&t.showSurvey()}):X==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(G="onAdEnd",y=this.showSurvey);
return[G,y]};
_.H.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.H.openSurvey=function(){var X=this,t=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.mjT(!!t));_.vz.addJob(function(){X.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:t}})},0,0)};
_.H.maybeRemovePlayerListeners=function(X){if(this.playerListenerConfig){for(var t=_.J(Object.keys(this.playerListenerConfig)),G=t.next();!G.done;G=t.next())G=G.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(X,G,this.playerListenerConfig[G]);this.playerListenerConfig=null}};
YY.prototype.dataChanged=YY.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],YY.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],YY.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],YY.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],YY.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],YY.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],YY.prototype,"playerListenerConfig",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],YY.prototype,"lastKnownPlaybackPosition",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],YY.prototype,"accumulatedMediaTime",void 0);_.E([_.K(),_.U("design:type",Object)],YY.prototype,"player",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],YY.prototype,"dataChanged",null);_.E([_.p({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],YY);
_.N(YY,"ytd-survey-trigger-renderer",function(){if(HCV!==void 0)return HCV;var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return HCV=X},{mode:1});
}catch(e){_._DumpException(e)}
try{
var xOQ=new _.ja("promotedSparklesWebRenderer");var fCR=new _.ja("relatedChipCommand");var MzQ;var Xha;var dO=function(){return _.O.apply(this,arguments)||this};
_.S(dO,_.O);dO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dO.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],dO);
_.N(dO,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Xha!==void 0)return Xha;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Xha=X},{mode:1});var $ya;var tJa;var GIN;var ez=function(){return _.O.apply(this,arguments)||this};
_.S(ez,_.O);ez.prototype.ready=function(){this.initializeDefs()};
ez.prototype.initializeDefs=function(){var X=this.meta.byKey("yt-icons"),t=_.Sm(X).querySelector("#star"),G=_.Sm(X).querySelector("#star_half");X=_.Sm(X).querySelector("#star_border");t&&this.defs.appendChild(t.cloneNode(!0));G&&this.defs.appendChild(G.cloneNode(!0));X&&this.defs.appendChild(X.cloneNode(!0))};
ez.prototype.percentChanged=function(){for(var X=this.rating;X.firstChild;)X.removeChild(X.firstChild);var t=Math.round(this.percent/10);X=Math.floor(t/2);t%=2;var G=5-X-t;this.appendStars("star",X,0);this.appendStars("star_half",t,X);this.appendStars("star_border",G,X+t)};
ez.prototype.appendStars=function(X,t,G){for(var y=0;y<t;y++){var w=(18+this.spacing)*(y+G),z=document.createElementNS("http://www.w3.org/2000/svg","use");_.s5q(z,"#"+X);z.setAttribute("x",""+w);z.setAttribute("y","0");this.rating.appendChild(z)}};
ez.prototype.percentChanged=ez.prototype.percentChanged;_.E([_.rt("#defs"),_.U("design:type",HTMLElement)],ez.prototype,"defs",void 0);_.E([_.rt("#rating"),_.U("design:type",HTMLElement)],ez.prototype,"rating",void 0);_.E([_.K(),_.U("design:type",Number)],ez.prototype,"percent",void 0);_.E([_.K({value:6}),_.U("design:type",Number)],ez.prototype,"spacing",void 0);_.E([_.K({value:_.E_.create("iron-meta",{type:"iconset"})}),_.U("design:type",_.Rx)],ez.prototype,"meta",void 0);
_.E([_.cW("percent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ez.prototype,"percentChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-ratings"})],ez);
_.N(ez,"ytd-ratings",function(){if(GIN!==void 0)return GIN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return GIN=X},{mode:1});var jz=function(){return _.O.apply(this,arguments)||this};
_.S(jz,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],jz.prototype,"data",void 0);_.E([_.p({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],jz);
_.N(jz,"ytd-offer-review-renderer",function(){if(tJa!==void 0)return tJa;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return tJa=X},{mode:1});var gO=function(){var X=_.O.apply(this,arguments)||this;X.badges=[{textBadge:{label:_.Vl("CC")}}];return X};
_.S(gO,_.O);_.H=gO.prototype;_.H.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.H.dataChanged=function(){var X=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(X&&X.commandMetadata&&_.Y(X.commandMetadata,_.Le)&&_.Y(X.commandMetadata,_.Le).fireAutomatically)_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}});else{var t;X&&((t=_.Y(X,_.Le))==null?0:t.fireAutomatically)&&_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}})}};
_.H.isEmptyContent=function(X){return this.isStorefrontEntryPointEmpty(X)&&this.shouldHideOfferModule(X)};
_.H.isStorefrontEntryPointEmpty=function(X){return!X||!X.storefrontEntryPoint};
_.H.shouldHideOfferModule=function(X){return!!X.hideVideoDetails};
_.H.isOfferModuleNavigationInactive=function(X){return!X.navigationEndpoint&&!X.serviceEndpoint};
_.H.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.gw().resolve(_.F3).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
gO.prototype.dataChanged=gO.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gO.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.U("design:type",Boolean)],gO.prototype,"hidden",void 0);
_.E([_.K(),_.U("design:type",Object)],gO.prototype,"badges",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gO.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],gO);
_.N(gO,"ytd-movie-offer-module-renderer",function(){if($ya!==void 0)return $ya;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return $ya=X},{mode:1});var yjB;var Fq=function(){return _.O.apply(this,arguments)||this};
_.S(Fq,_.O);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Fq.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Fq.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Fq);
_.N(Fq,"ytd-media-masthead-renderer",function(){if(yjB!==void 0)return yjB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return yjB=X},{mode:1});var whq;_.DW(_.Vv4,"course-metadata-view-model",{props:{data:_.sd,isOverlay:_.sd}});var Ts=function(){var X=_.O.apply(this,arguments)||this;X.isMetadataVisible=!1;X.modernPanels=_.A("kevlar_watch_modern_panels");X.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return X};
_.S(Ts,_.O);_.H=Ts.prototype;
_.H.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"}}}}};
_.H.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.H.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.H.expanderChanged=function(){var X;if((X=this.data)==null?0:X.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.H.isExpandButtonToggled=function(){var X,t;return(t=_.Y((X=this.data)==null?void 0:X.expandMetadataButton,_.as))==null?void 0:t.isToggled};
_.H.onVisibilityButtonClick=function(){var X;if((X=this.data)==null?0:X.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.H.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Ts.prototype.expanderChanged=Ts.prototype.expanderChanged;Ts.prototype.dataChanged=Ts.prototype.dataChanged;Ts.prototype.descriptionChanged=Ts.prototype.descriptionChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q([_.sb.YtActionHandlerBehavior]),_.U("design:type",Object)],Ts.prototype,"actionHandlerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],Ts.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Ts.prototype,"isMetadataVisible",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Ts.prototype,"modernPanels",void 0);_.E([_.rt("#expander"),_.U("design:type",Object)],Ts.prototype,"expander",void 0);_.E([_.cW("data.description"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ts.prototype,"descriptionChanged",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ts.prototype,"dataChanged",null);_.E([_.cW("isMetadataVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ts.prototype,"expanderChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Ts);
_.N(Ts,"ytd-tvfilm-offer-module-renderer",function(){if(whq!==void 0)return whq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return whq=X},{mode:2});var zSV;var As=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return X};
_.S(As,_.O);As.prototype.dataChanged=function(){this.hostElement.hidden=!1};
As.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
As.prototype.onThumbnailTap=function(X){this.data&&this.data.serviceEndpoint&&(_.gw().resolve(_.F3).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),X.stopPropagation())};
As.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
As.prototype.dataChanged=As.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],As.prototype,"rendererBehaviors",void 0);_.E([_.q([_.sb.YtActionHandlerBehavior]),_.U("design:type",Object)],As.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],As.prototype,"data",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],As.prototype,"dataChanged",null);_.E([_.p({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],As);
_.N(As,"ytd-unlimited-offer-module-renderer",function(){if(zSV!==void 0)return zSV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return zSV=X},{mode:1});var HSN;var oaT;var Yv=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return X};
_.S(Yv,_.O);Yv.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Yv.prototype.handleRelatedChipCommand=function(X){X=_.Y(X,fCR);var t=X.contents;t?_.D0(this.hostElement,"yt-item-section-replace-action",[t,X.targetSectionIdentifier]):_.D0(this.hostElement,"yt-item-section-continuation-action",[X.continuationData,X.targetSectionIdentifier])};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Yv.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Yv.prototype,"data",void 0);_.E([_.$F({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Yv);
_.N(Yv,"yt-related-chip-cloud-renderer",function(){if(oaT===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;HSN===void 0&&(HSN=document.createElement("template"));var y=HSN;G.call(t,y.content.cloneNode(!0),X.content.firstChild);oaT=X}X=oaT;return X},{mode:2});var sM=function(){var X=_.O.apply(this,arguments)||this;X.isTwoColumns=!0;X.hideOfferModules=!1;X.watchFeedBigThumbs=_.A("kevlar_watch_feed_big_thumbs");X.watchNextGridHideChips=_.A("kevlar_watch_grid_hide_chips");X.eligibleToSwitchToGrid=_.A("web_watch_eligible_to_switch_to_grid");X.disableShortsShelfHeightOverride=_.A("web_shorts_wn_shelf_ratio_tuning");X.isWatchNextGrid=!1;X.reuseComponents=!_.A("kevlar_watch_grid");X.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return X};
_.S(sM,_.O);_.H=sM.prototype;
_.H.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.A("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}}};
_.H.getItemsPath=function(){return"data.results"};
_.H.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.H.created=function(){this.ytLazyListBehavior.initialCount=1};
_.H.ready=function(){_.Kd(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%"})};
_.H.resultsChanged=function(){if(this.data&&this.data.results){for(var X=this.data.results,t=null,G=null,y=0;y<X.length;y++)X[y].relatedChipCloudRenderer?t=X[y].relatedChipCloudRenderer:X[y].itemSectionRenderer&&(G=X[y].itemSectionRenderer);if(t&&G)for(this.set("data.continuations",[]),X=_.Y(t.content,_.K2Y).chips,t=0;t<X.length;t++)if(y=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",X[t]),y.loadCached||!y.contents){y.contents=G.contents;break}}};
_.H.dataChanged=function(){var X=this,t;if((t=this.data)!=null&&t.results&&this.hasAllowedInstreamAd(this.playerData)){if(t=this.data.results.filter(function(V){return!!V.promotedSparklesWebRenderer})){for(var G=0;G<t.length;G++){var y=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",t[G]);
if(y)for(var w=0;w<y.length;w++)y[w]&&y[w].baseUrl&&_.HO(y[w].baseUrl)}this.set("data.results",this.data.results.filter(function(V){return!V.promotedSparklesWebRenderer}))}if(t=this.data.results.filter(function(V){return!!X.getSparklesAd(V)})){t=_.J(t);
for(w=t.next();!w.done;w=t.next())if(y=G=void 0,w=(G=this.getSparklesAd(w.value))==null?void 0:(y=G.errorCommand)==null?void 0:y.loggingUrls)for(G=_.J(w),y=G.next();!y.done;y=G.next())(y=y.value)&&y.baseUrl&&_.HO(y.baseUrl);var z,B;this.set("data.results",(z=this.data)==null?void 0:(B=z.results)==null?void 0:B.filter(function(V){return!V.adSlotRenderer}))}}};
_.H.getSparklesAd=function(X){var t,G;X=_.Y((t=X.adSlotRenderer)==null?void 0:(G=t.fulfillmentContent)==null?void 0:G.fulfilledLayout,_.pIh);return _.Y(X==null?void 0:X.renderingContent,xOQ)};
_.H.hasAllowedInstreamAd=function(X){X=this.get("adPlacements",X)||[];for(var t=0;t<X.length;t++){var G=this.get("adPlacementRenderer.config.adPlacementConfig",X[t]);if(G&&G.suppressDisplayAd)return!0}return!1};
_.H.computeHideUnlimitedOfferModule=function(X,t){return X&&X.offerModule&&t&&X.offerModule.unlimitedOfferModuleRenderer&&X.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(t)?!0:!1};
_.H.hideUnlimitedOfferModuleChanged=function(){var X=_.Sm(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");X&&(X.hidden=this.hideUnlimitedOfferModule)};
_.H.updateLockupContainerTypes=function(X){if(this.eligibleToSwitchToGrid){var t;(t=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||t.forEach(function(G){G.containerType=X})}};
_.H.computeHideTvfilmOfferModule=function(X,t){var G,y;return!!((X==null?0:(G=X.offerModule)==null?0:(y=G.tvfilmOfferModuleRenderer)==null?0:y.clientShouldSuppressIfCompanionAdDisplayed)&&t&&this.hasCompanionAds(t))};
_.H.hideTvfilmOfferModuleChanged=function(){var X=_.Sm(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");X&&(X.hidden=this.hideTvfilmOfferModule)};
_.H.hasCompanionAds=function(X){X=this.get("adPlacements",X)||[];for(var t=0;t<X.length;t++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",X[t]))return!0;var G=void 0,y=void 0,w=void 0;if(!_.A("web_watch_top_banner_companion_check_killswitch")&&((G=X[t])==null?0:(y=G.adPlacementRenderer)==null?0:(w=y.renderer)==null?0:w.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.H.hasSuppressedResults=function(X){return X==null?!0:X.filter(function(t){return!t.continuationItemRenderer&&!t.compactPromotedVideoRenderer&&!t.promotedSparklesWebRenderer}).length===0};
_.H.computeShowButton=function(X,t){return this.isWatchNextGrid?X:X||this.hasSuppressedResults(t)};
_.H.showButtonChanged=function(){if(this.isWatchNextGrid){var X=_.Sm(this.hostElement).querySelector("ytd-rich-grid-renderer");X&&this.showButton!==null&&(X.continuationShowButton=this.showButton)}else{X=_.Sm(this.hostElement).querySelector("yt-next-continuation");var t=_.Sm(this.hostElement).querySelector("ytd-continuation-item-renderer"),G=_.Sm(this.hostElement).querySelector("ytd-item-section-renderer");X&&(X.showButton=this.showButton);t&&(t.showButton=this.showButton);G&&(G.continuationShowButton=
this.showButton)}};
_.H.continuationTap=function(X){var t;if(((t=this.data)==null?void 0:t.continuations)!=null&&X.target.tagName==="TP-YT-PAPER-BUTTON")for(X=this.data.continuations,t=0;t<X.length;t++)X[t].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(X[t].nextContinuationData||{})};
_.H.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("shown-items-changed",this.shownItems))};
_.ke.Object.defineProperties(sM.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.shownItems)==null||!X.some(function(t){return!!t.lockupViewModel||t.compactVideoRenderer}))}}});
sM.prototype.shownItemsChangedForBinding=sM.prototype.shownItemsChangedForBinding;sM.prototype.showButtonChanged=sM.prototype.showButtonChanged;sM.prototype.hideTvfilmOfferModuleChanged=sM.prototype.hideTvfilmOfferModuleChanged;sM.prototype.updateLockupContainerTypes=sM.prototype.updateLockupContainerTypes;sM.prototype.hideUnlimitedOfferModuleChanged=sM.prototype.hideUnlimitedOfferModuleChanged;sM.prototype.dataChanged=sM.prototype.dataChanged;sM.prototype.resultsChanged=sM.prototype.resultsChanged;
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],sM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.AV.YtLazyListBehavior),_.U("design:type",Object)],sM.prototype,"ytLazyListBehavior",void 0);_.E([_.q(_.JX.YtNextContinuationBehavior),_.U("design:type",Object)],sM.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.q(_.oT),_.U("design:type",Object)],sM.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],sM.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sM.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],sM.prototype,"playerData",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],sM.prototype,"autoFill",void 0);_.E([_.K({value:60}),_.U("design:type",Number)],sM.prototype,"targetFramerate",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sM.prototype,"isTwoColumns",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sM.prototype,"hideOfferModules",void 0);_.E([_.K(),_.U("design:type",Object)],sM.prototype,"shownItems",void 0);_.E([_.K({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.U("design:type",Boolean)],sM.prototype,"hideUnlimitedOfferModule",void 0);
_.E([_.K({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.U("design:type",Boolean)],sM.prototype,"hideTvfilmOfferModule",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sM.prototype,"watchFeedBigThumbs",void 0);_.E([_.K(),_.U("design:type",Object)],sM.prototype,"watchNextGridHideChips",void 0);_.E([_.K(),_.U("design:type",Object)],sM.prototype,"eligibleToSwitchToGrid",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sM.prototype,"disableShortsShelfHeightOverride",void 0);_.E([_.K({selector:_.yE,reflectToAttribute:!0}),_.U("design:type",Object)],sM.prototype,"isGridViewEnabled",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],sM.prototype,"showMoreButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],sM.prototype,"isWatchNextGrid",void 0);
_.E([_.K({computed:"computeShowButton(showMoreButton, data.results)"}),_.U("design:type",Boolean)],sM.prototype,"showButton",void 0);_.E([_.U0("data.results.*"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sM.prototype,"resultsChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sM.prototype,"dataChanged",null);
_.E([_.cW("hideUnlimitedOfferModule"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sM.prototype,"hideUnlimitedOfferModuleChanged",null);_.E([_.C("isGridViewEnabled","containsLockups","data"),_.K({reflectToAttribute:!0}),_.U("design:type",Number),_.U("design:paramtypes",[])],sM.prototype,"lockupContainerType",null);
_.E([_.cW("lockupContainerType","data"),_.U("design:type",Function),_.U("design:paramtypes",[Number]),_.U("design:returntype")],sM.prototype,"updateLockupContainerTypes",null);_.E([_.cW("hideTvfilmOfferModule"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sM.prototype,"hideTvfilmOfferModuleChanged",null);_.E([_.cW("showButton"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sM.prototype,"showButtonChanged",null);
_.E([_.cW("shownItems"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sM.prototype,"shownItemsChangedForBinding",null);_.E([_.C("shownItems"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],sM.prototype,"containsLockups",null);
_.N(sM,"ytd-watch-next-secondary-results-renderer",function(){if(MzQ===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);MzQ=X}X=MzQ;return X},{mode:1});
}catch(e){_._DumpException(e)}
try{
var uot=function(X){if((X==null?void 0:X.value)===void 0||X==null||!X.unit)return"initial";a:{switch(X.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var t="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":t="%";break a}t=void 0}return t?""+X.value+t:"initial"},Q0N=new _.ja("shoppingContentLineItemViewModel");var IoY=_.Fp(function(X){var t=_.jx(X,{}).data;return _.k("yt-shopping-content-line-item-view-model",{class:_.cl("ytShoppingContentLineItemViewModelHost")},_.k(_.eh,{text:function(){var G;return(G=t().text)==null?void 0:G.attributedString}}))},"Uj");var WWN=_.Fp(function(X){X=_.jx(X,{});var t=X.data;return _.k("yt-shopping-content-line-view-model",{class:_.cl("ytShoppingContentLineViewModelHost",X.className),style:_.Ud({"--shopping-content-line-gap":function(){return t().itemGap?t().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return t().lineHeight?t().lineHeight+"px":void 0}})},_.k(_.pY,{each:function(){return(t().items||[]).map(function(G){return _.Y(G,Q0N)}).filter(function(G){return!!G})}},function(G){return _.k(IoY,{data:G})}))},"Vj");_.DW(_.Fp(function(X){var t=_.jx(X,{}).data,G=function(){var w;return((w=t().image)==null?void 0:w.width)||40},y=function(){var w;
return((w=t().image)==null?void 0:w.height)||40};
return _.k("yt-shopping-timely-shelf-content-view-model",{class:_.cl("ytShoppingTimelyShelfContentViewModelHost"),style:_.Ud({"--shopping-timely-shelf-content-padding-top":function(){var w;return uot((w=t().padding)==null?void 0:w.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var w;return uot((w=t().padding)==null?void 0:w.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var w;return uot((w=t().padding)==null?void 0:w.start)},
"--shopping-timely-shelf-content-padding-end":function(){var w;return uot((w=t().padding)==null?void 0:w.end)}})},_.k(_.d,{cond:function(){var w;
return(w=t().image)==null?void 0:w.image},
then:function(w){return _.k(_.gr,{preserveHeight:!0,preserveWidth:!0,width:G,height:y,data:w,alt:""})}}),_.k(_.M7,{data:function(){return t().avatar}},{avatarViewModel:_.al}),_.k("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.k(_.M7,{data:function(){return t().line1}},{shoppingContentLineViewModel:function(w){return _.k(WWN,{data:w.data})}}),_.k(_.M7,{data:function(){return t().line2}},{shoppingContentLineViewModel:function(w){return _.k(WWN,{data:w.data})}})),_.k("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},
_.k(_.pY,{each:function(){var w;
return(w=t().button)!=null?w:[]}},function(w){return _.k(_.M7,{data:function(){return w}},{buttonViewModel:_.QK})})))},"Wj"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.bR}});_.c6t={};
_.c6t.YtdWatchBehavior=[_.v.YtRendererBehavior,_.n8.YtPlayerListenerBehavior,_.YZ.YtRendererstamperBehavior,_.sb.YtActionHandlerBehavior,_.Sv.YtPageBehavior,_.pv.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 _.X3("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.A("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.X3("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 _.A("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_"},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 _.A("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.A("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 _.At("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.At("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!_.A("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.A("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 _.A("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.A("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.A("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.A("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("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 _.A("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("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 _.A("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var X={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:_.yU(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.yU(["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"||_.A("swa_prov_panels_ks")?X.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(X.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},X.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return X},
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 X=this;this.watchController=void 0;this.pageDisposeJobs=[function(){X.showMetadataPlaceholder_()},
function(){_.A("web_watch_dont_clear_comments")||X.clearComments_()},
function(){X.clearPlayerAds_()},
function(){X.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;_.A("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.A("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.gbB(function(){return _.YW(X)},this.hostElement);
this.pageDisposeJobs.push(function(){X.youThereManager_.reset()});
_.A("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){X.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Zb;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;_.A("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));_.A("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ik(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(X){X&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:X}),X.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(X){_.A("kevlar_watch_flexy_theater_manager")&&(this.theater=X,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(X){!_.A("kevlar_watch_while_v2")&&!_.A("web_watch_pip")||X||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(X){this.active!==void 0&&(this.fullscreen=X,_.A("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(X){this.active!==void 0&&(_.Yt(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.A("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.A("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(X>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(X){this.initCsi_();this.updatePageData_(X)},
updatePageData_:function(X){var t=this;if(X)if(this.data===X){this.onPageLoadWithSameData_();var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)}else this.data=X;this.playlist&&_.vP({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.ls("nw");this.loading=!1;_.PO(_.vz,function(){t.initDclkstatus_();var y,w=((y=t.player)==null?void 0:y.getVideoData().cpn)||"";_.y6t(function(z,B){_.fUr(z,B,w)})})},
onPageLoadWithSameData_:function(){_.A("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 X=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!X);this.set("loadingData.playlistLoading",X&&X!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),X=this.watchNextSkeletonEl_.firstElementChild;X;)X.classList.remove("hidden"),X=X.nextElementSibling;if(_.A("kevlar_watch_frame0_loading_state")){var t,G,y;X=(t=this.loadingData)==null?void 0:(G=t.endpoint)==null?void 0:(y=G.watchEndpoint)==null?void 0:y.videoId;var w;X&&(w="https://i.ytimg.com/vi/"+X+"/frame0.jpg");_.Sm(this.hostElement).querySelector("#player").style.backgroundImage=w?"url("+w+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var X=_.Sm(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&X&&(X.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var t,G;(G=(t=this.watchMetadata).updateSentimentBarWidth)==
null||G.call(t);var y,w;(w=(y=this.watchMetadata).resize)==null||w.call(y)}_.A("kevlar_watch_frame0_loading_state")&&(_.Sm(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(X){var t=_.Sm(this.hostElement).querySelector(X);t?_.Ti(t,!1):_.Mj(new _.NJ("Overscroll monitor not found for component: ",X))},
removeSplitScrollMouseTrap:function(X){var t=_.Sm(this.hostElement).querySelector(X);t?_.AE(t):_.Mj(new _.NJ("Disposal component for  overscroll monitoring not found: ",X))},
onLoadingChanged_:function(X){X?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(X){var t=this;X?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.vz.addLowPriorityJob(function(){t.onWindowResized_(_.Py(!0))})},
updateTheaterModeState_:function(X){if(!_.A("kevlar_watch_flexy_theater_manager")){X=X||this.fullWindowMode_;if(this.theater!==void 0||X)this.theater=X;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();X&&_.jni()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.A("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var X=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.A("external_fullscreen")&&this.fullscreen&&(X=!0);_.A("web_watch_error_screen_fix")&&(X=this.fullBleedPlayer);X=X?_.Sm(this.hostElement).querySelector("#player-full-bleed-container"):_.Sm(this.hostElement).querySelector("#player-container-inner");var t=this.getPlayerContainer(),G=_.A("kevlar_watch_while_v2")||_.A("web_watch_pip");t.parentElement!==X&&(G&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.YW(this).appendTo(X,t),_.A("web_watch_error_screen_fix")||X.appendChild(_.Sm(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var X=_.Sm(this.hostElement).querySelector("#error-screen"),t=this.fullBleedPlayer?_.Sm(this.hostElement).querySelector("#player-full-bleed-container"):_.Sm(this.hostElement).querySelector("#player");X.parentElement!==t&&t.appendChild(X)},
deactivateMiniplayerAndResetPlayer:function(){var X=this;return _.n(function(t){if(t.nextAddress==1)return t.yield(_.gw().resolve(_.G2).deactivate(),2);X.updatePlayerLocation();_.W$(t)})},
updateCinematicsLocation:function(){var X=this.getElement("CINEMATICS");if(X){var t=this.getCinematicsLocationContainer();X.parentElement!==t&&t.appendChild(X);var G;(G=this.watchController)==null||G.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&!this.isTwoColumns_)?_.Sm(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Sm(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(X,t,G){var y=document.documentElement.hasAttribute("dark"),w=y&&_.A("web_cinematic_theater_mode"),z=y&&_.A("web_cinematic_fullscreen");y=!y&&this.cinematicLightTheme;return G||X&&w||t&&z||(t||X)&&y},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var X=this,t;(t=this.watchController)==null||t.setWatchNextResponse(this.data);_.A("kevlar_watch_flexy_comments_manager")||this.initComments_();_.A("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.gw().resolve(_.Gm).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,_.A("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.vz.addLowPriorityJob(function(){_.D0(X.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.A("web_watch_start_chat_in_theater_mode")){var G,y,w;if((G=this.data)==null?0:(y=G.contents)==null?0:(w=y.twoColumnWatchNextResults)==null?0:w.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var z,B;((z=this.data)==null?0:(B=z.contents)==null?0:B.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(X){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData);X&&X.playabilityStatus&&(t=this.isVideoPlayable_(X.playabilityStatus,this.getPlayerOverlays_(this.data)),X=this.isLiveStreamOffline_(X.playabilityStatus),t&&!X||_.V8(this,function(){_.ls("pbu")}));
this.setPlayerAds_();_.D0(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(X,t){if((_.A("kevlar_watch_while_v2")||_.A("web_watch_pip"))&&this.playerData&&t)return this.playerData.videoDetails},
watchPageActiveChanged_:function(X){_.dV().dispatch(_.NpW(this.active));X?this.activate_():this.deactivate_()},
attached:function(){var X=this;this.watchController=new _.ry(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);_.A("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var t=_.YW(this);_.A("kevlar_disable_prepare_player")||
t.preparePlayer();_.A("kevlar_watch_flexy_playlist_manager")||_.gw().resolve(_.Gm).setPlayer(t);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();t={"--ytd-watch-flexy-scrollbar-width":_.$R()+"px"};this.is==="ytd-watch-grid"&&(t["--ytd-watch-flexy-sidebar-width"]=_.xuR+"px",t["--ytd-watch-grid-horizontal-page-margins"]=_.Iv+"px",t["--ytd-watch-grid-columns-top-margins"]=_.vuv+"px",t["--ytd-watch-grid-min-player-height-medium"]="360px");!_.At("kv_pl_mx_sz_ks")&&
_.At("kevlar_watch_max_player_width")&&(t["--ytd-watch-flexy-max-player-width-wide-screen"]=_.fDR+"px");_.At("kevlar_watch_flexy_metadata_height")&&(t["--ytd-watch-flexy-space-below-player"]=_.MER+"px");this.safeUpdateStyles(t);_.A("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Jj(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return X.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Sm(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var X=_.$R(),t=_.Wg+X,G=t;this.fixedPanels&&(t+=_.xuR);var y=657+X;X=1327+X;_.Sm(this.hostElement).querySelector("#two-column-query").query="(min-width: "+t+"px)";_.Sm(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(y+"px), (min-height: 630px) and (min-width: ")+(t+"px) and (max-width: ")+(X+"px)");_.Sm(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(X+"px)");
_.Sm(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+G+"px)"},
calculateCurrentPlayerSize_:function(){var X=_.Sm(this.hostElement).querySelector("#miniplayer-bar").firstChild,t=this.squeezeback&&!_.A("web_watch_squeezeback_player_size_killswitch");return X&&X.active||this.theater||_.A("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||t||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.IH(NaN,NaN):_.UX(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.UX(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Vs(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var X=this;this.onWindowResized_(_.Py());_.A("browse_skeleton_removal_on_watch_killswitch")||_.X3("IS_SHELL_LOAD")&&_.z5V();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var t=_.YW(this);t.addEventListener("yt-player-updated",_.Ik(this,this.onPlayerUpdated_));t.getPlayerPromise().then(function(G){X.playerApiReady_(G)});
_.A("kevlar_watch_flexy_playlist_manager")||(t=_.gw().resolve(_.Gm),_.A("kevlar_watch_observe_playlist_navigations_killswitch")&&t.addEventListener("yt-navigate",_.Ik(this,this.onYtNavigate_)),t.setPlaylistComponent(_.Sm(this.hostElement).querySelector("#playlist")),t.addEventListener("yt-playlist-data-updated",_.Ik(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.vz.addLowPriorityJob(function(){_.Yt(X.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.YW(this).removeEventListener("yt-player-updated",_.Ik(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.A("kevlar_watch_flexy_playlist_manager")){var X=_.gw().resolve(_.Gm);_.A("kevlar_watch_observe_playlist_navigations_killswitch")&&X.removeEventListener("yt-navigate",_.Ik(this,this.onYtNavigate_));
X.cancelVideoSkip();X.removeEventListener("yt-playlist-data-updated",_.Ik(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.A("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Yt(this.hostElement,"yt-autonav-pause-player",!1);X=_.gk();_.A("kevlar_exit_fullscreen_leaving_watch")&&X&&_.Fi(X)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(X){this.player&&this.player.updateVideoData({rvs:X.rvs})},
getPageContents:function(X){return X&&X.contents&&X.contents.twoColumnWatchNextResults&&X.contents.twoColumnWatchNextResults.results&&X.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(X){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",X)},
onRetrieveLocation_:function(X,t){t.hasComments?t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):t.locationRetrieved("/related_ajax",void 0);X.stopPropagation()},
onSubscriptionChanged_:function(X,t){this.player&&(t?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Dq("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Sm(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Sm(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(X){this.player=X;this.setPlayerState(X.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.A("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.A("kevlar_unified_player")||_.A("kevlar_player_new_bootstrap_adoption"))&&_.Ji()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(X,t){t=t===void 0?!0:t;_.gk()&&_.A("external_fullscreen")&&_.Fi(document.documentElement);this.theaterRequested_=X;t&&_.Iu("wide",X?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.sl(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Yt(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(X){_.XE(X,typeof this.player),this.player&&_.XE(X,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var X;((X=this.player)==null?0:X.isFullscreen())?this.player.toggleFullscreen():_.sl(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(X,t){return this.loading?t:!!Object.keys(X).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(X){if(X){X=_.J(X);for(var t=X.next();!t.done;t=X.next())t=t.value,t.youThereRenderer&&_.A6W(this.youThereManager_,t.youThereRenderer)}},
setPlaylistData_:function(X){return X||{}},
userEngagementConfigDataChanged_:function(X){if(X)if(X.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var t=this.youThereManager_;_.T5()<X.lowEngagementThresholdMs||_.SFY(t,!0)}else X.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.sl(this.hostElement,"yt-autonav-pause-user-engagement",[X])},
isPlayerUnavailable_:function(X,t,G){return!!X&&!this.isVideoPlayable_(X,G)&&!t},
getPlayerOverlays_:function(X){return(X==null?void 0:X.playerOverlays)||null},
isVideoPlayable_:function(X,t){if(!X)return!1;var G=X.status==="OK"||X.status==="LIVE_STREAM_OFFLINE",y=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",X)||this.get("errorScreen.ypcTrailerRenderer",X);X=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",X);var w;t=t==null?void 0:(w=t.playerOverlayRenderer)==null?void 0:w.gatedActionsOverlayRenderer;return!!G||!!y||!!X||!!t},
hasWatchNextResponseErrorRenderer:function(X){var t=this.getPageContents(X),G,y,w,z,B;return!(X==null?0:(G=X.contents)==null?0:(y=G.twoColumnWatchNextResults)==null?0:y.secondaryResults)&&!!((w=t[0])==null?0:(z=w.itemSectionRenderer)==null?0:(B=z.contents[0])==null?0:B.backgroundPromoRenderer)},
isLiveStreamOffline_:function(X){return X?X.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(X,t,G){var y=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t),w=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];w=_.A("web_no_skip_video_on_verification_checks")?(X==null?void 0:X.status)&&w.includes(X.status):X&&X.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",X);z==void 0&&(z=!0);!G||this.isVideoPlayable_(X,this.getPlayerOverlays_(t))||
y||w||!z||_.gw().resolve(_.Gm).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.BT1()},
onPlayerFeedbackStartRequest_:function(X){_.sl(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:X}])},
onPlayerFeedbackArticleRequest_:function(X){_.sl(this.hostElement,"yt-help-dialog-requested",[X])},
onPlayerYpcContentRequest_:function(){var X,t,G,y,w,z,B,V,b=((X=this.data)==null?NaN:(t=X.contents)==null?NaN:(G=t.twoColumnWatchNextResults)==null?NaN:(y=G.secondaryResults)==null?NaN:(w=y.secondaryResults)==null?NaN:(z=w.offerModule)==null?NaN:(B=z.tvfilmOfferModuleRenderer)==null?NaN:(V=B.actionButtons)==null?NaN:V.length)-1;X=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];t=_.J(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(G=t.next();!G.done;G=t.next())for(G=G.value,y=_.J(X),w=y.next();!w.done;w=y.next())if(w="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+G+w.value,w=this.get(w+"navigationEndpoint",this.data)||this.get(w+"serviceEndpoint",this.data)||this.get(w+"command",this.data)){_.cj(w,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(X){_.Yt(this.hostElement,"yt-autonav-pause-player",X)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(X){X()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(X){switch(X){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(X){switch(X){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Yt(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(X)},
setPlayerState:function(X){_.dV().dispatch(_.kHo(X))},
onPlayerSubscribe_:function(X){_.sl(this.hostElement,"yt-player-subscribe",[X])},
onPlayerUnsubscribe_:function(X){_.sl(this.hostElement,"yt-player-unsubscribe",[X])},
onPlayerAdYtShowToast_:function(X){_.sl(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:X.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(X){if(X)return X},
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(X){return!_.A("web_watch_move_summary_to_sd")&&!!X},
computeWatchMetadataRefresh:function(){return _.A("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.A("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var X,t,G,y;this.watchNextSecondaryResults=(X=this.data)==null?void 0:(t=X.contents)==null?void 0:(G=t.twoColumnWatchNextResults)==null?void 0:(y=G.secondaryResults)==null?void 0:y.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.A("swatcheroo_pbs_load_grid")&&!_.A("swatcheroo_provide_all_data_on_scheduled_job")){_.vz.cancelJob(this.setRichGridJobId_);var X,t,G,y,w,z,B;this.setRichGridRendererData((X=this.data)==null?void 0:(t=X.contents)==null?void 0:(G=t.twoColumnWatchNextResults)==null?void 0:(y=G.secondaryResults)==null?void 0:(w=y.secondaryResults)==null?void 0:(z=w.results)==null?void 0:(B=z[0])==null?
void 0:B.richGridRenderer)}},
setRichGridRendererData:function(X){this.richGridRendererData=X},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var X,t=(X=this.data)==null?void 0:X.engagementPanels;if(t==null?0:t.length){X=null;t=_.J(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;var y=void 0;if(((y=G.engagementPanelSectionListRenderer)==null?void 0:y.targetId)==="engagement-panel-structured-description"){X=G;break}}var w,z,B;X=(w=X)==null?void 0:(z=w.engagementPanelSectionListRenderer)==null?void 0:(B=z.content)==null?void 0:B.structuredDescriptionContentRenderer;if(X==null?0:X.items){w=
[];z=_.J(X.items);for(B=z.next();!B.done;B=z.next()){B=B.value;if(!_.A("sd_horizontal_list_show_nav_killswitch")){var V=y=G=t=X=void 0,b=void 0,e=(X=B.horizontalCardListRenderer)==null?void 0:(t=X.header)==null?void 0:(G=t.richListHeaderRenderer)==null?void 0:(y=G.navigationButton)==null?void 0:(V=y.buttonRenderer)==null?void 0:(b=V.command)==null?void 0:b.commandExecutorCommand;e&&e.commands&&(e.commands=e.commands.filter(function(g){return!_.Y(g,_.b2Q)}))}(!B.expandableVideoDescriptionBodyRenderer&&
!B.videoDescriptionHeaderRenderer||_.A("web_delhi_colorful_sd"))&&w.push(B)}return{items:w}}}},
constructWarning_:function(X){return{text:_.Vl(X),type:"WARNING"}},
isPlaShelfEnabled_:function(X){if((this.get("adPlacements",X)||[]).length)return!0;X=this.get("playerAds",X)||[];return!(!X.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",X[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var X=this;_.Yt(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.A("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var t=this.getScrollTop()>0;this.gestures_&&(t?this.gestures_.detach():this.gestures_.attach());t!==this.showFullerscreenEdu_&&_.A("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=t,_.YW(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonVisibility(X.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Yt(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var X=this;this.commentsReady=!1;_.vz.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.PO(_.vz,function(){X.setComments_()},1E3)},
setComments_:function(){if(!_.A("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.ls("cmi");_.vz.cancelJob(this.setCommentsJobId_);var X=this.getPageContents(this.data);if(X&&X.length){X=_.J(X);for(var t=X.next();!t.done;t=X.next())if(t=t.value,this.get("itemSectionRenderer.sectionIdentifier",t)==="comment-item-section"){this.comments=t.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Yt(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.A("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.A("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.ls("cmc")},
doRemoveComments_:function(){this.comments={};_.A("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.vz.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.vz.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(X,t){var G=_.Y(t.endpoint,_.nq);G&&(!(t=this.get("data.currentVideoEndpoint.watchEndpoint"))||G.videoId!==t.videoId||G.playlistId&&G.playlistId!==t.playlistId||G.index!==void 0&&G.index!==t.index||typeof G.startTimeSeconds!=="number"||(X.stopPropagation(),this.setScrollTop(0),_.YW(this).getPlayerPromise().then(function(y){var w=G.startTimeSeconds;y.seekTo(w);y.wakeUpControls();w<y.getDuration()&&y.playVideo()})))},
updatePlayerStartTime_:function(){var X=_.aAi();"t"in X&&(X=_.J6N(X.t),this.player.seekTo(X,!0))},
updateTitleFromWatchNext:function(X){X=this.getPageContents(X);var t,G;(X=_.bu(X==null?void 0:(t=X[0])==null?void 0:(G=t.videoPrimaryInfoRenderer)==null?void 0:G.title))&&_.Yt(this.hostElement,"yt-update-title",X)},
updateTitle_:function(X){X=this.get("videoDetails.title",X)||"";_.Yt(this.hostElement,"yt-update-title",X)},
syncWithRemoteVideo_:function(X,t,G){if(this.active&&this.player){var y=this.player.getVideoData();if(y.video_id===G&&(G=y.list,_.A("polymer_enable_mdx_queue")&&G&&G.startsWith("RQ")&&(G=void 0),y.video_id!==X||G!=t)){var w;_.A("kevlar_player_watch_endpoint_navigation")?w=_.cxG(_.wpY(X,t)):w=this.buildWatchEndpoint_(X,t);_.Yt(this.hostElement,"yt-navigate",{endpoint:w,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(X,t,G){return _.TG(X,t,G)},
initDclkstatus_:function(){_.ob_()},
attachWatchPageSkeleton_:function(){var X=document.querySelector("#watch-page-skeleton");if(X){var t=X.querySelector("#primary-info"),G=X.querySelector("#secondary-info"),y=X.querySelector("#related");t&&_.Sm(this.hostElement).querySelector("#info-skeleton").appendChild(t);G&&_.Sm(this.hostElement).querySelector("#meta-skeleton").appendChild(G);y&&(_.Sm(this.hostElement).querySelector("#related-skeleton").appendChild(y),this.watchNextSkeletonEl_=y);_.uf(X)}},
handlePlayerUpdated_:function(){_.YW(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(X,t){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof t!=="undefined"){var G=this.watchNextSkeletonEl_.children,y=X&&X.indexSplices.length?X.indexSplices[0].index:0;X=Math.min(this.watchNextShownItems.length,G.length);t||(y=0,X=G.length);for(t=y;t<X;t++)G[t].classList.add("hidden")}},
onPlayerFullscreenChange_:function(X){_.A("external_fullscreen")||_.sl(this.hostElement,"yt-player-fullscreen",[X.fullscreen])},
onFullscreenChange_:function(X){this.fullscreen=X;this.gestures_&&this.gestures_.update(this.fullscreen);var t=_.YW(this);t.getPlayerPromise().then(function(G){G.setFauxFullscreen(!!_.gk())});
this.updateFullBleedElementLocations();X&&(t.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(X,t){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!t},
computeIsDonationShelfCollapsed_:function(X){return X},
computeShouldShowMerchShelf:function(X,t){return t&&!!X},
computeResponseHasComments:function(X){var t,G,y,w,z;return!!(X==null?0:(t=X.contents)==null?0:(G=t.twoColumnWatchNextResults)==null?0:(y=G.results)==null?0:(w=y.results)==null?0:(z=w.contents)==null?0:z.some(function(B){var V;return(B==null?void 0:(V=B.itemSectionRenderer)==null?void 0:V.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(X,t,G,y){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&y?!1:!!X&&!!Object.keys(X).length&&!t},
identity:_.Nw,onWindowResized_:function(X){this.windowSize_=X;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.A("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(X){var t=this;X&&X.type!=="dataloaded"&&X.type!=="dataupdated"||_.YW(this).getPlayerPromise().then(function(G){var y=G.getPlayerState();y!==5&&y!==0&&(G=1/G.getVideoAspectRatio(),t.videoHeightToWidthRatio_!==G&&(t.videoHeightToWidthRatio_=G))})},
schedulePlayerSizeUpdate_:function(X){var t=this,G=_.A("kevlar_watch_while_v2")||_.A("web_watch_pip"),y=function(){if(t.watchMetadata){var w,z;(z=(w=t.watchMetadata).resize)==null||z.call(w)}_.YW(t).getPlayerPromise().then(function(B){if(_.A("kevlar_set_internal_player_size")){if(!G||!t.isMiniplayerActive()){var V=t.calculateCurrentPlayerSize_();B.setInternalSize(V.width,V.height)}}else B.setSize(NaN,NaN);_.A("kevlar_watch_while")&&t.updateWatchWhileScrollThreshold_()})};
X?y():_.f5(_.vz,y)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(X){this.set("data.survey",X.detail)},
onYtShowSurveyCommand_:function(X){this.set("data.survey",_.Y(X,_.j0_).survey)},
onDownloadedVideoDeleted:function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1){if(!t.active||(G=t.playerData)==null||!G.offlineState||t.videoId!==X)return w.return();(y=t.player)==null||y.stopVideo();_.cF().navigatingAwayFromWatchDeletedVideo=!0;_.cj(_.zn_,t.hostElement);return w.yield(_.cF().navigationFinishPromise,2)}_.cF().navigatingAwayFromWatchDeletedVideo=!1;_.W$(w)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var X;this.theater?X=_.MM(.5625*this.windowSize_.width,480,this.windowSize_.height-185):X=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==X&&(this.watchWhileScrollThreshold_=X,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var X=_.Sm(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&X){var t=this.windowSize_.height>=624,G=this.active?this.getScrollTop():0;!X.active&&t&&G>=this.watchWhileScrollThreshold_?(X.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):X.active&&(!t||G<this.watchWhileScrollThreshold_&&!_.gk())&&(X.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var X=_.Sm(this.hostElement).querySelector("#secondary-inner");if(X){var t=_.Sm(this.hostElement).querySelector("#below"),G=_.Sm(this.hostElement).querySelector("#secondary"),y=_.Sm(this.hostElement).querySelector("#comments");y&&G&&t&&(this.defaultTwoColumnLayout?(X.appendChild(y),G.appendChild(X)):(t.appendChild(y),_.un(t,X)))}}},
isTwoColumnsChanged_:function(X,t){if(X!==!0||t!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(X=_.Sm(this.hostElement).querySelector("#secondary-inner"))){t=_.Sm(this.hostElement).querySelector("#below");var G=_.Sm(this.hostElement).querySelector("#secondary"),y=_.Sm(this.hostElement).querySelector("#comments");y&&G&&t&&(this.isTwoColumns_?(X.appendChild(y),G.appendChild(X)):(t.appendChild(y),
_.un(t,X)))}}else{X=!_.A("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);t=_.Sm(this.hostElement).querySelector("#panels");var w=_.Sm(this.hostElement).querySelector("#alerts");G=_.Sm(this.hostElement).querySelector("#playlist");y=_.Sm(this.hostElement).querySelector("#related");var z=_.Sm(this.hostElement).querySelector("#donation-shelf"),B=_.Sm(this.hostElement).querySelector("#comments");this.isTwoColumns_?(w=_.Sm(this.hostElement).querySelector("#secondary-inner"),
X&&(w.appendChild(t),w.appendChild(G)),w.appendChild(z),w.appendChild(y)):(X&&(_.xo(t,w),_.xo(G,w)),_.xo(z,w),B&&_.xo(y,B));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.A("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.A("web_watch_enable_fs_squeezeback_panels")&&_.A("web_watch_theater_chat")){var X=_.Sm(this.hostElement).querySelector("#chat-container"),t=this.theater&&!this.fullscreen||_.A("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&t?(t=_.Sm(this.hostElement).querySelector("#columns"),(X==null?void 0:X.parentElement)!==t&&t.append(X),this.fixedPanels=!0):(this.fixedPanels=
!1,t=_.Sm(this.hostElement).querySelector("#playlist"),X&&t?_.fN(X,t):_.Mj(new _.NJ("Missing element when updating chat location",{"chatContainer defined":!!X,"playlist defined":!!t})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(X,t){return _.A("sw_metadata_vis_toggle_ks")?!0:!!X||!!t},
computeForceDarkPanelTheme:function(X){return _.A("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&X:!1},
safeUpdateStyles:function(X){try{_.Kd(this.hostElement,X)}catch(t){_.Mj(t)}},
videoHeightToWidthRatioChanged_:function(X,t){t&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(X){this.videoHeightToWidthRatio_=1/X},
computeIsVerticalVideo_:function(X){return X>=1},
computeIsFourThreeToSixteenNineVideo_:function(X){return X<=.7501&&X>=.5624},
computeIsExtraWideVideo_:function(X){return X<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.YW(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.YW(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.hBN(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(X){var t=_.O2(X)||0;_.Ku(X,t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var X=_.O2("yt-fullerscreen-edu-button-click-count")||0,t=_.O2("yt-fullerscreen-edu-button-shown-count")||0,G=_.At("external_fullscreen_button_shown_threshold"),y=X>=_.At("external_fullscreen_button_click_threshold")||t>=G;_.YW(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonSubtleModeState(y)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(X,t){return t},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.gw().resolve(_.Gm).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var X=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.vz.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.vz.addLowPriorityJob(function(){X.fullHeightPanelPositionUpdateJobId=0;var t=_.Sm(X.hostElement).querySelector("#secondary"),G=_.Sm(X.hostElement).querySelector("#fixed-secondary");t=t.getBoundingClientRect();var y=t.width;X.swatcherooSqueezeback&&
(y+=_.Iv);if(X.swatcherooSqueezeback){var w=_.Sm(X.hostElement).querySelector("#squeezeback-constraining-container");w.style.width=y+"px";w.style.flex="0 0 "+y+"px"}G.style.width=y+"px";G.style.left=t.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var X=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.vz.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.vz.addLowPriorityJob(function(){X.panelMaxHeightUpdateJob_=0;var t;!X.isTwoColumns_||X.theater||X.fullscreen?t=460:t=X.calculateNormalPlayerSize_().height;var G=t+"px";_.A("live_chat_taller_height")&&!X.theater&&(G="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.A("live_chat_medium_height")&&!X.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.A("live_chat_scaled_height")&&!X.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 238px)");X.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":t+"px","--ytd-watch-flexy-chat-max-height":G,"--ytd-watch-flexy-structured-description-max-height":t+"px","--ytd-watch-flexy-comments-panel-max-height":t+"px","--ytd-comments-engagement-panel-content-height":t+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(X){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",X)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Z0(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(X){var t=_.Sm(this.hostElement).querySelector("#engagement-panel-scrim");X?t.addEventListener("tap",_.Ik(this,this.onEngagementPanelScrimClick_)):t.removeEventListener("tap",_.Ik(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(X){if(this.hostElement.contains(X)&&!this.scrollToAnimation_.isAnimating()){var t=X.offsetTop-24;X=X.offsetTop+X.offsetHeight+24;var G=this.getPageScrollingElement(),y=this.getScrollTop(),w=y+G.clientHeight-56;if(t<y+56)t-=56;else if(X>w)t=X-G.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtSignalActionScrollToComments:function(){var X=this.hostElement.querySelector("#comments");if(X&&!this.scrollToAnimation_.isAnimating()){X=X.offsetTop-56-24;if(_.A("kevlar_comment_teaser_scroll_to_midpoint")&&(X-=_.W1().height/3,X<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,X),500)}},
onYtEngagementPanelVisibleChanged:function(X,t,G){if(this.active&&this.trackEngagementPanelVisibility&&!_.dlt.includes(G)){if(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.D0(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var y=_.gw().resolve(_.mD);this.visiblePanelIdentifiers_.forEach(function(w){w!==G&&y.hidePanel(w)})}this.visiblePanelIdentifiers_.add(G)}t!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&t!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(G);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(X){return X?"":"watch-active-metadata"},
computeNewMetadataClass:function(X){return X?"watch-active-metadata":""},
computeFullBleedPlayer:function(X,t,G){return _.A("web_watch_error_screen_fix")?_.A("external_fullscreen")&&X||t||this.enableFullBleedSingleColumnDefaultPlayer&&!G:X||t||this.enableFullBleedSingleColumnDefaultPlayer&&!G},
computeDefaultLayout:function(X){return!X},
computeDefaultTwoColumnLayout:function(X,t){return!X&&t},
updatePanelsLocation:function(){if(_.A("web_watch_enable_fs_squeezeback_panels")&&this.isAttached){var X=_.Sm(this.hostElement).querySelector("#below"),t=_.Sm(this.hostElement).querySelector("#panels"),G=_.Sm(this.hostElement).querySelector("#playlist"),y=_.Sm(this.hostElement).querySelector("#chat-container"),w=_.Sm(this.hostElement).querySelector("#panels-full-bleed-container"),z=_.Sm(this.hostElement).querySelector("#secondary-inner"),B=this.fullscreen||this.theater&&this.iMaxTheaterMode,V=this.theater&&
!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;B?(w.appendChild(t),w.appendChild(y),w.appendChild(G)):this.isTwoColumns_?(V?(X=_.Sm(this.hostElement).querySelector("#columns"),(y==null?void 0:y.parentElement)!==X&&X.append(y),this.fixedPanels=!0):_.un(z,y),_.un(z,t),_.un(z,G)):(X.appendChild(t),X.appendChild(y),X.appendChild(G))}},
swatcherooUpdatePanelsLocation:function(X,t,G,y,w,z){if(this.is==="ytd-watch-grid"){t=X&&!t;this.swatcherooSplitScroll&&(t?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));G=_.Sm(this.hostElement).querySelector("#panels");var B=_.Sm(this.hostElement).querySelector("#playlist"),V=_.Sm(this.hostElement).querySelector("#fixed-secondary"),b=_.Sm(this.hostElement).querySelector("#fixed-below"),
e=_.Sm(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),g=_.Sm(this.hostElement).querySelector("#chat-container");z&&(X?V.appendChild(G):b.appendChild(G));w?X?V.appendChild(g):b.appendChild(g):_.fN(g,e);y?X?V.appendChild(B):b.appendChild(B):_.fN(B,e);this.swatcherooSplitScroll&&(X=_.Sm(this.hostElement).querySelector("#secondary"),y=_.Sm(this.hostElement).querySelector("#columns"),w=_.Sm(this.hostElement).querySelector("#fixed-columns-secondary"),t?
w.appendChild(X):y.appendChild(X))}},
computeMetadataSkinnyMode:function(X,t,G){return this.is!=="ytd-watch-grid"?!1:X?G:t},
computeWatchWhilePanelsActive:function(X,t){return X||t},
computeNoBorderOnChat:function(X){return _.A("web_watch_theater_chat_no_border")&&X},
computeLiveChatPresentAndExpanded:function(X,t){return X&&!t},
computePanelExpanded:function(X,t,G){return X||t||G},
computeSqueezeback:function(X,t,G,y){if(_.A("web_watch_enable_fs_squeezeback_panels")){var w=this.iMaxTheaterMode&&this.theater;return(X||t||G)&&(y||w)}},
computeSwatcherooSqueezeback:function(X,t,G){return this.is!=="ytd-watch-grid"||_.A("ww_squeezeback_killswitch")?!1:X&&t&&G},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(X){_.YW(this).getPlayerPromise().then(function(t){var G;(G=t.changeMarkerVisibility)==null||G.call(t,_.Y(X,_.my).isVisible||!1,_.Y(X,_.my).entityKeys||[],_.Y(X,_.my).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(X){this.liveChatCollapsed=X.detail;_.dV().dispatch(_.klY(X.detail));if(!this.liveChatCollapsed&&this.squeezeback){var t=_.gw().resolve(_.mD);this.visiblePanelIdentifiers_.forEach(function(G){t.hidePanel(G)})}},
onSetPlaylistCollapsed:function(X){_.A("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!X)},
provideRenderingData:function(X,t){switch(X){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=t;break;case "PRIMARY_INFO":_.A("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=t);this.videoPrimaryInfoRendererValue=t==null?void 0:t.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.A("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=t);this.videoSecondaryInfoRendererValue=t==null?void 0:t.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
t;break;case "CLARIFICATION":this.clarifyBoxValue=t;break;case "LIVE_CHAT":this.conversationBar=t;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=t;break;case "PLAYLIST":this.externalPlaylistData_=t!=null?t:{};break;case "MERCH_SHELF":this.merchShelfValue=t==null?void 0:t.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=t;break;case "TICKET_SHELF":this.ticket=t;break;case "OFFER_MODULE":this.offerModule=t;break;case "LIMITED_STATE":this.limitedStateValue=
t;break;case "DONATION_SHELF":this.donation=t;break;case "ALERTS":this.alertsValue=t;break;case "COMMENTS":this.comments=t;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=t;break;case "ENGAGEMENT_PANELS":this.engagementPanels=t;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=t;break;case "RICH_GRID_RENDERER":this.richGridRendererData=t;break;case "EXPANDABLE_METADATA":this.expandableMetadata=t;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
t;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=t}},
toggleCinematicsActive:function(X){this.cinematicsActive=X},
isMiniplayerActive:function(){return _.gw().resolve(_.G2).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var tia;_.$_v=function(X){if(!(0,_.XhE)(X))throw Error("K``"+String(X));};
_.GjH=function(X){return X.findIndex(function(t){return tia.indexOf(t.tagName)>-1})>-1};
_.yaB=function(){var X=_.gw().resolve(_.rv);_.YVE(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(X.isFullscreenEnabled()?_.Fi(document.documentElement):_.a40(document.documentElement))};
tia=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.YL=new Map;_.YL.set(32,59972);_.YL.set(27,50765);_.YL.set(70,60102);_.YL.set(76,60221);_.YL.set(77,60222);_.YL.set(74,60223);_.YL.set(84,60224);_.YL.set(38,61941);_.YL.set(40,61942);_.YL.set(73,62521);_.YL.set(67,62522);_.YL.set(80,63390);_.YL.set(78,63397);_.YL.set(75,59972);_.YL.set(188,63385);_.YL.set(190,63384);_.YL.set(36,63387);
_.YL.set(35,63386);_.YL.set(37,63388);_.YL.set(39,63389);_.YL.set(79,63423);_.YL.set(87,63424);_.YL.set(107,63426);_.YL.set(109,63425);_.YL.set(65,63428);_.YL.set(83,63430);_.YL.set(68,63429);_.YL.set(221,63431);_.YL.set(219,63432);_.YL.set(97,63439);_.YL.set(98,63440);_.YL.set(99,63441);_.YL.set(100,63442);_.YL.set(101,63443);_.YL.set(102,63444);_.YL.set(103,63445);_.YL.set(104,63446);_.YL.set(105,63447);_.sO=new Map;_.sO.set(80,63390);_.sO.set(78,63397);_.sO.set(188,63400);_.sO.set(190,63401);
_.sO.set(191,60765);_.sO.set(13,247917);_.Di=new Map;_.SW=new Map;
}catch(e){_._DumpException(e)}
try{
var MMi,t0a,GyT,yWv;_.aoq=function(X){return X.ui.guideIsVisibleButNotPersistent};
_.loB=function(X){return X.ui.tabGesturesIsActive};
_.xlv=function(){var X=_.Yx("service_worker_scope");try{return navigator.serviceWorker.getRegistration(X)}catch(t){return Promise.reject(t)}};
_.foQ=function(X){return!(!X||!X.pushManager)};
MMi=function(){return _.xlv().then(_.foQ).catch(function(){return!1})};
_.XmT=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?MMi():Promise.resolve(!1)};
_.$tv=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
t0a=function(){var X,t,G;return _.n(function(y){switch(y.nextAddress){case 1:return y.yield(_.ig.getInstance(),2);case 2:X=y.yieldResult;if(!X){t=void 0;y.jumpTo(3);break}return y.yield(X.get("lmqf"),4);case 4:t=y.yieldResult;case 3:switch((G=t)||(G="SD"),G){case "HD":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
GyT=function(X){var t,G,y;return _.n(function(w){if(w.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.A("disable_av1_setting")){var z=window.localStorage["yt-player-av1-pref"];z=z==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":z==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else z="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(t=X===z)return w.jumpTo(2);y=G=X;return w.yield(t0a(),3)}w.nextAddress!=2&&(t=y===w.yieldResult);return w.return(t)})};var wmi;var zKr=_.UC.IronButtonState,Htq=(0,_.PB)(HTMLElement);
_.le({_template:function(){if(wmi!==void 0)return wmi;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;yWv===void 0&&(yWv=document.createElement("template"));var y=yWv;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return wmi=X},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[zKr,_.P3,_.mQ,_.LB],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(X){var t=(0,_.cq)(this);t.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:X});t.shadowRoot.appendChild(X);return Htq.prototype._attachDom.call(this,X)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var X=this.contentElement;X&&X.selectedItem&&this._setSelectedItem(X.selectedItem)},
get contentElement(){for(var X=_.Es(this.$.content).getDistributedNodes(),t=0,G=X.length;t<G;t++)if(X[t].nodeType===Node.ELEMENT_NODE)return X[t]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(X){this._setSelectedItem(X.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(X){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X)===this&&this.open()},
_selectedItemChanged:function(X){var t="";X?t=X.label||X.getAttribute("label")||X.textContent.trim():t="";this.value=t;this._setSelectedItemLabel(t)},
_computeMenuVerticalOffset:function(X,t){return t?t:X?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var X=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",X)}});_.kR=new _.ja("navigateAction");var oH4=new _.ja("formRenderer");var d4=function(){var X=_.PW.apply(this,arguments)||this;X.showInput=!1;return X};
_.S(d4,_.PW);_.H=d4.prototype;_.H.detached=function(){this.showInput&&window.removeEventListener("click",_.Ik(this,this.closeOnOutsideClick_))};
_.H.stopPropagation_=function(X){this.showInput&&X.stopPropagation()};
_.H.closeOnOutsideClick_=function(X){this.closeOnOutsideClickCondition(X)&&(this.showInput=!1,window.removeEventListener("click",_.Ik(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.H.closeOnOutsideClickCondition=function(){return!0};
_.H.closeOnOutsideClickHandler=function(){};
_.H.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Ik(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.H.openOnClickHandler=function(){};
_.H.showInputChanged=function(){};
_.H.setShowInput=function(X){this.showInput=X};
d4.prototype.setShowInput=d4.prototype.setShowInput;d4.prototype.showInputChanged=d4.prototype.showInputChanged;d4.prototype.openOnClickHandler=d4.prototype.openOnClickHandler;d4.prototype.openOnClick_=d4.prototype.openOnClick_;d4.prototype.closeOnOutsideClickHandler=d4.prototype.closeOnOutsideClickHandler;d4.prototype.closeOnOutsideClickCondition=d4.prototype.closeOnOutsideClickCondition;d4.prototype.closeOnOutsideClick_=d4.prototype.closeOnOutsideClick_;d4.prototype.stopPropagation_=d4.prototype.stopPropagation_;
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],d4.prototype,"showInput",void 0);_.E([_.WW("click"),_.WW("keydown"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],d4.prototype,"stopPropagation_",null);_.E([_.cW("showInput"),_.U("design:type",Function),_.U("design:paramtypes",[Boolean]),_.U("design:returntype")],d4.prototype,"showInputChanged",null);_.E([_.E0()],d4);_.JWR=[d4.prototype];var BhH;var nH2;var eZ=function(){return _.O.apply(this,arguments)||this};
_.S(eZ,_.O);_.H=eZ.prototype;_.H.computePreselectedOption=function(X,t){return t===this.itemSelected_?X:void 0};
_.H.dataChanged_=function(){var X=this;this.preselectedSubreason=this.itemSelected_=-1;var t;(t=this.data)!=null&&t.key&&_.V8(this,function(){var G,y=Number((G=X.data)==null?void 0:G.key);!Number.isNaN(y)&&(X.itemSelected_=y,G=(G=(X.data.items||[])[y])&&G.optionSelectableItemRenderer&&G.optionSelectableItemRenderer.preselectedIndex)&&(X.preselectedSubreason=G)})};
_.H.isSubReasonHidden_=function(X,t){return X!=t};
_.H.onTopItemSelected_=function(X,t){for(var G=_.Sm(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),y=0,w=G.length;y<w;y++)G[y].select(0);_.sl(this.hostElement,"yt-report-form-update",[t.item.value]);X.stopPropagation()};
_.H.onItemSelected_=function(X,t){_.sl(this.hostElement,"yt-report-form-update",[t.item.value]);X.stopPropagation()};
_.H.getItem_=function(X){return X.serviceItem?X.serviceItem:X.navigationItem?X.navigationItem:X.optionSelectableItemRenderer?X.optionSelectableItemRenderer:null};
_.H.computeText_=function(X){return(X=this.getItem_(X))?this.ytRendererBehavior.getSimpleString(X.text):null};
_.H.validate=function(){return this.itemSelected_!==-1};
_.H.computeAriaLabel_=function(X){var t=_.bu(X.text);(X=X.accessibility&&X.accessibility.accessibilityData&&X.accessibility.accessibilityData.label)&&(t+=". "+X);return t};
_.H.computeItemSelected_=function(X){return X};
_.H.preventSelection_=function(X){X.stopPropagation();this.tooltipTapped=!0};
_.H.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.H.updateItemSelectedFromBinding=function(X){this.itemSelected_=X.detail.value};
_.H.save=function(){var X;this.validate()&&(X=this.data)!=null&&X.items&&(X=this.data.items[this.itemSelected_],X!=null&&X.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(X.optionSelectableItemRenderer.submitEndpoint)||_.hE(this.hostElement,[X.optionSelectableItemRenderer.submitEndpoint])))};
eZ.prototype.onPaperRippleTransitionEnd_=eZ.prototype.onPaperRippleTransitionEnd_;eZ.prototype.dataChanged_=eZ.prototype.dataChanged_;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],eZ.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eZ.prototype,"data",void 0);_.E([_.K({value:-1}),_.U("design:type",Number)],eZ.prototype,"itemSelected_",void 0);
_.E([_.K({computed:"computeItemSelected_(itemSelected_)"}),_.U("design:type",Number)],eZ.prototype,"value",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],eZ.prototype,"restoreFocusOnClose",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],eZ.prototype,"tooltipTapped",void 0);_.E([_.K({value:-1}),_.U("design:type",Number)],eZ.prototype,"preselectedSubreason",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eZ.prototype,"dataChanged_",null);_.E([_.WW("transitionend"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eZ.prototype,"onPaperRippleTransitionEnd_",null);_.E([_.$F({is:"yt-options-renderer",disableElementRegistration:!0})],eZ);
_.N(eZ,"yt-options-renderer",function(){if(nH2===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;BhH===void 0&&(BhH=document.createElement("template"));var y=BhH;G.call(t,y.content.cloneNode(!0),X.content.firstChild);nH2=X}X=nH2;return X},{mode:2});var V0q;var bta;var kyq;var dtH;var eKv;var j5R;var jZ=function(){return _.O.apply(this,arguments)||this};
_.S(jZ,_.O);jZ.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
jZ.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
jZ.prototype.onTap=function(X){if(this.hostElement.classList.contains("selected")||_.SQ(this.hostElement,"yt-share-panel-can-select-contact-action"))X&&X.detail&&(X.detail.x||X.detail.y)&&_.Sm(this.hostElement).querySelector("#target").blur(),(X=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),X={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:X?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.sl(this.hostElement,"yt-share-panel-select-contact-action",[X])};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.E([_.K({observer:"onDataChanged"}),_.U("design:type",Object)],jZ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.U("design:type",String)],jZ.prototype,"componentTitle",void 0);_.E([_.rt("#thumbnail"),_.U("design:type",Object)],jZ.prototype,"thumbnail",void 0);_.E([_.$F({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],jZ);
_.N(jZ,"yt-enrolled-contact-renderer",function(){if(j5R===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;eKv===void 0&&(eKv=document.createElement("template"));var y=eKv;G.call(t,y.content.cloneNode(!0),X.content.firstChild);j5R=X}X=j5R;return X},{mode:2});var gHT;var F$2;var g4=function(){return _.O.apply(this,arguments)||this};
_.S(g4,_.O);g4.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
g4.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
g4.prototype.onTap=function(X){if(this.hostElement.classList.contains("selected")||_.SQ(this.hostElement,"yt-share-panel-can-select-contact-action"))X&&X.detail&&(X.detail.x||X.detail.y)&&_.Sm(this.hostElement).querySelector("#target").blur(),(X=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),X={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:X?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.sl(this.hostElement,"yt-share-panel-select-contact-action",[X])};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.E([_.K({observer:"onDataChanged"}),_.U("design:type",Object)],g4.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.U("design:type",String)],g4.prototype,"componentTitle",void 0);_.E([_.rt("#thumbnail"),_.U("design:type",Object)],g4.prototype,"thumbnail",void 0);_.E([_.$F({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],g4);
_.N(g4,"yt-suggested-contact-renderer",function(){if(F$2===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;gHT===void 0&&(gHT=document.createElement("template"));var y=gHT;G.call(t,y.content.cloneNode(!0),X.content.firstChild);F$2=X}X=F$2;return X},{mode:2});var F_=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-share-panel-reset-action":"onReset"};return X};
_.S(F_,_.O);F_.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"}}}}}};
F_.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.sl(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
F_.prototype.onReset=function(){for(var X=_.Sm(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),t=X.length-1;t>=0;t--)X[t].classList.toggle("selected")};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],F_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({observer:"onDataChanged"}),_.U("design:type",Object)],F_.prototype,"data",void 0);
_.E([_.$F({is:"yt-contact-section-renderer",disableElementRegistration:!0})],F_);
_.N(F_,"yt-contact-section-renderer",function(){if(dtH===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;kyq===void 0&&(kyq=document.createElement("template"));var y=kyq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);dtH=X}X=dtH;return X},{mode:2});var Tg=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return X};
_.S(Tg,_.O);_.H=Tg.prototype;_.H.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"}}}};
_.H.onYtRefreshFormCommand=function(X){var t;(X=_.Y((t=_.Y(X,_.aaJ))==null?void 0:t.formRenderer,oH4))&&this.set("data",X)};
_.H.reset=function(){var X=_.Sm(this.hostElement).querySelector("#fields").children;X=_.J(X);for(var t=X.next();!t.done;t=X.next())t=t.value,t.reset&&t.reset()};
_.H.getForm=function(){var X={},t=_.Sm(this.hostElement).querySelector("#fields").children;t=_.J(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;if(!G.validate())return null;X[G.data.key]=G.value}return X};
_.H.submitFormFields=function(){if(this.fields)for(var X=_.J(this.fields),t=X.next();!t.done;t=X.next())t=t.value,t.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?t.save():t.nodeName==="YT-OPTIONS-RENDERER"&&t.save()};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Tg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Tg.prototype,"data",void 0);_.E([_.NS("#fields > *"),_.U("design:type",Array)],Tg.prototype,"fields",void 0);
_.E([_.$F({is:"yt-form-renderer",disableElementRegistration:!0})],Tg);
_.N(Tg,"yt-form-renderer",function(){if(bta===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;V0q===void 0&&(V0q=document.createElement("template"));var y=V0q;G.call(t,y.content.cloneNode(!0),X.content.firstChild);bta=X}X=bta;return X},{mode:2});var ThQ;var A1=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return X};
_.S(A1,_.O);A1.prototype.onCheckboxChange=function(X){this.data&&(X=(this.checked=_.k3(X).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}})};
A1.prototype.handleUpdateCheckboxCommand=function(X){(X=_.Y(X,_.nPY))&&this.data&&this.data.id===X.id&&(this.set("data.disabled",X.disabled),this.set("data.title",X.title))};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],A1.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],A1.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],A1.prototype,"checked",void 0);_.E([_.p({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],A1);
_.N(A1,"ytd-settings-checkbox-renderer",function(){if(ThQ!==void 0)return ThQ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return ThQ=X},{mode:1});var AWH;var YR=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return X};
_.S(YR,_.O);YR.prototype.dataChanged=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return X.radio.removeAttribute("checked"),!X.data||!X.data.id||X.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.$tv()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(t=X.data&&X.data.id)?G.yield(GyT(X.data.id),4):G.jumpTo(3):(X.set("data.hidden",!0),G.jumpTo(0));G.nextAddress!=3&&(t=G.yieldResult);t&&_.sl(X.hostElement,"yt-select-settings-radio-option",[X.data.id]);_.W$(G)})};
YR.prototype.onButtonChanged=function(X){_.k3(X).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.gw().resolve(_.F3).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.sl(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
YR.prototype.onSelectOption=function(X){this.data&&this.data.id&&(this.data.id===X?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
YR.prototype.dataChanged=YR.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.rt("#radio"),_.U("design:type",Object)],YR.prototype,"radio",void 0);_.E([_.K(),_.U("design:type",Object)],YR.prototype,"data",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype",Promise)],YR.prototype,"dataChanged",null);_.E([_.p({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],YR);
_.N(YR,"ytd-settings-radio-option-renderer",function(){if(AWH!==void 0)return AWH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return AWH=X},{mode:1});var YmN;var sj=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return X};
_.S(sj,_.O);
sj.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"}}}};
sj.prototype.handleUpdateTextCommand=function(X){(X=_.Y(X,_.V2J))&&this.data&&this.data.id===X.id&&this.set("data",X)};
sj.prototype.handleUpdateConnectedAppRendererCommand=function(X){if(_.Y(X,_.dgq)&&this.data){var t,G;if(X=(t=_.Y(X,_.dgq))==null?void 0:(G=t.newConnectedAppRenderer)==null?void 0:G.connectedAppRenderer)this.data=X}};
sj.prototype.computeConnectedAppStyle=function(X){return X.style?X.style.toLowerCase().replace(/_/g,"-"):""};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],sj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],sj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sj.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.U("design:type",String)],sj.prototype,"connectedAppStyle",void 0);_.E([_.p({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],sj);
_.N(sj,"ytd-connected-app-renderer",function(){if(YmN!==void 0)return YmN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return YmN=X},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.R0("iuT5Oc");

_.Lo();
}catch(e){_._DumpException(e)}
try{
_.R0("L3n37");
var mlx=function(X){return X.watch.isLearningJourneyActive},RBY=_.ai(115994),iot=_.ai(115993),LWg=function(X,t,G){var y=this;
var w=G.dragDownAction;this.layer=0;this.JSC$22833_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.JSC$22833_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.fullscreen=!1;var z=_.Pj();_.Kc(z,RBY,this.layer);_.Kc(z,iot,this.layer);this.dragDownAction=function(){w();_.n5(z,{visualElement:y.fullscreen?RBY:iot})};
this.gesture=new _.Bf(X,t,this.JSC$22833_watchConfig,"pandown");this.attach()};
LWg.prototype.attach=function(){this.gesture.attach()};
LWg.prototype.detach=function(){this.gesture.detach()};
LWg.prototype.update=function(X){this.fullscreen=X;this.gesture.config=X?this.JSC$22833_watchFullScreenConfig:this.JSC$22833_watchConfig};var vbM=function(X){_.Au.call(this);var t=this;this.rootElement=X;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return t.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(G){t.initOrDisposeActiveModules(G)}));
this.onAttached()};
_.S(vbM,_.Au);_.H=vbM.prototype;_.H.getRoot=function(){return this.rootElement};
_.H.getElement=function(X){return this.rootElement.getElement(X)};
_.H.setPlayerResponse=function(X){this.playerResponse=X;this.publish("PLAYER_RESPONSE_UPDATED",X)};
_.H.getPlayerResponse=function(){return this.playerResponse};
_.H.setWatchNextResponse=function(X){this.watchNextResponse===X?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=X,this.publish("WATCH_NEXT_RESPONSE_UPDATED",X))};
_.H.getWatchNextResponse=function(){return this.watchNextResponse};
_.H.registerActionHandler=function(X,t){var G=this;if(_.A("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.oO(_.Hq.getInstance(),(y[X]=t,y),this.getRoot())}else this.actionHandlers.has(X)||(this.actionHandlers.set(X,[]),y={},_.oO(_.Hq.getInstance(),(y[X]=function(){var w=_.f1.apply(0,arguments);return(G.actionHandlers.get(X)||[]).map(function(z){return z.apply(null,_.RY(w))})},y),this.getRoot())),this.actionHandlers.get(X).push(t)};
_.H.unregisterActionHandler=function(X){if(_.A("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.Ja(_.Hq.getInstance(),(t[X]=!0,t),this.getRoot())}else(t=this.actionHandlers.get(X))?(t.pop(),t.length===0&&(t={},_.Ja(_.Hq.getInstance(),(t[X]=!0,t),this.getRoot()),this.actionHandlers.delete(X))):_.Mj(new _.NJ("Attempted to unregister an action handler which is not registered.",X))};
_.H.addPageDisposeJob=function(X){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.RV(this.rootElement.pageDisposeJobs,X)};
_.H.removePageDisposeJob=function(X){this.rootElement.pageDisposeJobs&&_.vY(this.rootElement.pageDisposeJobs,X)};
_.H.dispatchEvent=function(X,t){_.Yt(this.rootElement,X,t)};
_.H.provideRenderingData=function(X,t){this.rootElement.provideRenderingData(X,t)};
_.H.scrollWatchTo=function(X,t){var G;(G=this.watchScrollManager)==null||G.scrollWatchTo(X,t)};
_.H.focusOnPlayer=function(){var X=this.getElement("PLAYER");_.V8(X,function(){if(X&&X.firstElementChild){var t=X.querySelector(".html5-video-player");t&&(_.gb(_.gw().resolve(_.xI)),t.focus())}else _.Mj(Error("zo"))})};
_.H.updateCinematicFullscreenConfig=function(){var X=!!this.rootElement.theater,t=!!this.rootElement.fullscreen,G;(G=this.watchCinematicManager)==null||_.OX(G,t,X)};
_.H.subscribeToActiveChanged=function(X,t){t=t===void 0?!0:t;var G=_.rz(_.dV(),mlx,function(y){X(y)});
t&&X(mlx(_.dV().getState()));return G};
_.H.isActive=function(){return mlx(_.dV().getState())};
_.H.onAttached=function(){var X=_.A("external_fullscreen");_.A("use_unified_flag_accessor")&&(X=_.gw().resolve(_.xRa).retriever.getFlag(_.yWe));(X||_.X3("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.H.initPersistentModules=function(){if(_.A("kevlar_watch_flexy_theater_manager")){var X=new _.VcY(this);_.h6(this,X)}X=new _.xBk(this);_.h6(this,X);X=new _.ZD(this);_.h6(this,X);X=new _.WE(this);_.h6(this,X);X=new _.Swk(this);_.h6(this,X);X=new _.C2(this);_.h6(this,X);_.A("kevlar_watch_flexy_playlist_manager")&&(X=new _.qw1(this),_.h6(this,X))};
_.H.initOrDisposeActiveModules=function(X){X?(this.watchScrollManager=new _.p2(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.nTi(this)),this.activeModules.push(new _.etg(this)),this.activeModules.push(new _.IAk(this)),this.activeModules.push(new _.cE(this)),_.A("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.TNj(this)),this.activeModules.push(new _.jHM(this)),_.A("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.cKt(this)),
_.A("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.q6_(this)),_.A("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.QYt(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.A("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.AKN(this)),_.A("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.axW(this)),X=_.A("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.A("kevlar_watch_flexy_comments_manager")&&!X&&this.activeModules.push(new _.mBY(this)),_.A("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.qu(this)),this.activeModules.push(new _.Tqt(this)),this.activeModules.push(new _.bDj(this)),_.A("web_enable_timely_actions")&&this.activeModules.push(new _.DBx(this)),_.A("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.LNj(this)),_.A("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ptg(this)),
_.A("web_fullscreen_components")&&this.activeModules.push(new _.DxN(this)),_.A("web_player_rtr_ctrls")&&this.activeModules.push(new _.aY_(this))):(_.bf(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.H.disposeInternal=function(){_.Au.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ke.Object.defineProperties(vbM.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var aoB={},loW=["learning-journey-engagement-panel","PAlearning_chat"];
aoB.YtdLearningJourneyWatchBehavior=[_.v.YtRendererBehavior,_.n8.YtPlayerListenerBehavior,_.YZ.YtRendererstamperBehavior,_.sb.YtActionHandlerBehavior,_.Sv.YtPageBehavior,_.pv.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 _.X3("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.A("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 _.X3("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 _.A("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.A("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 _.At("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.At("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!_.A("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.A("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 _.A("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("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 _.A("web_watch_rounded_player_large")||_.A("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 _.A("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.A("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("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 _.A("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.A("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:_.yU(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.yU(["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 X=this;this.watchController=void 0;this.pageDisposeJobs=[function(){X.showMetadataPlaceholder_()},
function(){_.A("web_watch_dont_clear_comments")||X.clearComments_()},
function(){X.clearPlayerAds_()},
function(){X.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;_.A("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.A("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.gbB(function(){return _.YW(X)},this.hostElement);
this.pageDisposeJobs.push(function(){X.youThereManager_.reset()});
_.A("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){X.resetFullerscreenEduButtonForNewPlayback_()}));
_.A("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Zb;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;_.A("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.A("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));_.A("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ik(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(X){X&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:X}),X.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(X){_.A("kevlar_watch_flexy_theater_manager")&&(this.theater=X,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.A("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(X){!_.A("kevlar_watch_while_v2")&&!_.A("web_watch_pip")||X||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(X){this.active!==void 0&&(this.fullscreen=X,_.A("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(X){this.active!==void 0&&(_.Yt(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.A("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.A("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(X>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(X){this.initCsi_();this.updatePageData_(X)},
updatePageData_:function(X){var t=this;if(X)if(this.data===X){this.onPageLoadWithSameData_();var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)}else this.data=X;this.playlist&&_.vP({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.ls("nw");this.loading=!1;_.PO(_.vz,function(){t.initDclkstatus_();var y,w=((y=t.player)==null?void 0:y.getVideoData().cpn)||"";_.y6t(function(z,B){_.fUr(z,B,w)})})},
onPageLoadWithSameData_:function(){_.A("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 X=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!X);this.set("loadingData.playlistLoading",X&&X!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),X=this.watchNextSkeletonEl_.firstElementChild;X;)X.classList.remove("hidden"),X=X.nextElementSibling;var t,G,y;X=(t=this.loadingData)==null?void 0:(G=t.endpoint)==null?void 0:(y=G.watchEndpoint)==null?void 0:y.videoId;var w;X&&(w="https://i.ytimg.com/vi/"+X+"/frame0.jpg");_.Sm(this.hostElement).querySelector("#player").style.backgroundImage=w?"url("+w+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var X=_.Sm(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&X&&(X.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var t,G;(G=(t=this.watchMetadata).updateSentimentBarWidth)==
null||G.call(t);var y,w;(w=(y=this.watchMetadata).resize)==null||w.call(y)}_.Sm(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(X){var t=_.Sm(this.hostElement).querySelector(X);t?_.Ti(t,!1):_.Mj(new _.NJ("Overscroll monitor not found for component: ",X))},
removeSplitScrollMouseTrap:function(X){var t=_.Sm(this.hostElement).querySelector(X);t?_.AE(t):_.Mj(new _.NJ("Disposal component for  overscroll monitoring not found: ",X))},
onLoadingChanged_:function(X){X?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(X){var t=this;X?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.vz.addLowPriorityJob(function(){t.onWindowResized_(_.Py(!0))})},
updateTheaterModeState_:function(X){if(!_.A("kevlar_watch_flexy_theater_manager")){X=X||this.fullWindowMode_;if(this.theater!==void 0||X)this.theater=X;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();X&&_.jni()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var X=this.theater;_.A("external_fullscreen")&&this.fullscreen&&(X=!0);X=X?_.Sm(this.hostElement).querySelector("#player-full-bleed-container"):_.Sm(this.hostElement).querySelector("#player-container-inner");var t=this.getPlayerContainer(),G=_.A("kevlar_watch_while_v2")||_.A("web_watch_pip");t.parentElement!==X&&(G&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.YW(this).appendTo(X,t),X.appendChild(_.Sm(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var X=this;return _.n(function(t){if(t.nextAddress==1)return t.yield(_.gw().resolve(_.G2).deactivate(),2);X.updatePlayerLocation();_.W$(t)})},
updateCinematicsLocation:function(){var X=this.getElement("CINEMATICS");if(X){var t=this.getCinematicsLocationContainer();X.parentElement!==t&&t.appendChild(X);var G;(G=this.watchController)==null||G.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Sm(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Sm(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(X,t){var G=document.documentElement.hasAttribute("dark"),y=G&&_.A("web_cinematic_theater_mode"),w=G&&_.A("web_cinematic_fullscreen");G=!G&&this.cinematicLightTheme;return X&&y||t&&w||(t||X)&&G},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var X;(X=this.watchController)==null||X.setWatchNextResponse(this.data);_.A("kevlar_watch_flexy_comments_manager")||this.initComments_();_.A("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.gw().resolve(_.Gm).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.A("web_watch_start_chat_in_theater_mode")){var t,
G,y;if((t=this.data)==null?0:(G=t.contents)==null?0:(y=G.twoColumnWatchNextResults)==null?0:y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var w,z;((w=this.data)==null?0:(z=w.contents)==null?0:z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(X){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData);X&&X.playabilityStatus&&(t=this.isVideoPlayable_(X.playabilityStatus,this.getPlayerOverlays_(this.data)),X=this.isLiveStreamOffline_(X.playabilityStatus),t&&!X||_.V8(this,function(){_.ls("pbu")}));
this.setPlayerAds_();_.D0(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(X){_.dV().dispatch(_.Dl({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));X?this.activate_():this.deactivate_()},
attached:function(){var X=this;this.watchController=new vbM(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.A("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var t=_.YW(this);_.A("kevlar_disable_prepare_player")||t.preparePlayer();_.A("kevlar_watch_flexy_playlist_manager")||_.gw().resolve(_.Gm).setPlayer(t);this.updatePageMediaQueries();t={"--ytd-watch-flexy-scrollbar-width":_.$R()+
"px"};!_.At("kv_pl_mx_sz_ks")&&_.At("kevlar_watch_max_player_width")&&(t["--ytd-watch-flexy-max-player-width-wide-screen"]=_.fDR+"px");_.At("kevlar_watch_flexy_metadata_height")&&(t["--ytd-watch-flexy-space-below-player"]=_.MER+"px");this.safeUpdateStyles(t);_.A("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new LWg(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return X.onPlayerTouchPanDown_()}}));
_.A("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Sm(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var X=_.$R(),t=_.Wg+X,G=t;this.fixedPanels&&(t+=_.xuR);var y=657+X;X=1327+X;_.Sm(this.hostElement).querySelector("#two-column-query").query="(min-width: "+t+"px)";_.Sm(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(y+"px), (min-height: 630px) and (min-width: ")+(t+"px) and (max-width: ")+(X+"px)");_.Sm(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(X+"px)");
_.Sm(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+G+"px)"},
calculateCurrentPlayerSize_:function(){var X=_.Sm(this.hostElement).querySelector("#miniplayer-bar").firstChild;return X&&X.active||this.theater||_.A("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.IH(NaN,NaN):_.UX(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.UX(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Vs(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var X=this;this.onWindowResized_(_.Py());_.A("browse_skeleton_removal_on_watch_killswitch")||_.X3("IS_SHELL_LOAD")&&_.z5V();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var t=_.YW(this);t.addEventListener("yt-player-updated",_.Ik(this,this.onPlayerUpdated_));t.getPlayerPromise().then(function(G){X.playerApiReady_(G)});
_.A("kevlar_watch_flexy_playlist_manager")||(t=_.gw().resolve(_.Gm),_.A("kevlar_watch_observe_playlist_navigations_killswitch")&&t.addEventListener("yt-navigate",_.Ik(this,this.onYtNavigate_)),t.setPlaylistComponent(_.Sm(this.hostElement).querySelector("#playlist")),t.addEventListener("yt-playlist-data-updated",_.Ik(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.vz.addLowPriorityJob(function(){_.Yt(X.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.YW(this).removeEventListener("yt-player-updated",_.Ik(this,this.onPlayerUpdated_));if(!_.A("kevlar_watch_flexy_playlist_manager")){var X=_.gw().resolve(_.Gm);_.A("kevlar_watch_observe_playlist_navigations_killswitch")&&X.removeEventListener("yt-navigate",_.Ik(this,this.onYtNavigate_));X.cancelVideoSkip();X.removeEventListener("yt-playlist-data-updated",_.Ik(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.A("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Yt(this.hostElement,"yt-autonav-pause-player",!1);X=_.gk();_.A("kevlar_exit_fullscreen_leaving_watch")&&X&&_.Fi(X)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(X){this.player&&this.player.updateVideoData({rvs:X.rvs})},
getPageContents:function(X){return X&&X.contents&&X.contents.twoColumnWatchNextResults&&X.contents.twoColumnWatchNextResults.results&&X.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(X){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",X)},
onRetrieveLocation_:function(X,t){t.hasComments?t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):t.locationRetrieved("/related_ajax",void 0);X.stopPropagation()},
onSubscriptionChanged_:function(X,t){this.player&&(t?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Dq("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Sm(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Sm(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(X){this.player=X;this.setPlayerState(X.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.A("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.A("kevlar_unified_player")||_.A("kevlar_player_new_bootstrap_adoption"))&&_.Ji()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(X,t){t=t===void 0?!0:t;_.gk()&&_.A("external_fullscreen")&&_.Fi(document.documentElement);this.theaterRequested_=X;t&&_.Iu("wide",X?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.A("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.sl(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Yt(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(X){_.XE(X,typeof this.player),this.player&&_.XE(X,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var X;((X=this.player)==null?0:X.isFullscreen())?this.player.toggleFullscreen():_.sl(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(X,t){return this.loading?t:!!Object.keys(X).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(X){if(X){X=_.J(X);for(var t=X.next();!t.done;t=X.next())t=t.value,t.youThereRenderer&&_.A6W(this.youThereManager_,t.youThereRenderer)}},
setPlaylistData_:function(X){return X||{}},
userEngagementConfigDataChanged_:function(X){if(X)if(X.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var t=this.youThereManager_;_.T5()<X.lowEngagementThresholdMs||_.SFY(t,!0)}else X.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.sl(this.hostElement,"yt-autonav-pause-user-engagement",[X])},
isPlayerUnavailable_:function(X,t,G){return!!X&&!this.isVideoPlayable_(X,G)&&!t},
getPlayerOverlays_:function(X){return(X==null?void 0:X.playerOverlays)||null},
isVideoPlayable_:function(X,t){if(!X)return!1;var G=X.status==="OK"||X.status==="LIVE_STREAM_OFFLINE",y=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",X)||this.get("errorScreen.ypcTrailerRenderer",X);X=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",X);var w;t=t==null?void 0:(w=t.playerOverlayRenderer)==null?void 0:w.gatedActionsOverlayRenderer;return!!G||!!y||!!X||!!t},
hasWatchNextResponseErrorRenderer:function(X){var t=this.getPageContents(X),G,y,w,z,B;return!(X==null?0:(G=X.contents)==null?0:(y=G.twoColumnWatchNextResults)==null?0:y.secondaryResults)&&!!((w=t[0])==null?0:(z=w.itemSectionRenderer)==null?0:(B=z.contents[0])==null?0:B.backgroundPromoRenderer)},
isLiveStreamOffline_:function(X){return X?X.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(X,t,G){var y=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t),w=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];w=_.A("web_no_skip_video_on_verification_checks")?(X==null?void 0:X.status)&&w.includes(X.status):X&&X.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",X);z==void 0&&(z=!0);!G||this.isVideoPlayable_(X,this.getPlayerOverlays_(t))||
y||w||!z||_.gw().resolve(_.Gm).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.BT1()},
onPlayerFeedbackStartRequest_:function(X){_.sl(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:X}])},
onPlayerFeedbackArticleRequest_:function(X){_.sl(this.hostElement,"yt-help-dialog-requested",[X])},
onPlayerYpcContentRequest_:function(){var X,t,G,y,w,z,B,V,b=((X=this.data)==null?NaN:(t=X.contents)==null?NaN:(G=t.twoColumnWatchNextResults)==null?NaN:(y=G.secondaryResults)==null?NaN:(w=y.secondaryResults)==null?NaN:(z=w.offerModule)==null?NaN:(B=z.tvfilmOfferModuleRenderer)==null?NaN:(V=B.actionButtons)==null?NaN:V.length)-1;X=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];t=_.J(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(G=t.next();!G.done;G=t.next())for(G=G.value,y=_.J(X),w=y.next();!w.done;w=y.next())if(w="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+G+w.value,w=this.get(w+"navigationEndpoint",this.data)||this.get(w+"serviceEndpoint",this.data)||this.get(w+"command",this.data)){_.cj(w,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(X){_.Yt(this.hostElement,"yt-autonav-pause-player",X)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(X){X()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(X){switch(X){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(X){switch(X){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Yt(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(X)},
setPlayerState:function(X){_.dV().dispatch(_.kHo(X))},
onPlayerSubscribe_:function(X){_.sl(this.hostElement,"yt-player-subscribe",[X])},
onPlayerUnsubscribe_:function(X){_.sl(this.hostElement,"yt-player-unsubscribe",[X])},
onPlayerAdYtShowToast_:function(X){_.sl(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:X.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(X){if(X)return X},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(X){return!_.A("web_watch_move_summary_to_sd")&&!!X},
computeWatchMetadataRefresh:function(){return _.A("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var X,t,G,y;this.watchNextSecondaryResults=(X=this.data)==null?void 0:(t=X.contents)==null?void 0:(G=t.twoColumnWatchNextResults)==null?void 0:(y=G.secondaryResults)==null?void 0:y.secondaryResults}},
setRichGridRendererData:function(X){this.richGridRendererData=X},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var X,t=(X=this.data)==null?void 0:X.engagementPanels;if(t==null?0:t.length){X=null;t=_.J(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;var y=void 0;if(((y=G.engagementPanelSectionListRenderer)==null?void 0:y.targetId)==="engagement-panel-structured-description"){X=G;break}}var w,z,B;X=(w=X)==null?void 0:(z=w.engagementPanelSectionListRenderer)==null?void 0:(B=z.content)==null?void 0:B.structuredDescriptionContentRenderer;if(X==null?0:X.items){w=
[];z=_.J(X.items);for(B=z.next();!B.done;B=z.next()){B=B.value;if(!_.A("sd_horizontal_list_show_nav_killswitch")){var V=y=G=t=X=void 0,b=void 0,e=(X=B.horizontalCardListRenderer)==null?void 0:(t=X.header)==null?void 0:(G=t.richListHeaderRenderer)==null?void 0:(y=G.navigationButton)==null?void 0:(V=y.buttonRenderer)==null?void 0:(b=V.command)==null?void 0:b.commandExecutorCommand;e&&e.commands&&(e.commands=e.commands.filter(function(g){return!_.Y(g,_.b2Q)}))}B.expandableVideoDescriptionBodyRenderer||
B.videoDescriptionHeaderRenderer||w.push(B)}return{items:w}}}},
constructWarning_:function(X){return{text:_.Vl(X),type:"WARNING"}},
isPlaShelfEnabled_:function(X){if((this.get("adPlacements",X)||[]).length)return!0;X=this.get("playerAds",X)||[];return!(!X.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",X[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var X=this;_.Yt(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.A("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var t=this.getScrollTop()>0;this.gestures_&&(t?this.gestures_.detach():this.gestures_.attach());t!==this.showFullerscreenEdu_&&_.A("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=t,_.YW(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonVisibility(X.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Yt(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var X=this;this.commentsReady=!1;_.vz.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.PO(_.vz,function(){X.setComments_()},1E3)},
setComments_:function(){if(!_.A("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.ls("cmi");_.vz.cancelJob(this.setCommentsJobId_);var X=this.getPageContents(this.data);if(X&&X.length){X=_.J(X);for(var t=X.next();!t.done;t=X.next())if(t=t.value,this.get("itemSectionRenderer.sectionIdentifier",t)==="comment-item-section"){this.comments=t.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Yt(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.A("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.A("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.ls("cmc")},
doRemoveComments_:function(){this.comments={};_.A("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.vz.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.vz.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(X,t){var G=_.Y(t.endpoint,_.nq);G&&(!(t=this.get("data.currentVideoEndpoint.watchEndpoint"))||G.videoId!==t.videoId||G.playlistId&&G.playlistId!==t.playlistId||G.index!==void 0&&G.index!==t.index||typeof G.startTimeSeconds!=="number"||(X.stopPropagation(),this.setScrollTop(0),_.YW(this).getPlayerPromise().then(function(y){var w=G.startTimeSeconds;y.seekTo(w);y.wakeUpControls();w<y.getDuration()&&y.playVideo()})))},
updatePlayerStartTime_:function(){var X=_.aAi();"t"in X&&(X=_.J6N(X.t),this.player.seekTo(X,!0))},
updateTitleFromWatchNext:function(X){X=this.getPageContents(X);var t,G;(X=_.bu(X==null?void 0:(t=X[0])==null?void 0:(G=t.videoPrimaryInfoRenderer)==null?void 0:G.title))&&_.Yt(this.hostElement,"yt-update-title",X)},
updateTitle_:function(X){X=this.get("videoDetails.title",X)||"";_.Yt(this.hostElement,"yt-update-title",X)},
syncWithRemoteVideo_:function(X,t,G){if(this.active&&this.player){var y=this.player.getVideoData();if(y.video_id===G&&(G=y.list,_.A("polymer_enable_mdx_queue")&&G&&G.startsWith("RQ")&&(G=void 0),y.video_id!==X||G!=t)){var w;_.A("kevlar_player_watch_endpoint_navigation")?w=_.cxG(_.wpY(X,t)):w=this.buildWatchEndpoint_(X,t);_.Yt(this.hostElement,"yt-navigate",{endpoint:w,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(X,t,G){return _.TG(X,t,G)},
initDclkstatus_:function(){_.ob_()},
attachWatchPageSkeleton_:function(){var X=document.querySelector("#watch-page-skeleton");if(X){var t=X.querySelector("#primary-info"),G=X.querySelector("#secondary-info"),y=X.querySelector("#related");t&&_.Sm(this.hostElement).querySelector("#info-skeleton").appendChild(t);G&&_.Sm(this.hostElement).querySelector("#meta-skeleton").appendChild(G);y&&(_.Sm(this.hostElement).querySelector("#related-skeleton").appendChild(y),this.watchNextSkeletonEl_=y);_.uf(X)}},
handlePlayerUpdated_:function(){_.YW(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(X,t){if(this.watchNextSkeletonEl_&&typeof t!=="undefined"){var G=this.watchNextSkeletonEl_.children,y=X&&X.indexSplices.length?X.indexSplices[0].index:0;X=Math.min(this.watchNextShownItems.length,G.length);t||(y=0,X=G.length);for(t=y;t<X;t++)G[t].classList.add("hidden")}},
onPlayerFullscreenChange_:function(X){_.A("external_fullscreen")||_.sl(this.hostElement,"yt-player-fullscreen",[X.fullscreen])},
onFullscreenChange_:function(X){this.fullscreen=X;this.gestures_&&this.gestures_.update(this.fullscreen);var t=_.YW(this);t.getPlayerPromise().then(function(G){G.setFauxFullscreen(!!_.gk())});
this.updateFullBleedElementLocations();X&&(t.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(X,t){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!t},
computeIsDonationShelfCollapsed_:function(X){return X},
computeShouldShowMerchShelf:function(X,t){return t&&!!X},
computeResponseHasComments:function(X){var t,G,y,w,z;return!!(X==null?0:(t=X.contents)==null?0:(G=t.twoColumnWatchNextResults)==null?0:(y=G.results)==null?0:(w=y.results)==null?0:(z=w.contents)==null?0:z.some(function(B){var V;return(B==null?void 0:(V=B.itemSectionRenderer)==null?void 0:V.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(X,t){this.responseHasComments=this.computeResponseHasComments(this.data);return!!X&&!!Object.keys(X).length&&!t},
identity:_.Nw,onWindowResized_:function(X){this.windowSize_=X;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.A("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.A("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(X){var t=this;X&&X.type!=="dataloaded"&&X.type!=="dataupdated"||_.YW(this).getPlayerPromise().then(function(G){var y=G.getPlayerState();y!==5&&y!==0&&(G=1/G.getVideoAspectRatio(),t.videoHeightToWidthRatio_!==G&&(t.videoHeightToWidthRatio_=G))})},
schedulePlayerSizeUpdate_:function(X){var t=this,G=_.A("kevlar_watch_while_v2")||_.A("web_watch_pip"),y=function(){if(t.watchMetadata){var w,z;(z=(w=t.watchMetadata).resize)==null||z.call(w)}_.YW(t).getPlayerPromise().then(function(B){if(_.A("kevlar_set_internal_player_size")){if(!G||!t.isMiniplayerActive()){var V=t.calculateCurrentPlayerSize_();B.setInternalSize(V.width,V.height)}}else B.setSize(NaN,NaN);_.A("kevlar_watch_while")&&t.updateWatchWhileScrollThreshold_()})};
X?y():_.f5(_.vz,y)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(X){this.set("data.survey",X.detail)},
onYtShowSurveyCommand_:function(X){this.set("data.survey",_.Y(X,_.j0_).survey)},
onDownloadedVideoDeleted:function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1){if(!t.active||(G=t.playerData)==null||!G.offlineState||t.videoId!==X)return w.return();(y=t.player)==null||y.stopVideo();_.cF().navigatingAwayFromWatchDeletedVideo=!0;_.cj(_.zn_,t.hostElement);return w.yield(_.cF().navigationFinishPromise,2)}_.cF().navigatingAwayFromWatchDeletedVideo=!1;_.W$(w)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var X;this.theater?X=_.MM(.5625*this.windowSize_.width,480,this.windowSize_.height-185):X=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==X&&(this.watchWhileScrollThreshold_=X,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var X=_.Sm(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&X){var t=this.windowSize_.height>=624,G=this.active?this.getScrollTop():0;!X.active&&t&&G>=this.watchWhileScrollThreshold_?(X.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):X.active&&(!t||G<this.watchWhileScrollThreshold_&&!_.gk())&&(X.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(X,t){if(X!==!0||t!==void 0){X=!_.A("live_chat_over_engagement_panels");t=_.Sm(this.hostElement).querySelector("#chat-container");var G=_.Sm(this.hostElement).querySelector("#plj-sidebar"),y=_.Sm(this.hostElement).querySelector("#panels"),w=_.Sm(this.hostElement).querySelector("#plj-panels"),z=_.Sm(this.hostElement).querySelector("#plj-playlist"),B=_.Sm(this.hostElement).querySelector("#alerts"),V=_.Sm(this.hostElement).querySelector("#playlist"),b=_.Sm(this.hostElement).querySelector("#related"),
e=_.Sm(this.hostElement).querySelector("#donation-shelf"),g=_.Sm(this.hostElement).querySelector("#comments");this.isTwoColumns_?(B=_.Sm(this.hostElement).querySelector("#secondary-inner"),B.appendChild(G),G.appendChild(z),z.appendChild(V),G.appendChild(w),X&&B.appendChild(y),_.A("web_watch_theater_chat")||B.appendChild(t),X||B.appendChild(y),B.appendChild(e),B.appendChild(b)):(X&&_.xo(y,B),_.xo(V,B),_.A("web_watch_theater_chat")||_.xo(t,B),X||_.xo(y,B),_.xo(e,B),g&&(w&&_.xo(w,g),_.xo(b,g)));_.A("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.A("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.A("web_watch_theater_chat")){var X=_.Sm(this.hostElement).querySelector("#chat-container"),t=this.theater&&!this.fullscreen||_.A("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&t?_.A("web_watch_theater_chat_beside_player")?(t=_.Sm(this.hostElement).querySelector("#panels-full-bleed-container"),(X==null?void 0:X.parentElement)!==t&&t.append(X),this.panelsBesidePlayer=!0):_.A("web_watch_theater_fixed_chat")&&
(t=_.Sm(this.hostElement).querySelector("#columns"),(X==null?void 0:X.parentElement)!==t&&t.append(X),this.fixedPanels=!0):(_.A("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.A("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),t=_.Sm(this.hostElement).querySelector("#playlist"),X&&t?_.fN(X,t):_.Mj(new _.NJ("Missing element when updating chat location",{"chatContainer defined":!!X,"playlist defined":!!t})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(X,t){return _.A("sw_metadata_vis_toggle_ks")?!0:!!X||!!t},
computeForceDarkPanelTheme:function(X){return _.A("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&X:!1},
safeUpdateStyles:function(X){try{_.Kd(this.hostElement,X)}catch(t){_.Mj(t)}},
videoHeightToWidthRatioChanged_:function(X,t){t&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.A("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(X){this.videoHeightToWidthRatio_=1/X},
computeIsVerticalVideo_:function(X){return X>=1},
computeIsFourThreeToSixteenNineVideo_:function(X){return X<=.7501&&X>=.5624},
computeIsExtraWideVideo_:function(X){return X<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.YW(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.YW(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.hBN(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(X){var t=_.O2(X)||0;_.Ku(X,t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var X=_.O2("yt-fullerscreen-edu-button-click-count")||0,t=_.O2("yt-fullerscreen-edu-button-shown-count")||0,G=_.At("external_fullscreen_button_shown_threshold"),y=X>=_.At("external_fullscreen_button_click_threshold")||t>=G;_.YW(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonSubtleModeState(y)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(X,t){return t},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.gw().resolve(_.Gm).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var X=this;this.panelMaxHeightUpdateJob_&&_.vz.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.vz.addLowPriorityJob(function(){X.panelMaxHeightUpdateJob_=0;var t;!X.isTwoColumns_||X.theater||X.fullscreen?t=460:t=X.calculateNormalPlayerSize_().height;var G=t+"px";_.A("live_chat_taller_height")&&!X.theater&&(G="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.A("live_chat_medium_height")&&
!X.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.A("live_chat_scaled_height")&&!X.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 238px)");X.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":t+"px","--ytd-watch-flexy-chat-max-height":G,"--ytd-watch-flexy-structured-description-max-height":t+"px","--ytd-watch-flexy-comments-panel-max-height":t+"px","--ytd-comments-engagement-panel-content-height":t+"px"})})},
onYtShowEngagementPanelScrimAction_:function(X){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",X)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Z0(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(X){var t=_.Sm(this.hostElement).querySelector("#engagement-panel-scrim");X?t.addEventListener("tap",_.Ik(this,this.onEngagementPanelScrimClick_)):t.removeEventListener("tap",_.Ik(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(X){if(this.hostElement.contains(X)&&!this.scrollToAnimation_.isAnimating()){var t=X.offsetTop-24;X=X.offsetTop+X.offsetHeight+24;var G=this.getPageScrollingElement(),y=this.getScrollTop(),w=y+G.clientHeight-56;if(t<y+56)t-=56;else if(X>w)t=X-G.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtSignalActionScrollToComments:function(){var X=this.hostElement.querySelector("#comments");if(X&&!this.scrollToAnimation_.isAnimating()){X=X.offsetTop-56-24;if(_.A("kevlar_comment_teaser_scroll_to_midpoint")&&(X-=_.W1().height/3,X<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,X),500)}},
onYtEngagementPanelVisibleChanged:function(X,t,G){this.active&&this.trackEngagementPanelVisibility&&!_.dlt.includes(G)&&(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(G),t!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&t!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(G),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(X){return X?"":"watch-active-metadata"},
computeNewMetadataClass:function(X){return X?"watch-active-metadata":""},
computeFullBleedPlayer:function(X,t){return X||t},
computeDefaultLayout:function(X){return!X},
computeDefaultTwoColumnLayout:function(X,t){return!X&&t},
computeWatchWhilePanelsActive:function(X,t){return X||t},
computeNoBorderOnChat:function(X){return _.A("web_watch_theater_chat_no_border")&&X},
computeLiveChatPresentAndExpanded:function(X,t){return X&&!t},
computePanelExpanded:function(X,t,G){return X||t||G},
onChangeMarkersVisibility:function(X){_.YW(this).getPlayerPromise().then(function(t){var G;(G=t.changeMarkerVisibility)==null||G.call(t,_.Y(X,_.my).isVisible||!1,_.Y(X,_.my).entityKeys||[],_.Y(X,_.my).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(X){this.liveChatCollapsed=X.detail;_.dV().dispatch(_.klY(X.detail))},
provideRenderingData:function(X,t){switch(X){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=t;break;case "PRIMARY_INFO":_.A("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=t);this.videoPrimaryInfoRendererValue=t==null?void 0:t.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.A("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=t);this.videoSecondaryInfoRendererValue=t==null?void 0:t.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
t;break;case "CLARIFICATION":this.clarifyBoxValue=t;break;case "LIVE_CHAT":this.conversationBar=t;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=t;break;case "PLAYLIST":this.externalPlaylistData_=t!=null?t:{};break;case "MERCH_SHELF":this.merchShelfValue=t==null?void 0:t.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=t;break;case "OFFER_MODULE":this.offerModule=t;break;case "LIMITED_STATE":this.limitedStateValue=t;break;case "DONATION_SHELF":this.donation=t;break;
case "ALERTS":this.alertsValue=t;break;case "COMMENTS":this.comments=t;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=t;break;case "ENGAGEMENT_PANELS":this.engagementPanels=t;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=t;break;case "RICH_GRID_RENDERER":this.richGridRendererData=t;break;case "EXPANDABLE_METADATA":this.expandableMetadata=t;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=t}},
toggleCinematicsActive:function(X){this.cinematicsActive=X},
isMiniplayerActive:function(){return _.gw().resolve(_.G2).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(X){return loW.map(function(t){return X.find(function(G){var y;return(G==null?void 0:(y=G.engagementPanelSectionListRenderer)==null?void 0:y.targetId)===t})}).filter(function(t){return t!==void 0})},
getNonLearningJourneyEngagementPanels:function(X){return X.filter(function(t){var G;return!loW.includes((t==null?void 0:(G=t.engagementPanelSectionListRenderer)==null?void 0:G.targetId)||"")})}}];var xlt;var Mu=function(){var X=_.O.apply(this,arguments)||this;X.flexy=!0;X.learningJourney=!0;X.roundedInfoPanel=!0;X.viewTransitionEnabled=_.A("enable_player_resize_transition");X.smallerChatMinHeight=_.A("live_chat_smaller_min_height");X.cinematicTheaterMode=_.A("web_cinematic_theater_mode");X.transparentTheaterMode=_.A("web_transparent_theater_mode");X.cinematicFullscreen=_.A("web_cinematic_fullscreen");X.useLargerMaxPlayerValue=_.A("kevlar_flexy_use_larger_player_value");X.cinematicFullscreenV2=_.A("web_cinematic_fullscreen_v2");
X.isDarkTheme=document.documentElement.hasAttribute("dark");X.theaterLargerPlayer=_.A("web_watch_theater_larger_player");X.defaultCollapsePlaylist=_.A("web_watch_default_collapse_playlist");return X};
_.S(Mu,_.O);_.H=Mu.prototype;_.H.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.H.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.H.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.H.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.H.ready=function(){var X=this,t=function(){X.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.H.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.H.updateIsTwoColumnsFromBinding=function(X){_.A("web_watch_update_narrow_width_killswitch")||_.dV().dispatch(_.H2i(!X.detail.value));this.ytdWatchBehavior.isTwoColumns_=X.detail.value};
_.H.updateFlexySmallWindowFromBinding=function(X){this.ytdWatchBehavior.flexySmallWindow_=X.detail.value};
_.H.updateFlexyLargeWindowFromBinding=function(X){this.ytdWatchBehavior.flexyLargeWindow_=X.detail.value};
_.H.updateWatchWhileWindowSizeSufficientFromBinding=function(X){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=X.detail.value};
_.H.updateWatchNextCanShowMoreFromBinding=function(X){this.ytdWatchBehavior.watchNextCanShowMore=X.detail.value};
_.H.updateShownItemsFromBinding=function(X){X.detail.path?this.set(X.detail.path,X.detail.value):this.ytdWatchBehavior.watchNextShownItems=X.detail.value};
_.H.getElement=function(X){switch(X){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22842_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22842_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ke.Object.defineProperties(Mu.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(X=_.Y(this.data.pageVisualEffects[t],_.AU))return t=void 0,(t=X.config)==null?void 0:t.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.learningJourneyEngagementPanels)==null?void 0:X.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var X,t=(X=this.learningJourneyEngagementPanels)==null?void 0:X.find(function(T){var D;return(T==null?void 0:(D=T.engagementPanelSectionListRenderer)==null?void 0:D.panelIdentifier)==="learning-journey-engagement-panel"});
if(t){var G,y,w,z,B,V,b,e,g;if(X=(e=((b=(B=((z=t==null?void 0:(G=t.engagementPanelSectionListRenderer)==null?void 0:(y=G.content)==null?void 0:(w=y.sectionListRenderer)==null?void 0:w.contents)!=null?z:[])[0])==null?void 0:(V=B.itemSectionRenderer)==null?void 0:V.contents)!=null?b:[])[0])==null?void 0:(g=e.accordionViewModel)==null?void 0:g.onTitleTap){var F=_.wr(X);if(F)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Wj.instance.resolveCommand(F)}}}}}}});
_.ke.Object.defineProperties(Mu,{template:{configurable:!0,enumerable:!0,get:function(){if(xlt===void 0){var X=document.createElement("template");_.Z(X,'\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="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);xlt=X}X=xlt;return X}}});
Mu.prototype.updateMiniplayerIsActiveValue=Mu.prototype.updateMiniplayerIsActiveValue;Mu.prototype.updateScrollTopValue=Mu.prototype.updateScrollTopValue;Mu.prototype.updateFullscreenValue=Mu.prototype.updateFullscreenValue;Mu.prototype.updateTheaterValue=Mu.prototype.updateTheaterValue;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Mu.prototype,"ytComponentBehavior",void 0);
_.E([_.q(aoB.YtdLearningJourneyWatchBehavior),_.U("design:type",Object)],Mu.prototype,"ytdWatchBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Mu.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Mu.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Mu.prototype,"playerData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"flexy",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"learningJourney",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"roundedInfoPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"viewTransitionEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"smallerChatMinHeight",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"cinematicTheaterMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"transparentTheaterMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"cinematicFullscreen",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"useLargerMaxPlayerValue",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"cinematicFullscreenV2",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mu.prototype,"theaterLargerPlayer",void 0);_.E([_.K(),_.U("design:type",Object)],Mu.prototype,"defaultCollapsePlaylist",void 0);_.E([_.K({selector:_.tS}),_.U("design:type",Object)],Mu.prototype,"theaterValue",void 0);
_.E([_.K({selector:_.Gz}),_.U("design:type",Object)],Mu.prototype,"fullscreenValue",void 0);_.E([_.K({selector:_.DC}),_.U("design:type",Object)],Mu.prototype,"scrollTopValue",void 0);_.E([_.K({selector:_.fg}),_.U("design:type",Object)],Mu.prototype,"miniplayerIsActiveValue",void 0);_.E([_.rt("#ytd-plj-player"),_.U("design:type",HTMLElement)],Mu.prototype,"ytdPlayer",void 0);_.E([_.rt("#playlist"),_.U("design:type",HTMLElement)],Mu.prototype,"JSC$22842_ytdPlaylistPanelRenderer",void 0);
_.E([_.T3("ytd-comments"),_.U("design:type",HTMLElement)],Mu.prototype,"ytdComments",void 0);_.E([_.rt("#primary"),_.U("design:type",HTMLElement)],Mu.prototype,"primary",void 0);_.E([_.rt("#secondary"),_.U("design:type",HTMLElement)],Mu.prototype,"secondary",void 0);_.E([_.rt("#player-container"),_.U("design:type",HTMLElement)],Mu.prototype,"playerContainer",void 0);_.E([_.rt("#cinematics"),_.U("design:type",HTMLElement)],Mu.prototype,"JSC$22842_cinematics",void 0);
_.E([_.cW("theaterValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mu.prototype,"updateTheaterValue",null);_.E([_.cW("fullscreenValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mu.prototype,"updateFullscreenValue",null);_.E([_.cW("scrollTopValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mu.prototype,"updateScrollTopValue",null);
_.E([_.cW("miniplayerIsActiveValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mu.prototype,"updateMiniplayerIsActiveValue",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Mu.prototype,"cinematicLightTheme",null);_.E([_.K({reflectToAttribute:!0}),_.C("learningJourneyEngagementPanels"),_.U("design:type",Object),_.U("design:paramtypes",[])],Mu.prototype,"hasLearningJourneyPanels",null);
_.E([_.C("learningJourneyEngagementPanels"),_.U("design:type",Object),_.U("design:paramtypes",[])],Mu.prototype,"backButtonData",null);_.E([_.p({is:"ytd-watch-learning-journey"})],Mu);_.h_.registerService(_.wDw,Mu);
_.Lo();
}catch(e){_._DumpException(e)}
try{
_.R0("Tm0L3c");
var r6i;var NT1;var Pfg=function(){return _.O.apply(this,arguments)||this};
_.S(Pfg,_.O);_.E([_.p({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Pfg);
_.N(Pfg,"ytd-ghost-comments-renderer",function(){if(NT1===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);NT1=X}X=NT1;return X},{mode:1});var Ebg;var Ulj=function(){return _.O.apply(this,arguments)||this};
_.S(Ulj,_.O);_.E([_.p({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Ulj);
_.N(Ulj,"ytd-ghost-watch-metadata-renderer",function(){if(Ebg===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);Ebg=X}X=Ebg;return X},{mode:1});var f2=function(){var X=_.O.apply(this,arguments)||this;X.ghostGridRenderer={rows:6};X.roundedInfoPanel=!0;X.hideOfferModules=!0;X.smallerChatMinHeight=_.A("live_chat_smaller_min_height");X.cinematicTheaterMode=_.A("web_cinematic_theater_mode");X.transparentTheaterMode=_.A("web_transparent_theater_mode");X.darkerPanels=_.A("web_watch_darker_panels");X.cinematicFullscreen=_.A("web_cinematic_fullscreen");X.cinematicFullscreenV2=_.A("web_cinematic_fullscreen_v2");X.isDarkTheme=document.documentElement.hasAttribute("dark");
return X};
_.S(f2,_.O);_.H=f2.prototype;_.H.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.H.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.H.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.H.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.H.ready=function(){var X=this,t=function(){X.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.H.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.H.updateIsTwoColumnsFromBinding=function(X){this.ytdWatchBehavior.isTwoColumns_=X.detail.value};
_.H.updateFlexySmallWindowFromBinding=function(X){this.ytdWatchBehavior.flexySmallWindow_=X.detail.value};
_.H.updateFlexyLargeWindowFromBinding=function(X){this.ytdWatchBehavior.flexyLargeWindow_=X.detail.value};
_.H.updateWatchWhileWindowSizeSufficientFromBinding=function(X){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=X.detail.value};
_.H.updateWatchNextCanShowMoreFromBinding=function(X){this.ytdWatchBehavior.watchNextCanShowMore=X.detail.value};
_.H.updateShownItemsFromBinding=function(X){_.A("swatcheroo_direct_use_rich_grid")||(X.detail.path?this.set(X.detail.path,X.detail.value):this.ytdWatchBehavior.watchNextShownItems=X.detail.value)};
_.H.getElement=function(X){switch(X){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22830_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22830_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ke.Object.defineProperties(f2.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(X=_.Y(this.data.pageVisualEffects[t],_.AU))return t=void 0,(t=X.config)==null?void 0:t.enableInLightTheme;return!1}}});
f2.prototype.updateMiniplayerIsActiveValue=f2.prototype.updateMiniplayerIsActiveValue;f2.prototype.updateScrollTopValue=f2.prototype.updateScrollTopValue;f2.prototype.updateFullscreenValue=f2.prototype.updateFullscreenValue;f2.prototype.updateTheaterValue=f2.prototype.updateTheaterValue;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],f2.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.c6t.YtdWatchBehavior),_.U("design:type",Object)],f2.prototype,"ytdWatchBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],f2.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],f2.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],f2.prototype,"ghostGridRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],f2.prototype,"playerData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f2.prototype,"roundedInfoPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f2.prototype,"hideOfferModules",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f2.prototype,"smallerChatMinHeight",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f2.prototype,"cinematicTheaterMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f2.prototype,"transparentTheaterMode",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f2.prototype,"darkerPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f2.prototype,"cinematicFullscreen",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f2.prototype,"cinematicFullscreenV2",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f2.prototype,"isDarkTheme",void 0);_.E([_.K({selector:_.tS}),_.U("design:type",Object)],f2.prototype,"theaterValue",void 0);
_.E([_.K({selector:_.Gz}),_.U("design:type",Object)],f2.prototype,"fullscreenValue",void 0);_.E([_.K({selector:_.DC}),_.U("design:type",Object)],f2.prototype,"scrollTopValue",void 0);_.E([_.K({selector:_.fg}),_.U("design:type",Object)],f2.prototype,"miniplayerIsActiveValue",void 0);_.E([_.rt("#ytd-player"),_.U("design:type",HTMLElement)],f2.prototype,"ytdPlayer",void 0);_.E([_.rt("#playlist"),_.U("design:type",HTMLElement)],f2.prototype,"JSC$22830_ytdPlaylistPanelRenderer",void 0);
_.E([_.rt("#ytd-comments"),_.U("design:type",HTMLElement)],f2.prototype,"ytdComments",void 0);_.E([_.rt("#primary"),_.U("design:type",HTMLElement)],f2.prototype,"primary",void 0);_.E([_.rt("#secondary"),_.U("design:type",HTMLElement)],f2.prototype,"secondary",void 0);_.E([_.rt("#player-container"),_.U("design:type",HTMLElement)],f2.prototype,"playerContainer",void 0);_.E([_.rt("#cinematics"),_.U("design:type",HTMLElement)],f2.prototype,"JSC$22830_cinematics",void 0);
_.E([_.cW("theaterValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],f2.prototype,"updateTheaterValue",null);_.E([_.cW("fullscreenValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],f2.prototype,"updateFullscreenValue",null);_.E([_.cW("scrollTopValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],f2.prototype,"updateScrollTopValue",null);
_.E([_.cW("miniplayerIsActiveValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],f2.prototype,"updateMiniplayerIsActiveValue",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],f2.prototype,"cinematicLightTheme",null);
_.N(f2,"ytd-watch-grid",function(){if(r6i===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);r6i=X}X=r6i;return X},{mode:2});_.h_.registerService(_.yOY,f2);
_.Lo();
}catch(e){_._DumpException(e)}
try{
_.R0("CF909");
var ppN;var xu=function(){var X=_.O.apply(this,arguments)||this;X.flexy=!0;X.roundedInfoPanel=!0;X.viewTransitionEnabled=_.A("enable_player_resize_transition");X.smallerChatMinHeight=_.A("live_chat_smaller_min_height");X.cinematicTheaterMode=_.A("web_cinematic_theater_mode");X.transparentTheaterMode=_.A("web_transparent_theater_mode");X.cinematicFullscreen=_.A("web_cinematic_fullscreen");X.useLargerMaxPlayerValue=_.A("kevlar_flexy_use_larger_player_value");X.isDarkTheme=document.documentElement.hasAttribute("dark");
X.defaultCollapsePlaylist=_.A("web_watch_default_collapse_playlist");X.retroModeReduxValue=!1;return X};
_.S(xu,_.O);_.H=xu.prototype;_.H.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.H.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.H.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.H.updateRetroModeReduxValue=function(){_.A("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.H.ready=function(){var X=this,t=function(){X.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.H.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.H.updateIsTwoColumnsFromBinding=function(X){_.A("web_watch_update_narrow_width_killswitch")||_.dV().dispatch(_.H2i(!X.detail.value));this.ytdWatchBehavior.isTwoColumns_=X.detail.value};
_.H.updateFlexySmallWindowFromBinding=function(X){this.ytdWatchBehavior.flexySmallWindow_=X.detail.value};
_.H.updateFlexyLargeWindowFromBinding=function(X){this.ytdWatchBehavior.flexyLargeWindow_=X.detail.value};
_.H.updateWatchWhileWindowSizeSufficientFromBinding=function(X){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=X.detail.value};
_.H.updateWatchNextCanShowMoreFromBinding=function(X){this.ytdWatchBehavior.watchNextCanShowMore=X.detail.value};
_.H.updateShownItemsFromBinding=function(X){X.detail.path?this.set(X.detail.path,X.detail.value):this.ytdWatchBehavior.watchNextShownItems=X.detail.value};
_.H.getElement=function(X){switch(X){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22825_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22825_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.ke.Object.defineProperties(xu.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(X=_.Y(this.data.pageVisualEffects[t],_.AU))return t=void 0,(t=X.config)==null?void 0:t.enableInLightTheme;return!1}}});
_.ke.Object.defineProperties(xu,{template:{configurable:!0,enumerable:!0,get:function(){if(ppN===void 0){var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);ppN=X}X=ppN;return X}}});
xu.prototype.updateRetroModeReduxValue=xu.prototype.updateRetroModeReduxValue;xu.prototype.updateScrollTopValue=xu.prototype.updateScrollTopValue;xu.prototype.updateFullscreenValue=xu.prototype.updateFullscreenValue;xu.prototype.updateTheaterValue=xu.prototype.updateTheaterValue;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],xu.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.c6t.YtdWatchBehavior),_.U("design:type",Object)],xu.prototype,"ytdWatchBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],xu.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xu.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],xu.prototype,"playerData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xu.prototype,"flexy",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xu.prototype,"roundedInfoPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xu.prototype,"viewTransitionEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xu.prototype,"smallerChatMinHeight",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xu.prototype,"cinematicTheaterMode",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xu.prototype,"transparentTheaterMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xu.prototype,"cinematicFullscreen",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xu.prototype,"useLargerMaxPlayerValue",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xu.prototype,"isDarkTheme",void 0);_.E([_.K(),_.U("design:type",Object)],xu.prototype,"defaultCollapsePlaylist",void 0);
_.E([_.K({selector:_.tS}),_.U("design:type",Object)],xu.prototype,"theaterValue",void 0);_.E([_.K({selector:_.Gz}),_.U("design:type",Object)],xu.prototype,"fullscreenValue",void 0);_.E([_.K({selector:_.DC}),_.U("design:type",Object)],xu.prototype,"scrollTopValue",void 0);_.E([_.K({selector:_.fg}),_.U("design:type",Object)],xu.prototype,"miniplayerIsActive",void 0);_.E([_.K({selector:function(X){return X.watch.isWatchRetroMode}}),
_.U("design:type",Object)],xu.prototype,"retroModeReduxValue",void 0);_.E([_.T3("ytd-player"),_.U("design:type",HTMLElement)],xu.prototype,"ytdPlayer",void 0);_.E([_.rt("#playlist"),_.U("design:type",HTMLElement)],xu.prototype,"JSC$22825_ytdPlaylistPanelRenderer",void 0);_.E([_.T3("ytd-comments"),_.U("design:type",HTMLElement)],xu.prototype,"ytdComments",void 0);_.E([_.rt("#primary"),_.U("design:type",HTMLElement)],xu.prototype,"primary",void 0);
_.E([_.rt("#secondary"),_.U("design:type",HTMLElement)],xu.prototype,"secondary",void 0);_.E([_.rt("#player-container"),_.U("design:type",HTMLElement)],xu.prototype,"playerContainer",void 0);_.E([_.rt("#below"),_.U("design:type",HTMLElement)],xu.prototype,"below",void 0);_.E([_.rt("#cinematics"),_.U("design:type",HTMLElement)],xu.prototype,"JSC$22825_cinematics",void 0);
_.E([_.cW("theaterValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xu.prototype,"updateTheaterValue",null);_.E([_.cW("fullscreenValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xu.prototype,"updateFullscreenValue",null);_.E([_.cW("scrollTopValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xu.prototype,"updateScrollTopValue",null);
_.E([_.cW("retroModeReduxValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xu.prototype,"updateRetroModeReduxValue",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],xu.prototype,"cinematicLightTheme",null);_.E([_.p({is:"ytd-watch-flexy"})],xu);_.h_.registerService(_.G9h,xu);
_.Lo();
}catch(e){_._DumpException(e)}
try{
_.R0("nmfa2d");
var vTt;var PE=function(){var X=_.O.apply(this,arguments)||this;X.hidden=!1;X.errorScreen=null;X.playlistData={};return X};
_.S(PE,_.O);_.H=PE.prototype;_.H.getPlayer=function(){return this.ytdPlayer};
_.H.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:_.yU(["aa","eocs"])}}};
_.H.onActiveChanged=function(){_.dV().dispatch(_.NpW(this.ytPageBehavior.active))};
_.H.playerDataChanged=function(){var X;(X=this.watchController)==null||X.setPlayerResponse(this.playerData)};
_.H.dataChanged=function(){var X;(X=this.watchController)==null||X.setWatchNextResponse(this.data)};
_.H.sizeChanged=function(){var X,t;(t=(X=this.metadata).resize)==null||t.call(X)};
_.H.attached=function(){this.watchController=new _.ry(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.H.detached=function(){_.Vs(this.watchController);this.watchController=void 0};
_.H.getPlayerContainer=function(){return this.playerContainer};
_.H.getElement=function(X){switch(X){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22773_playlistPanel}};
_.H.provideRenderingData=function(X,t){switch(X){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=t;break;case "ERROR_SCREEN":this.errorScreen=t!=null?t:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=t;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=t;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=t;break;case "RICH_METADATA":this.richMetadataRowContainer=t;break;case "CLARIFICATION":this.clarificationData=t;break;case "PLAYLIST":this.playlistData=
t!=null?t:{};break;case "MERCH_SHELF":this.merchShelf=t;break;case "TICKET_SHELF":this.ticketShelf=t;break;case "LIMITED_STATE":this.limitedState=t;break;case "DONATION_SHELF":this.donationShelf=t;break;case "ALERTS":this.alerts=t}};
_.ke.Object.defineProperties(PE.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return!this.hidden&&!!((X=this.data)==null?0:(t=X.contents)==null?0:(G=t.twoColumnWatchNextResults)==null?0:G.conversationBar)}}});
PE.prototype.sizeChanged=PE.prototype.sizeChanged;PE.prototype.dataChanged=PE.prototype.dataChanged;PE.prototype.playerDataChanged=PE.prototype.playerDataChanged;PE.prototype.onActiveChanged=PE.prototype.onActiveChanged;_.E([_.q(_.Sv.YtPageBehavior),_.U("design:type",Object)],PE.prototype,"ytPageBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],PE.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],PE.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"playerData",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],PE.prototype,"hidden",void 0);_.E([_.rt("#ytd-player"),_.U("design:type",HTMLElement)],PE.prototype,"ytdPlayer",void 0);_.E([_.rt("#player-container"),_.U("design:type",HTMLElement)],PE.prototype,"playerContainer",void 0);_.E([_.rt("#metadata"),_.U("design:type",Object)],PE.prototype,"metadata",void 0);_.E([_.rt("#playlist"),_.U("design:type",HTMLElement)],PE.prototype,"JSC$22773_playlistPanel",void 0);
_.E([_.K({selector:_.dyR,reflectToAttribute:!0}),_.U("design:type",Object)],PE.prototype,"fixie",void 0);_.E([_.K({selector:_.kIT,reflectToAttribute:!0}),_.U("design:type",Object)],PE.prototype,"singleColumn",void 0);_.E([_.K({selector:function(X){return _.tS(X)&&!_.Gz(X)},
reflectToAttribute:!0}),_.U("design:type",Object)],PE.prototype,"theater",void 0);_.E([_.K({selector:_.Gz,reflectToAttribute:!0}),_.U("design:type",Object)],PE.prototype,"fullscreen",void 0);_.E([_.K({selector:_.p1x}),_.U("design:type",Object)],PE.prototype,"windowSize",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"singleColumnContents",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"errorScreen",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"playlistData",void 0);
_.E([_.K(),_.U("design:type",Object)],PE.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"videoSecondaryInfoRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"richMetadataRowContainer",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"clarificationData",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"ticketShelf",void 0);
_.E([_.K(),_.U("design:type",Object)],PE.prototype,"merchShelf",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"donationShelf",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"limitedState",void 0);_.E([_.K(),_.U("design:type",Object)],PE.prototype,"alerts",void 0);_.E([_.C("playlistData"),_.U("design:type",Object),_.U("design:paramtypes",[])],PE.prototype,"hasPlaylistData",null);
_.E([_.C("data","hidden"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],PE.prototype,"hasChat",null);_.E([_.cW("active"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PE.prototype,"onActiveChanged",null);_.E([_.cW("playerData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PE.prototype,"playerDataChanged",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PE.prototype,"dataChanged",null);_.E([_.cW("windowSize","singleColumn"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PE.prototype,"sizeChanged",null);
_.N(PE,"ytd-watch-fixie",function(){if(vTt===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);vTt=X}X=vTt;return X},{mode:1});_.h_.registerService(_.tuf,PE);
_.Lo();
}catch(e){_._DumpException(e)}
try{
_.R0("xwEKAe");
var nvV=function(X){var t=_.cP();if(t.getFlag(202))t=t.getFlag(201);else{var G;t=(X==null?void 0:(G=X.config)==null?void 0:G.settingOnByDefault)!==void 0?X.config.settingOnByDefault:!_.A("web_shorts_cinematics_disabled_by_default")}return t},Vza=function(X){var t=_.cP();
_.pq(0,201,X);_.pq(0,202,!0);t.save()},bHQ=function(X){return(X=_.fXJ(X))?_.Xbv(X):0},ksR=function(X){return X.shorts.isSmallScreenSqueezeback},dOB=function(X){return X.shorts.isPlaybackStarted},gvR=function(X){var t=_.n7E(2),G=new Set;
_.Um(function(){return void G.forEach(function(y){return void y()})});
return function(y){var w=_.nt(t);try{var z=e$2(jvv(X),y);G.add(z);return function(){z();G.delete(z)}}finally{_.nt(w)}}},F7R=function(X){var t=X.children;
var G=X.root;_.R2(function(){var y=gvR(G)(t);_.Um(y)});
return document.createTextNode("")},e$2=function(X,t){var G=TOR(X);
X=_.J(_.thG(t,!0));t=X.next().value;var y=X.next().value;G.append.apply(G,_.RY(t));return function(){y();G.remove()}},jvv=function(X){if(typeof X==="string")return X=document.querySelector(X),_.$_v(X),X;
if(_.Th(X)&&X.nodeType===Node.ELEMENT_NODE)return X;if(!X.__value&&!X.__optional){var t=_.cLw.USE_ELEMENT_NOT_ASSIGNED(X.__expectedTagName);X.__hasErrored=!0;throw t;}return X.value},TOR=function(X){var t=document.createElementNS(X.namespaceURI,X.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return X.appendChild(t)},Asq=function(X,t,G,y){X=t-X;
G=y-G;return Math.sqrt(X*X+G*G)},YM2=function(X,t){X&&_.gw().resolve(_.F3).resolveCommand(X,{forceClickLogging:!0,
form:{element:t}})},svV=function(X,t,G,y){X=t-X;
G=y-G;return Math.sqrt(X*X+G*G)},DOR=function(X,t){X&&_.gw().resolve(_.F3).resolveCommand(X,{forceClickLogging:!0,
form:{element:t}})},SMa=function(){return _.gw().resolve(_.rv).dismissedIndices},h$a=function(X){return _.Dl({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:X}})},ZHr=function(X){return _.Dl({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:X}})},yn=function(X){return _.Dl({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:X}})};var wO=function(X,t){if(X instanceof wO)this.array_=X.array_;else{var G;if(G=_.xJ(X))a:{for(var y=G=0;y<X.length;y++){if(!_.xJ(X[y])||G>0&&X[y].length!=G){G=!1;break a}for(var w=0;w<X[y].length;w++)if(typeof X[y][w]!=="number"){G=!1;break a}G==0&&(G=X[y].length)}G=G!=0}if(G)this.array_=_.aV(X);else if(X instanceof _.IH)this.array_=qMv(X.height,X.width);else if(typeof X==="number"&&typeof t==="number"&&X>0&&t>0)this.array_=qMv(X,t);else throw Error("mo");}this.size_=new _.IH(this.array_[0].length,
this.array_.length)},CnR=function(X,t,G){for(var y=0;y<X.getSize().height;y++)for(var w=0;w<X.getSize().width;w++)t.call(G,X.array_[y][w],y,w,X)},K7R=function(X,t){var G=new wO(X.getSize());
CnR(X,function(y,w,z){G.array_[w][z]=t.call(void 0,y,w,z,X)});
return G},qMv=function(X,t){for(var G=[],y=0;y<X;y++){G[y]=[];
for(var w=0;w<t;w++)G[y][w]=0}return G};
wO.prototype.add=function(X){if(!_.pDB(this.size_,X.getSize()))throw Error("no");return K7R(this,function(t,G,y){return t+X.array_[G][y]})};
wO.prototype.equals=function(X,t){if(this.size_.width!=X.size_.width||this.size_.height!=X.size_.height)return!1;t=t||0;for(var G=0;G<this.size_.height;G++)for(var y=0;y<this.size_.width;y++)if(!_.cOR(this.array_[G][y],X.array_[G][y],t))return!1;return!0};
wO.prototype.getSize=function(){return this.size_};
var zs=function(X,t,G){return t>=0&&t<X.size_.height&&G>=0&&G<X.size_.width?X.array_[t][G]:null};
wO.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Hg=function(X,t,G,y){if(!(t>=0&&t<X.size_.height&&G>=0&&G<X.size_.width))throw Error("oo`"+t+"`"+G+"`"+X.size_.height+"`"+X.size_.width);X.array_[t][G]=y};
wO.prototype.multiply=function(X){if(X instanceof wO){if(this.size_.width!=X.getSize().height)throw Error("po");return OHR(this,X)}if(typeof X==="number")return uqT(this,X);throw Error("qo");};
var OHR=function(X,t){var G=new wO(X.size_.height,t.getSize().width);CnR(G,function(y,w,z){for(var B=y=0;B<this.size_.width;B++)y+=zs(this,w,B)*zs(t,B,z);Hg(G,w,z,y)},X);
return G},uqT=function(X,t){return K7R(X,function(G){return G*t})};var QvQ=new _.ja("inlineSurveyRenderer");var ICH=new _.ja("interstitialViewModel");var W7q=new _.ja("reelNavigateCommand");var csi=new _.ja("reelNonVideoContentDismissalCommand");var pgN=new _.ja("showReelsCommentsOverlayCommand");var rsR=new _.ja("shortsSuggestedActionViewModel");var NOV=new _.ja("videoInteractionPopUpRenderer");var PnH;var EvN;var UOQ;var ov=function(){var X=_.O.apply(this,arguments)||this;X.ctaVisualElement=null;X.currentCsn=null;return X};
_.S(ov,_.O);_.H=ov.prototype;_.H.onDataChanged=function(){this.maybeLogShows()};
_.H.computeButtonShape=function(){var X=this;if(this.data)return{buttonText:_.bu(this.data.text),state:"active",onTap:function(){X.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.H.maybeCreateCtaVe=function(){var X;if((X=this.data)!=null&&X.badgeInteractionLogging){var t;if(X=(t=this.data.badgeInteractionLogging)==null?void 0:t.trackingParams)this.ctaVisualElement=_.i$(X)}};
_.H.maybeLogClicks=function(){this.currentCsn=_.lw(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.BK(this.currentCsn,this.ctaVisualElement)};
_.H.maybeLogShows=function(){this.currentCsn=_.lw(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.o$(this.currentCsn,[this.ctaVisualElement])};
_.H.onTap=function(){var X;if((X=this.data)!=null&&X.onClickCommand){var t;this.ytComponentBehavior.resolveCommand((t=this.data)==null?void 0:t.onClickCommand);this.maybeLogClicks()}};
ov.prototype.onDataChanged=ov.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ov.prototype,"ytComponentBehavior",void 0);_.E([_.K({}),_.U("design:type",Object)],ov.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ov.prototype,"onDataChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],ov);
_.N(ov,"ytd-shopping-overlay-badge-renderer",function(){if(UOQ!==void 0)return UOQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return UOQ=X},{mode:1});_.DW(_.gVH,"reel-sound-metadata-view-model",{props:{data:_.sd,overlayDensity:_.sd}});_.DW(_.nTR,"player-disclosure-view-model",{props:{data:_.bR}});_.DW(_.A$z,"pivot-button-view-model",{props:{data:_.sd,className:_.sd}});_.DW(_.Y3q,"reel-action-bar-view-model",{props:{data:_.bR,buttonShapeOverrideables:_.bR}});_.DW(_.Fp(function(X){function t(){var BY,kJ,Ss,C_,Fv=(kJ=_.Y((BY=l())==null?void 0:BY.command,_.PM))==null?void 0:(Ss=kJ.item)==null?void 0:(C_=Ss.notificationTextRenderer)==null?void 0:C_.successResponseText;if(Fv)_.sl(y.value,"yt-open-popup-action",[_.jl(Fv),y.value]);else if(R())YM2(R(),h.value);else{var Uh;YM2((Uh=l())==null?void 0:Uh.command,h.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var G=X.data;var y=_.nl("yt-player-overlay-video-interactions");X=_.J(_.sm("0px",void 0,"O1N7Ce"));var w=X.next().value,z=X.next().value;X=_.J(_.sm("0px",void 0,"tTDBdb"));var B=X.next().value,V=X.next().value;X=_.J(_.sm(0,void 0,"fh8Zkc"));var b=X.next().value,e=X.next().value;X=_.J(_.sm(0,void 0,"CUjqGd"));var g=X.next().value,F=X.next().value,T=function(){var BY;if(((BY=_.QE())==null?void 0:BY.getPlayerState())!==-1){y.value.style.display="inherit";var kJ;(kJ=_.QE())==null||kJ.removeEventListener("onStateChange",
T)}D()},D=function(){var BY=document.querySelector("video");
if(BY){e(BY.getBoundingClientRect().width);F(BY.getBoundingClientRect().height);var kJ;z((BY==null?void 0:(kJ=BY.style)==null?void 0:kJ.left)||"0px");var Ss;V((BY==null?void 0:(Ss=BY.style)==null?void 0:Ss.top)||"0px")}};
_.Em(function(){var BY,kJ,Ss;if(((BY=_.QE())==null?void 0:BY.getPlayerState())===-1&&Math.round(((Ss=(kJ=_.QE())==null?void 0:kJ.getVideoAspectRatio())!=null?Ss:0)*100)!==Math.round(b()/g()*100)){y.value.style.display="none";var C_,Fv;F(b()/((Fv=(C_=_.QE())==null?void 0:C_.getVideoAspectRatio())!=null?Fv:1))}},"VB5m5");
_.R2(function(){var BY;(BY=_.QE())==null||BY.addEventListener("onStateChange",T);window.addEventListener("resize",D);D();var kJ,Ss,C_;if((C_=(kJ=G())==null?void 0:(Ss=kJ.regions)==null?void 0:Ss[0])==null||!C_.transformationMatrix)throw Error("uo");var Fv;if((Fv=G())==null?0:Fv.trackingParams){var Uh;_.Pj().graftServerVe((Uh=G().trackingParams)!=null?Uh:"")}_.Um(function(){var cY;(cY=_.QE())==null||cY.removeEventListener("onStateChange",T);window.removeEventListener("resize",D)})});
var h=_.nl("svg"),u=_.J(_.sm(!1,void 0,"TPsTce"));X=u.next().value;var W=u.next().value,c=_.J(_.sm(!1,void 0,"Uz6CHf"));u=c.next().value;var P=c.next().value,l=function(){var BY;return _.Y((BY=G())==null?void 0:BY.popUp,NOV)},R=function(){var BY;
return(BY=G())==null?void 0:BY.command},L=function(){return _.Y(R(),_.UW)!==void 0};
c=_.NI(function(){t();return!1});
var x={},w6={};return _.k("yt-player-overlay-video-interactions",{el:y},_.k("svg",{"on:mouseover":_.NI(function(){L()&&W(!0);P(!0);return!1}),
"on:mouseout":_.NI(function(){W(!1);P(!1);return!1}),
"on:keydown":_.NI(function(BY){BY.key==="Enter"&&t();return!1}),
"on:focus":_.NI(function(){L()&&W(!0);return!1}),
"on:blur":_.NI(function(){L()&&W(!1);return!1}),
el:h,tabindex:0,"aria-label":function(){var BY;return(BY=G())==null?void 0:BY.a11yString},
id:"player-overlay-video-interaction-svg",class:_.cl("yt-player-overlay-video-interactions__interactions-svg",(x["yt-player-overlay-video-interactions__interactions-svg-hover"]=X,x),(w6["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=u,w6)),role:"button",style:function(){var BY,kJ,Ss,C_=(Ss=(BY=G())==null?void 0:(kJ=BY.regions)==null?void 0:kJ[0].transformationMatrix)!=null?Ss:[];BY=b();kJ=g();Ss=[];for(var Fv=0,Uh=-1;Fv<C_.length;Fv++)Fv%3===0&&(Uh++,Ss[Uh]=[]),Ss[Uh].push(C_[Fv]);
C_=new wO(Ss);Ss=new wO([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);Ss=C_.multiply(Ss);C_=new wO([[0,0],[0,0],[0,0],[0,0]]);for(Fv=0;Fv<Ss.getSize().width;Fv++){Uh=zs(Ss,0,Fv);var cY=zs(Ss,1,Fv);if(Uh===null||cY===null)throw Error("to`"+(Fv+1).toString());Hg(C_,Fv,0,Uh*BY);Hg(C_,Fv,1,cY*kJ)}BY=zs(C_,0,0);Fv=zs(C_,1,0);kJ=zs(C_,0,1);Uh=zs(C_,1,1);if(BY===null||Fv===null||kJ===null||Uh===null)throw Error("ro");Ss=Asq(BY,Fv,kJ,Uh);cY=zs(C_,3,0);C_=zs(C_,3,1);if(cY===null||C_===null)throw Error("so");C_=Asq(BY,
cY,kJ,C_);Uh=(Number((Uh*-1).toFixed(2))-Number((kJ*-1).toFixed(2)))/(Number(Fv.toFixed(2))-Number(BY.toFixed(2)));cY=Math.atan(Uh)*180/Math.PI;Fv=Uh===Number.POSITIVE_INFINITY?-90:Uh===Number.NEGATIVE_INFINITY?90:Object.is(Uh,-0)?180:Uh===0?0:Uh>0?cY*-1:BY<Fv?cY*-1:Math.abs(cY)+180;return"left:calc("+BY+"px + "+w()+"); top:calc("+(kJ+"px + "+B()+"); width:")+(Ss+"px; height:")+(C_+"px; transform:rotate(")+(Fv+"deg);")},
"on:click":c}))},"jj"),"yt-player-overlay-video-interactions",{props:{data:_.bR}});_.DW(_.efQ,"yt-reel-metapanel-view-model",{props:{data:_.bR,overlayDensity:_.bR}});var mOT=_.Fp(function(X){var t=X.children;var G=X.region;X=_.J(_.sm(void 0,void 0,"rwJZyc"));var y=X.next().value,w=X.next().value;X=_.J(_.sm("0px",void 0,"H14H5c"));var z=X.next().value,B=X.next().value;X=_.J(_.sm("0px",void 0,"Mn8Uvf"));var V=X.next().value,b=X.next().value;X=_.J(_.sm(0,void 0,"QQCIqc"));var e=X.next().value,g=X.next().value;X=_.J(_.sm(0,void 0,"HyEvh"));var F=X.next().value,T=X.next().value,D=function(){var l=y();if(l){var R;if(((R=_.QE())==null?void 0:R.getPlayerState())!==-1){l.style.display=
"inherit";var L;(L=_.QE())==null||L.removeEventListener("onStateChange",D)}u()}},h=function(){var l=document.querySelectorAll("video");
return Array.from(l).find(function(R){var L;return R==null?void 0:(L=R.style)==null?void 0:L.width})},u=function(){var l=h();
if(l){g(l.getBoundingClientRect().width);T(l.getBoundingClientRect().height);var R;B((l==null?void 0:(R=l.style)==null?void 0:R.left)||"0px");var L;b((l==null?void 0:(L=l.style)==null?void 0:L.top)||"0px")}};
_.Em(function(){var l=y();if(l){var R,L,x;if(((R=_.QE())==null?void 0:R.getPlayerState())===-1&&Math.round(((x=(L=_.QE())==null?void 0:L.getVideoAspectRatio())!=null?x:0)*100)!==Math.round(e()/F()*100)){l.style.display="none";var w6,BY;T(e()/((BY=(w6=_.QE())==null?void 0:w6.getVideoAspectRatio())!=null?BY:1))}}},"RdGxIf");
var W=function(){u()},c;
_.R2(function(){u();var l;if(!(G==null?0:(l=G())==null?0:l.transformationMatrix))throw Error("uo");var R;(R=_.QE())==null||R.addEventListener("onStateChange",D);if(window.ResizeObserver){if(l=h())c=new ResizeObserver(W),c.observe(l)}else window.addEventListener("resize",u);_.Um(function(){var L;(L=_.QE())==null||L.removeEventListener("onStateChange",D);c?c.disconnect():window.removeEventListener("resize",u)})});
var P=function(){var l,R,L=(R=G==null?void 0:(l=G())==null?void 0:l.transformationMatrix)!=null?R:[];l=e();R=F();for(var x=[],w6=0,BY=-1;w6<L.length;w6++)w6%3===0&&(BY++,x[BY]=[]),x[BY].push(L[w6]);L=new wO(x);x=new wO([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);x=L.multiply(x);L=new wO([[0,0],[0,0],[0,0],[0,0]]);for(w6=0;w6<x.getSize().width;w6++){BY=zs(x,0,w6);var kJ=zs(x,1,w6);if(BY===null||kJ===null)throw Error("to`"+(w6+1).toString());Hg(L,w6,0,BY*l);Hg(L,w6,1,kJ*R)}l=zs(L,0,0);w6=zs(L,1,0);R=zs(L,0,1);
BY=zs(L,1,1);if(l===null||w6===null||R===null||BY===null)throw Error("ro");x=svV(l,w6,R,BY);kJ=zs(L,3,0);L=zs(L,3,1);if(kJ===null||L===null)throw Error("so");L=svV(l,kJ,R,L);BY=(Number((BY*-1).toFixed(2))-Number((R*-1).toFixed(2)))/(Number(w6.toFixed(2))-Number(l.toFixed(2)));kJ=Math.atan(BY)*180/Math.PI;w6=BY===Number.POSITIVE_INFINITY?-90:BY===Number.NEGATIVE_INFINITY?90:Object.is(BY,-0)?180:BY===0?0:BY>0?kJ*-1:l<w6?kJ*-1:Math.abs(kJ)+180;return"left:calc("+l+"px + "+z()+"); top:calc("+(R+"px + "+
V()+"); width:")+(x+"px; height:")+(L+"px; transform:rotate(")+(w6+"deg);")};
return _.k(F7R,{root:"#sticker-layer"},function(){return _.k("yt-overlay-sticker",{el:_.T7(w),style:P,class:"ytOverlayStickerHost"},t)})},"kj");var R$N=_.Fp(function(X){function t(){var D,h,u,W,c=(h=_.Y((D=b())==null?void 0:D.command,_.PM))==null?void 0:(u=h.item)==null?void 0:(W=u.notificationTextRenderer)==null?void 0:W.successResponseText;if(c)_.sl(y.value,"yt-open-popup-action",[_.jl(c),y.value]);else if(e())DOR(e(),y.value);else{var P;DOR((P=b())==null?void 0:P.command,y.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var G=X.data;var y=_.nl("svg"),w=_.J(_.sm(!1,void 0,"T9Bq7b"));X=w.next().value;var z=w.next().value,B=_.J(_.sm(!1,void 0,"iMHq9c"));w=B.next().value;var V=B.next().value,b=function(){var D;return _.Y((D=G())==null?void 0:D.popUp,NOV)},e=function(){var D;
return(D=G())==null?void 0:D.command},g=function(){return _.Y(e(),_.UW)!==void 0};
B=_.NI(function(){t();return!1});
var F={},T={};return _.k("svg",{"on:mouseover":_.NI(function(){g()&&z(!0);V(!0);return!1}),
"on:mouseout":_.NI(function(){z(!1);V(!1);return!1}),
"on:keydown":_.NI(function(D){D.key==="Enter"&&t();return!1}),
"on:focus":_.NI(function(){g()&&z(!0);return!1}),
"on:blur":_.NI(function(){g()&&z(!1);return!1}),
el:y,tabindex:0,"aria-label":function(){var D;return(D=G())==null?void 0:D.a11yString},
id:"player-overlay-video-interaction-svg",class:_.cl("ytPlayerOverlayInteractionInteractionsSvg",(F.ytPlayerOverlayInteractionInteractionsSvgHover=X,F),(T.ytPlayerOverlayInteractionInteractionsSvgHideOutline=w,T)),role:"button","on:click":B})},"mj");_.DW(_.Fp(function(X){var t=X.data;_.R2(function(){var G;if((G=t())==null?0:G.trackingParams){var y;_.Pj().graftServerVe((y=t().trackingParams)!=null?y:"")}});
return _.k("yt-player-overlay-interaction",null,_.k(mOT,{region:function(){var G,y;return(G=t())==null?void 0:(y=G.regions)==null?void 0:y[0]}},_.k(R$N,Object.assign({},X))))},"lj"),"yt-player-overlay-interaction",{props:{data:_.bR}});var Js=function(){var X=_.O.apply(this,arguments)||this;X.showScrubber=!1;X.isWatchWhileMode=!1;X.enableRemixButton=_.A("web_enable_shorts_remix_handoff_ep");X.enableAnchoredPanel=_.A("desktop_shorts_v2_anchored_panel");X.enableNewStickers=_.A("use_shorts_sticker_overlay_web");X.anchoredPanelActive=!1;X.enableLivingroomLayout=_.A("reels_enable_livingroom_layout");X.enablePlayerMetadataContainer=_.A("reels_web_enable_metadata_container");X.enableSqueezebackPanels=_.A("web_shorts_enable_squeezeback_panels");
X.useAspectRatio=_.A("web_use_aspect_ratio");X.isSqueezebackActive=!1;X.smallScreenSqueezeback=!1;X.isPlayerStarted=!1;X.overlayDensity=0;X.isOverlay=!1;X.isImmersive=!1;X.isImmersiveHorizontal=!1;X.isFullscreen=!1;X.onWindowResized=function(){var t;X.set("isImmersive",((t=window.getComputedStyle(X.hostElement))==null?void 0:t.getPropertyValue("--immersive-mode-on"))==="1");X.set("isImmersiveHorizontal",X.isImmersive&&X.enableLivingroomLayout&&!X.isWatchWhileMode)};
return X};
_.S(Js,_.O);_.H=Js.prototype;_.H.updateIsOverlay=function(X){this.isOverlay=X.detail.value};
_.H.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.A("web_enable_flexible_overlay")||_.A("web_enable_format_first")||_.A("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.H.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.H.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.H.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.H.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.H.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.H.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.H.ready=function(){(_.A("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"))&&(!_.A("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Yx("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.Yx("reels_action_justified_content")||"flex-start")};
_.H.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}}};
_.H.setFakeLoadingButtons=function(){_.A("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Qf("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Qf("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Qf("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Qf("SHARE_LABEL",void 0,"Share")}}}),_.A("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Qf("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()};
_.H.setEmptyOverlayMetadata=function(){_.A("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}))};
_.ke.Object.defineProperties(Js.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.infoPanel)}}});
Js.prototype.onIsActiveChanged=Js.prototype.onIsActiveChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Js.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Js.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Js.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],Js.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],Js.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],Js.prototype,"isActive",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Js.prototype,"hidden",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],Js.prototype,"useShortsIcon",void 0);_.E([_.K({value:"left"}),_.U("design:type",String)],Js.prototype,"buttonTooltipPosition",void 0);
_.E([_.K({value:_.A("reels_enable_livingroom_layout")?"top":"left"}),_.U("design:type",String)],Js.prototype,"likeButtonTooltipPosition",void 0);_.E([_.K({value:"none"}),_.U("design:type",String)],Js.prototype,"textTransform",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"showScrubber",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"isWatchWhileMode",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data.infoPanel"),_.U("design:type",Object),_.U("design:paramtypes",[])],Js.prototype,"hasInfoPanel",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"enableRemixButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"enableAnchoredPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"enableNewStickers",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"anchoredPanelActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"enableLivingroomLayout",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Js.prototype,"enablePlayerMetadataContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"enableSqueezebackPanels",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"useAspectRatio",void 0);_.E([_.K({selector:_.JdV,reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"isSqueezebackActive",void 0);_.E([_.K({selector:ksR,reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"smallScreenSqueezeback",void 0);_.E([_.K({selector:dOB}),_.U("design:type",Object)],Js.prototype,"isPlayerStarted",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"overlayDensity",void 0);_.E([_.K(),_.U("design:type",Object)],Js.prototype,"isOverlay",void 0);_.E([_.K({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.U("design:type",Boolean)],Js.prototype,"isShortsOverlay",void 0);_.E([_.K(),_.U("design:type",Object)],Js.prototype,"isImmersive",void 0);_.E([_.K(),_.U("design:type",Object)],Js.prototype,"isImmersiveHorizontal",void 0);
_.E([_.K({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.U("design:type",Boolean)],Js.prototype,"isShortsImmersive",void 0);_.E([_.K({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.U("design:type",Object)],Js.prototype,"buttonOverride",void 0);_.E([_.K({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.U("design:type",Object)],Js.prototype,"actionBarButtonOverride",void 0);
_.E([_.K({selector:_.Oe,reflectToAttribute:!0}),_.U("design:type",Object)],Js.prototype,"isFullscreen",void 0);_.E([_.cW("isActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Js.prototype,"onIsActiveChanged",null);_.E([_.p({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Js);
_.N(Js,"ytd-reel-player-overlay-renderer",function(){if(EvN!==void 0)return EvN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return EvN=X},{mode:1});var iHQ;var Bg=function(){var X=_.O.apply(this,arguments)||this;X.videoDuration=0;X.playedTime=0;X.isActive=!1;X.JSC$22029_playerEvents=new Map;return X};
_.S(Bg,_.O);_.H=Bg.prototype;_.H.created=function(){this.JSC$22029_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22029_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.H.attached=function(){this.getPlayerAndInitializeListeners()};
_.H.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22029_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Ik(this,this.onPageChanged))};
_.H.getPlayerAndInitializeListeners=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return t=_.sW(),t?G.yield(t.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ik(X,X.onPageChanged)),G.jumpTo(0));X.player=G.yieldResult;X.initializePlayerListeners();_.W$(G)})};
_.H.onPageChanged=function(X){var t=this;return _.n(function(G){if(G.nextAddress==1)return X.detail.newPageType!=="ytd-shorts"?G.return():G.yield(_.DR().getPlayerPromise(),2);t.player=G.yieldResult;t.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ik(t,t.onPageChanged));_.W$(G)})};
_.H.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22029_playerEvents)};
_.H.onVideoDataChange=function(X){var t=this;return _.n(function(G){if(!t.player||X.type!=="newdata")return G.return();t.videoDuration=_.A("web_shorts_use_progress_state_for_gapless")?t.player.getProgressState(X.playertype).seekableEnd:t.player.getDuration(X.playertype);t.playedTime=0;_.W$(G)})};
_.H.onVideoProgress=function(X){var t=this,G,y;return _.n(function(w){if(!t.player)return w.return();G=t.player.getPresentingPlayerType();y=t.player.getPlayerState();t.videoDuration=_.A("web_shorts_use_progress_state_for_gapless")?t.player.getProgressState(G).seekableEnd:t.player.getDuration(G);t.playedTime=y===0?t.videoDuration:X;_.W$(w)})};
_.H.getPercentPlayed=function(X,t){return X?_.MM(t/X,0,1):0};
_.ke.Object.defineProperties(Bg.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 X="";return X=this.videoDuration&&this.playedTime?X+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):X+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Bg.prototype,"componentBehavior",void 0);_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],Bg.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Bg.prototype,"player",void 0);_.E([_.K(),_.U("design:type",Object)],Bg.prototype,"videoDuration",void 0);_.E([_.K(),_.U("design:type",Object)],Bg.prototype,"playedTime",void 0);_.E([_.K(),_.U("design:type",Object)],Bg.prototype,"isActive",void 0);
_.E([_.C("videoDuration","playedTime"),_.U("design:type",Number),_.U("design:paramtypes",[])],Bg.prototype,"percentPlayed",null);_.E([_.C("videoDuration","playedTime"),_.U("design:type",Object),_.U("design:paramtypes",[])],Bg.prototype,"percentPlayedStyle",null);_.E([_.C("videoDuration","isActive"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Bg.prototype,"hideProgressBar",null);
_.N(Bg,"ytd-progress-bar-line",function(){if(iHQ===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);iHQ=X}X=iHQ;return X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var L7Q;_.DW(_.vbQ,"ytm-closed-captioning-button",{props:{captionIconType:_.bR,onClick:_.sd,ariaLabel:_.bR,ariaPressed:_.bR,isOverlay:_.sd,isModern:_.sd}});_.DW(_.BpT,"desktop-shorts-volume-controls",{props:{orientation:_.bR}});var nH=function(){var X=_.O.apply(this,arguments)||this;X.playerState=null;X.isMuted=!1;X.shortsModernControlsEnabled=_.A("web_shorts_modern_controls");X.volumeControlsOrientationState=_.A("web_shorts_modern_controls")?"vertical_down":"horizontal_right";X.isOverlay=!0;X.captionIconType=-1;X.ariaLabel="";X.overlayDensity=0;X.JSC$22032_playerEvents=new Map;X.onClosedCaptionsButtonClick=function(){X.player&&_.Ho(X.player)&&(X.player.toggleSubtitles(),X.updateCaptionIconType())};
return X};
_.S(nH,_.O);_.H=nH.prototype;_.H.created=function(){this.JSC$22032_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22032_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22032_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.H.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.ai(28662);this.playPauseButtonClientVE=_.ai(36842);this.fullscreenButtonToggleOffClientVE=_.ai(222256);this.fullscreenButtonToggleOnClientVE=_.ai(222257);var X=_.lw(),t=_.a4();X&&t&&(_.A("combine_ve_grafts")?(_.Cc(_.Pj(),this.muteButtonClientVE,t),_.Cc(_.Pj(),this.playPauseButtonClientVE,t)):_.zG(X,t,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.H.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22032_playerEvents),this.player=null)};
_.H.updateCaptionIconType=function(){var X=-1,t=void 0,G=_.Qf("CLOSED_CAPTIONS_DISABLED");this.player&&_.Ho(this.player)&&(_.WWi(this.player)?(t=!0,G=_.Qf("CLOSED_CAPTIONS_ON"),X=1):(t=!1,G=_.Qf("CLOSED_CAPTIONS_OFF"),X=0));this.captionIconType=X;this.ariaPressedState=t;this.ariaLabel=G};
_.H.getPlayerAndInitializeListeners=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return t=_.sW(),t?G.yield(t.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ik(X,X.onPageChanged)),G.jumpTo(0));X.player=G.yieldResult;X.initializePlayerListeners();_.W$(G)})};
_.H.onPageChanged=function(X){var t=this;return _.n(function(G){if(G.nextAddress==1)return X.detail.newPageType!=="ytd-shorts"?G.return():G.yield(_.DR().getPlayerPromise(),2);t.player=G.yieldResult;t.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ik(t,t.onPageChanged));_.W$(G)})};
_.H.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22032_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.H.onPlayerStateChange=function(X){this.playerState=X};
_.H.onPlayerVolumeChange=function(X){this.isMuted=X.muted};
_.H.onPlayPauseButtonClick=function(){var X=this,t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(_.DR().getPlayerPromise(),2);t=y.yieldResult;(G=_.lw())&&X.playPauseButtonClientVE&&_.BK(G,X.playPauseButtonClientVE);t.getPlayerState()!==1?t.playVideo():t.pauseVideo();_.W$(y)})};
_.H.computePlayPauseIcon=function(X){return X===2||X===-1||X===5?_.A("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.A("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.A("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.H.computeFullscreenLabel=function(X){return X?_.Qf("FULLSCREEN_EXIT_LABEL"):_.Qf("FULLSCREEN_ENTER_LABEL")};
_.H.computePlayPauseLabel=function(X){return X===1||X===3?_.Qf("PLAYER_LABEL_PAUSE"):_.Qf("PLAYER_LABEL_PLAY")};
_.H.onMuteButtonClick=function(){var X=this,t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(_.DR().getPlayerPromise(),2);t=y.yieldResult;(G=_.lw())&&X.muteButtonClientVE&&_.BK(G,X.muteButtonClientVE);t.isMuted()?t.unMute(!0):t.mute(!0);_.W$(y)})};
_.H.computeMuteIcon=function(X){return X?"miniplayer:volume-off":"miniplayer:volume-up"};
_.H.computeMuteLabel=function(X){return X?_.Qf("PLAYER_LABEL_UNMUTE"):_.Qf("PLAYER_LABEL_MUTE")};
_.H.onFullscreenButtonClick=function(){var X=_.lw();X&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.BK(X,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.BK(X,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.yaB()};
_.ke.Object.defineProperties(nH.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var X=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(){X.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?_.A("web_shorts_modern_controls")?"player_full_exit_alt":_.A("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.A("web_shorts_modern_controls")?"player_full_enter_alt":_.A("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],nH.prototype,"componentBehavior",void 0);_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],nH.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],nH.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],nH.prototype,"player",void 0);_.E([_.K(),_.U("design:type",Object)],nH.prototype,"playerState",void 0);_.E([_.K(),_.U("design:type",Object)],nH.prototype,"isMuted",void 0);
_.E([_.K({computed:"computePlayPauseIcon(playerState)"}),_.U("design:type",String)],nH.prototype,"playPauseIcon",void 0);_.E([_.K({computed:"computeMuteIcon(isMuted)"}),_.U("design:type",String)],nH.prototype,"muteIcon",void 0);_.E([_.K({selector:_.Oe}),_.U("design:type",Boolean)],nH.prototype,"isFullscreen",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],nH.prototype,"shortsModernControlsEnabled",void 0);
_.E([_.K(),_.U("design:type",Object)],nH.prototype,"volumeControlsOrientationState",void 0);_.E([_.K(),_.U("design:type",Object)],nH.prototype,"isOverlay",void 0);_.E([_.K(),_.U("design:type",Object)],nH.prototype,"captionIconType",void 0);_.E([_.K(),_.U("design:type",Object)],nH.prototype,"ariaLabel",void 0);_.E([_.K(),_.U("design:type",Object)],nH.prototype,"ariaPressedState",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],nH.prototype,"overlayDensity",void 0);
_.E([_.C("playerState"),_.U("design:type",Object),_.U("design:paramtypes",[])],nH.prototype,"playPauseButtonData",null);_.E([_.C("isFullscreen"),_.U("design:type",Object),_.U("design:paramtypes",[])],nH.prototype,"fullscreenButtonData",null);_.E([_.K(),_.U("design:type",Object)],nH.prototype,"onClosedCaptionsButtonClick",void 0);_.E([_.C("isFullscreen"),_.U("design:type",String),_.U("design:paramtypes",[])],nH.prototype,"fullscreenIcon",null);
_.N(nH,"ytd-shorts-player-controls",function(){if(L7Q===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);L7Q=X}X=L7Q;return X},{mode:1});var vvQ;_.DW(_.MJz,"yt-interstitial-view-model",{props:{data:_.bR}});var aCB=_.Fp(function(X){var t=X.data;return _.k("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.k("h1",{class:"reelWatchBreakViewModelHostTitle"},_.k(_.eh,{text:function(){return t().title}})),_.k("h2",{class:"reelWatchBreakViewModelHostBody"},_.k(_.eh,{text:function(){return t().body},
isOverlay:!0})),_.k(_.M7,{data:function(){return t().buttons}},{buttonViewModel:function(G,y){return _.k("div",{class:function(){return y()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.k(_.QK,{data:G.data}))}}))},"nj");
aCB.idomCompat=!0;_.DW(aCB,"reel-watch-break-view-model",{props:{data:_.bR}});var Vn=function(){return _.O.apply(this,arguments)||this};
_.S(Vn,_.O);Vn.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}}};
_.ke.Object.defineProperties(Vn.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.Y((X=this.data)==null?void 0:X.renderer,QvQ)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.Y((X=this.data)==null?void 0:X.renderer,ICH)}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Vn.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Vn.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Vn.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data.renderer"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Vn.prototype,"isSurvey",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.renderer"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Vn.prototype,"isInterstitialViewModel",null);_.E([_.p({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Vn);
_.N(Vn,"ytd-reel-non-video-content-renderer",function(){if(vvQ!==void 0)return vvQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return vvQ=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var lCq;_.DW(_.JKB,"desktop-shorts-player-controls",{});var bn=function(){var X=_.O.apply(this,arguments)||this;X.isPlayerPaused=!1;X.isPlayerStarted=!1;X.showPlayerControls=!1;X.showScrubber=!1;X.autoHideJobId=0;X.modern=_.A("web_button_rework");X.overlayType=_.Yx("web_shorts_expanded_overlay_type");X.panelData=void 0;X.isWatchWhileMode=!1;X.hasError=!1;X.panelShowDelayMs=1;X.scrubberComponent={};X.isFullscreen=!1;X.shouldHideOverlay=!1;X.enableAnchoredPanel=_.A("desktop_shorts_v2_anchored_panel");X.enablePersistentAnchoredPanel=_.A("desktop_shorts_v2_persistent_anchored_panel");
X.hideWatchWhilePanel=_.A("web_shorts_hide_watch_while_panel");X.useAspectRatio=_.A("web_use_aspect_ratio");X.isPersistentPanelActive=!1;X.anchoredPanelActive=!1;X.isShortsPipActive=!1;X.smallScreenSqueezeback=!1;X.enableFlexibleOverlay=_.A("web_enable_flexible_overlay");X.overlayDensity=0;X.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};X.onWindowResized=function(){_.Jm(X,
"calculateOverlayDensity",function(){X.calculateOverlayDensity()},100)};
return X};
_.S(bn,_.O);_.H=bn.prototype;_.H.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.H.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.H.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var X=_.gw().resolve(_.mD);this.isWatchWhileMode&&(_.A("web_enable_shorts_new_carousel")?_.vz.addJob(function(){X.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):X.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.H.handleShowReelsCommentsOverlayCommand=function(X){X=_.Y(X,pgN);this.isActive&&(X==null?0:X.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))};
_.H.updateEngagementPanelVisibility=function(X,t){X&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:t?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:X}})};
_.H.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.H.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.gw().resolve(_.rv).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.H.handleWatchWhilePanelScrimClick=function(){var X=_.gw().resolve(_.mD);this.activeWatchWhilePanel&&(X.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.H.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.H.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:_.A("web_enable_shorts_new_carousel")?0:void 0}}};
_.H.handlePlayerClick=function(X){var t=this,G,y;if((y=(G=window).matchMedia)!=null&&y.call(G,"(any-pointer: coarse)").matches||!X)this.showPlayerControls=!0,_.vz.cancelJob(this.autoHideJobId),this.autoHideJobId=_.PO(_.vz,function(){t.showPlayerControls=!1},4E3)};
_.H.isFirstReel=function(){return this.index===0};
_.H.handleMouseenter=function(){_.vz.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.H.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.H.handleScrubberEnter=function(){this.showScrubber=!0};
_.H.handleScrubberLeave=function(){this.showScrubber=!1};
_.H.maybeLogNonDefaultAspectRatio=function(){var X;(X=this.data)!=null&&X.thumbnail&&this.isActive&&.5625!==bHQ(this.data.thumbnail)&&_.Fj0("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.H.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var X=document.querySelector("#shorts-container");if(X){X=X.offsetWidth/2-this.playerContainer.offsetWidth/2;X=X>=368?1:X>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&X===1&&(X=0);this.isPersistentPanelActive&&(X=0);window.innerWidth<=599&&(X=2);this.overlayDensity=X;var t;(t=this.onOverlayDensityChanged)==null||t.call(this,this.index,this.overlayDensity)}}};
_.H.onOverlayDensityChange=function(){var X;(X=this.onOverlayDensityChanged)==null||X.call(this,this.index,this.overlayDensity);(X=_.Sm(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&X.set("overlayDensity",this.overlayDensity);if(X=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))X.overlayDensity=this.overlayDensity};
_.H.isVideoContent=function(X){_.gw().resolve(_.rv);return!!_.Y(X,_.E8)};
_.H.isNonVideoContent=function(X){_.gw().resolve(_.rv);return!!_.Y(X,_.$n)};
_.H.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.ke.Object.defineProperties(bn.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var X,t;return _.A("web_enable_format_first")||((X=this.data)==null?void 0:X.adsOverlay)&&_.A("web_enable_format_first_ads_only")||((t=this.data)==null?void 0:t.reelPlayerOverlayRenderer)&&_.A("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.A("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var X;return!this.isActive||!this.isPlayerStarted||(X=this.data)!=null&&X.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var X;if(((X=this.data)==null?0:X.command)&&this.isVideoContent(this.data.command)){var t,G;if(((t=this.data)==null?0:t.adsOverlay)&&Object.keys((G=this.data)==null?void 0:G.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var y,w;if(((y=this.data)==null?0:y.reelPlayerOverlayRenderer)&&Object.keys((w=this.data)==null?void 0:w.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
bn.prototype.onOverlayDensityChange=bn.prototype.onOverlayDensityChange;bn.prototype.calculateOverlayDensity=bn.prototype.calculateOverlayDensity;bn.prototype.maybeLogNonDefaultAspectRatio=bn.prototype.maybeLogNonDefaultAspectRatio;bn.prototype.onEngagementPanelsChanged=bn.prototype.onEngagementPanelsChanged;bn.prototype.onScrubberDataChange=bn.prototype.onScrubberDataChange;bn.prototype.updateShouldHideOverlay=bn.prototype.updateShouldHideOverlay;
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],bn.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],bn.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bn.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],bn.prototype,"index",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],bn.prototype,"isActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],bn.prototype,"isHiddenInDom",void 0);_.E([_.K(),_.U("design:type",Object)],bn.prototype,"isPlayerPaused",void 0);_.E([_.K({selector:dOB}),_.U("design:type",Object)],bn.prototype,"isPlayerStarted",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"showPlayerControls",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"showScrubber",void 0);_.E([_.K(),_.U("design:type",Object)],bn.prototype,"autoHideJobId",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"overlayType",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],bn.prototype,"ytdReduxBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],bn.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bn.prototype,"watchWhileEngagementPanels",void 0);_.E([_.K(),_.U("design:type",Object)],bn.prototype,"panelData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"isWatchWhileMode",void 0);_.E([_.K(),_.U("design:type",String)],bn.prototype,"activeWatchWhilePanel",void 0);
_.E([_.K(),_.U("design:type",Object)],bn.prototype,"hasError",void 0);_.E([_.K(),_.U("design:type",Object)],bn.prototype,"panelShowDelayMs",void 0);_.E([_.K(),_.U("design:type",Object)],bn.prototype,"scrubberComponent",void 0);_.E([_.K({selector:_.Oe,reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"isFullscreen",void 0);_.E([_.K(),_.U("design:type",Object)],bn.prototype,"shouldHideOverlay",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"enableAnchoredPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"enablePersistentAnchoredPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"hideWatchWhilePanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"useAspectRatio",void 0);
_.E([_.K({selector:_.JdV,reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"isPersistentPanelActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"anchoredPanelActive",void 0);_.E([_.K({selector:_.u7,reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"isShortsPipActive",void 0);_.E([_.K({selector:ksR,reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"smallScreenSqueezeback",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],bn.prototype,"enableFormatFirst",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"enableFlexibleOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bn.prototype,"overlayDensity",void 0);_.E([_.K(),_.U("design:type",Function)],bn.prototype,"onOverlayDensityChanged",void 0);
_.E([_.K(),_.C("isActive","hasError","isPlayerStarted"),_.U("design:type",Object),_.U("design:paramtypes",[])],bn.prototype,"shouldRenderPlayerElements",null);_.E([_.K(),_.C("isActive","isWatchWhileMode"),_.U("design:type",Object),_.U("design:paramtypes",[])],bn.prototype,"watchWhileOrPersistentActive",null);_.E([_.cW("isActive","hasError","showingExpandedOverlay"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bn.prototype,"updateShouldHideOverlay",null);
_.E([_.K({reflectToAttribute:!0}),_.C("isActive","isPlayerStarted","data"),_.U("design:type",Object),_.U("design:paramtypes",[])],bn.prototype,"shouldRenderScrubber",null);_.E([_.cW("shouldRenderScrubber"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bn.prototype,"onScrubberDataChange",null);_.E([_.C("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.U("design:type",Object),_.U("design:paramtypes",[])],bn.prototype,"overlayComponent",null);
_.E([_.cW("watchWhileEngagementPanels"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bn.prototype,"onEngagementPanelsChanged",null);_.E([_.rt("#player-container"),_.U("design:type",HTMLElement)],bn.prototype,"playerContainer",void 0);_.E([_.rt("#cinematic-container"),_.U("design:type",HTMLElement)],bn.prototype,"cinematicContainer",void 0);
_.E([_.cW("isPersistentPanelActive","data.thumbnail"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bn.prototype,"maybeLogNonDefaultAspectRatio",null);_.E([_.cW("isPersistentPanelActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bn.prototype,"calculateOverlayDensity",null);_.E([_.cW("overlayDensity"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bn.prototype,"onOverlayDensityChange",null);
_.E([_.p({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],bn);
_.N(bn,"ytd-reel-video-renderer",function(){if(lCq!==void 0)return lCq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return lCq=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var kv=function(){var X=_.O.apply(this,arguments)||this;X.isPreviousPageShorts=!1;X.index=0;X.delayedActiveIndex=0;X.playablePreviousIndex=null;X.isPlayerPaused=!1;X.isPlayerStarted=!1;X.intersectionObserverThreshold=.6;X.fitToVisibleBounds=!1;X.pageSubtype="shorts";X.enablePreviousContinuation=_.A("shorts_in_playlists_web");X.shortsPipEnabled=_.A("web_shorts_pip");X.isDark=document.documentElement.hasAttribute("dark");X.shortsViewTransitions=_.A("web_shorts_view_transitions");X.isFullscreen=!1;X.isShortsPipActive=
!1;X.buttonOverride={iconPosition:"icon-only",size:"XL"};X.anchoredPanelActive=!1;X.isActive=!1;X.smallScreenPersistentPanel=!1;X.isPersistentPanelActive=!1;X.smallScreenSqueezeBack=!1;X.enableScrollIntoViewCenter=_.A("web_scroll_into_view_center");X.formatFirst=_.A("web_enable_format_first")||_.A("web_enable_format_first_ads_only")||_.A("web_enable_format_first_organic_only");X.enableFlexibleOverlay=_.A("web_enable_flexible_overlay");X.useAspectRatio=_.A("web_use_aspect_ratio");X.isShortsInitialized=
!1;X.hidePreviousButtonImmediately=!1;X.showPreviousButtonImmediately=!1;X.endOfNextContinuation=!1;X.currentPlayerIndex=0;X.nextReelVe=_.ai(56921);X.prevReelVe=_.ai(56922);X.loopToggleOffVe=_.ai(198013);X.loopToggleOnVe=_.ai(198014);X.ambientModeToggleVe=_.ai(227860);X.reelPlayerPausedStateRendererVe=_.ai(141313);X.storedPlaybackSpeed=null;X.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"};X.onOverlayDensityChanged=function(t,G){var y;(y=X.getActiveReelVideo(t))==null||y.setAttribute("overlay-density",String(G))};
return X};
_.S(kv,_.O);_.H=kv.prototype;
_.H.deflateInactivePreviousSlides=function(){var X=_.At("web_shorts_deflate_inactive_slides_aggressive_distance");if(X>0&&this.shortsProcessedSequence&&this.activeIndex){X=this.activeIndex-X;for(var t=0;t<=X;t++){var G=void 0;((G=this.shortsProcessedSequence[t].reelPlayerOverlayRenderer)==null?0:G.metapanel)&&this.set("shortsProcessedSequence."+t+".reelPlayerOverlayRenderer",{});G=void 0;((G=this.shortsProcessedSequence[t].adsOverlay)==null?0:G.adSlotMetadata)&&this.set("shortsProcessedSequence."+t+
".adsOverlay",{})}}};
_.H.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.H.onResize=function(){var X=_.dV(),t=X.dispatch,G=this.calculateIsSmallWidth();t.call(X,_.Dl({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:G}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.H.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:_.A("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}}};
_.H.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var X=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,t=X,G=0;X<250&&(t=X+this.shortsInnerContainer.clientWidth,G=24);_.Kd(this.hostElement,{"--ytd-shorts-header-width":t+"px","--ytd-shorts-top-spacing":G+"px"})}};
_.H.isFirstShorts=function(X){return X?this.index===-X.length:this.index===0};
_.H.isActiveReel=function(X,t,G){G&&(t=this.calculatePrevIndex(t,G));return X===t};
_.H.onFullscreenChange=function(){if(_.A("web_fullscreen_shorts")){var X;(X=this.getActiveReelVideo(this.activeIndex))==null||X.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.gw().resolve(_.G2).close(!0)}};
_.H.engagementPanelsChanged=function(){var X;this.watchWhileEngagementPanels=(X=this.data)==null?void 0:X.engagementPanels};
_.H.unregisterPanels=function(){var X=_.gw().resolve(_.mD);if(this.watchWhileEngagementPanels)for(var t=_.J(this.watchWhileEngagementPanels),G=t.next();!G.done;G=t.next()){var y=G.value,w=void 0,z=void 0;G=(w=y.engagementPanelSectionListRenderer)==null?void 0:(z=w.identifier)==null?void 0:z.tag;y=this.getPanelContentIdentifier(y.engagementPanelSectionListRenderer);X&&(G&&X.panelMap.delete(G),y&&_.A("web_shorts_panel_caching_bugfix")&&(w=G=void 0,(w=(G=X).unregisterPanelContent)==null||w.call(G,y)))}};
_.H.isVideoContent=function(X){return this.isVideoContentCommand(X==null?void 0:X.command)};
_.H.getActiveReelVideo=function(X){return _.Sm(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+X+'"]')};
_.H.calculatePrevIndex=function(X,t){return t?X-((t==null?void 0:t.length)||0):-1};
_.H.onKeydown=function(X){var t=_.be(X)||[];if(!_.GjH(t))if(X.code==="ArrowUp")X.preventDefault(),this.handlePrevButtonClick();else if(X.code==="ArrowDown")X.preventDefault(),this.handleNextButtonClick();else if(X.code==="KeyM")this.toggleMuteUnmuteVideo();else if(X.code==="KeyK"||X.code==="Space")this.togglePlayPauseVideo();else if((X.code==="KeyA"||X.code==="ArrowLeft")&&_.A("web_shorts_keyboard_enable_seek_shortcuts")){var G;(G=this.player)==null||G.seekBy(-5)}else if((X.code==="KeyD"||X.code===
"ArrowRight")&&_.A("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var y;(y=this.player)==null||y.seekBy(5)}};
_.H.onServiceRequestCompleted=function(X,t){X=t.data;X.continuationEndpoint&&X.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:X.entries,continuationEndpoint:X.continuationEndpoint}}):X.prevContinuationEndpoint&&X.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:X.prevEntries,prevContinuationEndpoint:X.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.H.handleEngagementPanelVisibilityChanged=function(X,t){var G=_.gw().resolve(_.mD);if(X&&G){var y=this.getPanelIdentifier(X);if(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==y){G.hidePanel(this.activePanel);var w;this.activePanel=((w=X.identifier)==null?void 0:w.tag)||X.panelIdentifier}else this.isPersistentPanelActive=!0,_.dV().dispatch(h$a(!0)),this.anchoredPanelActive=!0,this.activePanel=y;else t==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
y&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.dV().dispatch(h$a(!1)))}};
_.H.handlePanelScrimClick=function(){var X=_.gw().resolve(_.mD);this.activePanel&&(X.hidePanel(this.activePanel),_.dV().dispatch(h$a(!1)))};
_.H.getShortsLoopSetting=function(){var X,t,G,y,w;return _.n(function(z){switch(z.nextAddress){case 1:return _.A("kevlar_shorts_auto_advance")?z.yield(_.ig.getInstance(),2):z.return(!0);case 2:return(X=z.yieldResult)?z.yield(X.get("sfvles"),3):z.return(!0);case 3:return G=(t=z.yieldResult)!=null?t:!1,z.yield(X.get("sfvle"),4);case 4:return w=(y=z.yieldResult)!=null?y:!0,G?z.return(w):z.return(!0)}})};
_.H.handleSignalActionToggleLoopShortsOff=function(){var X=this,t,G,y;return _.n(function(w){switch(w.nextAddress){case 1:if(!X.player)return w.return();X.player.setLoopVideo(!1);t=_.Pj();_.OE(t,X.loopToggleOffVe);return w.yield(_.ig.getInstance(),2);case 2:return(G=w.yieldResult)?w.yield(G.set("sfvle",!1),3):w.return();case 3:return w.yield(G.set("sfvles",!0),4);case 4:y=_.cP(),_.pq(0,203,!1),_.pq(0,204,!0),y.save(),_.W$(w)}})};
_.H.handleSignalActionToggleLoopShortsOn=function(){var X=this,t,G,y;return _.n(function(w){switch(w.nextAddress){case 1:if(!X.player)return w.return();X.player.setLoopVideo(!0);t=_.Pj();_.OE(t,X.loopToggleOnVe);return w.yield(_.ig.getInstance(),2);case 2:return(G=w.yieldResult)?w.yield(G.set("sfvle",!0),3):w.return();case 3:return w.yield(G.set("sfvles",!0),4);case 4:y=_.cP(),_.pq(0,203,!0),_.pq(0,204,!0),y.save(),_.W$(w)}})};
_.H.handleSignalActionToggleCinematicShortsOn=function(){Vza(!0);var X;(X=this.JSC$22056_cinematicController)==null||_.ovT(X,!0);_.OE(_.Pj(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.H.handleSignalActionToggleCinematicShortsOff=function(){Vza(!1);var X;(X=this.JSC$22056_cinematicController)==null||_.ovT(X,!1);_.OE(_.Pj(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.H.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.H.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.H.unhideCurrentOverlay=function(){if(this.overlayContainer){var X=this.overlayContainer.querySelector("#experiment-overlay");X&&_.vz.addLowPriorityJob(function(){X.style.display="unset"},100)}};
_.H.getCurrentShort=function(){if(this.currentEndpoint){var X=this.currentEndpoint;if(this.isNonVideoContentCommand(X)){var t=_.Y(X,_.$n);return{reelNonVideoContentRenderer:_.Y(t==null?void 0:t.renderer,_.F2S),command:X}}if(this.data){var G;t=(G=_.Y(this.currentEndpoint,_.E8))==null?void 0:G.thumbnail;var y;G=(y=this.data.overlay)==null?void 0:y.reelPlayerOverlayRenderer;_.gw().resolve(_.rv);X=this.data;var w,z;y=(w=X.overlay)==null?void 0:(z=w.shortsAdsRenderer)==null?void 0:z.adSlots;if(y!==void 0)y.length===
0?(_.g2("Shorts ads returned no ad slots."),X=void 0):(y.length>1&&_.g2("Shorts ads has more than one ad slots."),X=_.Y(y[0],_.NaB));else{var B,V;X=_.Y((B=X.overlay)==null?void 0:(V=B.shortsAdsRenderer)==null?void 0:V.overlay,_.NaB)}B=X;X=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.Y(this.currentEndpoint,_.E8),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:G,thumbnail:t,command:X,adsOverlay:B}}}};
_.H.created=function(){var X=this;this.scrollToVideoThrottle=new _.d2(function(t){var G;(G=X.getActiveReelVideo(t))==null||G.scrollIntoView({behavior:"smooth",block:"nearest",inline:X.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.d2(function(t){var G;(G=X.getActiveReelVideo(t))==null||G.scrollIntoView({behavior:"auto",block:"nearest",inline:X.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.H.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.H.attached=function(){var X=this;_.gw().resolve(_.rv).registerRootElement(this);this.pageScrollElement=_.Sm(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Ik(this,this.processResetAction));_.A("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var t=X.getActiveReelVideo(X.activeIndex);X.maybeCreateIntersectionObserver();t==null||t.scrollIntoView({behavior:"instant",
block:"nearest",inline:X.enableScrollIntoViewCenter?"center":"start"});X.shortsContainer.style.overflowY="scroll"}))};
_.H.calculateSqueezebackPanelSize=function(){var X=this,t=window.innerWidth-456-(window.innerHeight-106)*.5625;_.vz.addLowPriorityJob(function(){t<360?_.dV().dispatch(ZHr(!0)):(X.hostElement.style.setProperty("--anchored-panel-width",Math.min(t,480)+"px"),_.dV().dispatch(ZHr(!1)))})};
_.H.detached=function(){var X=_.gw().resolve(_.rv);X.rootElement=void 0;var t;(t=X.unsubscribeFromStore)==null||t.call(X);X.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Ik(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.H.onResizeFinished=function(X,t){var G=this,y=new ResizeObserver(function(){G.shortsContainer.style.overflowY="hidden";_.vz.addLowPriorityJob(function(){t()},100)});
y.observe(X);return y};
_.H.resetDocumentScrollTop=function(){var X,t;if((X=document)==null?0:(t=X.scrollingElement)==null?0:t.scrollTop)document.scrollingElement.scrollTop=0};
_.H.loadPage_=function(X){var t=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),X){var G;!_.A("web_enable_delay_shorts_sequence_call")&&((G=_.Y(this.currentEndpoint,_.E8))==null?0:G.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=X;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){t.isPlayerStarted&&(t.handleOnPlaybackCommand(),t.afterPlayerStarted=function(){})};
this.registerPanel(X)}};
_.H.afterPlayerStarted=function(){};
_.H.handleOnPlaybackCommand=function(){if(_.A("web_shorts_comment_stickers")&&this.isPlayerStarted){var X,t=(X=_.Y(this.currentEndpoint,_.E8))==null?void 0:X.onPlaybackCommand;t&&this.ytComponentBehavior.resolveCommand(t)}};
_.H.maybeCreateIntersectionObserver=function(){var X=this,t=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==t){this.intersectionObserverThreshold=t;var G={rootMargin:"0px",threshold:t},y;(y=this.intersectionObserver)==null||y.disconnect();this.intersectionObserver=new IntersectionObserver(function(w){w=_.J(w);for(var z=w.next();!z.done;z=w.next())if(z=z.value,z.intersectionRatio>t){z=Number(z.target.id);if(isNaN(z))break;if(z===X.index)break;
_.UDJ();X.loadVideo(z);_.fq("r_vtc")}},G);
this.observeShorts()}};
_.H.observeShorts=function(){var X=[].concat(_.RY(_.Sm(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));X=_.J(X);for(var t=X.next();!t.done;t=X.next()){t=t.value;var G=void 0;(G=this.intersectionObserver)==null||G.observe(t)}};
_.H.initCsi=function(){_.Dq("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var X={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"}},t,G;if((t=this.playerData)==null?0:(G=t.cacheMetadata)==null?0:G.isCacheHit)X.isCacheHit=!0;var y;if(t=(y=_.Y(this.currentEndpoint,_.E8))==null?void 0:
y.prefetchTaskId)X.prefetchInfo={taskId:t};_.vP(X)};
_.H.isAd=function(){var X,t;return!!((X=_.Y(this.currentEndpoint,_.E8))==null?0:(t=X.adClientParams)==null?0:t.isAd)};
_.H.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.H.getPlayerContainer=function(){var X;return(X=_.Sm(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:X.playerContainer};
_.H.onPlayerStateChange=function(X){var t=this;this.isPlayerPaused=X===2;X!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?X===1&&this.index===0&&(this.isPlayerStarted||_.dV().dispatch(yn(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.dV().dispatch(yn(!0)));this.player&&!this.player.getLoopVideo()&&_.vz.addLowPriorityJob(function(){t.getShortsLoopSetting().then(function(G){var y;(y=t.player)==null||y.setLoopVideo(G)})});
this.isPlayerPaused&&_.A("web_shorts_paused_state_logging")&&_.o$(_.lw(),[this.reelPlayerPausedStateRendererVe])};
_.H.isInBackground=function(){var X=window.document.visibilityState;return!(!X||X==="visible")};
_.H.isShortPlayable=function(){if(_.A("kevlar_playable_short_killswitch"))return!0;var X;return(X=this.playerData)!=null&&X.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.H.setNormalPlaybackSpeed=function(){var X=this,t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(X.getPlayer().getPlayerPromise(),2);t=y.yieldResult;G=t.getPlaybackRate();G!==1&&(X.storedPlaybackSpeed=G,t.setPlaybackRate(1));_.W$(y)})};
_.H.restorePlaybackSpeed=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1)return X.storedPlaybackSpeed===null?G.jumpTo(0):G.yield(X.getPlayer().getPlayerPromise(),3);t=G.yieldResult;t.setPlaybackRate(X.storedPlaybackSpeed);X.storedPlaybackSpeed=null;_.W$(G)})};
_.H.playerDataChanged=function(){var X=this,t,G,y,w,z,B,V,b,e;return _.n(function(g){if(g.nextAddress==1){t=X.getPlayer();(G=X.intersectionObserver)==null||G.disconnect();if(X.playerData){if(((y=X.playerData.videoDetails)==null?void 0:y.videoId)!==((w=t.getPlayer())==null?void 0:w.getVideoData().video_id)){z={};if(B=_.Y(X.currentEndpoint,_.E8))z.watch_endpoint=B,B.endTimeSeconds&&(z.end=B.endTimeSeconds);t.loadVideoWithPlayerResponse(X.playerData,z)}}else return g.return();return X.player?g.jumpTo(2):
g.yield(t.getPlayerPromise(),3)}g.nextAddress!=2&&(X.player=g.yieldResult,X.JSC$22056_playerStateChangeListener=X.onPlayerStateChange.bind(X),X.player.addEventListener("onStateChange",X.JSC$22056_playerStateChangeListener),_.A("kevlar_client_enable_shorts_player_bootstrap")&&_.Ji(),X.scrollToVideoThrottle.fire(X.index),X.movePlayerToVideo(X.index),_.vz.addLowPriorityJob(function(){X.getShortsLoopSetting().then(function(F){var T;(T=X.player)==null||T.setLoopVideo(F)})}),_.w5t.resolve(X.player),X.player.syncVolume(),
X.getPlayer().focusOnPlayer());
_.vz.addLowPriorityJob(function(){X.observeShorts()},100);
V=X.player.getPlayerState(X.player.getPresentingPlayerType());V!==1||X.isPlayerStarted||_.dV().dispatch(yn(!0));X.updateBackNavContainerWidth();b=_.Y(X.currentEndpoint,_.E8);((e=b)==null?0:e.startTimeSeconds)&&X.player.seekTo(b.startTimeSeconds);if(X.JSC$22056_cinematicController||X.cinematicsInitializeJobId)return g.return();X.cinematicsInitializeJobId=_.vz.addLowPriorityJob(function(){X.initCinematicController();X.cinematicsInitializeJobId=void 0});
_.W$(g)})};
_.H.onShortUndoDismiss=function(){var X=this,t=SMa().pop();t!==void 0&&(_.V8(this,function(){X.showCardWithIndex(t)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.H.onShortsDismiss=function(X){if(X=X.detail.reelDismissalActionRenderer)(X=_.Y(X.onDismissalCompletionRenderer,_.rOH))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:X}}}),this.scrollAndDismissCard()};
_.H.processReelNonVideoContentDismissalCommand=function(X){var t=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);X=_.Y(X,csi);this.activeDimissalTimeout=setTimeout(function(){t.scrollAndDismissCard()},Number(X==null?void 0:X.delayMs))};
_.H.scrollAndDismissCard=function(){var X=this,t=this.index;SMa().push(t);_.V8(this,function(){var G=X.getPlayableNextIndex();G!==null&&(G=X.getActiveReelVideo(G),X.hideCardWithIndex(t),G==null||G.scrollIntoView({behavior:"smooth",block:"nearest",inline:X.enableScrollIntoViewCenter?"center":"start"}))})};
_.H.hideCardWithIndex=function(X){if(X=this.getActiveReelVideo(X))X.hidden=!0};
_.H.showCardWithIndex=function(X){if(X=this.getActiveReelVideo(X))X.hidden=!1};
_.H.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.H.activeChanged=function(X){_.dV().dispatch(_.Dl({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:X}}));if(X)document.addEventListener("keydown",_.Ik(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var t;(t=this.player)==null||t.sendAbandonmentPing()}var G;(G=this.player)==null||G.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Ik(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.H.graftClientVisualElements=function(){if(this.data){var X=_.Pj();_.w7o(X,_.qY({response:this.reelWatchSequenceResponse}));_.Cc(X,this.nextReelVe);_.Cc(X,this.prevReelVe);_.A("kevlar_shorts_auto_advance")&&(_.Cc(X,this.loopToggleOffVe),_.Cc(X,this.loopToggleOnVe));_.Cc(X,this.ambientModeToggleVe);_.o$(_.lw(),[this.nextReelVe,this.prevReelVe]);_.A("web_shorts_paused_state_logging")&&_.Cc(X,this.reelPlayerPausedStateRendererVe)}};
_.H.graftNvcRenderer=function(){var X,t,G,y,w=this.index<0?(X=this.shortsProcessedPrevSequence)==null?void 0:(t=X[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:t.command:(G=this.shortsProcessedSequence)==null?void 0:(y=G[this.index])==null?void 0:y.command;if(w&&this.isNonVideoContentCommand(w)){X=_.Y(w,_.$n);var z,B;(X=(z=_.Y(X==null?void 0:X.renderer,_.F2S))==null?void 0:(B=z.loggingDirectives)==null?void 0:B.trackingParams)&&_.Pj().graftServerVe(X)}};
_.H.setActiveIndex=function(){_.gw().resolve(_.rv).setActiveIndex(this.index)};
_.H.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.H.lazyUpdateMiniplayerData=function(){var X=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.vz.addLowPriorityJob(function(){X.updateMiniplayerData();X.updateMiniplayerDataJobId=void 0}))};
_.H.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.vz.cancelJob(this.updateMiniplayerDataJobId)};
_.H.updateMiniplayerData=function(){var X,t,G,y=_.gw().resolve(_.G2),w={shortsData:this.getCurrentShort(),previousButtonDisabled:!((X=this.prevButtonData)==null||!X.isDisabled),nextButtonDisabled:!((t=this.nextButtonData)==null||!t.isDisabled),playabilityStatus:(G=this.playerData)==null?void 0:G.playabilityStatus};_.l3(y,w)};
_.H.resetPlayerLocation=function(){var X=this.getPlayer();this.initialPlayerContainer&&X.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.H.movePlayerToVideo=function(X,t){var G=this;t=t===void 0?!0:t;var y=this.getActiveReelVideo(X),w=this.getPlayer();if(y){this.overlayContainer?y.appendChild(this.overlayContainer):(this.overlayContainer=_.Sm(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,y.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||w.appendTo(this.overlayContainer.playerContainer,void 0,!0));var z;(z=this.player)==null||z.setSize(NaN,NaN);this.isActive||_.PO(_.vz,function(){G.isActive=
!0});
w.style.visibility="visible";_.A("reels_web_disable_rtr_tick")||_.A("reels_web_use_pbs_first_shorts")&&X===0||_.ls("r_tr");this.currentPlayerIndex=X;y.appendChild(this.errorScreenContainer);var B;(B=this.JSC$22056_cinematicController)==null||_.BOi(B)}else t?_.vz.addLowPriorityJob(function(){G.movePlayerToVideo(G.index,!1)}):Math.random()<=_.At("web_shorts_error_logging_threshold")&&_.fh(new _.NJ("Trying to movePlayerToVideo with undefined container.",{firstAttempt:t,
index:X}))};
_.H.enableFormatFirst=function(X){return _.A("web_enable_format_first")||X.adsOverlay&&_.A("web_enable_format_first_ads_only")||X.reelPlayerOverlayRenderer&&_.A("web_enable_format_first_organic_only")};
_.H.getAspectRatio=function(X){if(X!=null&&X.thumbnail&&this.enableFormatFirst(X))return"--ytd-shorts-player-ratio: "+bHQ(X.thumbnail)};
_.H.getBackgroundImage=function(X){if(X!=null&&X.thumbnail)return(X=_.hH(X.thumbnail.thumbnails))?'background-image:url("'+X+'");':"background-color:black;"};
_.H.onPersistentPanelActiveChanged=function(){var X=this.getCurrentShort();if(X&&this.enableFormatFirst(X)&&(X==null?0:X.thumbnail)&&bHQ(X.thumbnail)!==.5625){var t;(t=this.player)==null||t.setSize(NaN,NaN)}};
_.H.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.H.moveCinematicsToVideo=function(){var X=_.Sm(this.hostElement).querySelector("ytd-reel-video-renderer");(X==null?0:X.cinematicContainer)&&X.cinematicContainer!==this.shortsCinematicContainer.parentElement&&X.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.H.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.H.updatePrevButtonData=function(){var X=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(X){var t;this.prevButtonData=X=Object.assign({},X,{accessibility:{label:_.Qf("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:X.isDisabled||this.index===-(((t=this.shortsProcessedPrevSequence)==null?void 0:t.length)||0),tooltip:this.isUpArrowHidden?"":_.Qf("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=X=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.H.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.H.updateNextButtonData=function(){var X=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(X){var t;this.nextButtonData=X=Object.assign({},X,{accessibility:{label:_.Qf("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:X.isDisabled||this.index===((t=this.shortsProcessedSequence)==null?void 0:t.length),tooltip:_.Qf("NEXT_VIDEO_LABEL")||""})}};
_.H.getPlayablePreviousIndex=function(){for(var X,t=this.index-1;t>=-(((X=this.prevShortsSequence)==null?void 0:X.length)||0);t--)if(!SMa().includes(t))return t;return null};
_.H.getIndexInSequence=function(X,t){return X.findIndex(function(G){var y;return((y=_.Y(G.command,_.E8))==null?void 0:y.videoId)===t})};
_.H.handlePrevButtonClick=function(X){var t=this,G,y;return _.n(function(w){G=t.getPlayablePreviousIndex();if(G===null)return w.return();t.gestureType=((y=X)==null?void 0:y.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";G===0&&(t.hidePreviousButtonImmediately=!0);if(t.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){t.transitionToVideoThrottle.fire(G)}),w.return();
t.scrollToVideoThrottle.fire(G);_.W$(w)})};
_.H.getPlayableNextIndex=function(){for(var X,t=this.index+1;t<(((X=this.shortsProcessedSequence)==null?void 0:X.length)||0);t++)if(!SMa().includes(t))return t;return null};
_.H.handleNextButtonClick=function(X,t){var G=this,y,w;return _.n(function(z){y=G.getPlayableNextIndex();if(y===null)return z.return();y===1&&(G.showPreviousButtonImmediately=!0);G.gestureType=((w=X)==null?void 0:w.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";t&&(G.gestureType=t);if(G.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){G.transitionToVideoThrottle.fire(y)}),z.return();
G.scrollToVideoThrottle.fire(y);_.W$(z)})};
_.H.handleReelNavigateCommand=function(X,t,G){(X=_.Y(X,W7q))&&t&&X.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(G)};
_.H.loadVideo=function(X,t){t=t===void 0?!1:t;if(X!==this.currentPlayerIndex){_.dV().dispatch(yn(!1));if(this.isAd()&&!t){var G;(G=this.player)==null||G.notifyShortsAdSwipeEvent()}if((t=this.JSC$22056_cinematicController)!=null){var y;(y=t.currentCinematicEffect)==null||y.pause()}if((y=this.JSC$22056_cinematicController)!=null){var w;(w=y.currentCinematicEffect)==null||w.clear()}y=X>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(y));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var z,B,V,b;w=X<0?(z=this.shortsProcessedPrevSequence)==null?void 0:(B=z[this.shortsProcessedPrevSequence.length+X])==null?void 0:B.command:(V=this.shortsProcessedSequence)==null?void 0:(b=V[X])==null?void 0:b.command;this.index=X;this.gestureType||(this.gestureType=y?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
w&&this.isVideoContentCommand(w)&&(this.ytComponentBehavior.resolveCommand(w,{form:{createScreenConfig:{clickedVisualElement:y?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(w&&this.isNonVideoContentCommand(w)){this.currentEndpoint=w;this.data=void 0;z=_.Pj();B=_.Y(w,_.$n);var e,g;(B=(e=_.Y(B==null?void 0:B.renderer,_.F2S))==null?void 0:(g=e.screenLoggingData)==null?void 0:g.screenVeType)&&_.qP(z,B);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(e=this.getActiveReelVideo(X))&&e.appendChild(this.overlayContainer)}var F,T;if(((F=this.reelWatchSequenceResponse)==null?0:F.continuationEndpoint)&&((T=this.reelWatchSequenceResponse)==null?0:T.entries)&&X===this.reelWatchSequenceResponse.entries.length-1){var D,h;F={contentPlaybackContext:_.Rc({},(h=_.Y((D=this.currentEndpoint)==null?void 0:D.commandMetadata,_.jQ))==null?void 0:h.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:F})}var u,W,c;((u=this.reelWatchSequenceResponse)==null?0:u.prevContinuationEndpoint)&&X===-(((W=this.reelWatchSequenceResponse)==null?void 0:(c=W.prevEntries)==null?void 0:c.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.H.setMiniplayerPreview=function(X){X=(X===void 0?0:X)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var t,G,y=_.gw().resolve(_.G2),w={shortsData:void 0,shortsPreviewThumbnail:X?(t=this.shortsProcessedSequence)==null?void 0:(G=t[X])==null?void 0:G.thumbnail:void 0};_.l3(y,w)};
_.H.updateTitle=function(X){var t,G;X=(X==null?0:X.adSlots)?"":(G=X==null?void 0:(t=X.videoDetails)==null?void 0:t.title)!=null?G:"";_.Yt(this.hostElement,"yt-update-title",X)};
_.H.registerPanel=function(X){var t=_.gw().resolve(_.mD);if(t){X=_.J(X.engagementPanels||[]);for(var G=X.next();!G.done;G=X.next()){G=G.value;var y=this.getPanelContentIdentifier(G.engagementPanelSectionListRenderer),w=void 0,z=void 0;(z=(w=t).registerPanelContent)==null||z.call(w,y,G)}}};
_.H.getPanelIdentifier=function(X){var t;return(X==null?void 0:(t=X.identifier)==null?void 0:t.tag)||(X==null?void 0:X.panelIdentifier)||(X==null?void 0:X.targetId)};
_.H.getPanelContentIdentifier=function(X){var t;return(X==null?void 0:X.targetId)||(X==null?void 0:X.panelIdentifier)||(X==null?void 0:(t=X.identifier)==null?void 0:t.tag)};
_.H.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;_.dV().dispatch(yn(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.dV().dispatch(h$a(!1));var X=_.gw().resolve(_.rv);X.dismissedIndices=[];X.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.gw().resolve(_.G2).close(!0)};
_.H.processAppendReelWatchSequenceContinuationEntriesAction=function(X){var t=this,G;(G=this.intersectionObserver)==null||G.disconnect();X=X.appendReelWatchSequenceContinuationEntriesAction;if(X==null?0:X.entries){var y;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.RY(((y=this.reelWatchSequenceResponse)==null?void 0:y.entries)||[]),_.RY(X.entries)),continuationEndpoint:X.continuationEndpoint})}else if(X==null?0:X.prevEntries){var w;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.RY(((w=this.reelWatchSequenceResponse)==null?void 0:w.prevEntries)||[]),_.RY(X.prevEntries)),prevContinuationEndpoint:X.prevContinuationEndpoint});_.vz.addLowPriorityJob(function(){t.movePlayerToVideo(t.index);var z;(z=t.getActiveReelVideo(t.index))==null||z.scrollIntoView({block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.vz.addLowPriorityJob(function(){t.observeShorts()},100)};
_.H.processWatchSequence=function(X){var t=this;return X.map(function(G){G=G.command;if(t.isVideoContentCommand(G)){var y=_.Y(G,_.E8);return{reelPlayerOverlayRenderer:_.Y(y==null?void 0:y.overlay,_.TBJ),thumbnail:y.thumbnail,command:G}}return t.isNonVideoContentCommand(G)?(y=_.Y(G,_.$n),{reelNonVideoContentRenderer:_.Y(y==null?void 0:y.renderer,_.F2S),command:G}):{command:G}})};
_.H.calculateIntersectionObserverThreshold=function(){var X=_.Sm(this.hostElement).querySelector("ytd-reel-video-renderer"),t=1;(X==null?0:X.offsetHeight)&&(X==null?0:X.offsetWidth)&&(t=Math.min(X.offsetHeight,this.shortsContainer.offsetHeight)/X.offsetHeight*(Math.min(X.offsetWidth,this.shortsContainer.offsetWidth)/X.offsetWidth));return Math.round(t*.6*10)/10};
_.H.isVideoContentCommand=function(X){_.gw().resolve(_.rv);return!!_.Y(X,_.E8)};
_.H.isNonVideoContentCommand=function(X){_.gw().resolve(_.rv);return!!_.Y(X,_.$n)};
_.H.initCinematicController=function(){var X=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22056_cinematicController=new _.Gs(this.shortsCinematicContainer,this.player);var t,G=_.Y((t=this.data)==null?void 0:t.background,_.AU);_.JsB(this.JSC$22056_cinematicController,G);_.ovT(this.JSC$22056_cinematicController,nvV(G));_.HHr(this.JSC$22056_cinematicController);_.vz.addLowPriorityJob(function(){X.moveCinematicsToVideo()})}};
_.H.handleMiniplayerNavigateShorts=function(X){X==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():X==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.H.handleSignalActionToggleShortsPictureInPicture=function(){if(_.gw().resolve(_.G2).pictureInPictureSupported()){var X=_.gw().resolve(_.rv);if(_.A("web_shorts_pip")){var t=_.gw().resolve(_.G2);X.isShortsPipActive()?t.deactivate():t.isMiniplayerActive()||(_.cF().shortsPipActivation=!0,_.Tpr(t))}}else(X=this.player)==null||X.togglePictureInPicture()};
_.ke.Object.defineProperties(kv.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.reelWatchSequenceResponse)!=null&&X.prevEntries)return this.processWatchSequence([].concat(_.RY(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var X=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!X)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var t=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.RY(this.prevShortsSequence.slice(0,t)),[X],_.RY(this.prevShortsSequence.slice(t+
1)))}t=this.index+this.shortsProcessedPrevSequence.length;X.thumbnail=this.shortsProcessedPrevSequence[t].thumbnail;return[].concat(_.RY(this.shortsProcessedPrevSequence.slice(0,t)),[X],_.RY(this.shortsProcessedPrevSequence.slice(t+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.reelWatchSequenceResponse)!=null&&X.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var X=this.getCurrentShort();if(!X||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[X];if(X==null||!X.reelNonVideoContentRenderer){var t=this.getIndexInSequence(this.shortsSequence,_.Y(this.currentEndpoint,_.E8).videoId);if(this.index===0&&t!==-1)return this.currentPlayerIndex=this.index=t,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.RY(this.shortsSequence.slice(0,this.index)),[X],_.RY(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){X.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var G,y,w,z;t=((y=_.Y((G=this.shortsProcessedSequence[0])==null?void 0:G.command,_.E8))==null?void 0:y.videoId)===((z=_.Y((w=this.shortsSequence[0])==null?void 0:w.command,_.E8))==null?void 0:z.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.RY(this.shortsProcessedSequence.slice(0,
this.index)),[X],_.RY(this.shortsSequence.slice(t)))}return[X].concat(_.RY(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var X=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;X&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(X)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 X,t;return this.index===((X=this.reelWatchSequenceResponse)==null?void 0:(t=X.entries)==null?void 0:t.length)}var G;return!((G=this.reelWatchSequenceResponse)==null?0:G.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var X;(X=this.delayedActiveIndexUpdateDebouncer)==null||X.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return this.isShortPlayable()||((t=_.Y((X=this.data)==null?void 0:X.watchStatus,_.CYq))==null?void 0:(G=t.style)==null?void 0:G.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var X=this,t=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),G;if((this.data||t)&&(((G=this.data)==null?0:G.engagementPanels)||this.isAd()||t)){t=!1;this.activePanel="shorts-comments-panel";var y;G=_.J(((y=this.data)==null?void 0:y.engagementPanels)||[]);for(y=G.next();!y.done;y=G.next())if(this.getPanelIdentifier(y.value.engagementPanelSectionListRenderer)===this.activePanel){t=!0;break}if(this.isPersistentPanelActive){var w=
_.gw().resolve(_.mD);_.PO(_.vz,function(){w.showPanel(X.activePanel,void 0,void 0,void 0,null)},100)}var z;
y=[].concat(_.RY(Object.values(((z=this.data)==null?void 0:z.engagementPanels)||{})));if(_.A("enable_preview_panel_for_shorts_search_suggested_action")){var B,V,b,e,g;((e=_.Y((B=this.data)==null?void 0:(V=B.overlay)==null?void 0:(b=V.reelPlayerOverlayRenderer)==null?void 0:b.metapanel,_.g_4))==null?void 0:(g=e.metadataItems)==null?void 0:g.find(function(F){var T,D;return((T=_.Y(F,rsR))==null?void 0:(D=T.icon)==null?void 0:D.iconType)==="SEARCH"}))!==void 0&&y.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}z=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);B=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return z===void 0&&B===void 0||(z==null?0:z.isDisabled)||(B==null?void 0:B.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!t?(t=y==null?void 0:y.findIndex(function(F){var T,
D;return((T=F.engagementPanelSectionListRenderer)==null?void 0:(D=T.identifier)==null?void 0:D.tag)==="shorts-comments-panel"}),t===-1||t===void 0||y!=null&&y.splice(t,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Qf("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Qf("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:_.Qf("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Qf("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(_.RY(Object.values(y||
{})))):y}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.shortsProcessedSequence)==null?void 0:X[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var X=this,t,G,y;if((t=this.playerData)==null?0:(G=t.playabilityStatus)==null?0:(y=G.errorScreen)==null?0:y.playerInterstitialRenderer)return _.vz.addLowPriorityJob(function(){X.movePlayerToVideo(X.index)}),this.playerData.playabilityStatus.errorScreen;
var w,z;return((w=this.data)==null?void 0:w.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((z=this.data)==null?0:z.watchStatus)&&_.Y(this.data.watchStatus,_.Syo)?(_.vz.addLowPriorityJob(function(){X.movePlayerToVideo(X.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.ke.Object.defineProperties(kv,{template:{configurable:!0,enumerable:!0,get:function(){if(PnH===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);PnH=X}X=PnH;return X}}});
kv.prototype.onNextButtonDataChange=kv.prototype.onNextButtonDataChange;kv.prototype.onPrevButtonDataChange=kv.prototype.onPrevButtonDataChange;kv.prototype.onPersistentPanelActiveChanged=kv.prototype.onPersistentPanelActiveChanged;kv.prototype.lazyUpdateMiniplayerData=kv.prototype.lazyUpdateMiniplayerData;kv.prototype.onShortsPipActiveChanged=kv.prototype.onShortsPipActiveChanged;kv.prototype.setActiveIndex=kv.prototype.setActiveIndex;kv.prototype.graftNvcRenderer=kv.prototype.graftNvcRenderer;
kv.prototype.graftClientVisualElements=kv.prototype.graftClientVisualElements;kv.prototype.onActiveChanged=kv.prototype.onActiveChanged;kv.prototype.onShortsDismiss=kv.prototype.onShortsDismiss;kv.prototype.onShortUndoDismiss=kv.prototype.onShortUndoDismiss;kv.prototype.playerDataChanged=kv.prototype.playerDataChanged;kv.prototype.afterPlayerStarted=kv.prototype.afterPlayerStarted;kv.prototype.unhideCurrentOverlay=kv.prototype.unhideCurrentOverlay;kv.prototype.onServiceRequestCompleted=kv.prototype.onServiceRequestCompleted;
kv.prototype.engagementPanelsChanged=kv.prototype.engagementPanelsChanged;kv.prototype.onFullscreenChange=kv.prototype.onFullscreenChange;kv.prototype.onResize=kv.prototype.onResize;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],kv.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.Sv.YtPageBehavior),_.U("design:type",Object)],kv.prototype,"ytPageBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],kv.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.ax),_.U("design:type",Object)],kv.prototype,"ironResizableBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],kv.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],kv.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],kv.prototype,"ytdReduxBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],kv.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"playerData",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"reelWatchSequenceResponse",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"cachedReelWatchSequenceResponse",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"cachedSequenceParams",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"cachedSequenceProvider",void 0);
_.E([_.K(),_.U("design:type",Object)],kv.prototype,"currentEndpoint",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"nextButtonData",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"prevButtonData",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"isPreviousPageShorts",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"index",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"delayedActiveIndex",void 0);
_.E([_.K(),_.U("design:type",Object)],kv.prototype,"playablePreviousIndex",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"player",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"isPlayerPaused",void 0);_.E([_.K({selector:dOB}),_.U("design:type",Object)],kv.prototype,"isPlayerStarted",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"intersectionObserver",void 0);_.E([_.K(),_.U("design:type",Number)],kv.prototype,"cinematicsInitializeJobId",void 0);
_.E([_.K(),_.U("design:type",Number)],kv.prototype,"updateMiniplayerDataJobId",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"fitToVisibleBounds",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"pageSubtype",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],kv.prototype,"enablePreviousContinuation",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"shortsPipEnabled",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"isDark",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"shortsViewTransitions",void 0);_.E([_.K({selector:_.Oe,reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"isFullscreen",void 0);_.E([_.K({selector:_.u7,reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"isShortsPipActive",void 0);
_.E([_.rt("#shorts-inner-container"),_.U("design:type",HTMLElement)],kv.prototype,"shortsInnerContainer",void 0);_.E([_.rt("#back-nav-button ytd-button-renderer"),_.U("design:type",_.jC)],kv.prototype,"backNavButton",void 0);_.E([_.rt("#shorts-container"),_.U("design:type",HTMLElement)],kv.prototype,"shortsContainer",void 0);_.E([_.T3("error-screen"),_.U("design:type",HTMLElement)],kv.prototype,"errorScreenContainer",void 0);
_.E([_.T3("player"),_.U("design:type",Object)],kv.prototype,"playerElement",void 0);_.E([_.T3("shorts-cinematic-container"),_.U("design:type",HTMLElement)],kv.prototype,"shortsCinematicContainer",void 0);_.E([_.T3("initial-player-container"),_.U("design:type",HTMLElement)],kv.prototype,"initialPlayerContainer",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"buttonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"anchoredPanelActive",void 0);
_.E([_.K(),_.U("design:type",String)],kv.prototype,"activePanel",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"isActive",void 0);_.E([_.K({selector:ksR,reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"smallScreenPersistentPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"isPersistentPanelActive",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"smallScreenSqueezeBack",void 0);
_.E([_.K(),_.U("design:type",Object)],kv.prototype,"enableScrollIntoViewCenter",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"formatFirst",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"enableFlexibleOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],kv.prototype,"useAspectRatio",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"panelContainer",void 0);
_.E([_.K(),_.U("design:type",Object)],kv.prototype,"overlayContainer",void 0);_.E([_.K(),_.U("design:type",Object)],kv.prototype,"isShortsInitialized",void 0);_.E([_.C("reelWatchSequenceResponse"),_.U("design:type",Object),_.U("design:paramtypes",[])],kv.prototype,"prevShortsSequence",null);_.E([_.C("data","prevShortsSequence"),_.U("design:type",Object),_.U("design:paramtypes",[])],kv.prototype,"shortsProcessedPrevSequence",null);
_.E([_.C("reelWatchSequenceResponse"),_.U("design:type",Object),_.U("design:paramtypes",[])],kv.prototype,"shortsSequence",null);_.E([_.C("data","shortsSequence"),_.U("design:type",Object),_.U("design:paramtypes",[])],kv.prototype,"shortsProcessedSequence",null);
_.E([_.K({reflectToAttribute:!0}),_.C("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],kv.prototype,"isUpArrowHidden",null);_.E([_.K({reflectToAttribute:!0}),_.C("reelWatchSequenceResponse","index","endOfNextContinuation"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],kv.prototype,"isDownArrowHidden",null);
_.E([_.K(),_.C("index"),_.U("design:type",Number),_.U("design:paramtypes",[])],kv.prototype,"activeIndex",null);_.E([_.C("isShortPlayable","data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],kv.prototype,"shouldRenderOfflineContent",null);_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"onResize",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],kv.prototype,"anchoredEngagementPanels",null);
_.E([_.K(),_.U("design:type",Object)],kv.prototype,"watchWhileEngagementPanels",void 0);_.E([_.cW("isFullscreen"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"onFullscreenChange",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"engagementPanelsChanged",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],kv.prototype,"onServiceRequestCompleted",null);_.E([_.C("data","shortsSequence","index"),_.U("design:type",Object),_.U("design:paramtypes",[])],kv.prototype,"activeReel",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"unhideCurrentOverlay",null);
_.E([_.cW("isPlayerStarted"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"afterPlayerStarted",null);_.E([_.C("playerData","reelWatchSequenceResponse","data"),_.U("design:type",Object),_.U("design:paramtypes",[])],kv.prototype,"errorScreen",null);_.E([_.C("errorScreen"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],kv.prototype,"hasError",null);
_.E([_.cW("playerData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype",Promise)],kv.prototype,"playerDataChanged",null);_.E([_.WW("yt-dismissible-item-undo-feedback"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"onShortUndoDismiss",null);_.E([_.WW("yt-disable-lockup-interaction"),_.U("design:type",Function),_.U("design:paramtypes",[Object]),_.U("design:returntype")],kv.prototype,"onShortsDismiss",null);
_.E([_.U0("active"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"onActiveChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"graftClientVisualElements",null);_.E([_.cW("currentPlayerIndex"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"graftNvcRenderer",null);
_.E([_.cW("index"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"setActiveIndex",null);_.E([_.cW("isShortsPipActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"onShortsPipActiveChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"lazyUpdateMiniplayerData",null);
_.E([_.K(),_.U("design:type",Object)],kv.prototype,"onOverlayDensityChanged",void 0);_.E([_.cW("isPersistentPanelActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"onPersistentPanelActiveChanged",null);_.E([_.cW("index","data","isUpArrowHidden"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"onPrevButtonDataChange",null);
_.E([_.cW("index","data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kv.prototype,"onNextButtonDataChange",null);_.E([_.p({is:"ytd-shorts"})],kv);_.h_.registerService(_.$vf,kv);
_.Lo();
}catch(e){_._DumpException(e)}
try{
_.R0("JzFVk");
var Vur=function(X){return _.k("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},nGa(X.data.ctaButton,{buttonViewModel:{}}),_.k(_.eh,{text:X.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var b64;var k9Q;var uK=function(){return _.O.apply(this,arguments)||this};
_.S(uK,_.O);uK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uK.prototype.computeBlueBottomLink=function(X){return X};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uK.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.bottomIcon)"}),_.U("design:type",String)],uK.prototype,"bottomIcon",void 0);
_.E([_.K({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.U("design:type",Boolean)],uK.prototype,"enableBlueBottomLink",void 0);_.E([_.p({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],uK);
_.N(uK,"ytd-web-answer-renderer",function(){if(k9Q!==void 0)return k9Q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return k9Q=X},{mode:_.Cz("kevlar_poly_si_batch_j035")?1:2});var dvR;var Q5=function(){var X=_.O.apply(this,arguments)||this;X.hasChipBar=!1;return X};
_.S(Q5,_.O);Q5.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}}};
Q5.prototype.computeHasChipBar=function(X){return!(X==null||!X.chipBar)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Q5.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.U("design:type",Object)],Q5.prototype,"hasChipBar",void 0);_.E([_.p({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Q5);
_.N(Q5,"ytd-search-header-renderer",function(){if(dvR!==void 0)return dvR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return dvR=X},{mode:1});var e1N;var Iz=function(){return _.O.apply(this,arguments)||this};
_.S(Iz,_.O);Iz.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Iz.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-page-continuation"})],Iz);
_.N(Iz,"ytd-page-continuation",function(){if(e1N!==void 0)return e1N;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return e1N=X},{mode:1});var jz4;var gGi;var FSV;var WD=function(){return _.O.apply(this,arguments)||this};
_.S(WD,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],WD.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],WD);
_.N(WD,"ytd-watch-card-one-vs-one-event",function(){if(FSV!==void 0)return FSV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return FSV=X},{mode:1});var cD=function(){return _.O.apply(this,arguments)||this};
_.S(cD,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],cD.prototype,"data",void 0);_.E([_.p({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],cD);
_.N(cD,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(gGi!==void 0)return gGi;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return gGi=X},{mode:1});var THH;var p6=function(){return _.O.apply(this,arguments)||this};
_.S(p6,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],p6.prototype,"data",void 0);_.E([_.p({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],p6);
_.N(p6,"ytd-banner-and-box-hero-image-renderer",function(){if(THH!==void 0)return THH;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return THH=X},{mode:1});var AOv;var rH=function(){var X=_.O.apply(this,arguments)||this;X.modern=_.A("web_modern_buttons");return X};
_.S(rH,_.O);rH.prototype.computeIcon=function(){var X,t,G=(X=this.data)==null?void 0:(t=X.icon)==null?void 0:t.iconType;if(G)return _.Q2(G)};
rH.prototype.computeButtonShape=function(){var X;return{buttonText:_.bu((X=this.data)==null?void 0:X.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.ke.Object.defineProperties(rH.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"}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rH.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],rH.prototype,"modern",void 0);_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.C("data.style"),_.U("design:type",Object),_.U("design:paramtypes",[])],rH.prototype,"buttonColor",null);
_.E([_.p({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],rH);
_.N(rH,"ytd-call-to-action-button-renderer",function(){if(AOv!==void 0)return AOv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return AOv=X},{mode:1});var YPv;var Nv=function(){return _.O.apply(this,arguments)||this};
_.S(Nv,_.O);Nv.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Sm(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.S_(this.data.leftThumbnail.thumbnails,216)+")")};
Nv.prototype.onLeftThumbnailChanged=Nv.prototype.onLeftThumbnailChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Nv.prototype,"data",void 0);_.E([_.cW("data.leftThumbnail"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Nv.prototype,"onLeftThumbnailChanged",null);_.E([_.p({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Nv);
_.N(Nv,"ytd-collage-hero-image-renderer",function(){if(YPv!==void 0)return YPv;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return YPv=X},{mode:1});var sza;var PD=function(){return _.O.apply(this,arguments)||this};
_.S(PD,_.O);PD.prototype.computeStyle=function(X){return X};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],PD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.U("design:type",String)],PD.prototype,"componentStyle",void 0);_.E([_.p({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],PD);
_.N(PD,"ytd-single-hero-image-renderer",function(){if(sza!==void 0)return sza;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return sza=X},{mode:1});var DvQ;var EP=function(){return _.O.apply(this,arguments)||this};
_.S(EP,_.O);_.H=EP.prototype;
_.H.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:_.A("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.H.computeSubtitle=function(X){if(this.data){var t;if(this.data.upcomingEventData){X=_.bu(X.subtitle);var G=Number(this.data.upcomingEventData.startTime);isNaN(G)||(t=_.Vl(_.X7(X,G)))}else t=X.subtitle;return t}};
_.H.onHeroTap=function(X){X.preventDefault();var t=this.data&&this.data.navigationEndpoint;!t||!_.Fa(_.be(X),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Fa(_.be(X),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.A("kevlar_watchcard_hero_video_renderer_killswitch")?_.Yt(this.hostElement,"yt-navigate",{navigationEndpoint:t}):this.ytComponentBehavior.resolveCommand(t))};
_.H.computeHeroTabIndex=function(X){return X&&X.simpleText?-1:0};
_.H.computeHeroRole=function(X){return X&&X.simpleText?"":"link"};
_.H.computeIsReminderButtonPresent=function(X){return!(!X||!X.reminderButton)};
_.H.computeHideBottomItems=function(X){return!(this.computeIsReminderButtonPresent(X)||X.subtitle)};
_.H.dataChanged=function(){var X=this.get("data.buttons.buttonRenderer.serviceEndpoint"),t;((t=_.Y(X==null?void 0:X.commandMetadata,_.Le))==null?0:t.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(X)};
EP.prototype.dataChanged=EP.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],EP.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],EP.prototype,"data",void 0);
_.E([_.K({computed:"computeSubtitle(data)"}),_.U("design:type",String)],EP.prototype,"subtitle",void 0);_.E([_.K({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],EP.prototype,"isReminderButtonPresent",void 0);_.E([_.K({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],EP.prototype,"hideBottomItems",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],EP.prototype,"dataChanged",null);_.E([_.p({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],EP);
_.N(EP,"ytd-watch-card-hero-video-renderer",function(){if(DvQ!==void 0)return DvQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return DvQ=X},{mode:1});var SPv;var UP=function(){return _.O.apply(this,arguments)||this};
_.S(UP,_.O);_.H=UP.prototype;_.H.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"}}}};
_.H.computeTitleBadges=function(X){return X?[X]:[]};
_.H.computeHeaderStyle=function(X){return X?X.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.H.computeAvatarAriaLabel=function(X){if(X){var t,G,y,w;return(w=(t=X.avatar)==null?void 0:(G=t.accessibility)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label)!=null?w:_.bu(X==null?void 0:X.title)}};
_.H.computeAvatarHeight=function(X){return X==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.H.computeBadgeRowClass=function(X){return(X==null?0:X[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],UP.prototype,"data",void 0);_.E([_.K({computed:"computeTitleBadges(data.titleBadge)"}),_.U("design:type",Array)],UP.prototype,"titleBadges",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.U("design:type",String)],UP.prototype,"headerStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.U("design:type",String)],UP.prototype,"badgeRowClass",void 0);_.E([_.p({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],UP);
_.N(UP,"ytd-watch-card-rich-header-renderer",function(){if(SPv!==void 0)return SPv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return SPv=X},{mode:1});var h12;var Z6B;var mS=function(){return _.O.apply(this,arguments)||this};
_.S(mS,_.O);mS.prototype.onMetadataTap=function(X){var t=this.data&&this.data.navigationEndpoint;t&&!_.Fa(_.be(X),this.hostElement,["A".toString()])&&_.Yt(this.hostElement,"yt-navigate",{endpoint:t})};
_.ke.Object.defineProperties(mS.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 X;if(this.data.upcomingEventData){var t=_.bu(this.data.subtitle),G=Number(this.data.upcomingEventData.startTime);isNaN(G)||(X=_.Vl(_.X7(t,G)))}else X=this.data.subtitle;return X}}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mS.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data.style"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],mS.prototype,"isCondensed",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],mS.prototype,"subtitle",null);
_.E([_.p({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],mS);
_.N(mS,"ytd-watch-card-compact-video-renderer",function(){if(Z6B!==void 0)return Z6B;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Z6B=X},{mode:1});var qPR;var Rz=function(){return _.O.apply(this,arguments)||this};
_.S(Rz,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Rz.prototype,"data",void 0);_.E([_.p({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Rz);
_.N(Rz,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(qPR!==void 0)return qPR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qPR=X},{mode:1});var iK=function(){return _.O.apply(this,arguments)||this};
_.S(iK,_.O);iK.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}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],iK.prototype,"ytRendererStamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iK.prototype,"data",void 0);_.E([_.p({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],iK);
_.N(iK,"ytd-vertical-watch-card-list-renderer",function(){if(h12!==void 0)return h12;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return h12=X},{mode:1});var CKq;var L6=function(){var X=_.O.apply(this,arguments)||this;X.ariaExpanded="false";return X};
_.S(L6,_.O);_.H=L6.prototype;_.H.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.H.dataChanged=function(){var X;this.currentSeasonIndex=((X=this.data)==null?void 0:X.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.H.computeEpisodesInfo=function(X,t,G){if(X!==void 0&&t.length===X.length)return X[G]};
_.H.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.H.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.H.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.H.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.H.getUppercaseSimpleString=function(X){return this.ytRendererBehavior.getSimpleString(X).toUpperCase()};
_.H.updateCurrentSeasonIndexFromBinding=function(X){this.currentSeasonIndex=X.detail.value};
L6.prototype.onIronOverlayClosed=L6.prototype.onIronOverlayClosed;L6.prototype.currentSeasonIndexChanged=L6.prototype.currentSeasonIndexChanged;L6.prototype.dataChanged=L6.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],L6.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",String)],L6.prototype,"label",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],L6.prototype,"currentSeasonIndex",void 0);_.E([_.K({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.U("design:type",Object)],L6.prototype,"episodesInfo",void 0);_.E([_.K({value:"false"}),_.U("design:type",Object)],L6.prototype,"ariaExpanded",void 0);_.E([_.rt("#lists"),_.U("design:type",Object)],L6.prototype,"lists",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],L6.prototype,"dataChanged",null);_.E([_.U0("currentSeasonIndex"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],L6.prototype,"currentSeasonIndexChanged",null);_.E([_.WW("iron-overlay-closed"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],L6.prototype,"onIronOverlayClosed",null);
_.E([_.p({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],L6);
_.N(L6,"ytd-watch-card-section-dropdown-renderer",function(){if(CKq!==void 0)return CKq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return CKq=X},{mode:1});var KSH;var vD=function(){var X=_.O.apply(this,arguments)||this;X.isSearch=!1;return X};
_.S(vD,_.O);vD.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}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vD.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],vD.prototype,"isSearch",void 0);_.E([_.p({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],vD);
_.N(vD,"ytd-watch-card-section-sequence-renderer",function(){if(KSH!==void 0)return KSH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return KSH=X},{mode:1});var nGa=_.L5({buttonViewModel:_.QK});_.FE(Vur);_.up(Vur,"ytd-button-banner-view-model",{propNames:["data"]});var az=function(){var X=_.O.apply(this,arguments)||this;X.isSearch=!1;return X};
_.S(az,_.O);
az.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"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],az.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!0}),_.U("design:type",Boolean)],az.prototype,"rounded",void 0);_.E([_.K(),_.U("design:type",Object)],az.prototype,"isSearch",void 0);
_.E([_.p({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],az);
_.N(az,"ytd-universal-watch-card-renderer",function(){if(jz4!==void 0)return jz4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return jz4=X},{mode:1});var O62;_.DW(_.Fp(function(X){var t=X.data;var G;X=!((G=_.gw().resolve(_.jH(_.kI)))==null||!G());G={};return _.k("overview-message-view-model",{class:_.cl("ytwOverviewMessageViewModelHost",(G.ytwOverviewMessageViewModelDarkBackground=X,G.ytwOverviewMessageViewModelLightBackground=!X,G))},_.k(_.d,{cond:function(){return t().primaryImage},
then:function(y){return _.k(_.gr,{data:y,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.k(_.d,{cond:function(){return t().primaryText},
then:function(){return _.k("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.k(_.eh,{text:function(){return t().primaryText}}))}}),_.k(_.d,{cond:function(){return t().secondaryText},
then:function(){return _.k("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.k(_.eh,{text:function(){return t().secondaryText}}))}}))},"ij"),"overview-message-view-model",{props:{data:_.bR}});_.up(_.sC4,"ytd-overview-answer-view-model",{propNames:["data"]});var lK=function(){return _.O.apply(this,arguments)||this};
_.S(lK,_.O);lK.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"}}}};
lK.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],lK.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lK.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],lK.prototype,"isSearch",void 0);
_.E([_.p({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],lK);
_.N(lK,"ytd-secondary-search-container-renderer",function(){if(O62!==void 0)return O62;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return O62=X},{mode:1});var uur;var xG=function(){var X=_.O.apply(this,arguments)||this;X.renderSecondarySearchContainer=!1;X.isSearch=!1;return X};
_.S(xG,_.O);_.H=xG.prototype;_.H.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"}}}};
_.H.created=function(){var X=this;this.boundStampSecondarySearchContainerIfFits=function(){X.stampSecondarySearchContainerIfFits()};
_.fY("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.H.computeIsSearchFrictionPage=function(X){var t,G,y,w,z;X=X==null?void 0:(t=X.primaryContents)==null?void 0:(G=t.sectionListRenderer)==null?void 0:(y=G.contents)==null?void 0:(w=y[0])==null?void 0:(z=w.itemSectionRenderer)==null?void 0:z.contents;if(!X)return!1;t=_.J(X);for(G=t.next();!G.done;G=t.next())if(y=void 0,(y=G.value)==null?0:y.searchFrictionViewModel)return!0;return!1};
_.H.computeShowSecondaryColumn=function(X,t){return!!(t&&t.secondaryContents&&X)};
_.H.activeChanged=function(){var X=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Ik(this,this.debounceStampSecondarySearchContainerIfFits)),_.oL(function(){X.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Ik(this,this.debounceStampSecondarySearchContainerIfFits))};
_.H.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.H.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.H.debounceStampSecondarySearchContainerIfFits=function(){_.Jm(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.H.onRetrieveLocation=function(X,t){t.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);X.stopPropagation()};
_.H.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
xG.prototype.dataChanged=xG.prototype.dataChanged;xG.prototype.onRetrieveLocation=xG.prototype.onRetrieveLocation;xG.prototype.persistentGuideChanged=xG.prototype.persistentGuideChanged;xG.prototype.activeChanged=xG.prototype.activeChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],xG.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.q(_.ax),_.U("design:type",Object)],xG.prototype,"ironResizableBehavior",void 0);_.E([_.K(),_.U("design:type",Boolean)],xG.prototype,"active",void 0);_.E([_.K(),_.U("design:type",Object)],xG.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.A("enable_desktop_search_bigger_thumbs")}}),
_.U("design:type",Boolean)],xG.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.Yx("desktop_search_bigger_thumbs_style")}}),
_.U("design:type",String)],xG.prototype,"biggerThumbsStyle",void 0);_.E([_.K(),_.U("design:type",Object)],xG.prototype,"renderSecondarySearchContainer",void 0);_.E([_.K({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.U("design:type",Boolean)],xG.prototype,"showSecondaryColumn",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.U("design:type",Boolean)],xG.prototype,"isSearchFrictionPage",void 0);
_.E([_.K(),_.U("design:type",Object)],xG.prototype,"isSearch",void 0);_.E([_.cW("active"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xG.prototype,"activeChanged",null);_.E([_.cW("guidePersistentAndVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xG.prototype,"persistentGuideChanged",null);
_.E([_.WW("yt-retrieve-location"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],xG.prototype,"onRetrieveLocation",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xG.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],xG);
_.N(xG,"ytd-two-column-search-results-renderer",function(){if(uur!==void 0)return uur;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return uur=X},{mode:1});var f6=function(){var X=_.O.apply(this,arguments)||this;X.hasSearchHeader=!1;X.hasSecondaryContent=!1;X.hasBiggerThumbs=_.A("enable_desktop_search_bigger_thumbs");X.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return X};
_.S(f6,_.O);_.H=f6.prototype;_.H.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:_.yU(["aa","eocs"])}}};
_.H.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.H.loadPage_=function(X){this.initCsi();X&&(this.data=X,_.fY("REFINEMENTS_TUPLE",["FromSearchResponse",X.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.bx(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.H.initCsi=function(){_.Dq("results",["ol","cpt"])};
_.H.updateTitle=function(){var X=_.XO(window.location.href,"q");X||(X=_.XO(window.location.href,"search_query"));_.Yt(this.hostElement,"yt-update-title",X||"")};
_.H.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.H.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.A("web_srp_data_changed_terminate_imp_killswitch")||_.sl(this.hostElement,"yt-terminate-video-preview-action")};
_.H.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.H.computeHasSearchHeader=function(X){var t;X=X==null?void 0:(t=X.header)==null?void 0:t.searchHeaderRenderer;return!!X&&(!!X.searchFilterButton||!!X.chipBar)};
_.H.computeHasSecondaryContent=function(X){var t,G;return!!(X==null?0:(t=X.contents)==null?0:(G=t.twoColumnSearchResultsRenderer)==null?0:G.secondaryContents)};
_.ke.Object.defineProperties(f6,{template:{configurable:!0,enumerable:!0,get:function(){if(b64===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);b64=X}X=b64;return X}}});
f6.prototype.onReloadContinuationFinish=f6.prototype.onReloadContinuationFinish;f6.prototype.dataChanged=f6.prototype.dataChanged;_.E([_.q(_.Sv.YtPageBehavior),_.U("design:type",Object)],f6.prototype,"ytPageBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],f6.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],f6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],f6.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],f6.prototype,"data",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],f6.prototype,"monitorScroll",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f6.prototype,"hasSearchHeader",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f6.prototype,"hasSecondaryContent",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],f6.prototype,"hasBiggerThumbs",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],f6.prototype,"dataChanged",null);
_.E([_.WW("yt-reload-continuation-finish"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],f6.prototype,"onReloadContinuationFinish",null);_.E([_.p({is:"ytd-search"})],f6);_.h_.registerService(_.XDw,f6);
_.Lo();
}catch(e){_._DumpException(e)}
try{
_.R0("h8y2qb");
var e5N=function(X){if(X=_.fXJ(X)){var t;(t=X.sources)!=null&&t[0]?(t=_.Xbv(X),t=t<1?"VERTICAL":t>1?"HORIZONTAL":"SQUARE"):t=void 0;return t}},hU=function(X){_.Ep.call(this,"upload");
this.opts.query=X},gD2=function(X,t){return _.k(j_q,{data:X,
onYtNavigate:t})},FHR=function(X,t){return _.Kg(X.entities,"pageHeaderEntity",t)},AoT=function(X,t){return X.map(function(G){if(G.tabRenderer)return TDH(G.tabRenderer);
if(G.expandableTabRenderer&&t){var y=G.expandableTabRenderer;return{customTabRenderable:function(){return t(y)}}}return{}})},TDH=function(X){return{identifier:X.tabIdentifier,
aTagConfig:_.Hl({innertubeCommand:X.endpoint,forceNewState:!0}),title:X.title,selected:X.selected,disabled:X.unselectable,icon:X.icon}},YUB=function(X){return _.Dl({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:X})},s_V=function(X){if(!_.Se(document,"gtm-noscript")){var t=document.createElement("noscript");
t.id="gtm-noscript";t.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+X+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(t)}};_.sx(hU,_.Ep);hU.prototype.JSC$10004_setLabel=function(X){hU.superClass_.JSC$10004_setLabel.call(this,X);return this};
hU.prototype.addUploadMetadata=function(X,t){hU.superClass_.addUploadMetadata.call(this,X,t);return this};var DmN=function(X){if(X!=="youtubebanner"&&X!=="youtube-channel-banner")throw Error("io");hU.call(this,X)};
_.S(DmN,hU);DmN.prototype.JSC$10004_setLabel=function(X){hU.prototype.JSC$10004_setLabel.call(this,X);return this};
DmN.prototype.addUploadMetadata=function(X,t){hU.prototype.addUploadMetadata.call(this,X,t);return this};var SUN=[_.ax,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(X){_.Es(X).path[0]!==this&&(this.resetLayout(),X.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var X=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.hz(this._layoutDebouncer,_.aL,X);_.ZZ(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var X=this;requestAnimationFrame(function(){X.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(X){this.resizerShouldNotify(X)&&this._notifyDescendant(X)},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 h5B=[_.D7z,{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(X,t){var G=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[X];if(!G)throw new ReferenceError(this._getUndefinedMsg(X));X=this._boundEffect(G,t||{});X.setUp();return X},
_effectsChanged:function(X,t,G){this._tearDownEffects();X&&G&&(X.split(" ").forEach(function(y){var w;y!==""&&((w=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[y])?this._effects.push(this._boundEffect(w,t[y])):console.warn(this._getUndefinedMsg(y)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(X,t){t=t||{};var G=parseFloat(t.startsAt||0),y=parseFloat(t.endsAt||1),w=y-G,z=function(){};
y=G===0&&y===1?X.run:function(B,V){X.run.call(this,Math.max(0,(B-G)/w),V)};
return{setUp:X.setUp?X.setUp.bind(this,t):z,run:X.run?y.bind(this):z,tearDown:X.tearDown?X.tearDown.bind(this):z}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(X){X.setUp()!==!1&&this._effectsRunFn.push(X.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(X){X.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(X,t){this._effectsRunFn&&this._effectsRunFn.forEach(function(G){G(X,t)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var X=this._clampedScrollTop;this._updateScrollState(X);this.threshold>0&&this._setThresholdTriggered(X>=this.threshold)}},
_getDOMRef:function(X){console.warn("_getDOMRef","`"+X+"` is undefined")},
_getUndefinedMsg:function(X){return"Scroll effect `"+X+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+X+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("jo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(X){var t={};X=parseFloat(X.scalar);t.background=this._getDOMRef("background");t.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");t.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");t.deltaBg=t.backgroundFrontLayer.offsetHeight-t.background.offsetHeight;t.deltaBg===0?(isNaN(X)&&(X=.8),t.deltaBg=(this._dHeight||0)*X):(isNaN(X)&&(X=
1),t.deltaBg*=X);this._fxParallaxBackground=t},
run:function(X){var t=this._fxParallaxBackground;this.transform("translate3d(0px, "+t.deltaBg*Math.min(1,X)+"px, 0px)",t.backgroundFrontLayer);t.backgroundRearLayer&&this.transform("translate3d(0px, "+t.deltaBg*Math.min(1,X)+"px, 0px)",t.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var ZCR;var qU2;var CLR=function(){};
_.H=CLR.prototype;_.H._scrollTargetChanged=function(){};
_.H.scroll=function(){};
_.H._isValidScrollTarget=function(){};
_.H._toggleScrollListener=function(){};
_.H.toggleScrollListener=function(){};
_.H.createEffect=function(){};
_.H._effectsChanged=function(){};
_.H._layoutIfDirty=function(){};
_.H._boundEffect=function(){};
_.H._setUpEffect=function(){};
_.H._tearDownEffects=function(){};
_.H._runEffects=function(){};
_.H._scrollHandler=function(){};
_.H._scrollStateChanged=function(){};
_.H._getUndefinedMsg=function(){};
_.H.notifyResize=function(){};
_.H.assignParentResizable=function(){};
_.H.stopResizeNotificationsFor=function(){};
_.H._subscribeIronResize=function(){};
_.H._unsubscribeIronResize=function(){};
_.H.resizerShouldNotify=function(){};
_.H._onDescendantIronResize=function(){};
_.H._fireResize=function(){};
_.H._onIronRequestResizeNotifications=function(){};
_.H._parentResizableChanged=function(){};
_.H._notifyDescendant=function(){};
_.H._requestResizeNotifications=function(){};
_.H._findParent=function(){};
_.H._appResetLayoutHandler=function(){};
_.H.resetLayout=function(){};
_.H._notifyLayoutChanged=function(){};
_.H._notifyDescendantResize=function(){};
_.H._setThresholdTriggered=function(){};
CLR=_.le({_template:function(){if(qU2!==void 0)return qU2;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;ZCR===void 0&&(ZCR=document.createElement("template"));var y=ZCR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return qU2=X},
is:"tp-yt-app-header",behaviors:[h5B,SUN],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 X=_.Es(this.$.slot).getDistributedNodes(),t=0,G;G=X[t];t++)if(G.nodeType===Node.ELEMENT_NODE)if(G.hasAttribute("sticky")){this._stickyElRef=G;break}else this._stickyElRef||(this._stickyElRef=G);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var X=this._clampedScrollTop,t=this._height===0||X===0,G=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;t||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();t?this._updateScrollState(X,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=G}},
_updateScrollState:function(X,t){if(this._height!==0){var G=0,y=this._top;var w=this._maxHeaderTop;var z=X-this._lastScrollTop,B=Math.abs(z),V=X>this._lastScrollTop,b=performance.now();this._mayMove()&&(G=this._clamp(this.reveals?y+z:X,0,w));X>=this._dHeight&&(G=this.condenses&&!this.fixed?Math.max(this._dHeight,G):G,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&B<100){if(b-this._initTimestamp>300||this._wasScrollingDown!==V)this._initScrollTop=X,this._initTimestamp=b;X>=w&&
(Math.abs(this._initScrollTop-X)>30||B>10?(V&&X>=w?G=w:!V&&X>=this._dHeight&&(G=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((G-y)/(z/(b-this._lastTimestamp)),0,300)+"ms"):G=this._top)}w=this._dHeight===0?X>0?1:0:G/this._dHeight;t||(this._lastScrollTop=X,this._top=G,this._wasScrollingDown=V,this._lastTimestamp=b);if(t||w!==this._progress||y!==G||X===0)this._progress=w,this._runEffects(w,G),this._transformHeader(G)}},
_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(X){this.translate3d(0,-X+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&X>=this._stickyElTop?Math.min(X,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(X,t,G){return Math.min(G,Math.max(t,X))},
_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),_.Es(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(X){switch(X){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Es(this).querySelector("[main-title]");case "condensedTitle":return _.Es(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var KHa;var OCv;_.le({_template:function(){if(OCv!==void 0)return OCv;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;KHa===void 0&&(KHa=document.createElement("template"));var y=KHa;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return OCv=X},
is:"tp-yt-app-header-layout",behaviors:[SUN],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Es(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var X=this.header;if(this.isAttached&&X){this.$.wrapper.classList.remove("initializing");X.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)X.style.left=
"",X.style.right="";else{var t=this.getBoundingClientRect(),G=document.documentElement.clientWidth-t.right;X.style.left=t.left+"px";X.style.right=G+"px"}t=this.$.contentContainer.style;G=X.offsetHeight;X.fixed&&!X.condenses&&this.hasScrollingRegion?(t.marginTop=G+"px",t.paddingTop=""):(t.paddingTop=G+"px",t.marginTop="")}}});var uQH=new _.ja("replaceFeedContentAction");var Q_H=new _.ja("alertCommand");var IQH=new _.ja("manageLabsStateCommand");var WHa=new _.ja("inlineFormRenderer");var Zq=new _.ja("playlistSidebarPrimaryInfoRenderer");var co4=new _.ja("productDetailsThumbnailRenderer"),pn2=new _.ja("productDetailsVariantRenderer"),roi=new _.ja("productDetailsVariantOptionRenderer"),NDa=new _.ja("productDetailsOffersContainerRenderer"),PLi=new _.ja("productDetailsOfferRenderer");var EDB=new _.ja("shoppingFlaggingRenderer");var Um2=new _.ja("playlistBylineRenderer");var mmq=new _.ja("insertChannelTabCommand");var q9=function(){return _.PW.apply(this,arguments)||this};
_.S(q9,_.PW);_.H=q9.prototype;_.H.activeChanged=function(){if(this.active){var X=_.Sm(this.hostElement).querySelector("#header");X&&_.Yt(X,"iron-resize");window.addEventListener("scroll",_.Ik(this,this.onScroll))}else window.removeEventListener("scroll",_.Ik(this,this.onScroll)),_.Yt(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.H.guideVisibleChanged=function(){var X=_.Sm(this.hostElement).querySelector("#header");X&&_.Yt(X,"iron-resize")};
_.H.onScroll=function(){var X=this;_.Jm(this,"onScroll",function(){var t=_.Sm(X.hostElement).querySelector("#header");t&&t.polymerController&&(t=t.polymerController.getScrollState().progress===1?"standard":"seamed",_.Yt(X.hostElement,"yt-request-panel-mode-change",{mode:t}))},10)};
_.H.tabsChanged=function(){if(this.tabs){for(var X=null,t=0,G=this.tabs.length;t<G;++t){var y=this.tabs[t].tabRenderer;if(y&&y.selected){X=t;break}}this.selected=X}};
_.H.onTabsActivate=function(X){_.Yt(this.hostElement,"yt-navigate",{endpoint:this.tabs[X.detail.selected].tabRenderer.endpoint})};
q9.prototype.tabsChanged=q9.prototype.tabsChanged;q9.prototype.guideVisibleChanged=q9.prototype.guideVisibleChanged;q9.prototype.activeChanged=q9.prototype.activeChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],q9.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.K(),_.U("design:type",Array)],q9.prototype,"tabs",void 0);
_.E([_.K(),_.U("design:type",Object)],q9.prototype,"selected",void 0);_.E([_.K(),_.U("design:type",Boolean)],q9.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],q9.prototype,"disableHeaderFluidWidth",void 0);_.E([_.cW("active"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],q9.prototype,"activeChanged",null);
_.E([_.cW("guidePersistentAndVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],q9.prototype,"guideVisibleChanged",null);_.E([_.cW("tabs"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],q9.prototype,"tabsChanged",null);_.E([_.E0()],q9);var R5B=[_.v.YtRendererBehavior,_.zZ.YtdGuideStateAwareBehavior,q9.prototype];var iCi=2/3,LHi=_.ai(130749),vDH=function(X,t){var G=this;this.element=X;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){G.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:iCi,moveAction:function(y){G.moveAction(y)},
triggerAction:function(){G.element.isReloading=!0;_.n5(_.Pj(),{visualElement:LHi});_.Wj.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:G.element}})}}}};
_.Kc(_.Pj(),LHi,this.layer);this.gesture=new _.Bf(X,t,this.refreshConfig,"pan-down");this.attach()};
_.H=vDH.prototype;_.H.attach=function(){this.gesture.attach()};
_.H.detach=function(){this.gesture.detach()};
_.H.reset=function(){this.element.close()};
_.H.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.H.moveAction=function(X){this.element.rotation=X*360};var aQa=_.ai(130750),C7=function(X,t,G,y,w){var z=this;this.element=X;this.parent=G;this.channelHeader=y;this.ytdReduxDispatch=w;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){z.tabsStartAtInPx=z.channelHeader.clientHeight-48;var B;(B=z.selectedTab)!=null&&B.title&&(B=_.gw().resolve(_.jH(_.AS)))&&(B=B.getCurrentPage(),z.lastVisitedTabScrollPosition=B.getScrollTop(),z.previousTab&&
((z.lastVisitedTabScrollPosition===void 0?0:z.lastVisitedTabScrollPosition<z.channelHeader.clientHeight-48)?z.scrollPositionForTabs.has(z.selectedTab.title)&&z.scrollPositionForTabs.delete(z.selectedTab.title):z.scrollPositionForTabs.set(z.selectedTab.title,B.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:lQH(),triggerAction:function(){z.navigate(z.previousTab)},
moveAction:function(B,V){z.moveAction(B,V)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-lQH(),triggerAction:function(){z.navigate(z.nextTab)},
moveAction:function(B,V){z.moveAction(B,V)}}}};
_.Kc(_.Pj(),aQa,this.layer);this.gesture=new _.Bf(X,t,this.tabConfig);this.attach()};
C7.prototype.attach=function(){this.gesture.attach()};
C7.prototype.detach=function(){this.gesture.detach()};
C7.prototype.tabsChanged=function(X){if(X){var t=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;X=_.J(X);for(var G=X.next();!G.done;G=X.next()){G=G.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=G);var y=void 0;if((y=G)==null?0:y.selected)this.previousTab=t,this.selectedTab=G;t=G}t=this.gesture;X=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}});
t.config=X;this.scrollPositionNeedsUpdate=!0}};
C7.prototype.moveAction=function(X,t){if(!this.tabsElement){var G;this.tabsElement=(G=this.parent.header)==null?void 0:G.tabsElement;t==="right"&&this.previousTab?_.$64(_.PN.instance,this.previousTab.endpoint,{},""):t==="left"&&this.nextTab&&_.$64(_.PN.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}G=this.tabsElement._pos;t==="right"&&(X*=-1);this.tabsElement._positionBar(G.width,G.left*1+G.width*X)};
var lQH=function(){var X,t;return(t=(X=_.gw().resolve(_.AS).getCurrentPage())==null?void 0:X.clientWidth)!=null?t:0};
C7.prototype.navigate=function(X){this.element.data=void 0;if(X=X==null?void 0:X.endpoint)this.ytdReduxDispatch(YUB(!0)),_.n5(_.Pj(),{visualElement:aQa}),_.Wj.instance.resolveCommand({navigateAction:{endpoint:X}},{form:{element:this.element}})};var xmV;var fQH;var K7=function(){return _.O.apply(this,arguments)||this};
_.S(K7,_.O);K7.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],K7.prototype,"data",void 0);_.E([_.p({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],K7);
_.N(K7,"ytd-labs-edit-renderer",function(){if(fQH!==void 0)return fQH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return fQH=X},{mode:1});var My2;var Oz=function(){var X=_.O.apply(this,arguments)||this;X.dark=!1;X.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";X.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(Oz,_.O);Oz.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Oz.prototype.ready=function(){var X=document.documentElement.hasAttribute("dark");this.setBackgroundImage(X);this.dark=X};
Oz.prototype.onDarkModeToggledAction=function(X){this.setBackgroundImage(X);this.dark=X};
Oz.prototype.setBackgroundImage=function(X){_.Kd(this.hostElement,{"--yt-labs-header-background":"url("+(X?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Oz.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Oz.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Oz.prototype,"dark",void 0);
_.E([_.p({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Oz);
_.N(Oz,"ytd-labs-header-renderer",function(){if(My2!==void 0)return My2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return My2=X},{mode:1});var Xfa;var uh=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return X};
_.S(uh,_.O);uh.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"}}}}}};
uh.prototype.onYtToggleButton=function(X){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",X.detail.toggled)};
uh.prototype.onManageLabsState=function(X){if(X=_.Y(X,IQH))X.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?X.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&X.labsItemId===this.data.labsItemId&&(X.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.sl(this.hostElement,"yt-check-labs-opted-in-state").some(function(t){return t})&&this.data.confirmationDialogCommand?_.Z0(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.gw().resolve(_.F3).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&X.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.gw().resolve(_.F3).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
uh.prototype.onCheckLabsOptedInState=function(){var X=this.get("data.primaryButton.toggleButtonRenderer");return X?X.isToggled:!1};
_.ke.Object.defineProperties(uh.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
uh.prototype.onYtToggleButton=uh.prototype.onYtToggleButton;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],uh.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uh.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],uh.prototype,"itemStyle",null);_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uh.prototype,"onYtToggleButton",null);_.E([_.p({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],uh);
_.N(uh,"ytd-labs-item-renderer",function(){if(Xfa!==void 0)return Xfa;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Xfa=X},{mode:1});var $9B;var tvQ;var QF=function(){return _.O.apply(this,arguments)||this};
_.S(QF,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],QF.prototype,"data",void 0);_.E([_.p({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],QF);
_.N(QF,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(tvQ!==void 0)return tvQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return tvQ=X},{mode:1});var GNH;var IC=function(){return _.O.apply(this,arguments)||this};
_.S(IC,_.O);IC.prototype.observeSuperchatChip=function(){if(this.data){var X={"--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)};_.Kd(this.hostElement,X)}};
IC.prototype.colorFromDecimal=function(X){return _.yY(Number(X||0))};
IC.prototype.observeSuperchatChip=IC.prototype.observeSuperchatChip;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],IC.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],IC.prototype,"observeSuperchatChip",null);_.E([_.p({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],IC);
_.N(IC,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(GNH!==void 0)return GNH;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return GNH=X},{mode:1});var Wf=function(){return _.O.apply(this,arguments)||this};
_.S(Wf,_.O);Wf.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"}}}};
_.ke.Object.defineProperties(Wf.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.tV),_.U("design:type",Object)],Wf.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Wf.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Wf.prototype,"hideMessageBlock",null);
_.E([_.p({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Wf);
_.N(Wf,"ytd-live-chat-history-entry-renderer",function(){if($9B!==void 0)return $9B;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return $9B=X},{mode:1});var yUr;var cf=function(){return _.O.apply(this,arguments)||this};
_.S(cf,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],cf.prototype,"data",void 0);_.E([_.p({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],cf);
_.N(cf,"ytd-channel-options-renderer",function(){if(yUr!==void 0)return yUr;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return yUr=X},{mode:1});var wfV;var p7=function(){return _.O.apply(this,arguments)||this};
_.S(p7,_.O);p7.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],p7.prototype,"data",void 0);_.E([_.p({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],p7);
_.N(p7,"ytd-settings-email-item-renderer",function(){if(wfV!==void 0)return wfV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return wfV=X},{mode:1});var z_T;var rL=function(){return _.O.apply(this,arguments)||this};
_.S(rL,_.O);rL.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"}}}};
rL.prototype.getExpansionIcon=function(X){return X?"COLLAPSE":"EXPAND"};
rL.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.ke.Object.defineProperties(rL.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rL.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],rL.prototype,"expanded",void 0);_.E([_.C("expanded"),_.U("design:type",String),_.U("design:paramtypes",[])],rL.prototype,"emailListExpanded",null);
_.E([_.rt("#options"),_.U("design:type",Object)],rL.prototype,"options",void 0);_.E([_.p({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],rL);
_.N(rL,"ytd-settings-email-list-renderer",function(){if(z_T!==void 0)return z_T;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return z_T=X},{mode:1});var H7B;var N9=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return X};
_.S(N9,_.O);N9.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"}}}};
N9.prototype.handleSignalActionSubmitForm=function(){var X,t=(X=this.formRenderer)==null?void 0:X.getForm();t&&this.data.serviceEndpoint&&_.gw().resolve(_.F3).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},t,{element:this.hostElement})})};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],N9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],N9.prototype,"data",void 0);_.E([_.rt("yt-form-renderer"),_.U("design:type",Object)],N9.prototype,"formRenderer",void 0);
_.E([_.p({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],N9);
_.N(N9,"ytd-settings-gaia-link-renderer",function(){if(H7B!==void 0)return H7B;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return H7B=X},{mode:1});var oYv;var Pf=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return X};
_.S(Pf,_.O);Pf.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.$tv()&&this.set("data.hidden",!1)};
Pf.prototype.onSwitchReady=function(){var X=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.A("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.XmT().then(function(t){t&&(Notification.permission==="default"?X.set("data.hidden",!1):Notification.permission==="granted"&&_.DS("NotificationsDisabled").then(function(G){G||_.sl(X.hostElement,"yt-toggle-settings-switch",[X.data.id,!G]);X.set("data.hidden",!1)}).catch(function(){}))})})};
Pf.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}}}}};
Pf.prototype.handleUpdateOptionsCommand=function(X){(X=_.Y(X,_.bGq))&&this.data&&this.data.id===X.id&&(this.set("data.hidden",X.hidden),X.text!==void 0&&this.set("data.text",X.text),X.clearOptions&&this.set("data.options",[]))};
Pf.prototype.onSwitchReady=Pf.prototype.onSwitchReady;Pf.prototype.dataChanged=Pf.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Pf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Pf.prototype,"data",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Pf.prototype,"dataChanged",null);_.E([_.WW("yt-settings-switch-ready"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Pf.prototype,"onSwitchReady",null);_.E([_.p({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Pf);
_.N(Pf,"ytd-settings-options-renderer",function(){if(oYv!==void 0)return oYv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return oYv=X},{mode:1});var JUv;var Ez=function(){return _.O.apply(this,arguments)||this};
_.S(Ez,_.O);Ez.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ez.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Ez.prototype.onYtExpanderMoreTapped=Ez.prototype.onYtExpanderMoreTapped;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Ez.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ez.prototype,"data",void 0);
_.E([_.WW("yt-expander-more-tapped"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ez.prototype,"onYtExpanderMoreTapped",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Ez);
_.N(Ez,"ytd-product-details-description-renderer",function(){if(JUv!==void 0)return JUv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return JUv=X},{mode:1});var BL4;var Uz=function(){var X=_.O.apply(this,arguments)||this;X.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";X.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";X.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";X.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return X};
_.S(Uz,_.O);Uz.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ke.Object.defineProperties(Uz.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:(t=X.offerData)==null?void 0:t.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?void 0:X.purchaseButtonRenderers)!==void 0&&((t=this.data)==null?void 0:t.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null||!X.formattedFromMerchantText)&&(!((t=this.data)==null||!t.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Uz.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Uz.prototype,"data",void 0);
_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?String:void 0}),_.U("design:type",Object)],Uz.prototype,"shippingIcon",void 0);_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?String:void 0}),_.U("design:type",Object)],Uz.prototype,"shippingAddressIcon",void 0);_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?String:void 0}),_.U("design:type",Object)],Uz.prototype,"googleGuaranteeIcon",void 0);
_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?String:void 0}),_.U("design:type",Object)],Uz.prototype,"returnPolicyIcon",void 0);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Uz.prototype,"showAdditionalFees",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Uz.prototype,"showMultiPurchaseButtons",null);
_.E([_.C("data","showMultiPurchaseButtons"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Uz.prototype,"showPurchaseData",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Uz);
_.N(Uz,"ytd-product-details-hero-offer-renderer",function(){if(BL4!==void 0)return BL4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return BL4=X},{mode:1});var nYN;var VvT;var me=function(){return _.O.apply(this,arguments)||this};
_.S(me,_.O);_.H=me.prototype;_.H.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.H.onKeyDown=function(X){X=X.keyCode;X!==13&&X!==32||this.handleSelection()};
_.H.onMouseEnterImage=function(){var X;((X=this.data)==null?void 0:X.thumbnailDetails)!==void 0&&_.D0(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.H.onMouseLeaveImage=function(){_.D0(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.H.handleSelection=function(){this.data&&_.Yt(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.ke.Object.defineProperties(me.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.isSelected)}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],me.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],me.prototype,"isSelected",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],me);
_.N(me,"ytd-product-details-thumbnail-renderer",function(){if(VvT!==void 0)return VvT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return VvT=X},{mode:1});var RC=function(){var X=_.O.apply(this,arguments)||this;var t={};X.actionMap=(t["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",t["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",t);X.selectedThumbnailIndex=0;X.selectItem=function(G){G.target.onKeyDown(G)};
return X};
_.S(RC,_.O);_.H=RC.prototype;_.H.handlePreviewImageSelect=function(X){this.hoverThumbnail=X};
_.H.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.H.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.H.onThumbnailSelected=function(X,t){this.selectedThumbnailIndex=t};
_.H.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.H.updateOffset=function(){var X=_.Sm(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-X));this.ytdHorizontalListBehavior.reposition_()};
_.ke.Object.defineProperties(RC.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null?0:X.imageRenderer){var t,G;return((t=this.data)==null?void 0:(G=t.imageRenderer)==null?void 0:G.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var X;if((X=this.data)==null?0:X.imageRenderer){var t;return(t=_.Y(this.data.imageRenderer[this.selectedThumbnailIndex],co4))==null?void 0:t.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var X=this,t,G,y,w=(y=(t=this.data)==null?void 0:(G=t.imageRenderer)==null?void 0:G.map(function(z,B){return{productDetailsThumbnailRenderer:Object.assign({},_.Y(z,co4),{index:B,isSelected:B===X.selectedThumbnailIndex})}}))!=null?y:[];
return Object.assign({},this.data,{imageRenderer:w})}}});
RC.prototype.updateOffset=RC.prototype.updateOffset;RC.prototype.dataChanged=RC.prototype.dataChanged;RC.prototype.onThumbnailSelected=RC.prototype.onThumbnailSelected;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],RC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.Yj.YtdHorizontalListBehavior),_.U("design:type",Object)],RC.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],RC.prototype,"componentBehavior",void 0);_.E([_.q([_.sb.YtActionHandlerBehavior]),_.U("design:type",Object)],RC.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],RC.prototype,"data",void 0);_.E([_.K({value:"$.items.children"}),_.U("design:type",String)],RC.prototype,"itemsPath",void 0);_.E([_.K({value:3}),_.U("design:type",Number)],RC.prototype,"initialCount",void 0);
_.E([_.rt("#items"),_.U("design:type",Object)],RC.prototype,"items",void 0);_.E([_.K(),_.U("design:type",Object)],RC.prototype,"selectedThumbnailIndex",void 0);_.E([_.K(),_.U("design:type",Object)],RC.prototype,"hoverThumbnail",void 0);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],RC.prototype,"showThumbnails",null);
_.E([_.WW("ytd-product-details-thumbnail-renderer-selected"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Number]),_.U("design:returntype")],RC.prototype,"onThumbnailSelected",null);_.E([_.C("data","selectedThumbnailIndex","hoverThumbnail"),_.U("design:type",Object),_.U("design:paramtypes",[])],RC.prototype,"thumbnailDetails",null);_.E([_.C("data","selectedThumbnailIndex"),_.U("design:type",Object),_.U("design:paramtypes",[])],RC.prototype,"populatedData",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],RC.prototype,"dataChanged",null);_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],RC.prototype,"updateOffset",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],RC);
_.N(RC,"ytd-product-details-image-carousel-renderer",function(){if(nYN!==void 0)return nYN;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return nYN=X},{mode:_.Cz("kevlar_poly_si_batch_j079")?1:2});var b7R;var ih=function(){return _.O.apply(this,arguments)||this};
_.S(ih,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ih.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ih.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ih.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],ih);
_.N(ih,"ytd-product-details-offer-renderer",function(){if(b7R!==void 0)return b7R;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return b7R=X},{mode:1});var kNB;var L7=function(){var X=_.O.apply(this,arguments)||this;X.isOffersHidden=!0;return X};
_.S(L7,_.O);L7.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var X,t=_.Y((X=this.data)==null?void 0:X.viewOffersButton,_.G4);t&&this.ytRendererBehavior.logExplicitClick(t)};
L7.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.ke.Object.defineProperties(L7.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y;return(G=_.Y((X=this.data)==null?void 0:(t=X.offers)==null?void 0:t[0],PLi))==null?void 0:(y=G.offerData)==null?void 0:y.vendorLogoUrl}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],L7.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],L7.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],L7.prototype,"isOffersHidden",void 0);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],L7.prototype,"firstOfferVendorLogoUrl",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],L7);
_.N(L7,"ytd-product-details-offers-container-renderer",function(){if(kNB!==void 0)return kNB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return kNB=X},{mode:1});var d9T;var e_R;var vf=function(){return _.O.apply(this,arguments)||this};
_.S(vf,_.O);vf.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
vf.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.D0(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
vf.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.D0(this,"ytd-product-details-variant-image-unselect")};
_.ke.Object.defineProperties(vf.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 X;return((X=this.data)==null?void 0:X.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.data)==null?void 0:X.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((t=this.data)==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var X;if(((X=this.data)==null?void 0:X.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var X,t;return this.isUnavailable?(X=this.data)==null?void 0:X.variantOptionUnavailableAccessibilityLabel:(t=this.data)==null?void 0:t.variantOptionAccessibilityLabel}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],vf.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vf.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],vf.prototype,"displayType",void 0);
_.E([_.C("displayType","data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],vf.prototype,"isImageButton",null);_.E([_.C("displayType","data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],vf.prototype,"isPillButton",null);_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],vf.prototype,"isActive",null);
_.E([_.C("data"),_.K({reflectToAttribute:!0}),_.U("design:type",Boolean),_.U("design:paramtypes",[])],vf.prototype,"isUnavailable",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],vf.prototype,"thumbnailDetails",null);_.E([_.C("isUnavailable","data"),_.U("design:type",Object),_.U("design:paramtypes",[])],vf.prototype,"accessibilityLabel",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],vf);
_.N(vf,"ytd-product-details-variant-option-renderer",function(){if(e_R!==void 0)return e_R;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return e_R=X},{mode:1});var jCH;var aC=function(){var X=_.O.apply(this,arguments)||this;X.variantsExpanded=!1;X.hideShowMoreLessVariantButton=!0;X.initialized=!1;X.computeVariantsDebouncer=null;X.computeVariants=function(t){t=t===void 0?!1:t;X.variantsExpanded||X.showOptions()||!t||(X.variantsExpanded=!0);if(X.variantsExpanded){t=_.J(X.items.children);for(var G=t.next();!G.done;G=t.next())G.value.hidden=!1}X.initialized=!0};
return X};
_.S(aC,_.O);_.H=aC.prototype;_.H.ready=function(){var X=this;setTimeout(function(){X.computeVariants(!0)})};
_.H.showOptions=function(){for(var X=_.J(this.items.children),t=X.next();!t.done;t=X.next())t.value.hidden=!0;var G=this.container.getBoundingClientRect().width,y=0,w=X=0;t=!1;for(var z=_.J(this.items.children),B=z.next();!B.done;B=z.next()){B=B.value;B.hidden=!1;var V=B.getBoundingClientRect().width;if(y+V<G)y+=V;else if(++w<2)y=V;else break;X+=1;B.hasAttribute("is-active")&&(t=!0)}for(G=X;G<this.items.children.length;G++)this.items.children[G].hidden=!0;this.hideShowMoreLessVariantButton=X===this.items.children.length;
return t};
_.H.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.hz(this.computeVariantsDebouncer,_.kC.after(100),this.computeVariants)};
_.H.onShowMoreLessVariantsButtonClick=function(){var X;(X=this.data)!=null&&X.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.H.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.ke.Object.defineProperties(aC.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(X=this.data)==null?void 0:(t=X.variantOptionRenderers)==null?void 0:t.find(function(z){return _.Y(z,roi).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),y,w;
return(w=(y=_.Y(G,roi))==null?void 0:y.name)!=null?w:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.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"}}}});
aC.prototype.debouncedComputeVariants=aC.prototype.debouncedComputeVariants;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],aC.prototype,"componentBehavior",void 0);_.E([_.q(_.ax),_.U("design:type",Object)],aC.prototype,"ironResizableBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],aC.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],aC.prototype,"variantsExpanded",void 0);_.E([_.K(),_.U("design:type",Object)],aC.prototype,"hideShowMoreLessVariantButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],aC.prototype,"initialized",void 0);_.E([_.rt("#items"),_.U("design:type",HTMLDivElement)],aC.prototype,"items",void 0);_.E([_.rt("#container"),_.U("design:type",HTMLDivElement)],aC.prototype,"container",void 0);
_.E([_.rt("#more-variants-button"),_.U("design:type",HTMLElement)],aC.prototype,"moreVariantsButton",void 0);_.E([_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],aC.prototype,"selectedOptionName",null);_.E([_.cW("data","variantsExpanded"),_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],aC.prototype,"debouncedComputeVariants",null);
_.E([_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],aC.prototype,"displayType",null);_.E([_.C("displayType"),_.U("design:type",Object),_.U("design:paramtypes",[])],aC.prototype,"variantItemsClassname",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],aC);
_.N(aC,"ytd-product-details-variant-renderer",function(){if(jCH!==void 0)return jCH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return jCH=X},{mode:1});var lh=function(){return _.O.apply(this,arguments)||this};
_.S(lh,_.O);
lh.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"}}}};
_.ke.Object.defineProperties(lh.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(t=_.Y((X=this.data)==null?void 0:X.offersContainerRenderer,NDa))==null?void 0:t.offers;return G!==void 0&&(G==null?void 0:G.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 X,t,G;return((G=(X=this.data)==null?void 0:(t=X.variants)==null?void 0:t.map(function(y){var w,z;y=(z=(w=_.Y(y,pn2))==null?void 0:w.variantOptionRenderers)==null?void 0:z.find(function(V){var b;return((b=_.Y(V,roi))==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var B;return(B=_.Y(y,roi))==null?void 0:B.name}).filter(function(y){return typeof y==="string"}))!=null?G:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y=(t=_.Y((X=this.data)==null?void 0:X.shoppingFlaggingRenderer,EDB))==null?void 0:(G=t.reportButton)==null?void 0:G.buttonRenderer;if(y)return{text:y.text,command:y.command,icon:{iconType:"FLAG"},accessibilityData:y.accessibilityData,trackingParams:y.trackingParams,loggingDirectives:y.loggingDirectives}}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],lh.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lh.prototype,"data",void 0);_.E([_.rt("#image-carousel-renderer"),_.U("design:type",Object)],lh.prototype,"imageCarouselRenderer",void 0);
_.E([_.rt("#hero-offer-renderer"),_.U("design:type",Object)],lh.prototype,"productDetailsHeroOfferRenderer",void 0);_.E([_.rt("#variants"),_.U("design:type",Object)],lh.prototype,"productDetailsVariantRenderer",void 0);_.E([_.rt("#offers"),_.U("design:type",Object)],lh.prototype,"productDetailsOffersContainerRenderer",void 0);_.E([_.rt("#description-renderer"),_.U("design:type",Object)],lh.prototype,"productDetailsDescriptionRenderer",void 0);
_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],lh.prototype,"showPurchaseData",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],lh.prototype,"showHeroOfferRenderer",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],lh.prototype,"showBrandText",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],lh.prototype,"showOffers",null);
_.E([_.C("showOffers","showPurchaseData"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],lh.prototype,"showBuySeparator",null);_.E([_.C("showOffers","showPurchaseData"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],lh.prototype,"showBuyCard",null);_.E([_.C("data"),_.U("design:type",String),_.U("design:paramtypes",[])],lh.prototype,"selectedVariantsText",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],lh.prototype,"shoppingReportingButtonData",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],lh);
_.N(lh,"ytd-product-details-renderer",function(){if(d9T!==void 0)return d9T;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return d9T=X},{mode:1});var gY4;var Fe2;var TLR;var xY=function(){return _.O.apply(this,arguments)||this};
_.S(xY,_.O);xY.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ke.Object.defineProperties(xY.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xY.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],xY.prototype,"formattedAmount",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],xY.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data.style"),_.U("design:type",String),_.U("design:paramtypes",[])],xY.prototype,"vcBalanceWidgetStyle",null);_.E([_.$F({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],xY);
_.N(xY,"yt-vc-balance-renderer",function(){if(TLR===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Fe2===void 0&&(Fe2=document.createElement("template"));var y=Fe2;G.call(t,y.content.cloneNode(!0),X.content.firstChild);TLR=X}X=TLR;return X},{mode:2});_.Xa("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var f7=function(){return _.O.apply(this,arguments)||this};
_.S(f7,_.O);_.ke.Object.defineProperties(f7.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:""}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],f7.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],f7.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.vcBalanceEntityKey"],selector:function(X,t){return _.Kg(X.entities,"vcBalanceEntity",t)}}),
_.U("design:type",Object)],f7.prototype,"vcBalanceEntity",void 0);_.E([_.C("vcBalanceEntity"),_.U("design:type",String),_.U("design:paramtypes",[])],f7.prototype,"formattedAmount",null);_.E([_.C("vcBalanceEntity"),_.U("design:type",String),_.U("design:paramtypes",[])],f7.prototype,"vcBalanceAriaLabel",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],f7);
_.N(f7,"ytd-vc-balance-renderer",function(){if(gY4!==void 0)return gY4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return gY4=X},{mode:1});var AUV;var M9=function(){var X=_.O.apply(this,arguments)||this;X.rotation=0;X.isReloading=!1;return X};
_.S(M9,_.O);M9.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
M9.prototype.reset=function(){this.hostElement.style.opacity=""};
M9.prototype.close=function(){var X=this;return _.n(function(t){if(t.nextAddress==1)return t.yield(X.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);X.hostElement.style.opacity="0";_.W$(t)})};
M9.prototype.rotationChanged=M9.prototype.rotationChanged;_.E([_.K(),_.U("design:type",Object)],M9.prototype,"rotation",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],M9.prototype,"isReloading",void 0);_.E([_.rt("#icon"),_.U("design:type",HTMLElement)],M9.prototype,"icon",void 0);_.E([_.cW("rotation"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],M9.prototype,"rotationChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-refresh"})],M9);
_.N(M9,"ytd-refresh",function(){if(AUV!==void 0)return AUV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return AUV=X},{mode:1});var YzR;var Xu=function(){return _.O.apply(this,arguments)||this};
_.S(Xu,_.O);Xu.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"}}}};
Xu.prototype.dataChanged=function(){if(this.data){var X=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var t=_.S_(this.data.banner.thumbnails,this.hostElement.clientWidth);t&&(t.indexOf("//")===0&&(t="https:"+t),this.hasBannerArt=!0,_.Kd(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+t+")"}))}this.hasBannerArt!==X&&_.Sm(this.hostElement).querySelector("#header").fire("iron-resize")}};
Xu.prototype.updateSelectedFromBinding=function(X){this.selected=X.detail.value};
Xu.prototype.dataChanged=Xu.prototype.dataChanged;_.E([_.q(R5B),_.U("design:type",Object)],Xu.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.y_),_.U("design:type",Object)],Xu.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],Xu.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Xu.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Xu.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],Xu.prototype,"selected",void 0);_.E([_.K(),_.U("design:type",Boolean)],Xu.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Xu.prototype,"hasBannerArt",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Xu.prototype,"dataChanged",null);_.E([_.p({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Xu);
_.N(Xu,"ytd-interactive-tabbed-header-renderer",function(){if(YzR!==void 0)return YzR;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return YzR=X},{mode:1});var sCH;var $G=function(){return _.O.apply(this,arguments)||this};
_.S($G,_.O);$G.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$G.prototype.computeActionsAlignment=function(X){return(X==null?void 0:X.actionsAlignment)||""};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$G.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.U("design:type",String)],$G.prototype,"actionsAlignment",void 0);_.E([_.p({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],$G);
_.N($G,"ytd-page-footer-renderer",function(){if(sCH!==void 0)return sCH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return sCH=X},{mode:1});var D9R;var Szv;var tO=function(){var X=_.O.apply(this,arguments)||this;X.isEditing=!1;X.useSlot=!1;X.isMultiline=!1;return X};
_.S(tO,_.O);_.H=tO.prototype;_.H.onKeydown=function(X){if(X.keyCode===13&&!this.isMultiline)this.onSave();else if(X.keyCode===27)this.onCancel()};
_.H.computeComponentStyle=function(X){return(X==null?0:X.style)?X.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.H.computeisMultiline=function(X){if(this.multilineOverride!==void 0)return this.multilineOverride;var t,G;return!!(X==null?0:(t=X.formField)==null?0:(G=t.textInputFormFieldRenderer)==null?0:G.isMultiline)};
_.H.computeTextDisplayed=function(X,t){if(X)return X;if(t)return t};
_.H.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.H.onSave=function(){if(this.textForm.validate()){this.textForm.save();var X=this.textForm.value;if(X)this.set("data.textDisplayed",_.Vl(X));else{var t;((t=this.data)==null?0:t.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.JB("inline-form-changed",this.data));this.isEditing=!1}};
_.H.onCancel=function(){var X=_.bu(this.data.textDisplayed);X===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(X);this.isEditing=!1};
tO.prototype.onKeydown=tO.prototype.onKeydown;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],tO.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],tO.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],tO.prototype,"isEditing",void 0);_.E([_.K(),_.U("design:type",Object)],tO.prototype,"useSlot",void 0);_.E([_.K(),_.U("design:type",Boolean)],tO.prototype,"multilineOverride",void 0);_.E([_.K(),_.U("design:type",Boolean)],tO.prototype,"enableOverlayTheme",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.U("design:type",String)],tO.prototype,"componentStyle",void 0);
_.E([_.K({computed:"computeisMultiline(data)"}),_.U("design:type",Object)],tO.prototype,"isMultiline",void 0);_.E([_.rt("#text-form"),_.U("design:type",Object)],tO.prototype,"textForm",void 0);_.E([_.WW("keydown"),_.U("design:type",Function),_.U("design:paramtypes",[KeyboardEvent]),_.U("design:returntype")],tO.prototype,"onKeydown",null);_.E([_.p({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],tO);
_.N(tO,"ytd-inline-form-renderer",function(){if(Szv!==void 0)return Szv;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return Szv=X},{mode:1});var h_2;var G9=function(){var X=_.O.apply(this,arguments)||this;X.previousSelectValue=void 0;X.selectedItemMessage=void 0;return X};
_.S(G9,_.O);G9.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
G9.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var X,t,G,y,w=(X=this.data)==null?void 0:(t=X.dropdown)==null?void 0:(G=t.dropdownRenderer)==null?void 0:(y=G.entries)==null?void 0:y.map(function(V){return V.privacyDropdownItemRenderer});
X=_.J(w!=null?w:[]);for(t=X.next();!t.done;t=X.next())if((t=t.value)&&t.int32Value===this.selectedValue){this.selectedItemMessage=t.itemMessage;break}}else this.selectedItemMessage=void 0;var z;(z=this.onValueChanged)==null||z.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var B;(B=this.data)!=null&&B.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
G9.prototype.onValueChangedForSelectedValue=function(X){this.selectedValue=X.detail.value};
G9.prototype.selectedValueChanged=G9.prototype.selectedValueChanged;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],G9.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],G9.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],G9.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],G9.prototype,"theme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Number)],G9.prototype,"selectedValue",void 0);_.E([_.K(),_.U("design:type",Function)],G9.prototype,"onValueChanged",void 0);
_.E([_.U0("selectedValue"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],G9.prototype,"selectedValueChanged",null);_.E([_.p({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],G9);
_.N(G9,"ytd-dropdown-form-field-renderer",function(){if(h_2!==void 0)return h_2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return h_2=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var Z7q;var y5=function(){return _.O.apply(this,arguments)||this};
_.S(y5,_.O);_.ke.Object.defineProperties(y5.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var X=[],t=_.J(this.data||[]),G=t.next();!G.done;G=t.next())(G=_.Y(G.value,Um2))&&X.push(G);return X}}});
_.E([_.K(),_.U("design:type",Array)],y5.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],y5.prototype,"byline",null);_.E([_.p({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],y5);
_.N(y5,"ytd-playlist-byline-renderer",function(){if(Z7q!==void 0)return Z7q;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Z7q=X},{mode:1});var qzH;var wH=function(){var X=_.O.apply(this,arguments)||this;X.rtlBullet=_.A("web_playlist_stats_rtl_bullet_icon_killswitch");X.modern=_.A("web_modern_buttons");X.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return X};
_.S(wH,_.O);_.H=wH.prototype;_.H.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"}}}}};
_.H.attached=function(){};
_.H.computeIsCustomThumbnail=function(X){return X?!!X.playlistCustomThumbnailRenderer:!1};
_.H.onYtNavigate=function(X,t){if(t&&t.actions&&t.actions.indexOf("shuffle")>-1){X=_.gw().resolve(_.Gm);var G=t.tempData||{};G.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);t.tempData=G;X.isShuffleNextPlaylist=!0}};
_.H.onUpdatePlaylistAction=function(X){var t;X=(t=_.Y(X,_.moq))==null?void 0:t.updatedRenderer;if(t=_.Y(X,Zq))this.data=t};
_.H.computeStyleType=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.H.computeThumbnailWidth=function(X){return X==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.H.computeHideThumbnailAria=function(X){if(X==null?0:X.thumbnailOverlays)for(var t=0;t<X.thumbnailOverlays.length;t++){var G=void 0;if((G=X.thumbnailOverlays[t])==null?0:G.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
wH.prototype.onYtNavigate=wH.prototype.onYtNavigate;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],wH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],wH.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],wH.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],wH.prototype,"rtlBullet",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.U("design:type",String)],wH.prototype,"styleType",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.U("design:type",Number)],wH.prototype,"thumbnailWidth",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],wH.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.U("design:type",Boolean)],wH.prototype,"isCustomThumbnail",void 0);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[Event,Object]),_.U("design:returntype")],wH.prototype,"onYtNavigate",null);_.E([_.p({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],wH);
_.N(wH,"ytd-playlist-sidebar-primary-info-renderer",function(){if(qzH!==void 0)return qzH;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return qzH=X},{mode:1});var ChH;var z9=function(){return _.O.apply(this,arguments)||this};
_.S(z9,_.O);z9.prototype.computeOwnerVisibility=function(X){return!(!X.videoOwner&&!X.button)};
z9.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],z9.prototype,"data",void 0);_.E([_.p({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],z9);
_.N(z9,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(ChH!==void 0)return ChH;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return ChH=X},{mode:1});var KeN;var HD=function(){var X=_.O.apply(this,arguments)||this;X.expanded=!1;X.isCompact=!1;return X};
_.S(HD,_.O);_.H=HD.prototype;_.H.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.H.dataChanged=function(){this.data&&_.b8(_.Sm(this.text),_.Z4J(_.KtJ,_.bu(this.data.text||null)))};
_.H.computeAutoScrollEnabled=function(X,t){return X&&!t};
_.H.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.H.toggleOnTap=function(){this.expanded=!this.expanded};
HD.prototype.expandedChanged=HD.prototype.expandedChanged;HD.prototype.dataChanged=HD.prototype.dataChanged;_.E([_.q(_.QBi),_.U("design:type",Object)],HD.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],HD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],HD.prototype,"expanded",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],HD.prototype,"isCompact",void 0);_.E([_.K({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.U("design:type",Boolean)],HD.prototype,"autoScrollEnabled",void 0);_.E([_.rt("#text"),_.U("design:type",Object)],HD.prototype,"text",void 0);_.E([_.rt("#expander-icon"),_.U("design:type",Object)],HD.prototype,"expanderIcon",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],HD.prototype,"dataChanged",null);_.E([_.cW("expanded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],HD.prototype,"expandedChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],HD);
_.N(HD,"ytd-channel-legal-info-renderer",function(){if(KeN!==void 0)return KeN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return KeN=X},{mode:1});var O7H;var uj2=_.Qf("DOWNLOAD",{},"Download"),QCR=_.Qf("DOWNLOADING",{},"Downloading"),IqB=_.Qf("DOWNLOADED",{},"Downloaded"),oz=function(){var X=_.O.apply(this,arguments)||this;X.downloadProgress=0;X.isDownloadComplete=!1;X.transferState="TRANSFER_STATE_UNKNOWN";return X};
_.S(oz,_.O);_.H=oz.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.dataChanged=function(){var X;(X=this.data)!=null&&X.tooltip||(X=_.tp(_.dV().getState(),this.playlistId),this.updateButtonState(X))};
_.H.computePlaylistId=function(X){return X};
_.H.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.H.updateButtonState=function(X){if(this.data&&(this.data.tooltip!==QCR||!_.NQ(X))){this.isDownloadComplete=!1;switch(X){case "TRANSFER_STATE_UNKNOWN":X=uj2;var t="OFFLINE_DOWNLOAD";var G="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":X=IqB;t="OFFLINE_PIN";G="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":X=QCR;t="OFFLINE_DOWNLOADING_ZERO";G="ACTION_REMOVE_WITH_PROMPT";
break;default:X=uj2,t="OFFLINE_DOWNLOAD",G="ACTION_ADD"}var y=Object.assign({},this.data);y.tooltip=X;y.accessibilityData={accessibilityData:{label:X}};y.icon={iconType:t};y.size="SIZE_DEFAULT";_.Y(y.command,_.p5)&&(_.Y(y.command,_.p5).action=G);this.set("data",y)}};
_.H.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var X="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?X="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?X="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?X="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?X="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?X="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(X="OFFLINE_PIN",this.isDownloadComplete=!0);var t;X!==((t=this.data.icon)==null?void 0:t.iconType)&&(t=Object.assign({},this.data),t.tooltip=QCR,t.accessibilityData={accessibilityData:{label:QCR}},t.icon={iconType:X},_.Y(t.command,_.p5)&&(_.Y(t.command,_.p5).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",t))}};
oz.prototype.updateProgress=oz.prototype.updateProgress;oz.prototype.onTransferStateChanged=oz.prototype.onTransferStateChanged;oz.prototype.dataChanged=oz.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],oz.prototype,"ytdReduxBehavior",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],oz.prototype,"forceIconButton",void 0);
_.E([_.K({value:!0}),_.U("design:type",Boolean)],oz.prototype,"forceIconOnly",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],oz.prototype,"overrides",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],oz.prototype,"buttonTooltipPosition",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],oz.prototype,"styleActionButton",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],oz.prototype,"disableTextTransform",void 0);
_.E([_.K({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.U("design:type",String)],oz.prototype,"playlistId",void 0);_.E([_.K(),_.U("design:type",Object)],oz.prototype,"data",void 0);_.E([_.K({selector:_.IBw,selectorArgs:["playlistId"]}),_.U("design:type",Object)],oz.prototype,"downloadProgress",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],oz.prototype,"isDownloadComplete",void 0);
_.E([_.K({selector:_.tp,selectorArgs:["playlistId"]}),_.U("design:type",String)],oz.prototype,"transferState",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],oz.prototype,"showTooltips",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],oz.prototype,"sendCommandWhenDisabled",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],oz.prototype,"disabled",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oz.prototype,"dataChanged",null);_.E([_.U0("transferState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oz.prototype,"onTransferStateChanged",null);_.E([_.U0("downloadProgress"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oz.prototype,"updateProgress",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],oz);
_.N(oz,"ytd-download-playlist-button-renderer",function(){if(O7H!==void 0)return O7H;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return O7H=X},{mode:1});var WeH;_.DW(_.vsR,"thumbnail-overlay-button-view-model",{props:{data:_.bR,lockupExperiments:_.bR}});var JO=function(){var X=_.O.apply(this,arguments)||this;X.isSquare=!1;X.isVertical=!1;return X};
_.S(JO,_.O);JO.prototype.computeIsSquare=function(X){return X!=null&&X.thumbnail?e5N(X.thumbnail)==="SQUARE":!1};
JO.prototype.computeIsVertical=function(X){return X!=null&&X.thumbnail?e5N(X.thumbnail)==="VERTICAL":!1};
JO.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.U("design:type",Object)],JO.prototype,"isSquare",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.U("design:type",Object)],JO.prototype,"isVertical",void 0);
_.E([_.K(),_.U("design:type",Object)],JO.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],JO);
_.N(JO,"ytd-hero-playlist-thumbnail-renderer",function(){if(WeH!==void 0)return WeH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return WeH=X},{mode:1});var BD=function(){var X=_.O.apply(this,arguments)||this;X.isDarkTheme=!1;X.isUltraWide=!1;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return X};
_.S(BD,_.O);_.H=BD.prototype;_.H.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.gw();var X;(X=_.gw().resolve(_.jH(_.e4)))!=null&&(X.headerElement=this.hostElement)};
_.H.detached=function(){var X;(X=_.gw().resolve(_.jH(_.e4)))!=null&&(X.headerElement=void 0)};
_.H.onUpdateHeader=function(X){(X=X.detail)&&this.set("data",X)};
_.H.computeTextDisplayed=function(X){if(X)return X.textDisplayed?X.textDisplayed:X.placeholder};
_.H.gradientColorToLinearGradientStop=function(X){var t=this.isDarkTheme?X.darkThemeColor:X.lightThemeColor;return t?_.yY(t)+" "+((X==null?void 0:X.startLocation)||0)*100+"%":"transparent"};
_.H.onWindowResize=function(){var X;((X=this.data)==null?0:X.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.H.onIronResize=function(X){this.isUltraWide=!X.detail.value};
_.H.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.H.onUpdatePlaylistName=function(X){var t=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},X.detail.value));_.V8(this,function(){var G;(G=t.editableTitle)==null||G.resize()})};
_.H.onUpdatePlaylistDescription=function(X){var t=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},X.detail.value));_.V8(this,function(){var G;(G=t.editableDescriptionInlineExpander)==null||G.resize()})};
_.H.getCinematicData=function(X){return _.Y(X==null?void 0:X.cinematicContainer,_.AU)};
_.ke.Object.defineProperties(BD.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 X,t=(X=this.getCinematicData(this.data))==null?void 0:X.config;return(X=this.isDarkTheme?t==null?void 0:t.darkThemeBackgroundColor:t==null?void 0:t.lightThemeBackgroundColor)?"background-color:"+_.Gq(X)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var X;return _.Y((X=this.data)==null?void 0:X.descriptionForm,WHa)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var X=this,t,G,y;return"background:linear-gradient(to bottom, "+(((y=(t=this.getCinematicData(this.data))==null?void 0:(G=t.gradientColorConfig)==null?void 0:G.map(function(w){return X.gradientColorToLinearGradientStop(w)}))==null?void 0:y.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var X;return _.bu((X=this.data)==null?void 0:X.descriptionTapText)}}});
BD.prototype.onUpdateHeader=BD.prototype.onUpdateHeader;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],BD.prototype,"actionHandlerBehavior",void 0);_.E([_.rt("#description-inline-expander"),_.U("design:type",Object)],BD.prototype,"descriptionInlineExpander",void 0);
_.E([_.rt("#editable-description-inline-expander"),_.U("design:type",Object)],BD.prototype,"editableDescriptionInlineExpander",void 0);_.E([_.K(),_.U("design:type",Object)],BD.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],BD.prototype,"isUltraWide",void 0);_.E([_.rt("#editable-title-display"),_.U("design:type",Object)],BD.prototype,"editableTitle",void 0);_.E([_.C("isUltraWide"),_.U("design:type",Object),_.U("design:paramtypes",[])],BD.prototype,"maxDescriptionLines",null);
_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],BD.prototype,"noCinematicData",null);_.E([_.WW("yt-new-playlist-header"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],BD.prototype,"onUpdateHeader",null);_.E([_.C("data","isDarkTheme"),_.U("design:type",Object),_.U("design:paramtypes",[])],BD.prototype,"backgroundStyle",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],BD.prototype,"descriptionFormData",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],BD.prototype,"getDropdownTheme",null);_.E([_.C("data","isDarkTheme"),_.U("design:type",String),_.U("design:paramtypes",[])],BD.prototype,"gradientStyle",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],BD.prototype,"descriptionTapText",null);
_.E([_.p({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],BD);
_.N(BD,"ytd-playlist-header-renderer",function(){if(D9R!==void 0)return D9R;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return D9R=X},{mode:_.Cz("kevlar_poly_si_batch_j078")?1:2});var cUr;var pfN;var n6=function(){return _.O.apply(this,arguments)||this};
_.S(n6,_.O);n6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],n6.prototype,"data",void 0);_.E([_.p({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],n6);
_.N(n6,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(pfN!==void 0)return pfN;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return pfN=X},{mode:1});var V5=function(){return _.O.apply(this,arguments)||this};
_.S(V5,_.O);
V5.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}}}}};
V5.prototype.computeUsePremiumShowStyle=function(X){if(!X||!X.items)return!1;for(var t=0;t<X.items.length;t++)if(_.Y(X.items[t],Zq)){var G=void 0;return((G=_.Y(X.items[t],Zq))==null?void 0:G.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],V5.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.U("design:type",Boolean)],V5.prototype,"usePremiumShowStyle",void 0);
_.E([_.p({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],V5);
_.N(V5,"ytd-playlist-sidebar-renderer",function(){if(cUr!==void 0)return cUr;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return cUr=X},{mode:1});var rU2;var NLT;var PhB=function(X,t,G,y,w,z,B,V){this.minWidth=X;this.minHeight=t;this.recommendedWidth=G;this.recommendedHeight=y;this.JSC$21813_maxFileSize=w;this.title=z;this.bannerGalleryTitle=B;this.channelId=V;this.picker_=null;X=_.ojh("yt-banner");t=X.addView;G=(new DmN("youtubebanner")).addUploadMetadata("silo_id","19");G.opts.ytMaxFileSize=this.JSC$21813_maxFileSize;y=this.recommendedHeight;G.opts.ytRecWidth=this.recommendedWidth;G.opts.ytRecHeight=y;t.call(X,G);X.addView(new _.R6);t=X.addView;G=new _.R6;
G.opts.type="ytbanner";t.call(X,G.JSC$10004_setLabel(this.bannerGalleryTitle));t=X.setTitle(this.title).setSize(1E3);t.urlParamMap_.set("thumbs","orig");G=this.minWidth;y=this.minHeight;if(isNaN(G)||isNaN(y))throw Error("gb`"+G+"`"+y);t.urlParamMap_.set("minSize",G+"x"+y);t.urlParamMap_.set("cropMode","ytcb");this.builder_=X};
PhB.prototype.open=function(){var X=this;return new _.Kh(function(t,G){_.eZ4(X.builder_,function(y){y.action=="picked"?t(y):y.action=="cancel"&&G(Error("ko"))});
X.picker_&&X.picker_.dispose();X.picker_=X.builder_.build();X.picker_.setVisible(!0)})};
PhB.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var EYH=function(X){this.channelId=X};
EYH.prototype.upload=function(X){var t="";X.viewToken&&(t=X.viewToken[2].type);var G=X.docs[0];X=G.crop;t={channel_id:this.channelId,fife_url:G.thumbnails[0].url,photo_id:G.id,is_gallery_image:t=="ytbanner"};X&&(t.crop_top=X.top,t.crop_right=X.right,t.crop_bottom=X.bottom,t.crop_left=X.left);return _.sdA("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:t})};var bK=function(){var X=_.O.apply(this,arguments)||this;X.ariaLabel=null;return X};
_.S(bK,_.O);_.H=bK.prototype;_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.H.detached=function(){this.picker&&this.picker.dispose()};
_.H.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.H.computeAriaLabel=function(X){return X};
_.H.onTap=function(){var X=this,t;if((t=this.data)==null||!t.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new PhB(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 G;(G=this.picker)==null||G.open().then(function(y){X.handleBannerPicked(y)},function(){})}};
_.H.handleBannerPicked=function(X){var t=this;this.uploader||(this.uploader=new EYH(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(X).then(function(G){t.handleBannerUploadSucceeded(G)},function(G){t.handleBannerUploadFailed(G)})};
_.H.handleBannerUploadSucceeded=function(X){X&&X.errors?this.handleBannerUploadFailed(X):(_.Yt(this.hostElement,"yt-banner-updated",X),this.message=null)};
_.H.handleBannerUploadFailed=function(X){this.message=X&&X.errors&&X.errors.length?X.errors[0]:null};
bK.prototype.dataChanged=bK.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],bK.prototype,"componentBehavior",void 0);_.E([_.q(_.xr),_.U("design:type",Object)],bK.prototype,"ironButtonState",void 0);_.E([_.K(),_.U("design:type",Object)],bK.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.U("design:type",Object)],bK.prototype,"ariaLabel",void 0);
_.E([_.K(),_.U("design:type",Object)],bK.prototype,"message",void 0);_.E([_.K(),_.U("design:type",Object)],bK.prototype,"picker",void 0);_.E([_.K(),_.U("design:type",Object)],bK.prototype,"uploader",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],bK.prototype,"dataChanged",null);_.E([_.p({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],bK);
_.N(bK,"ytd-channel-banner-editor-renderer",function(){if(NLT!==void 0)return NLT;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return NLT=X},{mode:1});var U9a;var m92=_.Vc(["#"]),kG=function(){return _.O.apply(this,arguments)||this};
_.S(kG,_.O);kG.prototype.computeHrefWithDefault=function(X){return this.ytComponentBehavior.computeHref_(X,!0)||_.NNh(m92)};
kG.prototype.dataChanged=function(){var X=this.data;X&&X.targetId&&_.jRS(_.m4(),X.targetId,this.moreIcon)};
kG.prototype.dataChanged=kG.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],kG.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],kG.prototype,"data",void 0);_.E([_.rt("#more-icon"),_.U("design:type",Object)],kG.prototype,"moreIcon",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kG.prototype,"dataChanged",null);
_.E([_.p({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],kG);
_.N(kG,"ytd-channel-tagline-renderer",function(){if(U9a!==void 0)return U9a;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return U9a=X},{mode:1});var R_v;var dH=function(){return _.O.apply(this,arguments)||this};
_.S(dH,_.O);_.H=dH.prototype;_.H.ready=function(){var X=this;_.Sm(this.hostElement).querySelector("#form").addEventListener("submit",function(t){X.onSubmit(t)})};
_.H.onDataChanged=function(){var X;((X=this.data)==null?0:X.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.H.onIconButtonKeydown=function(X){X.keyCode===13&&this.iconButton.click()};
_.H.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.H.openOnClickHandler=function(){this.input.focus()};
_.H.onSubmit=function(X){X.preventDefault();return!1};
_.H.submitOnEnterKeyUp=function(X){var t;if(X.keyCode===13&&((t=this.data)==null?0:t.expandedText)){X=this.data.endpoint;t=_.RH.unsafeClone(X);var G;((G=_.Y(t==null?void 0:t.commandMetadata,_.jQ))==null?0:G.url)?(_.Y(t.commandMetadata,_.jQ).url=_.ta(_.Y(t.commandMetadata,_.jQ).url,"query",this.data.expandedText),_.Y(t,_.pp)&&(_.Y(t,_.pp).query=this.data.expandedText),_.Yt(this.hostElement,"yt-navigate",{endpoint:t,tempData:{disableCache:!0}})):(G=new _.NJ("Error: Trying to navigate to an endpoint without url",
X),_.xA(G))}};
_.H.updateDataExpandedTextFromBinding=function(X){this.set("data.expandedText",X.detail.value)};
_.ke.Object.defineProperties(dH.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.A("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
dH.prototype.onDataChanged=dH.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.JWR),_.U("design:type",Object)],dH.prototype,"ytdExpandableInputBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dH.prototype,"data",void 0);_.E([_.rt("#input"),_.U("design:type",Object)],dH.prototype,"input",void 0);_.E([_.rt("#icon-button"),_.U("design:type",HTMLElement)],dH.prototype,"iconButton",void 0);
_.E([_.K(),_.U("design:type",String),_.U("design:paramtypes",[])],dH.prototype,"searchIcon",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dH.prototype,"onDataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],dH);
var j_q=_.qi()(dH,"ytd-expandable-tab-renderer",function(){if(R_v===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);R_v=X}X=R_v;return X},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var i7N;var eu=function(){var X=_.O.apply(this,arguments)||this;X.avatarSize=80;X.ariaLabel=_.Qf("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return X};
_.S(eu,_.O);eu.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
eu.prototype.computeHref=function(X){var t;return((t=_.Y(X,_.zj))==null?0:t.url)?this.componentBehavior.computeHref_(X):null};
eu.prototype.onTap=function(){var X,t;(X=this.data)==null||!X.editAvatarServiceEndpoint||((t=_.Y(this.data.editAvatarServiceEndpoint,_.zj))==null?0:t.url)||_.gw().resolve(_.F3).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.E([_.q(_.xr),_.U("design:type",Object)],eu.prototype,"ironButtonState",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],eu.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eu.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],eu.prototype,"avatarSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],eu.prototype,"ariaLabel",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],eu);
_.N(eu,"ytd-channel-avatar-editor",function(){if(i7N!==void 0)return i7N;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return i7N=X},{mode:1});var Leq=_.Fp(function(X){var t=X.data;var G=X.noPadding;var y=X.enableBanner;var w=X.cinematicContainerTopbarOffset;var z=X.allowCinematicContainerOverflow;var B=X.displayAsSidebar;X=X.className;_.Em(function(){t().tagManagerId&&(_.vN(t().tagManagerId,_.Md("GL")),s_V(t().tagManagerId))},"xVTVTe");
var V=_.Pk(FHR,function(){return t().pageHeaderEntityKey});
return _.k("yt-page-header-renderer",{class:_.cl("page-header-renderer-wiz",X)},_.k(_.M7,{data:function(){var b;return((b=V())==null?0:b.header)?V().header:(B==null?0:B())&&t().sidebarContent?t().sidebarContent:t().content}},{pageHeaderViewModel:function(b){return _.k(_.jC4,{data:b.data,
noPadding:G,enableBanner:y,cinematicContainerTopbarOffset:w,allowCinematicContainerOverflow:z,displayAsSidebar:function(){return(B==null?void 0:B())&&t().enableSidebarView}})}}))},"gj");
Leq.idomCompat=!0;_.DW(Leq,"yt-page-header-renderer",{props:{data:_.bR,noPadding:_.bR,enableBanner:_.bR,cinematicContainerTopbarOffset:_.bR,allowCinematicContainerOverflow:_.bR,displayAsSidebar:_.bR,className:_.bR}});_.DW(_.d94,"yt-image-banner-view-model",{props:{data:_.bR,isPositionRelative:_.bR}});_.DW(_.IqR,"yt-tab-group-shape",{props:{shape:_.bR}});var ju=function(){var X=_.O.apply(this,arguments)||this;X.expandableCustomTabRenderable=function(t){return gD2(t,function(){return void X.onSearchNavigate()})};
X.isRichGrid=!1;X.isConstrainedList=!1;X.richGridMiniMode=!1;X.richGridStyle="RICH_GRID_STYLE_UNKNOWN";X.isRichGridShorts=!1;X.responsiveSizing="COMPACT";X.disableGridStateAware=!1;X.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return X};
_.S(ju,_.O);_.H=ju.prototype;_.H.computeHeaderDisabled=function(X,t){return t||!X||this.tabsHidden};
_.H.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.H.computeIsRichGridShorts=function(X){return X==="RICH_GRID_STYLE_SHORTS_GRID"||X==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.H.computeImageBannerViewModel=function(){var X,t;return _.Y((t=_.Y((X=this.data)==null?void 0:X.content,_.PjY))==null?void 0:t.banner,_.QIt)};
_.H.computeHasCinematicContainer=function(){var X,t;return!((t=_.Y((X=this.data)==null?void 0:X.content,_.PjY))==null||!t.background)};
_.H.handleHeaderResize=function(){var X=_.Sm(this.hostElement).querySelector("#header");X&&_.Yt(X,"iron-resize")};
_.H.handleInsertTabCommand=function(X){var t=_.Y(X,mmq);t&&(t.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(G){return G.tabRenderer&&G.tabRenderer.tabIdentifier===t.tabIdentifier})||this.splice("tabs",t.tabIndex||-1,0,t.tab))};
_.H.handleRefreshChannelTabAction=function(X){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===X&&_.Yt(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.H.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Kd(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.H.observerRichGridSlimItemsPerRow=function(){_.Kd(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.H.updateCssVars=function(){this.richGridItemsPerRow&&_.Kd(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.At("rich_grid_max_item_width",500))+16)-16+"px"})};
_.H.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Kd(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.H.onDataChanged=function(){this.handleHeaderResize()};
_.H.onWindowResize=function(){this.handleHeaderResize()};
_.H.onFocusedChanged=function(X){(X=_.k3(X))&&X.is==="tp-yt-paper-tab"&&X.hasRipple()&&(X.getRipple().holdDown=!X.pointerDown&&X.focused)};
_.H.updateSelectedFromBinding=function(X){this.ytdTabbedHeaderBehavior.selected=X.detail.value};
_.H.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.ke.Object.defineProperties(ju.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:AoT(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.imageBannerViewModel)==null?void 0:X.style)==="IMAGE_BANNER_STYLE_INSET"}}});
ju.prototype.onDataChanged=ju.prototype.onDataChanged;ju.prototype.updateCssVarsForResponsiveGrid=ju.prototype.updateCssVarsForResponsiveGrid;ju.prototype.updateCssVars=ju.prototype.updateCssVars;ju.prototype.observerRichGridSlimItemsPerRow=ju.prototype.observerRichGridSlimItemsPerRow;ju.prototype.observerRichGridItemsPerRow=ju.prototype.observerRichGridItemsPerRow;_.E([_.q(_.y_),_.U("design:type",Object)],ju.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.q(R5B),_.U("design:type",Object)],ju.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],ju.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],ju.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],ju.prototype,"ytdReduxBehavior",void 0);_.E([_.rt("#tabs"),_.U("design:type",Object)],ju.prototype,"tabsElement",void 0);_.E([_.K(),_.U("design:type",Array)],ju.prototype,"tabs",void 0);_.E([_.K(),_.U("design:type",Object)],ju.prototype,"expandableCustomTabRenderable",void 0);_.E([_.C("tabs.*"),_.U("design:type",Object),_.U("design:paramtypes",[])],ju.prototype,"tabGroupShape",null);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ju.prototype,"isRichGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ju.prototype,"isConstrainedList",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Object)],ju.prototype,"richGridMiniMode",void 0);_.E([_.K({selector:function(X){return X.ui.richGridStyle}}),
_.U("design:type",Object)],ju.prototype,"richGridStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.U("design:type",Object)],ju.prototype,"isRichGridShorts",void 0);_.E([_.K({selector:_.x0}),_.U("design:type",Number)],ju.prototype,"richGridItemsPerRow",void 0);_.E([_.K({selector:function(X){return X.ui.richGridContainerWidth}}),
_.U("design:type",Number)],ju.prototype,"richGridContainerWidth",void 0);_.E([_.K({selector:_.APJ}),_.U("design:type",Number)],ju.prototype,"richGridSlimItemsPerRow",void 0);_.E([_.K(),_.U("design:type",Object)],ju.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ju.prototype,"responsiveSizing",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ju.prototype,"disableGridStateAware",void 0);
_.E([_.K({computed:"computeImageBannerViewModel(data)"}),_.U("design:type",Object)],ju.prototype,"imageBannerViewModel",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.U("design:type",Boolean)],ju.prototype,"hasCinematicContainer",void 0);_.E([_.K({selector:_.aoq,reflectToAttribute:!0}),_.U("design:type",Boolean)],ju.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("imageBannerViewModel"),_.U("design:type",Object),_.U("design:paramtypes",[])],ju.prototype,"hasBanner",null);_.E([_.K({reflectToAttribute:!0}),_.C("imageBannerViewModel"),_.U("design:type",Object),_.U("design:paramtypes",[])],ju.prototype,"hasInsetBanner",null);_.E([_.K({computed:"computeTabsHidden(tabs)",value:!0}),_.U("design:type",Boolean)],ju.prototype,"tabsHidden",void 0);
_.E([_.cW("richGridItemsPerRow","isRichGrid"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ju.prototype,"observerRichGridItemsPerRow",null);_.E([_.cW("richGridSlimItemsPerRow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ju.prototype,"observerRichGridSlimItemsPerRow",null);
_.E([_.cW("richGridItemsPerRow","richGridMiniMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ju.prototype,"updateCssVars",null);_.E([_.cW("richGridContainerWidth"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ju.prototype,"updateCssVarsForResponsiveGrid",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ju.prototype,"onDataChanged",null);
_.E([_.p({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],ju);
_.N(ju,"ytd-tabbed-page-header",function(){if(rU2!==void 0)return rU2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return rU2=X},{mode:1});var vYB;var gH=function(){return _.O.apply(this,arguments)||this};
_.S(gH,_.O);gH.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Kd(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.ke.Object.defineProperties(gH.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var X,t;return this.componentBehavior.computeIcon_(((t=_.Y((X=this.data)==null?void 0:X.badge,_.Dgq))==null?void 0:t.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=_.Y((X=this.data)==null?void 0:X.badge,_.Dgq))==null?void 0:t.label}}});
gH.prototype.observerRichGridItemsPerRow=gH.prototype.observerRichGridItemsPerRow;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],gH.prototype,"componentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],gH.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.lA}),_.U("design:type",Boolean)],gH.prototype,"richGridMiniMode",void 0);
_.E([_.K({selector:_.x0}),_.U("design:type",Number)],gH.prototype,"richGridItemsPerRow",void 0);_.E([_.K(),_.U("design:type",Object)],gH.prototype,"data",void 0);_.E([_.cW("richGridItemsPerRow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gH.prototype,"observerRichGridItemsPerRow",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],gH.prototype,"badgeIconName",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],gH.prototype,"badgeLabel",null);_.E([_.p({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],gH);
_.N(gH,"ytd-member-hub-profile-renderer",function(){if(vYB!==void 0)return vYB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return vYB=X},{mode:1});var aqV;var Fu=function(){return _.O.apply(this,arguments)||this};
_.S(Fu,_.O);Fu.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Fu.prototype,"data",void 0);_.E([_.p({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Fu);
_.N(Fu,"ytd-settings-sidebar-renderer",function(){if(aqV!==void 0)return aqV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return aqV=X},{mode:1});var lqT;var T9=function(){var X=_.O.apply(this,arguments)||this;X.expandableCustomTabRenderable=function(t){return gD2(t,function(){return void X.onSearchNavigate()})};
return X};
_.S(T9,_.O);T9.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
T9.prototype.onSearchNavigate=function(){this.selected=void 0};
T9.prototype.onTabsChange=function(){var X,t=(X=this.tabs)==null?void 0:X.findIndex(function(G){var y;return G==null?void 0:(y=G.tabRenderer)==null?void 0:y.selected});
t!==void 0&&(this.selected=t)};
T9.prototype.onTabsActive=function(X){if(this.tabs!==void 0){var t,G;(X=(t=this.tabs[X.detail.selected])==null?void 0:(G=t.tabRenderer)==null?void 0:G.endpoint)&&_.Yt(this.hostElement,"yt-navigate",{endpoint:X})}};
_.ke.Object.defineProperties(T9.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:AoT(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
T9.prototype.onTabsChange=T9.prototype.onTabsChange;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],T9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.y_),_.U("design:type",Object)],T9.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],T9.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],T9.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Array)],T9.prototype,"tabs",void 0);_.E([_.K(),_.U("design:type",Number)],T9.prototype,"selected",void 0);_.E([_.C("tabs.*"),_.U("design:type",Object),_.U("design:paramtypes",[])],T9.prototype,"tabGroupShape",null);_.E([_.K(),_.U("design:type",Object)],T9.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.C("tabs"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],T9.prototype,"tabsEnabled",null);_.E([_.U0("tabs"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],T9.prototype,"onTabsChange",null);_.E([_.p({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],T9);
_.N(T9,"ytd-topic-channel-details-renderer",function(){if(lqT!==void 0)return lqT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return lqT=X},{mode:1});var x9B;var AO=function(){var X=_.O.apply(this,arguments)||this;X.disableGridStateAware=!1;return X};
_.S(AO,_.O);AO.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]]"}}}}}};
AO.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
AO.prototype.updateCssVars=function(){_.Kd(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.At("rich_grid_max_item_width",500))+16)-16+"px"})};
AO.prototype.updateCssVars=AO.prototype.updateCssVars;AO.prototype.activeChanged=AO.prototype.activeChanged;_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],AO.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],AO.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],AO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],AO.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Array)],AO.prototype,"tabs",void 0);_.E([_.K(),_.U("design:type",Boolean)],AO.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],AO.prototype,"disableGridStateAware",void 0);
_.E([_.K({selector:_.x0}),_.U("design:type",Number)],AO.prototype,"richGridItemsPerRow",void 0);_.E([_.K({selector:_.lA}),_.U("design:type",Boolean)],AO.prototype,"richGridMiniMode",void 0);_.E([_.rt("ytd-carousel-item-renderer"),_.U("design:type",Object)],AO.prototype,"carousel",void 0);_.E([_.cW("active"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],AO.prototype,"activeChanged",null);
_.E([_.cW("richGridItemsPerRow","richGridMiniMode"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],AO.prototype,"updateCssVars",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],AO);
_.N(AO,"ytd-carousel-header-renderer",function(){if(x9B!==void 0)return x9B;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return x9B=X},{mode:1});var fqR;var Mva=_.Vc(["https://www.google-analytics.com/analytics.js"]),YG=function(){var X=_.O.apply(this,arguments)||this;X.scriptAnalyticsAdded=!1;return X};
_.S(YG,_.O);YG.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var X,t=(X=this.data)==null?void 0:X.tagManagerId;t&&(_.vN(t,_.Md("GL")),s_V(t))};
YG.prototype.sendGoogleAnalyticsPageview=function(X){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var G=_.f1.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(G)};
var t=window.ga;t("set","page",window.location.pathname);t.l=+new Date;t("set","forceSSL",!0);t("create",X,"'auto'");t("send","pageview")};
YG.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var X=_.OF("SCRIPT");X.name="ga-analytics";var t=_.sw(Mva);_.Vb(X,t);X.async=!0;_.Sm(this.hostElement).appendChild(X)};
YG.prototype.dataChanged=YG.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],YG.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],YG.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],YG);
_.N(YG,"ytd-channel-metadata-renderer",function(){if(fqR!==void 0)return fqR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return fqR=X},{mode:1});var XDR;var $vH;var sP=function(){return _.O.apply(this,arguments)||this};
_.S(sP,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sP.prototype,"data",void 0);_.E([_.p({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],sP);
_.N(sP,"ytd-sub-feed-option-renderer",function(){if($vH!==void 0)return $vH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return $vH=X},{mode:1});var tuH;var Dc=function(){return _.O.apply(this,arguments)||this};
_.S(Dc,_.O);Dc.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Dc.prototype,"ytRendererStamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Dc.prototype,"data",void 0);_.E([_.p({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Dc);
_.N(Dc,"ytd-sub-feed-selector-renderer",function(){if(tuH!==void 0)return tuH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return tuH=X},{mode:1});var Su=function(){return _.O.apply(this,arguments)||this};
_.S(Su,_.O);
Su.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}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Su.prototype,"data",void 0);_.E([_.p({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Su);
_.N(Su,"ytd-browse-feed-actions-renderer",function(){if(XDR!==void 0)return XDR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return XDR=X},{mode:1});var G9R;var yO4;var hO=function(){return _.O.apply(this,arguments)||this};
_.S(hO,_.O);hO.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],hO.prototype,"data",void 0);_.E([_.p({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],hO);
_.N(hO,"ytd-mini-channel-renderer",function(){if(yO4!==void 0)return yO4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return yO4=X},{mode:1});var wDR;var Zc=function(){return _.O.apply(this,arguments)||this};
_.S(Zc,_.O);Zc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Zc.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Zc);
_.N(Zc,"ytd-vertical-channel-section-renderer",function(){if(wDR!==void 0)return wDR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return wDR=X},{mode:1});var qv=function(){return _.O.apply(this,arguments)||this};
_.S(qv,_.O);qv.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qv.prototype,"data",void 0);_.E([_.p({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],qv);
_.N(qv,"ytd-browse-secondary-contents-renderer",function(){if(G9R!==void 0)return G9R;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return G9R=X},{mode:1});var z1T;var C6=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};X.notActive=!1;X.isConstrainedList=!1;return X};
_.S(C6,_.O);_.H=C6.prototype;
_.H.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(X){var t;return(X==null?void 0:(t=X.webComponentHint)==null?void 0:t.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}}}}};
_.H.getPath=function(X,t){var G="data.tabs.#"+t+".";X.tabs[t].tabRenderer?G+="tabRenderer.":X.tabs[t].expandableTabRenderer&&(G+="expandableTabRenderer.");return G+"content.sectionListRenderer"};
_.H.computeDisplayedContent=function(X){this.unlinkPaths("content");if(X&&X.tabs)for(var t=X.tabs.length,G=0;G<t;G++){var y=X.tabs[G].tabRenderer||X.tabs[G].expandableTabRenderer;if(y.selected&&y.content)return this.linkPaths("content",this.getPath(X,G)),y.content}return null};
_.H.computeHasSecondaryColumnData=function(X){return!!X&&!!X.secondaryContents};
_.H.onRetrieveLocation=function(X,t){t.locationRetrieved(t.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);X.stopPropagation()};
_.H.onYtServiceRequestSent=function(X,t){_.A("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(t)};
_.H.onYtServiceRequestCompleted=function(X,t){_.A("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(t)};
_.H.onReplaceFeedContentAction=function(X){if(!_.A("replace_feed_content_action_killswitch")&&!this.notActive){var t;(X=(t=_.Y(X,uQH))==null?void 0:t.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(X)}};
_.H.handleServiceRequestActions=function(X){if(X=X.actions){X=_.J(X);for(var t=X.next();!t.done;t=X.next()){t=t.value;var G=void 0;((G=_.Y(t,uQH))==null?0:G.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.Y(t,uQH).items)}}};
C6.prototype.onYtServiceRequestCompleted=C6.prototype.onYtServiceRequestCompleted;C6.prototype.onYtServiceRequestSent=C6.prototype.onYtServiceRequestSent;C6.prototype.onRetrieveLocation=C6.prototype.onRetrieveLocation;_.E([_.q(_.y_),_.U("design:type",Object)],C6.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],C6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],C6.prototype,"data",void 0);_.E([_.K({computed:"computeDisplayedContent(data)"}),_.U("design:type",Object)],C6.prototype,"content",void 0);
_.E([_.K({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],C6.prototype,"hasSecondaryColumnData",void 0);_.E([_.K({value:function(){return window.outerHeight>1024?3:2}}),
_.U("design:type",Number)],C6.prototype,"initialCount",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],C6.prototype,"pageSubtype",void 0);_.E([_.rt("ytd-section-list-renderer"),_.U("design:type",Object)],C6.prototype,"listRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],C6.prototype,"notActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],C6.prototype,"isConstrainedList",void 0);
_.E([_.K(),_.U("design:type",String)],C6.prototype,"responsiveSizing",void 0);_.E([_.WW("yt-retrieve-location"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],C6.prototype,"onRetrieveLocation",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],C6.prototype,"onYtServiceRequestSent",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],C6.prototype,"onYtServiceRequestCompleted",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],C6);
_.N(C6,"ytd-two-column-browse-results-renderer",function(){if(z1T!==void 0)return z1T;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return z1T=X},{mode:2});var H6T;var oGR;var K6=function(){var X=_.O.apply(this,arguments)||this;X.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"]);X.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"]);X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return X};
_.S(K6,_.O);_.H=K6.prototype;_.H.attached=function(){this.requestElementsPerRow()};
_.H.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_]]"}}}}}};
_.H.onUpdateElementsPerRowAction=function(X){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X)};
_.H.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.H.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.H.computeAlertStyle_=function(X){return X};
_.H.observerElementsPerRow=function(){this.elementsPerRow&&_.Kd(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.H.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.H.requestElementsPerRow=function(){_.Yt(this.hostElement,"yt-request-elements-per-row")};
K6.prototype.onIsVisibleChanged_=K6.prototype.onIsVisibleChanged_;K6.prototype.observerElementsPerRow=K6.prototype.observerElementsPerRow;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],K6.prototype,"actionHandlerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],K6.prototype,"data",void 0);_.E([_.K({value:6,reflectToAttribute:!0}),_.U("design:type",Number)],K6.prototype,"elementsPerRow",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],K6.prototype,"wrapButtons",void 0);_.E([_.K({value:_.Md("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.U("design:type",Boolean)],K6.prototype,"isMusic",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.U("design:type",String)],K6.prototype,"alertStyle",void 0);_.E([_.K({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.U("design:type",Function)],K6.prototype,"dismissBoundButtonTap_",void 0);_.E([_.K({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.U("design:type",Function)],K6.prototype,"acceptBoundButtonTap_",void 0);_.E([_.cW("elementsPerRow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],K6.prototype,"observerElementsPerRow",null);_.E([_.cW("data.isVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],K6.prototype,"onIsVisibleChanged_",null);_.E([_.$F({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],K6);
_.N(K6,"yt-alert-with-actions-renderer",function(){if(oGR===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;H6T===void 0&&(H6T=document.createElement("template"));var y=H6T;G.call(t,y.content.cloneNode(!0),X.content.firstChild);oGR=X}X=oGR;return X},{mode:2});_.DW(_.Fp(function(X){function t(T){var D={};return _.k(_.eh,{text:T,className:_.cl("ytPersonalGreetingViewModelHeadline",(D.ytPersonalGreetingViewModelHeadlineSmall=function(){return V()===48},D))})}
function G(T,D){return _.k("span",{el:T,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},t(D))}
var y=_.T7(_.zF(function(){var T;return(T=X.data())==null?void 0:T.rendererContext},void 0,void 0,void 0,!0)),w=_.nl("span"),z=_.nl("span"),B=function(){return X.data().canvasPromoData},V=function(){var T;
return(T=X.data().bannerHeight)!=null?T:56},b=_.f$6(y,{throttleMs:100}),e=_.f$6(w,{throttleMs:100}),g=_.f$6(z,{throttleMs:100}),F=function(){return e.width()-b.width()>1};
return _.k("yt-personal-greeting-view-model",{el:y,"aria-hidden":F,class:_.cl(X.className,"ytPersonalGreetingViewModelHost"),style:_.Ud({height:(0,_.xB)(function(){return F()?0:V()})})},_.k(_.d,{cond:function(){return X.data().avatar&&!(g.width()+(X.data().avatar?48:0)-b.width()>1)},
then:function(){return _.k(_.M7,{data:function(){return X.data().avatar}},{decoratedAvatarViewModel:function(T){return _.k(_.lD,{data:T.data,
className:_.cl("ytPersonalGreetingViewModelAvatar")})}})}}),_.k("h1",null,t(function(){var T;
return(B==null?void 0:(T=B())==null?void 0:T.headline)||(g.width()+(X.data().avatar?48:0)-b.width()>1?X.data().shorterGreeting:X.data().greeting)})),G(z,function(){return X.data().greeting}),G(w,function(){return X.data().shorterGreeting}))},"hj"),"yt-personal-greeting-view-model",{props:{data:_.bR,
className:_.bR}});var OP=function(){var X=_.O.apply(this,arguments)||this;X.hidden=!1;X.isConstrainedList=!1;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.responsiveSizing="COMPACT";X.attachedPlayers=_.A("kevlar_channel_trailer_multi_attach")?[]:void 0;X.player=null;X.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return X};
_.S(OP,_.O);_.H=OP.prototype;
_.H.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}}}}};
_.H.created=function(){var X=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){X.disposeMastheadAd()}]};
_.H.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new vDH(this.refresh,this.contents))};
_.H.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.H.activeChanged=function(){var X=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=X)};
_.H.tabsChanged=function(){var X=this,t,G;if(this.pageSubtype==="channels"||_.A("kevlar_tab_gestures_for_tabbed_header_data")&&((t=this.data)==null?0:(G=t.header)==null?0:G.carouselHeaderRenderer))this.tabGestures=new C7(this.contents,this.contents,this.hostElement,this.header,function(B){X.ytdReduxBehavior.dispatch(B)});
var y,w,z;t=(y=this.data)==null?void 0:(w=y.contents)==null?void 0:(z=w.twoColumnBrowseResultsRenderer)==null?void 0:z.tabs;this.tabGestures&&this.tabGestures.tabsChanged(t)};
_.H.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.H.engagementPanelsChanged=function(){var X=_.gw().resolve(_.mD);if(X){if(this.engagementPanels)for(var t=_.J(this.engagementPanels),G=t.next();!G.done;G=t.next()){var y=void 0;(G=(y=G.value.identifier)==null?void 0:y.tag)&&X.panelMap.delete(G)}this.engagementPanels=[];var w;t=_.J(((w=this.data)==null?void 0:w.panels)||[]);for(w=t.next();!w.done;w=t.next()){w=_.Y(w.value,_.SnB);var z=G=void 0,B=void 0,V=void 0;if(y=((G=w)==null?void 0:G.targetId)||((z=w)==null?void 0:z.panelIdentifier)||((B=w)==
null?void 0:(V=B.identifier)==null?void 0:V.tag))z=G=void 0,(z=(G=X).registerPanelContent)==null||z.call(G,y,{engagementPanelSectionListRenderer:w}),this.engagementPanels.push(w)}}};
_.H.onStampFinished=function(){var X=this;_.V8(this,function(){if(X.tabGestures){var t=X.tabGestures;if(t.scrollPositionNeedsUpdate){var G=_.gw().resolve(_.jH(_.AS)),y;if((y=t.selectedTab)!=null&&y.title&&G&&(y=G.getCurrentPage())){if(t.scrollPositionForTabs.has(t.selectedTab.title)){var w,z;G=(z=(w=G.getCurrentPage())==null?void 0:w.clientHeight)!=null?z:0;w=t.scrollPositionForTabs.get(t.selectedTab.title);y.setScrollTop(w);G>w+100&&(t.scrollPositionNeedsUpdate=!1)}else y.setScrollTop(Math.min(t.lastVisitedTabScrollPosition!==
void 0?t.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,t.tabsStartAtInPx)),t.scrollPositionNeedsUpdate=!1;t.ytdReduxDispatch(YUB(!1))}}}})};
_.H.loadPage_=function(X){this.initCsi();X&&(this.data=X);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.H.getTitle=function(X){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",X))return this.get("microformat.microformatDataRenderer.title",X);if(this.get("header.feedTabbedHeaderRenderer.title",X))return _.bu(this.get("header.feedTabbedHeaderRenderer.title",X));if(this.get("header.interactiveTabbedHeaderRenderer.title",X))return this.get("header.interactiveTabbedHeaderRenderer.title",X);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
X))return _.bu(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",X));var t,G;return _.A("enable_page_header_page_title")&&(X==null?0:(t=X.header)==null?0:(G=t.pageHeaderRenderer)==null?0:G.pageTitle)?X.header.pageHeaderRenderer.pageTitle:""};
_.H.updateTitle=function(X){_.Yt(this.hostElement,"yt-update-title",this.getTitle(X))};
_.H.initCsi=function(){_.Dq(this.pageSubtype||"browse",["ol","cpt"])};
_.H.getPlayer=function(){if(_.A("kevlar_channel_trailer_multi_attach")){for(var X=_.J(this.attachedPlayers),t=X.next();!t.done;t=X.next())if(t=t.value,t.isConnected||_.Ml(this.hostElement,t))return t;return null}return this.player};
_.H.getPlayerContainer=function(){return null};
_.H.onPlayerAttached=function(X,t){_.A("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(t):this.player=t};
_.H.onPlayerDetached=function(X,t){_.A("kevlar_channel_trailer_multi_attach")?(X=this.attachedPlayers.indexOf(t),X<0||this.attachedPlayers.splice(X,1)):this.player=null};
_.H.getServiceTrackingParams=function(){var X,t;return((X=this.data)==null?void 0:(t=X.responseContext)==null?void 0:t.serviceTrackingParams)||[]};
_.H.setMastheadAd=function(X){X&&X.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=X&&X.mastheadAd};
_.H.dataChanged=function(){var X=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.z5V();_.V8(this,function(){_.D0(X.hostElement,"ytd-update-grid-state-action")})};
_.H.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.H.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var X=this.data.alerts;return X&&X.find(function(t){return!!t.alertWithActionsRenderer})}};
_.H.computeGreetingData=function(){if(this.data&&this.data.alerts){var X=this.data.alerts;return X&&X.find(function(t){return!!t.personalGreetingViewModel})}};
_.H.computeHasMemberHubProfileRenderer=function(X){var t;return!!(X==null?0:(t=X.header)==null?0:t.memberHubProfileRenderer)};
_.H.handleAlertCommand=function(X){this.get("alertCommand.alert.alertWithActionsRenderer",X)&&(X=_.Y(X,Q_H),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",X.alert))};
_.H.handleYtPlaylistDeletionRedirect=function(X){X=this.get("playlistDeletionRedirectCommand.redirectEndpoint",X);_.Yt(this.hostElement,"yt-navigate",{endpoint:X})};
_.H.computeFluidWidth=function(X,t,G){if(t==="mini_app"||G)return!0;var y,w,z;X=X==null?void 0:(y=X.contents)==null?void 0:(w=y.twoColumnBrowseResultsRenderer)==null?void 0:(z=w.tabs)==null?void 0:z.find(function(b){var e;return b==null?void 0:(e=b.tabRenderer)==null?void 0:e.selected});
if(!X)return!1;var B,V;return!!((B=X.tabRenderer)==null?0:(V=B.content)==null?0:V.richGridRenderer)&&!["channel","channels","playables"].includes(t)};
_.H.computeHeaderFluidWidth=function(X){return X==="hashtag-landing-page"};
_.H.computeHasSidebar=function(X){var t;return!!(X.sidebar||((t=X.header)==null?0:t.playlistHeaderRenderer))};
_.H.computeHasPageHeaderSidebar=function(X){var t,G;return!!((t=X.header)==null?0:(G=t.pageHeaderRenderer)==null?0:G.enableSidebarView)};
_.H.computeUseUnifiedShowPageLayout=function(X){if(!X||this.pageSubtype!=="show"||!X.sidebar||!X.sidebar.playlistSidebarRenderer)return!1;X=X.sidebar.playlistSidebarRenderer;if(!X.items)return!1;for(var t=0;t<X.items.length;t++)if(_.Y(X.items[t],Zq)){var G=void 0;return((G=_.Y(X.items[t],Zq))==null?void 0:G.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.H.computeIsConstrainedList=function(X){return _.A("web_enable_constrained_list_subscriptions_channels")&&X==="subscriptions-channels"};
_.H.computeResponsiveSizing=function(X){return X==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.ke.Object.defineProperties(OP.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var X,t;return((X=this.data)==null?0:(t=X.header)==null?0:t.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var X,t;if(!((X=this.data)==null?0:(t=X.sidebar)==null?0:t.playlistSidebarRenderer))return!1;var G;return(G=this.data)!=null&&G.header?!1:!0}}});
_.ke.Object.defineProperties(OP,{template:{configurable:!0,enumerable:!0,get:function(){if(xmV===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);xmV=X}X=xmV;return X}}});
OP.prototype.dataChanged=OP.prototype.dataChanged;OP.prototype.onPlayerDetached=OP.prototype.onPlayerDetached;OP.prototype.onPlayerAttached=OP.prototype.onPlayerAttached;OP.prototype.onStampFinished=OP.prototype.onStampFinished;OP.prototype.engagementPanelsChanged=OP.prototype.engagementPanelsChanged;OP.prototype.scrollAtTopChanged=OP.prototype.scrollAtTopChanged;OP.prototype.tabsChanged=OP.prototype.tabsChanged;OP.prototype.activeChanged=OP.prototype.activeChanged;
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],OP.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],OP.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],OP.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.Sv.YtPageBehavior),_.U("design:type",Object)],OP.prototype,"ytPageBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],OP.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],OP.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],OP.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],OP.prototype,"hidden",void 0);
_.E([_.K(),_.U("design:type",Object)],OP.prototype,"mastheadAdData",void 0);_.E([_.K({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.U("design:type",Object)],OP.prototype,"alertBannerData",void 0);_.E([_.K({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.U("design:type",Object)],OP.prototype,"greetingData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],OP.prototype,"pageSubtype",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.U("design:type",Boolean)],OP.prototype,"hasMemberHubProfileRenderer",void 0);_.E([_.K({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],OP.prototype,"hasSidebar",void 0);_.E([_.K({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],OP.prototype,"hasPageHeaderSidebar",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.U("design:type",Boolean)],OP.prototype,"roundedContainer",void 0);_.E([_.K({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],OP.prototype,"useUnifiedShowPageLayout",void 0);_.E([_.K({computed:"computeIsConstrainedList(pageSubtype)"}),_.U("design:type",Object)],OP.prototype,"isConstrainedList",void 0);
_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],OP.prototype,"usePlaylistHeaderRenderer",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],OP.prototype,"useOldPlaylistSidebarRenderer",null);_.E([_.K({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.U("design:type",Boolean)],OP.prototype,"fluidWidth",void 0);_.E([_.K({selector:function(X){return X.ui.scrollAtTop}}),
_.U("design:type",Boolean)],OP.prototype,"scrollAtTop",void 0);_.E([_.K({selector:_.loB}),_.U("design:type",Boolean)],OP.prototype,"tabGesturesIsActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],OP.prototype,"darkerDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.U("design:type",Boolean)],OP.prototype,"disableHeaderFluidWidth",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.U("design:type",String)],OP.prototype,"responsiveSizing",void 0);_.E([_.rt("ytd-two-column-browse-results-renderer"),_.U("design:type",HTMLElement)],OP.prototype,"contents",void 0);_.E([_.rt("#header"),_.U("design:type",HTMLElement)],OP.prototype,"header",void 0);_.E([_.rt("ytd-refresh"),_.U("design:type",Object)],OP.prototype,"refresh",void 0);
_.E([_.cW("active"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OP.prototype,"activeChanged",null);_.E([_.cW("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OP.prototype,"tabsChanged",null);_.E([_.cW("scrollAtTop"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OP.prototype,"scrollAtTopChanged",null);
_.E([_.K(),_.U("design:type",Object)],OP.prototype,"engagementPanels",void 0);_.E([_.cW("data.panels"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OP.prototype,"engagementPanelsChanged",null);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OP.prototype,"onStampFinished",null);
_.E([_.WW("yt-player-attached"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Element]),_.U("design:returntype")],OP.prototype,"onPlayerAttached",null);_.E([_.WW("yt-player-detached"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Element]),_.U("design:returntype")],OP.prototype,"onPlayerDetached",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OP.prototype,"dataChanged",null);
_.E([_.p({is:"ytd-browse"})],OP);_.h_.registerService(_.MvE,OP);
_.Lo();
}catch(e){_._DumpException(e)}
try{
_.R0("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 hu=function(X){if(!X)return"browse";var t=X.page,G=X.url,y,w,z,B=(y=X.response)==null?void 0:(w=y.responseContext)==null?void 0:(z=w.webResponseContextExtensionData)==null?void 0:z.pageTheme;if(B)t=B.toLowerCase().replace(/_/g,"-");else if(t!=="watch"&&t!=="learning_journey_watch"){var V,b;if((t==="browse"||t==="settings")&&((V=X.response)==null?0:(b=V.sidebar)==null?0:b.settingsSidebarRenderer))t="WEB_PAGE_TYPE_SETTINGS";else{var e,g;t==="browse"&&((e=X.response)==null?0:(g=e.metadata)==null?
0:g.channelMetadataRenderer)?t="channel":G&&(t=_.Wy(G)||t)}}return t},HlN=function(){var X=_.GA("yt.aba.att");
return X?X:_.su.instance!==void 0?_.su.instance.nTq.bind(_.su.instance):null},o5R=function(X,t){var G;
return _.n(function(y){return(G=HlN())?y.return(G(X,t,6E4)):y.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},JaQ=function(X,t,G,y,w){t=t===void 0?[]:t;
w=w?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:w}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Ag(X),dialogMessages:t.map(function(z){return _.Ag(z)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ag(G),serviceEndpoint:w}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ag(y)}}}}}},BSH=function(X){var t=!!_.oI().queueProxy;
var G,y,w;X=X==null?void 0:(G=X.response)==null?void 0:(y=G.currentVideoEndpoint)==null?void 0:(w=y.watchEndpoint)==null?void 0:w.playlistId;return!(!t&&!X)},n5B=function(X,t){var G=_.cF();
if(BSH(X))return G.playlistWatchPageActivation=!0;switch(hu(t)){case "yts-products":return G.productDetailsPageActivation=!0;case "mini_app":return G.miniAppPageActivation=!0;case "playables":return G.playablesDestPageActivation=!0;default:return!1}},Vir=function(X,t,G){for(var y=typeof X==="string"?X.split(""):X,w=X.length-1;w>=0;--w)w in y&&t.call(G,y[w],w,X)},bl4=function(X,t){t=_.jVf(X,t);
t>=0&&_.L_(X,t)},kjv=function(X){return Array.prototype.concat.apply([],arguments)},d_v=function(X){var t=0;
t=t===void 0?0:t;if(!_.b2(X))throw _.bJ("uint64");var G=typeof X;switch(t){case 512:switch(G){case "string":return _.kBv(X);case "bigint":return String((0,_.u2)(64,X));default:return _.VYl(X)}case 1024:switch(G){case "string":return _.dzA(X);case "bigint":return _.aq((0,_.u2)(64,X));default:return _.b4_(X)}case 0:switch(G){case "string":return _.kBv(X);case "bigint":return _.aq((0,_.u2)(64,X));default:return _.nhs(X)}default:return _.zr(t,"Unknown format requested type for int64")}},eMi=function(X){X!=
null&&(X=X.JSC$8747_value_||"",X=typeof X==="string"?X:new Uint8Array(X));
return X},jOQ=function(X){for(var t=_.f1.apply(1,arguments),G=X[0],y=0;y<X.length-1;y++)G+=String(t[y]),G+=X[y+1];
t=document.implementation.createHTMLDocument("");y=t.createElement("style");t.head.appendChild(y);t=y.sheet;t.insertRule(G,0);if(t.cssRules.length===1&&(G=t.cssRules[0],G instanceof CSSStyleRule))return new _.ec(G.cssText.replace(/</g,"\\3C "))},g5H=function(X,t){if(/-[a-z]/.test(t))return null;
if(_.iTJ&&X.dataset){if(_.oJs()&&!(t in X.dataset))return null;X=X.dataset[t];return X===void 0?null:X}return X.getAttribute("data-"+_.Q8(t))},TSR=function(){var X=FXV;
_.GA("yt.ads.biscotti.getId_")||_.dl("yt.ads.biscotti.getId_",X)},AaV=function(X){_.dl("yt.ads.biscotti.lastId_",X)},sOv=function(){var X={};
for(_.Ru=new YAH(X.handleError===void 0?_.fh:X.handleError,X.logEvent===void 0?_.a7:X.logEvent);_.iF.length>0;)switch(X=_.iF.shift(),X.type){case "ERROR":_.Ru.logError(X.payload);break;case "EVENT":_.Ru.logEvent(X.eventType,X.payload)}},D_R=function(X,t,G){return _.s$J(function(y){return G?y.userIdentifier!==void 0&&!X.includes(y.userIdentifier)&&G.includes(y.publicName):y.userIdentifier!==void 0&&!X.includes(y.userIdentifier)},t)},SAH=function(X){var t,G;
return _.n(function(y){if(y.nextAddress==1)return t=_.ps("YtIdbMeta hasAnyMeta other"),y.yield(_.s$J(function(w){return w.userIdentifier!==void 0&&w.userIdentifier!==t},X),2);
G=y.yieldResult;return y.return(G.length>0)})},ZlQ=function(X,t){hMR||(hMR=_.vz.addLowPriorityJob(function(){var G,y,w,z,B;
return _.n(function(V){switch(V.nextAddress){case 1:return V.yield(_.eD(),2);case 2:G=V.yieldResult;if(!G)return V.return();y=!0;_.CL(V,3);return V.yield(D_R(X,G,t),5);case 5:w=V.yieldResult;if(!w.length){y=!1;V.jumpTo(6);break}z=w[0];return V.yield(_.Hz(z.actualName),7);case 7:return V.yield(_.nb(z.actualName,G),6);case 6:_.zx(V,4);break;case 3:B=_.IY(V),_.Ls(B),y=!1;case 4:_.vz.cancelJob(hMR),hMR=0,y&&ZlQ(X,t),_.W$(V)}})}))},qAT=function(){var X;
return _.n(function(t){return t.nextAddress==1?t.yield(_.eD(),2):(X=t.yieldResult)?t.return(SAH(X)):t.return(!1)})},CCv=function(X){var t=100;
t=t===void 0?500:t;var G,y,w,z,B,V;return _.n(function(b){return b.nextAddress==1?(G=_.Md("INNERTUBE_CONTEXT_CLIENT_NAME",0),y=[G,(0,_.gl)()-2592E6],w=[G,(0,_.gl)()],z=IDBKeyRange.bound(y,w),b.yield(_.lkJ(X),2)):b.nextAddress!=3?(B=b.yieldResult,V=[],b.yield(_.Bz(B,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(e){V.length=0;return _.Fl(e.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:z,direction:"prev"},function(g){if(g.getValue()&&V.length<t)return V.push(g.getValue()),
g.delete().then(function(){return g.continue()})})}),3)):b.return(V)})},KX4=function(){var X;
return _.n(function(t){if(t.nextAddress==1)return t.yield(_.eD(),2);X=t.yieldResult;if(!X||!_.rw()&&!_.A("nwl_init_require_datasync_id_killswitch")||!_.dis())return t.jumpTo(0);_.jL0=!0;_.ejh.isNwlInitialized=_.jL0;return t.yield(_.Vb4().awaitInitialization(),0)})},Zi=function(X,t){_.QLA[X]=!0;
var G=_.Av();G&&G.publish.apply(G,arguments);_.QLA[X]=!1},uER=function(){if(_.n3J()&&!Olv){var X=function(G){G=G.data;
if(G.op==="serializedGelBatch"){var y=_.IWf.get(G.key);y&&(_.cH0(G.serializedBatch,y.client,y.resolve,y.networklessOptions,y.isIsolated,y.useVSSEndpoint,y.dangerousLogToVisitorSession,y.requestsOutstanding),_.IWf.delete(G.key))}},t=_.Btw();
t&&(t.addEventListener("message",X),t.onerror=function(){_.IWf.clear()});
Olv=!0}},qn=function(){this.relativeTimeStart_=_.YE()},QO2=function(X,t){X!=null&&this.append.apply(this,arguments)},Isi=function(){return _.$t("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},WXH=function(X,t,G){G=G===void 0?!1:G;
var y,w,z,B,V;return _.n(function(b){switch(b.nextAddress){case 1:_.Iu("SOCS",X,34128E3,"youtube.com",!0);if(_.Ox)return w=fetch(t,{method:"POST",mode:_.oa(t),credentials:_.HP(t),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),z=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.oa("/upgrade_visitor_cookie?eom=1"),credentials:_.HP("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),b.yield(Promise.all([w,z]).then(function(e){return e[1]}),5);
fetch(t,{method:"POST",mode:_.oa(t),credentials:_.HP(t),cache:"no-store",headers:{"Content-Type":"text/plain"}});return b.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.oa("/upgrade_visitor_cookie?eom=1"),credentials:_.HP("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:y=b.yieldResult;b.jumpTo(3);break;case 5:y=B=b.yieldResult;case 3:if(!y.ok)throw Error("nf");return b.yield(y.text(),7);case 7:V=b.yieldResult,
!V.includes('"state_switch":true')&&!G||V.includes("skip_reload_for_test")||window.location.reload(),_.W$(b)}})},caT=function(X){return _.n(function(t){return t.nextAddress==1?t.yield(WXH(X.socsCookie,X.savePreferenceUrl,!0),2):t.return()})},pqT=function(X){return _.n(function(t){return t.nextAddress==1?t.yield(WXH(X.socsCookie,X.savePreferenceUrl),2):t.return()})},NSv=function(X){X=X.xhr.responseText;
if(!_.y0(X,")]}'"))throw new Cn;X=JSON.parse(X.substr(4));if((X.type||1)>1)throw new Cn;X=X.id;AaV(X);Kn=_.Vq(X);raq(18E5,2);return X},E5q=function(X,t){t=new PCV(t);
AaV("");Kn=_.x4R(t);X>0&&raq(12E4,X-1);throw t;},raq=function(X,t){_.SH(function(){_.LuH().then(NSv,function(G){return E5q(t,G)}).thenCatch(_.ra)},X)},FXV=function(){var X=_.lUi();
if(X!==void 0)return _.l$(X);Kn||(Kn=_.LuH().then(NSv).thenCatch(function(t){return E5q(2,t)}));
return Kn},U_2=function(){var X=document;
return _.r6(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){return"on"+t.toLowerCase()in X})},m_Q=function(X){X.addEventListener("click",function(t){var G=t.target;
G&&G.getAttribute("href")&&(G=G.getAttribute("href"),_.zc(window,G,"_blank"),t.preventDefault(),t.stopImmediatePropagation())})},RMr=function(X){var t,G,y,w=(y=(G=((t=X.mainDownloadsListEntity)!=null?t:{})[_.bcE])==null?void 0:G.refresh)!=null?y:"",z;
X=(z=X.refresh)==null?void 0:z[w];w=X!=null?X:{};return(w==null?0:w.refreshTime)?Number(w==null?void 0:w.refreshTime):0},ilQ=function(X,t){var G=_.R$(X);
return t.every(function(y){var w;y=y==null?void 0:(w=y.playbackDataEntity)==null?void 0:w.key;if(!y)return!1;w=_.Cg(_.hg(y).entityId,"mainVideoEntity");return!!G[w]})},LXi=function(X){X=_.EG(X.entities);
return _.Zeh(X).length},v5R=function(X,t){if(t){var G;
X=(G=_.Kg(X.entities,"downloadQualityPickerEntity",t))!=null?G:void 0}else X=void 0;return X},x_N=function(){as4||(_.np=_.n6v,as4=new lsT);
return as4},fsR=function(X){var t=document.getElementsByTagName("ytd-enforcement-message-view-model");
t.length===0||getComputedStyle(t[0]).display==="none"?X(0,"p.h_"):X(1,"p.h_")},MiR=function(){OO=0;
var X=[_.Py(!0)];ub&&_.D0(ub,"yt-window-resized",X)},XsR=function(){OO||(OO=_.vz.addLowPriorityJob(MiR,200))},tb4=function(){QP=0;
$82=_.Ltq(document);var X=[$82];ub&&_.D0(ub,"yt-window-scrolled",X)},Gpr=function(){QP||(QP=_.vz.addLowPriorityJob(tb4,200))},wsQ=function(X){X=X===void 0?null:X;
yLH.push(_.jP(window,"resize",XsR));yLH.push(_.jP(window,"scroll",Gpr));X&&(ub=X)},HEB=function(){var X={isWide:_.QQ.get("wide","0")==="1"},t=_.cP();
if(t=t.getFlag(165)||t.getFlag(174))X.theme=_.Lp(!0);if(_.tG_()){var G=_.iu()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";X.systemTheme=G}!t&&_.A("parent_tools_enable_app_settings")&&_.Jt(window.location.href).theme!==void 0&&(X.theme=_.Lp());if((t=IW)?!_.RH.equals(t,X):X)t={currentValue:X},zXH&&(t.timeSinceLastSnapshotSecs=Math.round(((0,_.gl)()-zXH)/1E3)),IW&&(t.previousValue=IW),_.a7("appSettingsCaptured",t),IW=X,zXH=(0,_.gl)()},oeT=function(X){_.n(function(t){if(t.nextAddress==1)return t.yield(X.delete("yt-appshell-assets"),
2);
_.W$(t)})},JLR=function(X){return _.JG((0,_.hYS)(),X)},nea=function(){var X;
_.n(function(t){return t.nextAddress==1?t.yield(WR.getInstance(),2):(X=t.yieldResult)?t.yield(BuB(X),0):t.jumpTo(0)})},bEH=function(){var X;
_.n(function(t){return t.nextAddress==1?t.yield(cR.getInstance(),2):(X=t.yieldResult)?t.yield(VbH(X),0):t.jumpTo(0)})},kpR=function(X){oeT(X);
nea();bEH()},d8Q=function(X){var t,G;
return _.n(function(y){if(y.nextAddress==1)return y.yield(_.DEl(X),2);if(t=y.yieldResult){var w;a:{if(t.headers&&(w=t.headers.get("date"))&&(w=Date.parse(w),!isNaN(w))){w=Math.round((0,_.gl)()-w);break a}w=-1}G=w;if(G>-1)return y.return(G)}return y.return(-1)})},eX4=function(){var X=_.tA.caches,t=_.X3("IS_SHELL_LOAD"),G,y;
_.n(function(w){if(w.nextAddress==1)return G=-1,t?w.yield(d8Q(X),3):(y=_.Ul(),G=Math.round((0,_.gl)()-y),w.jumpTo(2));w.nextAddress!=2&&(G=w.yieldResult);G>=0&&G<2147483648&&_.vP({appInstallDataAgeMs:G});_.W$(w)})},j44=function(X){var t=_.tW(_.tA.location.href),G={};
"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(y){var w=t.JSC$9962_queryData_.getValues(y);if(w==null?0:w.length)G[y]=w});
return _.DA(X,new Map(Object.entries(G)))},geH=function(X){X=X.match(/(.*)::.*::.*/);
if(X!==null)return X[1]},Fqv=function(X){if(_.UEh()){var t=Object.keys(window.localStorage);
t=_.J(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;var y=geH(G);y===void 0||X.includes(y)||self.localStorage.removeItem(G)}}},TuH=function(){if(!_.UEh())return!1;
var X=_.ps(),t=Object.keys(window.localStorage);t=_.J(t);for(var G=t.next();!G.done;G=t.next())if(G=geH(G.value),G!==void 0&&G!==X)return!0;return!1},ALN=function(X){return _.gm("NotificationsDisabled",X)},Ysv=function(){return Notification.permission!="granted"?Promise.resolve():_.xlv().then(function(X){return X?X.pushManager.getSubscription().then(function(t){if(t)return Promise.resolve();
t={userVisibleOnly:!0,applicationServerKey:_.BS("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return X.pushManager.subscribe(t).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},s4T=function(X){return _.xlv().then(function(t){if(!t||!t.active)return Promise.reject(new _.NJ("serviceworker.postMessage",X,t));
try{return t.active.postMessage(X),Promise.resolve()}catch(G){return Promise.reject(G)}})},D8V=function(){s4T({type:"notifications_register",
data:_.Md("ID_TOKEN")})},Ss4=function(){if(!_.X3("LOGGED_IN"))return Promise.resolve(!1);
var X=_.Yx("service_worker_push_force_notification_prompt_tag");return X?_.DS("PromptTags").then(function(t){if(!t)return!0;var G=[];try{G=JSON.parse(t)}catch(y){return!1}return G&&G.indexOf(X)==-1}):Promise.resolve(!1)},hXR=function(){var X=_.At("service_worker_push_prompt_delay_microseconds");
return X?_.DS("PromptTime").then(function(t){return Promise.resolve(Date.now()-X>(t||0))}):Promise.resolve(!0)},ZEH=function(){var X=_.At("service_worker_push_logged_out_prompt_watches");
return X==-1?Promise.resolve(!1):_.DS("WatchCount").then(function(t){return t>=X})},qsq=function(){var X=_.Se(document,"yt-push-prompt-modal-bg");
X&&_.uf(X)},Cwq=function(){return _.At("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.DS("PromptCount").then(function(X){X||(X=0);
return Promise.resolve(X<_.At("service_worker_push_prompt_cap"))})},Kqi=function(X){return _.X3("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.X3("LOGGED_IN")&&(X===void 0?0:X)?Ss4().then(function(t){if(t)return!0;
t=[Cwq(),hXR()];_.X3("LOGGED_IN")||t.push(ZEH());return Promise.all(t).then(function(G){return G.every(function(y){return y})})}):Promise.resolve(!1)},OEi=function(){_.DS("PromptCount").then(function(X){return _.gm("PromptCount",X+1)}).then(function(){return _.gm("PromptTime",Date.now())}).then(function(){var X=_.Yx("service_worker_push_force_notification_prompt_tag");
if(X)return _.DS("PromptTags").then(function(t){var G=[];if(t)try{G=JSON.parse(t)}catch(y){return!1}G||(G=[]);G.push(X);return _.gm("PromptTags",JSON.stringify(G))})})},Q4i=function(){umT||qsq()},IOR=function(X){X.style.zIndex=2147483648;
X.style.pointerEvents="auto";X.style.backgroundColor="rgba(0, 0, 0, 0.6)";X.style.width="100%";X.style.height="100vh";X.style.position="absolute";X.style.top="0";X.style.left="0";X.style.border="none"},Wq2=function(){var X=_.Se(document,"yt-push-prompt-modal-bg");
umT=_.A("service_worker_push_prompt_modal_ignore_click");X?IOR(X):(X=_.LN("div",{id:"yt-push-prompt-modal-bg"}),IOR(X),document.body.appendChild(X),_.C$h(document,"click",Q4i))},cLR=function(){var X=arguments;
_.A("service_worker_push_prompt_modal_enable")&&Wq2();return Notification.requestPermission().then(function(t){qsq();var G=document.getElementById("ticker");G&&(G.className=G.classList.remove("show"));if(t=="granted")return Ysv().then(function(){ALN(!1);D8V();return Promise.resolve(!0)});
t=="denied"&&D8V();return Promise.resolve(!1)}).catch(function(){qsq();
return Promise.reject.apply(Promise,_.RY(X))})},psi=function(X){X=X===void 0?!1:X;
var t=_.H86().client;if(t&&t.browserVersion){var G=t.browserVersion,y=t.browserName=="CHROME"&&_.d6(G,"50.0.0")<0;t=t.browserName=="OPERA"&&_.d6(G,"42.0.0")<0;if(y||t)return Promise.resolve()}return _.XmT().then(function(w){if(!w)return Promise.resolve();w=Ysv().then(function(){return s4T({type:"notifications_check_registration",data:_.Md("ID_TOKEN")})});
return Notification.permission!="default"?w.catch(function(){}):w.then(function(){return Kqi(X)}).then(function(z){if(z)return OEi(),cLR().then(function(){})}).catch(function(){})})},rLR=function(X){return _.foQ(X)?psi():Promise.resolve()},NuN=function(X){var t=X.installing||X.waiting;
return X.active||!t?Promise.resolve(X):new Promise(function(G){var y=function(w){w=w.target;if(w.state==="activated"||w.state==="redundant")t.removeEventListener("statechange",y),G(X)};
t.addEventListener("statechange",y)})},Pw2=function(){var X=new _.FnY("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.uW(X,{mainAppWeb:_.Jb()});var t=_.m6q;_.A("service_worker_forward_exp_params")&&(t=j44(t));try{var G=_.JDs(t).catch(function(){_.Q6(X,"FAILURE");return new Promise(function(){})});
_.A("service_worker_push_enabled")&&G.then(function(y){_.Q6(X,"SUCCESS");return y}).then(NuN).then(rLR)}catch(y){if(_.Q6(X,"FAILURE"),y.name!=="SecurityError")throw y;
}},EeQ=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Pw2()},U84=function(X,t){var G={};
t&&(G.serializedYpcFamilyCreateLoggingParams=t);_.a7(X,G);_.lx()},m8T=function(X,t){var G={};
G.serializedYpcRefundFlowLoggingParams=t;X&&(G.eventType=X);_.a7("ypcRefundFlowEvent",G);_.lx()},RXi=function(X){X&&_.nKw("transactionFlowSucceeded",X)},iEN=function(X){X&&_.Gg("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",X,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},LqN=function(X){var t,G,y,w,z,B,V;
_.n(function(b){if(b.nextAddress==1)return b.yield(_.f6v(),2);if(b.nextAddress!=3){if(!b.yieldResult)return b.return(!1);t=[];return b.yield(_.KX.keys(),3)}G=b.yieldResult;y=_.J(G);for(w=y.next();!w.done;w=y.next())z=w.value,B=_.l6V(z),V=B.datasyncId,!V||X.includes(V)||t.push(_.KX.delete(z));return b.return(Promise.all(t).then(function(e){return e.some(function(g){return g})}))})},veR=function(){var X,t,G,y,w,z,B;
return _.n(function(V){if(V.nextAddress==1)return V.yield(_.f6v(),2);if(V.nextAddress!=3){if(!V.yieldResult)return V.return(!1);X=_.ps("cache contains other");return V.yield(_.KX.keys(),3)}t=V.yieldResult;G=_.J(t);for(y=G.next();!y.done;y=G.next())if(w=y.value,z=_.l6V(w),(B=z.datasyncId)&&B!==X)return V.return(!0);return V.return(!1)})},aOH=function(){var X=_.gw().resolve(_.jH(_.P1J));
return X?X.getCurrentTime():0},lOv=function(){var X,t,G,y,w,z,B,V,b,e,g,F,T,D;
return _.n(function(h){switch(h.nextAddress){case 1:X={},t=_.$a6(),G=_.J(Object.entries(t)),y=G.next();case 4:if(y.done){h.jumpTo(3);break}w=y.value;z=_.J(w);B=z.next().value;V=z.next().value;b=B;e=V;if(!e){h.jumpTo(5);break}return h.yield(e(),8);case 8:X[b]=h.yieldResult;case 5:y=G.next();h.jumpTo(4);break;case 2:g=_.J(void 0),F=g.next();case 9:if(F.done){h.jumpTo(3);break}T=F.value;D=t[T];if(!D){h.jumpTo(10);break}return h.yield(D(),13);case 13:X[T]=h.yieldResult;case 10:F=g.next();h.jumpTo(9);
break;case 3:return h.return(X)}})},x8B=function(){var X;
_.n(function(t){if(t.nextAddress==1)return t.yield(lOv(),2);X=t.yieldResult;return t.yield(navigator.clipboard.writeText(JSON.stringify(X,null,2)),0)})},fOV=function(X,t){return _.Kg(X.entities,"superThanksSelectedTierEntity",t)},Mbq=function(X,t){var G=_.V5v();
_.iv(function(){var y=X.value;if(y)return _.WjY(y,t),_.cul(y,t,void 0,void 0,void 0,G)},[t])},XPQ=function(X){var t;
return(t=X.sharedUi)==null?void 0:t.currentPageType},$YB=function(X,t){return{popup:{searchSuggestionReportDialog:{searchQuery:X,
title:_.Qf("SBOX_INAPPROPRIATE_TITLE"),suggestions:t,categoryLabel:_.Qf("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Qf("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Qf("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Qf("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Qf("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Qf("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Qf("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Qf("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Qf("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Qf("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},tQQ=function(X){var t,G,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l;
return _.n(function(R){switch(R.nextAddress){case 1:return R.yield(_.Q1(),2);case 2:return(t=R.yieldResult)?R.yield(_.eas(t),3):R.return();case 3:G=R.yieldResult;if(!G)return R.return();w=((y=G.offlineVideos)==null?void 0:y.length)||0;B=((z=G.offlinePlaylists)==null?void 0:z.length)||0;if(w===0&&B===0)return R.return();V=0;if(G.offlineVideos)for(b=_.J(G.offlineVideos),e=b.next();!e.done;e=b.next())g=e.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===g.videoState&&(V+=1);X.offline_videos_count=w.toString();
_.A("kevlar_log_offline_current_network_type_ks")||(X.offline_current_network_type=(F=_.xYV())!=null?F:"CONN_INVALID");_.A("kevlar_log_updated_time_for_smart_downloads")&&(T=_.dV().getState().entities,D=_.a$(T),h=RMr(T),X.offline_smart_downloads_last_sync_time_ms=D.toString(),X.offline_smart_downloads_next_sync_time_ms=h.toString());X.offline_videos_playable=V.toString();X.offline_playlists_count=B.toString();G.offlineVideos&&(u=G.offlineVideos.reduce(function(L,x){x.downloadedBytes&&(L+=Number(x.downloadedBytes));
return L},0).toString())&&(X.offline_used_disk_space_bytes=u);
if(!((W=navigator)==null?0:(c=W.storage)==null?0:c.estimate)){R.jumpTo(4);break}return R.yield(navigator.storage.estimate(),5);case 5:P=R.yieldResult,X.offline_free_disk_space_bytes=(((l=P)==null?void 0:l.quota)||0).toString();case 4:X.offline_client_state=JSON.stringify(G),_.W$(R)}})},Giv=function(X){X=_.J(X);
for(var t=X.next(),G={};!t.done;G={setter$jscomp$5:void 0},t=X.next()){var y=t.value;t=y.params;y=y.service;t&&y&&(G.setter$jscomp$5=_.$xH[y],G.setter$jscomp$5&&t.forEach(function(w){return function(z){var B=z.key;z=z.value;B&&z&&(0,w.setter$jscomp$5)(B,z)}}(G)))}},yEV=function(X){X=X.match(/(.*)::.*::.*/);
if(X!==null)return X[1]},wPH=function(X){if(_.YU0()){var t=Object.keys(window.sessionStorage);
t=_.J(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;var y=yEV(G);y===void 0||X.includes(y)||self.sessionStorage.removeItem(G)}}},zu2=function(){if(!_.YU0())return!1;
var X=_.ps(),t=Object.keys(window.sessionStorage);t=_.J(t);for(var G=t.next();!G.done;G=t.next())if(G=yEV(G.value),G!==void 0&&G!==X)return!0;return!1},pn=function(X,t,G){(_.A("desktop_keyboard_shortcut_usage_log")||G&&_.A("web_shorts_keyboard_shortcut_usage_log"))&&(t?_.sO.get(X):_.YL.get(X))&&(X=t?_.SW.get(X):_.Di.get(X))&&_.BK(_.lw(),X)},HqH=function(){var X,t;
return typeof CSS!=="undefined"&&((t=(X=CSS).supports)==null?void 0:t.call(X,"selector(:has(*))"))},otT=function(X){return X.visibility!=="hidden"&&X.display!=="none"},BkR=function(X){if(HqH()||X.tagName!=="DETAILS"?!X.matches(JEr):X.querySelector("summary")!==null)return-1;
X=X.getAttribute("tabindex")||"0";return Number(X)},ntV=function(X){return X.some(function(t){return BkR(t)>0})},VQ4=function(X){if(X.textContent)return!0;
if(X instanceof HTMLInputElement){if(!X.labels)return!1;X=_.J(X.labels);for(var t=X.next();!t.done;t=X.next())if(t.value.textContent)return!0}return!1},bqq=function(X){return X.sort(function(t,G){return BkR(G)-BkR(t)})},kiR=function(X){X=Array.from(X.querySelectorAll(JEr)).filter(function(t){return(otT(t.style)?otT(window.getComputedStyle(t)):!1)&&VQ4(t)});
return ntV(X)?bqq(X):X},dYv=function(X){X=kiR(X);
X.length>0&&X[0].focus()},euV=function(X,t){t.stack&&(X.stack+="\n"+t.stack);
return X},FxH=function(X){var t=rm(X,"Content-Type");
if(!t)return null;t=t.toLowerCase();if(t.startsWith("application/json"))return t.startsWith("application/json+protobuf")?new jaH:new _.Db;if(t.startsWith("application/x-protobuf")){X=rm(X,"Content-Transfer-Encoding");if(!X)return new Nn;if(X.toLowerCase()=="base64")return new gtB}return null},qlH=function(X,t,G,y){var w=new TkR(function(V,b){return AER.has(b)?V.sentinel==="gal"&&V.event!==void 0:!1},function(V){V.event?(V=YlR(V.event),V=!V||saQ(y,V)?!0:_.r1(X.lastEvent,PR,2,EO)?!_.r1(V,UO,1,EO)&&
!_.r1(V,PR,2,EO):!_.r1(V,UO,1,EO)&&!_.r1(V,PR,3,EO)):V=!0;
return V});
G=_.DA(X.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",DYi(G)]]));if(X.nestedOrigins!==void 0)for(var z=_.J(X.nestedOrigins),B=z.next();!B.done;B=z.next())G=_.DA(G,new Map([["origin",B.value]]));return Slv(w,G,t).then(function(V){V=huR(V.event);if(_.r1(V,UO,1,EO)){var b,e=(b=_.Xy(V,UO,1,EO))==null?void 0:_.lz(b,2);e&&y.JSC$19166_logErrorEvent(Zqa(e));b=_.Xy(V,UO,1,EO);_.lz(b,2)===4?(V=_.Xy(V,UO,1,EO),V={statusCode:11,statusMessage:_.aQ(V,
3)}):(V=_.Xy(V,UO,1,EO),V={statusCode:12,statusMessage:_.aQ(V,3)});return V}_.r1(V,PR,3,EO)?(V=_.Xy(V,PR,3,EO),V={statusCode:1,consentLanguageKeys:_.aQ(V,2)}):V={statusCode:1};return V}).catch(function(V){return V.errorCode!==void 0?{statusCode:V.errorCode,
statusMessage:V.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},uiB=function(X){var t={};
if(X===void 0||X===null)return t;X.getToken()!==void 0&&CsN(X.getToken())&&CsN(X.getToken()).length>0&&(t.scopes=new Set(CsN(X.getToken())));X.getToken()!==void 0&&Kxq(X.getToken())&&Kxq(X.getToken()).length>0&&(t.capabilities=new Set(Kxq(X.getToken())));_.aQ(X,3)!==void 0&&(t.consistencyKey=_.aQ(X,3));X.getName()!==void 0&&X.getName()!==""&&(t.linkName=X.getName());_.p9(X,Oq2,4)&&(X=_.Co(X,Oq2,4),X=Object.assign({},_.aQ(X,1)&&{userId:_.aQ(X,1)},_.aQ(X,2)&&{displayName:_.aQ(X,2)},_.aQ(X,3)&&{email:_.aQ(X,
3)},_.aQ(X,5)&&{username:_.aQ(X,5)},_.aQ(X,4)&&{profilePicture:_.aQ(X,4)}),t.profile=X);return t},Qa2=function(X,t){var G=X.flowParams,y;
return{serviceId:G.serviceId,sessionId:G.sessionId,currentFlow:X.currentFlow,googleScopesString:t,linkingSessionSerialized:X.session.serialize(),consentLanguageKeys:G.consentLanguageKeys,callerState:X.callerState,dynamicUrlParameters:G.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(y=G.partnerConfigMinReadTimestamp)==null?void 0:y.serialize()}},rEa=function(X){var t=X.googleScopes!==void 0?Array.from(X.googleScopes).join(","):"";
I0q(Qa2(X,t));t=WxH(X);return t===null?Promise.resolve(cEi):t.start().then(function(G){var y,w=(y=G.link)==null?void 0:y.consistencyKey;return G.statusCode===1&&X.googleScopes!==void 0&&X.googleScopes.size>0&&w!==void 0?(y=X.flowParams,pPB(y.serviceId,y.sessionId,X.googleScopes,w,y.galService,X.config,G)):G})},Nka=function(X){var t=WxH(X);
return t===null?Promise.resolve(mj({statusCode:7,statusMessage:"Failed to create flow object"},X.callerState)):t.complete().then(function(G){var y,w=(y=G.link)==null?void 0:y.consistencyKey;return G.statusCode===1&&X.googleScopes!==void 0&&X.googleScopes.size>0&&w!==void 0?(y=X.flowParams,pPB(y.serviceId,y.sessionId,X.googleScopes,w,y.galService,X.config,G)):mj(G,X.callerState)},function(G){return mj({statusCode:12,
statusMessage:"Failed to complete the flow: "+G.message},X.callerState)})},pPB=function(X,t,G,y,w,z,B){return Psv(w,{serviceId:X,
sessionId:t,googleScopes:G,consistencyKey:y}).then(function(){return B},function(V){return w.deleteLink({serviceId:X,
sessionId:t,accountLinkingEntryPoint:z.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+V.message}},function(b){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+b.message}})})},WxH=function(X){switch(X.currentFlow){case 1:var t=X.flowParams;
X=_.Co(X.session,EtB,1);return RW.createOAuthFlow(t,X);case 2:case 3:return t=X.flowParams,X=_.Co(X.session,UYH,6),ib.createStreamlinedFlow(t,X);default:return null}},mYR=function(X,t){X===2&&(X=3);
var G=0;Ln.indexOf(X)!==-1&&(G=Ln.indexOf(X)+1);for(X=G;X<Ln.length;X++)if(t.has(Ln[X]))return Ln[X]},LxR=function(X){var t=X.serviceId;
var G=X.sessionId;var y=X.config;var w=X.galService;var z=X.capabilities;var B=X.scopes;var V=X.loginHint;var b=X.callerState;var e=X.consentLanguageKeys;var g=X.linkName;var F=X.dynamicUrlParameters;var T=X.partnerConfigMinReadTimestamp;X=y.dataUsageNoticeConfig?y.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return w.startLinkingSession({serviceId:t,sessionId:G,capabilities:z,scopes:B,loginHint:V,callerState:b,supportedFlows:RuT(y.supportedFlows),completionUrl:y.completionUrl,accountLinkingEntryPoint:y.accountLinkingEntryPoint,
consentLanguageKeys:e,dataUsageNoticeConfig:X,linkName:g,dynamicUrlParameters:F,partnerConfigMinReadTimestamp:T}).then(function(D){return new iqT(t,G,y,w,D,void 0,b,e,F,T)})},MQR=function(X,t,G){var y=(new vtN).getSession(X);
if(y===null)return Promise.resolve({statusCode:2});a0R(X);var w=l0H(y.linkingSessionSerialized),z=y.googleScopesString!==""&&y.googleScopesString!==void 0?new Set(y.googleScopesString.split(",")):void 0,B=y.partnerConfigMinReadTimestampSerialized?xYr(y.partnerConfigMinReadTimestampSerialized):void 0;return f0v(new iqT(X,y.sessionId,t,G,w,z,y.callerState,y.consentLanguageKeys,y.dynamicUrlParameters,B),y.currentFlow,y.consentLanguageKeys)},I0q=function(X){var t=new vtN;
t.storage!==null&&t.storage.set("SAVED_SESSION",X)},a0R=function(X){var t=new vtN;
if(t.storage!==null){var G=t.storage.get("SAVED_SESSION");G!==void 0&&G.serviceId===X&&t.storage.remove("SAVED_SESSION")}},RuT=function(X){var t=new Set;
X=_.J(X);for(var G=X.next();!G.done;G=X.next())G=G.value,G!==1&&XKV.has(G)&&t.add(XKV.get(G));return t},mj=function(X,t){t!==void 0&&(X.callerState=t);
return X},$Q2=function(X){switch(X){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},ygR=function(X){return new t7a(X,new GG2(X))},Hg4=function(X,t){t=t===void 0?!1:t;
var G=document.createElement("div");X&&(G.style.transform="scaleX(-1)");G.style.backgroundColor=t?"rgba(138,180,248,.24)":"#e8f0fe";G.style.height="4px";G.style.overflow="hidden";G.style.position="absolute";G.style.top="0";G.style.width="100%";G.style.zIndex="1500";G.setAttribute("aria-label","Loading");G.setAttribute("aria-live","polite");X=document.createElement("style");X.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  }";
G.appendChild(X);X=wKB();X.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";X.style.left="-145.166611%";var y=z7q(t);y.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";X.appendChild(y);G.appendChild(X);X=wKB();X.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";X.style.left="-54.888891%";t=z7q(t);t.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
X.appendChild(t);G.appendChild(X);return G},wKB=function(){var X=document.createElement("div");
X.style.height="100%";X.style.position="absolute";X.style.transformOrigin="top left";X.style.width="100%";return X},z7q=function(X){var t=document.createElement("span");
t.style.borderTop=X?"4px solid #669df6":"4px solid #4285f4";t.style.display="inline-block";t.style.position="absolute";t.style.width="100%";return t},o0Q=function(X){return X==null?void 0:_.XtY(X).valueOf()},V7a=function(X){var t=document.body,G=!1,y=function(){G||(G=!0,JgR(w,z),setTimeout(function(){t.removeChild(z);
t.removeChild(w)},150))},w=B9r(X,getComputedStyle(t).direction==="rtl",y),z=n02(y);
JgR(w,z);t.appendChild(z);t.appendChild(w);window.requestAnimationFrame(function(){z.style.opacity="1";w.style.opacity="1";w.style.transform="translate(-50%, -50%) scale(1)";w.children[0].focus()})},B9r=function(X,t,G){var y=document.createElement("div");
y.style.position="fixed";y.style.alignItems="center";y.style.backgroundColor=X?"rgb(32, 33, 36)":"white";y.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";y.style.display="flex";y.style.flexDirection="column";y.style.justifyContent="center";y.style.left="50%";y.style.top="50%";y.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";y.style.zIndex="2002";document.body.clientWidth>=660?(y.style.borderRadius="8px",y.style.minHeight="220px",
y.style.maxHeight="90%",y.style.maxWidth="90%",y.style.minWidth="540px"):(y.style.height="100%",y.style.width="100%");y.setAttribute("aria-label","Error");y.setAttribute("aria-modal","true");y.setAttribute("role","alertdialog");y.addEventListener("keydown",function(z){z.key==="Escape"&&G()});
t=bgR(X,t,G);y.appendChild(kGH(t));y.appendChild(t);var w=document.createElement("img");w.src=X?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";w.style.height="72px";w.style.width="72px";w.style.color="#9aa0a6";w.setAttribute("alt","");y.appendChild(w);w=document.createElement("h1");w.textContent="Something went wrong.  Try again.";
w.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";w.style.lineHeight="24px";w.style.fontSize="16px";w.style.textAlign="center";w.style.letterSpacing="0.1px";w.style.color=X?"rgb(232,234,237)":"#3c4043";y.appendChild(w);y.appendChild(kGH(t));return y},bgR=function(X,t,G){var y=document.createElement("button");
y.style.backgroundColor="transparent";y.style.border="none";y.style.borderRadius="50%";y.style.cursor="pointer";y.style.outline="none";y.style.padding="12px";y.setAttribute("aria-label","Close dialog");y.style.position="absolute";y.style.top="0";t?y.style.right="0":y.style.left="0";y.addEventListener("focus",function(){y.style.backgroundColor=X?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
y.addEventListener("blur",function(){y.style.backgroundColor="transparent"});
y.addEventListener("mouseenter",function(){y.style.backgroundColor=X?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
y.addEventListener("mouseleave",function(){y.style.backgroundColor="transparent"});
y.addEventListener("click",G);y.addEventListener("keydown",function(w){w.key!=="Enter"&&w.key!=="Space"||G()});
t=document.createElement("img");t.src=X?"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";t.style.display="block";t.style.height="24px";t.style.width="24px";t.setAttribute("alt","");y.appendChild(t);return y},kGH=function(X){var t=document.createElement("div");
t.setAttribute("tabindex","0");t.setAttribute("aria-hidden","true");t.addEventListener("focus",function(){return void X.focus()});
return t},n02=function(X){var t=document.createElement("div");
t.style.backgroundColor="rgba(32,33,36,0.6)";t.style.bottom="0";t.style.left="0";t.style.position="fixed";t.style.right="0";t.style.top="0";t.style.transition=" opacity 150 ms linear";t.style.zIndex="2001";t.addEventListener("click",X);return t},JgR=function(X,t){t.style.opacity="0";
X.style.opacity="0";X.style.transform="translate(-50%, -50%) scale(0.8)"},dQ4=function(X,t){X.sandbox&&X.sandbox.add&&(X.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),X.sandbox.add("allow-downloads"));
X.src=t},vR=function(X){e7r.call(this,X)},aW=function(X,t){t=t===void 0?!1:t;
this.parsedImageUrl_=null;X instanceof j$2||(g0H==void 0&&(g0H=new FCR),X=g0H.parse(X.toString(),t));X=this.parsedImageUrl_=X;X.JSC$19378_parsedOptions_==void 0&&((t=X.getOptions())||(t=""),X.JSC$19378_parsedOptions_=(new T9R).parse(t));e7r.call(this,X.JSC$19378_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;X=this.parsedImageUrl_;t=X.uri_.JSC$9962_port_;this.JSC$19380_domain_=X.uri_.JSC$9962_domain_+(t?":"+t:"");this.JSC$19380_query_=this.parsedImageUrl_.uri_.JSC$9962_queryData_.toString()},
AgN=function(X){this.mode=4;
this.data=X;this.parsedData=[];X=0;for(var t=this.data.length;X<t;X++){var G=[],y=this.data.charCodeAt(X);y>65536?(G[0]=240|(y&1835008)>>>18,G[1]=128|(y&258048)>>>12,G[2]=128|(y&4032)>>>6,G[3]=128|y&63):y>2048?(G[0]=224|(y&61440)>>>12,G[1]=128|(y&4032)>>>6,G[2]=128|y&63):y>128?(G[0]=192|(y&1984)>>>6,G[1]=128|y&63):G[0]=y;this.parsedData.push(G)}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))},YGV=function(X){this.typeNumber=0;
this.errorCorrectLevel=X===void 0?2:X;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},lb=function(X,t){if(X.length==void 0)throw Error("tk`"+X.length+"`"+t);
for(var G=0;G<X.length&&X[G]==0;)G++;this.num=Array(X.length-G+t);for(t=0;t<X.length-G;t++)this.num[t]=X[t+G]},s$V=function(X,t){this.totalCount=X;
this.dataCount=t},DQv=function(){this.buffer=[];
this.length=0},SGH=function(){var X=!1;
if(_.VsV()){X=_.es();var t="";_.dw_()?(t=/Windows (?:NT|Phone) ([0-9.]+)/,t=(X=t.exec(X))?X[1]:"0.0"):_.IV()?(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,t=(X=t.exec(X))&&X[1].replace(/_/g,".")):_.kVv()?(t=/Mac OS X ([0-9_.]+)/,t=(X=t.exec(X))?X[1].replace(/_/g,"."):"10"):_.V0(_.es(),"KaiOS")?(t=/(?:KaiOS)\/(\S+)/i,t=(X=t.exec(X))&&X[1]):_.VsV()?(t=/Android\s+([^\);]+)(\)|;)/,t=(X=t.exec(X))&&X[1]):_.eGl()&&(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,t=(X=t.exec(X))&&X[1]);X=t||""}return X},OgV=function(X,
t){this.JSC$19403__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(t)for(var G in t)this.JSC$19403__htOption[G]=t[G];this.JSC$19403__htOption.useSVG&&(h7V=Zgv);this.JSC$19403__android=SGH();this.JSC$19403__el=X;this._oQRCode=null;this._oDrawing=new h7V(this.JSC$19403__el,this.JSC$19403__htOption);this.JSC$19403__htOption.text&&(X=this.JSC$19403__htOption.text,this._oQRCode=new YGV(this.JSC$19403__htOption.correctLevel),qGq(this._oQRCode,X),t=this._oQRCode,CAr(t,!1,KCH(t)),this.JSC$19403__el.title=
X,this._oDrawing.draw(this._oQRCode),this.makeImage())},uVi=function(X,t,G,y,w){X.save();
var z=new Path2D;z.roundRect(t,G,y*7,y*7,y*2);z.roundRect(t+y,G+y,y*5,y*5,y*1.3);z.roundRect(t+2*y,G+2*y,y*3,y*3,y);X.clip(z,"evenodd");X.fillStyle=w;X.fillRect(0,0,X.canvas.width,X.canvas.height);X.restore()},xL=function(X,t){if(typeof X!=="function")throw Error("wk");
return _.tA.setTimeout(function(){X()},t)},fn=function(){},IlB=function(X,t,G,y,w){(new fn).debug("TestLoadImageWithRetries: "+w);
if(y==0)G(!1);else{var z=w||0;y--;Q$V(X,t,function(B){B?G(!0):_.tA.setTimeout(function(){IlB(X,t,G,y,z)},z)})}},Q$V=function(X,t,G){var y=new fn;
y.debug("TestLoadImage: loading "+X);var w=new Image;w.onload=function(){try{y.debug("TestLoadImage: loaded"),WCH(w),G(!0)}catch(z){}};
w.onerror=function(){try{y.debug("TestLoadImage: error"),WCH(w),G(!1)}catch(z){}};
w.onabort=function(){try{y.debug("TestLoadImage: abort"),WCH(w),G(!1)}catch(z){}};
w.ontimeout=function(){try{y.debug("TestLoadImage: timeout"),WCH(w),G(!1)}catch(z){}};
_.tA.setTimeout(function(){if(w.ontimeout)w.ontimeout()},t);
w.src=X},WCH=function(X){X.onload=null;
X.onerror=null;X.onabort=null;X.ontimeout=null},cgH=function(){this.front_=[];
this.back_=[]},pKi=function(X,t){_.po.call(this);
this.delay_=new _.Nl(this.JSC$19529_onTick_,0,this);_.h6(this,this.delay_);this.JSC$19527_interval_=5E3;this.nextTickTime_=0;if(typeof X==="function")t&&(X=(0,_.rT)(X,t));else if(X&&typeof X.handleEvent==="function")X=(0,_.rT)(X.handleEvent,X);else throw Error("ya");this.JSC$19529_listener_=X},Mn=function(X,t,G,y,w,z,B,V,b,e,g,F,T,D){G=G===void 0?!1:G;
y=y===void 0?function(){return""}:y;
w=w===void 0?!1:w;z=z===void 0?!1:z;B=B===void 0?!1:B;V=V===void 0?function(){return _.qY({})}:V;
b=b===void 0?!1:b;g=g===void 0?!1:g;F=F===void 0?!1:F;T=T===void 0?!1:T;D=D===void 0?!1:D;this.JSC$19530_pathPrefix_=X;this.defaultQueryParams_=t;this.pubsub_=new _.Oc;this.reconnectTimer_=new pKi(this.safeReconnect_,this);this.JSC$19530_channel_=null;this.JSC$19530_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19530_pendingMessages_=[];this.enableAsyncTest_=G;this.JSC$19530_getXsrfToken_=y;this.useAsyncBrowserChannelHandler_=z;this.getAuthorizationHeader_=
V;this.getAuthorizationHeaderSync_=e;this.enableCachedUpdateAuthorizationHeader_=B;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.qY();this.enableLoungeTokenRefresh_=w;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=b;this.disableMdxAuthForNonPlaybackMessages_=g;this.disableMdxAuthForAdMessages_=F;this.enableMdxAuthForConnectionOnly_=T;this.disableMdxAuthForShortsMessages_=D;this.JSC$19530_channelOpenedCounter=new rgq;this.JSC$19530_channelClosedCounter=new N9N;this.channelMessageSentCounter=
new PAv;this.JSC$19530_channelMessageReceivedCounter=new E0H;this.JSC$19530_channelErrorCounter=new UQR;this.pendingMapsOnClosedCounter=new mQa;this.undeliveredMapsOnClosedCounter=new R7q},Xt=function(X){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;X=X||document.location.href;var t=Number(_.VQ(X)[4]||null)||"";t&&(this.port=":"+t);this.domain=_.bF(X)||"";X=_.es();X.search("MSIE")>=0&&_.d6(X.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},$s=function(X){X=X||{};
this.name=X.name||"";this.id=X.id||X.screenId||"";this.token=X.token||X.loungeToken||"";this.uuid=X.uuid||X.dialId||"";this.idType=X.screenIdType||"normal"},igT=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(X){var t=Math.random()*16|0;
return(X=="x"?t:t&3|8).toString(16)})},LCR=function(X){return _.iG(X,function(t){return{key:t.id,
name:t.name}})},v0H=function(X,t){return _.r6(X,function(G){return G||t?!G!=!t?!1:G.id==t.id:!0})},GD=function(X,t){return _.r6(X,function(G){return t9(G,t)})},M7T=function(){var X=al2(),t=lli();
if(xQR()){var G=X,y=_.AAE(G,t);y<0&&_.T6f(G,-(y+1),0,t)}X=flB(X);if(X.length==0)try{_.Lxw("remote_sid")}catch(w){}else try{_.Iu("remote_sid",X.join(","),-1)}catch(w){}},al2=function(){var X=_.O2("yt-remote-connected-devices")||[];
X.sort(_.HS);return X},flB=function(X){if(X.length==0)return[];
var t=X[0].indexOf("#"),G=t==-1?X[0]:X[0].substring(0,t);return _.iG(X,function(y,w){return w==0?y:y.substring(G.length)})},Xyq=function(X){_.Ku("yt-remote-connected-devices",X,86400)},lli=function(){if($rv)return $rv;
var X=_.O2("yt-remote-device-id");X||(X=igT(),_.Ku("yt-remote-device-id",X,31536E3));for(var t=al2(),G=1,y=X;_.Eh(t,y);)G++,y=X+"#"+G;return $rv=y},tlH=function(){return _.O2("yt-remote-session-browser-channel")},xQR=function(){return _.O2("yt-remote-session-screen-id")},wyH=function(X){X.length>5&&(X=X.slice(X.length-5));
var t=_.iG(G8H(),function(y){return y.loungeToken}),G=_.iG(X,function(y){return y.loungeToken});
_.NbV(G,function(y){return!_.Eh(t,y)})&&ypr();
_.Ku("yt-remote-local-screens",X,31536E3)},G8H=function(){return _.O2("yt-remote-local-screens")||[]},ypr=function(){_.Ku("yt-remote-lounge-token-expiration",!0,86400)},yu=function(X){X||(_.uj("yt-remote-session-screen-id"),_.uj("yt-remote-session-video-id"));
M7T();X=al2();_.vY(X,lli());Xyq(X)},HpQ=function(){zli();
return wM?!!wM.get("yt-remote-use-staging-server"):!1},zli=function(){if(!wM){var X=_.t7E();
X&&(wM=new _.Px(X))}},n14=function(X,t,G,y,w){G=G===void 0?function(){return""}:G;
var z=function(){return new Mn(zD(X,"/bc"),t,!1,G,y)};
return _.A("enable_mdx_web_channel_desktop")?new o1B(function(){return new Jpq(zD(X,"/wc"),t,G)}):new BVq(z,w)},drv=function(){var X=Vlq;
bpv();HU.push(X);k8R()},oK=function(X,t){bpv();
var G=elB(X,String(t));HU.length==0?jcQ(G):(k8R(),_.zA(HU,function(y){y(G)}))},J9=function(X){oK("CP",X)},bpv=function(){HU||(HU=_.GA("yt.mdx.remote.debug.handlers_")||[],_.dl("yt.mdx.remote.debug.handlers_",HU))},jcQ=function(X){var t=(BU+1)%50;
BU=t;g1H[t]=X;FTT||(FTT=t==49)},k8R=function(){var X=HU;
if(g1H[0]){var t=FTT?BU:-1,G={};do G={record$jscomp$15:void 0},t=(t+1)%50,G.record$jscomp$15=g1H[t],_.zA(X,function(y){return function(w){w(y.record$jscomp$15)}}(G));
while(t!=BU);g1H=Array(50);BU=-1;FTT=!1}},elB=function(X,t){var G=(Date.now()-TVH)/1E3;
G.toFixed&&(G=G.toFixed(3));var y=[];y.push("[",G+"s","] ");y.push("[","yt.mdx.remote","] ");y.push(X+": "+t,"\n");return y.join("")},nF=function(X){_.Au.call(this);
this.JSC$19554_logName_=X;this.screens=[]},bB=function(X){nF.call(this,"LocalScreenService");
this.JSC$19561_http_=X;this.loungeTokenRefreshTimer_=NaN;Vu(this);this.info("Initializing with "+ApB(this.screens))},ks=function(X,t){t=t===void 0?!1:t;
nF.call(this,"ScreenService");this.JSC$19567_http_=X;this.disableAutomaticScreenCache_=t;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};Y8V(this)},dM=function(X,t,G){_.Au.call(this);
this.JSC$19571_logName_=G;this.JSC$19571_screenService_=X;this.receiver_=t;this.screen_=null},rpT=function(X,t,G){G.disableCastApi?eA("Cannot initialize because disabled by Mdx config."):scB()?Dr4(X,G)&&(S8R(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?hlQ(t):(window.__onGCastApiAvailable=function(y,w){y?hlQ(t):(jA("Failed to load cast API: "+w),ZpT(!1),S8R(!1),_.uj("yt-remote-cast-available"),_.uj("yt-remote-cast-receiver"),q8N(),t(!1))},G.loadCastApiSetupScript?_.Gi(CuR):window.navigator.userAgent.indexOf("Android")>=
0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?KTR()>=60&&OpR():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?u0T():KTR()>=89?Qcr():(IdV(),WTH(cpT.map(pyT))))):eA("Cannot initialize because not running Chrome")},q8N=function(){eA("dispose");
var X=gM();X&&X.dispose();_.dl("yt.mdx.remote.cloudview.instance_",null);NVH(!1);_.Ivv(PuN);PuN.length=0},E1B=function(){return!!_.O2("yt-remote-cast-installed")},UrR=function(){var X=_.O2("yt-remote-cast-receiver");
return X?X.friendlyName:null},mrB=function(){eA("clearCurrentReceiver");
_.uj("yt-remote-cast-receiver")},RlQ=function(){return E1B()?gM()?gM().getCastSession():(jA("getCastSelector: Cast is not initialized."),null):(jA("getCastSelector: Cast API is not installed!"),null)},LTr=function(X,t){ipi()?gM().setConnectedScreenStatus(X,t):jA("setConnectedScreenStatus called before ready.")},scB=function(){var X=_.es().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.uz||X},Dr4=function(X,t){var G=!1;
gM()||(X=new Ft(X,t),X.subscribe("yt-remote-cast2-availability-change",function(y){_.Ku("yt-remote-cast-available",y);Zi("yt-remote-cast2-availability-change",y)}),X.subscribe("yt-remote-cast2-receiver-selected",function(y){eA("onReceiverSelected: "+y.friendlyName);
_.Ku("yt-remote-cast-receiver",y);Zi("yt-remote-cast2-receiver-selected",y)}),X.subscribe("yt-remote-cast2-receiver-resumed",function(y){eA("onReceiverResumed: "+y.friendlyName);
_.Ku("yt-remote-cast-receiver",y);Zi("yt-remote-cast2-receiver-resumed",y)}),X.subscribe("yt-remote-cast2-session-change",function(y){eA("onSessionChange: "+v1a(y));
y||_.uj("yt-remote-cast-receiver");Zi("yt-remote-cast2-session-change",y)}),_.dl("yt.mdx.remote.cloudview.instance_",X),G=!0);
eA("cloudview.createSingleton_: "+G);return G},gM=function(){return _.GA("yt.mdx.remote.cloudview.instance_")},hlQ=function(X){ZpT(!0);
S8R(!1);gM().init(!1,function(t){t?(NVH(!0),_.WfE("yt-remote-cast2-api-ready")):(jA("Failed to initialize cast API."),ZpT(!1),_.uj("yt-remote-cast-available"),_.uj("yt-remote-cast-receiver"),q8N());X(t)})},eA=function(X){oK("cloudview",X)},jA=function(X){oK("cloudview",X)},ZpT=function(X){eA("setCastInstalled_ "+X);
_.Ku("yt-remote-cast-installed",X)},ipi=function(){return!!_.GA("yt.mdx.remote.cloudview.apiReady_")},NVH=function(X){eA("setApiReady_ "+X);
_.dl("yt.mdx.remote.cloudview.apiReady_",X)},S8R=function(X){_.dl("yt.mdx.remote.cloudview.initializing_",X)},TD=function(X){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(X)},adH=function(){var X,t;
return _.n(function(G){if(G.nextAddress==1)return(_.gFf()||_.A("use_new_nwl"))&&_.kOw().isNetworkAvailable()?G.yield(_.eD(),2):G.return();if(G.nextAddress!=3)return(X=G.yieldResult)?G.yield(CCv(X),3):G.return();t=G.yieldResult;if(!t.length)return G.return();t.forEach(function(y){var w={timestamp:y.timestamp};y=y.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:y.appShellAssetLoadReport,options:w}:y.clientError?{payloadName:"clientError",payload:y.clientError,options:w}:void 0;
y&&_.a7(y.payloadName,y.payload,y.options)});
t.length===100&&_.vz.addLowPriorityJob(adH);_.W$(G)})},ldr=function(X){if(X.playerResponse){if(X=X.playerResponse,X.messages&&X.messages.length>0&&(X=X.messages.find(function(t){return!(!t||!t.mealbarPromoRenderer)}))&&X.mealbarPromoRenderer)return X.mealbarPromoRenderer}else if(X.response&&(X=X.response)&&X.overlay&&X.overlay.mealbarPromoRenderer)return X.overlay.mealbarPromoRenderer},xrT=function(X){if(X.response){var t=X.response;
if(t&&t.overlay&&t.overlay.tooltipRenderer)return t.overlay.tooltipRenderer}if(X.playerResponse&&(X=X.playerResponse,X.messages&&X.messages.length>0&&(X=X.messages.find(function(G){return!(!G||!G.tooltipRenderer)}))&&X.tooltipRenderer))return X.tooltipRenderer},MlH=function(X){if(!fdr&&(X=X||_.Md("ZWIEBACK_PING_URLS"))&&X.length){fdr=!0;
for(var t=0;t<X.length;t++)_.HO(X[t])}},$SN=function(X){if(_.RH.get(_.Md("PLAYER_VARS",{}),"privembed",!1)!="1"){X&&TSR();
try{XWB().then(function(){},function(){}),_.SH($SN,18E5)}catch(t){_.$x(t)}}},tmv=function(){var X=_.cP(),t=X.getFlag(119),G=window.devicePixelRatio>1;
document.body&&_.He(document.body,"exp-invert-logo")&&(G&&!_.He(document.body,"inverted-hdpi")?_.Fx(document.body,"inverted-hdpi"):!G&&_.He(document.body,"inverted-hdpi")&&_.j_(document.body,"inverted-hdpi"));t!=G&&(_.pq(0,119,G),X.save())},Gqv=function(X){return X.filter(function(t){return"ypcGetCartEndpoint"in t||"ypcFixInstrumentEndpoint"in t})},ybR=function(X){return X.filter(function(t){return!_.Y(t,_.WVo)})},z2v=function(X,t){var G,y,w,z,B,V,b;
_.n(function(e){switch(e.nextAddress){case 1:G=_.lu.getInstance();y=_.Wj.instance;w=_.VE.instance;if(!w)return wWB(X,y,t),e.return();_.CL(e,2);X.onLoadingCommand&&y.resolveCommand(X.onLoadingCommand);return e.yield(G.getCurrentPositionFromGeolocation(),4);case 4:z=e.yieldResult;if(!X.resolveLocationCommand){e.jumpTo(5);break}B=G.createLocationInfo(z);return e.yield(_.kW(w,X.resolveLocationCommand,{locationInfo:B}),6);case 6:V=e.yieldResult;if(!V||"error"in V&&V.error||V.errorMetadata)return wWB(X,
y,t),e.return();var g;if(V==null?0:(g=V.onResponseReceivedActions)==null?0:g.length){g=_.J(V.onResponseReceivedActions);for(var F=g.next();!F.done;F=g.next())y.resolveCommand(F.value)}(_.Y(X.onSuccessCommand,_.nq)||_.Y(X.onSuccessCommand,_.pp))&&_.Yt(t.hostElement,"yt-navigate",{endpoint:X.onSuccessCommand,reload:!0});case 5:_.zx(e,0);break;case 2:b=_.IY(e);if(b instanceof GeolocationPositionError&&b.code===GeolocationPositionError.PERMISSION_DENIED)return X.onDeniedCommand&&y.resolveCommand(X.onDeniedCommand),
e.return();wWB(X,y,t);_.W$(e)}})},wWB=function(X,t,G){X.onFailureCommand&&(t.resolveCommand(X.onFailureCommand),_.sl(G.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},o3r=function(X,t){var G=_.Y(X,_.RHq);
if(G&&t){X=G.videoIds||[G.videoId];var y;t=(y=_.Yt(t,"yt-lockup-requested",{videoIds:X}).detail)==null?void 0:y.returnValue;var w;G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?w=t?t:X.map(function(z){return{videoId:z,navigationEndpoint:G.videoCommand}}):t&&(w=t);
w&&(y=w.map(function(z){var B=Object,V=B.assign;var b=z.navigationEndpoint;if(!_.Y(b,_.E8)){var e=_.Y(b,_.nq);if(e){if(delete e.index,delete e.playlistId,e=_.Y(b==null?void 0:b.commandMetadata,_.jQ),e==null?0:e.url){var g=e.url;g=_.eQ(g,"list");g=_.eQ(g,"index");e.url=g}}else b=void 0}return V.call(B,{},z,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:b})}),Hd2(y,G))}},Jb2=function(X){var t=_.oI();
if(X=_.Y(X,_.iU4))X.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&t.clearQueue(),X.closeMiniplayer&&_.gw().resolve(_.G2).close(!0)},n3V=function(X){BtR(_.oI(),X)},VmT=function(X){var t;
(X=(t=_.Y(X,_.Uoz))==null?void 0:t.setVideoIds)&&X.forEach(function(G){_.LiY(_.oI(),G)})},kqv=function(X){bdB(_.oI(),X)},dST=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(X){return!1}},e22=function(){var X,t;
return(t=(X=window).matchMedia)==null?void 0:t.call(X,"(prefers-reduced-motion: reduce)").matches},g3q=function(X){var t=_.gw().resolve(_.jH(_.Rp));
t&&jkH(t,X)},F_q=function(X,t,G){return{horizontalAlignment:X.x+G.width/2<t.width/2?"west":"east",
verticalAlignment:X.y+G.height/2<t.height/2?"north":"south"}},Y0q=function(X,t,G,y,w){w=w===void 0?new _.LD(0,0):w;
return TtQ(Aba(X,t,G,y),w)},Aba=function(X,t,G,y){return new _.LD(X==="west"?16:G.width-y.width-16,t==="north"?16:G.height-y.height-16)},skR=function(X,t){var G=0;
X&&(G+=76);t&&(G+=285);return G},DSR=function(X){var t=["h",
"m","s"],G=_.aV(t);G.reverse();var y={};X=(X.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(B){var V=(B.match(/[hms]/)||[""])[0];return V?(y[V]=parseInt(B.match(/\d+/)[0],10),!1):!0});
for(X.reverse();X.length&&G.length;){var w=G.shift();w in y||(y[w]=parseInt(X.shift(),10))}if(X.length||y.s>59||y.m>59||y.h>9)return null;var z="";t.forEach(function(B){y[B]&&(z+=""+y[B]+B)});
return z||null},S0R=function(X){X=X.data;
return _.k("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.k("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.k(_.gr,{data:{thumbnails:[{url:X.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.k("div",{class:"profile-badge-view-model-wiz__content"},_.k("div",{class:"profile-badge-view-model-wiz__badge-description"},X.badgeDesc),X.badgeSubtitle?_.k("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},X.badgeSubtitle):null))},h2a=function(X){X=
X.data;
var t=_.nl("yt-comment-interaction-view-model");Mbq(t,X.rendererContext);return _.k("yt-comment-interaction-view-model",{el:t,class:"yt-comment-interaction-view-model-wiz"},_.k("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":X.onTapA11yLabel,"on:keydown":_.On_(),tabindex:0},_.k("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.k("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},X.headerPrefix,' "',X.videoTitle),_.k("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.k("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.k("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},X.commentContent),_.k("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.k(_.gr,{data:{thumbnails:[{url:X.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},q0r=function(X){X=X.data;
return _.k("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Zdi(X.avatar),_.k("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},X.channelName))},Ceq=function(X){X=X.data;
var t;return _.k("div",{class:"yt-profile-info-view-model-wiz__activity"},_.k("div",{class:"yt-profile-info-view-model-wiz__header"},_.k("div",{class:"yt-profile-info-view-model-wiz__section-title"},X.commentsInteractionTitle)),(t=X.comments)==null?void 0:t.map(function(G){return _.k("div",{class:"yt-profile-info-view-model-wiz__activity"},A9(G))}))},K_V=function(X){X=X.data;
var t=_.Hl({elementsCommand:X.subscriptionsAccessButtonCommand}),G=_.nl("a");_.g$E(G,_.wr(X.subscriptionsAccessButtonCommand));var y;return _.k("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.k("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.k("a",{el:G,"on:click":_.NI(function(w){if(t==null?0:t.onclick)t.onclick(w);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.k("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},X.sharedSubscriptionsTitle),_.k("div",null,A9(X.subscriptionsAccessButton)))),_.k("div",{class:"yt-profile-info-view-model-wiz__subs"},(y=X.sharedSubscriptions)==null?void 0:y.slice(0,5).map(function(w){return _.k("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",A9(w))})))},OdH=function(X){X=X.data;
var t;return _.k("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.k("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.k("h2",{class:"yt-profile-info-view-model-wiz__section-title"},X.sharedSubscriptionsTitle)),_.k("div",{class:"yt-profile-info-view-model-wiz__subs"},(t=X.sharedSubscriptions)==null?void 0:t.slice(0,5).map(function(G){return _.k("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",A9(G))})))},uD2=function(X){X=X.data;
return _.k("div",{class:"yt-profile-info-view-model-wiz__activity"},[X.profileBadgeInfoYtWide,X.profileBadgeInfoChannelWide].map(function(t){var G,y,w,z,B;return t?_.k(_.gn,null,_.k("div",{class:"yt-profile-info-view-model-wiz__header"},_.k("div",{class:"yt-profile-info-view-model-wiz__section-title"},t==null?void 0:t.profileSectionTitle),_.k("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.k("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},t==null?void 0:(G=t.commentBadge)==
null?void 0:G.commentDesc),(t==null?0:(y=t.commentBadge)==null?0:y.blackHeartDesc)?_.k("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.k("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.k(_.gr,{data:{thumbnails:[{url:t==null?void 0:(w=t.commentBadge)==null?void 0:w.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.k("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},t==null?void 0:(z=
t.commentBadge)==null?void 0:z.blackHeartDesc))),_.k("div",{class:"yt-profile-info-view-model-wiz__badge"},t==null?void 0:(B=t.badges)==null?void 0:B.map(function(V){return _.k(S0R,{data:V})}))):null}))},Qkr=function(X){X=X.data;
return _.k("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.k(uD2,{data:X}),X.videosHorizontalShelf?_.k("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},A9(X.videosHorizontalShelf)):null,X.comments?_.k(Ceq,{data:X}):null,X.sharedSubscriptionsTitle?X.subscriptionsAccessButtonCommand?_.k(K_V,{data:X}):_.k(OdH,{data:X}):null)},W_N=function(X){X=X.data;
if(X){var t=X.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";t=IkV(X.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:t,isChannelInfoCard:t}})}else t=void 0;X=X?IkV(X.profileInfo):void 0;return _.k("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},t,X)},cb4=function(X,t){var G=_.dFR(t,{},X,!0);
return new Promise(function(y,w){G.listenOnce("n",function(){w(Error("hl`"+G.JSC$29119_getErrorDescription()))});
G.listenOnce("l",function(){var z=G.getResponseCode();if(z!==200)w(Error("il`"+t+"`"+X.type+"`"+X.size+"`"+z));else try{y(JSON.parse(G.getResponseText()).encryptedBlobId)}catch(B){w(B)}});
G.run()})},pWv=function(X){return X.substring(X.indexOf(":")+1,X.indexOf(";"))},rbR=function(X){return new Promise(function(t,G){var y=new FileReader;
y.onloadend=function(){try{var w=new Uint8Array(y.result);w.length<8&&G(void 0);var z=w.subarray(0,8);w="";for(var B=0;B<z.length;B++)w+=("0"+z[B].toString(16)).substr(-2);w.startsWith("ffd8ff")?t("image/jpeg"):w.startsWith("47494638")?t("image/gif"):w.startsWith("89504e470d0a1a0a")?t("image/png"):w.startsWith("424d")?t("image/bmp"):t(void 0)}catch(V){G(V)}};
y.onerror=G;y.readAsArrayBuffer(X)})},Ntv=function(X){return new Promise(function(t,G){var y=new Image;
y.crossOrigin="anonymous";y.onload=function(){var w=document.createElement("canvas");w.width=y.naturalWidth;w.height=y.naturalHeight;var z=w.getContext("2d");if(!z)throw Error("jl");z.drawImage(y,0,0);z=pWv(X);w.toBlob(function(B){B?t(B):G()},z)};
y.src=X})},E3T=function(X,t){var G;
if(((G=_.Y(X,_.E8))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var y;_.Yt((y=t.hostElement)!=null?y:t,"yt-shorts-reset");_.xKP(_.gw().resolve(_.rv),X).then(function(z){Pev(z,t,X)})}else{var w;
_.hE((w=t.hostElement)!=null?w:t,[X]).then(function(z){z&&Pev(z.data,t,X)})}},Pev=function(X,t,G){if(X){var y=_.Y(X.replacementEndpoint,_.E8);
if(y){X.sequenceContinuation&&(y.sequenceParams=X.sequenceContinuation);var w;_.Yt((w=t.hostElement)!=null?w:t,"yt-navigate",{endpoint:X.replacementEndpoint})}else if((X==null?void 0:X.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(X==null?0:X.watchStatus)&&_.Y(X.watchStatus,_.Syo)){var z;_.Yt((z=t.hostElement)!=null?z:t,"yt-navigate",{endpoint:G})}}},USH=function(X){var t=_.gw().resolve(_.Gw),G=XPQ(t.getState())||"";
t=_.jKf(t.getState())||"";G=G==="ytd-browse"&&t==="home";return _.A("web_guide_entry_enable_cache_for_non_home_pages")?(X=(X==null?void 0:X.navigationEndpoint)&&_.cy(X.navigationEndpoint)==="home",{disableCache:G&&X}):{disableCache:G}},mSR=function(X){if(!X)return!1;
try{if(X.host&&X.host.tagName==="YT-FORMATTED-STRING"&&X.host.id==="contenteditable-textarea"||X.nodeType===Node.ELEMENT_NODE&&X.tagName==="YTD-COMMENT-INPUT")return!0}catch(t){return!1}return mSR(X.parentNode)},Ys=function(X){return X?X.tagName==="A"&&X.href&&X.classList.contains("yt-simple-endpoint"):!1},R2R=function(X){return X?X.tagName==="IMG"&&X.classList.contains("emoji"):!1},idT=function(X,t,G){if(!X)return null;
var y=Ys(X);if(y&&G)return t=X.pathname.substring(X.pathname.indexOf("/channel/")+9),document.createTextNode("@"+t);if(y&&!G)return document.createTextNode("");if(R2R(X))return G=X.alt,X=X.dataset.emojiId,!X&&t&&(t=_.ID(t,G))&&t.isCustomEmoji&&(X=t.emojiId),X?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+X+">"):document.createTextNode(G);y=X.cloneNode(!1);for(var w=0;w<X.childNodes.length;++w){var z=idT(X.childNodes[w],t,G);z&&y.appendChild(z)}return y},sf=function(X){return X?Ys(X)?X:sf(X.lastChild):
null},L_R=function(X){return X?Ys(X)?X:L_R(X.firstChild):null},v3Q=function(X){if(!X)return null;
for(var t=X.previousSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.previousSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.previousSibling;else break;(t=sf(t))?X=t:X=(X=X.parentNode)?sf(X.previousElementSibling):null;return X},aki=function(X){if(!X)return null;
for(var t=X.nextSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.nextSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.nextSibling;else break;return(t=L_R(t))?t:aki(X.parentNode)},lkV=function(X){var t=_.cv(),G=t.JSC$11223_getStartNode();
if(!mSR(G.parentNode))return null;t=t.JSC$11223_getStartOffset();if(G.nodeType===Node.TEXT_NODE){var y=_.xT(G,Ys);if(y){if(X&&t===0||!X&&t===G.length)return y}else{if(X&&t===G.length)return!G||G.nodeName==="BR"||G.nextElementSibling&&_.py(G.nextElementSibling,"display")==="block"?null:L_R(G.nextElementSibling);if(!X&&t===0)return G?sf(G.previousElementSibling):null}}if(G.nodeType===Node.ELEMENT_NODE)if(X){if(0<=t&&t<G.childNodes.length)return L_R(G.childNodes[t])}else if(0<t&&t<=G.childNodes.length)return sf(G.childNodes[t-
1]);return null},xSq=function(X,t,G){if(!X)return null;
if(X.nodeType===Node.TEXT_NODE)if(G){var y=v3Q(X);if(y&&!/^\s+\S/.test(X.wholeText.substr(0,t)))return y}else if((y=aki(X))&&!/\S\s+/.test(X.wholeText.substr(t,X.wholeText.length)))return y;return X.nodeType===Node.ELEMENT_NODE?G?v3Q(X.childNodes[t]):aki(X.childNodes[t]):xSq(X.parentNode,t,G)},fkR=function(X){if(X.hasChildNodes())switch(X.tagName){case "DIV":case "A":case "SPAN":var t="";
for(X=X.firstChild;X;X=X.nextSibling)t+=fkR(X);return t;default:return""}else switch(X.nodeType){case 3:return X.textContent;default:return""}},MmN=function(X){X=X.data;
return _.k("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.k("div",null,_.k(_.eh,{text:X.title})),X.subtitle?_.k("div",{class:"ytd-menu-title-renderer__subtitle"},_.k(_.eh,{text:X.subtitle})):null)},Xj2=function(X){switch(X){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"}},$i2=function(X){return X.map(function(t){return{settingsRadioOptionRenderer:{title:_.sG(t.name),
asideText:_.sG(t.approximateSize),id:Xj2(t.format)}}})},GOr=function(X){if(X&&X.length!==0)return X.filter(txB()).map(function(t){return{settingsRadioOptionRenderer:{title:t.name,
asideText:t.approximateSize,id:Xj2(t.formatType)}}})},Dr=function(X){if(X)return X.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},ymR=function(X,t){X=new Set(X!=null?X:[]);
if(X.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(X.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(X.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(X.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(X.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(t)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},wjv=function(X){var t=X.indexOf("(");
return t!==-1?X.substring(t+1,X.length-1):X},zjH=function(X){switch(X){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},oF4=function(X,t,G,y,w,z){var B=_.RH.clone(HzQ);
B.locale=_.Md("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;B.report={description:w||"<empty>"};w=_.Md("SBOX_SETTINGS",{});t=t.join(",");var V=Date.now();X={choice_cc:y,choice_id_cc:G,choices_sc:t,gl:w.REQUEST_DOMAIN,hl:w.REQUEST_LANGUAGE,query:X,time:V};z&&(X.choice_additional_comment_cc=z);_.AlS(B,X)},Jm2=function(X){var t=new Map;
t.set("authuser",_.Md("SESSION_INDEX","0"));return _.DA(X,t)},nFa=function(X){var t;
return _.n(function(G){switch(G.nextAddress){case 1:if(!X||!BXT(X))return G.return(null);t=null;switch(_.Md("INNERTUBE_CLIENT_NAME")){case "WEB":return G.jumpTo(2);case "WEB_REMIX":t=X.getPlayer()}G.jumpTo(3);break;case 2:return G.yield(X.getPlayerPromise(),4);case 4:t=G.yieldResult;G.jumpTo(3);break;case 3:return G.return(t)}})},BXT=function(X){return["ytd-player",
"ytmusic-player"].includes(String(X.tagName||"").toLowerCase())},Vxr=function(X){X=Math.round(X);
return X%2?X-1:X},bzT=function(X){X=Math.round(X);
return X%2===0?X-1:X},kOR=function(X){var t,G,y;
if(X=(t=X.createPlaylistDialogFormSchema)==null?void 0:(G=t.fieldSchemas)==null?void 0:(y=G.title)==null?void 0:y.validationSchema)for(t=[X.syncStep,X.asyncStep].filter(function(w){return w!==void 0}),t=_.J(t),G=t.next();!G.done;G=t.next()){G=G.value.rules;
if(!G)break;G=_.J(G);for(G=G.next();!G.done;G=G.next())return _.Y(G.value,_.j24)}},ejR=function(X){var t,G,y;
if(X=(t=X.createPlaylistDialogFormSchema)==null?void 0:(G=t.fieldSchemas)==null?void 0:(y=G.visibility)==null?void 0:y.validationSchema)for(t=[X.syncStep,X.asyncStep].filter(function(w){return w!==void 0}),t=_.J(t),G=t.next();!G.done;G=t.next()){G=G.value.rules;
if(!G)break;G=_.J(G);for(y=G.next();!y.done;y=G.next())if(y=_.Y(y.value,diq))return t=void 0,(t=y.translations)==null?void 0:t.visibilityNotValidErrorMessage}},jLB=function(){var X,t;
return(t=(X=_.gw().resolve(_.jH(_.kI)))==null?void 0:X())!=null?t:!1},gFH=function(X){var t=21;
if(!X)return t;t+=X.headerTitle?27:0;t+=X.headerTitle&&X.hasHeaderActionHeader?4:0;return t+=X.headerTitle&&X.headerSubtitle?16:0},FfN=function(X){var t=0;
if(!X)return t;t+=X.hasFooterPrimaryButton||X.hasFooterSecondaryButton?48:0;t+=X.footerTrailingLabel||X.footerLeadingLabel?30:0;return t+=X.hasFooterPrimaryButton||X.hasFooterSecondaryButton||!X.footerTrailingLabel&&!X.footerLeadingLabel?0:12},TXv=function(X){var t=new _.Oc,G=X;
return{subscribe:function(y){t.subscribe("changed",y)},
dispatch:function(y,w){var z=G;y==="Touch Start"?G=Object.assign({},z,{isAnimating:!1,initialY:w.event.touches[0].clientY}):y==="Touch Move"?(y=Math.min(w.fullContentWrapperHeight,w.contentHeightMap[w.contentWrapperId]+gFH(w.header)-FfN(w.footer)),G=Object.assign({},z,{currentY:Math.max(w.contentScrollable?-1*(z.initialY-24):0,w.event.touches[0].clientY-z.initialY),maxHeightForContentWrapper:Math.min(y,Math.max(0,(z.isFullScreen?y:w.contentWrapperHeight)-z.currentY))})):G=y==="Snap To Full Screen"?
Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:w.maxHeight}):y==="Snap To Neutral Position"?Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:w.maxHeight}):y==="Close Sheet"?Object.assign({},z,{isAnimating:!0,currentY:w.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:w.maxHeight}):z;t.publish("changed",G)}}},AmT=function(X){return _.NI(function(t){X(t);
return!1})},YVa=function(){_.gw().resolve(_.RJ).closeSheet()},sLr=function(X){var t,G,y,w,z,B,V,b,e,g,F;
return{headerTitle:(t=X.headerTitle)==null?void 0:t.call(X),headerSubtitle:(G=X.headerSubtitle)==null?void 0:G.call(X),headerActionHeader:X.headerActionHeader,footerPrimaryButton:X.footerPrimaryButton,footerSecondaryButton:X.footerSecondaryButton,footerButtonType:(y=X.footerButtonType)==null?void 0:y.call(X),footerLeadingLabel:(w=X.footerLeadingLabel)==null?void 0:w.call(X),footerTrailingLabel:(z=X.footerTrailingLabel)==null?void 0:z.call(X),shouldShowIcons:(B=X.shouldShowIcons)==null?void 0:B.call(X),
skipContentClick:(V=X.skipContentClick)==null?void 0:V.call(X),additionalClassName:(b=X.additionalClassName)==null?void 0:b.call(X),onClosedCallback:X.onClosedCallback,focusOnClose:(e=X.focusOnClose)==null?void 0:e.call(X),isDisabled:(g=X.isDisabled)==null?void 0:g.call(X),disabledCommand:(F=X.disabledCommand)==null?void 0:F.call(X),headerFn:X.headerFn,contentFn:X.contentFn,footerFn:X.footerFn,hasHeaderFn:X.hasHeaderFn(),hasContentFn:X.hasContentFn(),hasFooterFn:X.hasFooterFn(),hasFooterPrimaryButton:X.hasFooterPrimaryButton(),
hasFooterSecondaryButton:X.hasFooterSecondaryButton(),hasHeaderActionHeader:X.hasHeaderActionHeader()}},Di2=function(X){switch(X){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""}},SVH=function(X){switch(X){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""}},hjT=function(X){switch(X){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""}},ZzR=function(X,t,G){t.forEach(function(y){_.ug(_.gw().resolve(_.iR),y)});
_.sl(X,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",G])},OzQ=function(X,t,G,y){var w=_.Y(G,_.o9).commandLifeCycleConfig;
w&&w.onStartCommand&&_.Z0(X,[w.onStartCommand],t);_.Ha(t);var z=_.VE.instance;z&&_.bX(z,G)?_.kW(z,G,y).then(function(B){if(!B||(B==null?0:B.error))return B=_.Y(G,_.o9).serializedTransactionFlowLoggingParams,_.oA(t),_.l$(new SA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",B));_.oA(t);return{data:B}}).then(function(B){_.oA(t);
qV4(B.data);var V=B.data.command;V&&_.Z0(X,[V],t);V=C$R(G,B.data);if(!V){var b=B.data;B=!1;if(b&&b.command&&_.Y(b.command,_.Cq)){var e;b=((e=_.Y(b.command,_.Cq))==null?void 0:e.commands)||[];for(e=0;e<b.length;e++)if(_.Y(b[e],_.gZo)){B=!0;break}}B||_.aI('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!V&&w&&w.onSuccessCommand?_.Z0(X,[w.onSuccessCommand],t):V&&w&&w.onFailureCommand&&_.Z0(X,[w.onFailureCommand],t)},function(){_.oA(t);
w&&w.onFailureCommand&&_.Z0(X,[w.onFailureCommand],t);Kfv(G)}):_.xA(Error("Al"),"ERROR")},upV=function(X,t,G){var y=[t];
G&&y.push(G);return _.hE(X,y).then(function(w){var z=_.Y(t,_.o9).serializedTransactionFlowLoggingParams,B=w.data,V=C$R(t,B);V?w=_.l$(new SA(V,z)):qV4(B);return w},function(){var w=_.Y(t,_.o9).serializedTransactionFlowLoggingParams;
Kfv(t);return _.l$(new SA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",w))})},C$R=function(X,t){X=_.Y(X,_.o9).serializedTransactionFlowLoggingParams;
var G=null;switch(t.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":G="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":G="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":G="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}G?_.nd(G,X):RXi(X);return G},Kfv=function(X){_.nd("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.Y(X,_.o9).serializedTransactionFlowLoggingParams)},
qV4=function(X){if(X.trackingParams){var t=_.lw(),G=_.a4();
t&&G&&_.w9(t,G,_.i$(X.trackingParams))}},QLQ=function(X,t,G){var y=_.VE.instance,w=_.UpY(_.Md("YPC_MB_URL")),z=(new _.PUA).init(),B=_.EdA(),V=_.Y(G,_.kwq).languageCode;
V===void 0?_.xA(Error("Ei"),"ERROR"):_.m9([z,w]).then(function(){var b={ctk:payments.business.integration.ClientTokenFactory.createClientToken(V,B)};y&&_.bX(y,G)?_.kW(y,G,b).then(function(e){return{data:e}}).then(function(e){_.Yt(t,"yt-service-request-completed",e);
e.code!=="ERROR"&&(e=e.data.command)&&_.Z0(X,[e],t)}):_.xA(Error("Al"),"ERROR")})},cmr=function(X,t,G,y){var w=_.VE.instance;
w&&_.bX(w,G)?_.kW(w,G,y).then(function(z){return{data:z}}).then(function(z){IvH(X,t,G,z)},function(){Wfa(G)}):(w=_.gw().resolve(_.jH(_.fp)))&&w.requestDataForServiceEndpoint(G,y).then(function(z){IvH(X,t,G,z)},function(){Wfa(G)})},IvH=function(X,t,G,y){_.Yt(t,"yt-service-request-completed",y);
if(y.code&&y.code=="ERROR")Wfa(G);else{(y=y.data.commands)&&_.Z0(X,y,t);var w;(X=(w=_.Y(G,_.TG4))==null?void 0:w.serializedYpcPauseFlowLoggingParams)&&X&&_.Gg("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",X)}},Wfa=function(X){var t;
(X=(t=_.Y(X,_.TG4))==null?void 0:t.serializedYpcPauseFlowLoggingParams)&&X&&_.Gg("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",X,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},NXH=function(X,t,G){var y=_.VE.instance;
y&&_.bX(y,G)?_.kW(y,G).then(function(w){return{data:w}}).then(function(w){pj4(X,t,G,w)},function(){rmv(G)}):(y=_.gw().resolve(_.jH(_.fp)))&&y.requestDataForServiceEndpoint(G).then(function(w){pj4(X,t,G,w)},function(){rmv(G)})},pj4=function(X,t,G,y){_.Yt(t,"yt-service-request-completed",y);
y.code&&y.code=="ERROR"?rmv(G):((y=y.data.commands)&&_.Z0(X,y,t),(X=_.Y(G,_.ACY).serializedYpcResumeFlowLoggingParams)&&X&&_.Gg("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",X))},rmv=function(X){(X=_.Y(X,_.ACY).serializedYpcResumeFlowLoggingParams)&&X&&_.Gg("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",X,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},P$N=function(X){X=X===void 0?{}:X;
_.gw().resolve(_.iSq).showFeedbackDialog(X.customProductData,X.feedbackContent,X.onFeedbackSubmitted,X.bucket)},EFr=function(X){X=X===void 0?{}:X;
_.gw().resolve(_.iSq).showHelpDialog(X.helpContext,X.articleId,X.productData)},UiR=function(){EFr()},miH=function(){P$N()},iza=function(X,t,G){var y,w,z,B,V,b,e;
return _.n(function(g){switch(g.nextAddress){case 1:y=_.Y(X,Rjq);if((w=y)==null?0:w.productId){b={productId:y.productId,bucket:y.bucket,enableAnonymousFeedback:(V=y.enableAnonymousFeedback)!=null?V:!0,allowNonLoggedInFeedback:!0};e={feedbackChoice:G.feedbackChoice};if(!_.A("web_collect_offline_state")){g.jumpTo(8);break}_.CL(g,9);return g.yield(tQQ(e),11)}B={bucket:(z=y)==null?void 0:z.bucket};if(!_.A("web_collect_offline_state")){g.jumpTo(4);break}B.customProductData={};_.CL(g,5);return g.yield(tQQ(B.customProductData),
7);case 7:_.zx(g,4);break;case 5:_.IY(g);case 4:P$N(B);g.jumpTo(0);break;case 11:_.zx(g,8);break;case 9:_.IY(g);case 8:_.KzV(e),_.CoA("GFEEDBACK",e),y.productId==="5295751"&&(e.client_attestation=Number(_.Md("CATSTAT",0))),y.productId==="5295751"&&(e.client_time=Date.now()/1E3/3600),y.productId==="5295751"&&(e.original_playback_id=_.yXe||""),_.AlS(b,e),_.W$(g)}})},Lf2=function(X){if(X=_.Y(X,_.chA)){var t={bucket:X.bucketIdentifier};
X.additionalDatas&&(t.customProductData={},X.additionalDatas.forEach(function(G){if(G=G.userFeedbackEndpointProductSpecificValueData)t.customProductData[G.key]=G.value}));
P$N(t)}},vFv=function(X){var t=_.Hq.getInstance();
var G=_.Qf("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var y=_.Qf("DELETE",void 0,"Delete"),w=_.Qf("CANCEL",void 0,"Cancel");G=JaQ(G,void 0,y,w,{signal:"DELETE_ALL_DOWNLOADS"});_.XL(t,[{openPopupAction:G}],X)},lvR=function(){return _.n(function(X){return X.nextAddress==1?X.yield(_.gw().resolve(_.Y8),2):X.yield(av4(),0)})},xiv=function(X){var t,G;
return _.n(function(y){return y.nextAddress==1?(G=(t=_.Y(X,_.yN))==null?void 0:t.targetId)?y.yield(_.gw().resolve(_.Y8),3):y.jumpTo(0):y.yield(_.gw().resolve(_.A7).deleteVideo(G),0)})},Mxa=function(X){var t,G;
return _.n(function(y){return y.nextAddress==1?(G=(t=_.Y(X,_.yN))==null?void 0:t.targetId)?y.yield(_.gw().resolve(_.Y8),3):y.jumpTo(0):y.yield(fvQ(_.gw().resolve(_.A7),G),0)})},$Iv=function(X){var t,G;
return _.n(function(y){return(G=(t=_.Y(X,_.yN))==null?void 0:t.targetId)?y.yield(XlR(G),0):y.jumpTo(0)})},G7q=function(){_.A("kevlar_woffle_refresh_dl_load_killswitch")||t_H()},wlv=function(){_.A("kevlar_woffle")&&_.ac.instance&&yHi()},HXV=function(X){var t;
if((t=_.Y(X,_.ck))==null||!t.videoId)return!1;zVR(_.gw().resolve(_.A7),_.Y(X,_.ck),X.clickTrackingParams);return!0},JHi=function(X){var t;
if((t=_.Y(X,_.p5))==null||!t.playlistId)return!1;oI2(_.gw().resolve(_.A7),_.Y(X,_.p5),X.clickTrackingParams);return!0},nIq=function(X){var t=_.Y(X,_.zOq);
(t==null?void 0:t.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(t==null?void 0:t.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||BrH(_.gw().resolve(_.A7),_.Y(X,_.zOq))},bXT=function(X){X=_.Y(X,_.p3e);
var t;(X==null?0:(t=X.actions)==null?0:t.length)&&V_V(X)},eVq=function(X){var t,G;
return _.n(function(y){t=_.Y(X,k7i);return(G=t)!=null&&G.localWatchHistoryCommandType?y.yield(dI2(t),0):y.return()})},jiq=function(X){setTimeout(function(){requestAnimationFrame(X)},80)},gIV=function(X){return Object.entries(X).map(function(t){return t.join(":")}).join(";")},TrR=function(X){var t,G,y;
_.n(function(w){if(w.nextAddress==1)return w.yield(Fwq(),2);t=w.yieldResult;G=_.Wj.instance;switch(t){case "granted":y=X.getLocationCommand;break;case "denied":y=X.openDeniedDialogAction;break;case "prompt":y=X.openCollectionDialogAction;break;default:y=X.openCollectionDialogAction}y&&G.resolveCommand(y);_.W$(w)})},Fwq=function(){var X,t;
return _.n(function(G){if(G.nextAddress==1)return X="prompt",navigator.permissions?G.yield(navigator.permissions.query({name:"geolocation"}),3):G.jumpTo(2);G.nextAddress!=2&&(t=G.yieldResult,X=t.state);return G.return(X)})},YdR=function(){_.n(function(X){return X.yield(_.AHa(),0)})},sii=function(){var X,t,G;
return _.n(function(y){if(y.nextAddress==1)return X=_.gw().resolve(_.Mr),X?y.yield(_.kW(X,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Mj(Error("Dl")),y.return(void 0));if(t=y.yieldResult){if(t.errorMetadata)return _.Mj(Error("El`"+t.errorMetadata.status+"`"+t.error)),y.return(void 0);G=t.datasyncIds;_.lDJ=G.length;return y.return(G)}_.Mj(Error("Fl"));return y.return(void 0)})},DIH=function(){sii().then(function(X){X&&(ZlQ(X),LqN(X),Fqv(X),wPH(X))})},Sdi=function(X){_.vz.addLowPriorityJob(function(){var t,
G,y,w,z;
return _.n(function(B){switch(B.nextAddress){case 1:if(_.A("ytidb_clear_optimizations_killswitch")){B.jumpTo(2);break}t=_.ps("clear");if(t.startsWith("V")&&t.endsWith("||")){var V=[t];ZlQ(V);LqN(V);Fqv(V);wPH(V);return B.return()}G=TuH();y=zu2();return B.yield(veR(),3);case 3:return w=B.yieldResult,B.yield(qAT(),4);case 4:if(z=B.yieldResult,!(G||y||w||z))return B.return();case 2:X.isNetworkAvailable()?DIH():X.listenOnce("publicytnetworkstatus-online",DIH),_.W$(B)}})})},h9=function(X){X={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Vl(X)}}}};_.Wj.instance&&_.Wj.instance.resolveCommand(X)},hVN=function(X){if(X){var t=_.Pj();
_.qP(t,3854,void 0,{layer:0,parentLayer:4});switch(X){case 1:var G=238708;break;case 2:G=238715;break;case 3:G=238710;break;case 6:G=238709}G&&(X=_.Ni(t,{veType:G}))&&_.OE(t,X)}},ZXH=function(X){if(X){var t=_.Pj();
_.qP(t,3854,void 0,{layer:0,parentLayer:4});switch(X){case 1:var G=238714;break;case 2:G=238711;break;case 8:G=238709;break;case 7:G=238713;break;case 3:case 4:case 5:G=238712}G&&(X=_.Ni(t,{veType:G}))&&_.OE(t,X)}},qdN=function(X){switch(X.latencyType){case 0:_.aa("consent_primitive_flow");
_.ls("cpit",X.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.ls("cpist",X.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.ls("cprtif",X.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.ls("cprtli",X.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.ls("cprt",X.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.ls("cpdt",X.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.ls("cpjct",X.timestampEpochMillis,"consent_primitive_flow")}},
rHQ=function(X,t){var G,y,w,z,B,V,b,e,g,F,T,D,h,u,W,c,P,l,R,L;
return _.n(function(x){switch(x.nextAddress){case 1:_.CL(x,2);(y=(G=_.Y(X,Cpv))==null?void 0:G.serializedConsentRequest)||(y=(w=_.Y(X,KwR))==null?void 0:w.serializedConsentRequest);y&&(z=OXV(_.BS(y)));if(z===void 0)return x.return();B=uxN(z);B.latencyCallback=qdN;t&&QiV(B,function(){t.then(function(w6){w6.pauseVideo();(new IWH).increment()})});
return((V=_.Y(X,Cpv))==null?void 0:V.consentAction)==="CONSENT_ACTION_PREWARM"||((b=_.Y(X,KwR))==null?void 0:b.consentAction)==="CONSENT_ACTION_PREWARM"?x.yield(WwH(B),5):x.yield(cHB(B),6);case 6:e=x.yieldResult;g=_.Ex(e,Zr);if(g===1){if(((F=_.Xy(e,qb,1,Zr))==null?void 0:_.lz(F,1))===1||((T=_.Xy(e,qb,1,Zr))==null?void 0:_.lz(T,1))===2||((D=_.Xy(e,qb,1,Zr))==null?void 0:_.lz(D,1))===3)_.Y(X,KwR)?h9(_.Qf("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
h9(_.Qf("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));hVN((h=_.Xy(e,qb,1,Zr))==null?void 0:_.lz(h,1),_.dT(e,plR,3,_.eM()))}else g===2?(((u=CF(e))==null?void 0:_.lz(u,1))===5?_.Y(X,KwR)?h9(_.Qf("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):h9(_.Qf("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((W=CF(e))==null?void 0:_.lz(W,1))===1||((c=CF(e))==null?void 0:_.lz(c,1))===4?h9(_.Qf("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((P=CF(e))==null?void 0:_.lz(P,1))===7&&((l=z)==null?void 0:(R=_.Co(l,KF,4))==null?void 0:_.lz(R,4))!==1&&h9(_.Qf("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),ZXH((L=CF(e))==null?void 0:_.lz(L,1))):h9(_.Qf("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));x.jumpTo(5);break;case 5:_.zx(x,0);break;case 2:_.IY(x),h9(_.Qf("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.W$(x)}})},PpH=function(){if(!NrH.has("Worker")){NrH.set("Worker",
!0);
var X={api:"BROWSER_API_WEB_WORKER"};X.available="Worker"in window?!0:!1;_.a7("apiTest",X)}},EIR=function(X){return typeof X==="undefined"?"-1":String(Math.ceil(X/1048576))},iXa=function(X,t){UI4(new mIr(_.Y(t,RVa).addToken,_.Y(t,RVa).commonToken)).then(function(){_.Yt(X,"yt-invoke-instrument-manager-action-completed")},function(G){_.Yt(X,"yt-invoke-instrument-manager-action-error",G)})},Lw4=function(X){return _.wa(X)},vIr=function(X){var t=1;
X=X.split(":");for(var G=[];t>0&&X.length;)G.push(X.shift()),t--;X.length&&G.push(X.join(":"));return G},aWi=function(X,t){t=X.aspectRatio()<=t.aspectRatio()?t.width/X.width:t.height/X.height;
X.scale(t)},lWT=function(X,t){t=X.aspectRatio()>t.aspectRatio()?t.width/X.width:t.height/X.height;
return X.scale(t)},xI4=function(X){var t=new _.qo;
return _.$o(t,11,X)},fWv=function(X){var t={};
X=X.getAllResponseHeaders().split("\r\n");for(var G=0;G<X.length;G++)if(!_.JA(X[G])){var y=vIr(X[G]),w=y[0];y=y[1];if(typeof y==="string"){y=y.trim();var z=t[w]||[];t[w]=z;z.push(y)}}return _.RH.map(t,function(B){return B.join(", ")})},rm=function(X,t){return X.JSC$9725_xhr_?X.JSC$9725_xhr_.getResponseHeader(t):null},M_R=function(X,t){if(X.isDisposed())throw Error("Ea");
X.sI.yI("n");var G=_.fU(X.sI,function(){return X.aZr([t.qe,t.alW,t.tLg,t.glb])},"n");
X.sI.orX(G.length);X.sI.w2();return G},Of=function(X,t,G){Array.isArray(G)||(G=[String(G)]);
_.M0P(X.JSC$9962_queryData_,t,G);return X},yHi=function(){var X=_.ac.instance;
_.n(function(t){return X.deferredInstallPrompt?t.yield(X.deferredInstallPrompt.prompt(),0):t.jumpTo(0)})},Xkr=function(X,t,G){if(_.xJ(X))_.zA(X,t,G);
else for(X=_.BSP(X);;){var y=X.next();if(y.done)break;t.call(G,y.value,void 0,X)}},$7R={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}"]},x7T,fRV,Meq,Xvv,$sN,thv,GFN,y4V,wvH,XlR,fvQ,av4,zpQ,Hyq,oyH,J4i,B2B,nyR,oI2,zVR,Vhq,by4,kFR,t_H,BrH,dsB,V_V,ep4,dI2,jDV,gyH,FMR,T2i,A42,YeQ,sDQ,DsB,
SeH,hpa,Zya,qeR,jkH,C7v,KMR,Oy4,u7T,QDa,I7V,WM4,BtR,Hd2,c4q,pF,rM,Nb,PU,pvR,r4V,N2a,P7R,EyV,Usa,ms4,Rpq,iyR,LMR;$7R={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 te4=function(X,t){var G=[];Xkr(t,function(y){try{var w=_.ss.prototype.getWrapper.call(this,y,!0)}catch(z){if(z=="Storage: Invalid value was encountered")return;throw z;}w===void 0?G.push(y):_.Jaq(w)&&G.push(y)},X);
return G},GzH=function(X,t){te4(X,t).forEach(function(G){_.ss.prototype.remove.call(this,G)},X)},ySH=function(X){var t=_.oM;
t._minimumZ=Math.max(t._minimumZ,X)},wkT=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],zIR=function(X,t){_.Vs(X.vm);X.vm=t},H52=function(X,t,G,y){X.setState(5);
var w=!!X.gcs&&wkT.includes(_.bF(X.gcs)||"");try{var z=new _.Mo({program:t,globalName:G,is2:{disable:!_.A("att_web_record_metrics")||!_.A("att_skip_metrics_for_cookieless_domains_ks")&&w,lD:"aGIf"}});z.cQc.then(function(){X.setState(6);y&&y(t)});
zIR(X,z)}catch(B){X.setState(7),B instanceof Error&&_.Mj(B)}},oWV=function(X,t,G,y,w,z){var B=B===void 0?"trayride":B;
G?(X.setState(2),_.Gi(_.Pp(G),function(){if(window[B])H52(X,y,B,w);else{X.setState(3);var V=_.QEh(G),b=document.getElementById(V);b&&(_.pjY(V),b.parentNode.removeChild(b));_.Mj(new _.NJ("BL:ULB",G))}},z)):t?(z=_.OF("SCRIPT"),t instanceof _.oY?_.B$(z,t):z.textContent=t,z.nonce=_.H$(document),document.head.appendChild(z),document.head.removeChild(z),window[B]?H52(X,y,B,w):(X.setState(4),_.Mj(new _.NJ("BL:ULBJ")))):_.Mj(new _.NJ("BL:ULV"))},JSi=function(){this.state=1;
this.vm=null;this.gcs=void 0};
_.H=JSi.prototype;_.H.initialize=function(X,t,G,y){this.gcs=y;if(X.program){var w;y=(w=X.interpreterUrl)!=null?w:null;if(X.interpreterSafeScript)w=_.z2G(X.interpreterSafeScript);else{var z;w=(z=X.interpreterScript)!=null?z:null}X.interpreterSafeUrl&&(y=_.aS(X.interpreterSafeUrl).toString());oWV(this,w,y,X.program,t,G)}else _.Mj(Error("lf"))};
_.H.isInitialized=function(){return!!this.vm};
_.H.getState=function(){return this.state};
_.H.isLoading=function(){return this.state===2};
_.H.invoke=function(X){X=X===void 0?{}:X;var t;this.vm?t=M_R(this.vm,{qe:X}):t=null;return t};
_.H.dispose=function(){zIR(this,null);this.setState(8)};
_.H.setState=function(X){this.state=X};
var B5a=function(X,t){return X.vm.snapshot(t)},nWV=function(X,t){var G=_.At("botguard_async_snapshot_timeout_ms",3E3);
t=t===void 0?{}:t;G=G===void 0?3E3:G;return X.vm?new Promise(function(y,w){var z=!1,B=_.vz.addJob(function(){z=!0;w(Error("mf"))},1,G);
X.vm?B5a(X,{qe:t}).then(function(V){_.vz.cancelJob(B);z||y(V)}).catch(function(V){_.vz.cancelJob(B);
z||w(V)}):(_.vz.cancelJob(B),y(null))}):Promise.resolve(null)},VeR=["att/log"],b5T;
b5T={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var kzQ={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},d72=function(X,t){return _.cK(X,{mode:"readwrite",enableRetries:!0},function(G){return _.VfA(G,t,"settingEntity")})},eIT=function(X,t,G){return _.cK(X,{mode:"readonly",
enableRetries:!0},function(y){return _.EKq(y,t,G)})},js4=function(X){if(!X.storage)return!1;
a:{if(X.storage){try{var t=X.storage.get("TLPQtimestamp")}catch(G){}X=Number(t);if(!isNaN(X))break a}X=void 0}return X?Date.now()-X<864E5:!1},gWT=function(X){if(X.storage){try{var t=X.storage.get("TLPQindex")}catch(G){}X=Number(t);
if(!isNaN(X))return X}},FAR=function(X,t){X.queueProxy&&t.forEach(function(G){if(G.videoId&&G.trackingParams&&X.queueProxy instanceof _.XN){var y=_.lw();
X.queueProxy.attributionData.set(G.videoId,{enqueueingVe:_.i$(G.trackingParams).getAsJson(),enqueueingCsn:y?y:void 0,clientEnqueueingTimeMs:Math.floor((0,_.gl)()).toString()})}})},T5B=function(X){var t=_.YLR(X);
t!=X.currentSnapState_&&(X.currentSnapState_=t,X.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},uB=function(X){this.JSC$13029_networkManager_=X;
this.partCallbacks_=[]};
uB.prototype.getCacheKeyForEndpoint=function(X){return _.vQV(X,!1)};
uB.prototype.onPartsCallback_=function(X){this.partCallbacks_.forEach(function(t){X&&t(X)})};
var Qu=function(X,t,G){uB.call(this,X);this.player_=t;this.autoplayData_=G};
_.S(Qu,uB);Qu.prototype.getCacheKeyForEndpoint=function(X){return _.vQV(X,!!this.autoplayData_)};
Qu.prototype.getTempData=function(X,t){t=t.timeBeforeNextVideo;X={itct:X.clickTrackingParams,lact:_.T5(),pbis:t,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(X.autonav=1);return X};
Qu.prototype.getXhrParams=function(X){return Object.assign({pbj:"prefetch"},X)};
Qu.prototype.getParams=function(X){X={frags:X.fragmentsRequested.join(",")};_.A("kevlar_droppable_prefetchable_requests")&&(X.prefetch=1);return X};
var AS2=function(X){X.playerEvents_.forEach(function(t){X.player.removeEventListener(t.eventName,t.callback)});
X.playerEvents_.length=0},IK=function(X,t,G){this.player=X;
this.JSC$13039_taskManager=t;this.prefetchDelay=G;this.completionResolver_=null;this.playerEvents_=[]};
IK.prototype.start=function(){var X=this;this.completionResolver_=_.d5();_.R8(this.completionResolver_.promise,function(){AS2(X);X.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var YWN=function(X,t,G){X.player.addEventListener(t,G);X.playerEvents_.push({eventName:t,callback:G})},ssN={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},D7R={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},SWH=function(X,t,G){IK.call(this,X,t,G);this.cueId_="playbackTrigger-"+Math.random()};
_.S(SWH,IK);
SWH.prototype.prepareTrigger=function(X){var t=this,G=this.player.getDuration(),y=this.player.getVideoData(),w=y.isLive&&y.hasProgressBarBoundaries;if(w&&y.progressBarEndPositionUtcTimeMillis){var z=y.progressBarEndPositionUtcTimeMillis/1E3;isNaN(z)||(G=z)}var B=0;this.prefetchDelay>=0?w?y.progressBarStartPositionUtcTimeMillis&&(y=y.progressBarStartPositionUtcTimeMillis/1E3,isNaN(y)||(B=y+this.prefetchDelay)):B=this.prefetchDelay:B=G+this.prefetchDelay;w?this.player.addUtcCueRange(this.cueId_,B,G):
this.player.addCueRange(this.cueId_,B,G);_.R8(X.promise,function(){t.player.removeCueRange(t.cueId_)});
YWN(this,"onCueRangeEnter",function(V){V==t.cueId_&&X.resolve(G-B)})};
var hI2=function(X,t){X.fragmentConfiguration_[t].requiredKeys.every(function(G){return!!X.prefetchedData_[G]})&&(X.validatedFragments_.push(t),t=X.missingFragments_.indexOf(t),t!==-1&&X.missingFragments_.splice(t,1))},Z5N=function(X){X.prefetchedFragments_.forEach(function(t){hI2(X,t)})},qWq=function(X,t,G){this.pageFragments_=X;
this.prefetchedFragments_=t;this.fragmentConfiguration_=D7R;this.prefetchedData_=G;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Z5N(this)},CXH=function(){},KAR=function(X){this.JSC$13053_playlistManager_=X};
_.S(KAR,CXH);KAR.prototype.getPrefetchEndpoint=function(){return this.JSC$13053_playlistManager_.getAutoplayEndpoint()};
var O5T=function(X){this.autonavEndpoints_=X};
_.S(O5T,CXH);O5T.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var uaq=function(X,t,G,y,w){this.autonavEndpoints=X;this.foregroundTrigger=t;this.backgroundTrigger=G;this.pageType=y;this.isInPlaylist=w},Qsa=function(X,t){if(X.webPrefetchData&&X.webPrefetchData.navigationEndpoints&&X.webPrefetchData.navigationEndpoints.length){X=X.webPrefetchData.navigationEndpoints;
var G=_.Y(X[0],_.nq);if(G.watchEndpointSupportedPrefetchConfig&&G.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var y=G.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;G=y.playbackRelativeSecondsPrefetchCondition;G=typeof G==="number"&&Math.abs(G)<t.videoDuration?G:void 0;y=y.countdownUiRelativeSecondsPrefetchCondition;y=typeof y!=="number"||_.A("prefetch_job_config_cleanup_ks")&&t.inPlaylist?void 0:y;if(typeof y==="number")return new uaq(X,t.makeUpNextTrigger(y),t.makePlaybackTrigger(y),
"watch",t.inPlaylist);if(typeof G==="number")return new uaq(X,t.makePlaybackTrigger(G),null,"watch",t.inPlaylist)}}},IRH=function(X){return X.prefetchJobConfig_.backgroundTrigger?_.tt(_.OmJ)()==0?X.prefetchJobConfig_.backgroundTrigger:X.prefetchJobConfig_.foregroundTrigger:X.prefetchJobConfig_.foregroundTrigger},WAr=function(X){_.No(document,"visibilitychange",X.onVisibilityChange_,!1,X)},WU=function(X){uB.call(this,X)};
_.S(WU,uB);WU.prototype.getCacheKeyForEndpoint=function(X){return uB.prototype.getCacheKeyForEndpoint.call(this,X)};
WU.prototype.getTempData=function(){return{}};
WU.prototype.getXhrParams=function(X){return X};
WU.prototype.getParams=function(){return{}};
var cSV=function(X,t,G){var y=X.prefetchDelay*1E3;if(Math.abs(y)>t)G.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var w=y,z=t-y;y<0&&(w=t+y,z=Math.abs(y));var B=X.JSC$13039_taskManager.addJob(function(){G.resolve(z/1E3)},10,w);
G.promise.thenCatch(function(){X.JSC$13039_taskManager.cancelJob(B)})}},pkH=function(X,t,G){IK.call(this,X,t,G)};
_.S(pkH,IK);pkH.prototype.prepareTrigger=function(X){var t=this;YWN(this,"onAutonavCoundownStarted",function(G){cSV(t,G,X)})};
var rSH=function(X){X.pendingPrefetchJob_&&(X.pendingPrefetchJob_.cancel(),X.pendingPrefetchJob_=null)},N5N=function(X,t,G){if(!X.triggeredTargets.has(t)){var y=_.eYz(X,t);
y.action=G;_.kb4(X,t,y)}},PXR=function(X){_.t3q();
_.im6("cpt")&&_.Mj(Error("lh"));_.tA.requestAnimationFrame(function(){_.tA.setTimeout(function(){_.ls("cpt");var t=_.XV("vpl"),G=_.XV("cpt");t&&G&&_.ls("ol",Math.max(t,G))})});
try{_.ls("fr_s"),X()}catch(t){_.xA(t)}_.tA.requestAnimationFrame(function(){_.ls("bcp")})},EW4=function(X,t){X.serviceEndpointHandlers.push(t)},U7a=function(X,t){t=X.pendingPages_.indexOf(t);
t>-1&&X.pendingPages_.splice(t,1)},m7N=function(X,t){var G=_.hq4.indexOf(t);
G>-1&&_.hq4.splice(G,1);X.targetPage_==t?(X.abort(),_.qJh(X)):U7a(X,t)},RIv=function(X,t,G,y){t={challenge:t};
G&&(t.webResponse=G);return _.t_(X.innertubeTransportService,t,_.el(VeR),y)},i5H=function(X,t,G){if(!t.challenge)throw Error("ni");
if(t.botguardData&&t.botguardData.program){var y=new JSi;y.initialize(t.botguardData,function(){nWV(y,{atr_challenge:t.challenge}).then(function(w){if(!w)throw Error("oi");return RIv(X,t.challenge,w,G)}).catch(function(w){_.Mj(w);
return RIv(X,t.challenge,void 0,G)})},void 0)}else RIv(X,t.challenge,void 0,G)},LA4=function(X,t,G){var y={};
t.ids&&(y.ids=[].concat(_.RY(t.ids)));t.engagementType&&(y.engagementType=t.engagementType);return _.t_(X.innertubeTransportService,y,_.el(_.zwe),G).then(function(w){if(!w)throw new _.NJ("GetAttestationChallenge returned falsy");i5H(X,w,G)}).thenCatch(function(w){_.xA(w)})},vWH=function(X,t,G){return new _.Kh(function(y,w){var z;
return _.n(function(B){if(B.nextAddress==1){var V=B.yield,b=t.engagementType,e=t.ids,g={};e=_.J(e!=null?e:[]);for(var F=e.next();!F.done;F=e.next())F=F.value,F.encryptedVideoId?g.encryptedVideoId=F.encryptedVideoId:F.externalChannelId?g.externalChannelId=F.externalChannelId:F.commentId?g.commentId=F.commentId:F.externalOwnerId?g.externalOwnerId=F.externalOwnerId:F.artistId?g.artistId=F.artistId:F.playlistId?g.playlistId=F.playlistId:F.externalPostId?g.externalPostId=F.externalPostId:F.shareId&&(g.shareId=
F.shareId);return V.call(B,o5R(b,g),2)}z=B.yieldResult;if(!z.challenge)return _.Mj(Error("pi")),LA4(X,t,G).then(y,w),B.return();V=z;b={challenge:V.challenge};b.webResponse=V.webResponse;b.engagementType=t.engagementType;b.ids=t.ids;_.t_(X.innertubeTransportService,b,_.el(VeR),G).then(y,w);_.W$(B)})})},bdB=function(X,t){var G,y,w,z;
_.n(function(B){if(B.nextAddress==1){G=_.Y(t,_.v9h);if(!(G&&G.listId&&X.response&&X.response.playingVideoId)||X.listId!==G.listId)return B.return();X.index===void 0&&(X.index=0);return B.yield(_.DLB(X.JSC$12784_playlistNetworkManager,G.listId,X.index,X.response.playingVideoId),2)}y=B.yieldResult;if(!y)return B.return();w=y.playlistId;z=y.playlistPanelRenderer;X.setPlaylistData(w,z,y.autoplayRenderer);_.W$(B)})},aRa=function(X,t,G){var y=X.getParams(G),w=_.d7l(t,y),z=X.getTempData(t,G);
z.endpoint=JSON.stringify(t);_.A("enable_unknown_lact_fix_on_html5")&&(_.gw().resolve(_.xI),z.lact=_.T5());var B={headers:{"X-YouTube-STS":_.Md("STS"),"x-youtube-csoc":1}};_.dk(w,z);return new _.Kh(function(V,b){var e=X.getXhrParams(y),g;_.A("kevlar_cache_on_ttl_player")&&(g=_.PN.instance);g&&_.LKY(g,t)?_.$64(g,t,z,window.location.href).then(function(F){F?V(F):b()},b):_.Yv4(X.JSC$13029_networkManager_,t,e,X.onPartsCallback_.bind(X),B).then(function(F){F?V(F):b()},b)})},lRN=function(X,t){X.triggerPromise_=
t.start();
X.triggerPromise_.then(function(G){var y=X.prefetchEndpointProvider_.getPrefetchEndpoint();if(y){var w=ssN[X.prefetchJobConfig_.pageType].prefetchedFragments;X.prefetchRequestPromise_=aRa(X.JSC$13065_networkPrefetchRequest_,y,{fragmentsRequested:w,timeBeforeNextVideo:G});X.prefetchResponseCacheKey_=X.JSC$13065_networkPrefetchRequest_.getCacheKeyForEndpoint(y);WAr(X);X.prefetchRequestPromise_.then(function(z){X.storePrefetchedDataCallback_(X.prefetchResponseCacheKey_,z);if(_.A("web_prefetch_preload_video")&&
w.length===1&&w[0]==="pl"&&z&&!z.playerAds&&!z.adPlacements){var B=_.Y(y,_.E8),V=B!=null,b={raw_player_response:z,watch_endpoint:B};(z=_.gw().resolve(V?_.ziq:_.q7))&&y&&z.then(function(e){V&&_.A("web_queue_preload_video")?(b.prefer_gapless=!0,e.queueNextVideo(b)):e.preloadVideoByPlayerVars(b)})}})}})},cU=function(X,t,G,y){this.prefetchEndpointProvider_=X;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=t;this.prefetchJobConfig_=G;this.JSC$13065_networkPrefetchRequest_=y;this.prefetchResponseCacheKey_=null};
cU.prototype.enqueue=function(){this.triggerPromise_||(lRN(this,IRH(this)),_.vj(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
cU.prototype.resolve=function(){this.cancel()};
cU.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.");WAr(this)};
cU.prototype.onVisibilityChange_=function(){var X=this;_.tt(_.OmJ)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){X.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||lRN(this,IRH(this))};
x7T=function(X,t,G,y,w){t&&(t==null?0:t.videoId)&&G&&G.entries&&_.A("kevlar_enable_shorts_prefetch_in_sequence")&&(rSH(X),t=G.entries.map(function(z){var B;return(B=_.Y(z.command,_.E8))==null?void 0:B.videoId}).indexOf(t.videoId),G=G.entries[t+1],G!=null&&G.command&&!_.Y(G==null?void 0:G.command,_.$n)&&(y=new uaq([G.command],new SWH(y,_.vz,1),null,"shorts",!1),X.pendingPrefetchJob_=new cU(new O5T(y.autonavEndpoints),function(){return!1},y,new WU(w)),X.pendingPrefetchJob_.enqueue()))};
fRV=function(X,t,G,y,w,z){var B=_.gz.getInstance();if(!_.A("block_all_player_prefetch_requests")){rSH(X);var V=!!G.getPlaylistId(),b=G.getVideoData().isLive&&G.getVideoData().hasProgressBarBoundaries;if((B.getState()==2||V||b)&&(!G.getVideoData().isLive||b)){B={inPlaylist:V,videoDuration:G.getDuration(),makeUpNextTrigger:function(g){return new pkH(G,_.vz,g)},
makePlaybackTrigger:function(g){return new SWH(G,_.vz,g)}};
var e=Qsa(t,B);e&&(X.pendingPrefetchJob_=new cU(e.isInPlaylist?new KAR(w):new O5T(e.autonavEndpoints),function(g,F){F=new qWq(ssN[e.pageType].pageFragments,ssN[e.pageType].prefetchedFragments,F);return _.w_e(F)?(X.prefetchCache_.set(g,F),!0):!1},e,new Qu(y,G,z,w)),X.pendingPrefetchJob_.enqueue())}}};
Meq=function(){var X=_.oI();X.signals.parkOrScheduleJob(function(){var t=X.storage;if(t.storage)if(js4(t)){var G=t.getPlaylistId();t=gWT(t);G=!!G&&t!==void 0}else t.clear(),G=!1;else G=!1;if(G){G=X.pageManager.isOnWatch();a:{var y=X.storage;if(y.storage&&js4(y)&&(t=y.getPlaylistId(),y=gWT(y),t&&y!==void 0)){G={recoverPlaylistCommand:{listId:t,index:y,openMiniplayer:!G,openListPanel:G,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}G=void 0}G&&_.XL(X.JSC$12784_actionRouter,[G],null)}},0,"ma")};
Xvv=function(X,t,G,y,w,z){var B=_.ai(7111);_.Cc(X.JSC$18142_screenManager,B,z?_.i$(z):void 0);_.OE(X.JSC$18142_screenManager,B,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:y,offlineId:t,offlineabilityFormatType:G,isDefaultFormatType:w==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:w}})};
$sN=function(X,t,G,y,w){var z,B,V,b,e;return _.n(function(g){if(g.nextAddress==1)return g.yield(X.JSC$18142_playerApiPromise,2);z=g.yieldResult;Xvv(X,t,G,"OFFLINE_OBJECT_TYPE_PLAYLIST",y,w);if(V=_.anz[X.entityTypeMap.listEntityType])e={},B=(e[V]={maximumDownloadQuality:(b=G)!=null?b:void 0},e);return g.yield(z.queueOfflineAction(t,X.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",B),0)})};
thv=function(X,t){var G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return B.yield(X.JSC$18142_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3){G=B.yieldResult;if(!G)return _.Mj(new _.NJ("PES is undefined")),B.return();y=_.Cg(t,"downloadStatusEntity");return B.yield(eIT(G,y,"downloadStatusEntity"),3)}w=B.yieldResult;return B.return((z=w)==null?void 0:z.downloadState)})};
GFN=function(X,t,G,y,w){var z,B,V,b,e,g;return _.n(function(F){switch(F.nextAddress){case 1:return F.yield(X.JSC$18142_playerApiPromise,2);case 2:z=F.yieldResult;Xvv(X,t,G,"OFFLINE_OBJECT_TYPE_VIDEO",y,w);if(V=_.anz[X.entityTypeMap.singleEntityType])e={},B=(e[V]={maximumDownloadQuality:(b=G)!=null?b:void 0},e);return F.yield(thv(X,t),3);case 3:g=F.yieldResult;if(g!=="DOWNLOAD_STATE_USER_DELETED"){F.jumpTo(4);break}return F.yield(X.deleteVideo(t),4);case 4:return F.yield(z.queueOfflineAction(t,X.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",B),0)}})};
y4V=function(X,t,G,y,w){return _.n(function(z){return z.nextAddress==1?z.yield(X.deleteVideo(t,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):z.yield(GFN(X,t,G,y,w),0)})};
wvH=function(X,t,G){var y,w;return _.n(function(z){if(z.nextAddress==1)return z.yield(X.JSC$18142_playerApiPromise,2);y=z.yieldResult;w=_.Cg(t,"mainVideoDownloadStateEntity");return z.yield(y.updateDownloadState(w,G),0)})};
XlR=function(X){var t=_.gw().resolve(_.A7);return _.n(function(G){if(G.nextAddress==1)return t.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&t.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?G.jumpTo(2):G.yield(t.resumeVideoDownload(X),2);if(G.nextAddress!=4)return G.yield(wvH(t,X,t.previousDownloadStateForVideo[X]),4);delete t.previousDownloadStateForVideo[X];_.W$(G)})};
fvQ=function(X,t){var G;return _.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$18142_playerApiPromise,2);G=y.yieldResult;return y.yield(G.queueOfflineAction(t,X.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
av4=function(){var X=_.gw().resolve(_.A7),t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$18142_playerApiPromise,2);if(y.nextAddress!=3)return t=y.yieldResult,G={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},y.yield(t.queueOfflineAction("!*$_ALL_ENTITIES_!*$",X.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",G),3);var w=X.JSC$18142_commandHandler,z=w.resolveCommand,B=_.Qf("DELETING_ALL",void 0,"Downloads are being deleted");
z.call(w,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ag(B)}},popupType:"TOAST"}});_.W$(y)})};
zpQ=function(X,t){var G,y,w,z,B,V;return _.n(function(b){if(b.nextAddress==1)return b.yield(X.JSC$18142_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return G=b.yieldResult,G?b.yield(eIT(G,_.iA,"downloadsPageViewConfigurationEntity"),3):(_.Mj(new _.NJ("PES is undefined")),b.return());w=(y=b.yieldResult)!=null?y:{};V=(B=(z=w)==null?void 0:z.downloadsUpsellBannerVisibility)!=null?B:{};return V.visibleWithConnection?b.yield(t.refreshAllStaleEntities(0),0):b.jumpTo(0)})};
Hyq=function(X){var t,G;return _.n(function(y){if(y.nextAddress==1)return y.yield(X.JSC$18142_prefStorage,2);t=y.yieldResult;return y.return((G=t)==null?void 0:G.get("sdois"))})};
oyH=function(X){var t,G,y,w,z,B;return _.n(function(V){if(V.nextAddress==1)return V.yield(X.JSC$18142_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3){t=V.yieldResult;if(!t)return _.Mj(new _.NJ("PES is undefined")),V.return();G=_.Cg("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return V.yield(eIT(t,G,"settingEntity"),3)}y=V.yieldResult;return V.return((B=(w=y)==null?void 0:(z=w.settingOptionValue)==null?void 0:z.boolValue)!=null?B:!1)})};
J4i=function(X,t){var G,y,w,z;return _.n(function(B){switch(B.nextAddress){case 1:return((G=t)==null?void 0:G.formatType)===void 0?B.return():B.yield(X.JSC$18142_prefStorage,2);case 2:y=B.yieldResult;if(y===void 0)return B.return();if(((w=t)==null?void 0:w.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return B.yield(y.set("lmqf",t.formatType),8);if(((z=t)==null?void 0:z.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){B.jumpTo(0);break}return B.yield(y.set("lmqf",t.formatType),
6);case 6:return B.yield(y.set("lmqflst",Math.floor((0,_.gl)())),0);case 8:return B.yield(y.remove("lmqflst"),0)}})};
B2B=function(X){var t,G;return _.n(function(y){switch(y.nextAddress){case 1:return y.yield(X.JSC$18142_prefStorage,2);case 2:t=y.yieldResult;if(!t){y.jumpTo(3);break}return y.yield(t.get("lmqflst"),4);case 4:if(G=y.yieldResult,G!==void 0)return y.return(G);case 3:return y.return(0)}})};
nyR=function(X){var t,G;return _.n(function(y){switch(y.nextAddress){case 1:return y.yield(X.JSC$18142_prefStorage,2);case 2:t=y.yieldResult;if(t===void 0){y.jumpTo(3);break}return y.yield(t.get("lmqf"),4);case 4:if(G=y.yieldResult,G!==void 0)return y.return(G);case 3:return y.return("SD")}})};
oI2=function(X,t,G){var y,w,z,B,V,b,e,g;_.n(function(F){switch(F.nextAddress){case 1:return F.yield(J4i(X,(y=t)==null?void 0:y.actionParams),2);case 2:w=t.playlistId;if(!w)return F.return();if(t.action==="ACTION_ADD")return((B=t.actionParams)==null?0:B.formatType)?F.yield($sN(X,w,t.actionParams.formatType,(g=t.actionParams)==null?void 0:g.settingsAction,G),0):F.yield(X.offlineWebClientEligibility,14);if(t.action==="ACTION_REMOVE_WITH_PROMPT"){var T=X.JSC$18142_commandHandler,D=T.resolveCommand,h=
_.Md("INNERTUBE_CLIENT_NAME");var u=h==="WEB_REMIX"?_.Qf("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Qf("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var W=h==="WEB_REMIX"?[_.Qf("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];h=h==="WEB_REMIX"?_.Qf("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Qf("DELETE",void 0,"Delete");var c=_.Qf("CANCEL",void 0,"Cancel");u=JaQ(u,W,h,c,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:w});
D.call(T,{openPopupAction:u});return F.return()}if(t.action==="ACTION_REMOVE")return F.yield(fvQ(X,w),0);if(t.action!=="ACTION_SYNC"){F.jumpTo(0);break}return F.yield(X.JSC$18142_playerApiPromise,9);case 9:return z=F.yieldResult,F.yield(z.queueOfflineAction(w,X.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return V=F.yieldResult,F.yield(nyR(X),15);case 15:return b=F.yieldResult,F.yield(B2B(X),16);case 16:e=F.yieldResult,t.onAddCommand&&X.JSC$18142_commandHandler.resolveCommand(t.onAddCommand,
{form:{preferredFormatType:b,offlineWebClientEligibility:V,lastOfflineQualitySettingsSavedMs:e.toString()}}),F.jumpTo(0)}})};
zVR=function(X,t,G){var y,w,z,B,V,b,e,g,F,T,D,h,u,W;_.n(function(c){switch(c.nextAddress){case 1:return c.yield(J4i(X,(y=t)==null?void 0:y.actionParams),2);case 2:w=t.videoId;if(!w)return c.return();if(t.action==="ACTION_REMOVE_WITH_PROMPT"){var P=X.JSC$18142_commandHandler,l=P.resolveCommand,R=_.Md("INNERTUBE_CLIENT_NAME");var L=R==="WEB_REMIX"?_.Qf("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Qf("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var x=R==="WEB_REMIX"?[_.Qf("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];R=R==="WEB_REMIX"?_.Qf("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Qf("DELETE",void 0,"Delete");var w6=_.Qf("CANCEL",void 0,"Cancel");L=JaQ(L,x,R,w6,{signal:"DELETE_DOWNLOAD",targetId:w});l.call(P,{openPopupAction:L});return c.return()}if(t.action==="ACTION_ADD")return((T=t.actionParams)==null?0:T.formatType)?c.yield(GFN(X,w,t.actionParams.formatType,(W=t.actionParams)==null?void 0:W.settingsAction,G),0):c.yield(X.offlineWebClientEligibility,
23);if(t.action==="ACTION_RETRY")return c.yield(nyR(X),19);if(t.action==="ACTION_PAUSE")return c.yield(X.pauseVideoDownload(w),0);if(t.action==="ACTION_RESUME")return c.yield(X.resumeVideoDownload(w),0);if(t.action!=="ACTION_REMOVE"){c.jumpTo(0);break}return c.yield(thv(X,w),13);case 13:return z=c.yieldResult,X.previousDownloadStateForVideo[w]=(B=z)!=null?B:"DOWNLOAD_STATE_UNKNOWN",c.yield(wvH(X,w,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(X.previousDownloadStateForVideo[w]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
X.previousDownloadStateForVideo[w]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){c.jumpTo(15);break}return c.yield(X.pauseVideoDownload(w),15);case 15:P=_.Qf("DELETED_VIDEO",void 0,"Video deleted from downloads.");l=_.Qf("UNDO_ACTION",void 0,"Undo");L=_.Qf("CLOSE",void 0,"Close");V={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ag(P),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Ag(l),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:w}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:P+" "+l}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:w}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:L}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};X.JSC$18142_commandHandler.resolveCommand(V);
c.jumpTo(0);break;case 19:b=c.yieldResult;b==="UNKNOWN_FORMAT_TYPE"&&(b="SD");e="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((g=t.actionParams)==null?0:g.formatType)b=t.actionParams.formatType,e=(F=t.actionParams)==null?void 0:F.settingsAction;return c.yield(y4V(X,w,b,e,G),20);case 20:return c.return();case 23:return D=c.yieldResult,c.yield(nyR(X),24);case 24:return h=c.yieldResult,c.yield(B2B(X),25);case 25:u=c.yieldResult,t.onAddCommand&&X.JSC$18142_commandHandler.resolveCommand(t.onAddCommand,
{form:{preferredFormatType:h,offlineWebClientEligibility:D,lastOfflineQualitySettingsSavedMs:u.toString()}}),c.jumpTo(0)}})};
Vhq=function(X,t){var G,y,w,z,B,V,b;return _.n(function(e){if(e.nextAddress==1)return e.yield(X.JSC$18142_persistentStorePromiseAccessor(),2);G=e.yieldResult;if(!G)return _.Mj(new _.NJ("PES is undefined")),e.return();if((y=t)==null||!y.settingItemId)return e.return();w=t;z=w.settingItemId;B=w.boolValue;V=_.Cg(z,"settingEntity");b={key:V,settingOptionValue:{boolValue:B}};return e.yield(d72(G,b),0)})};
by4=function(X,t){var G,y,w,z,B,V,b;return _.n(function(e){switch(e.nextAddress){case 1:return e.yield(X.JSC$18142_prefStorage,2);case 2:return G=e.yieldResult,y=_.cP(),e.yield(X.JSC$18142_persistentStorePromiseAccessor(),3);case 3:return w=e.yieldResult,G?w?e.yield(G.get("sdois"),4):(_.Mj(new _.NJ("PES is undefined")),e.return()):(_.Mj(new _.NJ("prefStorage is undefined")),e.return());case 4:z=e.yieldResult;V=(B=t)==null?void 0:B.boolValue;V===void 0||_.A("kevlar_set_sd_enabled_flag_killswitch")||
_.pq(0,197,!0);z===void 0&&V===void 0&&(V=!1);if(V===void 0){e.jumpTo(0);break}return e.yield(G.set("sdois",V),6);case 6:return _.A("kevlar_set_sd_enabled_flag_killswitch")||(_.pq(0,196,V),y.save()),b={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:V},e.yield(Vhq(X,b),0)}})};
kFR=function(X,t,G){var y,w,z,B,V;return _.n(function(b){switch(b.nextAddress){case 1:return b.yield(Hyq(X),2);case 2:return y=b.yieldResult,b.yield(by4(X,G),3);case 3:return b.yield(Hyq(X),4);case 4:return w=b.yieldResult,z=w!==y,b.yield(oyH(X),5);case 5:B=b.yieldResult&&!_.A("kevlar_modern_downloads_page");if((V=!w&&!B)||z)return b.yield(t.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);b.jumpTo(0)}})};
t_H=function(){var X=_.gw().resolve(_.A7),t;_.n(function(G){switch(G.nextAddress){case 1:return G.yield(X.JSC$18142_playerApiPromise,2);case 2:t=G.yieldResult;if(!_.A("kevlar_force_refresh_smart_downloads")){G.jumpTo(3);break}return G.yield(t.refreshAllStaleEntities(0),4);case 4:return G.return();case 3:return G.yield(t.refreshAllStaleEntities(),5);case 5:return G.yield(kFR(X,t),6);case 6:if(_.A("enable_download_pep_for_premium_countries_web"))return G.yield(zpQ(X,t),0);G.jumpTo(0)}})};
BrH=function(X,t){var G,y;_.n(function(w){switch(w.nextAddress){case 1:return w.yield(X.JSC$18142_playerApiPromise,2);case 2:G=w.yieldResult;switch((y=t)==null?void 0:y.settingItemId){case "SMART_DOWNLOADS_ENABLED":return w.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return w.jumpTo(4)}w.jumpTo(0);break;case 3:return w.yield(kFR(X,G,t),6);case 6:w.jumpTo(0);break;case 4:return w.yield(Vhq(X,t),7);case 7:w.jumpTo(0)}})};
dsB=function(X,t){var G,y,w;return _.n(function(z){if(z.nextAddress==1)return z.yield(X.JSC$18142_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3){G=z.yieldResult;if(!G)return _.Mj(new _.NJ("PES is undefined")),z.return(!1);if(!t)return z.return(!1);y=_.Cg(t,"mainVideoEntity");return z.yield(eIT(G,y,"mainVideoEntity"),3)}w=z.yieldResult;return z.return(w!==void 0)})};
V_V=function(X){var t=_.gw().resolve(_.A7),G,y,w,z,B,V,b,e,g,F,T;_.n(function(D){switch(D.nextAddress){case 1:return D.yield(t.JSC$18142_playerApiPromise,2);case 2:G=D.yieldResult;w=(y=X)==null?void 0:y.actions;if(!w)return D.return();z=_.J(w);B=z.next();case 3:if(B.done){D.jumpTo(0);break}V=B.value;e=b=void 0;if(!(((b=V)==null?0:b.entityKey)&&((e=V)==null?0:e.actionType))){D.jumpTo(4);break}g=_.hg(V.entityKey);F=g.entityId;T=g.entityType;return D.yield(G.queueOfflineAction(F,T,V.actionType),4);case 4:B=
z.next(),D.jumpTo(3)}})};
ep4=function(X,t){var G,y,w,z,B;return _.n(function(V){if(V.nextAddress==1)return V.yield(X.JSC$18142_prefStorage,2);if(V.nextAddress!=3)return(G=V.yieldResult)?V.yield(G.get("psi"),3):V.return();y=V.yieldResult;B={isPaused:t,lastSyncTimestamp:(z=(w=y)==null?void 0:w.lastSyncTimestamp)!=null?z:"0"};return V.yield(G.set("psi",B),0)})};
dI2=function(X){var t=_.gw().resolve(_.A7),G,y,w,z,B,V,b,e;return _.n(function(g){switch(g.nextAddress){case 1:return g.yield(t.JSC$18142_playerApiPromise,2);case 2:G=g.yieldResult;w=((y=X)==null?void 0:y.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((V=X)==null?void 0:V.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":z="!*$_ALL_ENTITIES_!*$";B="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return g.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return g.jumpTo(4)}g.jumpTo(5);break;case 3:return g.yield(ep4(t,w),6);case 6:g.jumpTo(5);break;case 4:return g.yield(dsB(t,(b=X)==null?void 0:b.videoId),7);case 7:g.yieldResult&&(z=(e=X)==null?void 0:e.videoId,B="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");g.jumpTo(5);break;case 5:if(z&&B)return g.yield(G.queueOfflineAction(z,"videoPlaybackPositionEntity",B),0);g.jumpTo(0)}})};
jDV=function(X,t){var G;t!==1||((G=X.currentPersistentToast)==null?0:G.isOpened())?X.openToast():X.currentPersistentToast=void 0};
gyH=function(X,t){var G;return(G=X.transitionTasksMap.get(t))!=null?G:[]};
FMR=function(X,t){var G=[];X.elementTasksMap.forEach(function(y){(y=y.get(t))&&G.push(y)});
return G};
T2i=function(X,t,G,y){y=y===void 0?{}:y;var w=X.defaultViewTransitionOptions;return Object.assign({},w,y,{beforeTransition:function(){G.forEach(function(b){b.beforeTransition()});
var z;(z=w.beforeTransition)==null||z.call(w);var B,V;(V=(B=y).beforeTransition)==null||V.call(B);t.forEach(function(b){b.beforeTransition()})},
afterTransition:function(){G.forEach(function(b){b.afterTransition()});
var z;(z=w.afterTransition)==null||z.call(w);var B,V;(V=(B=y).afterTransition)==null||V.call(B);t.forEach(function(b){b.afterTransition()})}})};
A42=function(X,t,G){X.transitionTasksMap.has(t)?X.transitionTasksMap.get(t).push(G):(X=new _.NJ("Transition task registered for unknown transition type",t),_.xA(X))};
YeQ=function(X,t,G){if(X.transitionTasksMap.has(t)){var y=X.transitionTasksMap.get(t).filter(function(w){return w!==G});
X.transitionTasksMap.set(t,y)}};
sDQ=function(X,t){var G=gyH(X,t);G=_.J(G);for(var y=G.next();!y.done;y=G.next())y=y.value,y.runOnce&&YeQ(X,t,y);X.elementTasksMap.forEach(function(w,z){w.forEach(function(B,V){B.runOnce&&t===V&&(w.delete(V),w.size===0&&X.elementTasksMap.delete(z))})})};
DsB=function(X,t,G){var y,w,z,B,V,b,e,g,F;_.n(function(T){if(T.nextAddress==1){if(X.config.disableAllTransitions)return T.return(t());if((y=G)==null||!y.transitionType)return T.return(_.s0i(t,(w=G)==null?void 0:w.viewTransitionOptions));z=G;B=z.transitionType;V=z.viewTransitionOptions;b=X.config.transitionConfigs.get(B);if(!b)return T.return(t());e=gyH(X,B);g=FMR(X,B);F=_.s0i(t,T2i(b,e,g,V));return T.yield(F,2)}sDQ(X,B);_.W$(T)})};
SeH=function(){var X,t,G,y;return _.n(function(w){if(w.nextAddress==1)return X=navigator,(t=X.storage)!=null&&t.persisted?w.yield((G=X.storage)==null?void 0:G.persisted(),2):w.return("PERSISTED_STATE_NOT_SUPPORTED");y=w.yieldResult;return w.return(y?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
hpa=function(){var X,t,G,y;return _.n(function(w){if(w.nextAddress==1)return X=navigator,(t=X.storage)!=null&&t.persist?w.yield((G=X.storage)==null?void 0:G.persist(),2):w.return("PERSISTED_STATE_NOT_SUPPORTED");y=w.yieldResult;return w.return(y?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
Zya=function(){var X,t;return _.n(function(G){switch(G.nextAddress){case 1:return X="PERSISTED_STATE_NOT_SUPPORTED",_.CL(G,2),G.yield(SeH(),4);case 4:X=G.yieldResult;if(X!=="PERSISTED_STATE_NOT_GRANTED"){G.jumpTo(5);break}return G.yield(hpa(),6);case 6:X=G.yieldResult;case 5:_.zx(G,3);break;case 2:t=_.IY(G),t instanceof Error&&_.xA(t);case 3:return _.a7("persistentStorageStateChecked",{persistedState:X}),G.return(X)}})};
qeR=function(X,t){var G=[],y=!1;t=_.J(t);for(var w=t.next();!w.done;w=t.next()){w=X.moduleRegistry[w.value];var z=void 0,B=void 0;((z=w)==null?0:z.isFetching)&&((B=w)==null?0:B.resolver)?(G.push(w.resolver.promise),y=!0):(w=new _.Kp,w.resolve(void 0),G.push(w.promise))}return y?Promise.all(G):void 0};
jkH=function(X,t){if(X.isAnyTransitionEnabled){var G={};X.viewTransitionCoordinator.registerElement(t,(G.slide="miniplayer-page-transition",G["lockup-to-watch"]="miniplayer-page-transition",G["learning-journey"]="miniplayer-page-transition",G))}};
C7v=function(X,t,G){if(X.isAnyTransitionEnabled){var y={beforeTransition:function(){G(!0);t.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){t.style.viewTransitionName&&(t.style.viewTransitionName="",G(!1))}};
A42(X.viewTransitionCoordinator,"slide",y);A42(X.viewTransitionCoordinator,"lockup-to-watch",y);A42(X.viewTransitionCoordinator,"watch-next-appears",y);A42(X.viewTransitionCoordinator,"learning-journey",y)}};
KMR=function(X,t){X.isBrowseTransitionEnabled?DsB(X.viewTransitionCoordinator,t,{transitionType:"slide"}):(t(),Promise.resolve())};
Oy4=function(X,t){X.isLockupToWatchTransitionEnabled?DsB(X.viewTransitionCoordinator,t,{transitionType:"lockup-to-watch"}):(t(),Promise.resolve())};
u7T=function(X,t){X.isLockupToWatchTransitionEnabled?DsB(X.viewTransitionCoordinator,t,{transitionType:"watch-next-appears"}):(t(),Promise.resolve())};
QDa=function(X,t){X.isLearningJourneyTransitionEnabled?DsB(X.viewTransitionCoordinator,t,{transitionType:"learning-journey"}):(t(),Promise.resolve())};
I7V=function(X,t,G){if(X.isInitialized()){var y=hu(G),w=y==="watch";y=y==="shorts";var z=hu(t)==="watch";if(w)z||(X.backgroundPageData=t),X.watchPipMode&&z||X.deactivate(G.endpoint);else if(y){if(hu(t)!=="shorts"){var B;(B=X.getPlayerElement())==null||B.pause()}}else z&&!X.watchPipMode&&(n5B(t,G)?(X.watchWhileMode&&_.SwH(X,!1),_.Fbr(X,t)):X.isMiniplayerActive()&&X.watchWhileMode&&X.deactivate());z&&_.ZDv(X);X.shortsPipMode&&!y&&(window.focus(),X.deactivate());if(X.pictureInPictureEnabled())if(y&&
X.shortsPipEnabled||w&&X.watchPipEnabled)_.DCv(X.handleMediaSessionPipActivation);else if(!X.isMiniplayerActive()&&(X.shortsPipEnabled||X.watchPipEnabled)&&window.documentPictureInPicture&&_.K_()&&_.nJA("Chromium")>=120){X=_.sBl().mediaSession;try{X.setActionHandler("enterpictureinpicture",null)}catch(V){}}}};
WM4=function(X,t){var G,y;_.n(function(w){if(w.nextAddress==1){if(!X||!X.navigationEndpoint)return w.return();_.cF().lockupActivation=!0;var z;t?z=_.Vl(_.Qf("QUEUE",void 0,"Queue")):z=X.longBylineText;y=(G=z)&&X.title?{miniplayerTitle:X.title,miniplayerSubtitle:G,playlistData:null}:void 0;return w.yield(_.BUo(_.gw().resolve(_.G2),X.navigationEndpoint,!0,y),2)}_.cF().userActivation=!0;_.W$(w)})};
BtR=function(X,t){var G,y,w,z,B,V;_.n(function(b){if(b.nextAddress==1){G=_.Y(t,_.L9J);if(!G||!G.listId)return b.return();X.index=G.index||X.index||0;y=X.response&&X.response.playingVideoId||void 0;return b.yield(_.DLB(X.JSC$12784_playlistNetworkManager,G.listId,X.index,y),2)}w=b.yieldResult;if(!w)return b.return();z=w.playlistId;B=w.playlistPanelRenderer;!X.queueProxy&&z&&B&&z.startsWith("TLPQ")&&(X.queueProxy=new _.XN(X.JSC$12784_playlistNetworkManager,z,X.setPlaylistData.bind(X),X.clearQueue.bind(X),
_.NGh(B),X.storage));if(G.openMiniplayer&&(V=_.PRV(B))&&!X.pageManager.isOnWatch()){var e=V,g=G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";X.isMiniplayerActive()?X.openToast(e):WM4(e,g)}X.setPlaylistData(z,B,w.autoplayRenderer);_.W$(b)})};
Hd2=function(X,t){var G=_.oI();G.index===void 0&&(G.index=0);G.temporaryItems.push.apply(G.temporaryItems,_.RY(X));if((t.videoId||t.videoIds)&&G.index!==void 0&&t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!G.queueProxy){var y=[];if(G.response){var w=_.gw().resolve(_.G2).isMiniplayerActive();if(G.response.playlistPanelRenderer&&G.response.playlistId&&!G.response.playlistId.startsWith("TLPQ")){if(G.pageManager.isOnWatch()||w)y=_.NGh(G.response.playlistPanelRenderer)}else G.response.playingVideoId&&
!t.openMiniplayer?y.push(G.response.playingVideoId):w&&G.response.playingVideoId&&t.openMiniplayer&&y.push(G.response.playingVideoId)}G.queueProxy=new _.XN(G.JSC$12784_playlistNetworkManager,"",G.setPlaylistData.bind(G),G.clearQueue.bind(G),y,G.storage);G.queueProxy.JSC$12730_setCurrentIndex(G.index)}G.queueProxy.addVideos(t.videoIds||[t.videoId],t)}FAR(G,X);G.response&&_.J_(G,_.BN(G,G.response.autoplayRenderer));G.pageManager.isOnWatch()?G.isMiniplayerActive()&&G.openToast(X[0]):(X=X[0],t=t.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",G.isMiniplayerActive()?G.openToast(X):WM4(X,t))};
c4q=function(X){var t=_.JQ(X);if(t=="object"||t=="array"){if(typeof X.clone==="function")return X.clone();if(typeof Map!=="undefined"&&X instanceof Map)return new Map(X);if(typeof Set!=="undefined"&&X instanceof Set)return new Set(X);t=t=="array"?[]:{};for(var G in X)t[G]=c4q(X[G]);return t}return X};
pF=function(X,t){return _.ffs(_.cH(X,t,void 0,_.WH))};
rM=function(X,t){return _.FH(_.cH(X,t,void 0,_.WH))};
Nb=function(X,t){return _.Ftv(_.cH(X,t,void 0,_.WH))};
PU=function(X,t){return _.cH(X,t,void 0,_.WH,_.lfJ)};
pvR=_.AM(function(X,t,G){if(X.nextWireType_!==0)return!1;_.si(t,G,_.y7(X.decoder_,_.vJV));return!0},_.hM,_.om);
r4V=_.AM(function(X,t,G,y){if(X.nextWireType_!==0)return!1;_.PH(t,G,y,_.y7(X.decoder_,_.vJV));return!0},_.hM,_.om);
N2a=_.AM(function(X,t,G){if(X.nextWireType_!==1)return!1;var y=X.decoder_;X=_.z1(y);y=_.z1(y);X=_.Gr(X,y);_.si(t,G,X);return!0},_.dxw,_.rj0);
P7R=_.AM(function(X,t,G){if(X.nextWireType_!==5)return!1;_.si(t,G,_.z1(X.decoder_));return!0},function(X,t,G){t=_.$zJ(t);
t!=null&&(_.DY(X,G,5),_.SB(X.encoder_,t))},_.ph_);
EyV=_.AM(function(X,t,G){if(X.nextWireType_!==0)return!1;X=_.gaJ(X.decoder_);_.si(t,G,X===!1?void 0:X);return!0},_.etJ,_.Qnv);
Usa=_.AM(function(X,t,G){if(X.nextWireType_!==2)return!1;X=_.DyA(X);_.si(t,G,X===""?void 0:X);return!0},_.ggf,_.IhE);
ms4=_.AM(function(X,t,G){if(X.nextWireType_!==2)return!1;X=_.ST6(X);_.si(t,G,X===_.Nz()?void 0:X);return!0},_.TNV,_.Ea_);
Rpq=_.ztl(function(X,t,G){if(X.nextWireType_!==0&&X.nextWireType_!==2)return!1;t=_.dR0(t,t[_.C4]|0,G);X.nextWireType_==2?_.hSf(X,Lw4,t):t.push(_.wa(X.decoder_));return!0},function(X,t,G){t=_.wtV(_.FH,t,!0);
if(t!=null&&t.length){G=_.C2f(X,G);for(var y=0;y<t.length;y++)_.VB0(X.encoder_,t[y]);_.KaJ(X,G)}},_.UyV);
iyR=_.AM(function(X,t,G){if(X.nextWireType_!==0)return!1;X=_.wa(X.decoder_);_.si(t,G,X===0?void 0:X);return!0},_.AMl,_.UyV);
LMR=_.AM(function(X,t,G,y){if(X.nextWireType_!==0)return!1;_.PH(t,G,y,_.wa(X.decoder_));return!0},_.AMl,_.UyV);
_.ec=function(X){this.privateDoNotAccessOrElseWrappedStyleSheet=X};
_.ec.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var TtQ=function(X,t){return new _.LD(X.x+t.x,X.y+t.y)},vyv=function(X){return X.previousElementSibling!==void 0?X.previousElementSibling:_.X4S(X.previousSibling,!1)},a7T=function(X,t){var G=[];
for(t=t||0;t<X.length;t+=2)_.URS(X[t],X[t+1],G);return G.join("&")},l7i=function(X,t){var G=arguments.length==2?a7T(arguments[1],0):a7T(arguments,1);
return _.EVB(X,G)},xYr=_.C1(_.$l),xsH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(xsH,_.eB);xsH.prototype.getTypeName=function(){return _.aQ(this,1).split("/").pop()};
xsH.prototype.getValue=function(){var X=_.cH(this,2);if(Array.isArray(X)||X instanceof _.eB)throw Error("W");return _.Ne(this,2)};
var rgq=function(){var X=_.hp();this.JSC$9848_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.A6("channel_type"))};
rgq.prototype.increment=function(X){this.JSC$9848_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",X)};
var N9N=function(){var X=_.hp();this.JSC$9851_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.A6("channel_type"))};
N9N.prototype.increment=function(X){this.JSC$9851_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",X)};
var E0H=function(){var X=_.hp();this.JSC$9854_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.A6("channel_type"))};
E0H.prototype.increment=function(X){this.JSC$9854_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",X)};
var PAv=function(){var X=_.hp();this.JSC$9857_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
PAv.prototype.increment=function(){this.JSC$9857_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var UQR=function(){var X=_.hp();this.JSC$9860_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.A6("channel_type"),_.A6("error_type"))};
UQR.prototype.increment=function(X,t){this.JSC$9860_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",X,t)};
var mQa=function(){var X=_.hp();this.JSC$9863_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
mQa.prototype.increment=function(){this.JSC$9863_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var R7q=function(){var X=_.hp();this.JSC$9866_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
R7q.prototype.increment=function(){this.JSC$9866_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var IWH=function(){var X=_.hp();this.JSC$9872_streamzService=X;X.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
IWH.prototype.increment=function(){this.JSC$9872_streamzService.JSC$9716_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var f72=function(X){return X.getCount&&typeof X.getCount=="function"?X.getCount():_.xJ(X)||typeof X==="string"?X.length:_.RH.getCount(X)},MhN=function(X,t){if(typeof X.every=="function")return X.every(t,void 0);
if(_.xJ(X)||typeof X==="string")return Array.prototype.every.call(X,t,void 0);for(var G=_.mtJ(X),y=_.e2(X),w=y.length,z=0;z<w;z++)if(!t.call(void 0,y[z],G&&G[z],X))return!1;return!0},Xaa=function(X,t,G,y){var w=new _.Vf(null);
X&&_.j2(w,X);t&&_.gE(w,t);G&&_.FS(w,G);y&&_.TT(w,y);return w},$Mr=function(){var X=_.Xl&&_.d6(_.yGq,10)>=0,t;
if(t=_.uq_)t=_.d6(_.Gx4,10)>=0;var G=_.uz&&_.d6(_.yGq,85)>=0;return _.qe||X||t||G},twv=function(X){var t=_.YRq(X);
return t&&$Mr()?-X.scrollLeft:t&&_.fo(X,"overflowX")!="visible"?X.scrollWidth-X.clientWidth-X.scrollLeft:X.scrollLeft},GCV=function(X,t){t=Math.max(t,0);
_.YRq(X)?$Mr()?X.scrollLeft=-t:X.scrollLeft=X.scrollWidth-t-X.clientWidth:X.scrollLeft=t},hMR=0,Olv=!1;
qn.prototype.set=function(X){this.relativeTimeStart_=X};
qn.prototype.reset=function(){this.set(_.YE())};
qn.prototype.get=function(){return this.relativeTimeStart_};
var yiT=null,waa=function(){yiT||(yiT=new qn)},zCR=function(){yiT||(yiT=new qn)};
_.sx(zCR,waa);_.H=QO2.prototype;_.H.JSC$11232_buffer_="";_.H.set=function(X){this.JSC$11232_buffer_=""+X};
_.H.append=function(X,t,G){this.JSC$11232_buffer_+=String(X);if(t!=null)for(var y=1;y<arguments.length;y++)this.JSC$11232_buffer_+=arguments[y];return this};
_.H.clear=function(){this.JSC$11232_buffer_=""};
_.H.getLength=function(){return this.JSC$11232_buffer_.length};
_.H.toString=function(){return this.JSC$11232_buffer_};
var HV2=function(){var X={type:"unit",style:"narrow"};this.listType_=X&&X.type?X.type:"conjunction";this.listStyle_=X&&X.style?X.style:"long";this.listSymbols_=$7R;X=0;switch(this.listStyle_){case "short":X=1;break;case "narrow":X=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[X];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[X];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[X];this.listEndPattern_=
this.listSymbols_.AND_END[X];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[X];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[X];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[X];this.listEndPattern_=this.listSymbols_.OR_END[X];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[X],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[X],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[X],this.listEndPattern_=this.listSymbols_.UNIT_END[X]}};
HV2.prototype.format=function(X){return olR(this,X)};
var olR=function(X,t){var G=t.length;switch(G){case 0:return"";case 1:return String(t[0]);case 2:return X.listTwoPattern_.replace("{0}",String(t[0])).replace("{1}",String(t[1]))}for(var y=X.listStartPattern_.replace("{0}",String(t[0])).replace("{1}",String(t[1])),w=2;w<G-1;++w)y=X.listMiddlePattern_.replace("{0}",y).replace("{1}",String(t[w]));return X.listEndPattern_.replace("{0}",y).replace("{1}",String(t[G-1]))},lsT=function(){var X={style:1};
this.style_=(X==null?void 0:X.style)||0;this.durationSymbols_=_.xhB||_.E34},Ji4=function(X,t){switch(t){default:case "years":return X.durationSymbols_.YEAR;
case "months":return X.durationSymbols_.MONTH;case "weeks":return X.durationSymbols_.WEEK;case "days":return X.durationSymbols_.DAY;case "hours":return X.durationSymbols_.HOUR;case "minutes":return X.durationSymbols_.MINUTE;case "seconds":return X.durationSymbols_.SECOND}},Ef=function(X,t,G){a:{G=Ji4(X,G);
switch(X.style_){case 1:if(G.LONG!=void 0){X=G.LONG;break a}case 2:if(G.NARROW!=void 0){X=G.NARROW;break a}default:X=G.SHORT;break a}X=void 0}return X?(new _.BX4("{DURATION_VALUE,plural,"+X+"}")).format({DURATION_VALUE:t}):""};
lsT.prototype.format=function(X){var t=[],G=X.years,y=X.months,w=X.weeks,z=X.days,B=X.hours,V=X.minutes;X=X.seconds;G!=null&&t.push(Ef(this,G,"years"));y!=null&&t.push(Ef(this,y,"months"));w!=null&&t.push(Ef(this,w,"weeks"));z!=null&&t.push(Ef(this,z,"days"));B!=null&&t.push(Ef(this,B,"hours"));V!=null&&t.push(Ef(this,V,"minutes"));X!=null&&t.push(Ef(this,X,"seconds"));return(new HV2).format(t)};
var BPa=!1,PCV=function(X){_.Xv.call(this,X.message||X.description||X.name);this.isMissing=X instanceof Cn;this.isTimeout=X instanceof _.jW&&X.errorCode=="net.timeout";this.isCanceled=X instanceof _.zC};
_.S(PCV,_.Xv);PCV.prototype.name="BiscottiError";var Cn=function(){_.Xv.call(this,"Biscotti ID is missing from server")};
_.S(Cn,_.Xv);Cn.prototype.name="BiscottiMissingError";var Kn=null,XWB=function(){try{var X=_.GA("yt.ads.biscotti.getId_");return X?X():FXV()}catch(t){return _.l$(t)}},as4,nlH=function(X,t){return _.Dl({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:X,command:t}})},Vwv=function(X){return _.Dl({type:"SET_GUIDE_IS_EXPANDED",
payload:X})},bVR=function(X){return _.Dl({type:"SET_ONLINE_STATUS",
payload:X})},kC2=function(X,t){return _.Dl({type:"SET_TRANSCRIPTION_STATE",
payload:{high:X,low:t}})},dMT=function(X){return _.Dl({type:"SET_OVERLAY_STATE",
payload:X})},eCq=0,jAa=function(X,t,G){var y=this;
this.priority=t;this.delay=G;this.jobId=0;this.completionCallback=_.ra;this.wrappedJob=function(){X();y.completionCallback()};
this.id=++eCq};
jAa.prototype.enqueue=function(X){this.completionCallback=X;this.jobId=_.vz.addJob(this.wrappedJob,this.priority,this.delay)};
var Uf=function(){_.YX.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.S(Uf,_.YX);Uf.prototype.addJob=function(X,t,G){X=new jAa(X,t,G);this.taskIdToTask.set(X.id,X);this.isActive?glH(this,X):this.suspendedTasks.add(X);return X.id};
var glH=function(X,t){X.scheduledTasks.add(t);t.enqueue(function(){X.scheduledTasks.delete(t)})};
Uf.prototype.cancelJob=function(X){(X=this.taskIdToTask.get(X))&&(this.scheduledTasks.delete(X)?_.vz.cancelJob(X.jobId):this.suspendedTasks.delete(X))};
Uf.prototype.pause=function(){var X=this;this.isActive=!1;this.scheduledTasks.forEach(function(t){_.vz.cancelJob(t.jobId);X.suspendedTasks.add(t)});
this.scheduledTasks.clear()};
Uf.prototype.start=function(){var X=this;this.isActive=!0;this.suspendedTasks.forEach(function(t){glH(X,t)});
this.suspendedTasks.clear()};
Uf.prototype.reset=function(){this.scheduledTasks.forEach(function(X){_.vz.cancelJob(X.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var mr=function(X,t){this.JSC$12913_networkService_=X;this.pageRequestPromise=t};
mr.prototype.fetchData=function(X){FhR(this,this.JSC$12913_networkService_.fetchData(X))};
mr.prototype.postData=function(X,t){FhR(this,this.JSC$12913_networkService_.postData(X,t))};
mr.prototype.requestDataForServiceEndpoint=function(X,t){FhR(this,this.JSC$12913_networkService_.requestDataForServiceEndpoint(X,t))};
var FhR=function(X,t){t.then(X.pageRequestPromise.onSuccess,X.pageRequestPromise.onFailure,X.pageRequestPromise)};
mr.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var RK=function(X){this.buildNetworkRequest_=X;this.pendingRequests_=new Set};
RK.prototype.reset=function(){this.pendingRequests_.forEach(function(X){X.cancel()});
this.pendingRequests_.clear()};
RK.prototype.fetchData=function(X){var t=TPq(this);t.fetchData(X);return t.pageRequestPromise};
RK.prototype.postData=function(X,t){var G=TPq(this);G.postData(X,t);return G.pageRequestPromise};
RK.prototype.requestDataForServiceEndpoint=function(X,t){var G=TPq(this);G.requestDataForServiceEndpoint(X,t);return G.pageRequestPromise};
var TPq=function(X){var t=X.buildNetworkRequest_();X.pendingRequests_.add(t);var G=function(){X.pendingRequests_.delete(t)};
t.pageRequestPromise.then(G,G);return t},Aii=function(X){var t=new Uf;
this.JSC$12920_networkService_=X;this.JSC$12920_taskManager_=t;this.JSC$12920_networkManager_=new RK(this.networkRequestFactory_.bind(this))};
_.H=Aii.prototype;_.H.networkRequestFactory_=function(){return new mr(this.JSC$12920_networkService_,new _.s2(this.JSC$12920_taskManager_))};
_.H.reset=function(){this.JSC$12920_taskManager_.reset();this.JSC$12920_networkManager_.reset()};
_.H.start=function(){this.JSC$12920_taskManager_.start()};
_.H.pause=function(){this.JSC$12920_taskManager_.pause()};
_.H.getTaskManager=function(){return this.JSC$12920_taskManager_};
_.H.getNetworkManager=function(){return this.JSC$12920_networkManager_};
var $82=null,yLH=[],OO=0,QP=0,ub=null,Y54=!1,IW=null,zXH=void 0,sAH=function(){var X=(0,_.p8q)();X&&GzH(X,X.mechanism.__iterator__(!0))},cR=function(X){this.token=X};
cR.getInstance=function(){var X;return _.n(function(t){if(t.nextAddress==1)return t.yield(_.eD(),2);X=t.yieldResult;if(!X)return t.return();cR.instance||(cR.instance=new cR(X));return t.return(cR.instance)})};
var VbH=function(X){var t;return _.n(function(G){if(G.nextAddress==1)return G.yield(JLR(X.token),2);t=G.yieldResult;return G.return(t.clear("resource-manifest-assets"))})},WR=function(X){this.token=X};
WR.getInstance=function(){var X;return _.n(function(t){if(t.nextAddress==1)return t.yield(_.eD(),2);X=t.yieldResult;if(!X)return t.return();WR.instance||(WR.instance=new WR(X));return t.return(WR.instance)})};
var BuB=function(X){var t;return _.n(function(G){if(G.nextAddress==1)return G.yield(JLR(X.token),2);t=G.yieldResult;return G.yield(t.clear("auth"),0)})},umT=!1,DMi=function(X){_.Xv.call(this,X)};
_.S(DMi,_.bRq);var S5V="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(" ");HqH()&&S5V.push("details:not(:has(summary))");var JEr=S5V.join(",");var KTR=function(){var X=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return X?parseInt(X[1],10):0},hC2=function(X){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+X)!=-1||document.currentScript.src.indexOf("&"+X)!=-1)},ZVQ=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},WTH=function(X){X.length?q5H(X.shift(),function(){WTH(X)}):u0T()},pyT=function(X){return"chrome-extension://"+X+"/cast_sender.js"},q5H=function(X,
t,G){var y=document.createElement("script");
y.onerror=t;G&&(y.onload=G);_.Vb(y,_.Pp(X));(document.head||document.documentElement).appendChild(y)},CWQ=function(){var X=KTR(),t=[];
if(X>1){var G=X-1;t.push("//www.gstatic.com/eureka/clank/"+X+"/cast_sender.js");t.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js")}return t},u0T=function(){var X=ZVQ();
X&&X(!1,"No cast extension found")},IdV=function(){if(KhV){var X=2,t=ZVQ(),G=function(){X--;
X==0&&t&&t(!0)};
window.__onGCastApiAvailable=G;q5H("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",u0T,G)}},OpR=function(){IdV();
var X=CWQ();X.push("//www.gstatic.com/eureka/clank/cast_sender.js");WTH(X)},Qcr=function(){IdV();
var X=CWQ();X.push.apply(X,_.RY(cpT.map(pyT)));X.push("//www.gstatic.com/eureka/clank/cast_sender.js");WTH(X)},KhV=hC2("loadCastFramework")||hC2("loadCastApplicationFramework"),cpT=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var OV2=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(OV2,_.eB);var ucN=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ucN,_.eB);var QAq=function(){var X=new ucN;return _.tl(X,1,3)};var iB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(iB,_.eB);var Oq2=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Oq2,_.eB);var Iw2=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Iw2,_.eB);Iw2.prototype.getToken=function(){return _.aQ(this,1)};
Iw2.prototype.setToken=function(X){return _.nV(this,1,X)};
var CsN=function(X){return _.wN(X,3,_.W4,_.eM())},Kxq=function(X){return _.wN(X,6,_.W4,_.eM())};var LF=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(LF,_.eB);LF.prototype.getToken=function(){return _.Co(this,Iw2,2)};
LF.prototype.setToken=function(X){return _.Oi(this,2,X)};
LF.prototype.getName=function(){return _.aQ(this,6)};
var Wh4=_.C1(LF);var ciq=function(X,t,G){this.requestMessage=X;this.methodDescriptor=t;this.metadata=G};
ciq.prototype.getMetadata=function(){return this.metadata};var pav=function(X,t){t=t===void 0?{}:t;this.responseMessage=X;this.metadata=t;this.status=null};
pav.prototype.getMetadata=function(){return this.metadata};
pav.prototype.getStatus=function(){return this.status};var vU=function(X,t,G,y,w){this.name=X;this.methodType="unary";this.requestType=t;this.responseType=G;this.requestSerializeFn=y;this.responseDeserializeFn=w},rir=function(X,t,G){G=G===void 0?{}:G;
return new ciq(t,X,G)};
vU.prototype.getName=function(){return this.name};var aK=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(aK,_.eB);aK.prototype.getHeader=function(){return _.Co(this,iB,1)};
aK.prototype.setHeader=function(X){return _.Oi(this,1,X)};
aK.prototype.hasHeader=function(){return _.p9(this,iB,1)};var NPV=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(NPV,_.eB);var PWH=new vU("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",aK,NPV,function(X){return X.serialize()},_.C1(NPV));var lB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(lB,_.eB);lB.prototype.getHeader=function(){return _.Co(this,iB,1)};
lB.prototype.setHeader=function(X){return _.Oi(this,1,X)};
lB.prototype.hasHeader=function(){return _.p9(this,iB,1)};var ElQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(ElQ,_.eB);var UMR=new vU("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",lB,ElQ,function(X){return X.serialize()},_.C1(ElQ));var xs=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(xs,_.eB);xs.prototype.getHeader=function(){return _.Co(this,iB,1)};
xs.prototype.setHeader=function(X){return _.Oi(this,1,X)};
xs.prototype.hasHeader=function(){return _.p9(this,iB,1)};var mMQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(mMQ,_.eB);mMQ.prototype.getLink=function(){return _.Co(this,LF,1)};var RCq=new vU("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",xs,mMQ,function(X){return X.serialize()},_.C1(mMQ));var fF=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(fF,_.eB);fF.prototype.getHeader=function(){return _.Co(this,iB,1)};
fF.prototype.setHeader=function(X){return _.Oi(this,1,X)};
fF.prototype.hasHeader=function(){return _.p9(this,iB,1)};var iVV=new vU("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",fF,LF,function(X){return X.serialize()},Wh4);var LhT=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(LhT,_.eB);var vli=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(vli,_.eB);vli.prototype.getUrl=function(){return _.aQ(this,2)};
vli.prototype.setUrl=function(X){return _.nV(this,2,X)};var awa=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(awa,_.eB);var lw4=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(lw4,_.eB);var xMq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(xMq,_.eB);var UYH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(UYH,_.eB);var EtB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(EtB,_.eB);var fwB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(fwB,_.eB);var l0H=_.C1(fwB);var MwH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(MwH,_.eB);var XHR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(XHR,_.eB);_.H=XHR.prototype;_.H.getHeader=function(){return _.Co(this,iB,1)};
_.H.setHeader=function(X){return _.Oi(this,1,X)};
_.H.hasHeader=function(){return _.p9(this,iB,1)};
_.H.getCompletionUrl=function(){return _.aQ(this,6)};
_.H.getDeviceId=function(){return _.aQ(this,11)};var $eq=new vU("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",XHR,fwB,function(X){return X.serialize()},l0H);var t$r=new Set(["SAPISIDHASH","APISIDHASH"]);var G2H=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(G2H,_.eB);G2H.prototype.getMessage=function(){return _.aQ(this,2)};
var ywa=_.C1(G2H);var Mb=function(X,t){this.xhrNodeReadableStream_=X.nodeReadableStream;this.grpcResponseDeserializeFn_=t;this.JSC$19093_xhr_=X.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19093_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&wHN(this)},nER=function(X,t){var G=new z9H;
_.vj(X.JSC$19093_xhr_,"complete",function(){if(X.JSC$19093_xhr_.isSuccess()){var y=X.JSC$19093_xhr_.getResponseText();var w;if(w=t)w=X.JSC$19093_xhr_,w.JSC$9725_xhr_&&w.isComplete()?(w=w.JSC$9725_xhr_.getResponseHeader("Content-Type"),w=w===null?void 0:w):w=void 0,w=w==="text/plain";if(w){if(!atob)throw Error("Nj");y=atob(y)}try{var z=X.grpcResponseDeserializeFn_(y)}catch(V){Xr(X,euV(new _.LU(13,"Error when deserializing response data; error: "+V+(", response: "+y)),G));return}y=_.cfV(X.JSC$19093_xhr_.getStatus());
H9N(X,oEQ(X));y==0?JwR(X,z):Xr(X,euV(new _.LU(y,"Xhr succeeded but the status code is not 200"),G))}else{y=X.JSC$19093_xhr_.getResponseText();z=oEQ(X);if(y){var B=B1V(X,y);y=B.code;w=B.details;B=B.metadata}else y=2,w="Rpc failed due to xhr error. uri: "+String(X.JSC$19093_xhr_.JSC$9725_lastUri_)+", error code: "+X.JSC$19093_xhr_.JSC$9725_lastErrorCode_+", error: "+X.JSC$19093_xhr_.getLastError(),B=z;H9N(X,z);Xr(X,euV(new _.LU(y,w,B),G))}})},wHN=function(X){X.xhrNodeReadableStream_.on("data",function(t){if("1"in
t){var G=t["1"];
try{var y=X.grpcResponseDeserializeFn_(G)}catch(w){Xr(X,new _.LU(13,"Error when deserializing response data; error: "+w+(", response: "+G)))}y&&JwR(X,y)}if("2"in t)for(t=B1V(X,t["2"]),G=0;G<X.onStatusCallbacks_.length;G++)X.onStatusCallbacks_[G](t)});
X.xhrNodeReadableStream_.on("end",function(){H9N(X,oEQ(X));for(var t=0;t<X.onEndCallbacks_.length;t++)X.onEndCallbacks_[t]()});
X.xhrNodeReadableStream_.on("error",function(){if(X.JSC$19093_onErrorCallbacks_.length!=0){var t=X.JSC$19093_xhr_.JSC$9725_lastErrorCode_;t!==0||X.JSC$19093_xhr_.isSuccess()||(t=6);var G=-1;switch(t){case 0:var y=2;break;case 7:y=10;break;case 8:y=4;break;case 6:G=X.JSC$19093_xhr_.getStatus();y=_.cfV(G);break;default:y=14}H9N(X,oEQ(X));t=_.Ywz(t)+", error: "+X.JSC$19093_xhr_.getLastError();G!=-1&&(t+=", http status code: "+G);Xr(X,new _.LU(y,t))}})},oEQ=function(X){var t={},G=fWv(X.JSC$19093_xhr_);
Object.keys(G).forEach(function(y){t[y]=G[y]});
return t},B1V=function(X,t){var G=2,y={};
try{var w=ywa(t);G=_.jM(w,1);var z=w.getMessage();_.dT(w,xsH,3,_.eM()).length&&(y["grpc-web-status-details-bin"]=t)}catch(B){X.JSC$19093_xhr_&&X.JSC$19093_xhr_.getStatus()===404?(G=5,z="Not Found: "+String(X.JSC$19093_xhr_.JSC$9725_lastUri_)):(G=14,z="Unable to parse RpcStatus: "+B)}return{code:G,details:z,metadata:y}};
Mb.prototype.on=function(X,t){X=="data"?this.onDataCallbacks_.push(t):X=="metadata"?this.onMetadataCallbacks_.push(t):X=="status"?this.onStatusCallbacks_.push(t):X=="end"?this.onEndCallbacks_.push(t):X=="error"&&this.JSC$19093_onErrorCallbacks_.push(t);return this};
var $$=function(X,t){t=X.indexOf(t);t>-1&&X.splice(t,1)};
Mb.prototype.removeListener=function(X,t){X=="data"?$$(this.onDataCallbacks_,t):X=="metadata"?$$(this.onMetadataCallbacks_,t):X=="status"?$$(this.onStatusCallbacks_,t):X=="end"?$$(this.onEndCallbacks_,t):X=="error"&&$$(this.JSC$19093_onErrorCallbacks_,t);return this};
Mb.prototype.cancel=function(){this.JSC$19093_xhr_.abort()};
var JwR=function(X,t){for(var G=0;G<X.onDataCallbacks_.length;G++)X.onDataCallbacks_[G](t)},H9N=function(X,t){for(var G=0;G<X.onMetadataCallbacks_.length;G++)X.onMetadataCallbacks_[G](t)},Xr=function(X,t){for(var G=0;G<X.JSC$19093_onErrorCallbacks_.length;G++)X.JSC$19093_onErrorCallbacks_[G](t)};
Mb.prototype.cancel=Mb.prototype.cancel;Mb.prototype.removeListener=Mb.prototype.removeListener;Mb.prototype.on=Mb.prototype.on;var z9H=function(){var X=Error.call(this);this.message=X.message;"stack"in X&&(this.stack=X.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.S(z9H,Error);var tr=function(X){this.JSC$19102_worker_=X.worker||null;this.JSC$19102_streamBinaryChunks_=X.streamBinaryChunks||!1;this.JSC$19102_credentialsMode_=void 0};
_.sx(tr,_.rfl);tr.prototype.createInstance=function(){var X=new GR(this.JSC$19102_worker_,this.JSC$19102_streamBinaryChunks_);this.JSC$19102_credentialsMode_&&X.setCredentialsMode(this.JSC$19102_credentialsMode_);return X};
tr.prototype.setCredentialsMode=function(X){this.JSC$19102_credentialsMode_=X};
var GR=function(X,t){_.P6.call(this);this.JSC$19106_worker_=X;this.JSC$19106_streamBinaryChunks_=t;this.JSC$19106_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$19106_responseHeaders_=null;this.JSC$19106_method_="GET";this.JSC$19106_url_="";this.inProgress_=!1;this.JSC$19106_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.sx(GR,_.P6);GR.prototype.open=function(X,t){if(this.readyState!=0)throw this.abort(),Error("Oj");this.JSC$19106_method_=X;this.JSC$19106_url_=t;this.readyState=1;y9(this)};
GR.prototype.send=function(X){if(this.readyState!=1)throw this.abort(),Error("Pj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Qj");this.inProgress_=!0;var t={headers:this.requestHeaders_,method:this.JSC$19106_method_,credentials:this.JSC$19106_credentialsMode_,cache:void 0,signal:this.abortController_.signal};X&&(t.body=X);(this.JSC$19106_worker_||_.tA).fetch(new Request(this.JSC$19106_url_,t)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
GR.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,wd(this));this.readyState=0};
GR.prototype.handleResponse_=function(X){if(this.inProgress_&&(this.fetchResponse_=X,this.JSC$19106_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19106_responseHeaders_=X.headers,this.readyState=2,y9(this)),this.inProgress_&&(this.readyState=3,y9(this),this.inProgress_)))if(this.responseType==="arraybuffer")X.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.tA.ReadableStream!==
"undefined"&&"body"in X){this.currentReader_=X.body.getReader();if(this.JSC$19106_streamBinaryChunks_){if(this.responseType)throw Error("Rj");this.response=[]}else this.response=this.responseText="",this.JSC$19106_textDecoder_=new TextDecoder;V$B(this)}else X.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var V$B=function(X){X.currentReader_.read().then(X.handleDataFromStream_.bind(X)).catch(X.handleSendFailure_.bind(X))};
GR.prototype.handleDataFromStream_=function(X){if(this.inProgress_){if(this.JSC$19106_streamBinaryChunks_&&X.value)this.response.push(X.value);else if(!this.JSC$19106_streamBinaryChunks_){var t=X.value?X.value:new Uint8Array(0);if(t=this.JSC$19106_textDecoder_.decode(t,{stream:!X.done}))this.response=this.responseText+=t}X.done?wd(this):y9(this);this.readyState==3&&V$B(this)}};
GR.prototype.handleResponseText_=function(X){this.inProgress_&&(this.response=this.responseText=X,wd(this))};
GR.prototype.handleResponseArrayBuffer_=function(X){this.inProgress_&&(this.response=X,wd(this))};
GR.prototype.handleSendFailure_=function(){this.inProgress_&&wd(this)};
var wd=function(X){X.readyState=4;X.fetchResponse_=null;X.currentReader_=null;X.JSC$19106_textDecoder_=null;y9(X)};
GR.prototype.setRequestHeader=function(X,t){this.requestHeaders_.append(X,t)};
GR.prototype.getResponseHeader=function(X){return this.JSC$19106_responseHeaders_?this.JSC$19106_responseHeaders_.get(X.toLowerCase())||"":""};
GR.prototype.getAllResponseHeaders=function(){if(!this.JSC$19106_responseHeaders_)return"";for(var X=[],t=this.JSC$19106_responseHeaders_.entries(),G=t.next();!G.done;)G=G.value,X.push(G[0]+": "+G[1]),G=t.next();return X.join("\r\n")};
GR.prototype.setCredentialsMode=function(X){this.JSC$19106_credentialsMode_=X};
var y9=function(X){X.onreadystatechange&&X.onreadystatechange.call(X)};
Object.defineProperty(GR.prototype,"withCredentials",{get:function(){return this.JSC$19106_credentialsMode_==="include"},
set:function(X){this.setCredentialsMode(X?"include":"same-origin")}});var b9V=function(X){var t="";_.RH.forEach(X,function(G,y){t+=y;t+=":";t+=G;t+="\r\n"});
return t},k2R=function(X,t,G){if(_.RH.isEmpty(G))return X;
G=b9V(G);if(typeof X==="string")return _.o8(X,_.ww(t),G);_.yA(X,t,G);return X};var de2=function(){this.isInputValid_=!0;this.JSC$19111_streamPos_=0;this.leftoverInput_=""};
de2.prototype.isInputValid=function(){return this.isInputValid_};
de2.prototype.decode=function(X){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Sj`"+this.JSC$19111_streamPos_+"`stream already broken`"+X);this.leftoverInput_+=X;X=Math.floor(this.leftoverInput_.length/4);if(X==0)return null;try{var t=_.ia6(this.leftoverInput_.slice(0,X*4))}catch(G){throw t=this.leftoverInput_,X=G.message,this.isInputValid_=!1,Error("Sj`"+this.JSC$19111_streamPos_+"`"+X+"`"+t);}this.JSC$19111_streamPos_+=X*4;this.leftoverInput_=this.leftoverInput_.slice(X*4);return t};var Nn=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19114_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Nn.prototype.isInputValid=function(){return this.state_!=3};
var zR=function(X,t,G,y){X.state_=3;X.errorMessage_="The stream is broken @"+X.JSC$19114_streamPos_+"/"+G+". Error: "+y+". With input:\n"+t;throw Error(X.errorMessage_);};
Nn.prototype.acceptsBinaryInput=function(){return!0};
Nn.prototype.parse=function(X){function t(b){b&128&&zR(z,B,V,"invalid tag");(b&7)!=2&&zR(z,B,V,"invalid wire type");z.tag_=b>>>3;z.tag_!=1&&z.tag_!=2&&z.tag_!=15&&zR(z,B,V,"unexpected tag");z.state_=1;z.length_=0;z.countLengthBytes_=0}
function G(b){z.countLengthBytes_++;z.countLengthBytes_==5&&b&240&&zR(z,B,V,"message length too long");z.length_|=(b&127)<<(z.countLengthBytes_-1)*7;b&128||(z.state_=2,z.countMessageBytes_=0,typeof Uint8Array!=="undefined"?z.messageBuffer_=new Uint8Array(z.length_):z.messageBuffer_=Array(z.length_),z.length_==0&&w())}
function y(b){z.messageBuffer_[z.countMessageBytes_++]=b;z.countMessageBytes_==z.length_&&w()}
function w(){if(z.tag_<15){var b={};b[z.tag_]=z.messageBuffer_;z.result_.push(b)}z.state_=0}
for(var z=this,B=X instanceof Array?X:new Uint8Array(X),V=0;V<B.length;){switch(z.state_){case 3:zR(z,B,V,"stream already broken");break;case 0:t(B[V]);break;case 1:G(B[V]);break;case 2:y(B[V]);break;default:throw Error("Tj`"+z.state_);}z.JSC$19114_streamPos_++;V++}X=z.result_;z.result_=[];return X.length>0?X:null};var gtB=function(){this.errorMessage_=null;this.JSC$19117_streamPos_=0;this.base64Decoder_=new de2;this.pbParser_=new Nn};
gtB.prototype.isInputValid=function(){return this.errorMessage_===null};
var e9T=function(X,t,G){X.errorMessage_="The stream is broken @"+X.JSC$19117_streamPos_+". Error: "+G+". With input:\n"+t;throw Error(X.errorMessage_);};
gtB.prototype.acceptsBinaryInput=function(){return!1};
gtB.prototype.parse=function(X){this.errorMessage_!==null&&e9T(this,X,"stream already broken");var t=null;try{var G=this.base64Decoder_.decode(X);t=G===null?null:this.pbParser_.parse(G)}catch(y){e9T(this,X,y.message)}this.JSC$19117_streamPos_+=X.length;return t};var jaH=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19120_streamPos_=0;this.result_=[];this.statusParsed_=!1};
jaH.prototype.isInputValid=function(){return this.errorMessage_===null};
jaH.prototype.acceptsBinaryInput=function(){return!1};
jaH.prototype.parse=function(X){function t(b){z.state_=6;z.errorMessage_="The stream is broken @"+z.JSC$19120_streamPos_+"/"+B+". Error: "+b+". With input:\n";throw Error(z.errorMessage_);}
function G(){z.jsonStreamParser_=new _.Db({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function y(b){if(b)for(var e=0;e<b.length;e++){var g={};g[1]=b[e];z.result_.push(g)}}
function w(b){if(b){(z.statusParsed_||b.length>1)&&t("extra status: "+b);z.statusParsed_=!0;var e={};e[2]=b[0];z.result_.push(e)}}
for(var z=this,B=0;B<X.length;){var V;if(V=z.state_!==2){a:{for(;B<X.length;){if(!_.sC(X[B])){V=!0;break a}B++;z.JSC$19120_streamPos_++}V=!1}V=!V}if(V)return null;switch(z.state_){case 6:t("stream already broken");break;case 0:X[B]==="["?(z.state_=1,B++,z.JSC$19120_streamPos_++):t("unexpected input token");break;case 1:X[B]==="["?(z.state_=2,G()):X[B]===","||X.slice(B,B+5)=="null,"?z.state_=3:X[B]==="]"?(z.state_=5,B++,z.JSC$19120_streamPos_++):t("unexpected input token");break;case 2:V=z.jsonStreamParser_.parse(X.substring(B));
y(V);z.jsonStreamParser_.done()?(z.state_=3,V=z.jsonStreamParser_.JSC$11359_buffer_,z.JSC$19120_streamPos_+=X.length-B-V.length,X=V,B=0):(z.JSC$19120_streamPos_+=X.length-B,B=X.length);break;case 3:X[B]===","||X.slice(B,B+5)=="null,"?(z.state_=4,G(),z.jsonStreamParser_.parse("["),B+=X[B]===","?1:5,z.JSC$19120_streamPos_++):X[B]==="]"&&(z.state_=5,B++,z.JSC$19120_streamPos_++);break;case 4:V=z.jsonStreamParser_.parse(X.substring(B));w(V);z.jsonStreamParser_.done()?(z.state_=5,V=z.jsonStreamParser_.JSC$11359_buffer_,
z.JSC$19120_streamPos_+=X.length-B-V.length,X=V,B=0):(z.JSC$19120_streamPos_+=X.length-B,B=X.length);break;case 5:t("extra input after stream end")}}return z.result_.length>0?(X=z.result_,z.result_=[],X):null};var jQr=function(X){this.JSC$19123_xhr_=X;this.JSC$19123_parser_=null;this.status_=this.JSC$19123_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19123_textDecoder_=null;this.JSC$19123_eventHandler_=new _.AL(this);this.JSC$19123_eventHandler_.listen(this.JSC$19123_xhr_,"readystatechange",this.JSC$19125_readyStateChangeHandler_)},HJ=function(X,t){X.status_!=t&&(X.status_=t,X.statusHandler_&&X.statusHandler_())},oP=function(X){X.JSC$19123_eventHandler_.removeAll();
if(X.JSC$19123_xhr_){var t=X.JSC$19123_xhr_;X.JSC$19123_xhr_=null;t.abort();t.dispose()}};
jQr.prototype.getStatus=function(){return this.status_};
jQr.prototype.JSC$19125_readyStateChangeHandler_=function(X){X=X.target;try{if(X==this.JSC$19123_xhr_)a:{var t=_.li(this.JSC$19123_xhr_),G=this.JSC$19123_xhr_.JSC$9725_lastErrorCode_,y=this.JSC$19123_xhr_.getStatus(),w=this.JSC$19123_xhr_.getResponseText();X=[];if(this.JSC$19123_xhr_.getResponse()instanceof Array){var z=this.JSC$19123_xhr_.getResponse();z.length>0&&z[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,X=z)}if(!(t<3||t==3&&!w&&X.length==0))if(y=y==200||y==206,t==4&&(G==8?HJ(this,
7):G==7?HJ(this,8):y||HJ(this,3)),this.JSC$19123_parser_||(this.JSC$19123_parser_=FxH(this.JSC$19123_xhr_),this.JSC$19123_parser_==null&&HJ(this,5)),this.status_>2)oP(this);else{if(X.length>this.JSC$19123_pos_){var B=X.length;G=[];try{if(this.JSC$19123_parser_.acceptsBinaryInput())for(var V=0;V<B;V++){var b=this.JSC$19123_parser_.parse(Array.from(X[V]));b&&(G=G.concat(b))}else{b="";if(!this.JSC$19123_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Uj");this.JSC$19123_textDecoder_=new TextDecoder}for(V=
0;V<B;V++)b+=this.JSC$19123_textDecoder_.decode(X[V],{stream:t==4&&V==B-1});G=this.JSC$19123_parser_.parse(b)}X.splice(0,B);G&&this.dataHandler_(G)}catch(g){HJ(this,5);oP(this);break a}}else if(w.length>this.JSC$19123_pos_){V=w.slice(this.JSC$19123_pos_);this.JSC$19123_pos_=w.length;try{var e=this.JSC$19123_parser_.parse(V);e!=null&&this.dataHandler_&&this.dataHandler_(e)}catch(g){HJ(this,5);oP(this);break a}}t==4?(w.length!=0||this.hasStreamingResponseData_?HJ(this,2):HJ(this,4),oP(this)):HJ(this,
1)}}}catch(g){HJ(this,6),oP(this)}};var gER=function(X){X=this.xhrReader_=X;var t=(0,_.rT)(this.onData_,this);X.dataHandler_=t;X=this.xhrReader_;t=(0,_.rT)(this.onStatusChange_,this);X.statusHandler_=t;this.JSC$19127_callbackMap_={};this.callbackOnceMap_={}};
_.H=gER.prototype;_.H.on=function(X,t){var G=this.JSC$19127_callbackMap_[X];G||(G=[],this.JSC$19127_callbackMap_[X]=G);G.push(t);return this};
_.H.addListener=function(X,t){this.on(X,t);return this};
_.H.removeListener=function(X,t){var G=this.JSC$19127_callbackMap_[X];G&&_.vY(G,t);(X=this.callbackOnceMap_[X])&&_.vY(X,t);return this};
_.H.once=function(X,t){var G=this.callbackOnceMap_[X];G||(G=[],this.callbackOnceMap_[X]=G);G.push(t);return this};
_.H.onData_=function(X){var t=this.JSC$19127_callbackMap_.data;t&&FZH(X,t);(t=this.callbackOnceMap_.data)&&FZH(X,t);this.callbackOnceMap_.data=[]};
var FZH=function(X,t){for(var G={},y=0;y<X.length;G={message$jscomp$1001:void 0},y++)G.message$jscomp$1001=X[y],t.forEach(function(w){return function(z){try{z(w.message$jscomp$1001)}catch(B){}}}(G))};
gER.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:T14(this,"readable");break;case 5:case 6:case 4:case 7:case 3:T14(this,"error");break;case 8:T14(this,"close");break;case 2:T14(this,"end")}};
var T14=function(X,t){var G=X.JSC$19127_callbackMap_[t];G&&G.forEach(function(y){try{y()}catch(w){}});
(G=X.callbackOnceMap_[t])&&G.forEach(function(y){y()});
X.callbackOnceMap_[t]=[]};var Awq=function(){var X={format:"jspb"};X=X===void 0?{}:X;this.suppressCorsPreflight=X.suppressCorsPreflight||_.GA("suppressCorsPreflight",X)||!1;this.withCredentials=X.withCredentials||_.GA("withCredentials",X)||!1;this.streamInterceptors=X.streamInterceptors||[];this.unaryInterceptors=X.unaryInterceptors||[];this.workerScope=X.workerScope;this.chunkedServerStreaming=X.useFetchDownloadStreams||!1},Der=function(X,t,G,y,w,z){z=z===void 0?{}:z;
var B=t.substring(0,t.length-w.name.length),V,b=(V=z)==null?void 0:V.signal;return Yxi(function(e){return new Promise(function(g,F){if(b==null?0:b.aborted){var T=new _.LU(1,"Aborted");T.cause=b.reason;F(T)}else{var D={},h=sQv(X,e,B);h.on("error",function(u){return void F(u)});
h.on("metadata",function(u){D=u});
h.on("data",function(u){var W=D;W=W===void 0?{}:W;g(new pav(u,W))});
b&&b.addEventListener("abort",function(){h.cancel();var u=new _.LU(1,"Aborted");u.cause=b.reason;F(u)})}})},X.unaryInterceptors).call(X,rir(w,G,y)).then(function(e){return e.responseMessage})},Jr=function(X,t,G,y,w,z){z=z===void 0?{}:z;
return Der(X,t,G,y,w,z)};
Awq.prototype.serverStreaming=function(X,t,G,y){var w=this,z=X.substring(0,X.length-y.name.length);return SxR(function(B){var V=B.methodDescriptor,b=B.getMetadata(),e=h9V(w,!1);b=Z9a(w,b,e,z+V.getName());var g=qxH(e,V.responseDeserializeFn,!0);B=V.requestSerializeFn(B.requestMessage);e.send(b,"POST",B);return g},this.streamInterceptors).call(this,rir(y,t,G))};
var sQv=function(X,t,G){var y=t.methodDescriptor,w=t.getMetadata(),z=h9V(X,!0);X=Z9a(X,w,z,G+y.getName());G=qxH(z,y.responseDeserializeFn,!1);nER(G,w["X-Goog-Encode-Response-If-Executable"]==="base64");t=y.requestSerializeFn(t.requestMessage);z.send(X,"POST",t);return G},h9V=function(X,t){t=X.chunkedServerStreaming&&!t;
return X.workerScope||t?new _.a8(new tr({worker:X.workerScope,streamBinaryChunks:t})):new _.a8},Z9a=function(X,t,G,y){t["Content-Type"]="application/json+protobuf";
t["X-User-Agent"]="grpc-web-javascript/0.1";var w=t.Authorization;if(w&&t$r.has(w.split(" ")[0])||X.withCredentials)G.JSC$9725_withCredentials_=!0;if(X.suppressCorsPreflight)y=k2R(y,"$httpHeaders",t);else for(X=_.J(Object.keys(t)),w=X.next();!w.done;w=X.next())w=w.value,G.headers.set(w,t[w]);return y},qxH=function(X,t,G){if(G){G=new jQr(X);
var y=new gER(G)}return new Mb({xhr:X,nodeReadableStream:y},t)},SxR=function(X,t){return t.reduce(function(G,y){return function(w){return y.intercept(w,G)}},X)},Yxi=function(X,t){return t.reduce(function(G,y){return function(w){return y.intercept(w,G)}},X)};var Cz4=function(X){this.client_=new Awq;this.hostname_=X==void 0?X:X.replace(/\/+$/,"")};
_.H=Cz4.prototype;_.H.JSC$19145_depositGoogleCredential=function(X,t,G){return Jr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",X,t||{},UMR,G)};
_.H.deleteLink=function(X,t,G){return Jr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",X,t||{},PWH,G)};
_.H.JSC$19145_finishOAuth=function(X,t,G){return Jr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",X,t||{},RCq,G)};
_.H.getLink=function(X,t,G){return Jr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",X,t||{},iVV,G)};
_.H.startLinkingSession=function(X,t,G){return Jr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",X,t||{},$eq,G)};var KZR=[0,EyV,1,Rpq,[0,_.bM,[0,Usa,-1]],[0,ms4],[0,iyR,-1]];var O9B=function(){this.storage=new Map},QQQ=function(X,t,G,y,w){if(!X.storage.has(t))return null;
X=_.J(X.storage.get(t));for(t=X.next();!t.done;t=X.next())if(t=t.value,!w||t.linkName===w)if(G&&t.scopes&&ubQ(t.scopes,G)||y&&t.capabilities&&ubQ(t.capabilities,y))return t;return null},I_R=function(X,t,G){if(!G)X.storage.delete(t);
else if(X.storage.has(t)){var y=X.storage.get(t).filter(function(w){return w.linkName!==G});
y.length>0?X.storage.set(t,y):X.storage.delete(t)}},ubQ=function(X,t){t=_.J(t);
for(var G=t.next();!G.done;G=t.next())if(!X.has(G.value))return!1;return!0};var WZv=function(){var X=_.Md("LINK_GAL_DOMAIN");this.alsDomain1p=_.Md("LINK_GAL_DOMAIN");this.alsDomain3p=X;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},cw4=function(X,t){X.apiKey=t;
return X};
WZv.prototype.build=function(){var X={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Vj");X.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Wj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Xj");X.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(X.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)X.apiKey=
this.apiKey,X.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Yj");X.oauthToken=this.oauthToken;X.alsDomain=this.alsDomain3p}X.clientXd3=this.clientXd3;X.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(X.authUser=this.authUser);this.bucket!==void 0&&(X.bucket=this.bucket);this.completionUrl!==void 0&&(X.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(X.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(X.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(X.locale=this.locale);X.loggerType=this.loggerType;X.clientEnvironment=this.clientEnvironment;X.colorScheme=this.colorScheme;X.showCloseOption=this.showCloseOption;return X};var PR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(PR,_.eB);var pHi=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(pHi,_.eB);var rwN=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(rwN,_.eB);var UO=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(UO,_.eB);var N1r=function(X){return _.lz(X,1)};var Pza=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Pza,_.eB);var huR=_.C1(Pza),EO=[1,2,3,4,5];var YlR=function(X){try{return huR(X)}catch(t){return null}},EE4=function(){},saQ=function(X,t){switch(_.Ex(t,EO)){case 4:return(t=_.Xy(t,rwN,4,EO))&&X.logStateTransition(_.lz(t,1)),!0;
case 5:return(t=_.Xy(t,pHi,5,EO))&&X.logInternalEvent(_.lz(t,1)),!0}return!1},Zqa=function(X){switch(X){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.zr(X)}};var TkR=function(X,t){var G=this;this.validator=X;this.messageListener=t;this.dismissCallback=function(){UeB(G,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19174_receiveMessage=function(y){y.type==="message"&&(y=y.event_,y!==null&&(new URL(G.iframe.src)).origin===y.origin&&G.validator(y.data,y.origin)&&!G.messageListener(y.data)&&(G.JSC$19174_resolveCb!==void 0&&G.JSC$19174_resolveCb(y.data),meq(G)))}},Slv=function(X,t,G){X.uiHandler!==void 0&&UeB(X,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(y,w){X.JSC$19174_resolveCb=y;X.JSC$19174_rejectCb=w;X.iframe=document.createElement("iframe");_.wq(X.iframe,t);X.uiHandler=G.displayContent(X.iframe,X.dismissCallback);_.vj(window,"message",X.JSC$19174_receiveMessage,!1,X)})},UeB=function(X,t){X.JSC$19174_rejectCb!==void 0&&X.JSC$19174_rejectCb(t);
meq(X)},meq=function(X){X.uiHandler!==void 0&&X.uiHandler.hideContent();
_.No(window,"message",X.JSC$19174_receiveMessage,!1,X);X.JSC$19174_resolveCb=void 0;X.JSC$19174_rejectCb=void 0;X.uiHandler=void 0;X.iframe=void 0};var R9T=function(X){if(X===2){var t;X=((t=window)==null?0:t.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return X},DYi=function(X){X=R9T(X);
switch(X){case 0:return"light";case 1:return"dark";default:_.zr(X)}};var AER=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),i92=function(X,t){this.JSC$19186_linkingSession=X;this.noticeConfig=t;this.displayInfoMap=new Map;var G=new Map;if(_.p9(this.JSC$19186_linkingSession,awa,7))for(X=_.Co(this.JSC$19186_linkingSession,awa,7),X=_.dT(X,vli,1,_.eM()),X=_.J(X),t=X.next();!t.done;t=X.next())t=t.value,G.set(_.lz(t,1),_.Xx_(_.Co(t,_.xG0,3)));if(G.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){t=this.noticeConfig.enabledDataUsageNoticeUis;X=t.has(0)?G.get(1):void 0;t=t.has(1)?G.get(2):void 0;G=X!==void 0&&t!==void 0?G.get(3):void 0;var y=this.noticeConfig.nestedOrigins;var w=new Pza;var z=new PR;w=_.QW(w,2,EO,z);z=new Pza;var B=new PR;z=_.QW(z,3,EO,B);B=[];X!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:X,lastEvent:w,nestedOrigins:y}]),B.push({trustedUrl:X,lastEvent:w,nestedOrigins:y}));t!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:t,lastEvent:z,nestedOrigins:y}]),B.push({trustedUrl:t,lastEvent:z,nestedOrigins:y}));G!==void 0?this.displayInfoMap.set(3,[{trustedUrl:G,lastEvent:z,nestedOrigins:y}]):this.displayInfoMap.set(3,B)}};var LZr=function(X){var t=new O9B;this.galService=X;this.galCache=t};
LZr.prototype.getLink=function(X){var t=X.serviceId;var G=X.scopes;var y=X.capabilities;var w=X.linkName;var z=this,B;return _.n(function(V){if(y!==void 0&&G!==void 0)throw Error("Zj");B=QQQ(z.galCache,t,G,y,w);return B!==null?V.return(B):V.return(z.galService.getLink({serviceId:t,sessionId:Math.floor(Math.random()*2147483648),scopes:G,capabilities:y,linkName:w}).then(function(b){b=uiB(b);var e=z.galCache;e.storage.has(t)?e.storage.get(t).push(b):e.storage.set(t,[b]);return b}))})};
LZr.prototype.deleteLink=function(X,t,G){var y=this;return _.n(function(w){I_R(y.galCache,X,G);return w.return(y.galService.deleteLink({serviceId:X,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:t,linkName:G}).then(function(){return!0}))})};var a_B=function(X,t){var G=this;this.validator=X;this.msgHandler=t;this.closedPopupTimeout=this.JSC$19208_rejectCb=this.JSC$19208_resolveCb=this.popup=null;this.JSC$19208_receiveMessage=function(y){if(y!==null&&(y=y.event_,y.source===G.popup)){var w=y.data;if(G.validator(w,y.origin)){var z;(z=G.msgHandler)!=null&&z.call(G,w)||(G.JSC$19208_resolveCb!==null&&G.JSC$19208_resolveCb(w),vEH(G))}}}};
a_B.prototype.open=function(X,t){var G=this;this.popup!==null&&l_4(this);return new Promise(function(y,w){G.JSC$19208_resolveCb=y;G.JSC$19208_rejectCb=w;G.popup=_.zc(window,X,"",t);_.vj(window,"message",G.JSC$19208_receiveMessage,!1,G);xei(G)})};
var l_4=function(X,t){X.JSC$19208_rejectCb!==null&&X.JSC$19208_rejectCb(t);vEH(X)},vEH=function(X){X.closedPopupTimeout&&(X.closedPopupTimeout.cancel(),X.closedPopupTimeout=null);
X.popup&&X.popup.close();_.No(window,"message",X.JSC$19208_receiveMessage,!1,X);X.popup=null;X.JSC$19208_resolveCb=null;X.JSC$19208_rejectCb=null},xei=function(X){X.closedPopupTimeout=_.jHq(100).then(function(){X.popup?X.popup.closed?f_2(X):xei(X):l_4(X,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},f_2=function(X){X.closedPopupTimeout=_.jHq(100).then(function(){l_4(X,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var M$4=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),XI4=function(X,t,G,y,w,z,B,V,b,e){var g=this;this.serviceId=X;this.sessionId=t;this.galService=G;this.oauthDetails=y;this.galLogger=w;this.interactionMode=z;this.redirectServiceUrl=B;this.consentLanguageKeys=V;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=e;this.started=!1;this.JSC$19214_dataValidator=function(F,
T){var D=M$4.has(T);D||g.redirectServiceUrl===void 0||(D=g.redirectServiceUrl===T);return D?F.sentinel==="gdi":!1}};
XI4.prototype.complete=function(){var X=this,t;return _.n(function(G){if(X.interactionMode!==1)return G.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));t=RW.getRedirectStateFromUri();return t===null?G.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):G.return($FV(X,t))})};
XI4.prototype.start=function(){var X=this,t;return _.n(function(G){if(X.started)return G.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.aQ(X.oauthDetails,1))return G.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(X.interactionMode===1)return RW.setLocation(_.aQ(X.oauthDetails,1)),G.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));X.started=!0;X.galLogger.logStateTransition(5);
t=RW.getPostMessagePopup(X.JSC$19214_dataValidator);return G.return(t.open(_.aQ(X.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(y){X.started=!1;var w=X.galLogger;if((y==null?void 0:y.error)!==void 0)throw w.logInternalEvent(59),Error("$j");if((y==null?void 0:y.redirect_state)===void 0)throw w.logInternalEvent(131),Error("ak");return $FV(X,y.redirect_state)}).catch(function(y){X.started=
!1;
return y.errorCode!==void 0?{statusCode:y.errorCode,statusMessage:y.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var $FV=function(X,t){return _.n(function(G){return G.return(tUH(X.galService,{serviceId:X.serviceId,sessionId:X.sessionId,dynamicUrlParameters:X.dynamicUrlParameters,redirectState:t,consentLanguageKeys:X.consentLanguageKeys,partnerConfigMinReadTimestamp:X.partnerConfigMinReadTimestamp}).then(function(y){var w={statusCode:1,link:uiB(y.getLink())};eMi(_.Ne(y,3))!==void 0&&(w.callerState=eMi(_.Ne(y,3)));X.galLogger.logInternalEvent(134);return w}))})},RW={getPostMessagePopup:function(X){return new a_B(X)},
getRedirectStateFromUri:function(){var X=_.tW(RW.getLocation()).fragment_;return(new _.S2(X)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(X){_.MBh(window.location,_.l_(X))},
createOAuthFlow:function(X,t){return new XI4(X.serviceId,X.sessionId,X.galService,t,X.galLogger,X.interactionMode,X.redirectServiceUrl,X.consentLanguageKeys,X.dynamicUrlParameters,X.partnerConfigMinReadTimestamp)}};var G1a=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(G1a,_.eB);var ylQ=_.C1(G1a);var wIH=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),zsH=function(X,t,G,y,w,z,B,V,b){var e=this;this.serviceId=X;this.sessionId=t;this.galService=G;this.gsiWebFlowDetails=y;this.colorScheme=w;this.showCloseOption=z;this.galLogger=B;this.interactionMode=V;this.redirectServiceUrl=b;this.started=!1;this.JSC$19226_dataValidator=function(g,F){var T=wIH.has(F);T||e.redirectServiceUrl===
void 0||(T=e.redirectServiceUrl===F);return T?g.sentinel==="gal":!1};
this.logEventProcessor=function(g){return g.result?(g=YlR(g.result))?saQ(e.galLogger,g):!1:!1}};
zsH.prototype.complete=function(){var X=this,t,G;return _.n(function(y){if(X.interactionMode!==1)return y.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));t=ib.getRedirectStateFromUri();if(t===void 0)return X.galLogger.JSC$19166_logErrorEvent(131),y.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return G=HN4(X,t),y.return(oo2(X,G))}catch(w){return y.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
zsH.prototype.start=function(){var X=this,t;return _.n(function(G){if(X.started)return G.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.aQ(X.gsiWebFlowDetails,1))return G.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(X.interactionMode===1)return ib.setLocation(JlN(X,_.aQ(X.gsiWebFlowDetails,1))),G.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
X.started=!0;t=ib.getPostMessagePopup(X.JSC$19226_dataValidator,X.logEventProcessor);return G.return(t.open(JlN(X,_.aQ(X.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(y){X.started=!1;if((y==null?void 0:y.result)===void 0)throw X.galLogger.JSC$19166_logErrorEvent(131),Error("ak");y=HN4(X,y.result);return oo2(X,y)}).catch(function(y){X.started=!1;
return y.errorCode!==void 0?{statusCode:y.errorCode,statusMessage:y.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var JlN=function(X,t){X=["result_channel",X.interactionMode===1?"2":"1","color_scheme",DYi(X.colorScheme),"show_close_option",X.showCloseOption];return l7i(t,X)},oo2=function(X,t){if(t!==null&&_.p9(t,UO,2)){var G,y=t==null?void 0:(G=_.Co(t,UO,2))==null?void 0:_.lz(G,2);
y&&X.galLogger.JSC$19166_logErrorEvent(Zqa(y));return N1r(_.Co(t,UO,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 X.galService.getLink({serviceId:X.serviceId,sessionId:X.sessionId,consistencyKey:_.aQ(t,1)}).then(function(w){w=uiB(w);X.galLogger.logInternalEvent(134);return{statusCode:1,link:w}})},HN4=function(X,t){t=ylQ(t);
if(!_.p9(t,UO,2)&&_.aQ(t,1)==="")throw X.galLogger.JSC$19166_logErrorEvent(5),Error("bk");return t},ib={getPostMessagePopup:function(X,t){return new a_B(X,t)},
getRedirectStateFromUri:function(){return _.Gy(_.tW(ib.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(X){_.MBh(window.location,_.l_(X))},
createStreamlinedFlow:function(X,t){return new zsH(X.serviceId,X.sessionId,X.galService,t,X.colorScheme,X.showCloseOption,X.galLogger,X.interactionMode,X.redirectServiceUrl)}};var vtN=function(){var X=_.GGl("GAL");this.storage=X?new _.Px(X):null};
vtN.prototype.getSession=function(X){if(this.storage!==null)try{var t=this.storage.get("SAVED_SESSION");if(t===void 0)return null;if(t.serviceId===X)return t}catch(G){}return null};var BJ=function(){};
_.S(BJ,EE4);BJ.prototype.logStateTransition=function(){};
BJ.prototype.logInternalEvent=function(){};
BJ.prototype.JSC$19166_logErrorEvent=function(){};var BaR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(BaR,_.eB);BaR.prototype.getCompletionUrl=function(){return _.aQ(this,15)};var nM=function(X,t,G,y,w,z){this.serviceId=X;this.environment=t;this.sessionId=G;this.colorSchemeSelected=y;this.colorThemeDisplayed=w;this.JSC$19239_transport=z;this.currentState=1};
_.S(nM,EE4);nM.prototype.logStateTransition=function(X){var t=noi(this);t=_.AG(t,3,this.currentState);t=_.AG(t,1,X);this.currentState=X;X=xI4(1);this.dispatch(t,X)};
nM.prototype.logInternalEvent=function(X){X=xI4(X);this.dispatch(noi(this),X)};
nM.prototype.JSC$19166_logErrorEvent=function(X){var t=noi(this);t=_.AG(t,1,10);X=xI4(X);this.dispatch(t,X)};
var noi=function(X){var t=new BaR;t=_.AG(t,1,X.currentState);t=_.rp(t,7,X.serviceId);var G,y;var w=((G=window)==null?0:(y=G.location)==null?0:y.href)?_.tW(window.location.href).JSC$9962_domain_:"NO_PACKAGE_NAME";G=_.rp(t,8,w);G=_.AG(G,6,X.environment);G=_.rp(G,5,"100");G=_.AG(G,11,X.colorSchemeSelected);return _.AG(G,12,X.colorThemeDisplayed)};
nM.prototype.dispatch=function(X,t){t===void 0&&(t=new _.qo);var G=t;X=X.serialize();G=_.rp(G,8,X);_.rj(G,12,this.sessionId);this.JSC$19239_transport.dispatch(t)};var VUa=function(X,t){this.loggerType=X;this.sessionIndex=t!=null?t:0},bNq;
VUa.prototype.create=function(X,t,G,y,w){switch(this.loggerType){case 0:return new BJ;case 1:return bNq||(bNq=(new _.SM(555,this.sessionIndex.toString())).build()),new nM(X,t,G,y,w,bNq);default:_.zr(this.loggerType,"unknown logger type")}};var Ln=[6,2,3,1],XKV=new Map([[4,1],[1,6],[2,2],[3,3]]),cEi={statusCode:7,statusMessage:"Failed to create flow object"},iqT=function(X,t,G,y,w,z,B,V,b,e){this.serviceId=X;this.sessionId=t;this.config=G;this.galService=y;this.JSC$19246_linkingSession=w;this.googleScopes=z;this.callerState=B;this.consentLanguageKeys=V;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=e;this.currentFlow=0;y=this.JSC$19246_linkingSession;w=new Set;_.p9(y,EtB,1)&&w.add(1);_.p9(y,xMq,2)&&_.p9(y,UYH,6)&&w.add(2);
_.p9(y,lw4,3)&&_.p9(y,UYH,6)&&w.add(3);_.p9(y,LhT,4)&&w.add(6);this.supportedFlows=w;y=G.loggerType;w=G.clientEnvironment;a:{z=G.colorScheme;switch(z){case 0:z=1;break a;case 1:z=2;break a;case 2:z=3;break a;default:_.zr(z)}z=void 0}a:{B=G.colorScheme;B=R9T(B);switch(B){case 0:B=1;break a;case 1:B=2;break a;default:_.zr(B)}B=void 0}this.galLogger=(new VUa(y,G.authUser)).create(X,w,t,z,B)},dFB=function(X){return new Promise(function(t){var G,y,w,z,B,V,b,e,g,F;
return _.n(function(T){switch(T.nextAddress){case 1:G=mYR(X.currentFlow,X.supportedFlows),y=!1,w=new i92(X.JSC$19246_linkingSession,X.config.dataUsageNoticeConfig);case 2:if(G===void 0){T.jumpTo(4);break}_.CL(T,5);var D=w,h=G,u=void 0;y?h===1&&(u=D.displayInfoMap.get(2)):h===2||h===3?u=D.displayInfoMap.get(1):h===1&&(u=D.displayInfoMap.get(3));z=u?u:[];B=X.consentLanguageKeys;V=_.J(z);b=V.next();case 7:if(b.done)return X.currentFlow=G,T.yield(rEa(k1Q(X,B)),11);e=b.value;return T.yield(qlH(e,X.config.dataUsageNoticeConfig.uiAdapter,
X.config.colorScheme,X.galLogger),10);case 10:g=T.yieldResult;if(g.statusCode!==1)return a0R(X.serviceId),X.currentFlow=0,t(mj({statusCode:g.statusCode,statusMessage:g.statusMessage},X.callerState)),T.return();g.consentLanguageKeys!==void 0&&(B=g.consentLanguageKeys);b=V.next();T.jumpTo(7);break;case 11:F=T.yieldResult;if(F.statusCode!==10)return F.statusCode!==6&&(a0R(X.serviceId),X.currentFlow=0),F.statusCode!==1&&X.callerState!==void 0&&(F.callerState=X.callerState),t(F),T.return();_.zx(T,6);break;
case 5:_.IY(T);case 6:G=mYR(X.currentFlow,X.supportedFlows);y=!0;T.jumpTo(2);break;case 4:a0R(X.serviceId),X.currentFlow=0,t(mj({statusCode:12,statusMessage:"Linking failed"},X.callerState)),_.W$(T)}})})},f0v=function(X,t,G){X.currentFlow=t;
return Nka(k1Q(X,G)).then(function(y){return y.statusCode===10&&X.config.interactionMode===1&&mYR(X.currentFlow,X.supportedFlows)!==void 0?dFB(X):y})},k1Q=function(X,t){return{flowParams:{serviceId:X.serviceId,
sessionId:X.sessionId,galService:X.galService,galLogger:X.galLogger,interactionMode:X.config.interactionMode,redirectServiceUrl:X.config.redirectServiceUrl,colorScheme:X.config.colorScheme,consentLanguageKeys:t,dynamicUrlParameters:X.dynamicUrlParameters,showCloseOption:X.config.showCloseOption,partnerConfigMinReadTimestamp:X.partnerConfigMinReadTimestamp},currentFlow:X.currentFlow,config:X.config,session:X.JSC$19246_linkingSession,googleScopes:X.googleScopes,callerState:X.callerState}};var t7a=function(X,t){this.config=X;this.galService=t.getService();this.JSC$19259_galRepository=t.JSC$19277_galRepository};
t7a.prototype.getLink=function(X,t){return esB(this,X,t)};
var esB=function(X,t,G){return X.JSC$19259_galRepository.getLink({serviceId:t,scopes:void 0,capabilities:void 0,linkName:G}).then(function(y){return{statusCode:1,link:y}}).catch(function(y){return{statusCode:$Q2(y.code),
statusMessage:y.message}})};
t7a.prototype.deleteLink=function(X,t){return this.JSC$19259_galRepository.deleteLink(X,this.config.accountLinkingEntryPoint,t).then(function(){return{statusCode:1}}).catch(function(G){return{statusCode:$Q2(G.code),
statusMessage:G.message}})};
t7a.prototype.startLinkingSession=function(X){var t=X.serviceId;var G=X.sessionId;return LxR({serviceId:t,sessionId:G!==void 0?G:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:X.loginHint,callerState:X.callerState,consentLanguageKeys:X.consentLanguageKeys,linkName:X.linkName,dynamicUrlParameters:X.dynamicUrlParameters,partnerConfigMinReadTimestamp:X.partnerConfigMinReadTimestamp})};var V9=function(X,t,G,y,w,z,B){this.apiKey=t;this.authUser=G;this.oauthToken=y;this.bucket=w;this.locale=z;this.galSdkEventHandler=B;if(y===void 0){if(t===void 0)throw Error("ck");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new Cz4(X)};
V9.prototype.deleteLink=function(X){var t=X.serviceId;var G=X.sessionId;var y=X.accountLinkingEntryPoint;var w=X.linkName;var z=this,B;return _.n(function(V){var b=(new aK).setHeader(z.getHeader(G));var e=jmH({serviceId:t,linkName:w});b=_.Oi(b,2,e);B=_.tl(b,3,y);return V.return(z.makeRequest(z.galServiceClient.deleteLink,B,[1,3],[2,4]))})};
var tUH=function(X,t){var G=t.serviceId;var y=t.sessionId;var w=t.dynamicUrlParameters;var z=t.redirectState;var B=t.consentLanguageKeys;var V=t.partnerConfigMinReadTimestamp;var b;return _.n(function(e){var g=(new xs).setHeader(X.getHeader(y,w));g=_.nV(g,2,G);b=_.nV(g,4,z);B!==void 0&&_.nV(b,5,B);V!==void 0&&_.Oi(b,6,V);return e.return(X.makeRequest(X.galServiceClient.JSC$19145_finishOAuth,b,[1,3],[2,4]))})};
V9.prototype.getLink=function(X){var t=X.serviceId;var G=X.sessionId;var y=X.scopes;var w=X.capabilities;var z=X.consistencyKey;var B=X.linkName;var V=this,b;return _.n(function(e){var g=(new fF).setHeader(V.getHeader(G)),F=jmH({serviceId:t,scopes:y,capabilities:w,linkName:B});b=_.Oi(g,2,F);z!==void 0&&(g=QAq(),g=_.nV(g,2,z),_.Oi(b,3,g));return e.return(V.makeRequest(V.galServiceClient.getLink,b,[1,3],[2,4]))})};
var Psv=function(X,t){var G=t.serviceId;var y=t.sessionId;var w=t.googleScopes;var z=t.consistencyKey;var B;return _.n(function(V){var b=(new lB).setHeader(X.getHeader(y));b=_.nV(b,2,G);var e=Array.from(w.values());b=_.JM(b,3,e,_.QB);e=QAq();e=_.nV(e,2,z);B=_.Oi(b,4,e);return V.return(X.makeRequest(X.galServiceClient.JSC$19145_depositGoogleCredential,B,[1,3],[2,4]))})};
V9.prototype.startLinkingSession=function(X){var t=X.serviceId;var G=X.sessionId;var y=X.scopes;var w=X.capabilities;var z=X.loginHint;var B=X.supportedFlows;var V=X.completionUrl;var b=X.usePingPong;var e=X.twoWayLinking;var g=X.accountLinkingEntryPoint;var F=X.callerState;var T=X.consentLanguageKeys;var D=X.googleScopes;var h=X.dataUsageNoticeConfig;var u=X.linkName;var W=X.dynamicUrlParameters;var c=X.partnerConfigMinReadTimestamp;var P=this,l,R;return _.n(function(L){if(w!==void 0&&y!==void 0)throw Error("Zj");
var x=(new XHR).setHeader(P.getHeader(G,W));l=_.nV(x,2,t);u!==void 0&&_.nV(l,14,u);if(w!==void 0){x=l;var w6=Array.from(w.values());_.JM(x,5,w6,_.QB)}else y!==void 0&&(x=l,w6=Array.from(y.values()),_.JM(x,3,w6,_.QB));V!==void 0&&_.nV(l,6,V);b!==void 0&&_.iw(l,15,b);B!==void 0&&(x=l,w6=Array.from(B.values()),_.JM(x,4,w6,_.di));if(e!==void 0){if(e&&(!D||D.size===0))throw Error("dk");_.iw(l,8,e)}g!==void 0&&_.tl(l,9,g);z!==void 0&&_.nV(l,13,z);F!==void 0&&(x=l,w6=(new TextEncoder).encode(F),_.Bt(x,12,
_.PS(w6,!1),_.Nz()));T!==void 0&&_.nV(l,16,T);c!==void 0&&_.Oi(l,18,c);if(h!==void 0&&h.size>0||D!==void 0&&D.size>0)R=new MwH,D!==void 0&&D.size>0&&(x=R,w6=Array.from(D.values()),_.JM(x,1,w6,_.QB)),h!==void 0&&(h.has(0)&&_.YRh(R,2,_.di,1,_.eq),h.has(1)&&_.YRh(R,2,_.di,2,_.eq)),_.Oi(l,17,R);return L.return(P.makeRequest(P.galServiceClient.startLinkingSession,l,[1],[2]))})};
V9.prototype.getMetadata=function(){var X=this,t,G;return _.n(function(y){t={};X.useFpa?(t["X-Goog-Api-Key"]=X.apiKey,t["X-Goog-AuthUser"]=X.authUser!==void 0?X.authUser.toString():"0",(G=_.Ces([]))&&(t.Authorization=G)):t.Authorization="Bearer "+X.oauthToken;X.locale&&(t["accept-language"]=X.locale);return y.return(t)})};
V9.prototype.makeRequest=function(X,t,G,y){var w=this,z;return _.n(function(B){if(B.nextAddress==1)return B.yield(w.getMetadata(),2);z=B.yieldResult;goH(w,G);return B.return(X.bind(w.galServiceClient)(t,z).finally(function(){goH(w,y)}))})};
var goH=function(X,t){X.galSdkEventHandler!==void 0&&t.forEach(function(G){X.galSdkEventHandler.onEvent(G)})};
V9.prototype.getHeader=function(X,t){var G=new iB;X=_.Bt(G,2,_.jq(X),0);X=_.tl(X,5,3);t=_.JM(X,8,t,_.QB);this.bucket!==void 0&&_.nV(t,1,this.bucket);return t};
var jmH=function(X){var t=X.serviceId;var G=X.scopes;var y=X.capabilities;X=X.linkName;if(y!==void 0&&G!==void 0)throw Error("Zj");var w=new OV2;t=_.nV(w,1,t);y!==void 0?(G=Array.from(y.values()),_.JM(t,5,G,_.QB)):G!==void 0&&(G=Array.from(G.values()),_.JM(t,3,G,_.QB));X!==void 0&&_.nV(t,6,X);return t};var GG2=function(X){this.galService=new V9(X.alsDomain,X.apiKey,X.authUser,X.oauthToken,X.bucket,X.locale,X.galSdkEventHandler);this.JSC$19277_galRepository=new LZr(this.galService)};
GG2.prototype.getService=function(){return this.galService};var FP4=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(FP4,_.eB);var Ta2=function(X){var t=new FP4;return _.AG(t,1,X)};
FP4.prototype.setErrorMessage=function(X){return _.rp(this,2,X)};var Al4=[0,_.da,_.V7,_.da];var b6=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(b6,_.eB);var Y1q=[0,[1,2,3],_.ko,[0,pvR,P7R,-1],_.ko,[0,N2a,-1],_.XEV];var sm2=[0,_.BI,1,_.da,_.V7,-1,1,_.Gfs,_.Jl,_.da,-1,Y1q];var DF2=[0,_.da,[0,_.Gfs,_.Jl,[0,_.V7]],_.nN,[0,_.da,-1]];var KF=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(KF,_.eB);var S1v=[0,_.V7,_.da,-2,_.BI,_.da,_.BI,_.da,-2,1,_.nN];var hsR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(hsR,_.eB);var ZNq=[0,_.BI];var q1q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(q1q,_.eB);var CM2=[0,_.da,DF2,ZNq,S1v,sm2];var OXV=_.ZY(q1q,CM2);var KPR=[0,KZR];var plR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(plR,_.eB);var ONq=[0,[1,3],LMR,_.da,LMR];var qb=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(qb,_.eB);var uyR=[0,_.da];var Qmv=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(Qmv,_.eB);var CF=function(X){return _.Xy(X,FP4,2,Zr)},IFR=function(X){var t=new Qmv;
return _.QW(t,2,Zr,X)},Zr=[1,
2];var WPN=[0,Zr,_.ko,uyR,_.ko,Al4,_.bM,ONq,1,_.da,KPR];var clB=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(clB,_.eB);var rlV=function(X){var t=new clB;return _.QW(t,3,pIV,X)},pIV=[2,
3];var k$=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(k$,_.eB);var Nar=function(X,t){return _.Oi(X,2,t)},PMB=function(X,t){return _.Oi(X,8,t)},EoR=function(X,t){return _.Oi(X,3,t)};var UFH=[0,_.da,WPN,CM2,_.VBR,[0,[5,6],[0,_.da,-2],[0,_.BI,_.da,_.V7],[0,Y1q],[0,_.V7,_.da,-1,_.ng4,_.da],_.ko,[0,[0,_.BI],_.da,-1],_.ko,[0,[3,4],_.da,-1,_.ko,[0,[0,_.da,_.nN]],_.ko,[0,[0,[0,[1,2],_.ko,[0],_.ko,[0]]]]]],_.VBR,-1,[0,pIV,_.da,_.ko,uyR,_.ko,Al4,_.bM,ONq,[0,KZR]]];var mFi=_.ZY(k$,UFH),Rs2=_.qx(UFH);var iN2=function(){_.po.call(this)};
_.S(iN2,_.po);iN2.prototype.init=function(){};
new iN2;var LP4=_.Vc(["data-"]),voB=_.Vc(["aria-"]),aFr=_.Vc(["aria-"]),dd=function(X,t){this.isLatencyMeasurementExperiment=X===void 0?!1:X;this.enableDialogA11yFix=t===void 0?!1:t;this.JSC$19306_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.p4q(_.tA.location.href)},QiV=function(X,t){X.onConsentPrimitiveShownCallback=t},lFB=function(X,t){return X.overriddenIframeLoadTimeout?X.overriddenIframeLoadTimeout:t!==void 0?t:5E3},WwH=function(X){if(X.prewarmPromise!==void 0)return X.prewarmPromise;
X.prewarmPromise=new Promise(function(t,G){er(X,1);xF2(X,fFR(X,!0),MUR(X));X.iframe?X.prewarmChannel||X6v(X,X.iframe,t):G(Error("ek"))});
X.prewarmPromise.finally(function(){X.prewarmPromise=void 0});
return X.prewarmPromise};
dd.prototype.showPrimitive=function(){var X=this;if(this.consentPromise!==void 0)return this.consentPromise;var t=Date.now();$oT(this,t);this.consentPromise=new Promise(function(G,y){er(X,0,t);var w=X.isDarkTheme();X.isLatencyMeasurementExperiment||X.initialLoadingStrategy===1||X.initialLoadingStrategy===2||(X.loadingBar||(X.loadingBar=Hg4(getComputedStyle(document.body).direction==="rtl",w),X.loadingBar.style.position="fixed",X.loadingBar.style.zIndex="15000"),document.body.appendChild(X.loadingBar));
xF2(X,fFR(X),MUR(X));X.iframe?X.channel||to4(X,X.iframe,G,y):(G$B(X),y(Error("ek")))});
this.consentPromise.finally(function(){X.consentPromise=void 0});
return this.consentPromise};
var to4=function(X,t,G,y){var w,z;_.n(function(B){switch(B.nextAddress){case 1:er(X,3);w=!1;setTimeout(function(){if(!w){G$B(X);yy2(X);w6T(X);var V=Ta2(7).setErrorMessage("Timeout connecting to iframe");G(PMB(Nar(new k$,IFR(V)),rlV(V)))}},lFB(X,zHQ(X)));
if(!X.prewarmPromise){B.jumpTo(2);break}_.CL(B,3);return B.yield(X.prewarmPromise,5);case 5:_.zx(B,2);break;case 3:_.IY(B),z=Ta2(4).setErrorMessage("Error while prewarming."),G(PMB(Nar(new k$,IFR(z)),rlV(z)));case 2:X.prewarmChannel&&X.prewarmChannel.send(Rs2(EoR(new k$,X.consentPrimitiveRequest))),X.channel=_.T1({destination:X.JSC$19306_win,iframe:t,origin:HUQ(X),channelName:"cpw",onEstablished:function(){w=!0;G$B(X);X.isLatencyMeasurementExperiment||(X.JSC$19306_previousBodyOverflow=document.body.style.overflow,
X.JSC$19306_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,X.JSC$19306_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",X.enableDialogA11yFix&&window.addEventListener("blur",X.focusChangeListener));var V=X.iframe;V.style.bottom="0";V.style.position="fixed";V.style.right="0";V.style.border="none";V.style.left="0";V.style.top=
"0";V.style.zIndex="5000";V.style.pointerEvents="";V.style.visibility="";X.initialLoadingStrategy===2||X.initialLoadingStrategy===3?er(X,4):er(X,6);var b;(b=X.onConsentPrimitiveShownCallback)==null||b.call(X)},
onMessage:function(V){V=mFi(V.data);switch(_.lz(V,1)){case 1:yy2(X);var b=o0Q(_.Co(V,_.$l,7));b&&(X.initialLoadingStrategy!==2&&X.initialLoadingStrategy!==3||er(X,6,b),er(X,5,b));if(b=o0Q(_.Co(V,_.$l,6)))er(X,7,b),er(X,8);var e,g;((e=_.Co(V,Qmv,2))==null?void 0:_.Ex(e,Zr))!==0&&((g=_.Co(V,clB,8))==null?void 0:_.Ex(g,pIV))!==0||y(Error("fk"));G(V);break;case 2:w6T(X)}}}),_.W$(B)}})},X6v=function(X,t,G){X.prewarmChannel=_.T1({destination:X.JSC$19306_win,
iframe:t,origin:HUQ(X),channelName:"pwcp",onEstablished:function(){er(X,2);G()}})},HUQ=function(X){var t=_.Nx(X.src).toString();
return t&&t.indexOf("://")<0&&t.indexOf("//")!==0?X.origin:_.p4q(t)},fFR=function(X,t){t=t===void 0?!1:t;
var G,y=new Map([["origin",X.origin],["hl",(G=o9B(X))!=null?G:null]]);t&&y.set("pw","1");t=_.J([["cpr",X.consentPrimitiveRequest.serialize()]]);for(G=t.next();!G.done;G=t.next()){var w=_.J(G.value);G=w.next().value;w=w.next().value;y.set(G,w)}X.isDarkTheme()&&y.set("color_scheme","dark");return _.DA(X.src,y)},G$B=function(X){X.isLatencyMeasurementExperiment||X.loadingBar&&document.body.removeChild(X.loadingBar)};
dd.prototype.getSrc=function(){var X=_.bF(this.origin),t;var G=(t=_.Co(this.consentPrimitiveRequest,hsR,3))==null?void 0:_.jM(t,1);t="consent.google.com";G=G?"/u/"+encodeURIComponent(G.toString()):"";(X==null?0:X.endsWith("youtube.com"))?t="consent.youtube.com":(X=X==null?void 0:X.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(t="consent.google."+((X[1]?"co.":"")+encodeURIComponent(X[2])));return _.rN("https://"+t+"/signedin"+G+"/landing")};
var xF2=function(X,t,G){X.iframe||(X.iframe=document.createElement("iframe"),X.iframe.style.width="100%",X.iframe.style.height="100%",G!==112496729&&(X.iframe.style.colorScheme="auto"),X.isLatencyMeasurementExperiment&&(X.iframe.style.display="none"),_.wq(X.iframe,t),X.iframe.setAttribute("jsname","C5o1O"),JyR(X.iframe),document.body.appendChild(X.iframe))},JyR=function(X){X.style.bottom="-200vh";
X.style.position="fixed";X.style.right="-200vw";X.style.border="";X.style.left="";X.style.top="";X.style.zIndex="";X.style.pointerEvents="none";X.style.visibility="hidden"},yy2=function(X){X.iframe&&(X.isLatencyMeasurementExperiment||(X.JSC$19306_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=X.JSC$19306_previousHtmlOverscroll),X.JSC$19306_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=X.JSC$19306_previousBodyOverscroll),X.JSC$19306_previousBodyOverflow!==
void 0&&(document.body.style.overflow=X.JSC$19306_previousBodyOverflow),X.enableDialogA11yFix&&BYR(X,!1)),JyR(X.iframe))};
dd.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(BYR(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var BYR=function(X,t){var G,y,w=(G=X.iframe)==null?void 0:(y=G.parentElement)==null?void 0:y.children;if(w)for(G=0;G<w.length;G++)y=w[G],y!==X.iframe&&(t?(y.hasAttribute("aria-hidden")&&_.kw([_.T6(LP4)],y,"data-old-aria-hidden",y.getAttribute("aria-hidden")),_.kw([_.T6(voB)],y,"aria-hidden","true")):(y.removeAttribute("aria-hidden"),y.hasAttribute("data-old-aria-hidden")&&(_.kw([_.T6(aFr)],y,"aria-hidden",y.getAttribute("data-old-aria-hidden")),y.removeAttribute("data-old-aria-hidden"))))},er=function(X,
t,G){var y;
(y=X.latencyCallback)==null||y.call(X,{latencyType:t,timestampEpochMillis:G!=null?G:Date.now()})};var n9R=function(X,t,G){dd.call(this,t,G===void 0?!1:G);this.consentPrimitiveRequest=X;X=o9B(this);_.$_v(X);this.src=this.getSrc();var y;this.initialLoadingStrategy=(y=_.Co(this.consentPrimitiveRequest,KF,4))==null?void 0:_.lz(y,4)},Voa;
_.S(n9R,dd);var uxN=function(X){var t=_.A("enable_primitive_dialog_aria_hide_siblings");X={request:X,enableDialogA11yFix:t===void 0?!1:t};Voa||(Voa=new n9R(X.request,X.isLatencyMeasurementExperiment||_.lz(X.request,1)===2,X.enableDialogA11yFix));return Voa},o9B=function(X){var t;
return(t=_.Co(X.consentPrimitiveRequest,KF,4))==null?void 0:_.aQ(t,1)},$oT=function(X,t){if(!_.p9(X.consentPrimitiveRequest,b6,5)){var G=X.consentPrimitiveRequest,y=new b6;
_.Oi(G,5,y)}var w;if((w=_.Co(X.consentPrimitiveRequest,b6,5))==null||_.jqY(_.cH(w,8))==null){var z;(z=_.Co(X.consentPrimitiveRequest,b6,5))!=null&&_.rj(z,8,t)}},MUR=function(X){var t;
return(t=_.Co(X.consentPrimitiveRequest,b6,5))==null?void 0:_.jM(t,1)};
n9R.prototype.isDarkTheme=function(){var X;return((X=_.Co(this.consentPrimitiveRequest,KF,4))==null?void 0:_.lz(X,2))===2};
var zHQ=function(X){var t;return((t=_.Co(X.consentPrimitiveRequest,KF,4))==null?void 0:_.jM(t,5))||void 0},w6T=function(X){X.channel=void 0;
X.prewarmChannel=void 0;X.iframe&&(document.body.contains(X.iframe)&&document.body.removeChild(X.iframe),X.iframe=void 0);Voa=void 0},cHB=function(X){return dd.prototype.showPrimitive.call(X).then(function(t){return _.Co(t,Qmv,2)})};for(var jr={},bUq=(jr[64]="ma",jr[73]="ogb",jr[89]="cr",jr[21]="test",jr[0]="unkn",jr[137]="con",jr[155]="hl",jr[78]="yt",jr[171]="lp",jr[172]="ap",jr[177]="amo",jr[178]="pqe",jr[74]="gg",jr[1]="gm",jr[140]="am",jr[193]="sc",jr),k$r=_.J(Object.keys(bUq)),dor=k$r.next();!dor.done;dor=k$r.next());var eHH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(eHH,_.eB);var j8V=[0,[2,3,4],_.da,r4V,LMR,_.XEV];var g9Q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(g9Q,_.eB);var F9q=_.ZY(g9Q,[0,iyR,_.V7,_.da,_.V7,_.da,j8V]);var TYQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(TYQ,_.eB);TYQ.prototype.getCommand=function(){return _.lz(this,1)};
var Ay4=function(){var X=new TYQ;return _.tl(X,1,0)};var YHR=_.qx([0,iyR,_.V7,[0,_.da,_.V7,-1]]);var s8i=new _.I8("s"),DoV=new _.I8("t"),SHR=new _.I8("u"),hHa=new _.I8("v"),ZUi=function(X,t,G){_.W6.call(this,s8i);this.mediaKey=X;this.photoUrl=t;this.photoSource=G};
_.S(ZUi,_.W6);var qHH=function(){_.W6.call(this,DoV)};
_.S(qHH,_.W6);var Cir=function(X){X=X===void 0?!1:X;_.W6.call(this,SHR);this.isError=X};
_.S(Cir,_.W6);var K9i=function(){_.W6.call(this,hHa)};
_.S(K9i,_.W6);var OUH=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,W94=function(X){if(typeof X=="string"){if(X.charAt(0)==".")return uAT(X.substr(1));if(X.charAt(0)=="["){var t=OUH.exec(X);X=X.indexOf("=")==-1?void 0:t[3];return Q82(t[1],X)}return IaV(X)}return X},uAT=function(X){return function(t){return t.getAttribute&&_.He(t,X)}},Q82=function(X,t){return function(G){return t!==void 0?G.getAttribute&&G.getAttribute(X)==t:G.hasAttribute&&G.hasAttribute(X)}},IaV=function(X){X=X.toUpperCase();
return function(t){return(t=t.tagName)&&t.toUpperCase()==X}},cy4=function(){return!0};var gd=function(X,t){this.JSC$19334_key_=X;this.JSC$19334_value_=t},Fr=function(X){throw Error("gk`"+X.JSC$19334_key_);
},p6v=function(X,t){return new TypeError("hk`"+t+"`"+X.JSC$19334_key_+"`"+X.JSC$19334_value_+"`"+typeof X.JSC$19334_value_)};
gd.prototype.string=function(X){return arguments.length==0?ryN(this):NYV(this,X)};
var NYV=function(X,t){var G;return(G=PiH(X))!=null?G:t},ryN=function(X){var t=PiH(X);
t===null&&Fr(X);return t},PiH=function(X){var t=X.JSC$19334_value_;
if(t==null)return null;if(typeof t==="string")return t;throw p6v(X,"string");};
gd.prototype.bool=function(X){if(arguments.length==0){var t=this.optionalBool();t===null&&Fr(this)}else{var G;t=(G=this.optionalBool())!=null?G:X}return t};
gd.prototype.optionalBool=function(){var X=this.JSC$19334_value_;if(X==null)return null;if(typeof X==="boolean")return X;if(typeof X==="string"){X=X.toLowerCase();if(X==="true"||X==="1")return!0;if(X==="false"||X==="0")return!1}throw p6v(this,"boolean");};
gd.prototype.number=function(X){if(arguments.length==0){var t=E9r(this);t===null&&Fr(this)}else t=UoR(this,X);return t};
var UoR=function(X,t){var G;return(G=E9r(X))!=null?G:t},E9r=function(X){var t=X.JSC$19334_value_;
if(t==null)return null;if(typeof t==="number")return t;if(typeof t==="string"){var G=Number(t);if(!isNaN(G)&&(G!==0||t.trim().length!==0))return G}throw p6v(X,"number");};
gd.prototype.toString=function(){return ryN(this)};
gd.prototype.enum=function(X,t){var G=!0,y=void 0,w;for(w in X){var z=X[w];G&&(G=!1,y=typeof z==="number"?UoR(this,t):NYV(this,t));if(z==y)return y}JSON.stringify(X);return y};
gd.prototype.array=function(X){if(arguments.length==0){var t=moN(this);t===null&&Fr(this);return t}t=moN(this);return t==null?X:t};
var moN=function(X){var t=X.JSC$19334_value_;if(t==null)return null;Array.isArray(t)||(typeof t!=="string"?t=[t]:(t=t.trim(),t=t==""?[]:t.split(",").map(function(G){return G.trim()})));
return RHQ(X,t)},RHQ=function(X,t){var G=X.JSC$19334_key_+"[";
return Array.from(t,function(y,w){return new gd(G+w+"]",y)})};
gd.prototype.object=function(X){var t=this.JSC$19334_value_;if(t==null)return X===void 0&&Fr(this),X;if(typeof t==="object"&&t.constructor===Object){X={};var G=this.JSC$19334_key_+".",y;for(y in t)X[y]=new gd(G+y,t[y]);return X}throw p6v(this,"object");};var TR=function(X){this.list_=iUT(X)},iUT=function(X){if(X instanceof TR)X=X.list_;
else if(X[0]instanceof TR){for(var t=new Set,G=0;G<X.length;G++)for(var y=_.J(X[G].list_),w=y.next();!w.done;w=y.next())t.add(w.value);X=t}return[].concat(_.RY(X))};
_.H=TR.prototype;_.H.each=function(X,t,G){((G===void 0?0:G)?Vir:_.zA)(this.list_,X,t);return this};
_.H.size=function(){return this.list_.length};
_.H.isEmpty=function(){return this.list_.length===0};
_.H.get=function(X){return this.list_[X]||null};
_.H.el=function(){return this.list_[0]||null};
_.H.map=function(X,t){return _.iG(this.list_,X,t)};
_.H.equals=function(X){return this===X||_.Jq(this.list_,X.list_)};
_.H.first=function(){return this.list_.length==0?null:new Ar(this.list_[0])};
_.H.last=function(){return this.list_.length==0?null:new Ar(this.list_[this.list_.length-1])};
_.H.find=function(X){var t=[];this.each(function(G){G=G.querySelectorAll(String(X));for(var y=0;y<G.length;y++)t.push(G[y])});
return new TR(t)};
_.H.parent=function(){var X=[];this.each(function(t){(t=t.parentElement||null)&&!_.Eh(X,t)&&X.push(t)});
return new TR(X)};
_.H.children=function(){var X=[];this.each(function(t){t=_.MF(t);for(var G=0;G<t.length;G++)X.push(t[G])});
return new TR(X)};
_.H.filter=function(X){X=_.S$(this.list_,W94(X));return new TR(X)};
_.H.closest=function(X){var t=[],G=W94(X),y=function(w){return _.kA(w)&&G(w)};
this.each(function(w){(w=_.xT(w,y,!0))&&!_.Eh(t,w)&&t.push(w)});
return new TR(t)};
_.H.next=function(X){return L92(this,_.$Rq,X)};
_.H.prev=function(X){return L92(this,vyv,X)};
var L92=function(X,t,G){var y=[];var w=G?W94(G):cy4;X.each(function(z){(z=t(z))&&w(z)&&y.push(z)});
return new TR(y)};
TR.prototype.setClass=function(X){return this.each(function(t){_.zT(t,X)})};
var v9V=function(X,t){return X.each(function(G){_.Fx(G,t)})},aa2=function(X,t){return X.each(function(G){_.j_(G,t)})};
TR.prototype.toggleClass=function(X,t){return t===!0?v9V(this,X):t===!1?aa2(this,X):this.each(function(G){_.He(G,X)?_.j_(G,X):_.Fx(G,X)})};
TR.prototype.setText=function(X){return this.each(function(t){_.XA(t,X)})};
var laa=function(X){X.each(function(t){t.removeAttribute("aria-hidden")})};
TR.prototype.getStyle=function(X){if(this.list_.length>0){var t=this.list_[0],G=t.style[_.I4(X)];return typeof G!=="undefined"?G:t.style[_.krS(t,X)]||""}};
TR.prototype.getData=function(X){if(this.list_.length===0)return new gd(X,null);var t=g5H(this.list_[0],X);return new gd(X,t)};
TR.prototype.focus=function(X){try{X?this.el().focus(X):this.el().focus()}catch(t){}return this};
TR.prototype.click=function(){var X=_.aH(this.el());if(X.createEvent){var t=X.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,X.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(t)}else X=X.createEventObject(),X.clientX=0,X.clientY=0,X.screenX=0,X.screenY=0,X.altKey=!1,X.ctrlKey=!1,X.shiftKey=!1,X.button=0,this.el().fireEvent("onclick",X)};
var Y$=function(X,t,G,y){function w(V,b,e){var g=b;b&&b.parentNode&&(g=b.cloneNode(!0));V(g,e)}
y=y===void 0?!1:y;if(X.list_.length==1){var z=X.list_[0],B=function(V){return t(V,z)};
G instanceof TR?G.each(B,void 0,y):Array.isArray(G)?(y?Vir:_.zA)(G,B):B(G);return X}return X.each(function(V){G instanceof TR?G.each(function(b){w(t,b,V)}):Array.isArray(G)?_.zA(G,function(b){w(t,b,V)}):w(t,G,V)})};
_.H=TR.prototype;_.H.append=function(X){return Y$(this,function(t,G){t&&G.appendChild(t)},X)};
_.H.appendTo=function(X){(new TR([X])).append(this);return this};
_.H.remove=function(){return Y$(this,function(X,t){_.uf(t)},null)};
_.H.empty=function(){return Y$(this,function(X,t){_.lM(t)},null)};
_.H.after=function(X,t){return Y$(this,function(G,y){G&&_.fN(G,y)},X,!(t===void 0||t))};
_.H.before=function(X){return Y$(this,function(t,G){t&&_.xo(t,G)},X)};
_.H.replaceWith=function(X){return Y$(this,function(t,G){t&&_.fPe(t,G)},X)};
_.H.toggle=function(X){return this.each(function(t){_.wh(t,X)})};
_.H.show=function(){return this.toggle(!0)};
_.H.hide=function(){return this.toggle(!1)};
_.H.trigger=function(X,t,G,y){return xoa(this,X,t,G,y)};
var xoa=function(X,t,G,y,w){return X.each(function(z){_.HbE(_.aH(z)).triggerWizEventInternal(z,t,G,y,w)})},Ar=function(X,t){X instanceof TR&&(t=X.list_,X=null);
this.list_=iUT(X!=null?[X]:t)};
_.sx(Ar,TR);_.H=Ar.prototype;_.H.children=function(){return new TR(Array.prototype.slice.call(_.MF(this.list_[0])))};
_.H.each=function(X,t){X.call(t,this.list_[0],0);return this};
_.H.size=function(){return 1};
_.H.el=function(){return this.list_[0]};
_.H.first=function(){return this};var so=function(X,t){t=t===void 0?window:t;this.hostId=X;this.JSC$19345_win=t;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$19345_previousHtmlOverscroll=this.JSC$19345_previousBodyOverscroll=this.JSC$19345_previousBodyOverflow="";this.eventTarget=new _.P6;this.JSC$19345_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
XeB=function(X){var t=faQ(faQ(faQ(new Mov(78),"po"),"hppp"),"hhc");
t.authUser=Number(_.Md("SESSION_INDEX","0"));t.colorScheme=X;return t};
so.prototype.getOrigin=function(){return this.origin?this.origin:_.FS(_.gE(_.j2(new _.Vf,this.JSC$19345_win.location.protocol),this.JSC$19345_win.location.hostname),this.JSC$19345_win.location.port).toString()};
so.prototype.getTargetOrigin=function(){return _.FS(_.gE(_.j2(new _.Vf,this.scheme),this.domain),this.port)};
so.prototype.preloadIframe=function(X){var t=this;if(this.iframeLoadPromise===void 0){var G=document.createElement("iframe");this.iframe=G;dQ4(G,X);this.iframeLoadPromise=new Promise(function(y,w){var z=!1,B=function(V){V.stopPropagation();G.removeEventListener("error",B);G.removeEventListener("securitypolicyviolation",B);w(Error("ik",{cause:V}))};
G.addEventListener("error",B);G.addEventListener("securitypolicyviolation",B);setTimeout(function(){z||w(Error("jk"))},3E4);
$gN(t,G,function(){z=!0;G.removeEventListener("error",B);G.removeEventListener("securitypolicyviolation",B);y()})});
t2H(this);X=this.getTargetOrigin().toString();G.setAttribute("allow","camera "+X+"; display-capture "+X);this.parentElement.appendChild(G)}return this.iframeLoadPromise};
var weq=function(X,t){var G,y;return _.n(function(w){if(w.nextAddress==1)return G=Hg4(getComputedStyle(X.parentElement).direction==="rtl"),X.parentElement.appendChild(G),document.activeElement instanceof HTMLElement&&(X.elementToFocusAfterClose=document.activeElement),_.CL(w,2),w.yield(X.preloadIframe(t),4);if(w.nextAddress!=2){X.parentElement.removeChild(G);X.JSC$19345_previousBodyOverflow=X.parentElement.style.overflow;X.JSC$19345_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
X.JSC$19345_previousBodyOverscroll=X.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";X.parentElement.style.overscrollBehavior="contain";X.parentElement.style.overflow="hidden";var z=X.iframe;z.style.bottom="0";z.style.border="none";z.style.height="100%";z.style.left="0";z.style.position=X.iframePosition;z.style.right="0";z.style.top="0";z.style.width="100%";z.style.zIndex="2202";z.setAttribute("aria-hidden","false");z.setAttribute("aria-modal","true");
X.opened=!0;GTa(X);return _.zx(w,0)}y=_.IY(w);X.parentElement.removeChild(G);V7a(X.isDarkTheme());yJa(X,!1);throw Error("kk",{cause:y});})},yJa=function(X,t){t=t===void 0?!0:t;
X.iframe!==void 0&&(z4R(X),document.documentElement.style.overscrollBehavior=X.JSC$19345_previousHtmlOverscroll,X.parentElement.style.overscrollBehavior=X.JSC$19345_previousBodyOverscroll,X.parentElement.style.overflow=X.JSC$19345_previousBodyOverflow,X.elementToFocusAfterClose!==void 0&&(X.elementToFocusAfterClose.focus(),X.elementToFocusAfterClose=void 0),t?t2H(X):(X.parentElement.removeChild(X.iframe),X.iframe=void 0,X.iframeLoadPromise=void 0,X.mainChannel=void 0),X.opened=!1)},z4R=function(X){X.backgroundElementsAriaHiddenIsNull&&
(laa(X.backgroundElementsAriaHiddenIsNull),X.backgroundElementsAriaHiddenIsNull=void 0);
X.backgroundElementsAriaHiddenIsFalse&&(X.backgroundElementsAriaHiddenIsFalse.each(function(t){t.setAttribute("aria-hidden","false")}),X.backgroundElementsAriaHiddenIsFalse=void 0);
X.backgroundElementsWithoutInert&&(X.backgroundElementsWithoutInert.each(function(t){t.removeAttribute("inert")}),X.backgroundElementsWithoutInert=void 0)},GTa=function(X){X.backgroundElementsAriaHiddenIsNull=(new Ar(X.iframe.parentElement)).children().filter(function(t){return t.getAttribute("aria-hidden")===null&&t!==X.iframe});
X.backgroundElementsAriaHiddenIsNull.each(function(t){t.setAttribute("aria-hidden","true")});
X.backgroundElementsAriaHiddenIsFalse=(new Ar(X.iframe.parentElement)).children().filter(function(t){return t.getAttribute("aria-hidden")==="false"&&t!==X.iframe});
X.backgroundElementsAriaHiddenIsFalse.each(function(t){t.setAttribute("aria-hidden","true")});
X.backgroundElementsWithoutInert=(new Ar(X.iframe.parentElement)).children().filter(function(t){return!t.hasAttribute("inert")&&t!==X.iframe});
X.backgroundElementsWithoutInert.each(function(t){t.setAttribute("inert","true")})},t2H=function(X){X=X.iframe;
X.style.bottom="-1000px";X.style.position="fixed";X.style.right="-1000px";X.style.border="";X.style.height="";X.style.left="";X.style.top="";X.style.width="";X.style.zIndex="";X.setAttribute("aria-hidden","true");X.setAttribute("aria-modal","false")};
so.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Mov=function(X,t){so.call(this,bUq[X],t);this.options=[];this.style=""};
_.S(Mov,so);var HGT=function(X){X.style="youtube";return X},oPB=function(X,t){X.eventTarget.listen(SHR,t);
return X},JJH=function(X,t){X.eventTarget.listen(s8i,t);
return X},faQ=function(X,t){X.options.push(t);
return X},BEr=function(X){var t=[X.getOrigin()];
X.ancestorOrigins&&t.push.apply(t,_.RY(X.ancestorOrigins));var G=new _.Vf(X.JSC$19345_win.location.href),y=X.startUrl?X.startUrl:X.options.includes("po")?"profile-picture/art":"profile-picture";t=Of(_.TT(X.getTargetOrigin(),y),"origin",t);X.startUrl&&_.yA(t,"startPath",X.startUrl);X.authUser>0&&_.yA(t,"authuser",X.authUser);X.pageId!==void 0&&_.yA(t,"pageId",X.pageId);_.yA(t,"hostId",X.hostId);X.jsMode!==void 0&&_.yA(t,"jsmode",X.jsMode);X.rectangleRatio!==void 0&&_.yA(t,"rectangleRatio",X.rectangleRatio);
X.options.length>0&&_.yA(t,"opts",X.options.join(","));try{for(var w=_.J(["utm_source","utm_medium","utm_campaign","utm_content"]),z=w.next();!z.done;z=w.next()){var B=z.value;_.Gy(G,B)&&_.yA(t,B,_.Gy(G,B))}var V,b=(V=X.hl)!=null?V:_.Gy(G,"hl");b!==void 0&&_.yA(t,"hl",b)}catch(e){if(!(e instanceof URIError))throw e;}X.colorScheme&&_.yA(t,"theme",X.colorScheme);X.style&&_.yA(t,"style",X.style);return t},nPq=function(X,t){X.mainChannel=_.T1({destination:X.JSC$19345_win,
iframe:t,origin:X.getTargetOrigin().toString(),channelName:"ow",onMessage:function(G){G=F9q(G.data);if(t===X.iframe)switch(_.lz(G,1)){case 1:X.eventTarget.dispatchEvent(new Cir);yJa(X);break;case 2:X.eventTarget.dispatchEvent(new ZUi(_.aQ(G,4),_.aQ(G,2),_.lz(G,5),_.Co(G,eHH,6)));break;case 0:var y;X.eventTarget.dispatchEvent(new qHH(_.aQ(G,2),(y=_.lz(G,3))!=null?y:0));break;case 3:X.eventTarget.dispatchEvent(new Cir(!0));yJa(X,!1);break;case 4:X.eventTarget.dispatchEvent(new K9i)}}})},$gN=function(X,
t,G){_.T1({destination:X.JSC$19345_win,
iframe:t,origin:_.FS(_.gE(_.j2(new _.Vf,X.scheme),X.domain),X.port).toString(),channelName:"owi",onMessage:function(y){t===X.iframe&&(G!==void 0&&G(),nPq(X,t),X.opened&&X.mainChannel.send(YHR(Ay4())),y.reply(),$gN(X,t))}})};
Mov.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?so.prototype.preloadIframe.call(this,BEr(this).toString()):this.iframeLoadPromise};
Mov.prototype.openPicker=function(X){var t=this;return _.n(function(G){if(G.nextAddress==1)return t.startUrl=X?X:t.options.includes("po")?"profile-picture/art":"profile-picture",G.yield(weq(t,BEr(t).toString()),2);if(t.mainChannel){var y=t.mainChannel,w=y.send;var z=Ay4();z=_.rp(z,2,t.startUrl);w.call(y,YHR(z))}_.W$(G)})};var V22=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(V22,_.eB);_.H=V22.prototype;_.H.getSize=function(){return rM(this,1)};
_.H.setSize=function(X){return _.$o(this,1,X)};
_.H.getWidth=function(){return rM(this,12)};
_.H.getHeight=function(){return rM(this,13)};
_.H.setCenterCrop=function(X){return _.Yb(this,20,X)};
_.H.getHtml=function(){return _.iz(this,4)};
_.H.getToken=function(){return _.Ko(this,24)};
_.H.setToken=function(X){return _.rp(this,24,X)};
_.H.getBackgroundColor=function(){return rM(this,87)};
_.H.hasBackgroundColor=function(){return _.FH(_.cH(this,87))!=null};
_.H.getStoryboardLevel=function(){return rM(this,109)};var D3=function(X){this.JSC$19353_value_=void 0;this.childNodes_={};if(X){var t=_.mtJ(X);X=_.e2(X);for(var G=0;G<t.length;G++)this.set(t[G],X[G])}};
D3.prototype.set=function(X,t){bGN(this,X,t,!1)};
D3.prototype.add=function(X,t){bGN(this,X,t,!0)};
var bGN=function(X,t,G,y){for(var w=0;w<t.length;w++){var z=t.charAt(w);X.childNodes_[z]||(X.childNodes_[z]=new D3);X=X.childNodes_[z]}if(y&&X.JSC$19353_value_!==void 0)throw Error("lk`"+t);X.JSC$19353_value_=G},kTr=function(X,t){for(var G=0;G<t.length;G++)if(X=X.childNodes_[t.charAt(G)],!X)return;
return X};
D3.prototype.get=function(X){return(X=kTr(this,X))?X.JSC$19353_value_:void 0};
D3.prototype.getValues=function(){var X=[];dgR(this,X);return X};
var dgR=function(X,t){X.JSC$19353_value_!==void 0&&t.push(X.JSC$19353_value_);for(var G in X.childNodes_)dgR(X.childNodes_[G],t)};
D3.prototype.getKeys=function(X){var t=[];if(X){for(var G=this,y=0;y<X.length;y++){var w=X.charAt(y);if(!G.childNodes_[w])return[];G=G.childNodes_[w]}e4R(G,X,t)}else e4R(this,"",t);return t};
var e4R=function(X,t,G){X.JSC$19353_value_!==void 0&&G.push(t);for(var y in X.childNodes_)e4R(X.childNodes_[y],t+y,G)};
_.H=D3.prototype;_.H.containsKey=function(X){return this.get(X)!==void 0};
_.H.containsValue=function(X){if(this.JSC$19353_value_===X)return!0;for(var t in this.childNodes_)if(this.childNodes_[t].containsValue(X))return!0;return!1};
_.H.clear=function(){this.childNodes_={};this.JSC$19353_value_=void 0};
_.H.remove=function(X){for(var t=this,G=[],y=0;y<X.length;y++){var w=X.charAt(y);if(!t.childNodes_[w])throw Error("mk`"+X);G.push([t,w]);t=t.childNodes_[w]}X=t.JSC$19353_value_;for(delete t.JSC$19353_value_;G.length>0;)if(y=G.pop(),t=y[0],y=y[1],t.childNodes_[y].isEmpty())delete t.childNodes_[y];else break;return X};
_.H.clone=function(){return new D3(this)};
_.H.getCount=function(){return f72(this.getValues())};
_.H.isEmpty=function(){return this.JSC$19353_value_===void 0&&_.RH.isEmpty(this.childNodes_)};var T9R=function(){if(!j62){var X=j62=new D3,t;for(t in gP2)X.add(t,gP2[t])}},j62,Sr=function(X,t){this.types=X;
this.setters=t},gP2={a:new Sr([3,
0],[function(X,t){_.Yb(X,21,t)},
function(X,t){_.$o(X,56,t)}]),
al:new Sr([3],[function(X,t){_.Yb(X,74,t)}]),
b:new Sr([3,0],[function(X,t){_.Yb(X,23,t)},
function(X,t){_.$o(X,38,t)}]),
ba:new Sr([0],[function(X,t){_.$o(X,85,t)}]),
bc:new Sr([0],[function(X,t){_.$o(X,87,t)}]),
br:new Sr([0],[function(X,t){_.$o(X,86,t)}]),
c:new Sr([3,0],[function(X,t){_.Yb(X,2,t)},
function(X,t){_.$o(X,39,t)}]),
cc:new Sr([3],[function(X,t){_.Yb(X,51,t)}]),
ci:new Sr([3],[function(X,t){_.Yb(X,32,t)}]),
ckm:new Sr([3],[function(X,t){_.Yb(X,104,t)}]),
cp:new Sr([0],[function(X,t){_.$o(X,92,t)}]),
cr:new Sr([3],[function(X,t){_.Yb(X,108,t)}]),
cv:new Sr([0],[function(X,t){_.$o(X,94,t)}]),
d:new Sr([3],[function(X,t){_.Yb(X,3,t)}]),
dc:new Sr([5],[function(X,t){_.rp(X,99,t)}]),
df:new Sr([3],[function(X,t){_.Yb(X,80,t)}]),
dv:new Sr([3],[function(X,t){_.Yb(X,90,t)}]),
e:new Sr([0],[function(X,t){_.$o(X,15,t)}]),
em:new Sr([0],[function(X,t){_.$o(X,107,t)}]),
f:new Sr([4],[function(X,t){_.rp(X,16,t)}]),
fg:new Sr([3],[function(X,t){_.Yb(X,34,t)}]),
fh:new Sr([3],[function(X,t){_.Yb(X,30,t)}]),
fm:new Sr([3],[function(X,t){_.Yb(X,84,t)}]),
fo:new Sr([2],[function(X,t){_.Y7(X,79,_.H4(t))}]),
ft:new Sr([3],[function(X,t){_.Yb(X,50,t)}]),
fv:new Sr([3],[function(X,t){_.Yb(X,31,t)}]),
g:new Sr([3],[function(X,t){_.Yb(X,14,t)}]),
gce:new Sr([4],[function(X,t){_.rp(X,112,t)}]),
gd:new Sr([3],[function(X,t){_.Yb(X,83,t)}]),
gm:new Sr([3],[function(X,t){_.Yb(X,105,t)}]),
h:new Sr([3,0],[function(X,t){_.Yb(X,4,t)},
function(X,t){_.$o(X,13,t)}]),
i:new Sr([3],[function(X,t){_.Yb(X,22,t)}]),
ic:new Sr([0],[function(X,t){_.$o(X,71,t)}]),
id:new Sr([3],[function(X,t){_.Yb(X,70,t)}]),
il:new Sr([3],[function(X,t){_.Yb(X,96,t)}]),
ip:new Sr([3],[function(X,t){_.Yb(X,54,t)}]),
iv:new Sr([0],[function(X,t){_.rj(X,75,t)}]),
j:new Sr([1],[function(X,t){t=t==null?t:d_v(t);_.Y7(X,29,t)}]),
k:new Sr([3,0],[function(X,t){_.Yb(X,17,t)},
function(X,t){_.$o(X,42,t)}]),
l:new Sr([0],[function(X,t){_.$o(X,44,t)}]),
lf:new Sr([3],[function(X,t){_.Yb(X,65,t)}]),
lo:new Sr([3],[function(X,t){_.Yb(X,97,t)}]),
m:new Sr([0],[function(X,t){_.$o(X,63,t)}]),
md:new Sr([3],[function(X,t){_.Yb(X,91,t)}]),
mm:new Sr([4],[function(X,t){_.rp(X,81,t)}]),
mo:new Sr([3],[function(X,t){_.Yb(X,73,t)}]),
mp:new Sr([0],[function(X,t){_.$o(X,115,t)}]),
mv:new Sr([3],[function(X,t){_.Yb(X,66,t)}]),
n:new Sr([3],[function(X,t){X.setCenterCrop(t)}]),
nc:new Sr([3],[function(X,t){_.Yb(X,55,t)}]),
nd:new Sr([3],[function(X,t){_.Yb(X,53,t)}]),
ng:new Sr([3],[function(X,t){_.Yb(X,95,t)}]),
ngm:new Sr([3],[function(X,t){_.Yb(X,106,t)}]),
no:new Sr([3],[function(X,t){_.Yb(X,37,t)}]),
ns:new Sr([3],[function(X,t){_.Yb(X,40,t)}]),
nt0:new Sr([4],[function(X,t){_.rp(X,36,t)}]),
ntm:new Sr([3],[function(X,t){_.Yb(X,114,t)}]),
nu:new Sr([3],[function(X,t){_.Yb(X,46,t)}]),
nw:new Sr([3],[function(X,t){_.Yb(X,48,t)}]),
o:new Sr([1,3],[function(X,t){t=t==null?t:d_v(t);_.Y7(X,7,t)},
function(X,t){_.Yb(X,27,t)}]),
p:new Sr([3,0],[function(X,t){_.Yb(X,19,t)},
function(X,t){_.$o(X,43,t)}]),
pa:new Sr([3],[function(X,t){_.Yb(X,61,t)}]),
pc:new Sr([0],[function(X,t){_.$o(X,88,t)}]),
pd:new Sr([3],[function(X,t){_.Yb(X,60,t)}]),
pf:new Sr([3],[function(X,t){_.Yb(X,67,t)}]),
pg:new Sr([3],[function(X,t){_.Yb(X,72,t)}]),
pi:new Sr([2],[function(X,t){_.Y7(X,76,_.H4(t))}]),
pp:new Sr([3],[function(X,t){_.Yb(X,52,t)}]),
pt:new Sr([4],[function(X,t){_.rp(X,111,t)}]),
q:new Sr([4],[function(X,t){_.rp(X,28,t)}]),
r:new Sr([3,0],[function(X,t){_.Yb(X,6,t)},
function(X,t){_.$o(X,26,t)}]),
ra:new Sr([3],[function(X,t){_.Yb(X,103,t)}]),
rf:new Sr([3],[function(X,t){_.Yb(X,100,t)}]),
rg:new Sr([3],[function(X,t){_.Yb(X,59,t)}]),
rh:new Sr([3],[function(X,t){_.Yb(X,49,t)}]),
rj:new Sr([3],[function(X,t){_.Yb(X,57,t)}]),
ro:new Sr([2],[function(X,t){_.Y7(X,78,_.H4(t))}]),
rp:new Sr([3],[function(X,t){_.Yb(X,58,t)}]),
rw:new Sr([3],[function(X,t){_.Yb(X,35,t)}]),
rwa:new Sr([3],[function(X,t){_.Yb(X,64,t)}]),
rwu:new Sr([3],[function(X,t){_.Yb(X,41,t)}]),
s:new Sr([3,0],[function(X,t){_.Yb(X,33,t)},
function(X,t){X.setSize(t)}]),
sb:new Sr([0],[function(X,t){_.$o(X,110,t)}]),
sc:new Sr([0],[function(X,t){_.$o(X,89,t)}]),
sg:new Sr([3],[function(X,t){_.Yb(X,82,t)}]),
sl:new Sr([0],[function(X,t){_.$o(X,109,t)}]),
sm:new Sr([3],[function(X,t){_.Yb(X,93,t)}]),
t:new Sr([4],[function(X,t){X.setToken(t)}]),
tm:new Sr([3],[function(X,t){_.Yb(X,113,t)}]),
u:new Sr([3],[function(X,t){_.Yb(X,18,t)}]),
ut:new Sr([3],[function(X,t){_.Yb(X,45,t)}]),
v:new Sr([0],[function(X,t){_.$o(X,62,t)}]),
vb:new Sr([0],[function(X,t){_.rj(X,68,t)}]),
vf:new Sr([4],[function(X,t){_.rp(X,102,t)}]),
vl:new Sr([0],[function(X,t){_.rj(X,69,t)}]),
vm:new Sr([3],[function(X,t){_.Yb(X,98,t)}]),
w:new Sr([0],[function(X,t){_.$o(X,12,t)}]),
x:new Sr([0],[function(X,t){_.$o(X,9,t)}]),
y:new Sr([0],[function(X,t){_.$o(X,10,t)}]),
ya:new Sr([2],[function(X,t){_.Y7(X,77,_.H4(t))}]),
z:new Sr([0],[function(X,t){_.$o(X,11,t)}])};
T9R.prototype.parse=function(X){var t=new V22,G=new V22;if(X=="")X=!0;else{X=X.split("-");for(var y=!0,w=0;w<X.length;w++){var z=X[w];if(z.length==0)y=!1;else{var B=z,V=!1;var b=B;var e=B.charAt(0);e!=e.toLowerCase()&&(V=!0,b=B.charAt(0).toLowerCase()+B.substring(1));var g=j62;for(e=1;e<=b.length;++e){var F=g,T=b.substring(0,e);if(T.length==0?F.isEmpty():!kTr(F,T))break}b=e==1?null:(b=g.get(b.substring(0,e-1)))?{option:B.substring(0,e-1),value:B.substring(e-1),signed:V,attributes:b}:null;if(b){B=
[];V=[];e=!1;for(g=0;g<b.attributes.types.length;g++){F=b.attributes.types[g];var D=b.value;T=w;if(b.signed&&F==1)for(var h=D.length;h<12&&T<X.length-1;)D+="-"+X[T+1],h=D.length,++T;else if(F==2)for(;T<X.length-1&&X[T+1].match(/^[\d\.]/);)D+="-"+X[T+1],++T;h=b.attributes.setters[g];D=FpH(this,F)(b.option,D,t,G,h);if(D===null){e=!0;w=T;break}else B.push(F),V.push(D)}if(!e)for(b=0;b<V.length;b++)g=B[b],D=V[b],TEV(this,g)(z,D);y=y&&e}else y=!1}}X=y}return new AJQ(t,G,X)};
var hr=function(X,t,G,y,w,z){w(G,t);X=X.charAt(0);z=z(X==X.toUpperCase());w(y,z)};
_.H=T9R.prototype;_.H.parseAndSetIntOption_=function(X,t,G,y,w){if(t=="")return 0;isFinite(t)&&(t=String(t));t=typeof t==="string"?/^\s*-?0x/i.test(t)?parseInt(t,16):parseInt(t,10):NaN;if(isNaN(t))return 1;hr(X,t,G,y,w,Number);return null};
_.H.logIntParseError_=function(){};
_.H.parseAndSetFloatOption_=function(X,t,G,y,w){if(t=="")return 0;var z=Number(t);t=z==0&&_.JA(t)?NaN:z;if(isNaN(t))return 1;hr(X,t,G,y,w,Number);return null};
_.H.logFloatParseError_=function(){};
_.H.parseAndSetBoolOption_=function(X,t,G,y,w){if(t!="")return 2;hr(X,!0,G,y,w,Boolean);return null};
_.H.logBoolParseError_=function(){};
_.H.parseAndSetStringOption_=function(X,t,G,y,w){if(t=="")return 0;hr(X,t,G,y,w,function(z){return z?"1":""});
return null};
_.H.logStringParseError_=function(){};
_.H.parseAndSetUint64Base64Option_=function(X,t,G,y,w){if(t=="")return 0;hr(X,t,G,y,w,function(z){return z?1:0});
return null};
var FpH=function(X,t){switch(t){case 0:return(0,_.rT)(X.parseAndSetIntOption_,X);case 2:return(0,_.rT)(X.parseAndSetFloatOption_,X);case 3:return(0,_.rT)(X.parseAndSetBoolOption_,X);case 4:return(0,_.rT)(X.parseAndSetStringOption_,X);case 1:return(0,_.rT)(X.parseAndSetUint64Base64Option_,X);default:return function(){}}},TEV=function(X,t){switch(t){case 0:return(0,_.rT)(X.logIntParseError_,X);
case 2:return(0,_.rT)(X.logFloatParseError_,X);case 3:return(0,_.rT)(X.logBoolParseError_,X);case 4:case 1:return(0,_.rT)(X.logStringParseError_,X);default:return function(){}}},AJQ=function(X,t,G){this.valueProto_=X;
this.signatureFlagProto_=t;this.JSC$19365_valid_=G};
AJQ.prototype.isValid=function(){return this.JSC$19365_valid_};var e7r=function(X){this.JSC$19366_parser_=null;this.JSC$19366_components_=[];this.JSC$19366_parsedOptions_=null;YpR(this,X)},s6V=function(X){X.JSC$19366_parser_==null&&(X.JSC$19366_parser_=new T9R);
return X.JSC$19366_parser_},YpR=function(X,t){X.JSC$19366_parsedOptions_=t?typeof t==="string"?s6V(X).parse(t):t:s6V(X).parse("")},Z3=function(X,t){return X==t?!1:!0};
_.H=e7r.prototype;_.H.JSC$19368_setCrop=function(X){X=X||void 0;var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,_.iz(G,2),_.iz(t.signatureFlagProto_,2))&&_.Yb(G,2,X);return this};
_.H.JSC$19368_setCircleCrop=function(X){X=X||void 0;var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,pF(G,51),pF(t.signatureFlagProto_,51))&&_.Yb(G,51,X);return this};
_.H.JSC$19368_setImageCrop=function(X){X=X||void 0;var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,pF(G,32),pF(t.signatureFlagProto_,32))&&_.Yb(G,32,X);return this};
_.H.JSC$19368_setHeight=function(X){var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,G.getHeight(),t.signatureFlagProto_.getHeight())&&_.$o(G,13,X);return this};
_.H.setCenterCrop=function(X){X=X||void 0;var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,_.iz(G,20),_.iz(t.signatureFlagProto_,20))&&G.setCenterCrop(X);return this};
_.H.JSC$19368_setSmartCrop=function(X){X=X||void 0;var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,_.iz(G,19),_.iz(t.signatureFlagProto_,19))&&_.Yb(G,19,X);return this};
_.H.JSC$19368_setPad=function(X){X=X||void 0;var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,pF(G,60),pF(t.signatureFlagProto_,60))&&_.Yb(G,60,X);return this};
_.H.JSC$19368_setSmartCropUseFace=function(X){X=X||void 0;var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,_.iz(G,67),_.iz(t.signatureFlagProto_,67))&&_.Yb(G,67,X);return this};
_.H.JSC$19368_setSmartCropNoClip=function(X){X=X||void 0;var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,_.iz(G,52),_.iz(t.signatureFlagProto_,52))&&_.Yb(G,52,X);return this};
_.H.setSize=function(X){var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,G.getSize(),t.signatureFlagProto_.getSize())&&G.setSize(X);return this};
_.H.setToken=function(X){X=X||void 0;var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,G.getToken(),t.signatureFlagProto_.getToken())&&G.setToken(X);return this};
_.H.JSC$19368_setWidth=function(X){var t=this.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(X,G.getWidth(),t.signatureFlagProto_.getWidth())&&_.$o(G,12,X);return this};
_.H.clearOptions=function(){YpR(this,"");return this};
_.H.build=function(){this.JSC$19366_components_.length=0;var X=this.JSC$19366_parsedOptions_,t=X.valueProto_;X=X.signatureFlagProto_;qA(this,"s",t.getSize(),X.getSize());qA(this,"w",t.getWidth(),X.getWidth());CM(this,"c",_.iz(t,2),_.iz(X,2));CM(this,"d",_.iz(t,3),_.iz(X,3));qA(this,"h",t.getHeight(),X.getHeight());CM(this,"s",pF(t,33),pF(X,33));CM(this,"h",t.getHtml(),X.getHtml());CM(this,"p",_.iz(t,19),_.iz(X,19));CM(this,"pp",_.iz(t,52),_.iz(X,52));CM(this,"pf",_.iz(t,67),_.iz(X,67));CM(this,"n",
_.iz(t,20),_.iz(X,20));qA(this,"r",rM(t,26),rM(X,26));CM(this,"r",_.iz(t,6),_.iz(X,6));CM(this,"o",pF(t,27),pF(X,27));var G=_.RQ(t,7,_.WH);KM(this,"o",G,_.RQ(X,7,_.WH));G=_.RQ(t,29,_.WH);KM(this,"j",G,_.RQ(X,29,_.WH));qA(this,"x",rM(t,9),rM(X,9));qA(this,"y",rM(t,10),rM(X,10));qA(this,"z",rM(t,11),rM(X,11));CM(this,"g",_.iz(t,14),_.iz(X,14));qA(this,"e",rM(t,15),rM(X,15));KM(this,"f",_.Ko(t,16),_.Ko(X,16));CM(this,"k",pF(t,17),pF(X,17));CM(this,"u",pF(t,18),!0);CM(this,"ut",pF(t,45),!0);CM(this,"i",
pF(t,22),!0);CM(this,"a",pF(t,21),pF(X,21));CM(this,"b",_.iz(t,23),_.iz(X,23));qA(this,"b",rM(t,38),rM(X,38));qA(this,"c",rM(t,39),rM(X,39),16,8);KM(this,"q",_.Ko(t,28),_.Ko(X,28));CM(this,"fh",pF(t,30),pF(X,30));CM(this,"fv",pF(t,31),pF(X,31));CM(this,"fg",_.iz(t,34),_.iz(X,34));CM(this,"ci",pF(t,32),pF(X,32));KM(this,"t",t.getToken(),X.getToken());KM(this,"nt0",_.Ko(t,36),_.Ko(X,36));CM(this,"rw",_.iz(t,35),_.iz(X,35));CM(this,"rwu",_.iz(t,41),_.iz(X,41));CM(this,"rwa",_.iz(t,64),_.iz(X,64));CM(this,
"nw",_.iz(t,48),_.iz(X,48));CM(this,"rh",_.iz(t,49),_.iz(X,49));CM(this,"no",_.iz(t,37),_.iz(X,37));CM(this,"ns",pF(t,40),pF(X,40));qA(this,"k",rM(t,42),rM(X,42));qA(this,"p",rM(t,43),rM(X,43));qA(this,"l",rM(t,44),rM(X,44));qA(this,"v",rM(t,62),rM(X,62));CM(this,"nu",pF(t,46),pF(X,46));CM(this,"ft",pF(t,50),pF(X,50));CM(this,"cc",pF(t,51),pF(X,51));CM(this,"nd",pF(t,53),pF(X,53));CM(this,"ip",pF(t,54),pF(X,54));CM(this,"nc",pF(t,55),pF(X,55));qA(this,"a",rM(t,56),rM(X,56));CM(this,"rj",pF(t,57),
pF(X,57));CM(this,"rp",pF(t,58),pF(X,58));CM(this,"rg",pF(t,59),pF(X,59));CM(this,"pd",pF(t,60),pF(X,60));CM(this,"pa",pF(t,61),pF(X,61));qA(this,"m",rM(t,63),rM(X,63));qA(this,"vb",Nb(t,68),Nb(X,68));qA(this,"vl",Nb(t,69),Nb(X,69));CM(this,"lf",pF(t,65),pF(X,65));CM(this,"mv",pF(t,66),pF(X,66));CM(this,"id",pF(t,70),pF(X,70));qA(this,"ic",rM(t,71),!0);CM(this,"pg",_.iz(t,72),_.iz(X,72));CM(this,"mo",pF(t,73),pF(X,73));CM(this,"al",pF(t,74),pF(X,74));qA(this,"iv",Nb(t,75),Nb(X,75));qA(this,"pi",PU(t,
76),PU(X,76));qA(this,"ya",PU(t,77),PU(X,77));qA(this,"ro",PU(t,78),PU(X,78));qA(this,"fo",PU(t,79),PU(X,79));CM(this,"df",pF(t,80),pF(X,80));KM(this,"mm",_.Ko(t,81),_.Ko(X,81));CM(this,"sg",pF(t,82),pF(X,82));CM(this,"gd",pF(t,83),pF(X,83));CM(this,"fm",pF(t,84),pF(X,84));qA(this,"ba",rM(t,85),rM(X,85));qA(this,"br",rM(t,86),rM(X,86));qA(this,"bc",t.getBackgroundColor(),X.getBackgroundColor(),16,8);qA(this,"pc",rM(t,88),rM(X,88),16,8);qA(this,"sc",rM(t,89),rM(X,89),16,8);CM(this,"dv",pF(t,90),pF(X,
90));CM(this,"md",pF(t,91),pF(X,91));qA(this,"cp",rM(t,92),rM(X,92));CM(this,"sm",pF(t,93),pF(X,93));qA(this,"cv",rM(t,94),rM(X,94));CM(this,"ng",pF(t,95),pF(X,95));CM(this,"il",pF(t,96),pF(X,96));CM(this,"lo",pF(t,97),pF(X,97));CM(this,"vm",pF(t,98),pF(X,98));KM(this,"dc",_.Ko(t,99),_.Ko(X,99));CM(this,"rf",pF(t,100),pF(X,100));KM(this,"vf",_.Ko(t,102),_.Ko(X,102));CM(this,"ra",_.iz(t,103),_.iz(X,103));CM(this,"ckm",pF(t,104),pF(X,104));CM(this,"gm",pF(t,105),pF(X,105));CM(this,"ngm",pF(t,106),pF(X,
106));qA(this,"em",rM(t,107),rM(X,107));CM(this,"cr",pF(t,108),pF(X,108));qA(this,"sl",t.getStoryboardLevel(),X.getStoryboardLevel());qA(this,"sb",rM(t,110),rM(X,110));KM(this,"pt",_.Ko(t,111),_.Ko(X,111));KM(this,"gce",_.Ko(t,112),_.Ko(X,112));CM(this,"tm",pF(t,113),pF(X,113));CM(this,"ntm",pF(t,114),pF(X,114));qA(this,"mp",rM(t,115),rM(X,115));return this.JSC$19366_components_.join("-")};
var qA=function(X,t,G,y,w,z){if(G!=null){var B=w==void 0||w!=10&&w!=16?10:w;G=Number(G).toString(B);w=new QO2;w.append(B==16?"0x":"");B=w.append;z==void 0?z="":(z-=G.length,z=z<=0?"":(0,_.pYS)("0",z));B.call(w,z);w.append(G);DgN(X,t,w.toString(),!!Number(y))}},CM=function(X,t,G,y){G&&DgN(X,t,"",!!y)},KM=function(X,t,G,y){G&&DgN(X,t,String(G),!!Number(y))},DgN=function(X,t,G,y){y&&(t=t.charAt(0).toUpperCase()+t.substring(1));
X.JSC$19366_components_.push(t+G)};_.sx(vR,e7r);_.H=vR.prototype;_.H.JSC$19368_setCrop=function(X){X&&Oo(this);return vR.superClass_.JSC$19368_setCrop.call(this,X)};
_.H.JSC$19368_setHeight=function(X){X=X==null||X<0?void 0:X;X!=null&&this.setSize();return vR.superClass_.JSC$19368_setHeight.call(this,X)};
_.H.JSC$19368_setImageCrop=function(X){X&&Oo(this);return vR.superClass_.JSC$19368_setImageCrop.call(this,X)};
_.H.JSC$19368_setCircleCrop=function(X){X&&Oo(this);return vR.superClass_.JSC$19368_setCircleCrop.call(this,X)};
_.H.setSize=function(X){_.$h(X)&&(X=Math.max(X.width,X.height));X=X==null||X<0?void 0:X;X!=null&&(this.JSC$19368_setWidth(),this.JSC$19368_setHeight());return vR.superClass_.setSize.call(this,X)};
_.H.JSC$19368_setSmartCrop=function(X){X&&Oo(this);return vR.superClass_.JSC$19368_setSmartCrop.call(this,X)};
_.H.JSC$19368_setSmartCropNoClip=function(X){X&&Oo(this);return vR.superClass_.JSC$19368_setSmartCropNoClip.call(this,X)};
_.H.JSC$19368_setSmartCropUseFace=function(X){X&&Oo(this);return vR.superClass_.JSC$19368_setSmartCropUseFace.call(this,X)};
_.H.setCenterCrop=function(X){X&&Oo(this);return vR.superClass_.setCenterCrop.call(this,X)};
_.H.JSC$19368_setPad=function(X){X&&Oo(this);return vR.superClass_.JSC$19368_setPad.call(this,X)};
_.H.JSC$19368_setWidth=function(X){X=X==null||X<0?void 0:X;X!=null&&this.setSize();return vR.superClass_.JSC$19368_setWidth.call(this,X)};
var SpB=function(X){X.clearOptions();var t=X.JSC$19366_parsedOptions_,G=t.valueProto_;Z3(!0,_.iz(G,3),_.iz(t.signatureFlagProto_,3))&&_.Yb(G,3,!0);return X},Oo=function(X){X.setCenterCrop();
X.JSC$19368_setCircleCrop();X.JSC$19368_setCrop();X.JSC$19368_setImageCrop();X.JSC$19368_setPad();X.JSC$19368_setSmartCrop();X.JSC$19368_setSmartCropNoClip();X.JSC$19368_setSmartCropUseFace()};
vR.prototype.build=function(){var X=this.JSC$19366_parsedOptions_.valueProto_;pF(X,18)||pF(X,45)?X.getSize()||this.setSize(0):(X=this.JSC$19366_parsedOptions_.valueProto_,X.getSize()||X.getWidth()||X.getHeight()||(this.setSize(),this.JSC$19368_setHeight(),this.JSC$19368_setWidth(),Oo(this)));return vR.superClass_.build.call(this)};var h4B=/^[^\/]*\/\//,u6=function(X,t){t=t===void 0?!1:t;this.original_=X;this.originalPrefix_="";(X=this.original_.match(h4B))&&X[0]?(this.originalPrefix_=X[0],X=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):X="http://"+this.original_;this.uri_=_.tW(X,!0);this.isFreeformUrl_=t;this.JSC$19372_valid_=!0;this.obfuscated_=!1},ZG4=function(X,t){X.JSC$19374_pathPrefix_=X.JSC$19374_pathPrefix_?X.JSC$19374_pathPrefix_+("/"+t):t},Q9=function(X){if(X.JSC$19374_components_==
void 0){var t=X.uri_.getPath().substring(1);
X.JSC$19374_pathPrefix_=null;if(X.isFreeformUrl_){X.JSC$19374_components_=[];if((t.match(/=/g)||[]).length>1)return X.JSC$19372_valid_=!1,X.JSC$19374_components_;var G=t.indexOf("=");G!=-1?(X.JSC$19374_components_.push(t.substr(0,G)),X.JSC$19374_components_.push(t.substr(G+1))):X.JSC$19374_components_.push(t);return X.JSC$19374_components_}X.JSC$19374_components_=t.split("/");t=X.JSC$19374_components_.length;t>2&&X.JSC$19374_components_[0]=="u"&&(ZG4(X,X.JSC$19374_components_[0]+"/"+X.JSC$19374_components_[1]),
X.JSC$19374_components_.shift(),X.JSC$19374_components_.shift(),t-=2);if(t==0||t==4||t>7)return X.JSC$19372_valid_=!1,X.JSC$19374_components_;if(t==2)ZG4(X,X.JSC$19374_components_[0]);else if(X.JSC$19374_components_[0]=="image")ZG4(X,X.JSC$19374_components_[0]);else if(t==7||t==3)return X.JSC$19372_valid_=!1,X.JSC$19374_components_;if(t<=3){X.obfuscated_=!0;t==3&&(ZG4(X,X.JSC$19374_components_[1]),X.JSC$19374_components_.shift(),--t);--t;G=X.JSC$19374_components_[t];var y=G.indexOf("=");y!=-1&&(X.JSC$19374_components_[t]=
G.substr(0,y),X.JSC$19374_components_.push(G.substr(y+1)))}}return X.JSC$19374_components_};
u6.prototype.isValid=function(){Q9(this);return this.JSC$19372_valid_};
u6.prototype.isObfuscated=function(){Q9(this);return this.obfuscated_};
var qpN=function(X){Q9(X);return X.isFreeformUrl_},IP=function(X){Q9(X);
X.JSC$19374_pathPrefix_==void 0&&(X.JSC$19374_pathPrefix_=null);return X.JSC$19374_pathPrefix_},CEv=function(X){switch(Q9(X).length){case 7:return!0;
case 6:return IP(X)==null;case 5:return!1;case 3:return!0;case 2:return IP(X)==null;case 1:return!1;default:return!1}},WJ=function(X,t){if(qpN(X))a:{switch(t){case 7:t=0;
break;case 4:if(!CEv(X)){X=null;break a}t=1;break;default:X=null;break a}X=Q9(X)[t]}else if(X.isObfuscated())a:{var G=IP(X)!=null?1:0;switch(t){case 6:t=G;break;case 4:if(!CEv(X)){X=null;break a}t=1+G;break;default:X=null;break a}X=Q9(X)[t]}else a:{G=IP(X)!=null?1:0;switch(t){case 0:t=G;break;case 1:t=1+G;break;case 2:t=2+G;break;case 3:t=3+G;break;case 4:if(!CEv(X)){X=null;break a}t=4+G;break;case 5:t=CEv(X)?1:0;t=4+G+t;break;default:X=null;break a}X=Q9(X)[t]}return X};
u6.prototype.getOptions=function(){this.options_==void 0&&(this.options_=WJ(this,4));return this.options_};var FCR=function(){};
FCR.prototype.parse=function(X,t){return new j$2(X,t===void 0?!1:t)};
var j$2=function(X,t){u6.call(this,X,t===void 0?!1:t)};
_.S(j$2,u6);_.sx(aW,vR);var g0H;aW.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
aW.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var X=aW.superClass_.build.call(this),t=[];IP(this.parsedImageUrl_)!=null&&t.push(IP(this.parsedImageUrl_));var G=qpN(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var y=this.parsedImageUrl_;y.obfuscatedData_==void 0&&(y.obfuscatedData_=WJ(y,6));t.push(y.obfuscatedData_+(X?"="+X:""))}else if(G){y=t.push;var w=this.parsedImageUrl_;w.freeformUrlPath_===void 0&&(w.freeformUrlPath_=WJ(w,
7));y.call(t,w.freeformUrlPath_);X&&t.push(X)}else y=t.push,w=this.parsedImageUrl_,w.obfuscatedGaiaId_==void 0&&(w.obfuscatedGaiaId_=WJ(w,0)),y.call(t,w.obfuscatedGaiaId_),y=t.push,w=this.parsedImageUrl_,w.photoId_==void 0&&(w.photoId_=WJ(w,1)),y.call(t,w.photoId_),y=t.push,w=this.parsedImageUrl_,w.imageVersion_==void 0&&(w.imageVersion_=WJ(w,2)),y.call(t,w.imageVersion_),y=t.push,w=this.parsedImageUrl_,w.signature_==void 0&&(w.signature_=WJ(w,3)),y.call(t,w.signature_),X&&t.push(X),X=t.push,y=this.parsedImageUrl_,
y.filename_==void 0&&(y.filename_=WJ(y,5)),X.call(t,y.filename_);t=G?t.join("="):t.join("/");t=_.tW(this.protocolPrefix_+this.JSC$19380_domain_+"/"+t+(this.JSC$19380_query_?"?"+this.JSC$19380_query_:"")).toString();t.startsWith("%3a//")&&(t=t.replace("%3a//","://"));return t};var KpQ=_.Vc(["viewBox"]),OG2=_.Vc(["width"]),uST=_.Vc(["height"]),Q6a=_.Vc(["fill"]),IMV=_.Vc(["id"]),Wp2=_.Vc(["x"]),cJ4=_.Vc(["y"]);AgN.prototype.getLength=function(){return this.parsedData.length};
AgN.prototype.write=function(X){for(var t=0,G=this.parsedData.length;t<G;t++)X.put(this.parsedData[t],8)};
var qGq=function(X,t){var G=new AgN(t);X.dataList.push(G);G=X.errorCorrectLevel;var y=1,w=encodeURI(t).toString().replace(/%[0-9a-fA-F]{2}/g,"a");t=w.length+(w.length!=t?3:0);w=0;for(var z=cJ.length;w<=z;w++){var B=0;switch(G){case 1:B=cJ[w][0];break;case 0:B=cJ[w][1];break;case 3:B=cJ[w][2];break;case 2:B=cJ[w][3]}if(t<=B)break;else y++}if(y>cJ.length)throw Error("vk");X.typeNumber=y;X.dataCache=null};
YGV.prototype.isDark=function(X,t){if(X<0||this.moduleCount<=X||t<0||this.moduleCount<=t)throw Error("nk`"+X+"`"+t);return this.modules[X][t]};
for(var CAr=function(X,t,G){X.moduleCount=X.typeNumber*4+17;X.modules=Array(X.moduleCount);for(var y=0;y<X.moduleCount;y++){X.modules[y]=Array(X.moduleCount);for(var w=0;w<X.moduleCount;w++)X.modules[y][w]=null}peq(X,0,0);peq(X,X.moduleCount-7,0);peq(X,0,X.moduleCount-7);y=rJr[X.typeNumber-1];for(w=0;w<y.length;w++)for(var z=0;z<y.length;z++){var B=y[w],V=y[z];if(X.modules[B][V]==null)for(var b=-2;b<=2;b++)for(var e=-2;e<=2;e++)X.modules[B+b][V+e]=b==-2||b==2||e==-2||e==2||b==0&&e==0?!0:!1}for(y=
8;y<X.moduleCount-8;y++)X.modules[y][6]==null&&(X.modules[y][6]=y%2==0);for(y=8;y<X.moduleCount-8;y++)X.modules[6][y]==null&&(X.modules[6][y]=y%2==0);y=X.errorCorrectLevel<<3|G;for(w=y<<10;pM(w)-pM(1335)>=0;)w^=1335<<pM(w)-pM(1335);y=(y<<10|w)^21522;for(w=0;w<15;w++)z=!t&&(y>>w&1)==1,w<6?X.modules[w][8]=z:w<8?X.modules[w+1][8]=z:X.modules[X.moduleCount-15+w][8]=z;for(w=0;w<15;w++)z=!t&&(y>>w&1)==1,w<8?X.modules[8][X.moduleCount-w-1]=z:w<9?X.modules[8][15-w-1+1]=z:X.modules[8][15-w-1]=z;X.modules[X.moduleCount-
8][8]=!t;if(X.typeNumber>=7){y=X.typeNumber;for(w=y<<12;pM(w)-pM(7973)>=0;)w^=7973<<pM(w)-pM(7973);y=y<<12|w;for(w=0;w<18;w++)z=!t&&(y>>w&1)==1,X.modules[Math.floor(w/3)][w%3+X.moduleCount-8-3]=z;for(w=0;w<18;w++)z=!t&&(y>>w&1)==1,X.modules[w%3+X.moduleCount-8-3][Math.floor(w/3)]=z}if(X.dataCache==null){w=X.typeNumber;z=X.dataList;t=X.errorCorrectLevel;y=NEi(w,t);if(y==void 0)throw Error("uk`"+w+"`"+t);B=y.length/3;t=[];for(V=0;V<B;V++){b=y[V*3];e=y[V*3+1];for(var g=y[V*3+2],F=0;F<b;F++)t.push(new s$V(e,
g))}y=new DQv;for(B=0;B<z.length;B++)V=z[B],y.put(V.mode,4),y.put(V.getLength(),PET(V.mode,w)),V.write(y);for(B=w=0;B<t.length;B++)w+=t[B].dataCount;if(y.length>w*8)throw Error("ok`"+y.length+"`"+w*8);for(y.length+4<=w*8&&y.put(0,4);y.length%8!=0;)EPN(y,!1);for(;!(y.length>=w*8);){y.put(236,8);if(y.length>=w*8)break;y.put(17,8)}z=w=e=0;B=Array(t.length);V=Array(t.length);for(b=0;b<t.length;b++){F=t[b].dataCount;var T=t[b].totalCount-F;w=Math.max(w,F);z=Math.max(z,T);B[b]=Array(F);for(g=0;g<B[b].length;g++)B[b][g]=
255&y.buffer[g+e];e+=F;g=T;F=new lb([1],0);for(T=0;T<g;T++)F=F.multiply(new lb([1,UgV(T)],0));g=F;F=(new lb(B[b],g.getLength()-1)).mod(g);V[b]=Array(g.getLength()-1);for(g=0;g<V[b].length;g++)T=g+F.getLength()-V[b].length,V[b][g]=T>=0?F.get(T):0}for(g=y=0;g<t.length;g++)y+=t[g].totalCount;y=Array(y);for(g=e=0;g<w;g++)for(b=0;b<t.length;b++)g<B[b].length&&(y[e++]=B[b][g]);for(g=0;g<z;g++)for(b=0;b<t.length;b++)g<V[b].length&&(y[e++]=V[b][g]);X.dataCache=y}t=X.dataCache;y=-1;w=X.moduleCount-1;z=7;B=
0;for(V=X.moduleCount-1;V>0;V-=2)for(V==6&&V--;;){for(b=0;b<2;b++)X.modules[w][V-b]==null&&(e=!1,B<t.length&&(e=(t[B]>>>z&1)==1),mgH(G,w,V-b)&&(e=!e),X.modules[w][V-b]=e,z--,z==-1&&(B++,z=7));w+=y;if(w<0||X.moduleCount<=w){w-=y;y=-y;break}}},peq=function(X,t,G){for(var y=-1;y<=7;y++)if(!(t+y<=-1||X.moduleCount<=t+y))for(var w=-1;w<=7;w++)G+w<=-1||X.moduleCount<=G+w||(X.modules[t+y][G+w]=0<=y&&y<=6&&(w==0||w==6)||0<=w&&w<=6&&(y==0||y==6)||2<=y&&y<=4&&2<=w&&w<=4?!0:!1)},KCH=function(X){for(var t=0,
G=0,y=0;y<8;y++){CAr(X,!0,y);
var w=X;for(var z=w.moduleCount,B=0,V=0;V<z;V++)for(var b=0;b<z;b++){for(var e=0,g=w.isDark(V,b),F=-1;F<=1;F++)if(!(V+F<0||z<=V+F))for(var T=-1;T<=1;T++)b+T<0||z<=b+T||(F!=0||T!=0)&&g==w.isDark(V+F,b+T)&&e++;e>5&&(B+=3+e-5)}for(V=0;V<z-1;V++)for(b=0;b<z-1;b++)if(e=0,w.isDark(V,b)&&e++,w.isDark(V+1,b)&&e++,w.isDark(V,b+1)&&e++,w.isDark(V+1,b+1)&&e++,e==0||e==4)B+=3;for(V=0;V<z;V++)for(b=0;b<z-6;b++)w.isDark(V,b)&&!w.isDark(V,b+1)&&w.isDark(V,b+2)&&w.isDark(V,b+3)&&w.isDark(V,b+4)&&!w.isDark(V,b+5)&&
w.isDark(V,b+6)&&(B+=40);for(b=0;b<z;b++)for(V=0;V<z-6;V++)w.isDark(V,b)&&!w.isDark(V+1,b)&&w.isDark(V+2,b)&&w.isDark(V+3,b)&&w.isDark(V+4,b)&&!w.isDark(V+5,b)&&w.isDark(V+6,b)&&(B+=40);for(b=e=0;b<z;b++)for(V=0;V<z;V++)w.isDark(V,b)&&e++;w=B+=Math.abs(100*e/z/z-50)/5*10;if(y==0||t>w)t=w,G=y}return G},rJr=[[],
[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]],pM=function(X){for(var t=0;X!=0;)t++,X>>>=1;return t},mgH=function(X,t,G){switch(X){case 0:return(t+G)%2==0;
case 1:return t%2==0;case 2:return G%3==0;case 3:return(t+G)%3==0;case 4:return(Math.floor(t/2)+Math.floor(G/3))%2==0;case 5:return t*G%2+t*G%3==0;case 6:return(t*G%2+t*G%3)%2==0;case 7:return(t*G%3+(t+G)%2)%2==0;default:throw Error("pk`"+X);}},PET=function(X,t){if(1<=t&&t<10)switch(X){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+X);}else if(t<27)switch(X){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+X);}else if(t<41)switch(X){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+X);}else throw Error("rk`"+t);},rd=function(X){if(X<1)throw Error("sk`"+X);
return R4R[X]},UgV=function(X){for(;X<0;)X+=255;
for(;X>=256;)X-=255;return NA[X]},NA=Array(256),R4R=Array(256),iGB=0;iGB<8;iGB++)NA[iGB]=1<<iGB;
for(var PJ=8;PJ<256;PJ++)NA[PJ]=NA[PJ-4]^NA[PJ-5]^NA[PJ-6]^NA[PJ-8];for(var LpB=0;LpB<255;LpB++)R4R[NA[LpB]]=LpB;lb.prototype.get=function(X){return this.num[X]};
lb.prototype.getLength=function(){return this.num.length};
lb.prototype.multiply=function(X){for(var t=Array(this.getLength()+X.getLength()-1),G=0;G<this.getLength();G++)for(var y=0;y<X.getLength();y++)t[G+y]^=UgV(rd(this.get(G))+rd(X.get(y)));return new lb(t,0)};
lb.prototype.mod=function(X){if(this.getLength()-X.getLength()<0)return this;for(var t=rd(this.get(0))-rd(X.get(0)),G=Array(this.getLength()),y=0;y<this.getLength();y++)G[y]=this.get(y);for(y=0;y<X.getLength();y++)G[y]^=UgV(rd(X.get(y))+t);return(new lb(G,0)).mod(X)};
var vPB=[[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]],NEi=function(X,t){switch(t){case 1:return vPB[(X-1)*4];case 0:return vPB[(X-1)*4+1];case 3:return vPB[(X-1)*4+2];case 2:return vPB[(X-1)*4+3]}};
DQv.prototype.get=function(X){return(this.buffer[Math.floor(X/8)]>>>7-X%8&1)==1};
DQv.prototype.put=function(X,t){for(var G=0;G<t;G++)EPN(this,(X>>>t-G-1&1)==1)};
var EPN=function(X,t){var G=Math.floor(X.length/8);X.buffer.length<=G&&X.buffer.push(0);t&&(X.buffer[G]|=128>>>X.length%8);X.length++},cJ=[[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]],Zgv=function(){var X=function(t,G){this.JSC$19400__el=t;this.JSC$19400__htOption=G};
X.prototype.draw=function(t){function G(g,F){g=document.createElementNS("http://www.w3.org/2000/svg",g);for(var T in F)F.hasOwnProperty(T)&&(T==="href"?_.s5q(g,F[T]):_.kw([_.T6(KpQ),_.T6(OG2),_.T6(uST),_.T6(Q6a),_.T6(IMV),_.T6(Wp2),_.T6(cJ4)],g,T,F[T]));return g}
var y=this.JSC$19400__htOption,w=this.JSC$19400__el,z=t.moduleCount;this.clear();var B=G("svg",{viewBox:"0 0 "+String(z)+" "+String(z),width:"100%",height:"100%",fill:y.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});w.appendChild(B);B.appendChild(G("rect",{fill:y.colorLight,width:"100%",height:"100%"}));B.appendChild(G("rect",{fill:y.colorDark,width:"1",height:"1",id:"template"}));for(var V=0;V<z;V++)for(var b=0;b<z;b++)if(t.isDark(V,b)){var e=G("use",{x:String(V),y:String(b),href:"#template"});
B.appendChild(e)}};
X.prototype.clear=function(){for(;this.JSC$19400__el.hasChildNodes();)this.JSC$19400__el.removeChild(this.JSC$19400__el.lastChild)};
return X}(),h7V=document.documentElement.tagName.toLowerCase()==="svg"?Zgv:typeof CanvasRenderingContext2D!="undefined"?function(){var X=function(t,G){this._bIsPainted=!1;
SGH();this.JSC$19400__htOption=G;this._elCanvas=document.createElement("canvas");this._elCanvas.width=G.width;this._elCanvas.height=G.height;t.appendChild(this._elCanvas);this.JSC$19400__el=t;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$19400__el.appendChild(this._elImage);this._bSupportDataURI=null};
X.prototype._onMakeImage=function(){var t=this._elCanvas.toDataURL("image/png");this._elImage.src=t;this._elImage.style.display="block";this._elCanvas.style.display="none"};
X.prototype._safeSetDataURI=function(t,G){var y=this;y._fFail=G;y._fSuccess=t;y._bSupportDataURI===null?(t=_.OF("IMG"),G=function(){y._bSupportDataURI=!1;y._fFail&&y._fFail.call(y)},t.onabort=G,t.onerror=G,t.onload=function(){y._bSupportDataURI=!0;
y._fSuccess&&y._fSuccess.call(y)},t.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):y._bSupportDataURI===!0&&y._fSuccess?y._fSuccess.call(y):y._bSupportDataURI===!1&&y._fFail&&y._fFail.call(y)};
X.prototype.draw=function(t){var G=this._oContext,y=this.JSC$19400__htOption,w=t.moduleCount,z=y.width/w,B=y.height/w,V=Math.round(z),b=Math.round(B);this._elImage.style.display="none";this.clear();for(var e=0;e<w;e++)for(var g=0;g<w;g++){var F=t.isDark(e,g),T=g*z,D=e*B;G.strokeStyle=F?y.colorDark:y.colorLight;G.lineWidth=1;G.fillStyle=F?y.colorDark:y.colorLight;G.fillRect(T,D,z,B);G.strokeRect(Math.floor(T)+.5,Math.floor(D)+.5,V,b);G.strokeRect(Math.ceil(T)-.5,Math.ceil(D)-.5,V,b)}this._bIsPainted=
!0};
X.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
X.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
X.prototype.round=function(t){return t?Math.floor(t*1E3)/1E3:t};
return X}():function(){var X=function(t,G){this.JSC$19400__el=t;
this.JSC$19400__htOption=G};
X.prototype.draw=function(t){for(var G=this.JSC$19400__htOption,y=this.JSC$19400__el,w=t.moduleCount,z=Math.floor(G.width/w),B=Math.floor(G.height/w),V=['<table style="border:0;border-collapse:collapse;">'],b=0;b<w;b++){V.push("<tr>");for(var e=0;e<w;e++)V.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+z+"px;height:"+B+"px;background-color:"+(t.isDark(b,e)?G.colorDark:G.colorLight)+';"></td>');V.push("</tr>")}V.push("</table>");t=V.join("");t=_.Z4J(_.CJq,t);_.b8(y,t);
t=y.childNodes[0];w=(G.width-t.offsetWidth)/2;z=(G.height-t.offsetHeight)/2;w>0&&z>0&&(t.style.margin=z+"px "+w+"px")};
X.prototype.clear=function(){this.JSC$19400__el.textContent=""};
return X}();
OgV.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19403__android||this.JSC$19403__android>=3)&&this._oDrawing.makeImage()};
OgV.prototype.clear=function(){this._oDrawing.clear()};
_.tA.QRCode=OgV;var aMq={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Eo=function(){};
Eo.prototype.stringify=function(X){return _.tA.JSON.stringify(X,void 0)};
Eo.prototype.parse=function(X){return _.tA.JSON.parse(X,void 0)};var lMq=function(){_.W6.call(this,"z")};
_.sx(lMq,_.W6);var xg4=function(){_.W6.call(this,"y")};
_.sx(xg4,_.W6);var fMH=null,M2a=function(){return fMH=fMH||new _.P6},XZ2=function(X){_.W6.call(this,"serverreachability",X)};
_.sx(XZ2,_.W6);var Uo=function(X){var t=M2a();t.dispatchEvent(new XZ2(t,X))},$Tr=function(X,t){_.W6.call(this,"statevent",X);
this.stat=t};
_.sx($Tr,_.W6);var mm=function(X){var t=M2a();t.dispatchEvent(new $Tr(t,X))},taN=function(X,t,G,y){_.W6.call(this,"timingevent",X);
this.size=t;this.rtt=G;this.retries=y};
_.sx(taN,_.W6);var Gu4=function(X,t,G){var y=M2a();y.dispatchEvent(new taN(y,X,t,G))},RP=function(X,t){if(typeof X!=="function")throw Error("wk");
return _.tA.setTimeout(function(){X()},t)};var i6=function(){this.redactEnabled_=!0};
i6.prototype.disableRedact=function(){this.redactEnabled_=!1};
var y8R=function(X,t,G,y,w,z){X.info(function(){if(X.redactEnabled_)if(z){var B="";for(var V=z.split("&"),b=0;b<V.length;b++){var e=V[b].split("=");if(e.length>1){var g=e[0];e=e[1];var F=g.split("_");B=F.length>=2&&F[1]=="type"?B+(g+"="+e+"&"):B+(g+"=redacted&")}}}else B=null;else B=z;return"XMLHTTP REQ ("+y+") [attempt "+w+"]: "+t+"\n"+G+"\n"+B})},wZN=function(X,t,G,y,w,z,B){X.info(function(){return"XMLHTTP RESP ("+y+") [ attempt "+w+"]: "+t+"\n"+G+"\n"+z+" "+B})},LM=function(X,t,G,y){X.info(function(){return"XMLHTTP TEXT ("+
t+"): "+zmi(X,G)+(y?" "+y:"")})},HPr=function(X,t){X.info(function(){return"TIMEOUT: "+t})};
i6.prototype.debug=function(){};
i6.prototype.info=function(){};
i6.prototype.warning=function(){};
var zmi=function(X,t){if(!X.redactEnabled_)return t;if(!t)return null;try{var G=JSON.parse(t);if(G)for(var y=0;y<G.length;y++)if(Array.isArray(G[y])){var w=G[y];if(!(w.length<2)){var z=w[1];if(Array.isArray(z)&&!(z.length<1)){var B=z[0];if(B!="noop"&&B!="stop"&&B!="close")for(var V=1;V<z.length;V++)z[V]=""}}}return(0,_.v6)(G)}catch(b){return X.debug("Exception parsing expected JS array - probably was not JS"),t}};var vJ=function(X,t,G,y,w){this.JSC$19425_channel_=X;this.JSC$19425_channelDebug_=t;this.sid_=G;this.JSC$19425_rid_=y;this.JSC$19425_retryId_=w||1;this.JSC$19425_eventHandler_=new _.AL(this);this.timeout_=45E3;this.JSC$19425_extraHeaders_=null;this.JSC$19425_successful_=!1;this.JSC$19425_postData_=this.JSC$19425_requestUri_=this.JSC$19425_baseUri_=this.JSC$19425_type_=this.JSC$19425_requestStartTime_=this.JSC$19425_watchDogTimeoutTime_=this.JSC$19425_watchDogTimerId_=null;this.JSC$19425_pendingMessages_=
[];this.JSC$19425_xmlHttp_=null;this.JSC$19425_xmlHttpChunkStart_=0;this.JSC$19425_lastError_=this.JSC$19425_verb_=null;this.JSC$19425_lastStatusCode_=-1;this.JSC$19425_cancelled_=!1;this.JSC$19425_readyStateChangeThrottleMs_=0;this.JSC$19425_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new oXH},oXH=function(){this.JSC$19427_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},J8B=function(X,t){switch(X){case 0:return"Non-200 return code ("+t+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},BAq={},nXN={};
vJ.prototype.setTimeout=function(X){this.timeout_=X};
var bPa=function(X,t,G){X.JSC$19425_type_=1;X.JSC$19425_baseUri_=_.ZM(t.clone());X.JSC$19425_postData_=G;X.decodeChunks_=!0;Va2(X,null)},Va2=function(X,t){X.JSC$19425_requestStartTime_=Date.now();
ku2(X);X.JSC$19425_requestUri_=X.JSC$19425_baseUri_.clone();Of(X.JSC$19425_requestUri_,"t",X.JSC$19425_retryId_);X.JSC$19425_xmlHttpChunkStart_=0;var G=X.JSC$19425_channel_.JSC$19444_supportsCrossDomainXhrs_;X.fetchResponseState_=new oXH;X.JSC$19425_xmlHttp_=dT2(X.JSC$19425_channel_,G?t:null,!X.JSC$19425_postData_);X.JSC$19425_readyStateChangeThrottleMs_>0&&(X.JSC$19425_readyStateChangeThrottle_=new _.d2((0,_.rT)(X.JSC$19429_xmlHttpHandler_,X,X.JSC$19425_xmlHttp_),X.JSC$19425_readyStateChangeThrottleMs_));
X.JSC$19425_eventHandler_.listen(X.JSC$19425_xmlHttp_,"readystatechange",X.JSC$19429_readyStateChangeHandler_);t=X.JSC$19425_extraHeaders_?_.RH.clone(X.JSC$19425_extraHeaders_):{};X.JSC$19425_postData_?(X.JSC$19425_verb_||(X.JSC$19425_verb_="POST"),t["Content-Type"]="application/x-www-form-urlencoded",X.JSC$19425_xmlHttp_.send(X.JSC$19425_requestUri_,X.JSC$19425_verb_,X.JSC$19425_postData_,t)):(X.JSC$19425_verb_="GET",X.JSC$19425_xmlHttp_.send(X.JSC$19425_requestUri_,X.JSC$19425_verb_,null,t));Uo(1);
y8R(X.JSC$19425_channelDebug_,X.JSC$19425_verb_,X.JSC$19425_requestUri_,X.JSC$19425_rid_,X.JSC$19425_retryId_,X.JSC$19425_postData_)};
vJ.prototype.JSC$19429_readyStateChangeHandler_=function(X){X=X.target;var t=this.JSC$19425_readyStateChangeThrottle_;t&&_.li(X)==3?(this.JSC$19425_channelDebug_.debug("Throttling readystatechange."),t.fire()):this.JSC$19429_xmlHttpHandler_(X)};
vJ.prototype.JSC$19429_xmlHttpHandler_=function(X){try{X==this.JSC$19425_xmlHttp_?ema(this):this.JSC$19425_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(t){this.JSC$19425_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),jET(this)}finally{}};
var ema=function(X){var t=_.li(X.JSC$19425_xmlHttp_),G=X.JSC$19425_xmlHttp_.JSC$9725_lastErrorCode_,y=X.JSC$19425_xmlHttp_.getStatus();if(!(t<3||t==3&&!jET(X))){X.JSC$19425_cancelled_||t!=4||G==7||(G==8||y<=0?Uo(3):Uo(2));gXq(X);var w=X.JSC$19425_xmlHttp_.getStatus();X.JSC$19425_lastStatusCode_=w;G=Fn4(X);jET(X)||X.JSC$19425_channelDebug_.debug(function(){return"No response text for uri "+X.JSC$19425_requestUri_+" status "+w});
X.JSC$19425_successful_=w==200;wZN(X.JSC$19425_channelDebug_,X.JSC$19425_verb_,X.JSC$19425_requestUri_,X.JSC$19425_rid_,X.JSC$19425_retryId_,t,w);if(X.JSC$19425_successful_){if(X.decodeInitialResponse_&&!X.initialResponseDecoded_)if(y=TAH(X))LM(X.JSC$19425_channelDebug_,X.JSC$19425_rid_,y,"Initial handshake response via X-HTTP-Initial-Response"),X.initialResponseDecoded_=!0,A8q(X,y);else{X.JSC$19425_successful_=!1;X.JSC$19425_lastError_=3;mm(12);X.JSC$19425_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
X.JSC$19425_rid_+")");aP(X);l6(X);return}X.decodeChunks_?YyR(X,t,G):(LM(X.JSC$19425_channelDebug_,X.JSC$19425_rid_,G,null),A8q(X,G));t==4&&aP(X);X.JSC$19425_successful_&&!X.JSC$19425_cancelled_&&(t==4?sE4(X.JSC$19425_channel_,X):(X.JSC$19425_successful_=!1,ku2(X)))}else fWv(X.JSC$19425_xmlHttp_),w==400&&G.indexOf("Unknown SID")>0?(X.JSC$19425_lastError_=3,mm(12),X.JSC$19425_channelDebug_.warning("XMLHTTP Unknown SID ("+X.JSC$19425_rid_+")")):(X.JSC$19425_lastError_=0,mm(13),X.JSC$19425_channelDebug_.warning("XMLHTTP Bad status "+
w+" ("+X.JSC$19425_rid_+")")),aP(X),l6(X)}},TAH=function(X){return X.JSC$19425_xmlHttp_&&(X=rm(X.JSC$19425_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.JA(X)?X:null},Fn4=function(X){if(!DTV(X))return X.JSC$19425_xmlHttp_.getResponseText();
var t=X.JSC$19425_xmlHttp_.getResponse();if(t==="")return"";var G="",y=t.length,w=_.li(X.JSC$19425_xmlHttp_)==4;if(!X.fetchResponseState_.JSC$19427_textDecoder){if(typeof TextDecoder==="undefined")return aP(X),l6(X),"";X.fetchResponseState_.JSC$19427_textDecoder=new _.tA.TextDecoder}for(var z=0;z<y;z++)X.fetchResponseState_.responseArrivedForFetch=!0,G+=X.fetchResponseState_.JSC$19427_textDecoder.decode(t[z],{stream:!(w&&z==y-1)});t.length=0;X.fetchResponseState_.responseBuffer+=G;X.JSC$19425_xmlHttpChunkStart_=
0;return X.fetchResponseState_.responseBuffer},jET=function(X){return X.JSC$19425_xmlHttp_?X.fetchResponseState_.responseArrivedForFetch?!0:!(!X.JSC$19425_xmlHttp_.getResponseText()&&!X.JSC$19425_xmlHttp_.getResponse()):!1},DTV=function(X){return X.JSC$19425_xmlHttp_?X.JSC$19425_verb_=="GET"&&X.JSC$19425_type_!=2&&X.JSC$19425_channel_.usesFetchStreams_:!1},YyR=function(X,t,G){for(var y=!0,w;!X.JSC$19425_cancelled_&&X.JSC$19425_xmlHttpChunkStart_<G.length;)if(w=Syi(X,G),w==nXN){t==4&&(X.JSC$19425_lastError_=
4,mm(14),y=!1);
LM(X.JSC$19425_channelDebug_,X.JSC$19425_rid_,null,"[Incomplete Response]");break}else if(w==BAq){X.JSC$19425_lastError_=4;mm(15);LM(X.JSC$19425_channelDebug_,X.JSC$19425_rid_,G,"[Invalid Chunk]");y=!1;break}else LM(X.JSC$19425_channelDebug_,X.JSC$19425_rid_,w,null),A8q(X,w);DTV(X)&&X.JSC$19425_xmlHttpChunkStart_!=0&&(X.fetchResponseState_.responseBuffer=X.fetchResponseState_.responseBuffer.slice(X.JSC$19425_xmlHttpChunkStart_),X.JSC$19425_xmlHttpChunkStart_=0);t!=4||G.length!=0||X.fetchResponseState_.responseArrivedForFetch||
(X.JSC$19425_lastError_=1,mm(16),y=!1);X.JSC$19425_successful_=X.JSC$19425_successful_&&y;y?G.length>0&&!X.firstByteReceived_&&(X.firstByteReceived_=!0,t=X.JSC$19425_channel_,t.JSC$19444_backChannelRequest_==X&&t.detectBufferingProxy_&&!t.bpDetectionDone_&&(t.JSC$19444_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+G.length),hma(t),t.bpDetectionDone_=!0,mm(11))):(LM(X.JSC$19425_channelDebug_,X.JSC$19425_rid_,G,"[Invalid Chunked Response]"),aP(X),l6(X))},Syi=function(X,t){var G=
X.JSC$19425_xmlHttpChunkStart_,y=t.indexOf("\n",G);
if(y==-1)return nXN;G=Number(t.substring(G,y));if(isNaN(G))return BAq;y+=1;if(y+G>t.length)return nXN;t=t.slice(y,y+G);X.JSC$19425_xmlHttpChunkStart_=y+G;return t};
vJ.prototype.cancel=function(){this.JSC$19425_cancelled_=!0;aP(this)};
var ku2=function(X){X.JSC$19425_watchDogTimeoutTime_=Date.now()+X.timeout_;ZPB(X,X.timeout_)},ZPB=function(X,t){if(X.JSC$19425_watchDogTimerId_!=null)throw Error("xk");
X.JSC$19425_watchDogTimerId_=RP((0,_.rT)(X.JSC$19429_onWatchDogTimeout_,X),t)},gXq=function(X){X.JSC$19425_watchDogTimerId_&&(_.tA.clearTimeout(X.JSC$19425_watchDogTimerId_),X.JSC$19425_watchDogTimerId_=null)};
vJ.prototype.JSC$19429_onWatchDogTimeout_=function(){this.JSC$19425_watchDogTimerId_=null;var X=Date.now();X-this.JSC$19425_watchDogTimeoutTime_>=0?(HPr(this.JSC$19425_channelDebug_,this.JSC$19425_requestUri_),this.JSC$19425_type_!=2&&(Uo(3),mm(17)),aP(this),this.JSC$19425_lastError_=2,l6(this)):(this.JSC$19425_channelDebug_.warning("WatchDog timer called too early"),ZPB(this,this.JSC$19425_watchDogTimeoutTime_-X))};
var l6=function(X){X.JSC$19425_channel_.state_==0||X.JSC$19425_cancelled_||sE4(X.JSC$19425_channel_,X)},aP=function(X){gXq(X);
_.Vs(X.JSC$19425_readyStateChangeThrottle_);X.JSC$19425_readyStateChangeThrottle_=null;X.JSC$19425_eventHandler_.removeAll();if(X.JSC$19425_xmlHttp_){var t=X.JSC$19425_xmlHttp_;X.JSC$19425_xmlHttp_=null;t.abort();t.dispose()}};
vJ.prototype.getLastError=function(){return this.JSC$19425_lastError_};
var A8q=function(X,t){try{var G=X.JSC$19425_channel_;if(G.state_!=0&&(G.JSC$19444_backChannelRequest_==X||qyB(G.forwardChannelRequestPool_,X)))if(!X.initialResponseDecoded_&&qyB(G.forwardChannelRequestPool_,X)&&G.state_==3){try{var y=G.wireCodec_.JSC$19439_parser_.parse(t)}catch(V){y=null}if(Array.isArray(y)&&y.length==3){t=y;if(t[0]==0)a:if(G.JSC$19444_channelDebug_.debug("Server claims our backchannel is missing."),G.JSC$19444_backChannelTimerId_)G.JSC$19444_channelDebug_.debug("But we are currently starting the request.");
else{if(G.JSC$19444_backChannelRequest_)if(G.JSC$19444_backChannelRequest_.JSC$19425_requestStartTime_+3E3<X.JSC$19425_requestStartTime_)Ck2(G),KnT(G);else break a;else G.JSC$19444_channelDebug_.warning("We do not have a BackChannel established");OPV(G);mm(18)}else{G.JSC$19444_lastPostResponseArrayId_=t[1];var w=G.JSC$19444_lastPostResponseArrayId_-G.JSC$19444_lastArrayId_;if(0<w){var z=t[2];G.JSC$19444_channelDebug_.debug(z+" bytes (in "+w+" arrays) are outstanding on the BackChannel");z<37500&&
G.enableStreaming_&&G.JSC$19444_backChannelRetryCount_==0&&!G.JSC$19444_deadBackChannelTimerId_&&(G.JSC$19444_deadBackChannelTimerId_=RP((0,_.rT)(G.JSC$19446_onBackChannelDead_,G),6E3))}}if(uBQ(G.forwardChannelRequestPool_)<=1&&G.forwardChannelFlushedCallback_){try{G.forwardChannelFlushedCallback_()}catch(V){}G.forwardChannelFlushedCallback_=void 0}}else G.JSC$19444_channelDebug_.debug("Bad POST response data returned"),x$(G,11)}else if((X.initialResponseDecoded_||G.JSC$19444_backChannelRequest_==
X)&&Ck2(G),!_.JA(t)){var B=G.wireCodec_.JSC$19439_parser_.parse(t);G.onInput_(B,X)}Uo(4)}catch(V){}};var QER=function(X,t){this.JSC$19432_mapId=X;this.map=t;this.context=null};var I4a=function(X){this.maxPoolSizeConfigured_=X||10;_.tA.PerformanceNavigationTiming?(X=_.tA.performance.getEntriesByType("navigation"),X=X.length>0&&(X[0].nextHopProtocol=="hq"||X[0].nextHopProtocol=="h2")):X=!!(_.tA.chrome&&_.tA.chrome.loadTimes&&_.tA.chrome.loadTimes()&&_.tA.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19435_maxSize_=X?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19435_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19435_request_=null;this.JSC$19435_pendingMessages_=
[]},WnR=function(X){return X.JSC$19435_request_?!0:X.requestPool_?X.requestPool_.size>=X.JSC$19435_maxSize_:!1},uBQ=function(X){return X.JSC$19435_request_?1:X.requestPool_?X.requestPool_.size:0},qyB=function(X,t){return X.JSC$19435_request_?X.JSC$19435_request_==t:X.requestPool_?X.requestPool_.has(t):!1},c8a=function(X,t){X.requestPool_?X.requestPool_.add(t):X.JSC$19435_request_=t},pZR=function(X,t){X.JSC$19435_request_&&X.JSC$19435_request_==t?X.JSC$19435_request_=null:X.requestPool_&&X.requestPool_.has(t)&&
X.requestPool_.delete(t)};
I4a.prototype.cancel=function(){this.JSC$19435_pendingMessages_=r8T(this);if(this.JSC$19435_request_)this.JSC$19435_request_.cancel(),this.JSC$19435_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var X=_.J(this.requestPool_.values()),t=X.next();!t.done;t=X.next())t.value.cancel();this.requestPool_.clear()}};
var r8T=function(X){if(X.JSC$19435_request_!=null)return X.JSC$19435_pendingMessages_.concat(X.JSC$19435_request_.JSC$19425_pendingMessages_);if(X.requestPool_!=null&&X.requestPool_.size!==0){var t=X.JSC$19435_pendingMessages_;X=_.J(X.requestPool_.values());for(var G=X.next();!G.done;G=X.next())t=t.concat(G.value.JSC$19425_pendingMessages_);return t}return _.aV(X.JSC$19435_pendingMessages_)},NAV=function(X,t){X.JSC$19435_pendingMessages_=X.JSC$19435_pendingMessages_.concat(t)};var PkN=function(X,t){var G=new i6;G.debug("TestLoadImage: loading "+X);if(_.tA.Image){var y=new Image;y.onload=_.WP(fM,G,"TestLoadImage: loaded",!0,t,y);y.onerror=_.WP(fM,G,"TestLoadImage: error",!1,t,y);y.onabort=_.WP(fM,G,"TestLoadImage: abort",!1,t,y);y.ontimeout=_.WP(fM,G,"TestLoadImage: timeout",!1,t,y);_.tA.setTimeout(function(){if(y.ontimeout)y.ontimeout()},1E4);
y.src=X}else t(!1)},EXH=function(X,t){var G=new i6,y=new AbortController,w=setTimeout(function(){y.abort();
fM(G,"TestPingServer: timeout",!1,t)},1E4);
fetch(X,{signal:y.signal}).then(function(z){clearTimeout(w);z.ok?fM(G,"TestPingServer: ok",!0,t):fM(G,"TestPingServer: server error",!1,t)}).catch(function(){clearTimeout(w);
fM(G,"TestPingServer: error",!1,t)})},fM=function(X,t,G,y,w){try{X.debug(t),w&&(w.onload=null,w.onerror=null,w.onabort=null,w.ontimeout=null),y(G)}catch(z){}};var UTR=function(){this.JSC$19439_parser_=new Eo};var MA=function(X,t,G){return G&&G.internalChannelParams?G.internalChannelParams[X]||t:t},X8=function(X){this.serverVersion_=0;
this.JSC$19444_outgoingMaps_=[];this.JSC$19444_channelDebug_=new i6;this.JSC$19444_hostPrefix_=this.JSC$19444_backChannelUri_=this.JSC$19444_forwardChannelUri_=this.JSC$19444_path_=this.JSC$19444_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19444_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19444_extraHeaders_=null;this.JSC$19444_nextMapId_=this.JSC$19444_nextRid_=0;this.JSC$19444_failFast_=MA("failFast",!1,X);this.enableStreaming_=this.JSC$19444_deadBackChannelTimerId_=
this.JSC$19444_backChannelTimerId_=this.JSC$19444_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19444_lastPostResponseArrayId_=this.JSC$19444_lastArrayId_=-1;this.JSC$19444_backChannelAttemptId_=this.JSC$19444_backChannelRetryCount_=this.JSC$19444_forwardChannelRetryCount_=0;this.JSC$19444_baseRetryDelayMs_=MA("baseRetryDelayMs",5E3,X);this.JSC$19444_retryDelaySeedMs_=MA("retryDelaySeedMs",1E4,X);this.JSC$19444_forwardChannelMaxRetries_=
MA("forwardChannelMaxRetries",2,X);this.JSC$19444_forwardChannelRequestTimeoutMs_=MA("forwardChannelRequestTimeoutMs",2E4,X);this.JSC$19444_xmlHttpFactory_=X&&X.xmlHttpFactory||void 0;this.networkTestUrl_=X&&X.networkTestUrl||void 0;this.usesFetchStreams_=X&&X.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19444_supportsCrossDomainXhrs_=X&&X.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new I4a(X&&X.concurrentRequestLimit);this.wireCodec_=new UTR;this.fastHandshake_=
X&&X.fastHandshake||!1;this.encodeInitMessageHeaders_=X&&X.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19444_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=X&&X.blockingHandshake||!1;X&&X.disableRedact&&this.JSC$19444_channelDebug_.disableRedact();X&&X.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
X&&X.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;X&&X.longPollingTimeout&&X.longPollingTimeout>0&&(this.longPollingTimeout_=X.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
X8.prototype.JSC$19446_channelVersion_=8;X8.prototype.state_=1;
X8.prototype.connect=function(X,t,G,y){this.JSC$19444_channelDebug_.debug("connect()");mm(0);this.JSC$19444_path_=X;this.JSC$19444_extraParams_=t||{};G&&y!==void 0&&(this.JSC$19444_extraParams_.OSID=G,this.JSC$19444_extraParams_.OAID=y);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19444_channelDebug_.debug("connectChannel_()");X=mTN(this,null,this.JSC$19444_path_);this.JSC$19444_channelDebug_.debug("GetForwardChannelUri: "+X);this.JSC$19444_forwardChannelUri_=X;RmB(this)};
X8.prototype.disconnect=function(){this.JSC$19444_channelDebug_.debug("disconnect()");iPa(this);if(this.state_==3){var X=this.JSC$19444_nextRid_++,t=this.JSC$19444_forwardChannelUri_.clone();_.yA(t,"SID",this.sid_);_.yA(t,"RID",X);_.yA(t,"TYPE","terminate");$k(this,t);X=new vJ(this,this.JSC$19444_channelDebug_,this.sid_,X);X.JSC$19425_type_=2;X.JSC$19425_baseUri_=_.ZM(t.clone());t=!1;if(_.tA.navigator&&_.tA.navigator.sendBeacon)try{t=_.tA.navigator.sendBeacon(X.JSC$19425_baseUri_.toString(),"")}catch(G){}!t&&
_.tA.Image&&((new Image).src=X.JSC$19425_baseUri_,t=!0);t||(X.JSC$19425_xmlHttp_=dT2(X.JSC$19425_channel_,null),X.JSC$19425_xmlHttp_.send(X.JSC$19425_baseUri_));X.JSC$19425_requestStartTime_=Date.now();ku2(X)}LnR(this)};
var KnT=function(X){X.JSC$19444_backChannelRequest_&&(hma(X),X.JSC$19444_backChannelRequest_.cancel(),X.JSC$19444_backChannelRequest_=null)},iPa=function(X){KnT(X);
X.JSC$19444_backChannelTimerId_&&(_.tA.clearTimeout(X.JSC$19444_backChannelTimerId_),X.JSC$19444_backChannelTimerId_=null);Ck2(X);X.forwardChannelRequestPool_.cancel();X.JSC$19444_forwardChannelTimerId_&&(typeof X.JSC$19444_forwardChannelTimerId_==="number"&&_.tA.clearTimeout(X.JSC$19444_forwardChannelTimerId_),X.JSC$19444_forwardChannelTimerId_=null)};
X8.prototype.getState=function(){return this.state_};
var RmB=function(X){WnR(X.forwardChannelRequestPool_)||X.JSC$19444_forwardChannelTimerId_||(X.JSC$19444_forwardChannelTimerId_=!0,_.UH(X.JSC$19446_onStartForwardChannelTimer_,X),X.JSC$19444_forwardChannelRetryCount_=0)},a4B=function(X,t){if(uBQ(X.forwardChannelRequestPool_)>=X.forwardChannelRequestPool_.JSC$19435_maxSize_-(X.JSC$19444_forwardChannelTimerId_?1:0))return!1;
if(X.JSC$19444_forwardChannelTimerId_)return X.JSC$19444_channelDebug_.debug("Use the retry request that is already scheduled."),X.JSC$19444_outgoingMaps_=t.JSC$19425_pendingMessages_.concat(X.JSC$19444_outgoingMaps_),!0;if(X.state_==1||X.state_==2||X.JSC$19444_forwardChannelRetryCount_>=(X.JSC$19444_failFast_?0:X.JSC$19444_forwardChannelMaxRetries_))return!1;X.JSC$19444_channelDebug_.debug("Going to retry POST");X.JSC$19444_forwardChannelTimerId_=RP((0,_.rT)(X.JSC$19446_onStartForwardChannelTimer_,
X,t),vXB(X,X.JSC$19444_forwardChannelRetryCount_));X.JSC$19444_forwardChannelRetryCount_++;return!0};
X8.prototype.JSC$19446_onStartForwardChannelTimer_=function(X){if(this.JSC$19444_forwardChannelTimerId_)if(this.JSC$19444_forwardChannelTimerId_=null,this.JSC$19444_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!X){this.JSC$19444_channelDebug_.debug("open_()");this.JSC$19444_nextRid_=Math.floor(Math.random()*1E5);X=this.JSC$19444_nextRid_++;var t=new vJ(this,this.JSC$19444_channelDebug_,"",X),G=this.JSC$19444_extraHeaders_;this.initHeaders_&&(G?(G=_.RH.clone(G),_.RH.extend(G,this.initHeaders_)):
G=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(t.JSC$19425_extraHeaders_=G,G=null);var y;if(this.fastHandshake_)a:{for(var w=y=0;w<this.JSC$19444_outgoingMaps_.length;w++){b:{var z=this.JSC$19444_outgoingMaps_[w];if("__data__"in z.map&&(z=z.map.__data__,typeof z==="string")){z=z.length;break b}z=void 0}if(z===void 0)break;y+=z;if(y>4096){y=w;break a}if(y===4096||w===this.JSC$19444_outgoingMaps_.length-1){y=w+1;break a}}y=1E3}else y=1E3;y=l4B(this,t,y);
w=this.JSC$19444_forwardChannelUri_.clone();_.yA(w,"RID",X);_.yA(w,"CVER",22);this.httpSessionIdParam_&&_.yA(w,"X-HTTP-Session-Id",this.httpSessionIdParam_);$k(this,w);G&&(this.encodeInitMessageHeaders_?y="headers="+_.ww(b9V(G))+"&"+y:this.httpHeadersOverwriteParam_&&k2R(w,this.httpHeadersOverwriteParam_,G));c8a(this.forwardChannelRequestPool_,t);this.blockingHandshake_&&_.yA(w,"TYPE","init");this.fastHandshake_?(_.yA(w,"$req",y),_.yA(w,"SID","null"),t.decodeInitialResponse_=!0,bPa(t,w,null)):bPa(t,
w,y);this.state_=2}}else this.state_==3&&(X?xTi(this,X):this.JSC$19444_outgoingMaps_.length==0?this.JSC$19444_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):WnR(this.forwardChannelRequestPool_)||(xTi(this),this.JSC$19444_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var xTi=function(X,t){var G;t?G=t.JSC$19425_rid_:G=X.JSC$19444_nextRid_++;var y=X.JSC$19444_forwardChannelUri_.clone();_.yA(y,"SID",X.sid_);_.yA(y,"RID",G);_.yA(y,"AID",X.JSC$19444_lastArrayId_);$k(X,y);X.httpHeadersOverwriteParam_&&X.JSC$19444_extraHeaders_&&k2R(y,X.httpHeadersOverwriteParam_,X.JSC$19444_extraHeaders_);G=new vJ(X,X.JSC$19444_channelDebug_,X.sid_,G,X.JSC$19444_forwardChannelRetryCount_+1);X.httpHeadersOverwriteParam_===null&&(G.JSC$19425_extraHeaders_=X.JSC$19444_extraHeaders_);t&&
(X.JSC$19444_outgoingMaps_=t.JSC$19425_pendingMessages_.concat(X.JSC$19444_outgoingMaps_));t=l4B(X,G,1E3);G.setTimeout(Math.round(X.JSC$19444_forwardChannelRequestTimeoutMs_*.5)+Math.round(X.JSC$19444_forwardChannelRequestTimeoutMs_*.5*Math.random()));c8a(X.forwardChannelRequestPool_,G);bPa(G,y,t)},$k=function(X,t){X.JSC$19444_extraParams_&&_.RH.forEach(X.JSC$19444_extraParams_,function(G,y){_.yA(t,y,G)});
X.handler_&&_.RH.forEach({},function(G,y){_.yA(t,y,G)})},l4B=function(X,t,G){G=Math.min(X.JSC$19444_outgoingMaps_.length,G);
var y=X.handler_?(0,_.rT)(X.handler_.JSC$19450_badMapError,X.handler_,X):null;a:{for(var w=X.JSC$19444_outgoingMaps_,z=-1;;){var B=["count="+G];z==-1?G>0?(z=w[0].JSC$19432_mapId,B.push("ofs="+z)):z=0:B.push("ofs="+z);for(var V=!0,b=0;b<G;b++){var e=w[b].JSC$19432_mapId,g=w[b].map;e-=z;if(e<0)z=Math.max(0,w[b].JSC$19432_mapId-100),V=!1;else try{e="req"+e+"_"||"";try{var F=g instanceof Map?g:Object.entries(g);for(var T=_.J(F),D=T.next();!D.done;D=T.next()){var h=_.J(D.value),u=h.next().value,W=h.next().value,
c=W;_.$h(W)&&(c=(0,_.v6)(W));B.push(e+u+"="+encodeURIComponent(c))}}catch(P){throw B.push(e+"type="+encodeURIComponent("_badmap")),P;}}catch(P){y&&y(g)}}if(V){F=B.join("&");break a}}F=void 0}X=X.JSC$19444_outgoingMaps_.splice(0,G);t.JSC$19425_pendingMessages_=X;return F},f4V=function(X){X.JSC$19444_backChannelRequest_||X.JSC$19444_backChannelTimerId_||(X.JSC$19444_backChannelAttemptId_=1,_.UH(X.JSC$19446_onStartBackChannelTimer_,X),X.JSC$19444_backChannelRetryCount_=0)},OPV=function(X){if(X.JSC$19444_backChannelRequest_||
X.JSC$19444_backChannelTimerId_||X.JSC$19444_backChannelRetryCount_>=3)return!1;
X.JSC$19444_channelDebug_.debug("Going to retry GET");X.JSC$19444_backChannelAttemptId_++;X.JSC$19444_backChannelTimerId_=RP((0,_.rT)(X.JSC$19446_onStartBackChannelTimer_,X),vXB(X,X.JSC$19444_backChannelRetryCount_));X.JSC$19444_backChannelRetryCount_++;return!0};
X8.prototype.JSC$19446_onStartBackChannelTimer_=function(){this.JSC$19444_backChannelTimerId_=null;U04(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19444_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19444_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19444_backChannelRequest_+" "+this.handshakeRttMs_);else{var X=4*this.handshakeRttMs_;this.JSC$19444_channelDebug_.info("BP detection timer enabled: "+X);this.bpDetectionTimerId_=RP((0,_.rT)(this.onBpDetectionTimer_,
this),X)}};
X8.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19444_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19444_backChannelRequest_.JSC$19425_xmlHttp_!=null){var X=this.JSC$19444_backChannelRequest_.JSC$19425_xmlHttp_.getResponseText();X&&this.JSC$19444_channelDebug_.warning("Timer should have been cancelled : "+X)}this.JSC$19444_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;mm(10);KnT(this);U04(this)}else this.JSC$19444_channelDebug_.warning("Invalid operation.")};
var hma=function(X){X.bpDetectionTimerId_!=null&&(X.JSC$19444_channelDebug_.debug("Cancel the BP detection timer."),_.tA.clearTimeout(X.bpDetectionTimerId_),X.bpDetectionTimerId_=null)},U04=function(X){X.JSC$19444_channelDebug_.debug("Creating new HttpRequest");
X.JSC$19444_backChannelRequest_=new vJ(X,X.JSC$19444_channelDebug_,X.sid_,"rpc",X.JSC$19444_backChannelAttemptId_);X.httpHeadersOverwriteParam_===null&&(X.JSC$19444_backChannelRequest_.JSC$19425_extraHeaders_=X.JSC$19444_extraHeaders_);X.JSC$19444_backChannelRequest_.JSC$19425_readyStateChangeThrottleMs_=0;var t=X.JSC$19444_backChannelUri_.clone();_.yA(t,"RID","rpc");_.yA(t,"SID",X.sid_);_.yA(t,"AID",X.JSC$19444_lastArrayId_);_.yA(t,"CI",X.enableStreaming_?"0":"1");!X.enableStreaming_&&X.longPollingTimeout_&&
_.yA(t,"TO",X.longPollingTimeout_);_.yA(t,"TYPE","xmlhttp");$k(X,t);X.httpHeadersOverwriteParam_&&X.JSC$19444_extraHeaders_&&k2R(t,X.httpHeadersOverwriteParam_,X.JSC$19444_extraHeaders_);X.backChannelRequestTimeoutMs_&&X.JSC$19444_backChannelRequest_.setTimeout(X.backChannelRequestTimeoutMs_);var G=X.JSC$19444_backChannelRequest_,y=X.JSC$19444_hostPrefix_;G.JSC$19425_type_=1;G.JSC$19425_baseUri_=_.ZM(t.clone());G.JSC$19425_postData_=null;G.decodeChunks_=!0;Va2(G,y);X.JSC$19444_channelDebug_.debug("New Request created")};
X8.prototype.JSC$19446_onBackChannelDead_=function(){this.JSC$19444_deadBackChannelTimerId_!=null&&(this.JSC$19444_deadBackChannelTimerId_=null,KnT(this),OPV(this),mm(19))};
var Ck2=function(X){X.JSC$19444_deadBackChannelTimerId_!=null&&(_.tA.clearTimeout(X.JSC$19444_deadBackChannelTimerId_),X.JSC$19444_deadBackChannelTimerId_=null)},sE4=function(X,t){X.JSC$19444_channelDebug_.debug("Request complete");
var G=null;if(X.JSC$19444_backChannelRequest_==t){Ck2(X);hma(X);X.JSC$19444_backChannelRequest_=null;var y=2}else if(qyB(X.forwardChannelRequestPool_,t))G=t.JSC$19425_pendingMessages_,pZR(X.forwardChannelRequestPool_,t),y=1;else return;if(X.state_!=0)if(t.JSC$19425_successful_)y==1?(Gu4(t.JSC$19425_postData_?t.JSC$19425_postData_.length:0,Date.now()-t.JSC$19425_requestStartTime_,X.JSC$19444_forwardChannelRetryCount_),RmB(X)):f4V(X);else{var w=t.JSC$19425_lastStatusCode_,z=t.getLastError();if(z==3||
z==0&&w>0)X.JSC$19444_channelDebug_.debug("Not retrying due to error type"),w>200&&(X.errorResponseStatusCode_=t.JSC$19425_lastStatusCode_);else{X.JSC$19444_channelDebug_.debug(function(){return"Maybe retrying, last error: "+J8B(z,X.errorResponseStatusCode_)});
if(y==1&&a4B(X,t)||y==2&&OPV(X))return;X.JSC$19444_channelDebug_.debug("Exceeded max number of retries")}G&&G.length>0&&NAV(X.forwardChannelRequestPool_,G);X.JSC$19444_channelDebug_.debug("Error: HTTP request failed");switch(z){case 1:x$(X,5);break;case 4:x$(X,10);break;case 3:x$(X,6);break;default:x$(X,2)}}},vXB=function(X,t){var G=X.JSC$19444_baseRetryDelayMs_+Math.floor(Math.random()*X.JSC$19444_retryDelaySeedMs_);
X.isActive()||(X.JSC$19444_channelDebug_.debug("Inactive channel"),G*=2);return G*t};
X8.prototype.onInput_=function(X,t){for(var G=0;G<X.length;G++){var y=X[G];this.JSC$19444_lastArrayId_=y[0];y=y[1];if(this.state_==2)if(y[0]=="c"){this.sid_=y[1];this.JSC$19444_hostPrefix_=y[2];var w=y[3];w!=null&&(this.JSC$19446_channelVersion_=w,this.JSC$19444_channelDebug_.info("VER="+this.JSC$19446_channelVersion_));w=y[4];w!=null&&(this.serverVersion_=w,this.JSC$19444_channelDebug_.info("SVER="+this.serverVersion_));y=y[5];y!=null&&typeof y==="number"&&y>0&&(this.backChannelRequestTimeoutMs_=
y*=1.5,this.JSC$19444_channelDebug_.info("backChannelRequestTimeoutMs_="+y));if(y=t.JSC$19425_xmlHttp_){var z=rm(y,"X-Client-Wire-Protocol");z&&(w=this.forwardChannelRequestPool_,!w.requestPool_&&(_.n_(z,"spdy")||_.n_(z,"quic")||_.n_(z,"h2"))&&(w.JSC$19435_maxSize_=w.maxPoolSizeConfigured_,w.requestPool_=new Set,w.JSC$19435_request_&&(c8a(w,w.JSC$19435_request_),w.JSC$19435_request_=null)));this.httpSessionIdParam_&&((y=rm(y,"X-HTTP-Session-Id"))?(this.httpSessionId_=y,_.yA(this.JSC$19444_forwardChannelUri_,
this.httpSessionIdParam_,y)):this.JSC$19444_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19450_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-t.JSC$19425_requestStartTime_,this.JSC$19444_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));y=t;w=mTN(this,this.JSC$19444_supportsCrossDomainXhrs_?this.JSC$19444_hostPrefix_:null,this.JSC$19444_path_);this.JSC$19444_channelDebug_.debug("GetBackChannelUri: "+
w);this.JSC$19444_backChannelUri_=w;y.initialResponseDecoded_?(this.JSC$19444_channelDebug_.debug("Upgrade the handshake request to a backchannel."),pZR(this.forwardChannelRequestPool_,y),w=y,(z=this.backChannelRequestTimeoutMs_)&&w.setTimeout(z),w.JSC$19425_watchDogTimerId_&&(gXq(w),ku2(w)),this.JSC$19444_backChannelRequest_=y):f4V(this);this.JSC$19444_outgoingMaps_.length>0&&RmB(this)}else y[0]!="stop"&&y[0]!="close"||x$(this,7);else this.state_==3&&(y[0]=="stop"||y[0]=="close"?y[0]=="stop"?x$(this,
7):this.disconnect():y[0]!="noop"&&this.handler_&&this.handler_.JSC$19450_channelHandleArray(y),this.JSC$19444_backChannelRetryCount_=0)}};
var x$=function(X,t){X.JSC$19444_channelDebug_.info("Error code "+t);if(t==2){var G=(0,_.rT)(X.testNetworkCallback_,X),y=X.networkTestUrl_,w=!y;y=new _.Vf(y||"//www.google.com/images/cleardot.gif");_.tA.location&&_.tA.location.protocol=="http"||_.j2(y,"https");_.ZM(y);w?PkN(y.toString(),G):EXH(y.toString(),G)}else mm(2);X.onError_(t)};
X8.prototype.testNetworkCallback_=function(X){X?(this.JSC$19444_channelDebug_.info("Successfully pinged google.com"),mm(2)):(this.JSC$19444_channelDebug_.info("Failed to ping google.com"),mm(1))};
X8.prototype.onError_=function(X){this.JSC$19444_channelDebug_.debug("HttpChannel: error - "+X);this.state_=0;this.handler_&&this.handler_.JSC$19450_channelError(X);LnR(this);iPa(this)};
var LnR=function(X){X.state_=0;X.nonAckedMapsAtChannelClose_=[];if(X.handler_){var t=r8T(X.forwardChannelRequestPool_);if(t.length!=0||X.JSC$19444_outgoingMaps_.length!=0)X.JSC$19444_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+t.length+", outgoing: "+X.JSC$19444_outgoingMaps_.length}),_.X4(X.nonAckedMapsAtChannelClose_,t),_.X4(X.nonAckedMapsAtChannelClose_,X.JSC$19444_outgoingMaps_),X.forwardChannelRequestPool_.JSC$19435_pendingMessages_.length=0,_.aV(X.JSC$19444_outgoingMaps_),
X.JSC$19444_outgoingMaps_.length=0;
X.handler_.JSC$19450_channelClosed()}},m0v=function(X){if(X.state_==0)return X.nonAckedMapsAtChannelClose_;
var t=[];_.X4(t,r8T(X.forwardChannelRequestPool_));_.X4(t,X.JSC$19444_outgoingMaps_);return t},mTN=function(X,t,G){var y=_.tW(G);
y.JSC$9962_domain_!=""?(t&&_.gE(y,t+"."+y.JSC$9962_domain_),_.FS(y,y.JSC$9962_port_)):(y=_.tA.location,y=Xaa(y.protocol,t?t+"."+y.hostname:y.hostname,+y.port,G));t=X.httpSessionIdParam_;G=X.httpSessionId_;t&&G&&_.yA(y,t,G);_.yA(y,"VER",X.JSC$19446_channelVersion_);$k(X,y);return y},dT2=function(X,t,G){if(t&&!X.JSC$19444_supportsCrossDomainXhrs_)throw Error("yk");
t=X.usesFetchStreams_&&!X.JSC$19444_xmlHttpFactory_?new _.a8(new tr({streamBinaryChunks:G})):new _.a8(X.JSC$19444_xmlHttpFactory_);t.JSC$9725_withCredentials_=X.JSC$19444_supportsCrossDomainXhrs_;return t};
X8.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var RUQ=function(){};
_.H=RUQ.prototype;_.H.JSC$19450_channelOpened=function(){};
_.H.JSC$19450_channelHandleArray=function(){};
_.H.JSC$19450_channelError=function(){};
_.H.JSC$19450_channelClosed=function(){};
_.H.isActive=function(){return!0};
_.H.JSC$19450_badMapError=function(){};var ieR=function(){},Gt=function(X,t){_.P6.call(this);
this.JSC$19453_channel_=new X8(t);this.JSC$19453_url_=X;this.messageUrlParams_=t&&t.messageUrlParams||null;X=t&&t.messageHeaders||null;t&&t.clientProtocolHeaderRequired&&(X?_.RH.set(X,"X-Client-Protocol","webchannel"):X=_.RH.create("X-Client-Protocol","webchannel"));this.JSC$19453_channel_.JSC$19444_extraHeaders_=X;X=t&&t.initMessageHeaders||null;t&&t.messageContentType&&(X?_.RH.set(X,"X-WebChannel-Content-Type",t.messageContentType):X=_.RH.create("X-WebChannel-Content-Type",t.messageContentType));
t&&t.clientProfile&&(X?_.RH.set(X,"X-WebChannel-Client-Profile",t.clientProfile):X=_.RH.create("X-WebChannel-Client-Profile",t.clientProfile));this.JSC$19453_channel_.initHeaders_=X;(X=t&&t.httpHeadersOverwriteParam)&&!_.JA(X)&&(this.JSC$19453_channel_.httpHeadersOverwriteParam_=X);this.supportsCrossDomainXhr_=t&&t.supportsCrossDomainXhr||!1;this.sendRawJson_=t&&t.sendRawJson||!1;(t=t&&t.httpSessionIdParam)&&!_.JA(t)&&(this.JSC$19453_channel_.httpSessionIdParam_=t,_.RH.containsKey(this.messageUrlParams_,
t)&&_.RH.remove(this.messageUrlParams_,t));this.channelHandler_=new td(this)};
_.sx(Gt,_.P6);Gt.prototype.open=function(){this.JSC$19453_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19453_channel_.JSC$19444_supportsCrossDomainXhrs_=!0);this.JSC$19453_channel_.connect(this.JSC$19453_url_,this.messageUrlParams_||void 0)};
Gt.prototype.close=function(){this.JSC$19453_channel_.disconnect()};
Gt.prototype.send=function(X){var t=this.JSC$19453_channel_;if(typeof X==="string"){var G={};G.__data__=X;X=G}else this.sendRawJson_&&(G={},G.__data__=(0,_.v6)(X),X=G);t.JSC$19444_outgoingMaps_.push(new QER(t.JSC$19444_nextMapId_++,X));t.state_==3&&RmB(t)};
Gt.prototype.disposeInternal=function(){this.JSC$19453_channel_.handler_=null;delete this.channelHandler_;this.JSC$19453_channel_.disconnect();delete this.JSC$19453_channel_;Gt.superClass_.disposeInternal.call(this)};
var L2v=function(X){lMq.call(this);X.__headers__&&(this.headers=X.__headers__,this.statusCode=X.__status__,delete X.__headers__,delete X.__status__);var t=X.__sm__;t?this.data=(this.metadataKey=_.RH.getAnyKey(t))?_.RH.get(t,this.metadataKey):t:this.data=X};
_.sx(L2v,lMq);var v_H=function(X){xg4.call(this);this.status=1;this.errorCode=X};
_.sx(v_H,xg4);var td=function(X){this.JSC$19460_channel_=X};
_.sx(td,RUQ);td.prototype.JSC$19450_channelOpened=function(){this.JSC$19460_channel_.dispatchEvent("w")};
td.prototype.JSC$19450_channelHandleArray=function(X){this.JSC$19460_channel_.dispatchEvent(new L2v(X))};
td.prototype.JSC$19450_channelError=function(X){this.JSC$19460_channel_.dispatchEvent(new v_H(X))};
td.prototype.JSC$19450_channelClosed=function(){this.JSC$19460_channel_.dispatchEvent("x")};
var a9i=function(X,t){this.transportChannel_=X;this.JSC$19463_channel_=t},l9R=function(X){return m0v(X.JSC$19463_channel_).map(function(t){var G=X.transportChannel_;
t=t.map;"__data__"in t?(t=t.__data__,G=G.sendRawJson_?(0,_.AKo)(t):t):G=t;return G})};var yJ=function(X){x0N.dispatchEvent(new f9Q(x0N,X))},x0N=new _.P6,f9Q=function(X,t){_.W6.call(this,"statevent",X);
this.stat=t};
_.S(f9Q,_.W6);var w7=function(X,t,G,y,w){this.JSC$19468_channel_=X;this.JSC$19468_channelDebug_=t;this.sid_=G;this.JSC$19468_rid_=y;this.JSC$19468_retryId_=w||1;this.timeout_=45E3;this.JSC$19468_eventHandler_=new _.AL(this);this.pollingTimer_=new _.Tp;this.pollingTimer_.setInterval(250)};
_.H=w7.prototype;_.H.JSC$19470_extraHeaders_=null;_.H.JSC$19470_successful_=!1;_.H.JSC$19470_watchDogTimerId_=null;_.H.JSC$19470_watchDogTimeoutTime_=null;_.H.JSC$19470_requestStartTime_=null;_.H.JSC$19470_type_=null;_.H.JSC$19470_baseUri_=null;_.H.JSC$19470_requestUri_=null;_.H.JSC$19470_postData_=null;_.H.JSC$19470_xmlHttp_=null;_.H.JSC$19470_xmlHttpChunkStart_=0;_.H.trident_=null;_.H.JSC$19470_verb_=null;_.H.JSC$19470_lastError_=null;_.H.JSC$19470_lastStatusCode_=-1;_.H.sendClose_=!0;
_.H.JSC$19470_cancelled_=!1;_.H.JSC$19470_readyStateChangeThrottleMs_=0;_.H.JSC$19470_readyStateChangeThrottle_=null;var MfR=function(X,t){switch(X){case 0:return"Non-200 return code ("+t+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},XFT={},$Pi={};
w7.prototype.setTimeout=function(X){this.timeout_=X};
var G4a=function(X,t,G){X.JSC$19470_type_=1;X.JSC$19470_baseUri_=_.ZM(t.clone());X.JSC$19470_postData_=G;X.decodeChunks_=!0;tO4(X,null)},yPB=function(X,t,G,y,w){X.JSC$19470_type_=1;
X.JSC$19470_baseUri_=_.ZM(t.clone());X.JSC$19470_postData_=null;X.decodeChunks_=G;w&&(X.sendClose_=!1);tO4(X,y)},tO4=function(X,t){X.JSC$19470_requestStartTime_=Date.now();
wF4(X);X.JSC$19470_requestUri_=X.JSC$19470_baseUri_.clone();Of(X.JSC$19470_requestUri_,"t",X.JSC$19468_retryId_);X.JSC$19470_xmlHttpChunkStart_=0;X.JSC$19470_xmlHttp_=X.JSC$19468_channel_.JSC$19477_createXhrIo(X.JSC$19468_channel_.JSC$19477_shouldUseSecondaryDomains()?t:null);X.JSC$19470_readyStateChangeThrottleMs_>0&&(X.JSC$19470_readyStateChangeThrottle_=new _.d2((0,_.rT)(X.JSC$19470_xmlHttpHandler_,X,X.JSC$19470_xmlHttp_),X.JSC$19470_readyStateChangeThrottleMs_));X.JSC$19468_eventHandler_.listen(X.JSC$19470_xmlHttp_,
"readystatechange",X.JSC$19470_readyStateChangeHandler_);t=X.JSC$19470_extraHeaders_?_.RH.clone(X.JSC$19470_extraHeaders_):{};X.JSC$19470_postData_?(X.JSC$19470_verb_="POST",t["Content-Type"]="application/x-www-form-urlencoded",X.JSC$19470_xmlHttp_.send(X.JSC$19470_requestUri_,X.JSC$19470_verb_,X.JSC$19470_postData_,t)):(X.JSC$19470_verb_="GET",X.sendClose_&&!_.C9&&(t.Connection="close"),X.JSC$19470_xmlHttp_.send(X.JSC$19470_requestUri_,X.JSC$19470_verb_,null,t));X.JSC$19468_channel_.notifyServerReachabilityEvent(1);
t=X.JSC$19468_channelDebug_;var G=X.JSC$19470_postData_;if(G){var y="";G=G.split("&");for(var w=0;w<G.length;w++){var z=G[w].split("=");if(z.length>1){var B=z[0];z=z[1];var V=B.split("_");y=V.length>=2&&V[1]=="type"?y+(B+"="+z+"&"):y+(B+"=redacted&")}}}else y=null;t.info("XMLHTTP REQ ("+X.JSC$19468_rid_+") [attempt "+X.JSC$19468_retryId_+"]: "+X.JSC$19470_verb_+"\n"+X.JSC$19470_requestUri_+"\n"+y)};
w7.prototype.JSC$19470_readyStateChangeHandler_=function(X){X=X.target;var t=this.JSC$19470_readyStateChangeThrottle_;t&&_.li(X)==3?(this.JSC$19468_channelDebug_.debug("Throttling readystatechange."),t.fire()):this.JSC$19470_xmlHttpHandler_(X)};
w7.prototype.JSC$19470_xmlHttpHandler_=function(X){try{if(X==this.JSC$19470_xmlHttp_)a:{var t=_.li(this.JSC$19470_xmlHttp_),G=this.JSC$19470_xmlHttp_.JSC$9725_lastErrorCode_,y=this.JSC$19470_xmlHttp_.getStatus();if(_.C9&&!_.K9("420+")){if(t<4)break a}else if(t<3||t==3&&!this.JSC$19470_xmlHttp_.getResponseText())break a;this.JSC$19470_cancelled_||t!=4||G==7||(G==8||y<=0?this.JSC$19468_channel_.notifyServerReachabilityEvent(3):this.JSC$19468_channel_.notifyServerReachabilityEvent(2));zOR(this);var w=
this.JSC$19470_xmlHttp_.getStatus();this.JSC$19470_lastStatusCode_=w;var z=this.JSC$19470_xmlHttp_.getResponseText();z||this.JSC$19468_channelDebug_.debug("No response text for uri "+this.JSC$19470_requestUri_+" status "+w);this.JSC$19470_successful_=w==200;this.JSC$19468_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19468_rid_+") [ attempt "+this.JSC$19468_retryId_+"]: "+this.JSC$19470_verb_+"\n"+this.JSC$19470_requestUri_+"\n"+t+" "+w);if(this.JSC$19470_successful_){t==4&&zt(this);if(this.decodeChunks_){for(X=
!0;!this.JSC$19470_cancelled_&&this.JSC$19470_xmlHttpChunkStart_<z.length;){var B=HcT(this,z);if(B==$Pi){t==4&&(this.JSC$19470_lastError_=4,yJ(15),X=!1);H9(this.JSC$19468_channelDebug_,this.JSC$19468_rid_,null,"[Incomplete Response]");break}else if(B==XFT){this.JSC$19470_lastError_=4;yJ(16);H9(this.JSC$19468_channelDebug_,this.JSC$19468_rid_,z,"[Invalid Chunk]");X=!1;break}else H9(this.JSC$19468_channelDebug_,this.JSC$19468_rid_,B,null),oni(this,B)}t==4&&z.length==0&&(this.JSC$19470_lastError_=1,
yJ(17),X=!1);this.JSC$19470_successful_=this.JSC$19470_successful_&&X;X||(H9(this.JSC$19468_channelDebug_,this.JSC$19468_rid_,z,"[Invalid Chunked Response]"),zt(this),JPv(this))}else H9(this.JSC$19468_channelDebug_,this.JSC$19468_rid_,z,null),oni(this,z);this.JSC$19470_successful_&&!this.JSC$19470_cancelled_&&(t==4?this.JSC$19468_channel_.JSC$19477_onRequestComplete(this):(this.JSC$19470_successful_=!1,wF4(this)))}else w==400&&z.indexOf("Unknown SID")>0?(this.JSC$19470_lastError_=3,yJ(13),this.JSC$19468_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19468_rid_+")")):(this.JSC$19470_lastError_=0,yJ(14),this.JSC$19468_channelDebug_.warning("XMLHTTP Bad status "+w+" ("+this.JSC$19468_rid_+")")),zt(this),JPv(this)}else this.JSC$19468_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(V){this.JSC$19468_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var HcT=function(X,t){var G=X.JSC$19470_xmlHttpChunkStart_,y=t.indexOf("\n",G);if(y==-1)return $Pi;G=Number(t.substring(G,y));if(isNaN(G))return XFT;y+=1;if(y+G>t.length)return $Pi;t=t.slice(y,y+G);X.JSC$19470_xmlHttpChunkStart_=y+G;return t};
w7.prototype.cancel=function(){this.JSC$19470_cancelled_=!0;zt(this)};
var wF4=function(X){X.JSC$19470_watchDogTimeoutTime_=Date.now()+X.timeout_;BzQ(X,X.timeout_)},BzQ=function(X,t){if(X.JSC$19470_watchDogTimerId_!=null)throw Error("xk");
X.JSC$19470_watchDogTimerId_=xL((0,_.rT)(X.JSC$19470_onWatchDogTimeout_,X),t)},zOR=function(X){X.JSC$19470_watchDogTimerId_&&(_.tA.clearTimeout(X.JSC$19470_watchDogTimerId_),X.JSC$19470_watchDogTimerId_=null)};
w7.prototype.JSC$19470_onWatchDogTimeout_=function(){this.JSC$19470_watchDogTimerId_=null;var X=Date.now();X-this.JSC$19470_watchDogTimeoutTime_>=0?(this.JSC$19468_channelDebug_.info("TIMEOUT: "+this.JSC$19470_requestUri_),this.JSC$19470_type_!=2&&this.JSC$19468_channel_.notifyServerReachabilityEvent(3),zt(this),this.JSC$19470_lastError_=2,yJ(18),JPv(this)):(this.JSC$19468_channelDebug_.warning("WatchDog timer called too early"),BzQ(this,this.JSC$19470_watchDogTimeoutTime_-X))};
var JPv=function(X){X.JSC$19468_channel_.JSC$19477_isClosed()||X.JSC$19470_cancelled_||X.JSC$19468_channel_.JSC$19477_onRequestComplete(X)},zt=function(X){zOR(X);
_.Vs(X.JSC$19470_readyStateChangeThrottle_);X.JSC$19470_readyStateChangeThrottle_=null;X.pollingTimer_.stop();X.JSC$19468_eventHandler_.removeAll();if(X.JSC$19470_xmlHttp_){var t=X.JSC$19470_xmlHttp_;X.JSC$19470_xmlHttp_=null;t.abort();t.dispose()}X.trident_&&(X.trident_=null)};
w7.prototype.getLastError=function(){return this.JSC$19470_lastError_};
var oni=function(X,t){try{X.JSC$19468_channel_.JSC$19477_onRequestData(X,t),X.JSC$19468_channel_.notifyServerReachabilityEvent(4)}catch(G){}};var H9=function(X,t,G,y){var w=X.info;a:if(G&&G!="y2f%"){try{var z=JSON.parse(G);if(z)for(var B=0;B<z.length;B++)if(Array.isArray(z[B])){var V=z[B];if(!(V.length<2)){var b=V[1];if(Array.isArray(b)&&!(b.length<1)){var e=b[0];if(e!="noop"&&e!="stop")for(var g=1;g<b.length;g++)b[g]=""}}}var F=(0,_.v6)(z);break a}catch(T){X.debug("Exception parsing expected JS array - probably was not JS");F=G;break a}F=void 0}else F=G;w.call(X,"XMLHTTP TEXT ("+t+"): "+F+(y?" "+y:""))};
fn.prototype.debug=function(X){this.info(X)};
fn.prototype.info=function(){};
fn.prototype.warning=function(){};var nnH=function(X,t){this.JSC$19475_channel_=X;this.JSC$19475_channelDebug_=t;this.JSC$19475_parser_=new Eo};
_.H=nnH.prototype;_.H.JSC$19477_extraHeaders_=null;_.H.JSC$19477_request_=null;_.H.receivedIntermediateResult_=!1;_.H.JSC$19477_path_=null;_.H.state_=null;_.H.JSC$19477_lastStatusCode_=-1;_.H.JSC$19477_hostPrefix_=null;_.H.blockedPrefix_=null;
_.H.connect=function(X){this.JSC$19477_path_=X;X=VOi(this.JSC$19475_channel_,this.JSC$19477_path_);yJ(3);Date.now();var t=this.JSC$19475_channel_.firstTestResults_;t!=null?(this.JSC$19477_hostPrefix_=t[0],(this.blockedPrefix_=t[1])?(this.state_=1,bca(this)):(this.state_=2,k4V(this))):(Of(X,"MODE","init"),this.JSC$19477_request_=new w7(this,this.JSC$19475_channelDebug_),this.JSC$19477_request_.JSC$19470_extraHeaders_=this.JSC$19477_extraHeaders_,yPB(this.JSC$19477_request_,X,!1,null,!0),this.state_=
0)};
var bca=function(X){var t=dP2(X.JSC$19475_channel_,X.blockedPrefix_,"/mail/images/cleardot.gif");_.ZM(t);IlB(t.toString(),5E3,(0,_.rT)(X.checkBlockedCallback_,X),3,2E3);X.notifyServerReachabilityEvent(1)};
nnH.prototype.checkBlockedCallback_=function(X){if(X)this.state_=2,k4V(this);else{yJ(4);var t=this.JSC$19475_channel_;t.JSC$19478_channelDebug_.debug("Test Connection Blocked");t.JSC$19482_lastStatusCode_=t.connectionTest_.JSC$19477_lastStatusCode_;ot(t,9)}X&&this.notifyServerReachabilityEvent(2)};
var k4V=function(X){X.JSC$19475_channelDebug_.debug("TestConnection: starting stage 2");var t=X.JSC$19475_channel_.secondTestResults_;t!=null?(X.JSC$19475_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+t?"Buffered":"Unbuffered"),yJ(5),t?(yJ(11),Jd(X.JSC$19475_channel_,X,!1)):(yJ(12),Jd(X.JSC$19475_channel_,X,!0))):(X.JSC$19477_request_=new w7(X,X.JSC$19475_channelDebug_),X.JSC$19477_request_.JSC$19470_extraHeaders_=X.JSC$19477_extraHeaders_,t=eOi(X.JSC$19475_channel_,
X.JSC$19477_hostPrefix_,X.JSC$19477_path_),yJ(5),Of(t,"TYPE","xmlhttp"),yPB(X.JSC$19477_request_,t,!1,X.JSC$19477_hostPrefix_,!1))};
_.H=nnH.prototype;_.H.JSC$19477_createXhrIo=function(X){return this.JSC$19475_channel_.JSC$19477_createXhrIo(X)};
_.H.abort=function(){this.JSC$19477_request_&&(this.JSC$19477_request_.cancel(),this.JSC$19477_request_=null);this.JSC$19477_lastStatusCode_=-1};
_.H.JSC$19477_isClosed=function(){return!1};
_.H.JSC$19477_onRequestData=function(X,t){this.JSC$19477_lastStatusCode_=X.JSC$19470_lastStatusCode_;if(this.state_==0)if(this.JSC$19475_channelDebug_.debug("TestConnection: Got data for stage 1"),t){try{var G=this.JSC$19475_parser_.parse(t)}catch(y){j9N(this.JSC$19475_channel_,this);return}this.JSC$19477_hostPrefix_=G[0];this.blockedPrefix_=G[1]}else this.JSC$19475_channelDebug_.debug("TestConnection: Null responseText"),j9N(this.JSC$19475_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(yJ(7),Date.now()):t=="11111"?(yJ(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19477_lastStatusCode_=200,this.JSC$19477_request_.cancel(),this.JSC$19475_channelDebug_.debug("Test connection succeeded; using streaming connection"),yJ(12),Jd(this.JSC$19475_channel_,this,!0)):(yJ(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.H.JSC$19477_onRequestComplete=function(){this.JSC$19477_lastStatusCode_=this.JSC$19477_request_.JSC$19470_lastStatusCode_;this.JSC$19477_request_.JSC$19470_successful_?this.state_==0?(this.JSC$19475_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,bca(this)):(this.state_=2,k4V(this))):this.state_==2&&(this.JSC$19475_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19475_channelDebug_.debug("Test connection succeeded; using streaming connection"),
yJ(12),Jd(this.JSC$19475_channel_,this,!0)):(this.JSC$19475_channelDebug_.debug("Test connection failed; not using streaming"),yJ(11),Jd(this.JSC$19475_channel_,this,!1))):(this.JSC$19475_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?yJ(9):this.state_==2&&yJ(10),j9N(this.JSC$19475_channel_,this,this.JSC$19477_request_.getLastError()))};
_.H.JSC$19477_shouldUseSecondaryDomains=function(){return this.JSC$19475_channel_.JSC$19477_shouldUseSecondaryDomains()};
_.H.isActive=function(){return this.JSC$19475_channel_.isActive()};
_.H.notifyServerReachabilityEvent=function(X){this.JSC$19475_channel_.notifyServerReachabilityEvent(X)};var B9=function(X,t,G){this.state_=1;this.JSC$19478_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19478_channelDebug_=new fn;this.JSC$19478_parser_=new Eo;this.firstTestResults_=X||null;this.secondTestResults_=t!=null?t:null;this.asyncTest_=G||!1},gn4=function(X,t){this.JSC$19480_mapId=X;
this.map=t;this.context=null};
_.H=B9.prototype;_.H.JSC$19482_extraHeaders_=null;_.H.JSC$19482_extraParams_=null;_.H.forwardChannelRequest_=null;_.H.JSC$19482_backChannelRequest_=null;_.H.JSC$19482_path_=null;_.H.JSC$19482_forwardChannelUri_=null;_.H.JSC$19482_backChannelUri_=null;_.H.JSC$19482_hostPrefix_=null;_.H.JSC$19482_nextRid_=0;_.H.JSC$19482_nextMapId_=0;_.H.handler_=null;_.H.JSC$19482_forwardChannelTimerId_=null;_.H.JSC$19482_backChannelTimerId_=null;_.H.JSC$19482_deadBackChannelTimerId_=null;_.H.connectionTest_=null;
_.H.useChunked_=null;_.H.JSC$19482_lastArrayId_=-1;_.H.JSC$19482_lastPostResponseArrayId_=-1;_.H.JSC$19482_lastStatusCode_=-1;_.H.JSC$19482_forwardChannelRetryCount_=0;_.H.JSC$19482_backChannelRetryCount_=0;_.H.JSC$19482_channelVersion_=8;var FYN={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},Tzi=function(X,t,G,y){_.W6.call(this,"timingevent",X);this.size=t;this.rtt=G;this.retries=y};
_.sx(Tzi,_.W6);var APV=function(X){_.W6.call(this,"serverreachability",X)};
_.sx(APV,_.W6);B9.prototype.connect=function(X,t,G,y,w){this.JSC$19478_channelDebug_.debug("connect()");yJ(0);this.JSC$19482_path_=t;this.JSC$19482_extraParams_=G||{};y&&w!==void 0&&(this.JSC$19482_extraParams_.OSID=y,this.JSC$19482_extraParams_.OAID=w);this.asyncTest_?(xL((0,_.rT)(this.connectTest_,this,X),100),YEB(this)):this.connectTest_(X)};
B9.prototype.disconnect=function(){this.JSC$19478_channelDebug_.debug("disconnect()");s9N(this);if(this.state_==3){var X=this.JSC$19482_nextRid_++,t=this.JSC$19482_forwardChannelUri_.clone();_.yA(t,"SID",this.sid_);_.yA(t,"RID",X);_.yA(t,"TYPE","terminate");nR(this,t);X=new w7(this,this.JSC$19478_channelDebug_,this.sid_,X);X.JSC$19470_type_=2;X.JSC$19470_baseUri_=_.ZM(t.clone());(new Image).src=X.JSC$19470_baseUri_.toString();X.JSC$19470_requestStartTime_=Date.now();wF4(X)}DPH(this)};
B9.prototype.connectTest_=function(X){this.JSC$19478_channelDebug_.debug("connectTest_()");this.connectionTest_=new nnH(this,this.JSC$19478_channelDebug_);this.connectionTest_.JSC$19477_extraHeaders_=this.JSC$19482_extraHeaders_;this.connectionTest_.JSC$19475_parser_=this.JSC$19478_parser_;this.connectionTest_.connect(X)};
var YEB=function(X){X.JSC$19478_channelDebug_.debug("connectChannel_()");X.JSC$19482_ensureInState_(1,0);X.JSC$19482_forwardChannelUri_=VOi(X,X.JSC$19482_path_);SER(X)},s9N=function(X){X.connectionTest_&&(X.connectionTest_.abort(),X.connectionTest_=null);
X.JSC$19482_backChannelRequest_&&(X.JSC$19482_backChannelRequest_.cancel(),X.JSC$19482_backChannelRequest_=null);X.JSC$19482_backChannelTimerId_&&(_.tA.clearTimeout(X.JSC$19482_backChannelTimerId_),X.JSC$19482_backChannelTimerId_=null);hOT(X);X.forwardChannelRequest_&&(X.forwardChannelRequest_.cancel(),X.forwardChannelRequest_=null);X.JSC$19482_forwardChannelTimerId_&&(_.tA.clearTimeout(X.JSC$19482_forwardChannelTimerId_),X.JSC$19482_forwardChannelTimerId_=null)},Zci=function(X,t){if(X.state_==0)throw Error("Ak");
X.JSC$19478_outgoingMaps_.length==1E3&&X.JSC$19478_parser_.stringify(t);X.JSC$19478_outgoingMaps_.push(new gn4(X.JSC$19482_nextMapId_++,t));X.state_!=2&&X.state_!=3||SER(X)};
B9.prototype.JSC$19477_isClosed=function(){return this.state_==0};
B9.prototype.getState=function(){return this.state_};
var SER=function(X){X.forwardChannelRequest_||X.JSC$19482_forwardChannelTimerId_||(X.JSC$19482_forwardChannelTimerId_=xL((0,_.rT)(X.JSC$19482_onStartForwardChannelTimer_,X),0),X.JSC$19482_forwardChannelRetryCount_=0)};
B9.prototype.JSC$19482_onStartForwardChannelTimer_=function(X){this.JSC$19482_forwardChannelTimerId_=null;qE2(this,X)};
var qE2=function(X,t){X.JSC$19478_channelDebug_.debug("startForwardChannel_");if(X.state_==1){if(!t){X.JSC$19478_channelDebug_.debug("open_()");X.JSC$19482_nextRid_=Math.floor(Math.random()*1E5);t=X.JSC$19482_nextRid_++;var G=new w7(X,X.JSC$19478_channelDebug_,"",t);G.JSC$19470_extraHeaders_=X.JSC$19482_extraHeaders_;var y=CgT(X),w=X.JSC$19482_forwardChannelUri_.clone();_.yA(w,"RID",t);_.yA(w,"CVER","1");nR(X,w);G4a(G,w,y);X.forwardChannelRequest_=G;X.state_=2}}else X.state_==3&&(t?KY2(X,t):X.JSC$19478_outgoingMaps_.length==
0?X.JSC$19478_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):X.forwardChannelRequest_||(KY2(X),X.JSC$19478_channelDebug_.debug("startForwardChannel_ finished, sent request")))},KY2=function(X,t){if(t)if(X.JSC$19482_channelVersion_>6){X.JSC$19478_outgoingMaps_=X.pendingMaps_.concat(X.JSC$19478_outgoingMaps_);
X.pendingMaps_.length=0;var G=X.JSC$19482_nextRid_-1;t=CgT(X)}else G=t.JSC$19468_rid_,t=t.JSC$19470_postData_;else G=X.JSC$19482_nextRid_++,t=CgT(X);var y=X.JSC$19482_forwardChannelUri_.clone();_.yA(y,"SID",X.sid_);_.yA(y,"RID",G);_.yA(y,"AID",X.JSC$19482_lastArrayId_);nR(X,y);G=new w7(X,X.JSC$19478_channelDebug_,X.sid_,G,X.JSC$19482_forwardChannelRetryCount_+1);G.JSC$19470_extraHeaders_=X.JSC$19482_extraHeaders_;G.setTimeout(1E4+Math.round(1E4*Math.random()));X.forwardChannelRequest_=G;G4a(G,y,t)},
nR=function(X,t){X.handler_&&(X=X.handler_.JSC$19489_getAdditionalParams())&&_.RH.forEach(X,function(G,y){_.yA(t,y,G)})},CgT=function(X){var t=Math.min(X.JSC$19478_outgoingMaps_.length,1E3),G=["count="+t];
if(X.JSC$19482_channelVersion_>6&&t>0){var y=X.JSC$19478_outgoingMaps_[0].JSC$19480_mapId;G.push("ofs="+y)}else y=0;for(var w={},z=0;z<t;w={mapId$jscomp$3:void 0},z++){w.mapId$jscomp$3=X.JSC$19478_outgoingMaps_[z].JSC$19480_mapId;var B=X.JSC$19478_outgoingMaps_[z].map;w.mapId$jscomp$3=X.JSC$19482_channelVersion_<=6?z:w.mapId$jscomp$3-y;try{_.RH.forEach(B,function(V){return function(b,e){G.push("req"+V.mapId$jscomp$3+"_"+e+"="+encodeURIComponent(b))}}(w))}catch(V){G.push("req"+w.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}X.pendingMaps_=X.pendingMaps_.concat(X.JSC$19478_outgoingMaps_.splice(0,t));
return G.join("&")},Ocr=function(X){X.JSC$19482_backChannelRequest_||X.JSC$19482_backChannelTimerId_||(X.JSC$19482_backChannelAttemptId_=1,X.JSC$19482_backChannelTimerId_=xL((0,_.rT)(X.JSC$19482_onStartBackChannelTimer_,X),0),X.JSC$19482_backChannelRetryCount_=0)},Q9r=function(X){if(X.JSC$19482_backChannelRequest_||X.JSC$19482_backChannelTimerId_||X.JSC$19482_backChannelRetryCount_>=3)return!1;
X.JSC$19478_channelDebug_.debug("Going to retry GET");X.JSC$19482_backChannelAttemptId_++;X.JSC$19482_backChannelTimerId_=xL((0,_.rT)(X.JSC$19482_onStartBackChannelTimer_,X),usa(X,X.JSC$19482_backChannelRetryCount_));X.JSC$19482_backChannelRetryCount_++;return!0};
B9.prototype.JSC$19482_onStartBackChannelTimer_=function(){this.JSC$19482_backChannelTimerId_=null;this.JSC$19478_channelDebug_.debug("Creating new HttpRequest");this.JSC$19482_backChannelRequest_=new w7(this,this.JSC$19478_channelDebug_,this.sid_,"rpc",this.JSC$19482_backChannelAttemptId_);this.JSC$19482_backChannelRequest_.JSC$19470_extraHeaders_=this.JSC$19482_extraHeaders_;this.JSC$19482_backChannelRequest_.JSC$19470_readyStateChangeThrottleMs_=0;var X=this.JSC$19482_backChannelUri_.clone();_.yA(X,
"RID","rpc");_.yA(X,"SID",this.sid_);_.yA(X,"CI",this.useChunked_?"0":"1");_.yA(X,"AID",this.JSC$19482_lastArrayId_);nR(this,X);_.yA(X,"TYPE","xmlhttp");yPB(this.JSC$19482_backChannelRequest_,X,!0,this.JSC$19482_hostPrefix_,!1);this.JSC$19478_channelDebug_.debug("New Request created")};
var Jd=function(X,t,G){X.JSC$19478_channelDebug_.debug("Test Connection Finished");X.useChunked_=X.secondTestResults_==null?G:!X.secondTestResults_;X.JSC$19482_lastStatusCode_=t.JSC$19477_lastStatusCode_;X.asyncTest_||YEB(X)},j9N=function(X,t){X.JSC$19478_channelDebug_.debug("Test Connection Failed");
X.JSC$19482_lastStatusCode_=t.JSC$19477_lastStatusCode_;ot(X,2)};
B9.prototype.JSC$19477_onRequestData=function(X,t){if(this.state_!=0&&(this.JSC$19482_backChannelRequest_==X||this.forwardChannelRequest_==X))if(this.JSC$19482_lastStatusCode_=X.JSC$19470_lastStatusCode_,this.forwardChannelRequest_==X&&this.state_==3)if(this.JSC$19482_channelVersion_>7){try{var G=this.JSC$19478_parser_.parse(t)}catch(y){G=null}if(Array.isArray(G)&&G.length==3)if(t=G,t[0]==0)a:if(this.JSC$19478_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19482_backChannelTimerId_)this.JSC$19478_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19482_backChannelRequest_)if(this.JSC$19482_backChannelRequest_.JSC$19470_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19470_requestStartTime_)hOT(this),this.JSC$19482_backChannelRequest_.cancel(),this.JSC$19482_backChannelRequest_=null;else break a;else this.JSC$19478_channelDebug_.warning("We do not have a BackChannel established");Q9r(this);yJ(19)}else this.JSC$19482_lastPostResponseArrayId_=t[1],X=this.JSC$19482_lastPostResponseArrayId_-this.JSC$19482_lastArrayId_,0<
X&&(t=t[2],this.JSC$19478_channelDebug_.debug(t+" bytes (in "+X+" arrays) are outstanding on the BackChannel"),t<37500&&this.useChunked_&&this.JSC$19482_backChannelRetryCount_==0&&!this.JSC$19482_deadBackChannelTimerId_&&(this.JSC$19482_deadBackChannelTimerId_=xL((0,_.rT)(this.JSC$19482_onBackChannelDead_,this),6E3)));else this.JSC$19478_channelDebug_.debug("Bad POST response data returned"),ot(this,11)}else t!="y2f%"&&(this.JSC$19478_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
ot(this,11));else this.JSC$19482_backChannelRequest_==X&&hOT(this),_.JA(t)||(X=this.JSC$19478_parser_.parse(t),this.onInput_(X))};
B9.prototype.JSC$19482_onBackChannelDead_=function(){this.JSC$19482_deadBackChannelTimerId_!=null&&(this.JSC$19482_deadBackChannelTimerId_=null,this.JSC$19482_backChannelRequest_.cancel(),this.JSC$19482_backChannelRequest_=null,Q9r(this),yJ(20))};
var hOT=function(X){X.JSC$19482_deadBackChannelTimerId_!=null&&(_.tA.clearTimeout(X.JSC$19482_deadBackChannelTimerId_),X.JSC$19482_deadBackChannelTimerId_=null)};
B9.prototype.JSC$19477_onRequestComplete=function(X){this.JSC$19478_channelDebug_.debug("Request complete");if(this.JSC$19482_backChannelRequest_==X){hOT(this);this.JSC$19482_backChannelRequest_=null;var t=2}else if(this.forwardChannelRequest_==X)this.forwardChannelRequest_=null,t=1;else return;this.JSC$19482_lastStatusCode_=X.JSC$19470_lastStatusCode_;if(this.state_!=0)if(X.JSC$19470_successful_)if(t==1){t=X.JSC$19470_postData_?X.JSC$19470_postData_.length:0;X=Date.now()-X.JSC$19470_requestStartTime_;
var G=x0N;G.dispatchEvent(new Tzi(G,t,X,this.JSC$19482_forwardChannelRetryCount_));SER(this);this.handler_&&this.handler_.JSC$19489_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else Ocr(this);else{G=X.getLastError();if(G==3||G==7||G==0&&this.JSC$19482_lastStatusCode_>0)this.JSC$19478_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19478_channelDebug_.debug("Maybe retrying, last error: "+MfR(G,this.JSC$19482_lastStatusCode_));var y;if(y=t==1)this.forwardChannelRequest_||
this.JSC$19482_forwardChannelTimerId_||this.state_==1||this.JSC$19482_forwardChannelRetryCount_>=2?y=!1:(this.JSC$19478_channelDebug_.debug("Going to retry POST"),this.JSC$19482_forwardChannelTimerId_=xL((0,_.rT)(this.JSC$19482_onStartForwardChannelTimer_,this,X),usa(this,this.JSC$19482_forwardChannelRetryCount_)),this.JSC$19482_forwardChannelRetryCount_++,y=!0);if(y||t==2&&Q9r(this))return;this.JSC$19478_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19478_channelDebug_.debug("Error: HTTP request failed");
switch(G){case 1:ot(this,5);break;case 4:ot(this,10);break;case 3:ot(this,6);break;case 7:ot(this,12);break;default:ot(this,2)}}};
var usa=function(X,t){var G=5E3+Math.floor(Math.random()*1E4);X.isActive()||(X.JSC$19478_channelDebug_.debug("Inactive channel"),G*=2);return G*t};
B9.prototype.onInput_=function(X){for(var t=0;t<X.length;t++){var G=X[t];this.JSC$19482_lastArrayId_=G[0];G=G[1];this.state_==2?G[0]=="c"?(this.sid_=G[1],this.JSC$19482_hostPrefix_=G[2],G=G[3],G!=null?this.JSC$19482_channelVersion_=G:this.JSC$19482_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19489_channelOpened(),this.JSC$19482_backChannelUri_=eOi(this,this.JSC$19482_hostPrefix_,this.JSC$19482_path_),Ocr(this)):G[0]=="stop"&&ot(this,7):this.state_==3&&(G[0]=="stop"?ot(this,7):
G[0]!="noop"&&this.handler_&&this.handler_.JSC$19489_channelHandleArray(G),this.JSC$19482_backChannelRetryCount_=0)}};
B9.prototype.JSC$19482_ensureInState_=function(X){if(!_.Eh(arguments,this.state_))throw Error("Bk`"+this.state_);};
var ot=function(X,t){X.JSC$19478_channelDebug_.info("Error code "+t);if(t==2||t==9){var G=null;X.handler_&&(G=null);var y=(0,_.rT)(X.testGoogleComCallback_,X);G||(G=new _.Vf("//www.google.com/images/cleardot.gif"),_.ZM(G));Q$V(G.toString(),1E4,y)}else yJ(2);X.onError_(t)};
B9.prototype.testGoogleComCallback_=function(X){X?(this.JSC$19478_channelDebug_.info("Successfully pinged google.com"),yJ(2)):(this.JSC$19478_channelDebug_.info("Failed to ping google.com"),yJ(1),this.onError_(8))};
B9.prototype.onError_=function(X){this.JSC$19478_channelDebug_.debug("HttpChannel: error - "+X);this.state_=0;this.handler_&&this.handler_.JSC$19489_channelError(X);DPH(this);s9N(this)};
var DPH=function(X){X.state_=0;X.JSC$19482_lastStatusCode_=-1;if(X.handler_)if(X.pendingMaps_.length==0&&X.JSC$19478_outgoingMaps_.length==0)X.handler_.JSC$19489_channelClosed();else{X.JSC$19478_channelDebug_.debug("Number of undelivered maps, pending: "+X.pendingMaps_.length+", outgoing: "+X.JSC$19478_outgoingMaps_.length);var t=_.aV(X.pendingMaps_),G=_.aV(X.JSC$19478_outgoingMaps_);X.pendingMaps_.length=0;X.JSC$19478_outgoingMaps_.length=0;X.handler_.JSC$19489_channelClosed(t,G)}},VOi=function(X,
t){t=dP2(X,null,t);
X.JSC$19478_channelDebug_.debug("GetForwardChannelUri: "+t);return t},eOi=function(X,t,G){t=dP2(X,X.JSC$19477_shouldUseSecondaryDomains()?t:null,G);
X.JSC$19478_channelDebug_.debug("GetBackChannelUri: "+t);return t},dP2=function(X,t,G){var y=_.tW(G);
if(y.JSC$9962_domain_!="")t&&_.gE(y,t+"."+y.JSC$9962_domain_),_.FS(y,y.JSC$9962_port_);else{var w=window.location;y=Xaa(w.protocol,t?t+"."+w.hostname:w.hostname,+w.port,G)}X.JSC$19482_extraParams_&&_.RH.forEach(X.JSC$19482_extraParams_,function(z,B){_.yA(y,B,z)});
_.yA(y,"VER",X.JSC$19482_channelVersion_);nR(X,y);return y};
B9.prototype.JSC$19477_createXhrIo=function(X){if(X)throw Error("yk");X=new _.a8;X.JSC$9725_withCredentials_=!1;return X};
B9.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
B9.prototype.notifyServerReachabilityEvent=function(X){var t=x0N;t.dispatchEvent(new APV(t,X))};
B9.prototype.JSC$19477_shouldUseSecondaryDomains=function(){return!1};
new zCR;var IBR=function(){};
_.H=IBR.prototype;_.H.JSC$19489_channelOpened=function(){};
_.H.JSC$19489_channelHandleArray=function(){};
_.H.JSC$19489_channelSuccess=function(){};
_.H.JSC$19489_channelError=function(){};
_.H.JSC$19489_channelClosed=function(){};
_.H.JSC$19489_getAdditionalParams=function(){return{}};
_.H.isActive=function(){return!0};var WYH=function(X){X.front_.length===0&&(X.front_=X.back_,X.front_.reverse(),X.back_=[])};
_.H=cgH.prototype;_.H.enqueue=function(X){this.back_.push(X)};
_.H.peek=function(){WYH(this);return _.WY(this.front_)};
_.H.getCount=function(){return this.front_.length+this.back_.length};
_.H.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.H.clear=function(){this.front_=[];this.back_=[]};
_.H.contains=function(X){return _.Eh(this.front_,X)||_.Eh(this.back_,X)};
_.H.remove=function(X){var t=this.front_;var G=Array.prototype.lastIndexOf.call(t,X,t.length-1);G>=0?(_.L_(t,G),t=!0):t=!1;return t||_.vY(this.back_,X)};
_.H.getValues=function(){for(var X=[],t=this.front_.length-1;t>=0;--t)X.push(this.front_[t]);t=this.back_.length;for(var G=0;G<t;++G)X.push(this.back_[G]);return X};var VJ=function(X){this.JSC$19493_map_=new _.Zb;this.size=0;X&&this.addAll(X)},cPr=function(X){var t=typeof X;
return t=="object"&&X||t=="function"?"o"+_.GB(X):t.charAt(0)+X};
_.H=VJ.prototype;_.H.getCount=function(){return this.JSC$19493_map_.size};
_.H.add=function(X){this.JSC$19493_map_.set(cPr(X),X);this.size=this.JSC$19493_map_.size};
_.H.addAll=function(X){X=_.e2(X);for(var t=X.length,G=0;G<t;G++)this.add(X[G]);this.size=this.JSC$19493_map_.size};
_.H.removeAll=function(X){X=_.e2(X);for(var t=X.length,G=0;G<t;G++)this.remove(X[G]);this.size=this.JSC$19493_map_.size};
_.H.delete=function(X){X=this.JSC$19493_map_.remove(cPr(X));this.size=this.JSC$19493_map_.size;return X};
_.H.remove=function(X){return this.delete(X)};
_.H.clear=function(){this.JSC$19493_map_.clear();this.size=0};
_.H.isEmpty=function(){return this.JSC$19493_map_.size===0};
_.H.has=function(X){return this.JSC$19493_map_.containsKey(cPr(X))};
_.H.contains=function(X){return this.JSC$19493_map_.containsKey(cPr(X))};
_.H.getValues=function(){return this.JSC$19493_map_.getValues()};
_.H.values=function(){return this.JSC$19493_map_.values()};
_.H.clone=function(){return new VJ(this)};
_.H.equals=function(X){return this.getCount()==f72(X)&&pFQ(this,X)};
var pFQ=function(X,t){var G=f72(t);if(X.getCount()>G)return!1;!(t instanceof VJ)&&G>5&&(t=new VJ(t));return MhN(X,function(y){var w=t;return w.contains&&typeof w.contains=="function"?w.contains(y):w.containsValue&&typeof w.containsValue=="function"?w.containsValue(y):_.xJ(w)||typeof w==="string"?_.Eh(w,y):_.RH.containsValue(w,y)})};
VJ.prototype.__iterator__=function(){return this.JSC$19493_map_.__iterator__(!1)};
VJ.prototype[Symbol.iterator]=function(){return this.values()};var rPH={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(X){return(this._clampValue(X)-this.min)/(this.max-this.min)},
_clampValue:function(X){return Math.min(this.max,Math.max(this.min,this._calcStep(X)))},
_calcStep:function(X){X=parseFloat(X);if(!this.step)return X;X=Math.round((X-this.min)/this.step);return this.step<1?X/(1/this.step)+this.min:X*this.step+this.min},
_validateValue:function(){var X=this._clampValue(this.value);this.value=this.oldValue=isNaN(X)?this.oldValue:X;return this.value!==X},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Nzi;var Pg2;_.le({_template:function(){if(Pg2!==void 0)return Pg2;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Nzi===void 0&&(Nzi=document.createElement("template"));var y=Nzi;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return Pg2=X},
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(){_.V8(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(X){X.keyCode===27&&(X.preventDefault(),this.close())},
_track:function(X){if(!this.persistent&&!this.disableSwipe)switch(X.preventDefault(),X.detail.state){case "start":this._trackStart(X);break;case "track":this._trackMove(X);break;case "end":this._trackEnd(X)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var X=this.$.contentContainer.getBoundingClientRect();this._savedWidth=X.width;this._translateOffset=this.position==="left"?X.left:X.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(X){this._trackDetails&&(this._translateDrawer(X.detail.dx+this._translateOffset),this._trackDetails.push({dx:X.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(X){if(this._trackDetails){var t=X.detail.dx+this._translateOffset,G=this.getWidth();t=this.position==="left"?t>=0||t<=-G:t<=0||t>=G;if(!t){var y=this._trackDetails;this._trackDetails=null;this._flingDrawer(X,y);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}G/=2;X.detail.dx<-G?this.opened=this.position==="right":X.detail.dx>G&&(this.opened=this.position==="left");t?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(X,t){for(var G=Date.now(),y=G-100,w,z=0,B=t.length-1;z<=B;){var V=z+B>>1,b=t[V];b.timeStamp>=y?(w=b,B=V-1):z=V+1}return w?(X.detail.dx-w.dx)/(G-w.timeStamp||1):0},
_flingDrawer:function(X,t){t=this._calculateVelocity(X,t);if(!(Math.abs(t)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;X=X.detail.dx+this._translateOffset;var G=this.getWidth(),y=this.position==="left",w=t>0;w?(t=Math.max(t,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(t=Math.min(t,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");t=this._FLING_INITIAL_SLOPE*(!w&&y?-(X+G):w&&!y?G-X:-X)/t;this._styleTransitionDuration(t);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,t)}},
_styleTransitionDuration:function(X){this.style.transitionDuration=X+"ms";this.$.contentContainer.style.transitionDuration=X+"ms";this.$.scrim.style.transitionDuration=X+"ms"},
_styleTransitionTimingFunction:function(X){this.$.contentContainer.style.transitionTimingFunction=X;this.$.scrim.style.transitionTimingFunction=X},
_translateDrawer:function(X){var t=this.getWidth();this.position==="left"?(X=Math.max(-t,Math.min(X,0)),this.$.scrim.style.opacity=1+X/t):(X=Math.max(0,Math.min(X,t)),this.$.scrim.style.opacity=1-X/t);this.translate3d(X+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var X=this._drawerState;X===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;X!==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=""),X!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var X=_.Es(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"])');X.length>0?(this._firstTabStop=X[0],this._lastTabStop=X[X.length-1]):
this._lastTabStop=this._firstTabStop=null;(X=this.getAttribute("tabindex"))&&parseInt(X,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(X){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||X.keyCode!==9||(X.shiftKey?this._firstTabStop&&_.Es(X).localTarget===this._firstTabStop&&(X.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Es(X).localTarget===this._lastTabStop&&(X.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(X,t){this.toggleClass("visible",X&&!t,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 EnV;var UP4;_.le({_template:function(){if(UP4!==void 0)return UP4;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;EnV===void 0&&(EnV=document.createElement("template"));var y=EnV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return UP4=X},
is:"tp-yt-paper-progress",behaviors:[rPH],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(X){this.toggleClass("indeterminate",X,this.$.primaryProgress)},
_transformProgress:function(X,t){X.style.transform=X.style.webkitTransform="scaleX("+t/100+")"},
_mainRatioChanged:function(X){this._transformProgress(this.$.primaryProgress,X)},
_progressChanged:function(X,t,G,y,w){X=this._clampValue(X);t=this._clampValue(t);var z=this._calcRatio(X)*100,B=this._calcRatio(t)*100;this._setSecondaryRatio(z);this._transformProgress(this.$.secondaryProgress,z);this._transformProgress(this.$.primaryProgress,B);this.secondaryProgress=X;w?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",t);this.setAttribute("aria-valuemin",G);this.setAttribute("aria-valuemax",y)},
_disabledChanged:function(X){this.setAttribute("aria-disabled",X?"true":"false")},
_hideSecondaryProgress:function(X){return X===0}});var mPV;var ROH;var ici=function(){};
_.H=ici.prototype;_.H.registered=function(){};
_.H.addOwnKeyBinding=function(){};
_.H.removeOwnKeyBindings=function(){};
_.H.keyboardEventMatchesKeys=function(){};
_.H._collectKeyBindings=function(){};
_.H._prepKeyBindings=function(){};
_.H._addKeyBinding=function(){};
_.H._resetKeyEventListeners=function(){};
_.H._listenKeyEventListeners=function(){};
_.H._unlistenKeyEventListeners=function(){};
_.H._onKeyBindingEvent=function(){};
_.H._triggerKeyHandler=function(){};
_.H._tapHandler=function(){};
_.H._focusChanged=function(){};
_.H._detectKeyboardFocus=function(){};
_.H._userActivate=function(){};
_.H._upHandler=function(){};
_.H._spaceKeyDownHandler=function(){};
_.H._spaceKeyUpHandler=function(){};
_.H._asyncClick=function(){};
_.H._pressedChanged=function(){};
_.H._ariaActiveAttributeChanged=function(){};
_.H._activeChanged=function(){};
_.H._controlStateChanged=function(){};
_.H._changedButtonState=function(){};
_.H._focusBlurHandler=function(){};
_.H._disabledChanged=function(){};
_.H._changedControlState=function(){};
_.H._buttonStateChanged=function(){};
_.H._downHandler=function(){};
_.H.ensureRipple=function(){};
_.H.getRipple=function(){};
_.H.hasRipple=function(){};
_.H._noinkChanged=function(){};
_.H._calcRatio=function(){};
_.H._clampValue=function(){};
_.H._calcStep=function(){};
_.H._validateValue=function(){};
_.H._update=function(){};
_.H._setImmediateValue=function(){};
_.H._setExpand=function(){};
_.H._setDragging=function(){};
_.H._setTransiting=function(){};
_.H._setMarkers=function(){};
_.H._setPressed=function(){};
_.H._setPointerDown=function(){};
_.H._setReceivedFocusFromKeyboard=function(){};
_.H._setFocused=function(){};
_.H._setRatio=function(){};
ici=_.le({_template:function(){if(ROH!==void 0)return ROH;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;mPV===void 0&&(mPV=document.createElement("template"));var y=mPV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return ROH=X},
is:"tp-yt-paper-slider",behaviors:[_.NN,_.mQ,_.olq,rPH],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&&_.x5(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(X,t,G){this.setAttribute("aria-valuemin",t);this.setAttribute("aria-valuemax",G);this.setAttribute("aria-valuenow",X);this._positionKnob(this._calcRatio(X)*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(X){this._setImmediateValue(this._calcStep(this._calcKnobPosition(X)));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(X){return(this.max-this.min)*X/100+this.min},
_onTrack:function(X){X.stopPropagation();switch(X.detail.state){case "start":this._trackStart(X);break;case "track":this._trackX(X);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(X){this.dragging||this._trackStart(X);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,X.detail.dx*(this._isRTL?-1:1)));X=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(X);X=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(X+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var X=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;X.transform=X.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(X){this._expandKnob();X.preventDefault();this.focus()},
_bartrack:function(X){this._allowBarEvent(X)&&this._onTrack(X)},
_barclick:function(X){this._w=this.$.sliderBar.offsetWidth;var t=this.$.sliderBar.getBoundingClientRect();t=(X.detail.x-t.left)/this._w*100;this._isRTL&&(t=100-t);var G=this.ratio;this._setTransiting(!0);this._positionKnob(t);G===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
X.preventDefault();this.focus()},
_bardown:function(X){this._allowBarEvent(X)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(X))},
_knobTransitionEnd:function(X){X.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(X,t,G,y){y||this._setMarkers([]);t=Math.round((G-t)/this.step);t>X&&(t=X);if(t<0||!isFinite(t))t=0;this._setMarkers(Array(t))},
_mergeClasses:function(X){return Object.keys(X).filter(function(t){return X[t]}).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(X){return!this.ignoreBarTouch||X.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(X){this._isRTL?this._incrementKey(X):this._decrementKey(X)},
_rightKey:function(X){this._isRTL?this._decrementKey(X):this._incrementKey(X)},
_incrementKey:function(X){this.disabled||(X.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),X.preventDefault())},
_decrementKey:function(X){this.disabled||(X.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),X.preventDefault())},
_changeValue:function(X){this.value=X.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(X){X.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.HVJ._createRipple.call(this)},
_focusedChanged:function(X){X&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=X?"":"none",this._ripple.holdDown=X)}});var LYV;var vnv;var b9=null,aBa=function(){};
_.H=aBa.prototype;_.H.fit=function(){};
_.H._discoverInfo=function(){};
_.H.resetFit=function(){};
_.H.refit=function(){};
_.H.position=function(){};
_.H.constrain=function(){};
_.H._sizeDimension=function(){};
_.H.__sizeDimension=function(){};
_.H.center=function(){};
_.H.__getNormalizedRect=function(){};
_.H.__getOffscreenArea=function(){};
_.H.__getPosition=function(){};
_.H.notifyResize=function(){};
_.H.assignParentResizable=function(){};
_.H.stopResizeNotificationsFor=function(){};
_.H._subscribeIronResize=function(){};
_.H._unsubscribeIronResize=function(){};
_.H.resizerShouldNotify=function(){};
_.H._onDescendantIronResize=function(){};
_.H._fireResize=function(){};
_.H._onIronRequestResizeNotifications=function(){};
_.H._parentResizableChanged=function(){};
_.H._notifyDescendant=function(){};
_.H._requestResizeNotifications=function(){};
_.H._findParent=function(){};
_.H.toggle=function(){};
_.H.open=function(){};
_.H.close=function(){};
_.H.cancel=function(){};
_.H.invalidateTabbables=function(){};
_.H._ensureSetup=function(){};
_.H._canceledChanged=function(){};
_.H._withBackdropChanged=function(){};
_.H._prepareRenderOpened=function(){};
_.H._finishRenderOpened=function(){};
_.H._finishRenderClosed=function(){};
_.H._preparePositioning=function(){};
_.H._finishPositioning=function(){};
_.H._applyFocus=function(){};
_.H._onCaptureClick=function(){};
_.H._onCaptureFocus=function(){};
_.H._onCaptureEsc=function(){};
_.H._onCaptureTab=function(){};
_.H._onIronResize=function(){};
_.H._onNodesChange=function(){};
_.H.__ensureFirstLastFocusables=function(){};
_.H.__openedChanged=function(){};
_.H.__deraf=function(){};
_.H.__updateScrollObservers=function(){};
_.H.__addScrollListeners=function(){};
_.H.__removeScrollListeners=function(){};
_.H.__isValidScrollAction=function(){};
_.H.__onCaptureScroll=function(){};
_.H.__saveScrollPosition=function(){};
_.H.__restoreScrollPosition=function(){};
_.H._setCanceled=function(){};
aBa=_.le({_template:function(){if(vnv!==void 0)return vnv;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;LYV===void 0&&(LYV=document.createElement("template"));var y=LYV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);return vnv=X},
is:"tp-yt-paper-toast",behaviors:[_.BM],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(){_.E_._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.wB.requestAvailability()},
show:function(X){typeof X=="string"&&(X={text:X});for(var t in X)t.indexOf("_")===0?_.E_._warn('The property "'+t+'" is private and was not set.'):t in this?this[t]=X[t]:_.E_._warn('The property "'+t+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(X){X&&X.target===this&&X.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(b9&&b9!==this&&b9.close(),b9=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):b9===this&&(b9=null);_.JZ._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(X){this.positionTarget=X},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var lBi=new _.ja("disablePersonalizationAction");var Cpv=new _.ja("showDmaConsentFlowCommand");var KwR=new _.ja("showMmgNoticeCommand");var xPV=new _.ja("saveConsentAction");var fBq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aN(X)};
_.S(fBq,_.eB);var MOR=_.DxE(fBq);var XNQ=new _.ja("updateTopbarAvatarAction");var $WH=new _.ja("channelHandleValidationResultRenderer");var tTR=new _.ja("generateHandleFromNameResultRenderer");var GmB=new _.ja("channelHandleInputRenderer");var y_i=new _.ja("copyLinkRenderer");var wNV=new _.ja("timedCommand");var zTB=new _.ja("clearCookieAction");var Hur=new _.ja("getMultiPageMenuAction");var o6R=new _.ja("addToGuideSectionAction"),J_V=new _.ja("removeFromGuideSectionAction");var BvT=new _.ja("updateNotificationsUnseenCountAction");var n6H=new _.ja("resetChannelUnreadCountCommand");var VTN=new _.ja("resetSubscriptionsUnreadDotCommand");var buB=new _.ja("selectLanguageCommand");var Rjq=new _.ja("sendFeedbackAction");var kmB=new _.ja("uploadImageToScottyCommand");var dWv=new _.ja("registerPromoCommand");var eTH=new _.ja("setPushNotificationsEnabledCommand");var jIB=new _.ja("desktopTopbarRenderer");var g6q=new _.ja("surveyFollowUpRenderer");var F4r=new _.ja("handlesClaimingRadioOptionRenderer");var Tv2=new _.ja("hotkeyDialogRenderer");var A_i=new _.ja("modifyReportFormCommand");var Y2a=new _.ja("accountLinkCommand");var sIv=new _.ja("accountUnlinkCommand");var DWr=new _.ja("logAccountLinkingEventCommand");var S2r=new _.ja("guideCollapsibleEntryRenderer");var hTa=new _.ja("guideDownloadsEntryRenderer");var kk=new _.ja("guideEntryRenderer");var ZuT=new _.ja("getLocationCommand");var q2N=new _.ja("locationCollectionCommand");var CjV=new _.ja("storiesItemViewModel");var K4Q=new _.ja("addToRemoteQueueAction");var Oui=new _.ja("insertInRemoteQueueAction");var uNr=new _.ja("removeFromRemoteQueueAction");var QIa=new _.ja("notificationRenderer");var k7i=new _.ja("localWatchHistoryCommand");var IGR=new _.ja("pdgBuyFlowHeaderRenderer");var W4q=new _.ja("pdgColorSliderRenderer");var c_4=new _.ja("pdgCommentOptionRenderer");var pNT=new _.ja("pdgCommentPreviewRenderer");var r_B=new _.ja("superVodSelectableItemButtonRenderer");var NvH=new _.ja("switchButtonRenderer");var Pjq=new _.ja("upsellDialogRenderer");var E6Q=new _.ja("feedbackQuestionRenderer"),UWH=new _.ja("feedbackOptionRenderer");var mWB=new _.ja("sponsorshipsTierRenderer"),RTH=new _.ja("sponsorshipsPromotionChannelRenderer");var iur=new _.ja("simpleSurveyMessageRenderer");var RVa=new _.ja("invokeInstrumentManagerAction");var L44=new _.ja("logYpcFlowDismissCommand");var v6a=new _.ja("logYpcFlowStartCommand");var aGH=new _.ja("unlimitedCreateFamilyEndpoint");var lGR=new _.ja("iconBadgeRenderer");var diq=new _.ja("collaborativePlaylistVisibilityValidationRule");var xWR=function(X){_.W6.call(this,"channelMessage");this.message=X};
_.S(xWR,_.W6);var fGa=function(X){_.W6.call(this,"channelError");this.error=X};
_.S(fGa,_.W6);var MT2={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"},XrN={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},$4R={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},tVv={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Gwq={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var d7=function(X){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 _.Zb;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;X&&(this.id=X.id||X.name,this.name=X.name,this.clientName=X.clientName?X.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=X.app,this.type=X.type||"REMOTE_CONTROL",this.username=X.user||"",this.avatar=X.userAvatarUri||"",this.obfuscatedGaiaId=X.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=X.ownerObfuscatedGaiaId||"",this.castUserId=X.castUserId||"",this.theme=X.theme||"u",yCH(this,X.capabilities||""),wra(this,
X.compatibleSenderThemes||""),zoq(this,X.experiments||""),this.remoteControllerUrl=X.remoteControllerUrl||"",this.localChannelEncryptionKey=X.localChannelEncryptionKey||"",this.deviceContext=X.deviceContext,this.brand=X.brand||"",this.model=X.model||"",this.year=X.year||0,this.os=X.os||"",this.osVersion=X.osVersion||"",this.chipset=X.chipset||"",this.mdxDialServerType=X.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=X.pairingType||"unknown",X=X.deviceInfo)&&(X=JSON.parse(X),this.brand=
X.brand||"",this.model=X.model||"",this.year=X.year||0,this.os=X.os||"",this.osVersion=X.osVersion||"",this.chipset=X.chipset||"",this.clientName=X.clientName?X.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=X.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
d7.prototype.copy=function(){var X={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&&(X.brand=this.brand);
this.model&&(X.model=this.model);this.year&&(X.year=this.year);this.os&&(X.os=this.os);this.osVersion&&(X.osVersion=this.osVersion);this.chipset&&(X.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(X.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(X.mdxDialServerType=this.mdxDialServerType);X=new d7(X);X.connected=this.connected;X.remoteControllerUrl=this.remoteControllerUrl;X.localChannelEncryptionKey=this.localChannelEncryptionKey;X.deviceContext=
this.deviceContext;X.castUserId=this.castUserId;return X};
d7.prototype.equals=function(X){return X?this.id==X.id:!1};
var yCH=function(X,t){X.capabilities.clear();_.S$(t.split(","),_.WP(_.RH.contains,MT2)).forEach(function(G){X.capabilities.add(G)})},wra=function(X,t){X.compatibleSenderThemes.clear();
_.S$(t.split(","),_.WP(_.RH.contains,XrN)).forEach(function(G){X.compatibleSenderThemes.add(G)})},zoq=function(X,t){X.experiments.clear();
t.split(",").forEach(function(G){X.experiments.add(G)})};var HvH=function(X,t){this.action=X;this.params=t||{}};_.sx(pKi,_.po);_.H=pKi.prototype;_.H.JSC$19529_onTick_=function(){this.JSC$19527_interval_=Math.min(3E5,this.JSC$19527_interval_*2);this.JSC$19529_listener_();this.nextTickTime_&&this.start()};
_.H.start=function(){var X=this.JSC$19527_interval_+15E3*Math.random(),t=this.delay_;t.isActive()||t.start(X);this.nextTickTime_=Date.now()+X};
_.H.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.H.isActive=function(){return this.delay_.isActive()};
_.H.reset=function(){this.delay_.stop();this.JSC$19527_interval_=5E3};_.sx(Mn,IBR);_.H=Mn.prototype;_.H.subscribe=function(X,t,G){return this.pubsub_.subscribe(X,t,G)};
_.H.unsubscribe=function(X,t,G){return this.pubsub_.unsubscribe(X,t,G)};
_.H.unsubscribeByKey=function(X){return this.pubsub_.unsubscribeByKey(X)};
_.H.publish=function(X,t){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.H.dispose=function(){this.JSC$19530_disposed_||(this.JSC$19530_disposed_=!0,_.Vs(this.pubsub_),this.disconnect(),_.Vs(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19530_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.qY({})})};
_.H.isDisposed=function(){return this.JSC$19530_disposed_};
_.H.connect=function(X,t,G){var y=this,w,z,B,V;return _.n(function(b){if(b.nextAddress==1)return _.u8(b,2),y.useAsyncBrowserChannelHandler_?b.yield(y.connectPromise_,2):b.jumpTo(2);_.O6(b);if(y.JSC$19530_disposed_||y.JSC$19530_channel_&&y.JSC$19530_channel_.getState()==2)return b.return();y.sCookie_="";y.reconnectTimer_.stop();y.connectionParams_=X||null;y.connectUi_=t||0;w=y.JSC$19530_pathPrefix_+"/test";z=y.JSC$19530_pathPrefix_+"/bind";B=new B9(G?G.firstTestResults:null,G?G.secondTestResults:null,
y.enableAsyncTest_);if(V=y.JSC$19530_channel_)V.handler_=null;B.handler_=y;y.JSC$19530_channel_=B;if(y.useAsyncBrowserChannelHandler_)return y.connectPromise_=oZH(y).then(function(){return JCH(y,w,z,V,G)}),b.return(y.connectPromise_.then(function(){y.connectPromise_=_.qY()}));
JCH(y,w,z,V,G);return _.Qb(b,0)})};
var JCH=function(X,t,G,y,w){BGv(X);if(X.JSC$19530_channel_){var z=_.Md("ID_TOKEN"),B=X.JSC$19530_channel_.JSC$19482_extraHeaders_||{};z?B["x-youtube-identity-token"]=z:delete B["x-youtube-identity-token"];X.JSC$19530_channel_.JSC$19482_extraHeaders_=B}nZH(X);y?(y.getState(),X.JSC$19530_channel_.connect(t,G,X.defaultQueryParams_,y.sid_,y.JSC$19482_lastArrayId_)):w?X.JSC$19530_channel_.connect(t,G,X.defaultQueryParams_,w.sessionId,w.arrayId):X.JSC$19530_channel_.connect(t,G,X.defaultQueryParams_)};
Mn.prototype.disconnect=function(X){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.qY())}finally{this.disconnectUi_=X||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),BGv(this),this.JSC$19530_channel_&&(this.JSC$19530_channel_.getState()==3&&qE2(this.JSC$19530_channel_),this.JSC$19530_channel_.disconnect()),this.disconnectUi_=0}};
Mn.prototype.sendMessage=function(X,t){var G=this,y;return _.n(function(w){switch(w.nextAddress){case 1:_.u8(w,2);if(!G.useAsyncBrowserChannelHandler_){w.jumpTo(2);break}return w.yield(G.connectPromise_,2);case 2:_.O6(w);if(G.JSC$19530_disposed_)return w.return();y={_sc:X};t&&_.RH.extend(y,t);if(G.reconnectTimer_.isActive()||(G.JSC$19530_channel_?G.JSC$19530_channel_.getState():0)==2){G.JSC$19530_pendingMessages_.push(y);w.jumpTo(6);break}if(!G.isChannelOpened()){w.jumpTo(6);break}_.u8(w,8);if(!G.useAsyncBrowserChannelHandler_||
VVH(G,X)){w.jumpTo(8);break}return w.yield(oZH(G),8);case 8:_.O6(w,0,0,1);G.isChannelOpened()&&(VVH(G,X)||nZH(G),BGv(G),Zci(G.JSC$19530_channel_,y));_.Qb(w,6,1);break;case 6:_.Qb(w,0)}})};
var VVH=function(X,t){return X.enableMdxAuthForConnectionOnly_?!0:X.disableMdxAuthForAdMessages_?Object.values($4R).includes(t):X.disableMdxAuthForNonPlaybackMessages_?!Object.values(tVv).includes(t):X.disableMdxAuthForShortsMessages_?Object.values(Gwq).includes(t):!1};
Mn.prototype.JSC$19489_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19530_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)bvB(this);else{var X=this.JSC$19530_pendingMessages_;this.JSC$19530_pendingMessages_=[];var t=X.length;nZH(this);kwR(this,X,t);d4H(this)}else d4H(this)};
var bvB=function(X){var t,G;_.n(function(y){if(y.nextAddress==1)return _.u8(y,2),y.yield(oZH(X),2);_.O6(y);t=X.JSC$19530_pendingMessages_;X.JSC$19530_pendingMessages_=[];G=t.length;kwR(X,t,G);d4H(X);return _.Qb(y,0)})},kwR=function(X,t,G){for(var y=0;y<G;++y)Zci(X.JSC$19530_channel_,t[y]);
d4H(X)},d4H=function(X){X.publish("handlerOpened");
X.JSC$19530_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.H=Mn.prototype;_.H.JSC$19489_channelError=function(X){var t=X==2&&this.JSC$19530_channel_.JSC$19482_lastStatusCode_==401;X==4||t||this.reconnectTimer_.start();this.publish("handlerError",X,t);t=Object.keys(FYN).find(function(G){return FYN[G]===X});
this.JSC$19530_channelErrorCounter.increment("BROWSER_CHANNEL",t!=null?t:"UNKNOWN")};
_.H.JSC$19489_channelClosed=function(X,t){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(t)for(var G=t.length,y=0;y<G;++y){var w=t[y].map;w&&this.JSC$19530_pendingMessages_.push(w)}this.JSC$19530_channelClosedCounter.increment("BROWSER_CHANNEL");X&&this.pendingMapsOnClosedCounter.JSC$9863_streamzService.JSC$9716_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",X.length);t&&this.undeliveredMapsOnClosedCounter.JSC$9866_streamzService.JSC$9716_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
t.length)};
_.H.JSC$19489_channelSuccess=function(X,t){t!=null&&X!=null&&this.channelMessageSentCounter.increment()};
_.H.JSC$19489_getAdditionalParams=function(){var X={v:2};this.sCookie_&&(X.gsessionid=this.sCookie_);this.connectUi_!=0&&(X.ui=""+this.connectUi_);this.disconnectUi_!=0&&(X.ui=""+this.disconnectUi_);this.connectionParams_&&_.RH.extend(X,this.connectionParams_);return X};
_.H.JSC$19489_channelHandleArray=function(X){X[0]=="S"?this.sCookie_=X[1]:X[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19530_channel_.disconnect()):this.publish("handlerMessage",new HvH(X[0],X[1]));this.JSC$19530_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.H.isChannelOpened=function(){return!!this.JSC$19530_channel_&&this.JSC$19530_channel_.getState()==3};
var BGv=function(X){if(X.JSC$19530_channel_){var t=X.JSC$19530_getXsrfToken_(),G=X.JSC$19530_channel_.JSC$19482_extraHeaders_||{};t?G["x-youtube-lounge-xsrf-token"]=t:delete G["x-youtube-lounge-xsrf-token"];X.JSC$19530_channel_.JSC$19482_extraHeaders_=G}},oZH=function(X){if(X.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.qY();
if(!X.enableCachedUpdateAuthorizationHeader_)return eoH(X);X.updateAuthorizationHeaderPromise_===null&&(X.updateAuthorizationHeaderPromise_=eoH(X));return X.updateAuthorizationHeaderPromise_},eoH=function(X){return _.R8(X.getAuthorizationHeader_().then(function(t){j3i(X,t)}).thenCatch(function(){}),function(){X.updateAuthorizationHeaderPromise_=null})},j3i=function(X,t){if(X.JSC$19530_channel_){var G=X.JSC$19530_channel_.JSC$19482_extraHeaders_||{};
t&&Object.keys(t).length>0?G=Object.assign({},G,t):delete G.Authorization;X.JSC$19530_channel_.JSC$19482_extraHeaders_=G}},nZH=function(X){X.getAuthorizationHeaderSync_&&!X.useAsyncBrowserChannelHandler_&&j3i(X,X.getAuthorizationHeaderSync_())};
_.H=Mn.prototype;_.H.setLoungeToken=function(X){(this.defaultQueryParams_.loungeIdToken=X)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19530_channel_){var t=this.JSC$19530_channel_.JSC$19482_extraHeaders_||{};X?t["X-YouTube-LoungeId-Token"]=X:delete t["X-YouTube-LoungeId-Token"];this.JSC$19530_channel_.JSC$19482_extraHeaders_=t}};
_.H.getDeviceId=function(){return this.defaultQueryParams_.id};
_.H.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.H.reconnect=function(){var X=this.reconnectTimer_;X.delay_.fire();X.start()};
_.H.safeReconnect_=function(){var X=this.JSC$19530_channel_,t=0;X.JSC$19482_backChannelRequest_&&t++;X.forwardChannelRequest_&&t++;t==0&&this.connect(this.connectionParams_,this.connectUi_)};var zD=function(X,t){var G=X.basePath;X.supportCors&&(G=X.scheme+"://"+X.domain+X.port+X.basePath);return _.ns(G+t,{})};
Xt.prototype.sendRequest=function(X,t,G,y,w,z,B){X={format:z?"RAW":"JSON",method:X,context:this,timeout:5E3,withCredentials:!!B,onSuccess:_.WP(this.JSC$19535_onSuccess_,y,!z),onError:_.WP(this.onError_,w),onTimeout:_.WP(this.JSC$19535_onTimeout_,w)};G&&(X.postParams=G,X.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Cs(t,X)};
Xt.prototype.JSC$19535_onSuccess_=function(X,t,G,y){t?X(y):X({text:G.responseText})};
Xt.prototype.onError_=function(X,t){X(Error("Ck`"+t.status))};
Xt.prototype.JSC$19535_onTimeout_=function(X){X(Error("Dk"))};var t9=function(X,t){return!!t&&(X.id==t||X.uuid==t)},gZi=function(X){return{name:X.name,
screenId:X.id,loungeToken:X.token,dialId:X.uuid,screenIdType:X.idType}},FVq=function(X){return new $s(X)},TGH=function(X){return Array.isArray(X)?_.iG(X,FVq):[]},v1a=function(X){if(!X)return"null";
var t=X.token?".."+X.token.slice(-6):"-",G=X.uuid?".."+X.uuid.slice(-6):"-";return'{name:"'+X.name+'",id:'+X.id.substr(0,6)+"..,token:"+(t+",uuid:"+G+",idType:"+X.idType+"}")},ApB=function(X){return Array.isArray(X)?"["+_.iG(X,v1a).join(",")+"]":"null"};var $rv="",wM=null;var BVq=function(X,t){_.P6.call(this);var G=this;this.handler=X();this.handler.subscribe("handlerOpened",this.JSC$19542_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(y,w){G.onError(w)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=t};
_.S(BVq,_.P6);_.H=BVq.prototype;_.H.connect=function(X,t,G){this.handler.connect(X,t,G)};
_.H.disconnect=function(X){this.handler.disconnect(X)};
_.H.reconnect=function(){this.handler.reconnect()};
_.H.getDeviceId=function(){return this.handler.getDeviceId()};
_.H.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.H.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.H.JSC$19542_onOpened=function(){this.dispatchEvent("channelOpened");var X=this.handler,t=this.currentScreenId;_.Ku("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!X.JSC$19530_channel_.useChunked_,sessionId:X.JSC$19530_channel_.sid_,arrayId:X.JSC$19530_channel_.JSC$19482_lastArrayId_});_.Ku("yt-remote-session-screen-id",t);X=al2();t=lli();_.Eh(X,t)||X.push(t);Xyq(X);M7T()};
_.H.onClosed=function(){this.dispatchEvent("channelClosed")};
_.H.onMessage=function(X){this.dispatchEvent(new xWR(X))};
_.H.onError=function(X){this.dispatchEvent(new fGa(X?1:0))};
_.H.sendMessage=function(X,t){this.handler.sendMessage(X,t)};
_.H.setLoungeToken=function(X){this.handler.setLoungeToken(X)};
_.H.dispose=function(){this.handler.dispose()};var Jpq=function(X,t,G){var y=this;G=G===void 0?function(){return""}:G;
var w=w===void 0?new ieR:w;var z=z===void 0?new _.Oc:z;this.pathPrefix=X;this.defaultQueryParams=t;this.getXsrfToken=G;this.JSC$19545_pubsub=z;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new pKi(function(){var B;((B=y.channel)==null?void 0:uBQ((new a9i(B,B.JSC$19453_channel_)).JSC$19463_channel_.forwardChannelRequestPool_))===0&&y.connect(y.connectionParams,y.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19545_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19545_channelOpenedCounter=new rgq;this.JSC$19545_channelClosedCounter=new N9N;this.JSC$19545_channelMessageReceivedCounter=new E0H;this.JSC$19545_channelErrorCounter=new UQR};
Jpq.prototype.connect=function(X,t){X=X===void 0?{}:X;t=t===void 0?0:t;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=X,this.connectUi=t,ACq(this),(X=_.Md("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=X: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 Gt(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,YbV(this))};
var YbV=function(X){_.vj(X.channel,"w",function(){X.channelState=3;X.reconnectTimer.reset();X.connectionParams=null;X.connectUi=0;for(var t=_.J(X.nonAckedMessagesOnChannelClosed),G=t.next();!G.done;G=t.next())G=G.value,X.channel&&X.channel.send(G);X.nonAckedMessagesOnChannelClosed=[];X.publish("webChannelOpened");X.JSC$19545_channelOpenedCounter.increment("WEB_CHANNEL")});
_.vj(X.channel,"x",function(){X.channelState=0;X.reconnectTimer.isActive()||X.publish("webChannelClosed");var t,G=(t=X.channel)==null?void 0:l9R(new a9i(t,t.JSC$19453_channel_));G&&(X.nonAckedMessagesOnChannelClosed=[].concat(_.RY(G)));X.JSC$19545_channelClosedCounter.increment("WEB_CHANNEL")});
_.vj(X.channel,"z",function(t){var G=t.data;G[0]==="gracefulReconnect"?(X.reconnectTimer.start(),X.channel&&X.channel.close()):X.publish("webChannelMessage",new HvH(G[0],G[1]));X.lastStatusCode=t.statusCode;X.JSC$19545_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.vj(X.channel,"y",function(){X.lastStatusCode===401||X.reconnectTimer.start();X.publish("webChannelError");X.JSC$19545_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.H=Jpq.prototype;_.H.disconnect=function(X){this.disconnectUi=X===void 0?0:X;this.reconnectTimer.stop();ACq(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.H.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.H.reconnect=function(){var X=this.reconnectTimer;X.delay_.fire();X.start()};
_.H.sendMessage=function(X,t){this.channel&&(ACq(this),X=Object.assign({},{_sc:X},t),this.channel.send(X))};
_.H.setLoungeToken=function(X){X||this.reconnectTimer.stop();X?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=X:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var ACq=function(X){var t=X.getXsrfToken();t?X.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=t:delete X.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.H=Jpq.prototype;_.H.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.H.publish=function(X){return this.JSC$19545_pubsub.publish.apply(this.JSC$19545_pubsub,[X].concat(_.RY(_.f1.apply(1,arguments))))};
_.H.subscribe=function(X,t,G){return this.JSC$19545_pubsub.subscribe(X,t,G)};
_.H.unsubscribe=function(X,t,G){return this.JSC$19545_pubsub.unsubscribe(X,t,G)};
_.H.unsubscribeByKey=function(X){return this.JSC$19545_pubsub.unsubscribeByKey(X)};
_.H.dispose=function(){this.JSC$19545_disposed||(this.JSC$19545_disposed=!0,_.Vs(this.JSC$19545_pubsub),this.disconnect(),_.Vs(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.H.isDisposed=function(){return this.JSC$19545_disposed};var o1B=function(X){_.P6.call(this);this.webChannelService=X();this.webChannelService.subscribe("webChannelOpened",this.JSC$19553_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.S(o1B,_.P6);_.H=o1B.prototype;_.H.connect=function(X,t){this.webChannelService.connect(X,t)};
_.H.disconnect=function(X){this.webChannelService.disconnect(X)};
_.H.reconnect=function(){this.webChannelService.reconnect()};
_.H.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.H.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.H.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.H.JSC$19553_onOpened=function(){this.dispatchEvent("channelOpened")};
_.H.onClosed=function(){this.dispatchEvent("channelClosed")};
_.H.onMessage=function(X){this.dispatchEvent(new xWR(X))};
_.H.onError=function(){this.dispatchEvent(new fGa(this.webChannelService.lastStatusCode===401?1:0))};
_.H.sendMessage=function(X,t){this.webChannelService.sendMessage(X,t)};
_.H.setLoungeToken=function(X){this.webChannelService.setLoungeToken(X)};
_.H.dispose=function(){this.webChannelService.dispose()};var TVH=Date.now(),HU=null,g1H=Array(50),BU=-1,FTT=!1;_.sx(nF,_.Au);nF.prototype.getScreens=function(){return this.screens};
nF.prototype.contains=function(X){return!!v0H(this.screens,X)};
nF.prototype.get=function(X){return X?GD(this.screens,X):null};
var s3T=function(X,t){var G=X.get(t.uuid)||X.get(t.id);if(G)return X=G.name,G.id=t.id||G.id,G.name=t.name,G.token=t.token,G.uuid=t.uuid||G.uuid,G.name!=X;X.screens.push(t);return!0},D4Q=function(X,t){var G=X.screens.length!=t.length;
X.screens=_.S$(X.screens,function(z){return!!v0H(t,z)});
for(var y=t.length,w=0;w<y;w++)G=s3T(X,t[w])||G;return G},SbH=function(X,t){var G=X.screens.length;
X.screens=_.S$(X.screens,function(y){return!(y||t?!y!=!t?0:y.id==t.id:1)});
return X.screens.length<G};
nF.prototype.info=function(X){oK(this.JSC$19554_logName_,X)};var hor=function(X,t,G,y,w){_.Au.call(this);this.JSC$19557_http_=X;this.pairingCode_=t;this.deviceId_=G;this.friendlyName_=y;this.enableShortLivedLoungeToken_=w;this.pollIndex_=0;this.JSC$19557_xhr_=null;this.JSC$19557_timer_=NaN};
_.S(hor,_.Au);_.H=hor.prototype;_.H.start=function(){!this.JSC$19557_xhr_&&isNaN(this.JSC$19557_timer_)&&this.poll_()};
_.H.stop=function(){this.JSC$19557_xhr_&&(this.JSC$19557_xhr_.abort(),this.JSC$19557_xhr_=null);isNaN(this.JSC$19557_timer_)||(_.Zu(this.JSC$19557_timer_),this.JSC$19557_timer_=NaN)};
_.H.disposeInternal=function(){this.stop();_.Au.prototype.disposeInternal.call(this)};
_.H.poll_=function(){this.JSC$19557_timer_=NaN;this.JSC$19557_xhr_=_.Cs(zD(this.JSC$19557_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.rT)(this.JSC$19559_onSuccess_,this),onError:(0,_.rT)(this.onError_,this),onTimeout:(0,_.rT)(this.JSC$19559_onTimeout_,this)})};
_.H.JSC$19559_onSuccess_=function(X,t){this.JSC$19557_xhr_=null;X=t.screen||{};X.dialId=this.deviceId_;X.name=this.friendlyName_;t=-1;this.enableShortLivedLoungeToken_&&X.shortLivedLoungeToken&&X.shortLivedLoungeToken.value&&X.shortLivedLoungeToken.refreshIntervalMs&&(X.screenIdType="shortLived",X.loungeToken=X.shortLivedLoungeToken.value,t=X.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new $s(X),t)};
_.H.onError_=function(X){this.JSC$19557_xhr_=null;X.status&&X.status==404?this.pollIndex_>=ZvH.length?this.publish("pairingFailed",Error("Ek")):(X=ZvH[this.pollIndex_],this.JSC$19557_timer_=_.SH((0,_.rT)(this.poll_,this),X),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+X.status))};
_.H.JSC$19559_onTimeout_=function(){this.JSC$19557_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var ZvH=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.sx(bB,nF);_.H=bB.prototype;_.H.start=function(){Vu(this)&&this.publish("screenChange");!_.O2("yt-remote-lounge-token-expiration")&&qbN(this);_.Zu(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.SH((0,_.rT)(this.start,this),1E4)};
_.H.add=function(X,t){Vu(this);s3T(this,X);CRQ(this,!1);this.publish("screenChange");t(X);X.token||qbN(this)};
_.H.remove=function(X,t){var G=Vu(this);SbH(this,X)&&(CRQ(this,!1),G=!0);t(X);G&&this.publish("screenChange")};
_.H.updateName=function(X,t,G,y){var w=Vu(this),z=this.get(X.id);z?(z.name!=t&&(z.name=t,CRQ(this,!1),w=!0),G(X)):y(Error("Hk"));w&&this.publish("screenChange")};
_.H.disposeInternal=function(){_.Zu(this.loungeTokenRefreshTimer_);bB.superClass_.disposeInternal.call(this)};
var qbN=function(X){if(X.screens.length){var t=_.iG(X.screens,function(y){return y.id}),G=zD(X.JSC$19561_http_,"/pairing/get_lounge_token_batch");
X.JSC$19561_http_.sendRequest("POST",G,{screen_ids:t.join(",")},(0,_.rT)(X.handleLoungeTokens_,X),(0,_.rT)(X.handleLoungeTokenError_,X))}};
bB.prototype.handleLoungeTokens_=function(X){Vu(this);var t=this.screens.length;X=X&&X.screens||[];for(var G=X.length,y=0;y<G;++y){var w=X[y],z=this.get(w.screenId);z&&(z.token=w.loungeToken,--t)}CRQ(this,!t);t&&oK(this.JSC$19554_logName_,"Missed "+t+" lounge tokens.")};
bB.prototype.handleLoungeTokenError_=function(X){oK(this.JSC$19554_logName_,"Requesting lounge tokens failed: "+X)};
var Vu=function(X){if(_.A("deprecate_pair_servlet_enabled"))return D4Q(X,[]);var t=TGH(G8H());t=_.S$(t,function(G){return!G.uuid});
return D4Q(X,t)},CRQ=function(X,t){wyH(_.iG(X.screens,gZi));
t&&ypr()};var ep=function(X,t){_.Au.call(this);this.getScreensToCheck_=t;t=(t=_.O2("yt-remote-online-screen-ids")||"")?t.split(","):[];for(var G={},y=this.getScreensToCheck_(),w=y.length,z=0;z<w;++z){var B=y[z].id;G[B]=_.Eh(t,B)}this.screenIdSet_=G;this.JSC$19564_http_=X;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;KVB("Initialized with "+(0,_.v6)(this.screenIdSet_))};
_.S(ep,_.Au);ep.prototype.isOnline=function(X){return!!this.screenIdSet_[X]};
ep.prototype.start=function(){var X=parseInt(_.O2("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.YE()-144E5<X?0:X)?OvB(this):(this.fastCheckEndTime_=_.YE()+3E5,_.Ku("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
ep.prototype.isEmpty=function(){return _.RH.isEmpty(this.screenIdSet_)};
ep.prototype.update=function(){KVB("Updating availability on schedule.");var X=this.getScreensToCheck_(),t=_.RH.filter(this.screenIdSet_,function(G,y){return G&&!!GD(X,y)},this);
uPi(this,t)};
var Q3H=function(X,t,G){var y=zD(X.JSC$19564_http_,"/pairing/get_screen_availability");X.JSC$19564_http_.sendRequest("POST",y,{lounge_token:t.token},(0,_.rT)(function(w){w=w.screens||[];for(var z=w.length,B=0;B<z;++B)if(w[B].loungeToken==t.token){G(w[B].status=="online");return}G(!1)},X),(0,_.rT)(function(){G(!1)},X))};
ep.prototype.disposeInternal=function(){_.Zu(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Au.prototype.disposeInternal.call(this)};
var uPi=function(X,t){a:if(_.RH.getCount(t)!=_.RH.getCount(X.screenIdSet_))var G=!1;else{G=_.RH.getKeys(t);for(var y=G.length,w=0;w<y;++w)if(!X.screenIdSet_[G[w]]){G=!1;break a}G=!0}G||(KVB("Updated online screens: "+(0,_.v6)(X.screenIdSet_)),X.screenIdSet_=t,X.publish("screenChange"));I8B(X)},OvB=function(X){isNaN(X.refreshTimer_)||_.Zu(X.refreshTimer_);
X.refreshTimer_=_.SH((0,_.rT)(X.requestScreenAvailability_,X),X.fastCheckEndTime_>0&&X.fastCheckEndTime_<_.YE()?2E4:1E4)};
ep.prototype.requestScreenAvailability_=function(){_.Zu(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var X=WVi(this);if(_.RH.getCount(X)){var t=zD(this.JSC$19564_http_,"/pairing/get_screen_availability"),G={lounge_token:_.RH.getKeys(X).join(",")};this.currentRequest_=this.JSC$19564_http_.sendRequest("POST",t,G,(0,_.rT)(this.onScreenAvailability_,this,X),(0,_.rT)(this.onScreenAvailabilityError_,this))}else uPi(this,{}),OvB(this)};
ep.prototype.onScreenAvailability_=function(X,t){this.currentRequest_=null;var G=_.RH.getKeys(WVi(this));if(_.Jq(G,_.RH.getKeys(X))){t=t.screens||[];G={};for(var y=t.length,w=0;w<y;++w)G[X[t[w].loungeToken]]=t[w].status=="online";uPi(this,G);OvB(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
ep.prototype.onScreenAvailabilityError_=function(X){this.warn_("Screen availability failed: "+X);this.currentRequest_=null;OvB(this)};
var KVB=function(X){oK("OnlineScreenService",X)};
ep.prototype.warn_=function(X){oK("OnlineScreenService",X)};
var WVi=function(X){var t={};_.zA(X.getScreensToCheck_(),function(G){G.token?t[G.token]=G.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return t},I8B=function(X){X=_.RH.getKeys(_.RH.filter(X.screenIdSet_,function(t){return t}));
X.sort(_.HS);X.length?_.Ku("yt-remote-online-screen-ids",X.join(","),60):_.uj("yt-remote-online-screen-ids")};_.sx(ks,nF);_.H=ks.prototype;_.H.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.H.add=function(X,t,G){this.localScreenService_.add(X,t,G)};
_.H.remove=function(X,t,G){this.localScreenService_.remove(X,t,G);this.onlineScreenService_.update()};
_.H.updateName=function(X,t,G,y){this.localScreenService_.contains(X)?this.localScreenService_.updateName(X,t,G,y):(X="Updating name of unknown screen: "+X.name,oK(this.JSC$19554_logName_,X),y(Error(X)))};
_.H.getScreens=function(X){return X?this.screens:kjv(this.screens,_.S$(this.automaticScreens_,function(t){return!this.contains(t)},this))};
_.H.JSC$19569_getOnlineScreens=function(){return _.S$(this.getScreens(!0),function(X){return this.onlineScreenService_.isOnline(X.id)},this)};
var prq=function(X,t,G,y,w,z){X.info("getAutomaticScreenByIds "+G+" / "+t);G||(G=X.deviceToScreenId_[t]);var B=X.getScreens(),V=G?GD(B,G):null;G&&(X.disableAutomaticScreenCache_||V)||(V=GD(B,t));if(V){V.uuid=t;var b=jp(X,V);Q3H(X.onlineScreenService_,b,function(e){w(e?b:null)})}else G?cCa(X,G,(0,_.rT)(function(e){var g=jp(this,new $s({name:y,
screenId:G,loungeToken:e,dialId:t||""}));Q3H(this.onlineScreenService_,g,function(F){w(F?g:null)})},X),z):w(null)};
ks.prototype.JSC$19569_getScreenByPollingPairingCode=function(X,t,G,y,w,z){var B=this;this.info("getDialScreenByPairingCode "+X+" / "+t);var V=new hor(this.JSC$19567_http_,X,t,G,y);V.subscribe("pairingComplete",function(b,e){_.Vs(V);w(jp(B,b),e)});
V.subscribe("pairingFailed",function(b){_.Vs(V);z(b)});
V.start();return(0,_.rT)(V.stop,V)};
var rCa=function(X,t){for(var G=X.screens.length,y=0;y<G;++y)if(X.screens[y].name==t)return X.screens[y];return null};
ks.prototype.JSC$19569_getScreenByPairingCode=function(X,t,G,y){_.Cs(zD(this.JSC$19567_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:X},timeout:5E3,onSuccess:(0,_.rT)(function(w,z){w=new $s(z.screen||{});if(!w.name||rCa(this,w.name)){a:{z=w.name;for(var B=2,V=t(z,B);rCa(this,V);){B++;if(B>20)break a;V=t(z,B)}z=V}w.name=z}G(jp(this,w))},this),
onError:(0,_.rT)(function(w){y(Error("Ik`"+w.status))},this),
onTimeout:(0,_.rT)(function(){y(Error("Jk"))},this)})};
var NGR=function(X,t,G){Q3H(X.onlineScreenService_,t,G)};
ks.prototype.disposeInternal=function(){_.Vs(this.localScreenService_);_.Vs(this.onlineScreenService_);ks.superClass_.disposeInternal.call(this)};
var cCa=function(X,t,G,y){X.info("requestLoungeToken_ for "+t);var w={postParams:{screen_ids:t},method:"POST",context:X,onSuccess:function(z,B){z=B&&B.screens||[];z[0]&&z[0].screenId==t?G(z[0].loungeToken):y(Error("Kk"))},
onError:function(){y(Error("Lk"))}};
_.Cs(zD(X.JSC$19567_http_,"/pairing/get_lounge_token_batch"),w)},PRr=function(X){X.screens=X.localScreenService_.getScreens();
for(var t=_.RH.transpose(X.deviceToScreenId_),G=X.screens.length,y=0;y<G;++y){var w=X.screens[y];w.uuid=t[w.id]||""}X.info("Updated manual screens: "+ApB(X.screens))};
ks.prototype.handleScreenChange_=function(){PRr(this);this.publish("screenChange");this.onlineScreenService_.update()};
var Y8V=function(X){EZB(X);X.localScreenService_=new bB(X.JSC$19567_http_);X.localScreenService_.subscribe("screenChange",(0,_.rT)(X.handleScreenChange_,X));PRr(X);X.disableAutomaticScreenCache_||(X.automaticScreens_=TGH(_.O2("yt-remote-automatic-screen-cache")||[]));EZB(X);X.info("Initializing automatic screens: "+ApB(X.automaticScreens_));X.onlineScreenService_=new ep(X.JSC$19567_http_,(0,_.rT)(X.getScreens,X,!0));X.onlineScreenService_.subscribe("screenChange",(0,_.rT)(function(){this.publish("onlineScreenChange")},
X))},jp=function(X,t){var G=X.get(t.id);
G?(G.uuid=t.uuid,t=G):((G=GD(X.automaticScreens_,t.uuid))?(G.id=t.id,G.token=t.token,t=G):X.automaticScreens_.push(t),X.disableAutomaticScreenCache_||U42(X));EZB(X);X.deviceToScreenId_[t.uuid]=t.id;_.Ku("yt-remote-device-id-map",X.deviceToScreenId_,31536E3);return t},U42=function(X){X=_.S$(X.automaticScreens_,function(t){return t.idType!="shortLived"});
_.Ku("yt-remote-automatic-screen-cache",_.iG(X,gZi))},EZB=function(X){X.deviceToScreenId_=_.O2("yt-remote-device-id-map")||{}};
ks.prototype.dispose=ks.prototype.dispose;_.sx(dM,_.Au);var g7=function(X,t){X.screen_=t;X.publish("sessionScreen",X.screen_)},m44=function(X,t){X.screen_&&(X.screen_.token=t,jp(X.JSC$19571_screenService_,X.screen_));
X.publish("sessionScreen",X.screen_)};
dM.prototype.onSessionStopped=function(X){this.isDisposed()||(X&&(F8(this,""+X),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
dM.prototype.info=function(X){oK(this.JSC$19571_logName_,X)};
var F8=function(X,t){oK(X.JSC$19571_logName_,t)};
dM.prototype.JSC$19573_getCastSession=function(){return null};
dM.prototype.setDisplayStatus=function(X){var t=this.receiver_;X?(t.displayStatus=new chrome.cast.ReceiverDisplayStatus(X,[]),t.displayStatus.showStop=!0):t.displayStatus=null;chrome.cast.setReceiverDisplayStatus(t,(0,_.rT)(function(){this.info("Updated receiver status for "+t.friendlyName+": "+X)},this),(0,_.rT)(function(){F8(this,"Failed to update receiver status for: "+t.friendlyName)},this))};
dM.prototype.disposeInternal=function(){this.setDisplayStatus("");dM.superClass_.disposeInternal.call(this)};var Tt=function(X,t,G){dM.call(this,X,t,"CastSession");var y=this;this.config_=G;this.JSC$19576_session_=null;this.JSC$19576_boundSessionUpdate_=(0,_.rT)(this.JSC$19578_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.rT)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.SH(function(){Roa(y,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19576_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19576_isInitLoungeToken_=!1;this.JSC$19576_lastLoungeTokenRefreshError_="unknown"};
_.S(Tt,dM);_.H=Tt.prototype;
_.H.setCastSession=function(X){if(this.JSC$19576_session_){if(this.JSC$19576_session_==X)return;F8(this,"Overriding cast session with new session object");ivH(this);this.JSC$19576_isInitLoungeToken_=!1;this.JSC$19576_lastLoungeTokenRefreshError_="unknown";this.JSC$19576_session_.removeUpdateListener(this.JSC$19576_boundSessionUpdate_);this.JSC$19576_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19576_session_=X;this.JSC$19576_session_.addUpdateListener(this.JSC$19576_boundSessionUpdate_);this.JSC$19576_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);LVH(this,"getMdxSessionStatus")};
_.H.launchWithParams=function(X){this.info("launchWithParams no-op for Cast: "+(0,_.v6)(X))};
_.H.stop=function(){if(this.JSC$19576_session_)this.JSC$19576_session_.stop((0,_.rT)(function(){this.onSessionStopped()},this),(0,_.rT)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.H.setDisplayStatus=function(){};
_.H.disposeInternal=function(){this.info("disposeInternal");ivH(this);this.JSC$19576_session_&&(this.JSC$19576_session_.removeUpdateListener(this.JSC$19576_boundSessionUpdate_),this.JSC$19576_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19576_session_=null;dM.prototype.disposeInternal.call(this)};
var a8V=function(X,t){_.Zu(X.getLoungeTokenTimeoutKey_);X.getLoungeTokenTimeoutKey_=0;t==0?vZv(X):X.getLoungeTokenTimeoutKey_=_.SH(function(){vZv(X)},t)},vZv=function(X){LVH(X,"getLoungeToken");
_.Zu(X.onLoungeTokenTimeoutKey_);X.onLoungeTokenTimeoutKey_=_.SH(function(){l8T(X,null)},3E4)},LVH=function(X,t){X.info("sendYoutubeMessage_: "+t+" "+(0,_.v6)(void 0));
var G={};G.type=t;X.JSC$19576_session_?X.JSC$19576_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",G,function(){},(0,_.rT)(function(){F8(this,"Failed to send message: "+t+".")},X)):F8(X,"Sending yt message without session: "+(0,_.v6)(G))};
Tt.prototype.onYoutubeMessage_=function(X,t){if(!this.isDisposed())if(t)if(t=(0,_.R4)(t),_.$h(t))switch(X=""+t.type,t=t.data||{},this.info("onYoutubeMessage_: "+X+" "+(0,_.v6)(t)),X){case "mdxSessionStatus":Roa(this,t);break;case "loungeToken":l8T(this,t);break;default:F8(this,"Unknown youtube message: "+X)}else F8(this,"Unable to parse message.");else F8(this,"No data in message.")};
var x4B=function(X,t){if(t)X.info("onConnectedScreenId_: Received screenId: "+t),X.screen_&&X.screen_.id==t||X.getScreen_(t,function(G){g7(X,G)},function(){return X.onSessionStopped()},5);
else X.onSessionStopped(Error("Ok"))},MVH=function(X,t,G){X.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(t));
var y=new $s(t);f8N(X,y,function(w){w?(X.JSC$19576_isInitLoungeToken_=!0,jp(X.JSC$19571_screenService_,y),g7(X,y),X.JSC$19576_lastLoungeTokenRefreshError_="unknown",a8V(X,G)):(_.$x(Error("Pk`"+JSON.stringify(t))),X.onSessionStopped())},5)},Roa=function(X,t){_.Zu(X.sessionStatusTimeoutKey_);
X.sessionStatusTimeoutKey_=0;if(t)X.config_.enableCastLoungeToken&&t.loungeToken?t.deviceId?X.screen_&&X.screen_.uuid==t.deviceId||(t.loungeTokenRefreshIntervalMs?MVH(X,{name:X.receiver_.friendlyName,screenId:t.screenId,loungeToken:t.loungeToken,dialId:t.deviceId,screenIdType:"shortLived"},t.loungeTokenRefreshIntervalMs):(_.$x(Error("Rk`"+JSON.stringify(t))),x4B(X,t.screenId))):(_.$x(Error("Qk`"+JSON.stringify(t))),x4B(X,t.screenId)):x4B(X,t.screenId);else X.onSessionStopped(Error("Ok"))},l8T=function(X,
t){_.Zu(X.onLoungeTokenTimeoutKey_);
X.onLoungeTokenTimeoutKey_=0;var G=null;if(t)if(t.loungeToken){var y;((y=X.screen_)==null?void 0:y.token)==t.loungeToken&&(G="staleLoungeToken")}else G="missingLoungeToken";else G="noLoungeTokenResponse";G?(X.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(t)+", error: "+G)),X.JSC$19576_lastLoungeTokenRefreshError_=G,a8V(X,3E4)):(m44(X,t.loungeToken),X.JSC$19576_isInitLoungeToken_=!1,X.JSC$19576_lastLoungeTokenRefreshError_="unknown",a8V(X,t.loungeTokenRefreshIntervalMs))};
Tt.prototype.getScreen_=function(X,t,G,y){_.Zu(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;prq(this.JSC$19571_screenService_,this.receiver_.label,X,this.receiver_.friendlyName,(0,_.rT)(function(w){w?t(w):y>=0?(F8(this,"Screen "+X+" appears to be offline. "+y+" retries left."),this.getScreenTimeoutKey_=_.SH((0,_.rT)(this.getScreen_,this,X,t,G,y-1),300)):G(Error("Sk"))},this),G)};
var f8N=function(X,t,G,y){_.Zu(X.JSC$19576_checkScreenAvailabilityTimeoutKey_);X.JSC$19576_checkScreenAvailabilityTimeoutKey_=0;NGR(X.JSC$19571_screenService_,t,function(w){w||y<0?G(w):X.JSC$19576_checkScreenAvailabilityTimeoutKey_=_.SH(function(){f8N(X,t,G,y-1)},300)})};
Tt.prototype.JSC$19573_getCastSession=function(){return this.JSC$19576_session_};
Tt.prototype.JSC$19578_onSessionUpdate_=function(X){this.isDisposed()||X||(F8(this,"Cast session died."),this.onSessionStopped())};
var ivH=function(X){_.Zu(X.getScreenTimeoutKey_);X.getScreenTimeoutKey_=0;_.Zu(X.JSC$19576_checkScreenAvailabilityTimeoutKey_);X.JSC$19576_checkScreenAvailabilityTimeoutKey_=0;_.Zu(X.sessionStatusTimeoutKey_);X.sessionStatusTimeoutKey_=0;_.Zu(X.onLoungeTokenTimeoutKey_);X.onLoungeTokenTimeoutKey_=0;_.Zu(X.getLoungeTokenTimeoutKey_);X.getLoungeTokenTimeoutKey_=0};var Ad=function(X,t,G,y){dM.call(this,X,t,"DialSession");this.config_=y;this.JSC$19580_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19580_theme_=G;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19580_deferredLaunchDeadlineTimer_=NaN;this.JSC$19580_boundSessionUpdate_=(0,_.rT)(this.JSC$19582_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19580_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19580_isInitLoungeToken_=!1;this.JSC$19580_lastLoungeTokenRefreshError_="unknown"};
_.S(Ad,dM);Ad.prototype.setCastSession=function(X){this.JSC$19580_session_=X;this.JSC$19580_session_.addUpdateListener(this.JSC$19580_boundSessionUpdate_)};
Ad.prototype.launchWithParams=function(X){this.connectData_=X;this.deferredLaunch_()};
Ad.prototype.stop=function(){XCa(this);if(this.JSC$19580_session_)this.JSC$19580_session_.stop((0,_.rT)(this.onSessionStopped,this,null),(0,_.rT)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Ad.prototype.disposeInternal=function(){XCa(this);this.JSC$19580_session_&&this.JSC$19580_session_.removeUpdateListener(this.JSC$19580_boundSessionUpdate_);this.JSC$19580_session_=null;dM.prototype.disposeInternal.call(this)};
var $Zv=function(X){var t;return!!(X.config_.enableDialLoungeToken&&((t=X.JSC$19580_session_)==null?0:t.getDialAppInfo))},tCH=function(X){X.cancelPolling_=X.JSC$19571_screenService_.JSC$19569_getScreenByPollingPairingCode(X.reversePairingCode_,X.receiver_.label,X.receiver_.friendlyName,$Zv(X),function(t,G){X.cancelPolling_=function(){};
X.JSC$19580_isInitLoungeToken_=!0;g7(X,t);t.idType=="shortLived"&&G>0&&Yk(X,G)},function(t){X.cancelPolling_=function(){};
X.onSessionStopped(t)})};
Ad.prototype.JSC$19582_onSessionUpdate_=function(X){this.isDisposed()||X||(F8(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var GKT=function(X){var t={};t.pairingCode=X.reversePairingCode_;t.theme=X.JSC$19580_theme_;HpQ()&&(t.env_useStageMdx=1);return _.Ks(t)},yBB=function(X){return new Promise(function(t){X.reversePairingCode_=igT();
if(X.connectData_){var G=new chrome.cast.DialLaunchResponse(!0,GKT(X));t(G);tCH(X)}else X.deferredLaunch_=function(){_.Zu(X.JSC$19580_deferredLaunchDeadlineTimer_);X.deferredLaunch_=function(){};
X.JSC$19580_deferredLaunchDeadlineTimer_=NaN;var y=new chrome.cast.DialLaunchResponse(!0,GKT(X));t(y);tCH(X)},X.JSC$19580_deferredLaunchDeadlineTimer_=_.SH(function(){X.deferredLaunch_()},100)})},zwv=function(X,t,G){X.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(t));
var y=new $s(t);return(new Promise(function(w){wCQ(X,y,function(z){z?(X.JSC$19580_isInitLoungeToken_=!0,jp(X.JSC$19571_screenService_,y),g7(X,y),Yk(X,G)):_.$x(Error("Uk`"+JSON.stringify(t)));w(z)},5)})).then(function(w){return w?new chrome.cast.DialLaunchResponse(!1):yBB(X)})},HrB=function(X,t){var G=X.launchData_.receiver.label,y=X.receiver_.friendlyName;
return(new Promise(function(w){prq(X.JSC$19571_screenService_,G,t,y,function(z){z&&z.token&&g7(X,z);w(z)},function(z){F8(X,"Failed to get DIAL screen: "+z);
w(null)})})).then(function(w){return w&&w.token?new chrome.cast.DialLaunchResponse(!1):yBB(X)})},wCQ=function(X,t,G,y){_.Zu(X.JSC$19580_checkScreenAvailabilityTimeoutKey_);
X.JSC$19580_checkScreenAvailabilityTimeoutKey_=0;NGR(X.JSC$19571_screenService_,t,function(w){w||y<0?G(w):X.JSC$19580_checkScreenAvailabilityTimeoutKey_=_.SH(function(){wCQ(X,t,G,y-1)},300)})},Yk=function(X,t){X.info("getDialAppInfoWithTimeout_ "+t);
$Zv(X)&&(_.Zu(X.getDialAppInfoTimeoutKey_),X.getDialAppInfoTimeoutKey_=0,t==0?oQV(X):X.getDialAppInfoTimeoutKey_=_.SH(function(){oQV(X)},t))},oQV=function(X){$Zv(X)&&X.JSC$19580_session_.getDialAppInfo(function(t){X.info("getDialAppInfo dialLaunchData: "+JSON.stringify(t));
t=t.extraData||{};var G=null;if(t.loungeToken){var y;((y=X.screen_)==null?void 0:y.token)==t.loungeToken&&(G="staleLoungeToken")}else G="missingLoungeToken";G?(X.JSC$19580_lastLoungeTokenRefreshError_=G,Yk(X,3E4)):(X.JSC$19580_isInitLoungeToken_=!1,X.JSC$19580_lastLoungeTokenRefreshError_="unknown",m44(X,t.loungeToken),Yk(X,t.loungeTokenRefreshIntervalMs))},function(t){X.info("getDialAppInfo error: "+t);
X.JSC$19580_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Yk(X,3E4)})},XCa=function(X){_.Zu(X.JSC$19580_checkScreenAvailabilityTimeoutKey_);
X.JSC$19580_checkScreenAvailabilityTimeoutKey_=0;_.Zu(X.getDialAppInfoTimeoutKey_);X.getDialAppInfoTimeoutKey_=0;X.cancelPolling_();X.cancelPolling_=function(){};
_.Zu(X.JSC$19580_deferredLaunchDeadlineTimer_)};var sN=function(X,t){dM.call(this,X,t,"ManualSession");this.JSC$19584_deferredLaunchDeadlineTimer_=_.SH((0,_.rT)(this.launchWithParams,this,null),150)};
_.S(sN,dM);sN.prototype.stop=function(){this.onSessionStopped()};
sN.prototype.setCastSession=function(){};
sN.prototype.launchWithParams=function(){_.Zu(this.JSC$19584_deferredLaunchDeadlineTimer_);this.JSC$19584_deferredLaunchDeadlineTimer_=NaN;var X=GD(this.JSC$19571_screenService_.getScreens(),this.receiver_.label);if(X)g7(this,X);else this.onSessionStopped(Error("Vk"))};
sN.prototype.disposeInternal=function(){_.Zu(this.JSC$19584_deferredLaunchDeadlineTimer_);this.JSC$19584_deferredLaunchDeadlineTimer_=NaN;dM.prototype.disposeInternal.call(this)};var Ft=function(X,t){_.Au.call(this);this.config_=t;this.JSC$19587_screenService_=X;this.JSC$19587_appId_=t.appId||"233637DE";this.JSC$19587_theme_=t.theme||"cl";this.disableDial_=t.disableCastApi||!1;this.forceMirroring_=t.forceMirroring||!1;this.JSC$19587_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.rT)(this.onReceiverAction_,this)};
_.S(Ft,_.Au);
Ft.prototype.init=function(X,t){chrome.cast.timeout.requestSession=3E4;var G=new chrome.cast.SessionRequest(this.JSC$19587_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.A("desktop_enable_cast_connect")&&(G.androidReceiverCompatible=!0);this.disableDial_||(G.dialRequest=new chrome.cast.DialRequest("YouTube"));var y=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;X=X||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var w=(0,_.rT)(this.onReceiverUpdated_,
this);G=new chrome.cast.ApiConfig(G,(0,_.rT)(this.onSessionEstablished_,this),w,y,X);G.customDialLaunchCallback=(0,_.rT)(this.onDialLaunchRequested_,this);chrome.cast.initialize(G,(0,_.rT)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),drv(),this.JSC$19587_screenService_.subscribe("onlineScreenChange",(0,_.rT)(this.JSC$19589_onScreenChange_,this)),this.customReceivers_=JBT(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.rT)(function(z){this.warn_("Failed to set initial custom receivers: "+(0,_.v6)(z))},this)),this.publish("yt-remote-cast2-availability-change",D2(this)),t(!0))},this),(0,_.rT)(function(z){this.warn_("Failed to initialize API: "+(0,_.v6)(z));
t(!1)},this))};
Ft.prototype.setConnectedScreenStatus=function(X,t){Sp("Setting connected screen ID: "+X+" -> "+t);if(this.JSC$19587_session_){var G=this.JSC$19587_session_.screen_;if(!X||G&&G.id!=X)Sp("Unsetting old screen status: "+this.JSC$19587_session_.receiver_.friendlyName),hd(this,null)}if(X&&t){if(!this.JSC$19587_session_){X=GD(this.JSC$19587_screenService_.getScreens(),X);if(!X){Sp("setConnectedScreenStatus: Unknown screen.");return}if(X.idType=="shortLived"){Sp("setConnectedScreenStatus: Screen with id type to be short lived.");
return}G=BQR(this,X);G||(Sp("setConnectedScreenStatus: Connected receiver not custom..."),G=new chrome.cast.Receiver(X.uuid?X.uuid:X.id,X.name),G.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(G),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.rT)(function(y){this.warn_("Failed to set initial custom receivers: "+(0,_.v6)(y))},this)));
Sp("setConnectedScreenStatus: new active receiver: "+G.friendlyName);hd(this,new sN(this.JSC$19587_screenService_,G),!0)}this.JSC$19587_session_.setDisplayStatus(t)}else Sp("setConnectedScreenStatus: no screen.")};
var BQR=function(X,t){return t?_.r6(X.customReceivers_,function(G){return t9(t,G.label)},X):null};
Ft.prototype.setLaunchParams=function(X){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19587_session_?this.JSC$19587_session_.launchWithParams(X):this.warn_("Setting connection data without a session")};
Ft.prototype.JSC$19589_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19587_session_?(this.JSC$19587_session_.stop(),hd(this,null)):Sp("Stopping non-existing session")};
Ft.prototype.requestSession=function(){chrome.cast.requestSession((0,_.rT)(this.onSessionEstablished_,this),(0,_.rT)(this.onSessionRequestFailed_,this))};
Ft.prototype.disposeInternal=function(){this.JSC$19587_screenService_.unsubscribe("onlineScreenChange",(0,_.rT)(this.JSC$19589_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.vY(_.GA("yt.mdx.remote.debug.handlers_")||[],Vlq);_.Vs(this.JSC$19587_session_);_.Au.prototype.disposeInternal.call(this)};
var Sp=function(X){oK("Controller",X)};
Ft.prototype.warn_=function(X){oK("Controller",X)};
var Vlq=function(X){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(X)},D2=function(X){return X.hasCastReceiver_||!!X.customReceivers_.length||!!X.JSC$19587_session_},hd=function(X,t,G){t!=X.JSC$19587_session_&&(_.Vs(X.JSC$19587_session_),(X.JSC$19587_session_=t)?(G?X.publish("yt-remote-cast2-receiver-resumed",t.receiver_):X.publish("yt-remote-cast2-receiver-selected",t.receiver_),t.subscribe("sessionScreen",(0,_.rT)(X.onSessionScreen_,X,t)),t.subscribe("sessionFailed",
function(){return nQR(X,t)}),t.screen_?X.publish("yt-remote-cast2-session-change",t.screen_):G&&X.JSC$19587_session_.launchWithParams(null)):X.publish("yt-remote-cast2-session-change",null))},nQR=function(X,t){X.JSC$19587_session_==t&&X.publish("yt-remote-cast2-session-failed")};
_.H=Ft.prototype;_.H.onSessionScreen_=function(X,t){this.JSC$19587_session_==X&&(t||hd(this,null),this.publish("yt-remote-cast2-session-change",t))};
_.H.onReceiverAction_=function(X,t){if(!this.isDisposed())if(X)switch(X.friendlyName=chrome.cast.unescape(X.friendlyName),Sp("onReceiverAction_ "+X.label+" / "+X.friendlyName+"-- "+t),t){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19587_session_)if(this.JSC$19587_session_.receiver_.label!=X.label)Sp("onReceiverAction_: Stopping active receiver: "+this.JSC$19587_session_.receiver_.friendlyName),this.JSC$19587_session_.stop();else{Sp("onReceiverAction_: Casting to active receiver.");this.JSC$19587_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19587_session_.screen_);break}switch(X.receiverType){case chrome.cast.ReceiverType.CUSTOM:hd(this,new sN(this.JSC$19587_screenService_,X));break;case chrome.cast.ReceiverType.DIAL:hd(this,new Ad(this.JSC$19587_screenService_,X,this.JSC$19587_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:hd(this,new Tt(this.JSC$19587_screenService_,X,this.config_));break;default:this.warn_("Unknown receiver type: "+X.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19587_session_&&
this.JSC$19587_session_.receiver_.label==X.label?this.JSC$19587_session_.stop():this.warn_("Stopping receiver w/o session: "+X.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.H.onDialLaunchRequested_=function(X){if(this.isDisposed())return Promise.reject(Error("Wk"));var t=X.receiver;t.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+t.friendlyName),t.receiverType=chrome.cast.ReceiverType.DIAL);var G=this.JSC$19587_session_?this.JSC$19587_session_.receiver_:null;if(!G||G.label!=t.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+t.friendlyName),Promise.reject(Error("Xk"));if(G&&G.label==t.label&&G.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19587_session_.screen_)return Sp("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19587_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+G.receiverType+'" to "dial" for '+t.friendlyName);hd(this,new Ad(this.JSC$19587_screenService_,t,this.JSC$19587_theme_,this.config_))}t=this.JSC$19587_session_;t.launchData_=X;t.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(X=t.launchData_.extraData||{},G=X.screenId||null,$Zv(t)&&X.loungeToken?X.loungeTokenRefreshIntervalMs?X=zwv(t,{name:t.receiver_.friendlyName,screenId:X.screenId,loungeToken:X.loungeToken,dialId:t.launchData_.receiver.label,screenIdType:"shortLived"},X.loungeTokenRefreshIntervalMs):(_.$x(Error("Tk`"+JSON.stringify(X))),X=HrB(t,G)):X=HrB(t,G)):X=yBB(t);return X};
_.H.onSessionEstablished_=function(X){var t=this;if(!this.isDisposed()&&!this.forceMirroring_){Sp("New cast session ID: "+X.sessionId);var G=X.receiver;if(G.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19587_session_)if(G.receiverType==chrome.cast.ReceiverType.CAST)Sp("Got resumed cast session before resumed mdx connection."),G.friendlyName=chrome.cast.unescape(G.friendlyName),hd(this,new Tt(this.JSC$19587_screenService_,G,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var y=this.JSC$19587_session_.receiver_,w=GD(this.JSC$19587_screenService_.getScreens(),y.label);w&&t9(w,G.label)&&y.receiverType!=chrome.cast.ReceiverType.CAST&&G.receiverType==chrome.cast.ReceiverType.CAST&&(Sp("onSessionEstablished_: manual to cast session change "+G.friendlyName),_.Vs(this.JSC$19587_session_),this.JSC$19587_session_=new Tt(this.JSC$19587_screenService_,G,this.config_),this.JSC$19587_session_.subscribe("sessionScreen",(0,_.rT)(this.onSessionScreen_,this,this.JSC$19587_session_)),
this.JSC$19587_session_.subscribe("sessionFailed",function(){return nQR(t,t.JSC$19587_session_)}),this.JSC$19587_session_.launchWithParams(null));
this.JSC$19587_session_.setCastSession(X)}}};
_.H.JSC$19589_getCastSession=function(){return this.JSC$19587_session_?this.JSC$19587_session_.JSC$19573_getCastSession():null};
_.H.onSessionRequestFailed_=function(X){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.v6)(X)),X.code!=chrome.cast.ErrorCode.CANCEL&&hd(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.H.onReceiverUpdated_=function(X){Sp("Receiver availability updated: "+X);if(!this.isDisposed()){var t=D2(this);this.hasCastReceiver_=X==chrome.cast.ReceiverAvailability.AVAILABLE;D2(this)!=t&&this.publish("yt-remote-cast2-availability-change",D2(this))}};
var JBT=function(X){var t=X.JSC$19587_screenService_.JSC$19569_getOnlineScreens(),G=X.JSC$19587_session_&&X.JSC$19587_session_.receiver_;X=_.iG(t,function(y){G&&t9(y,G.label)&&(G=null);var w=y.uuid?y.uuid:y.id,z=BQR(this,y);z?(z.label=w,z.friendlyName=y.name):(z=new chrome.cast.Receiver(w,y.name),z.receiverType=chrome.cast.ReceiverType.CUSTOM);return z},X);
G&&(G.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(G=new chrome.cast.Receiver(G.label,G.friendlyName),G.receiverType=chrome.cast.ReceiverType.CUSTOM),X.push(G));return X};
Ft.prototype.JSC$19589_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=JBT(this),Sp("Updating custom receivers: "+(0,_.v6)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.rT)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",D2(this)))};
Ft.prototype.setLaunchParams=Ft.prototype.setLaunchParams;Ft.prototype.setConnectedScreenStatus=Ft.prototype.setConnectedScreenStatus;Ft.prototype.stopSession=Ft.prototype.JSC$19589_stopSession;Ft.prototype.getCastSession=Ft.prototype.JSC$19589_getCastSession;Ft.prototype.requestSession=Ft.prototype.requestSession;Ft.prototype.init=Ft.prototype.init;Ft.prototype.dispose=Ft.prototype.dispose;var VCV=_.Vc(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),PuN=[],CuR=_.sw(VCV);var brv=function(X){X.audioTrackId=null;X.trackData=null;X.playerState=-1;X.hasPrevious=!1;X.hasNext=!1;X.playerTime_=0;X.playerTimeAt_=_.YE();X.seekableStart_=0;X.seekableEnd_=0;X.duration_=0;X.loadedTime=0;X.liveIngestionTime_=NaN;X.isLive_=!1};
_.H=TD.prototype;
_.H.reset=function(X){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;X&&(this.index=X.index,this.listId=X.listId,this.videoId=X.videoId,this.playerState=X.playerState,this.volume=X.volume,this.muted=X.muted,this.audioTrackId=X.audioTrackId,this.trackData=X.trackData,this.hasPrevious=X.hasPrevious,this.hasNext=X.hasNext,this.playerTime_=X.playerTime,this.playerTimeAt_=X.playerTimeAt,this.seekableStart_=X.seekableStart,this.seekableEnd_=X.seekableEnd,this.duration_=X.duration,this.loadedTime=
X.loadedTime,this.liveIngestionTime_=X.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.H.stopPlayer=function(){this.index=-1;this.videoId="";brv(this)};
_.H.isPlaying=function(){return this.playerState==1};
_.H.isBuffering=function(){return this.playerState==3};
_.H.isAdPlaying=function(){return this.playerState==1081};
var Z2=function(X,t){X.playerTime_=t;X.playerTimeAt_=_.YE()},kK2=function(X){switch(X.playerState){case 1:case 1081:return(_.YE()-X.playerTimeAt_)/1E3+X.playerTime_;
case -1E3:return 0}return X.playerTime_};
TD.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.YE()-this.playerTimeAt_)/1E3:0):this.duration_};
var dZH=function(X,t,G){var y=X.videoId;X.videoId=t;X.index=G;t!=y&&brv(X)},ewT=function(X){var t={};
t.index=X.index;t.listId=X.listId;t.videoId=X.videoId;t.playerState=X.playerState;t.volume=X.volume;t.muted=X.muted;t.audioTrackId=X.audioTrackId;t.trackData=_.RH.unsafeClone(X.trackData);t.hasPrevious=X.hasPrevious;t.hasNext=X.hasNext;t.playerTime=X.playerTime_;t.playerTimeAt=X.playerTimeAt_;t.seekableStart=X.seekableStart_;t.seekableEnd=X.seekableEnd_;t.duration=X.duration_;t.loadedTime=X.loadedTime;t.liveIngestionTime=X.liveIngestionTime_;return t};
TD.prototype.clone=function(){return new TD(ewT(this))};var q5=function(X,t){_.Au.call(this);var G=this;this.state_=0;this.connection_=X;this.contextSubscriptions_=[];this.actionQueue_=new cgH;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.rT)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.rT)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.rT)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.rT)(this.onCloudviewAvailabilityChange_,this);var y=0;X?(y=X.getProxyState(),
y!=3&&(X.subscribe("proxyStateChange",this.setState_,this),jhv(this))):y=3;y!=0&&(t?this.setState_(y):_.SH(function(){G.setState_(y)},0));
(X=RlQ())&&gQR(this,X);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.S(q5,_.Au);q5.prototype.getState=function(){return this.state_};
q5.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
q5.prototype.reconnect=function(){this.connection_.reconnect()};
var CR=function(X){return new TD(X.connection_.getPlayerContextData())};
_.H=q5.prototype;_.H.play=function(){KR(this)?(this.castMedia_?this.castMedia_.play(null,_.ra,FkB(this,"play")):ON(this,"play"),TQv(this,1,kK2(CR(this))),this.publish("remotePlayerChange")):u9(this,this.play)};
_.H.pause=function(){KR(this)?(this.castMedia_?this.castMedia_.pause(null,_.ra,FkB(this,"pause")):ON(this,"pause"),TQv(this,2,kK2(CR(this))),this.publish("remotePlayerChange")):u9(this,this.pause)};
_.H.seekTo=function(X){if(KR(this)){if(this.castMedia_){var t=CR(this),G=new chrome.cast.media.SeekRequest;G.currentTime=X;t.isPlaying()||t.isBuffering()?G.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:G.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(G,_.ra,FkB(this,"seekTo",{newTime:X}))}else ON(this,"seekTo",{newTime:X});TQv(this,3,X);this.publish("remotePlayerChange")}else u9(this,_.WP(this.seekTo,X))};
_.H.stop=function(){if(KR(this)){this.castMedia_?this.castMedia_.stop(null,_.ra,FkB(this,"stopVideo")):ON(this,"stopVideo");var X=CR(this);X.stopPlayer();QJ(this,X);this.publish("remotePlayerChange")}else u9(this,this.stop)};
_.H.setVolume=function(X,t){if(KR(this)){var G=CR(this);if(this.castSession_){if(G.volume!=X){var y=Math.round(X)/100;this.castSession_.setReceiverVolumeLevel(y,(0,_.rT)(function(){J9("set receiver volume: "+y)},this),(0,_.rT)(function(){this.warn_("failed to set receiver volume.")},this))}G.muted!=t&&this.castSession_.setReceiverMuted(t,(0,_.rT)(function(){J9("set receiver muted: "+t)},this),(0,_.rT)(function(){this.warn_("failed to set receiver muted.")},this))}else{var w={volume:X,
muted:t};G.volume!=-1&&(w.delta=X-G.volume);ON(this,"setVolume",w)}G.muted=t;G.volume=X;QJ(this,G)}else u9(this,_.WP(this.setVolume,X,t))};
_.H.setAudioTrack=function(X,t){KR(this)?(t=t.getLanguageInfo().getId(),ON(this,"setAudioTrack",{videoId:X,audioTrackId:t}),X=CR(this),X.audioTrackId=t,QJ(this,X)):u9(this,_.WP(this.setAudioTrack,X,t))};
_.H.addVideo=function(X){KR(this)?ON(this,"addVideo",{videoId:X}):u9(this,_.WP(this.addVideo,X))};
_.H.addPlaylist=function(X){KR(this)?ON(this,"addVideos",{listId:X}):u9(this,_.WP(this.addPlaylist,X))};
_.H.addVideos=function(X){X.length==0?this.warn_("Ignore add videos request due to empty list"):KR(this)?ON(this,"addVideos",{videoIds:X.join(",")}):u9(this,_.WP(this.addVideos,X))};
_.H.JSC$19599_removeVideo=function(X){KR(this)?ON(this,"removeVideo",{videoId:X}):u9(this,_.WP(this.JSC$19599_removeVideo,X))};
_.H.JSC$19599_insertVideo=function(X){KR(this)?ON(this,"insertVideo",{videoId:X}):u9(this,_.WP(this.JSC$19599_insertVideo,X))};
_.H.playVideo=function(X,t,G,y,w,z,B){y=y===void 0?null:y;w=w===void 0?null:w;z=z===void 0?null:z;B=B===void 0?null:B;var V=CR(this),b={videoId:X};G!==void 0&&(b.currentIndex=G);dZH(V,X,G||0);t!==void 0&&(Z2(V,t),b.currentTime=t);y&&(b.listId=y);w&&(b.playerParams=w);z&&(b.clickTrackingParams=z);B&&(b.locationInfo=(0,_.v6)(B));ON(this,"setPlaylist",b);y||QJ(this,V)};
_.H.nextVideo=function(X,t){if(KR(this)){if(X&&t){var G=CR(this);dZH(G,X,t);QJ(this,G)}ON(this,"next")}else u9(this,_.WP(this.nextVideo,X,t))};
_.H.clearPlaylist=function(){if(KR(this)){ON(this,"clearPlaylist");var X=CR(this);X.reset();QJ(this,X);this.publish("remotePlayerChange")}else u9(this,this.clearPlaylist)};
_.H.dispose=function(){if(this.state_!=3){var X=this.state_;this.state_=3;this.publish("proxyStateChange",X,this.state_)}_.Au.prototype.dispose.call(this)};
_.H.disposeInternal=function(){ABr(this);this.connection_=null;this.actionQueue_.clear();gQR(this,null);_.Au.prototype.disposeInternal.call(this)};
var jhv=function(X){_.zA("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(t){this.contextSubscriptions_.push(this.connection_.subscribe(t,_.WP(this.onProxyEvent_,t),this))},X)},ABr=function(X){_.zA(X.contextSubscriptions_,function(t){this.connection_.unsubscribeByKey(t)},X);
X.contextSubscriptions_.length=0},KR=function(X){return X.getState()==1},u9=function(X,t){X.actionQueue_.getCount()<50&&X.actionQueue_.enqueue(t)},TQv=function(X,t,G){var y=CR(X);
Z2(y,G);y.playerState!=-1E3&&(y.playerState=t);QJ(X,y)},ON=function(X,t,G){X.connection_.sendMessage(t,G)},QJ=function(X,t){ABr(X);
X.connection_.setPlayerContextData(ewT(t));jhv(X)};
q5.prototype.setState_=function(X){if((X!=this.state_||X==2)&&this.state_!=3&&X!=0){var t=this.state_;this.state_=X;this.publish("proxyStateChange",t,X);if(X==1)for(;!this.actionQueue_.isEmpty();)X=this.actionQueue_,WYH(X),X.front_.pop().apply(this);else X==3&&this.dispose()}};
q5.prototype.onProxyEvent_=function(X,t){this.publish(X,t)};
var gQR=function(X,t){X.castSession_&&(X.castSession_.removeUpdateListener(X.boundCastStatusListener_),X.castSession_.removeMediaListener(X.boundCastMediaListener_),X.onCastMediaChange_(null));X.castSession_=t;if(X.castSession_&&(J9("Setting cast session: "+X.castSession_.sessionId),X.castSession_.addUpdateListener(X.boundCastStatusListener_),X.castSession_.addMediaListener(X.boundCastMediaListener_),X.castSession_.media.length))X.onCastMediaChange_(X.castSession_.media[0])};
q5.prototype.onCastStatusUpdate_=function(X){if(!X)this.onCastMediaChange_(null),gQR(this,null);else if(this.castSession_.receiver.volume){X=this.castSession_.receiver.volume;var t=CR(this),G=Math.round(100*X.level||0);if(t.volume!=G||t.muted!=X.muted)J9("Cast volume update: "+X.level+(X.muted?" muted":"")),t.volume=G,t.muted=!!X.muted,QJ(this,t)}};
q5.prototype.onCastMediaChange_=function(X){J9("Cast media: "+!!X);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=X)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Y$N(this),this.publish("remotePlayerChange")};
var Y$N=function(X){var t=X.castMedia_.media,G=X.castMedia_.customData;if(t&&G){var y=CR(X);t.contentId!=y.videoId&&J9("Cast changing video to: "+t.contentId);y.videoId=t.contentId;y.playerState=G.playerState;Z2(y,X.castMedia_.getEstimatedTime());QJ(X,y)}else J9("No cast media video. Ignoring state update.")};
q5.prototype.onCastMediaUpdate_=function(X){if(X)Y$N(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
q5.prototype.onCloudviewAvailabilityChange_=function(){var X=RlQ();X&&gQR(this,X)};
q5.prototype.warn_=function(X){oK("CP",X)};
var FkB=function(X,t,G){return(0,_.rT)(function(y){this.warn_("Failed to "+t+" with cast v2 channel. Error code: "+y.code);y.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+t+" using MDx browser channel."),ON(this,t,G))},X)};var W9=function(X,t,G,y){y=y===void 0?!1:y;_.Au.call(this);var w=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$19606_http_=X;this.enableConnectWithInitialState_=y;this.listeners_.push(_.jP(window,"beforeunload",function(){w.JSC$19609_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new TD;this.currentScreenId_=t.id;this.currentScreenIdType_=t.idType;this.channelService=n14(this.JSC$19606_http_,G,this.JSC$19609_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){sh4(w)});
this.channelService.listen("channelClosed",function(){It("Channel closed");isNaN(w.connectTimerId_)?yu(!0):yu();w.dispose()});
this.channelService.listen("channelError",function(z){yu();isNaN(w.getReconnectTimeout_())?(z==1&&w.currentScreenIdType_=="shortLived"&&w.publish("browserChannelAuthError",z),It("Channel error: "+z+" without reconnection"),w.dispose()):(w.reconnecting_=!0,It("Channel error: "+z+" with reconnection in "+w.getReconnectTimeout_()+" ms"),DZN(w,2))});
this.channelService.listen("channelMessage",function(z){S$H(w,z)});
this.channelService.setLoungeToken(t.token);this.subscribe("remoteQueueChange",function(){var z=w.playerContext_.videoId;xQR()&&_.Ku("yt-remote-session-video-id",z)})};
_.S(W9,_.Au);
W9.prototype.connect=function(X,t){if(t){var G=t.listId,y=t.videoId,w=t.videoIds,z=t.playerParams,B=t.clickTrackingParams,V=t.index,b={videoId:y},e=t.currentTime,g=t.locationInfo;t=t.loopMode;e!==void 0&&(b.currentTime=e<=5?0:e);z&&(b.playerParams=z);g&&(b.locationInfo=g);B&&(b.clickTrackingParams=B);G&&(b.listId=G);w&&w.length>0&&(b.videoIds=w.join(","));V!==void 0&&(b.currentIndex=V);this.enableConnectWithInitialState_&&(b.loopMode=t||"LOOP_MODE_OFF");G&&(this.playerContext_.listId=G);this.playerContext_.videoId=
y;this.playerContext_.index=V||0;this.playerContext_.state=3;Z2(this.playerContext_,e);this.autoplayMode_="UNSUPPORTED";G=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";It("Connecting with "+G+" and params: "+(0,_.v6)(b));this.channelService.connect({method:G,params:(0,_.v6)(b)},X,tlH())}else It("Connecting without params"),this.channelService.connect({},X,tlH());hwR(this)};
W9.prototype.setLoungeToken=function(X){this.channelService.setLoungeToken(X)};
W9.prototype.dispose=function(){this.isDisposed()||(_.dl("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),DZN(this,3));_.Au.prototype.dispose.call(this)};
W9.prototype.disposeInternal=function(){Zra(this);q$V(this);CV4(this);_.Zu(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Zu(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.qVY(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Au.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var KkQ=function(X){return _.r6(X.connectedDevices_,function(t){return t.type=="LOUNGE_SCREEN"})},It=function(X){oK("conn",X)},DZN=function(X,t){X.publish("proxyStateChange",t)},hwR=function(X){X.connectTimerId_=_.SH(function(){It("Connecting timeout");
X.JSC$19609_disconnect_(1)},2E4)},Zra=function(X){_.Zu(X.connectTimerId_);
X.connectTimerId_=NaN},CV4=function(X){_.Zu(X.reconnectedCheckScreenTimeout_);
X.reconnectedCheckScreenTimeout_=NaN},Or2=function(X){q$V(X);
X.playingSyncTimerId_=_.SH(function(){c9(X,"getNowPlaying")},2E4)},q$V=function(X){_.Zu(X.playingSyncTimerId_);
X.playingSyncTimerId_=NaN},sh4=function(X){It("Channel opened");
X.reconnecting_&&(X.reconnecting_=!1,CV4(X),X.reconnectedCheckScreenTimeout_=_.SH(function(){It("Timing out waiting for a screen.");X.JSC$19609_disconnect_(1)},15E3))},QhR=function(X,t){var G=null;
if(t){var y=KkQ(X);y&&(G={clientName:y.clientName,deviceMake:y.brand,deviceModel:y.model,osVersion:y.osVersion})}_.dl("yt.mdx.remote.remoteClient_",G);t&&(Zra(X),CV4(X));G=X.channelService.isChannelOpened()&&isNaN(X.connectTimerId_);t==G?t&&(DZN(X,1),c9(X,"getSubtitlesTrack")):t?(X.getOtherConnectedRemoteId_()&&X.playerContext_.reset(),DZN(X,1),c9(X,"getNowPlaying"),uWi(X)):X.JSC$19609_disconnect_(1)},IeR=function(X,t){var G=t.params.videoId;
delete t.params.videoId;G==X.playerContext_.videoId&&(_.RH.isEmpty(t.params)?X.playerContext_.trackData=null:X.playerContext_.trackData=t.params,X.publish("remotePlayerChange"))},WkT=function(X,t,G){var y=t.params.videoId||t.params.video_id,w=parseInt(t.params.currentIndex,10);
X.playerContext_.listId=t.params.listId||X.playerContext_.listId;dZH(X.playerContext_,y,w);X.publish("remoteQueueChange",G)},cBR=function(X,t){t.params=t.params||{};
WkT(X,t,"NOW_PLAYING_MAY_CHANGE");X.onStateChange_(t);X.publish("autoplayDismissed")};
W9.prototype.onStateChange_=function(X){var t=parseInt(X.params.currentTime||X.params.current_time,10);Z2(this.playerContext_,isNaN(t)?0:t);t=parseInt(X.params.state,10);t=isNaN(t)?-1:t;t==-1&&this.playerContext_.playerState==-1E3&&(t=-1E3);this.playerContext_.playerState=t;t=Number(X.params.loadedTime);this.playerContext_.loadedTime=isNaN(t)?0:t;t=Number(X.params.duration);this.playerContext_.duration_=isNaN(t)?0:t;t=this.playerContext_;var G=Number(X.params.liveIngestionTime);t.liveIngestionTime_=
G;t.isLive_=isNaN(G)?!1:!0;t=this.playerContext_;G=Number(X.params.seekableStartTime);X=Number(X.params.seekableEndTime);t.seekableStart_=isNaN(G)?0:G;t.seekableEnd_=isNaN(X)?0:X;this.playerContext_.playerState==1?Or2(this):q$V(this);this.publish("remotePlayerChange")};
W9.prototype.onAdStateChange_=function(X){if(this.playerContext_.playerState!=-1E3){var t=1085;switch(parseInt(X.params.adState,10)){case 1:t=1081;break;case 2:t=1084;break;case 0:t=1083}this.playerContext_.playerState=t;X=parseInt(X.params.currentTime,10);Z2(this.playerContext_,isNaN(X)?0:X);this.publish("remotePlayerChange")}};
var pCr=function(X,t){var G=t.params.muted=="true";X.playerContext_.volume=parseInt(t.params.volume,10);X.playerContext_.muted=G;X.publish("remotePlayerChange")},rBi=function(X,t){X.autoplayVideoId_=t.params.videoId;
X.publish("nowAutoplaying",parseInt(t.params.timeout,10))},NQQ=function(X,t){X.autoplayVideoId_=t.params.videoId||null;
X.publish("autoplayUpNext",X.autoplayVideoId_)},PVR=function(X,t){X.autoplayMode_=t.params.autoplayMode;
X.publish("autoplayModeChange",X.autoplayMode_);X.autoplayMode_=="DISABLED"&&X.publish("autoplayDismissed")},EQv=function(X,t){var G=t.params.hasNext=="true";
X.playerContext_.hasPrevious=t.params.hasPrevious=="true";X.playerContext_.hasNext=G;X.publish("previousNextChange")};
W9.prototype.isCapabilitySupportedOnConnectedDevices_=function(X){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var t=_.J(this.connectedDevices_),G=t.next();!G.done;G=t.next())if(!G.value.capabilities.has(X))return!1;return!0};
var S$H=function(X,t){t=t.message;t.params?It("Received: action="+t.action+", params="+(0,_.v6)(t.params)):It("Received: action="+t.action+" {}");switch(t.action){case "loungeStatus":t=(0,_.R4)(t.params.devices);X.connectedDevices_=_.iG(t,function(y){return new d7(y)});
t=!!_.r6(X.connectedDevices_,function(y){return y.type=="LOUNGE_SCREEN"});
QhR(X,t);t=X.isCapabilitySupportedOnConnectedDevices_("mlm");X.publish("multiStateLoopEnabled",t);break;case "loungeScreenDisconnected":bl4(X.connectedDevices_,function(y){return y.type=="LOUNGE_SCREEN"});
QhR(X,!1);break;case "remoteConnected":var G=new d7((0,_.R4)(t.params.device));_.r6(X.connectedDevices_,function(y){return y.equals(G)})||_.RV(X.connectedDevices_,G);
break;case "remoteDisconnected":G=new d7((0,_.R4)(t.params.device));bl4(X.connectedDevices_,function(y){return y.equals(G)});
break;case "gracefulDisconnect":break;case "playlistModified":WkT(X,t,"QUEUE_MODIFIED");break;case "nowPlaying":cBR(X,t);break;case "onStateChange":X.onStateChange_(t);break;case "onAdStateChange":X.onAdStateChange_(t);break;case "onVolumeChanged":pCr(X,t);break;case "onSubtitlesTrackChanged":IeR(X,t);break;case "nowAutoplaying":rBi(X,t);break;case "autoplayDismissed":X.publish("autoplayDismissed");break;case "autoplayUpNext":NQQ(X,t);break;case "onAutoplayModeChanged":PVR(X,t);break;case "onHasPreviousNextChanged":EQv(X,
t);break;case "requestAssistedSignIn":X.publish("assistedSignInRequested",t.params.authCode);break;case "onLoopModeChanged":X.publish("loopModeChange",t.params.loopMode);break;default:It("Unrecognized action: "+t.action)}};
_.H=W9.prototype;_.H.getProxyState_=function(){var X=3;this.isDisposed()||(X=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(X=1):X=2);return X};
_.H.JSC$19609_disconnect_=function(X){It("Disconnecting with "+X);_.dl("yt.mdx.remote.remoteClient_",null);Zra(this);this.publish("beforeDisconnect",X);X==1&&yu();this.channelService.disconnect(X);this.dispose()};
_.H.getPlayerContextData_=function(){var X=this.playerContext_;this.clientVideoId_&&(X=this.playerContext_.clone(),dZH(X,this.clientVideoId_,X.index));return ewT(X)};
_.H.setPlayerContextData_=function(X){var t=this,G=new TD(X);G.videoId&&G.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=G.videoId,_.Zu(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.SH(function(){if(t.clientVideoId_){var w=t.clientVideoId_;t.clientVideoId_=null;t.playerContext_.videoId!=w&&c9(t,"getNowPlaying")}},5E3));
var y=[];this.playerContext_.listId==G.listId&&this.playerContext_.videoId==G.videoId&&this.playerContext_.index==G.index||y.push("remoteQueueChange");this.playerContext_.playerState==G.playerState&&this.playerContext_.volume==G.volume&&this.playerContext_.muted==G.muted&&kK2(this.playerContext_)==kK2(G)&&(0,_.v6)(this.playerContext_.trackData)==(0,_.v6)(G.trackData)||y.push("remotePlayerChange");this.playerContext_.reset(X);_.zA(y,function(w){this.publish(w)},this)};
_.H.getOtherConnectedRemoteId_=function(){var X=this.channelService.getDeviceId(),t=_.r6(this.connectedDevices_,function(G){return G.type=="REMOTE_CONTROL"&&G.id!=X});
return t?t.id:""};
_.H.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.H.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.H.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.H.JSC$19609_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var uWi=function(X){_.Zu(X.idleDisconnectTimerId_);X.idleDisconnectTimerId_=_.SH(function(){X.JSC$19609_disconnect_(1)},864E5)},c9=function(X,t,G){G?It("Sending: action="+t+", params="+(0,_.v6)(G)):It("Sending: action="+t);
X.channelService.sendMessage(t,G)};
W9.prototype.sendMessageWithUserAction_=function(X,t){c9(this,X,t);uWi(this)};
W9.prototype.JSC$19609_getXsrfToken_=function(){var X=_.QQ.get("SAPISID","")||_.QQ.get("__Secure-1PAPISID",void 0)||"",t=_.QQ.get("__Secure-3PAPISID","")||"";if(!X&&!t)return"";X=_.i2(_.cp(X),2);t=_.i2(_.cp(t),2);return _.i2(_.cp(","+X+","+t),2)};
W9.prototype.subscribe=W9.prototype.subscribe;W9.prototype.unsubscribeByKey=W9.prototype.unsubscribeByKey;W9.prototype.getProxyState=W9.prototype.getProxyState_;W9.prototype.disconnect=W9.prototype.JSC$19609_disconnect_;W9.prototype.getPlayerContextData=W9.prototype.getPlayerContextData_;W9.prototype.setPlayerContextData=W9.prototype.setPlayerContextData_;W9.prototype.getOtherConnectedRemoteId=W9.prototype.getOtherConnectedRemoteId_;W9.prototype.getReconnectTimeout=W9.prototype.getReconnectTimeout_;
W9.prototype.getAutoplayMode=W9.prototype.getAutoplayMode_;W9.prototype.getAutoplayVideoId=W9.prototype.getAutoplayVideoId_;W9.prototype.reconnect=W9.prototype.JSC$19609_reconnect_;W9.prototype.sendMessage=W9.prototype.sendMessageWithUserAction_;W9.prototype.getXsrfToken=W9.prototype.JSC$19609_getXsrfToken_;W9.prototype.isCapabilitySupportedOnConnectedDevices=W9.prototype.isCapabilitySupportedOnConnectedDevices_;var UZN=function(X){nF.call(this,"ScreenServiceProxy");this.instance_=X;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.rT)(this.JSC$19612_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.rT)(this.onOnlineScreenChange_,this)))};
_.S(UZN,nF);_.H=UZN.prototype;_.H.getScreens=function(X){return this.instance_.$_gs(X)};
_.H.contains=function(X){return!!this.instance_.$_c(X)};
_.H.get=function(X){return this.instance_.$_g(X)};
_.H.start=function(){this.instance_.$_st()};
_.H.add=function(X,t,G){this.instance_.$_a(X,t,G)};
_.H.remove=function(X,t,G){this.instance_.$_r(X,t,G)};
_.H.updateName=function(X,t,G,y){this.instance_.$_un(X,t,G,y)};
_.H.disposeInternal=function(){for(var X=this.subscriptionKeys_.length,t=0;t<X;++t)this.instance_.$_ubk(this.subscriptionKeys_[t]);this.subscriptionKeys_.length=0;this.instance_=null;nF.prototype.disposeInternal.call(this)};
_.H.JSC$19612_onScreenChange_=function(){this.publish("screenChange")};
_.H.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
ks.prototype.$_st=ks.prototype.start;ks.prototype.$_gspc=ks.prototype.JSC$19569_getScreenByPairingCode;ks.prototype.$_gsppc=ks.prototype.JSC$19569_getScreenByPollingPairingCode;ks.prototype.$_c=ks.prototype.contains;ks.prototype.$_g=ks.prototype.get;ks.prototype.$_a=ks.prototype.add;ks.prototype.$_un=ks.prototype.updateName;ks.prototype.$_r=ks.prototype.remove;ks.prototype.$_gs=ks.prototype.getScreens;ks.prototype.$_gos=ks.prototype.JSC$19569_getOnlineScreens;ks.prototype.$_s=ks.prototype.subscribe;
ks.prototype.$_ubk=ks.prototype.unsubscribeByKey;var lea=function(X){zli();if(!wM||!wM.get("yt-remote-disable-remote-module-for-dev")){X=_.Md("MDX_CONFIG")||X;sAH();M7T();pR||(pR=new Xt(X?X.loungeApiHost:void 0),HpQ()&&(pR.basePath="/api/loungedev"));r7||(r7=_.GA("yt.mdx.remote.deferredProxies_")||[],_.dl("yt.mdx.remote.deferredProxies_",r7));mZr();var t=N5();if(!t){var G=new ks(pR,X?X.disableAutomaticScreenCache||!1:!1);_.dl("yt.mdx.remote.screenService_",G);t=N5();var y={};X&&(y={appId:X.appId,disableDial:X.disableDial,theme:X.theme,loadCastApiSetupScript:X.loadCastApiSetupScript,
disableCastApi:X.disableCastApi,enableDialLoungeToken:X.enableDialLoungeToken,enableCastLoungeToken:X.enableCastLoungeToken,forceMirroring:X.forceMirroring});_.dl("yt.mdx.remote.enableConnectWithInitialState_",X?X.enableConnectWithInitialState||!1:!1);rpT(G,function(z){z?P9()&&LTr(P9(),"YouTube TV"):G.subscribe("onlineScreenChange",function(){Zi("yt-remote-receiver-availability-change")})},y)}if(X&&!_.GA("yt.mdx.remote.initialized_")){_.dl("yt.mdx.remote.initialized_",!0);
EN("Initializing: "+(0,_.v6)(X));UN.push(_.DU("yt-remote-cast2-api-ready",function(){Zi("yt-remote-api-ready")}));
UN.push(_.DU("yt-remote-cast2-availability-change",function(){Zi("yt-remote-receiver-availability-change")}));
UN.push(_.DU("yt-remote-cast2-receiver-selected",function(){RwR();Zi("yt-remote-auto-connect","cast-selector-receiver")}));
UN.push(_.DU("yt-remote-cast2-receiver-resumed",function(){Zi("yt-remote-receiver-resumed","cast-selector-receiver")}));
UN.push(_.DU("yt-remote-cast2-session-change",irq));UN.push(_.DU("yt-remote-connection-change",function(z){z?LTr(P9(),"YouTube TV"):LkN()||(LTr(null,null),mrB())}));
UN.push(_.DU("yt-remote-cast2-session-failed",function(){Zi("yt-remote-connection-failed")}));
y=vQN();X.isAuto&&(y.id+="#dial");var w=X.capabilities||[];w.length>0&&(y.capabilities=w);y.name=X.device;y.app=X.app;(X=X.theme)&&(y.theme=X);EN(" -- with channel params: "+(0,_.v6)(y));y?(_.Ku("yt-remote-session-app",y.app),_.Ku("yt-remote-session-name",y.name)):(_.uj("yt-remote-session-app"),_.uj("yt-remote-session-name"));_.dl("yt.mdx.remote.channelParams_",y);t.start();P9()||aeH()}}},fer=function(){var X=N5().instance_.$_gos();
var t=xZB();t&&mR()&&(v0H(X,t)||X.push(t));return LCR(X)},MCr=function(){var X=fer(),t=xZB();
t||(t=LkN());return _.r6(X,function(G){return t&&t9(t,G.key)?!0:!1})},xZB=function(){var X=P9();
if(!X)return null;var t=N5().getScreens();return GD(t,X)},irq=function(X){EN("remote.onCastSessionChange_: "+v1a(X));
if(X){var t=xZB();t&&t.id==X.id?(LTr(t.id,"YouTube TV"),X.idType=="shortLived"&&(X=X.token)&&(t=mR())&&t.setLoungeToken(X)):(t&&XVH(),$ET(X,1))}else mR()&&XVH()},XVH=function(){ipi()?gM().stopSession():jA("stopSession called before API ready.");
var X=mR();X&&(X.disconnect(1),tGT(null))},GZ2=function(){var X=mR();
return X&&X.getProxyState()!=3?new q5(mR(),void 0):null},EN=function(X){oK("remote",X)},N5=function(){if(!yVT){var X=_.GA("yt.mdx.remote.screenService_");
yVT=X?new UZN(X):null}return yVT},P9=function(){return _.GA("yt.mdx.remote.currentScreenId_")},wV4=function(X){_.dl("yt.mdx.remote.currentScreenId_",X)},RwR=function(){_.dl("yt.mdx.remote.connectData_",null)},mR=function(){return _.GA("yt.mdx.remote.connection_")},tGT=function(X){var t=mR();
RwR();X||wV4("");_.dl("yt.mdx.remote.connection_",X);r7&&(_.zA(r7,function(G){G(X)}),r7.length=0);
t&&!X?Zi("yt-remote-connection-change",!1):!t&&X&&Zi("yt-remote-connection-change",!0)},LkN=function(){var X=xQR();
if(!X)return null;var t=N5();if(!t)return null;t=t.getScreens();return GD(t,X)},$ET=function(X,t){wV4(X.id);
X=new W9(pR,X,vQN(),_.GA("yt.mdx.remote.enableConnectWithInitialState_")||!1);X.connect(t,_.GA("yt.mdx.remote.connectData_"));X.subscribe("beforeDisconnect",function(G){Zi("yt-remote-before-disconnect",G)});
X.subscribe("beforeDispose",function(){mR()&&tGT(null)});
X.subscribe("browserChannelAuthError",function(){var G=xZB();G&&G.idType=="shortLived"&&(ipi()?gM().handleBrowserChannelAuthError():jA("refreshLoungeToken called before API ready."))});
tGT(X)},aeH=function(){var X=LkN();
X?(EN("Resume connection to: "+v1a(X)),$ET(X,0)):(yu(),mrB(),EN("Skipping connecting because no session screen found."))},pR=null,r7=null,yVT=null,mZr=function(){var X=vQN();
if(_.RH.isEmpty(X)){X=lli();var t=_.O2("yt-remote-session-name")||"",G=_.O2("yt-remote-session-app")||"";X={device:"REMOTE_CONTROL",id:X,name:t,app:G,mdxVersion:3};X.authuser=String(_.Md("SESSION_INDEX","0"));(t=_.Md("DELEGATED_SESSION_ID"))&&(X.pageId=String(t));_.dl("yt.mdx.remote.channelParams_",X)}},vQN=function(){return _.GA("yt.mdx.remote.channelParams_")||{}},UN=[];var zkq=new _.M1("yt-menu"),H8i=function(){},JVR=function(X,t,G){X=t=="right-click"?G.rightClickMenuPopupHint:G.menuPopupHint;
if(!(ojR(t)>10))return t=t||"default",zkq.set(t+"-impression",ojR(t)+1),X},ojR=function(X){return parseInt(zkq.get((X||"default")+"-impression")||0,10)};
_.Aw(H8i);var BbH=function(){this.contexts_=new WeakMap;this.JSC$19618_networkService_=this.activeContext_=null},njH=function(X,t,G){var y=X.contexts_.get(t);
y||(y=new Aii(X.JSC$19618_networkService_),X.contexts_.set(t,y));X.activeContext_=y;G&&X.activeContext_.reset();X.activeContext_.start();return X.activeContext_};var Rt=function(){};
Rt.prototype.enqueue=function(){var X=this,t;return _.n(function(G){if(X.isCounterfactual())return(t=X.getCounterfactualData())&&X.shouldLogCounterfactualImpression()&&X.sendImpressionEndpoints(t),G.return();X.doEnqueue();_.W$(G)})};
Rt.prototype.sendImpressionEndpoints=function(X){_.Hq.getInstance().triggerOptionalAction("yt-service-request",{},X[0])};var i9=function(X,t){this.renderer=X;this.page=t};
_.S(i9,Rt);i9.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
i9.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
i9.prototype.shouldLogCounterfactualImpression=function(){return!0};
i9.prototype.doEnqueue=function(){var X=_.YW(this.page);X&&X.pause();this.renderer.impressionCommand&&_.Hq.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.XL(_.Hq.getInstance(),[this.renderer.promoCommand],this.page)};var VGH=function(X,t){this.renderer=X;this.resolver=_.d5();this.JSC$19630_enforcementCounter=new _.Ulq;t?this.JSC$19630_playerManager=_.YW(t):this.JSC$19630_playerManager=null;_.Ic(1,!0)};
_.S(VGH,Rt);_.H=VGH.prototype;_.H.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var X=[];this.renderer.impressionEndpoints.forEach(function(t){(t=_.wr(t))&&X.push(t)});
return X}};
_.H.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.H.shouldLogCounterfactualImpression=function(){var X=_.N0E();X?(this.JSC$19630_enforcementCounter.increment("POPUP"),_.Ic(3)):_.Ic(2);return X};
_.H.cancel=function(){this.resolver.promise.cancel()};
_.H.doEnqueue=function(){var X=this;_.N0E()?(this.JSC$19630_enforcementCounter.increment("POPUP"),_.Ic(3),b8r(this)):this.JSC$19630_playerManager?(this.resolver.promise.then(function(){b8r(X)}),kZB(this.resolver,this.JSC$19630_playerManager)):_.Ic(2)};
var kZB=function(X,t){var G=_.d5();t.getPlayerPromise().then(function(y){G.resolve(y)});
G.promise.then(function(y){y.addEventListener("onAbnormalityDetected",X.resolve);_.R8(X.promise,function(){y.removeEventListener("onAbnormalityDetected",X.resolve)})});
X.promise.thenCatch(function(){G.promise.cancel()})},b8r=function(X){_.Ic(3);
var t={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:X.renderer}};t=_.Hq.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{});Promise.all(t).then(function(){dEV();X.JSC$19630_playerManager&&X.JSC$19630_playerManager.pause()})},dEV=function(){fsR(function(X,t){_.fUr(X,t);
X===0?_.Ic(7):_.Ic(4)})};var ekT=function(X,t){this.renderer=X;this.page=t;this.resolver=_.d5()};
_.S(ekT,Rt);_.H=ekT.prototype;_.H.cancel=function(){this.resolver.promise.cancel()};
_.H.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.H.isCounterfactual=function(){return!this.renderer.isVisible};
_.H.shouldLogCounterfactualImpression=function(){return!0};
_.H.doEnqueue=function(){var X=this;this.resolver.promise.then(function(){var G={popup:{mealbarPromoRenderer:X.renderer},popupType:"MEALBAR"};_.Hq.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var t=_.YW(this.page);t&&jJ4(this.resolver,t)}break;default:this.resolver.resolve()}};
var jJ4=function(X,t){var G=_.d5();t.getPlayerPromise().then(function(y){G.resolve(y)});
G.promise.then(function(y){y.addEventListener("onAdEnd",X.resolve);_.R8(X.promise,function(){y.removeEventListener("onAdEnd",X.resolve)})});
X.promise.thenCatch(function(){G.promise.cancel()})};var gjH=function(X,t){this.renderer=X;this.page=t};
_.S(gjH,Rt);_.H=gjH.prototype;_.H.cancel=function(){this.JSC$19638_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19638_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19638_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.H.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.H.isCounterfactual=function(){return!this.renderer.isVisible};
_.H.shouldLogCounterfactualImpression=function(){return!0};
_.H.doEnqueue=function(){var X=this,t,G;((t=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(G=t.playbackUpsellDialogTriggerConditionData)==null?void 0:G.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19638_downloadedVideosCountSelectorUnsubscriber=_.rz(_.dV(),LXi,function(y,w){y>w&&(FDr(X),X.cancel())}):FDr(this)};
var FDr=function(X){var t={popup:{upsellDialogRenderer:X.renderer},popupType:"MODAL"};_.Hq.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{});(X=_.YW(X.page))&&X.pause()};var LR={},TbR=(LR.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",LR.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",LR.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",LR.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",LR.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",LR.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",LR.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",LR),AVr=function(X,t){this.renderer=X;this.targetManager=
t};
_.S(AVr,Rt);_.H=AVr.prototype;_.H.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19645_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19645_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19645_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.H.getCounterfactualData=function(){if(this.isCounterfactual()){var X;return(X=this.renderer.promoConfig)==null?void 0:X.impressionEndpoints}};
_.H.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.H.shouldLogCounterfactualImpression=function(){return!0};
_.H.doEnqueue=function(){var X=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19645_downloadedVideosCountSelectorUnsubscriber=_.rz(_.dV(),LXi,function(t,G){X.renderer.targetId&&t>G&&(N5N(X.targetManager,X.renderer.targetId,YIH(X)),X.cancel())});
break;default:N5N(this.targetManager,this.renderer.targetId,YIH(this))}};
var YIH=function(X){var t;if((t=X.renderer.suggestedPosition)==null?0:t.type)var G=TbR[X.renderer.suggestedPosition.type];G||(G="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:X.renderer},popupType:"HINT",position:G}}};var sJH=function(){this.previousPage=null},DE2;
sJH.prototype.registerPromoCommand=function(X,t){SI4(this,void 0,void 0,_.Y(X.roadblock,Pjq),void 0,void 0,t)};
var SI4=function(X,t,G,y,w,z,B){X.previousPage!==B&&X.pendingTooltipPromo&&X.pendingTooltipPromo.cancel();X.previousPage=B;w?(X.pendingEnforcementPromo&&X.pendingEnforcementPromo.cancel(),X.pendingEnforcementPromo=new VGH(w,B),X.pendingEnforcementPromo.enqueue()):z?(X.pendingCommandWrapperPromo=new i9(z,B),X.pendingCommandWrapperPromo.enqueue()):y?(X.pendingRoadblockPromo&&X.pendingRoadblockPromo.cancel(),X.pendingRoadblockPromo=new gjH(y,B),X.pendingRoadblockPromo.enqueue()):t?(X.pendingMealbarPromo&&
X.pendingMealbarPromo.cancel(),X.pendingMealbarPromo=new ekT(t,B),X.pendingMealbarPromo.enqueue()):G&&(X.pendingTooltipPromo&&X.pendingTooltipPromo.cancel(),X.pendingTooltipPromo=new AVr(G,_.m4()),X.pendingTooltipPromo.enqueue())},hkV=function(){DE2||(DE2=new sJH);
return DE2};var fdr=!1;var mIr=function(X,t){var G=_.Md("SESSION_INDEX");this.actionToken_=X;this.commonToken_=t;this.sessionIndex_=G},UI4=function(X){var t=_.d5(),G=_.GA("payments.business.integration.bootstrap"),y=_.GA("payments.business.integration"),w=y.Style.create().withMaterialDesignStyle(),z=y.mashupMode.popup("instrument-manager");
G.asMashupMode(z).usingUserIndex(X.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(w).inStandaloneContext(y.standaloneContextAuthId.forUserId()).instrumentManager(X.actionToken_,X.commonToken_.length>0?X.commonToken_:void 0,function(B){var V=B.instrumentId;V?t.resolve(V):(V=_.GA("payments.business.integration.scenario.InstrumentManager"),t.reject(B.errorCode&&B.errorCode===V.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(B){_.$x(B);
t.reject("instrumentManagerLoadError")});
return t.promise};var SA=function(X,t,G){this.payloadName="transactionFlowFailed";this.payload={errorType:X,serializedTransactionFlowLoggingParams:t,isUserDismiss:G===void 0?!1:G}};
_.dl("yt.ypc.shared.YpcTransactionFlowError",SA);var v9=function(){return _.PW.apply(this,arguments)||this};
_.S(v9,_.PW);v9.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
v9.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
v9.prototype.onErrorMessageDismiss=v9.prototype.onErrorMessageDismiss;_.E([_.K({readOnly:!0,observer:"errorRendererChanged"}),_.U("design:type",Object)],v9.prototype,"errorRenderer",void 0);_.E([_.WW("yt-live-chat-error-message-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],v9.prototype,"onErrorMessageDismiss",null);_.E([_.E0()],v9);var Z8H=[v9.prototype];var qIR;var Caq;var KDH=new _.M1("yt-live-chat"),O8v=new Map;O8v.set("timestamp_toggle","show-timestamps");O8v.set("reactions_toggle","allow-reactions");var at=function(){return _.O.apply(this,arguments)||this};
_.S(at,_.O);_.H=at.prototype;_.H.menuItemIdentifierChanged=function(){var X;(X=this.data)!=null&&X.menuItemIdentifier&&(X=O8v.get(this.data.menuItemIdentifier))&&(_.A("enable_lwe_web_mute")?(X=KDH.get(X),this.isToggled=!(X===void 0?!this.data.isToggled:!X)):this.isToggled=KDH.get(X))};
_.H.onFocus=function(){this.toggleButton.focus()};
_.H.onTap=function(){var X=this.data.command;X&&this.componentBehavior.resolveCommand(X)};
_.H.computeText=function(X,t,G){return this.componentBehavior.getSimpleString(X?G:t)};
_.H.computeIcon=function(X,t,G){return(X=X?G:t)&&X.iconType?_.Q2(X.iconType):""};
at.prototype.onTap=at.prototype.onTap;at.prototype.onFocus=at.prototype.onFocus;at.prototype.menuItemIdentifierChanged=at.prototype.menuItemIdentifierChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],at.prototype,"componentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],at.prototype,"data",void 0);
_.E([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.U("design:type",String)],at.prototype,"icon",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],at.prototype,"isToggled",void 0);_.E([_.rt("tp-yt-paper-toggle-button"),_.U("design:type",Object)],at.prototype,"toggleButton",void 0);_.E([_.cW("data.menuItemIdentifier"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],at.prototype,"menuItemIdentifierChanged",null);
_.E([_.WW("focus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],at.prototype,"onFocus",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],at.prototype,"onTap",null);_.E([_.$F({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],at);
_.N(at,"yt-live-chat-toggle-renderer",function(){if(Caq===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;qIR===void 0&&(qIR=document.createElement("template"));var y=qIR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Caq=X}X=Caq;return X},{mode:_.A("live_chat_enable_sink_wrapper")?2:0});var uKQ=new _.FB("NAVIGATION_PROGRESS_TOKEN");var QJR={},Izr={},WDN=(Izr[q2N.name]=!0,Izr),l9=function(){var X=_.PW.apply(this,arguments)||this;X._noAccessors=!0;X.tabGesturesIsActive=!1;X.actionRouterIsRoot=!0;X.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"};X.pageTitle="";X.titleSuffix="YouTube";X.unseenNotificationCount=
0;X.hasNavigated=!1;X.hasSetScrollTopForNavigation=!1;X.pagePreparer=null;X.zwiebackInitJobId=0;X.dataUpdatePromise=null;X.loadDepsPromise=_.qY();X.hasPendingNavigation=!1;X.pendingPlayerOnResponseReceivedActions=[];return X};
_.S(l9,_.PW);l9.prototype.attached=function(){cVi(this);document.addEventListener("yt-navigate-cache",_.Ik(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var X=xk();X.init();X.dispatchElement=this.hostElement};
var cVi=function(X,t){t=t===void 0?0:t;var G=_.gw().resolve(_.jH(_.U2));if(G)pVv(X,G);else{if(t>=5)throw Error("Yk");setTimeout(function(){cVi(X,t+1)},0)}},pVv=function(X,t){t.addEventListener("yt-navigate-start",_.Ik(X,X.onYtNavigateStart));
t.addEventListener("yt-navigate-finish",_.Ik(X,X.onYtNavigateFinish));t.addEventListener("yt-navigate-error",_.Ik(X,X.onYtNavigateError));t.addEventListener("yt-page-data-fetched",_.Ik(X,X.onYtPageDataFetched))};
_.H=l9.prototype;_.H.detached=function(){var X=_.gw().resolve(_.U2);X.removeEventListener("yt-navigate-start",_.Ik(this,this.onYtNavigateStart));X.removeEventListener("yt-navigate-finish",_.Ik(this,this.onYtNavigateFinish));X.removeEventListener("yt-navigate-error",_.Ik(this,this.onYtNavigateError));X.removeEventListener("yt-page-data-fetched",_.Ik(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Ik(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.H.setPageOffset=function(X,t){X?_.sl(this.hostElement,"yt-set-page-offset",[X,t]):_.xA(Error("Zk"))};
_.H.setPageOffsetForNavigation=function(X,t){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(X,t))};
_.H.onYtNavigateSetPageOffset=function(X,t){this.setPageOffsetForNavigation(t.page,t.offset)};
_.H.getPageOffset=function(){var X=_.Sm(this.hostElement).querySelector("#page-manager").getCurrentPage(),t=0;X&&(t=_.sl(this.hostElement,"yt-get-page-offset",[X])[0]);return t};
_.H.onYtHistoryPop=function(X,t){if(_.X3("DISABLE_WARM_LOADS"))X.preventDefault(),window.location.reload();else{var G=_.gw().resolve(_.U2);G.hasPendingNavigation()&&X.preventDefault();G.cancelPendingNavigation();_.D0(this.hostElement,"yt-pending-navigation-cancelled");t.errorMsg&&(X=t.errorMsg.split(" - "),t=Error(X[0]),X.length==2&&X[1]&&(_.XE(t,X[1]),_.Mj(t)),window.location.reload())}};
_.H.onYtHistoryLoad=function(X,t){var G=this;if(_.X3("DISABLE_WARM_LOADS"))window.location.reload();else{(X=t.endpoint)&&Object.keys(X).length||(X=null);var y=t.historyEntry,w=_.gw().resolve(_.U2),z=_.gw().resolve(_.AS),B=null;y&&y.rootData&&(B=y.rootData);var V=B&&rVR(B);!B||V||B.filler?X?(w.navigate(X,!0),Nbr(this,X)):(t.legacyBorder||V||(t.JSC$29824_savedComponentState==null&&B==null?_.Mj(new _.NJ("Incomplete history entry",t.forward)):_.fh(new _.NJ("Malformed history entry",t.JSC$29824_savedComponentState,
t.forward,B))),window.location.reload()):(_.UDJ({isHot:!0}),_.vP({webInfo:{navigationReason:"h"}}),_.BF_(),_.ls("srt"),_.ls("pdc"),this.cancelPendingTasks(),Pa2(this,t.forward,B),B.player&&(B.player.loaded=!1),Nbr(this,X),_.nR4(w,X||{},B,2,{},!1,t).then(function(){G.setPageOffset(z.getCurrentPage(),y.scrollTop||0)}))}};
_.H.initHistoryManager=function(X){if(!this.hasNavigated){this.hasNavigated=!0;var t=_.Sm(this.hostElement).querySelector("#page-manager").getCurrentData();X=isNaN(X)?this.getPageOffset():X;var G=_.gw().resolve(_.U2).currentEndpoint;this.replaceState(G,t,X)}};
_.H.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.H.onYtNavigateStart=function(X,t){this.cancelPendingTasks();t.noProgressBar||(X=_.gw().resolve(_.jH(uKQ)))&&X.start();X=this.hasPendingNavigation?null:this.data;var G=_.gw().resolve(_.AS),y,w,z;_.A("kevlar_use_vimio_behavior")&&!((y=t.endpoint)==null?0:(w=y.commandMetadata)==null?0:(z=w.webCommandMetadata)==null?0:z.ignoreNavigation)&&(y=G.getCurrentPage())&&y.disconnectVisibilityRoot();G.prepareForNavigation(t.pageType,t.endpoint);_.A("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Tw(1,
"pcl"),_.AC(this.pagePreparer,G.preparePage.bind(G,t.pageType,t.endpoint)));y=this.getPageOffset();this.initHistoryManager(y);t.reload||this.hasPendingNavigation?this.replaceState(t.endpoint,X,y):(X==null?void 0:X.page)==="watch"&&t.pageType==="watch"&&_.A("kevlar_replace_watch_to_watch_history_state")?this.replaceState(t.endpoint,X,y):(X==null?void 0:X.page)!=="shorts"||t.pageType!=="shorts"||t.endpoint.reelWatchEndpoint.sequenceParams||_.A("short_to_short_back_nav_killswitch")?t.type!="navigate-back"&&
t.type!="navigate-forward"&&(t.pageType==="shorts"&&_.Yt(this.hostElement,"yt-shorts-reset"),this.saveAndPush(t.url,t.endpoint,X,y)):(_.A("web_enable_delay_shorts_sequence_call")&&(t.endpoint.reelWatchEndpoint.sequenceParams=X==null?void 0:X.cachedSequenceParams,t.endpoint.reelWatchEndpoint.sequenceProvider=X==null?void 0:X.cachedSequenceProvider),this.replaceState(t.endpoint,X,0));this.hasPendingNavigation=!0};
var Ej4=function(X){X.hasPendingNavigation=!1;(X=_.gw().resolve(_.jH(uKQ)))&&X.finish()};
l9.prototype.onYtNavigateError=function(X,t){Ej4(this);X=this.get("endpoint.commandMetadata.webCommandMetadata.url",t);var G=_.Jt(window.location.href);X&&!G.pbjreload&&(t=t.navigationErrorReason||"10",_.A("kevlar_parent_on_pbjreload")&&(G={csn:_.lw()},this.get("data.endpoint.clickTrackingParams")&&(G.itct=this.data.endpoint.clickTrackingParams),_.dk(X,G)),_.ok(_.Bx(X,{pbjreload:t})))};
l9.prototype.onYtNavigateCache=function(X,t){var G=this,y=t.url,w=t.endpoint,z=t.data;X=!!t.miniplayer;t=!!t.skipHistory;if(y&&w&&z){var B=this.getPageOffset(),V=this.data||null;t||this.saveAndPush(y,w,V,B);y=_.nR4(_.gw().resolve(_.U2),w,z,X?4:3,{},X);X&&y.then(function(){G.dataUpdatePromise&&G.dataUpdatePromise.then(function(){var b=_.gw().resolve(_.AS);G.setPageOffset(b.getCurrentPage(),0)})})}};
l9.prototype.onYtNavigateFinish=function(X,t){var G=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){UER(G,t.fromHistory)})};
var UER=function(X,t){Ej4(X);if(X.pendingPlayerOnResponseReceivedActions){for(var G=_.J(X.pendingPlayerOnResponseReceivedActions),y=G.next();!y.done;y=G.next())_.cj(y.value,X.hostElement);X.pendingPlayerOnResponseReceivedActions=[]}G=_.gw().resolve(_.AS);t||!X.hasNavigated||_.A("web_disable_scroll_on_navigate_finish")||((t=G.getCurrentPage())?t.is==="ytd-shorts"||X.tabGesturesIsActive||X.setPageOffsetForNavigation(t,0):_.Mj(Error("$k")));_.oL(function(){_.oL(function(){_.ls("pda")})})};
l9.prototype.onYtNavigate=function(X){if(!X.detail.endpoint){var t=new _.NJ("Error: Missing yt-navigate endpoint from target:",X.target,X.target.nodeName);_.xA(t)}if(t=_.A("cold_missing_history"))t=xk(),t.init(!1),t=!(t.browserHistory.boundHistoryReplaceState&&t.browserHistory.boundHistoryPushState);if(t){_.fY("DISABLE_WARM_LOADS",!0);t=new _.NJ("Failed to initialize history manager",this.getDebugString());var G=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
G?_.Mj(t):_.xA(t)}t=X.detail.endpoint;var y,w;_.A("debug_forward_web_query_parameters")&&((y=t.commandMetadata)==null?0:(w=y.webCommandMetadata)==null?0:w.url)&&(t=JSON.parse(JSON.stringify(t)),t.commandMetadata.webCommandMetadata.url=_.ZqE(t.commandMetadata.webCommandMetadata.url,window.location.search));X={type:0,command:t,form:{params:X.detail.params,tempData:X.detail.tempData||{},requestType:X.detail.type,createScreenConfig:X.detail.createScreenConfig,reload:X.detail.reload?X.detail.reload:!1,
requestForm:X.detail}};_.A("kevlar_yt_navigate_command_handler")?(y=_.gw().resolve(_.F3),X.form.skipDefaultElement=!0,y.resolveCommand(t,{form:X.form})):this.handleNavigate(X)};
l9.prototype.handleNavigate=function(X){this.hasSetScrollTopForNavigation=!1;var t=_.gw().resolve(_.U2),G=X.form||{};t.navigate(X.command,G.reload,G.params,G.tempData,G.requestType,G.createScreenConfig,G.ignoreConfirmation,G.requestForm)&&Nbr(this,X.command,G.tempData)};
l9.prototype.onYtPageDataFetched=function(X,t){try{_.t3q().reset();this.data=t.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.gw().resolve(_.AS).updatePageData(this.data);if(!_.A("web_service_params_response_processor")){var G=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);G&&Giv(G);var y=this.get("response.responseContext.serviceTrackingParams",
this.data);y&&Giv(y)}var w=this.get("playerResponse.onResponseReceivedActions",this.data);w&&(w=mER(this,w));w&&_.Z0(this.hostElement,w,this.hostElement);var z=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),B=this.get("response.responseContext.consistencyTokenJar",this.data);if(z||B){var V=_.zks(),b=(0,_.RH.getValues)(V.tokenJars);z&&V.replace(b,z);B&&V.replace(b,B)}}catch(e){_.xA(e)}};
var Nbr=function(X,t,G){try{X.onYtEndpointChangeHandler(t,G)}catch(y){_.xA(y)}};
_.H=l9.prototype;_.H.onYtEndpointChangeHandler=function(){};
_.H.setPageTitle=function(X){X=(this.pageTitle=X)?X+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+X};
_.H.onYtUpdateTitle=function(X,t){this.setPageTitle(t)};
_.H.setUnseenNotificationCount=function(X){this.unseenNotificationCount=X;this.setPageTitle(this.pageTitle)};
_.H.handleUpdateNotificationsUnseenCountAction=function(X){_.Y(X,BvT)&&((X=_.Y(X,BvT).unseenCount)?this.setUnseenNotificationCount(X):this.setUnseenNotificationCount(0))};
_.H.handleClearCookieAction=function(X){var t;(X=(t=_.Y(X,zTB))==null?void 0:t.cookieName)&&_.Lxw(X)};
_.H.onYtUpdateUnseenNotificationCount=function(X,t){this.setUnseenNotificationCount(t)};
_.H.loadData=function(X){var t=this;this.loadDepsPromise.then(function(){var G=_.gw().resolve(_.jH(_.U2));G||_.xA(Error("al"));if(X&&X.response){if(!X.endpoint){var y=_.wk(window.document.location.href)||"/",w="";if(y==="/"||y.startsWith("/?"))w="WEB_PAGE_TYPE_BROWSE";X.endpoint={commandMetadata:{webCommandMetadata:{url:y,webPageType:w,rootVe:3854}}}}_.nR4(G,X.endpoint,X,5,{})}else X.endpoint?G.navigate(X.endpoint):G.navigate(_.pc);_.vz.cancelJob(t.zwiebackInitJobId);t.zwiebackInitJobId=_.vz.addLowPriorityJob(MlH)})};
var xk=function(){return _.gw().resolve(_.ua)};
l9.prototype.getDebugString=function(){return xk().getDebugString()};
l9.prototype.getThirdPartyManipulationSuspected=function(){return xk().getThirdPartyManipulationSuspected()};
l9.prototype.replaceState=function(X,t,G){xk().saveAndReplace(X,t,G)};
l9.prototype.saveAndPush=function(X,t,G,y){xk().saveAndPush(X,t,G,y)};
var rVR=function(X){return _.Y(X.endpoint,_.nq)||_.Y(X.endpoint,_.E8)?!0:!X||isNaN(X.expirationTime)?!1:(0,_.gl)()>X.expirationTime},Pa2=function(X,t,G){var y=X.get("response.trackingParams",G),w=_.a4(),z=_.lw();
if(y&&w&&z&&(y=X.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",G),!y&&G.rootVe&&(y=G.rootVe),w=t?"forwardButton":"backButton",t=X.get("playerResponse.topbar.desktopTopbarRenderer."+w+".buttonRenderer.command.clickTrackingParams",X.data),X=X.get("response.topbar.desktopTopbarRenderer."+w+".buttonRenderer.command.clickTrackingParams",X.data),t=(X=t||X)?_.i$(X):void 0,X=_.Pj(),w=[_.qY(G)],_.qP(X,y,t,{dataPromises:w,csnToClone:G.csn}),G.graftedVes))for(G=
_.J(G.graftedVes),y=G.next();!y.done;y=G.next())_.Cc(X,y.value)};
l9.prototype.onStoreGraftedVeAction=function(X){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(X)):_.Mj(Error("bl"))};
var mER=function(X,t){return t.filter(function(G){for(var y in G)if(WDN[y])return X.pendingPlayerOnResponseReceivedActions.push(G),!0;return!1})};
_.ke.Object.defineProperties(l9.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
l9.prototype.onStoreGraftedVeAction=l9.prototype.onStoreGraftedVeAction;l9.prototype.loadData=l9.prototype.loadData;l9.prototype.onYtUpdateUnseenNotificationCount=l9.prototype.onYtUpdateUnseenNotificationCount;l9.prototype.handleClearCookieAction=l9.prototype.handleClearCookieAction;l9.prototype.handleUpdateNotificationsUnseenCountAction=l9.prototype.handleUpdateNotificationsUnseenCountAction;l9.prototype.setUnseenNotificationCount=l9.prototype.setUnseenNotificationCount;
l9.prototype.onYtUpdateTitle=l9.prototype.onYtUpdateTitle;l9.prototype.setPageTitle=l9.prototype.setPageTitle;l9.prototype.onYtEndpointChangeHandler=l9.prototype.onYtEndpointChangeHandler;l9.prototype.onYtPageDataFetched=l9.prototype.onYtPageDataFetched;l9.prototype.handleNavigate=l9.prototype.handleNavigate;l9.prototype.onYtNavigate=l9.prototype.onYtNavigate;l9.prototype.onYtNavigateFinish=l9.prototype.onYtNavigateFinish;l9.prototype.onYtNavigateCache=l9.prototype.onYtNavigateCache;
l9.prototype.onYtNavigateError=l9.prototype.onYtNavigateError;l9.prototype.onYtNavigateStart=l9.prototype.onYtNavigateStart;l9.prototype.cancelPendingTasks=l9.prototype.cancelPendingTasks;l9.prototype.initHistoryManager=l9.prototype.initHistoryManager;l9.prototype.onYtHistoryLoad=l9.prototype.onYtHistoryLoad;l9.prototype.onYtHistoryPop=l9.prototype.onYtHistoryPop;l9.prototype.onYtNavigateSetPageOffset=l9.prototype.onYtNavigateSetPageOffset;l9.prototype.setPageOffset=l9.prototype.setPageOffset;
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],l9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],l9.prototype,"data",void 0);_.E([_.WW("yt-navigate-set-page-offset"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],l9.prototype,"onYtNavigateSetPageOffset",null);
_.E([_.WW("yt-history-pop"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],l9.prototype,"onYtHistoryPop",null);_.E([_.WW("yt-history-load"),_.U("design:type",Function),_.U("design:paramtypes",[Event,_.O3e]),_.U("design:returntype")],l9.prototype,"onYtHistoryLoad",null);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],l9.prototype,"onYtNavigate",null);
_.E([_.WW("yt-update-title"),_.U("design:type",Function),_.U("design:paramtypes",[Event,String]),_.U("design:returntype")],l9.prototype,"onYtUpdateTitle",null);_.E([_.WW("yt-update-unseen-notification-count"),_.U("design:type",Function),_.U("design:paramtypes",[Event,Number]),_.U("design:returntype")],l9.prototype,"onYtUpdateUnseenNotificationCount",null);_.E([_.E0()],l9);QJR.YtdAppBehavior=[_.sb.YtActionHandlerBehavior,l9.prototype];var fR=function(){var X=_.PW.apply(this,arguments)||this;X._noAccessors=!0;return X};
_.S(fR,_.PW);fR.prototype.ready=function(){var X=this;_.Sm(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){X.onChange_()})};
fR.prototype.dataChanged_=function(){_.Sm(this.hostElement).querySelector("#checkbox").checked=!1};
fR.prototype.onChange_=function(){var X=_.Sm(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Yt(this.hostElement,"yt-dismissal-reason-"+X,this.data.feedbackToken)};
fR.prototype.dataChanged_=fR.prototype.dataChanged_;_.E([_.K(),_.U("design:type",Object)],fR.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fR.prototype,"dataChanged_",null);_.E([_.E0()],fR);var Rk4=[fR.prototype];var M5=function(){var X=_.PW.apply(this,arguments)||this;X.timeoutJobId=0;X.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return X};
_.S(M5,_.PW);M5.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
M5.prototype.startTimeout=function(){var X=this,t=this.data&&this.data.displayDurationSeconds;t&&!this.timeoutJobId&&(this.timeoutJobId=_.PO(_.vz,function(){_.sl(X.hostElement,"yt-close-popup-action",[X.is]);X.timeoutJobId=0},t*1E3))};
M5.prototype.cancelTimeout=function(){_.vz.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
M5.prototype.ytdHatsSurveyBehaviorDataChanged=M5.prototype.ytdHatsSurveyBehaviorDataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],M5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],M5.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.E([_.E0()],M5);var i8q=[_.sb.YtActionHandlerBehavior,M5.prototype];var LD4=function(X,t){var G;return((G=X.prefixMapping)==null?0:G[t])?X.prefixMapping[t]:X.SHARED_RENDERERS_.hasOwnProperty(t)?"yt":X.prefix},XG={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}};XG.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.A("kevlar_mealbar_above_player"),modern:_.A("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"}};
XG.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};XG.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};XG.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
XG.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)"}};
XG.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};
XG.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};
XG.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};
XG.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};XG.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"}};
XG.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};XG.TOAST={component:null,properties:{}};var vjR=new function(X,t,G){this.supportedPopups=X;this.navigationEndpointPopupMap=t;this.popupTypeMap=G;this.supportedPopups=X;this.navigationEndpointPopupMap=t;this.popupTypeMap=G}({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:_.A("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"}),azN=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$19695_popupConfig=XG;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 lzr=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.lV.getInstance()},$z=function(X,t){var G=X.pageNameToElement.get(t);
if(!G){switch(t){case "watch":var y=_.A("web_watch_force_learning_journey_for_testing")?_.FP("ytd-watch-learning-journey"):_.A("kevlar_watch_fixie")?_.FP("ytd-watch-fixie"):_.A("kevlar_watch_grid")?_.FP("ytd-watch-grid"):_.FP("ytd-watch-flexy");break;case "learning_journey_watch":y=_.FP("ytd-watch-learning-journey");break;case "shorts":y=_.FP("ytd-shorts");break;case "search":y=_.FP("ytd-search");break;case "channel":y=_.FP("ytd-browse");y.pageSubtype="channels";break;case "trending":y=_.FP("ytd-browse");
y.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":y=
_.FP("ytd-browse");y.pageSubtype=t;break;case "browse":y=_.FP("ytd-browse");break;default:_.Mj(new _.NJ("Error getting page element for type",t))}G=y;X.pageNameToElement.set(t,G)}return G};
lzr.prototype.preparePage=function(X,t,G){G&&(X=_.cy(G)||X);if(X!=="watch"&&X!=="learning_journey_watch"){var y=this.elementPoolPopulator,w=X;w!=y.targetPage_&&y.pendingPages_.indexOf(w)>-1&&(y.targetPage_&&(y.pendingPages_.unshift(y.targetPage_),y.abort()),U7a(y,w),_.ZQ4(y,w))}if((y=$z(this,X))||!_.Y(G,_.zj)){y.isAttached||y===t||(y.hidden=!0);if(!y.data&&(X!=="watch"&&X!=="learning_journey_watch"||!_.A("swatcheroo_page_pool_dont_provide_filler_data"))){var z;if(X=(z=_.Md("FILLER_DATA",{})[X])==
null?void 0:z.response)y.data=X}return y}};var xER=function(X){this.JSC$31718_clientRoot=X;this.playlistHandlerActionMap={"yt-add-to-playlist-command":o3r,"yt-end-playlist-command":Jb2,"yt-recover-playlist-command":n3V,"yt-refresh-playlist-command":kqv,"yt-playlist-remove-videos-action":VmT};_.oO(_.Hq.getInstance(),this.playlistHandlerActionMap,this.JSC$31718_clientRoot);Meq()},fzN;var t$=function(X,t,G){this.apiKey=X;this.endpoint=t;this.confidenceThreshold=G===void 0?.5:G;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=t==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||t==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
t==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||t==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new ieR};
_.H=t$.prototype;
_.H.start=function(X){if(this.state===0)if(this.isOnline()){X.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=X.supportsHttpHeadersOverwriteParam);X.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=X.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.aa("voice_assistant");_.xt("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=X.languageCode||"en-US";this.supportsCrossDomainXhr=X.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=X.youtubeAssistantRequest||null;this.listeningHandler=X.listeningHandler||this.listeningHandler;this.audioDetectedHandler=X.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=X.stopHandler||this.stopHandler;this.completeHandler=X.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=X.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=X.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
X.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=X.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=X.accessToken;this.additionalHeaders=X.additionalHeaders||{};var t;this.prefetchResponseTimeoutMs=(t=X.prefetchResponseTimeoutMs)!=null?t:this.prefetchResponseTimeoutMs;MGa(this);this.startAudio();X7a(this)}else this.errorHandler("OFFLINE")};
_.H.stop=function(X){var t=X===void 0?{}:X;X=t.logCancel===void 0?!0:t.logCancel;var G=t.logMicClosed===void 0?!0:t.logMicClosed;var y=t.handleError===void 0?!0:t.handleError;t=t.handleStop===void 0?!0:t.handleStop;this.state!==0&&(X&&GJ("voz_cx"),yH(this,{logMicClosed:G,handleStop:t}),y&&this.errorHandler("ABORTED"))};
_.H.getState=function(){return this.state};
_.H.isSupported=function(){return!0};
_.H.stopAudio=function(X){(X===void 0||X)&&GJ("voz_mf")};
_.H.startAudio=function(){GJ("voz_vp");return _.qY(null)};
var $hH=function(X,t){X.channelOpen&&(X.state!==2&&(X.state=2,GJ("voz_ss"),X.listeningHandler()),t=new Uint8Array(t),t='{ "audioIn": "'+_.i2(t)+'" }',X.channel.send(t))},yH=function(X,t){var G=t===void 0?{}:t;
t=G.logMicClosed===void 0?!0:G.logMicClosed;G=G.handleStop===void 0?!0:G.handleStop;X.vozEndOfDataTimeout>-1&&(clearTimeout(X.vozEndOfDataTimeout),X.vozEndOfDataTimeout=-1);t9H(X);X.stopAudio(t);X.channel&&(X.channelOpen=!1,X.manuallyClosedChannel=!0,X.channel.close(),X.channel=void 0);X.transcribedSpeechResults=[];X.state=0;G&&X.stopHandler()},MGa=function(X){var t={httpHeadersOverwriteParam:X.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},X.additionalHeaders,X.accessToken&&X.isUsingVoz?{Authorization:"Bearer "+X.accessToken}:{"x-goog-api-key":X.apiKey}),supportsCrossDomainXhr:X.supportsCrossDomainXhr};X.channel=new Gt(X.endpoint,t);X.channel.open();_.vj(X.channel,"w",function(){var G=X.channel,y=G.send,w=X.isUsingVoz?"PLACEHOLDER":"example";w={config:{dialogStateIn:{languageCode:X.languageCode},deviceConfig:{deviceId:w,deviceModelId:w},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!X.isUsingVoz)w.config.requestType=4;else if(X.isUsingVoz&&X.youtubeAssistantRequest){var z=JSON.stringify(X.youtubeAssistantRequest);w.config.internalIn={youtubeAssistantS3InputJson:z}}y.call(G,w);X.channelOpen=!0;X.manuallyClosedChannel=!1});
_.vj(X.channel,"x",function(){X.manuallyClosedChannel||(X.channelOpen=!1,X.channel=void 0,yH(X))});
_.vj(X.channel,"z",function(G){if(G.data){t9H(X);for(var y=0;y<G.data.length;y++){var w=X,z=G.data[y],B=z.speechResults;if(B)a:{var V=[];z=[];var b=!1;B=_.J(B);for(var e=B.next();!e.done;e=B.next()){e=e.value;if(e.noSpeech){yH(w);w.errorHandler("NO_SPEECH");break a}e.transcript!==void 0&&e.stability!==void 0&&(e.stability<w.confidenceThreshold&&(b=!0),b?z.push(e.transcript):V.push(e.transcript))}if(V.length!==0||z.length!==0)V=V.join(" "),z=z.join(" "),w.receivedEndOfUtterance&&!w.isUsingVoz?w.isUsingVoz||
w.completeHandler([V,z]):(b=w,B=V,e=z,GJ("voz_sf"),b.transcriptionUpdateHandler(B,e),b.transcribedSpeechResults=[B,e]),w.receivedEndOfUtterance&&(GJ("voz_eou"),w.transcriptionCompleteHandler([V,z]),w.isUsingVoz&&(w.prefetchResponseTimeoutMs===0?yH(w,{logMicClosed:!1,handleStop:!0}):w.prefetchResponseTimeoutMs>0&&GPv(w)))}else w.isUsingVoz&&(z==null?0:z.internalOut)?(z=JSON.parse(z.internalOut.youtubeAssistantS3OutputJson),z.userHasOptedInToVaa||z.vaaConsent?w.vaaConsentUpdateHandler(!!z.userHasOptedInToVaa,
!!z.vaaConsent):(yDT(w),z&&(V=w.transcribedSpeechResults,GJ("voz_rqf"),w.completeHandler(V,z)))):z.eventType==="END_OF_UTTERANCE"?w.receivedEndOfUtterance=!0:(GJ("voz_err"),w.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Mj(Error("cl")))}}});
_.vj(X.channel,"y",function(G){yH(X);switch(G.status){case 1:G="WEBCHANNEL_NETWORK_ERROR";break;case 2:G="WEBCHANNEL_SERVER_ERROR";break;default:G="WEBCHANNEL_UNKNOWN_ERROR"}X.errorHandler(G);X.logError(Error(G))})};
t$.prototype.logError=function(X){_.xA(X)};
t$.prototype.isOnline=function(){return!0};
var GPv=function(X){yDT(X);X.prefetchResponseSetTimeoutId=setTimeout(function(){yH(X,{logMicClosed:!1,handleStop:!0})},X.prefetchResponseTimeoutMs)},yDT=function(X){X.prefetchResponseSetTimeoutId>-1&&(clearTimeout(X.prefetchResponseSetTimeoutId),X.prefetchResponseSetTimeoutId=-1)},X7a=function(X){t9H(X);
X.noResponseReceivedTimeout=window.setTimeout(function(){yH(X);X.errorHandler("NO_SPEECH")},11E3)},t9H=function(X){X.noResponseReceivedTimeout>-1&&(window.clearTimeout(X.noResponseReceivedTimeout),X.noResponseReceivedTimeout=-1)},GJ=function(X){_.ls(X,void 0,"voice_assistant")};var wJ=function(){t$.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.S(wJ,t$);wJ.prototype.isSupported=function(){return dST()};
wJ.prototype.startAudio=function(){var X=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.l$(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(y){w7i(X,y)};
this.processor.connect(this.audioContext.destination);var t=function(y){X.stream=y;if(!X.audioContext)return _.qY(null);y=X.audioContext.createMediaStreamSource(y);X.processor&&y.connect(X.processor);return _.qY(null)},G={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?t(this.stream):(G=navigator.mediaDevices.getUserMedia(G))?G.then(t).catch(function(y){yH(X);y.name&&y.name==="NotAllowedError"?X.errorHandler("NO_MICROPHONE_PERMISSION"):(X.errorHandler("AUDIO_ERROR"),X.logError(y));return _.l$(null)}):(yH(this),this.errorHandler("AUDIO_ERROR"),_.Mj(Error("dl")));
return t$.prototype.startAudio.call(this)};
wJ.prototype.stopAudio=function(X){X=X===void 0?!0:X;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(t){t.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;t$.prototype.stopAudio.call(this,X)};
wJ.prototype.isOnline=function(){return navigator.onLine};
var w7i=function(X,t){if(X.audioContext)if(window.OfflineAudioContext){var G=X.audioContext.sampleRate,y=t.inputBuffer.getChannelData(0);t=new window.OfflineAudioContext(1,y.length,16E3);for(var w=t.createBuffer(1,y.length,G),z=w.getChannelData(0),B=0,V=0;V<y.length;V++)z[V]=y[V],B+=z[V]*z[V];!X.audioDetected&&Math.sqrt(B/y.length)>.01&&(X.audioDetected=!0,X.audioDetectedHandler());y=t.createBufferSource();y.buffer=w;y.connect(t.destination);y.start(0);t.oncomplete=function(b){b=b.renderedBuffer.getChannelData(0);
for(var e=Math.floor(16384E3/G),g=new Int16Array(e),F=0;F<e;++F)g[F]=Math.max(-1,Math.min(1,b[F]))*32767;$hH(X,g.buffer)};
t.startRendering()}else zD4(X,t)},zD4=function(X,t){var G=X.audioContext.sampleRate,y=t.inputBuffer.getChannelData(0),w=Math.floor((G+8E3)/16E3);
G=y.length/w;t=new Float32Array(G);for(var z=0;z<G;++z)t[z]=y[z*w];y=new Int16Array(G);for(w=0;w<G;++w)y[w]=Math.max(-1,Math.min(1,t[w]))*32767;$hH(X,y.buffer)};var HZH={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var oKR=function(){this.JSC$19760_audioEnabled=!0;this.audioFeedbackHolder={}};
oKR.prototype.isPlaying=function(X){return X.currentTime>0&&!X.paused&&!X.ended&&X.readyState>2};
var JDq=function(X){for(var t=_.J(Object.values(HZH)),G=t.next();!G.done;G=t.next())G=G.value,X.audioFeedbackHolder[G]=new Audio,X.audioFeedbackHolder[G].src="/s/search/audio/"+G+".mp3",X.audioFeedbackHolder[G].load()},zJ=function(X,t){if(X.JSC$19760_audioEnabled!==!1&&t in X.audioFeedbackHolder){for(var G=_.J(Object.values(X.audioFeedbackHolder)),y=G.next();!y.done;y=G.next())y=y.value,X.isPlaying(y)&&y.pause();
X.audioFeedbackHolder[t].currentTime=0;X.audioFeedbackHolder[t].play().catch(function(){})}};var BKN=function(X,t){var G=this;this.store=X;this.service=t;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){G.setState("offline");G.stop()};
this.audioPlayer=new oKR;var y;(y=this.audioPlayer)==null||JDq(y)};
_.H=BKN.prototype;_.H.getService=function(){return this.service};
_.H.isEnabled=function(){return!!this.service};
_.H.isSupported=function(){var X;return(X=this.service)==null?void 0:X.isSupported()};
_.H.start=function(){var X=this,t,G,y,w,z,B,V,b,e,g,F,T,D;return _.n(function(h){switch(h.nextAddress){case 1:X.store.dispatch(kC2("",""));if(!navigator.onLine)return X.setState("offline"),h.return();window.addEventListener("offline",X.handleOfflineEvent);X.stream=null;if(!X.permissionsSupported){h.jumpTo(2);break}_.CL(h,3);return h.yield(nKR(X),5);case 5:t=h.yieldResult;if(!t)return(G=X.audioPlayer)==null||zJ(G,"failure"),h.return();X.service.stream=X.stream;X.setState("listening");_.zx(h,2);break;
case 3:_.IY(h),X.permissionsSupported=!1;case 2:y={context:_.Xys(_.Tx())},y.youtubeAssistantParams={searchParams:{inlineSearchResponse:X.enableInlineSearchResponse}},w=function(u,W){X.store.dispatch(dMT("transcribing"));X.store.dispatch(kC2(u,W))},z=function(){var u;
(u=X.audioPlayer)==null||zJ(u,"open");X.setState("listening")},B=function(){X.setState("transcribing")},V=function(u){X.setErrorState(u)},b=function(u,W){var c;
(c=X.audioPlayer)==null||zJ(c,"success");W&&(_.A("kevlar_voice_search_inline_search")&&(X.responseProcessor=_.gw().resolve(_.b6Y),X.responseProcessor&&(c=W.navigationAction,u=W.prefetchedSearchResponse,c&&u&&(c=(new _.i_r).JSC$12984_getStoreKey(c),_.HH(X.responseProcessor,u,c)))),X.JSC$19778_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",W))},e=function(){window.removeEventListener("offline",X.handleOfflineEvent)},g=_.Jps(!1),F=g.Authorization!=null,T=X.enableFirstPartyAuth||
X.enableFPAForSignedInUsers&&F?g:{"X-Goog-Visitor-Id":g["X-Goog-Visitor-Id"]},D={completeHandler:b,
errorHandler:V,listeningHandler:z,audioDetectedHandler:B,stopHandler:e,transcriptionUpdateHandler:w,youtubeAssistantRequest:y,languageCode:V9Q(),additionalHeaders:T,supportsCrossDomainXhr:X.enableFirstPartyAuth||X.enableFPAForSignedInUsers&&F,supportsHttpHeadersOverwriteParam:!X.disableHttpHeadersOverwrite},X.service.start(D),_.W$(h)}})};
_.H.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.H.reset=function(){this.store.dispatch(_.Dl({type:"RESET_VOICE_SEARCH_STATE"}))};
_.H.setState=function(X){this.store.dispatch(dMT(X))};
_.H.setErrorState=function(X){switch(X){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var t;(t=this.audioPlayer)==null||zJ(t,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)nKR(this);else{var G;(G=this.audioPlayer)==null||zJ(G,"failure");this.setState("permission-denied")}break;case "ABORTED":var y;(y=this.audioPlayer)==null||zJ(y,"no_input");break;default:var w;(w=this.audioPlayer)==
null||zJ(w,"no_input");this.setState("timeout")}};
var nKR=function(X){var t,G;return _.n(function(y){switch(y.nextAddress){case 1:return y.yield(navigator.permissions.query({name:"microphone"}),2);case 2:t=y.yieldResult;if(t.state==="granted")return y.return(!0);if(t.state==="denied")return X.setState("permission-denied"),y.return(!1);X.setState("permission");G={audio:{sampleSize:16,channelCount:1},video:!1};_.CL(y,3);return y.yield(navigator.mediaDevices.getUserMedia(G),5);case 5:return X.stream=y.yieldResult,y.return(!0);case 3:return _.IY(y),
X.setState("permission-denied"),y.return(!1)}})},V9Q=function(){var X=_.Md("INNERTUBE_CONTEXT_HL"),t=_.Md("INNERTUBE_CONTEXT_GL");
return X.indexOf("-")>-1?X:X+"-"+t};var bZR=function(X,t,G){BKN.call(this,t,G);this.JSC$19778_actionRouter=X;this.enableInlineSearchResponse=_.A("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.A("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.A("kevlar_voice_search_enable_fpa_signedin_users")},kPi;
_.S(bZR,BKN);
var dh4=function(){if(!kPi){var X="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.A("kevlar_voice_search_auth_enabled")||_.A("kevlar_voice_search_use_yt_endpoint")?X="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.A("kevlar_voice_search_use_fp_endpoint")&&(X="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");kPi=
new bZR(_.Hq.getInstance(),_.dV(),new wJ(_.Md("VOZ_API_KEY"),X,.5))}return kPi};var eDr=function(X){this.JSC$19782_clientRoot=X;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$19782_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)]]));X=_.J(this.eventListeners);for(var t=X.next();!t.done;t=X.next()){var G=_.J(t.value);t=G.next().value;G=G.next().value;G=_.J(G);for(var y=G.next();!y.done;y=G.next()){var w=
_.J(y.value);y=w.next().value;w=w.next().value;t.addEventListener(y,w)}}_.oO(_.Hq.getInstance(),this.autonavPauseActionMap,this.JSC$19782_clientRoot)},jlT,gKT=function(X){return _.A("kevlar_autonav_popup_filtering")?(X=_.k3(X))?X.hasAttribute("prevent-autonav"):!0:!0};
_.H=eDr.prototype;_.H.onIronOverlayOpened=function(X){gKT(X)&&(this.autonavPauseReasons.overlayOpen=!0,HG(this))};
_.H.onIronOverlayClosed=function(X){gKT(X)&&(this.autonavPauseReasons.overlayOpen=!1,HG(this))};
_.H.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;HG(this)};
_.H.onYtAutonavPauseBlur=function(){var X=this;_.vz.addJob(function(){X.isInBackground()||(X.autonavPauseReasons.inputBoxFocus=!1,HG(X))},8,0)};
_.H.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;HG(this)};
_.H.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;HG(this)};
_.H.onYtAutonavPauseScroll=function(){var X=_.gw().resolve(_.AS);X.isOnWatch()&&(X=X.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=X.getBoundingClientRect().top<-200,HG(this))};
_.H.onYtAutonavPauseUserEngagement=function(X){var t=this;if(_.A("user_engagement_enable_autoplay_pause_feature")){var G=Number(X.lowEngagementThresholdMs);isNaN(G)||G<=0||X.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Fd("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.gw().resolve(_.xI),_.T5()<G?_.PO(_.vz,function(){_.Fd("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.XqV()?(this.userEngagementCsn=_.lw(),_.PO(_.vz,function(){_.Fd("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
t.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,HG(this)):_.Fd("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Veh(Error("el`"+JSON.stringify(X)))};
_.H.onYtAutonavPausePlayer=function(X){this.autonavPauseReasons.requestedByPlayer=!!X.detail;HG(this)};
_.H.onYtAutonavVisibilityChanged=function(){var X=this,t,G,y;return _.n(function(w){if(w.nextAddress==1)return(t=_.sW())?w.yield(t.getPlayerPromise(),2):w.return();G=w.yieldResult;y=G.isMuted()||G.getVolume()===0;X.autonavPauseReasons.backgroundAndMute=X.isInBackground()&&y;HG(X);_.W$(w)})};
_.H.onYtAutonavPausePlayerEnded=function(){_.gw().resolve(_.xI);var X=144E5;_.A("user_engagement_enable_autoplay_pause_feature")||_.A("is_part_of_any_user_engagement_experiment")||(X=45E5);this.autonavPauseReasons.longIdle=_.T5()>X;Fl2(this);HG(this)};
_.H.onYtUserActivity=function(){var X=this;this.autonavPauseReasons.userEngagement&&(_.PO(_.vz,function(){_.Fd("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",X.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,HG(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.PO(_.vz,function(){_.Fd("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",X.userEngagementCsn);_.lx()}),this.autonavPauseReasons.youthereLactExperiment=!1,HG(this));
this.autonavPauseReasons.longIdle&&!_.A("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,HG(this))};
_.H.isInBackground=function(){var X=window.document.visibilityState;return!(!X||X==="visible")};
var HG=function(X){for(var t=!1,G=_.J(Object.values(X.autonavPauseReasons)),y=G.next();!y.done;y=G.next())y=y.value,t=t||y;t?_.gz.getInstance().pause(X.autonavPauseReasons):(X=_.gz.getInstance(),X.autonavState_==3?(X.setState(2,!1,!1),X.autonavPauseReason_=void 0):X.autonavState_==1&&(X.disabledAutonavPauseReason_=void 0))},Fl2=function(X){var t=!1;
if(_.A("enable_autoplay_pause_by_lact")){_.gw().resolve(_.xI);t=_.At("autoplay_pause_by_lact_sec")*1E3;var G=_.At("autoplay_pause_by_lact_sampling_fraction");(t=_.T5()>=t&&Math.random()<G)&&!_.XqV()&&(_.PO(_.vz,function(){_.Fd("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),t=!1)}t!==X.autonavPauseReasons.youthereLactExperiment&&(X.autonavPauseReasons.youthereLactExperiment=t)&&(X.userEngagementCsn=_.lw(),_.PO(_.vz,function(){_.Fd("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",X.userEngagementCsn)}));
X.autonavPauseReasons.userEngagement&&_.PO(_.vz,function(){_.Fd("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",X.userEngagementCsn)})};
eDr.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Fd("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.lx(),this.autonavPauseReasons.youthereLactExperiment=!1,HG(this));this.autonavPauseReasons.userEngagement&&(_.Fd("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,HG(this))};
eDr.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var oX=function(){var X=_.O.apply(this,arguments)||this;X.miniGuideVisible=!1;X.guideOpened=_.A("disable_initial_guide_state_fix")?!1:X.canFitPersistentGuide(X.initialBodyClientWidth);X.guideUserStateOpened=X.getInitialGuideUserStateOpened();X.isFullscreenShorts=!1;X.miniGuideWidthThreshold=_.At("kevlar_mini_guide_width_threshold",791);X.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");X.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
X.persistentGuideBlockedPagePathRegex=new RegExp(X.persistentGuideBlockedPagesPatterns.join("|"));X.animationTransitionDuration=0;X.lateDataResolver=_.d5();X.initialGuideDataFetchFailed=!1;X.initialLoad=!0;X.guideRenderers=new Set;X.isMouseOverGuide=!1;X.sessionUserManuallyExpandedGuideState=!1;X.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};
return X};
_.S(oX,_.O);_.H=oX.prototype;_.H.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.H.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.H.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.H.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.H.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.H.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.H.ready=function(){_.gw().addProvider({provide:_.wb,useValue:this.hostElement})};
_.H.attached=function(){var X=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Ik(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Ik(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Ik(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Ik(this,this.onYtGuideShow));_.V8(this,function(){X.animationTransitionDuration=200})};
_.H.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ik(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Ik(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Ik(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Ik(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Ik(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Ik(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Ik(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.H.getData=function(){return this.data};
_.H.load=function(){var X=this,t,G,y,w;return _.n(function(z){switch(z.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=X.lateDataResolver.resolve.bind(X),z.return(X.lateDataResolver.promise);if(window.ytInitialGuideData)return t=_.d5(),t.resolve(window.ytInitialGuideData),z.return(t.promise);y=!1;_.CL(z,2);return z.yield(X.fetchGuideData(),4);case 4:G=z.yieldResult;_.zx(z,3);break;case 2:w=_.IY(z),w.message==="Returned error"&&(y=
!0);case 3:if(G)return z.return(G);X.onYtGuideClose();y||(X.initialGuideDataFetchFailed=!0);return z.return(X.lateDataResolver.promise)}})};
_.H.fetchGuideData=function(){var X=this,t,G,y,w,z,B,V;return _.n(function(b){if(b.nextAddress==1)return t=_.gw(),X.guidePromise||(G=t.resolve(_.Mr),X.guidePromise=_.kW(G,kzQ)),b.yield(X.guidePromise,2);if(b.nextAddress!=3)return y=b.yieldResult,w=t.resolve(_.b3),b.yield(w(),3);(z=b.yieldResult)&&((B=y)==null?void 0:(V=B.responseContext)==null?void 0:V.maxAgeSeconds)!==0&&z.put("service:guide:fallback",new _.qE({innertubeResponse:y}));return b.return(y)})};
_.H.initializeGuideDataIfEmpty=function(){var X=this,t,G;return _.n(function(y){if(y.nextAddress==1){if(!X.initialGuideDataFetchFailed||X.data)return y.return();_.CL(y,2);return y.yield(X.fetchGuideData(),4)}if(y.nextAddress!=2)return(t=y.yieldResult)&&X.lateDataResolver.resolve(t),_.zx(y,0);G=_.IY(y);_.Mj(G);_.W$(y)})};
_.H.initializeGuideData=function(){var X=this,t;return _.n(function(G){switch(G.nextAddress){case 1:return _.uW(Isi(),{mainAppWeb:_.Jb()}),_.CL(G,2),G.yield(X.load(),4);case 4:X.data=G.yieldResult;_.zx(G,3);break;case 2:_.IY(G),_.Q6(Isi(),"FAILURE");case 3:t=X.data&&X.data.items&&X.data.items.length>0?"SUCCESS":"FAILURE",_.Q6(Isi(),t),_.W$(G)}})};
_.H.setGuideData=function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1)return t.disabled?w.return():t.data?(X.data=t.data,t.guideRenderers.add(X),w.return()):w.yield(t.initializeGuideData(),2);t.graftGuideToPage();G=_.X3("IS_HOMEPAGE_COLD")?"eop":void 0;_.A("disable_element_pool_populator")?t.setGuideDataAfterInit(X):(y=new _.Tw(1,G),_.AC(y,t.setGuideDataAfterInit.bind(t,X)));_.W$(w)})};
_.H.setGuideDataAfterInit=function(X){X.data=this.data;X.markDirty();this.guideRenderers.add(X);_.oL(function(){_.ls("gle")});
_.V8(this,function(){_.ls("gpe")})};
_.H.graftGuideToPage=function(){if(this.data){var X=this.data&&this.data.trackingParams;X&&(X=_.i$(X),_.Kc(_.Pj(),X))}};
_.H.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Ik(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.H.onDrawerOpenedChanged=function(X,t){!t.value&&this.guideOpened&&(this.guideOpened=!1)};
_.H.onYtGuideToggle=function(X){var t=this.guideOpened;this.guideOpened=!t;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var G=_.cP();_.pq(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;G.save()}this.updateGuideDrawerElementState();if(this.guideElement){var y;this.guideOpened&&((y=X.detail)==null?0:y.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Ik(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Ik(this,this.onAppDrawerTransitioned))}t||this.initializeGuideDataIfEmpty()};
_.H.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ik(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.bx(this.guideElement)};
_.H.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ik(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Vwv(this.guideOpened))};
_.H.guidePersistentAndVisibleChanged=function(){_.D0(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.H.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.H.miniGuideVisibleChanged=function(){_.D0(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.H.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Vwv(this.guideOpened)),this.initialLoad=!1);_.D0(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.H.activeEndpointChanged=function(){_.D0(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.H.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.H.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()};
_.H.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var X=this.canFitPersistentGuide(this.cachedClientWidth);X?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=X}this.updateGuideDrawerElementState()};
_.H.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.H.getGuideOpened=function(){return this.guideOpened};
_.H.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.H.getActiveEndpoint=function(){return this.activeEndpoint};
_.H.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.H.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&&_.Yt(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.H.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.A("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.H.handleGuideMouseLeave=function(){var X=this;!this.sessionUserManuallyExpandedGuideState&&_.A("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Jm(this,"handleGuideMouseLeave",function(){X.isMouseOverGuide||!X.guideOpened||X.miniGuideVisible||(X.guideOpened=!1,X.updateGuideDrawerElementState())},100))};
_.H.computeGuidePersistentAndVisible=function(){var X=this;_.Jm(this,"computeGuidePersistentAndVisible",function(){X.guidePersistentAndVisible=X.guideOpened&&X.guidePersistent;X.guideIsVisibleButNotPersistent=!(!X.guideOpened||X.guidePersistent)})};
_.H.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.H.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.H.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.H.startLoadingWatch=function(){this.closeGuide()};
_.H.startLoadingShorts=function(){_.A("web_hide_guide_on_shorts")&&this.closeGuide()};
_.H.onYtNavigateFinish=function(X,t){if(!_.Z_||t){this.activeEndpoint=t.endpoint;this.pageType=t.pageType;this.pageUrl=t.response.url;var G,y;X=(y=_.Y((G=t.endpoint)==null?void 0:G.commandMetadata,_.jQ))==null?void 0:y.url;!this.pageUrl&&X&&(this.pageUrl=X);_.A("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.H.getVisibleGuideRenderer=function(){for(var X=_.J(this.guideRenderers),t=X.next();!t.done;t=X.next())if(t=t.value,this.miniGuideVisible&&t.is==="ytd-mini-guide-renderer"||this.guideOpened&&t.is==="ytd-guide-renderer")return t;return null};
_.H.markGuideRendererDirty=function(X){if(X){typeof X.markDirty==="function"&&X.markDirty();X=_.J([].concat(_.RY(_.Sm(X).children)));for(var t=X.next();!t.done;t=X.next())this.markGuideRendererDirty(t.value)}};
_.H.persistentGuideEnabled=function(X,t){if(!t||X==="watch"||X==="settings"||X==="shorts"&&this.isFullscreenShorts||_.A("reels_web_disable_persistent_guide_shorts")&&X==="shorts")return!1;var G=_.qJ(t)||"";return _.A("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(y){return G===y}):!this.persistentGuideBlockedPagePathRegex.test(G)};
_.H.canFitPersistentGuide=function(X){var t=_.At("kevlar_persistent_guide_width_threshold",1312);return t===-1||_.A("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:X>t};
_.H.canFitMiniGuide=function(X){return this.miniGuideWidthThreshold===-1?!1:X>this.miniGuideWidthThreshold};
_.H.onResize=function(){var X=this;_.Jm(this,"calculateGuideState",function(){X.onResizeDebounced()})};
_.H.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.H.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.H.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.H.getInitialGuideUserStateOpened=function(){return _.A("web_force_mini_guide_default")?!1:!_.cP().getFlag(109)};
_.ke.Object.defineProperties(oX.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Md("initialBodyClientWidth")||window.innerWidth}}});
oX.prototype.onResize=oX.prototype.onResize;oX.prototype.observeForMiniGuideVisible=oX.prototype.observeForMiniGuideVisible;oX.prototype.computeGuidePersistentAndVisible=oX.prototype.computeGuidePersistentAndVisible;oX.prototype.cachedClientWidthChanged=oX.prototype.cachedClientWidthChanged;oX.prototype.resetGuide=oX.prototype.resetGuide;oX.prototype.activeEndpointChanged=oX.prototype.activeEndpointChanged;oX.prototype.guideOpenedChanged=oX.prototype.guideOpenedChanged;
oX.prototype.miniGuideVisibleChanged=oX.prototype.miniGuideVisibleChanged;oX.prototype.guideIsVisibleButNotPersistentChanged=oX.prototype.guideIsVisibleButNotPersistentChanged;oX.prototype.guidePersistentAndVisibleChanged=oX.prototype.guidePersistentAndVisibleChanged;oX.prototype.onGuideElementChanged=oX.prototype.onGuideElementChanged;oX.prototype.onGuidePersistentChanged=oX.prototype.onGuidePersistentChanged;oX.prototype.onRenderGuideChanged=oX.prototype.onRenderGuideChanged;
oX.prototype.onActiveEndpointChanged=oX.prototype.onActiveEndpointChanged;oX.prototype.onMiniGuideVisibleChanged=oX.prototype.onMiniGuideVisibleChanged;oX.prototype.onGuideIsVisibleButNotPersistentChanged=oX.prototype.onGuideIsVisibleButNotPersistentChanged;oX.prototype.onGuidePersistendAndVisibleChanged=oX.prototype.onGuidePersistendAndVisibleChanged;_.E([_.q(_.ax),_.U("design:type",Object)],oX.prototype,"ironResizableBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],oX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],oX.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],oX.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],oX.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],oX.prototype,"disabled",void 0);
_.E([_.K(),_.U("design:type",Boolean)],oX.prototype,"guidePersistentAndVisible",void 0);_.E([_.cW("guidePersistentAndVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"onGuidePersistendAndVisibleChanged",null);_.E([_.K(),_.U("design:type",Boolean)],oX.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.cW("guideIsVisibleButNotPersistent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.E([_.K(),_.U("design:type",Object)],oX.prototype,"miniGuideVisible",void 0);_.E([_.cW("miniGuideVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"onMiniGuideVisibleChanged",null);_.E([_.K(),_.U("design:type",Boolean)],oX.prototype,"forceMiniGuideClose",void 0);
_.E([_.K(),_.U("design:type",Object)],oX.prototype,"activeEndpoint",void 0);_.E([_.cW("activeEndpoint"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"onActiveEndpointChanged",null);_.E([_.K(),_.U("design:type",Boolean)],oX.prototype,"renderGuide",void 0);_.E([_.cW("renderGuide"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"onRenderGuideChanged",null);
_.E([_.K(),_.U("design:type",Object)],oX.prototype,"guideOpened",void 0);_.E([_.K(),_.U("design:type",Boolean)],oX.prototype,"guidePersistent",void 0);_.E([_.cW("guidePersistent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"onGuidePersistentChanged",null);_.E([_.K(),_.U("design:type",Object)],oX.prototype,"guideUserStateOpened",void 0);_.E([_.K(),_.U("design:type",String)],oX.prototype,"pageUrl",void 0);
_.E([_.K(),_.U("design:type",String)],oX.prototype,"pageType",void 0);_.E([_.K(),_.U("design:type",Number)],oX.prototype,"cachedClientWidth",void 0);_.E([_.K(),_.U("design:type",Object)],oX.prototype,"guideElement",void 0);_.E([_.K({selector:_.Oe}),_.U("design:type",Object)],oX.prototype,"isFullscreenShorts",void 0);_.E([_.cW("guideElement"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"onGuideElementChanged",null);
_.E([_.cW("guidePersistentAndVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"guidePersistentAndVisibleChanged",null);_.E([_.U0("guideIsVisibleButNotPersistent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.E([_.cW("miniGuideVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"miniGuideVisibleChanged",null);_.E([_.U0("guideOpened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"guideOpenedChanged",null);_.E([_.cW("activeEndpoint"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"activeEndpointChanged",null);
_.E([_.U0("pageUrl"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"resetGuide",null);_.E([_.U0("cachedClientWidth"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"cachedClientWidthChanged",null);_.E([_.cW("guideOpened","guidePersistent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"computeGuidePersistentAndVisible",null);
_.E([_.U0("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"observeForMiniGuideVisible",null);_.E([_.WW("iron-resize"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],oX.prototype,"onResize",null);_.E([_.p({disableElementRegistration:!0,is:"yt-guide-manager"})],oX);var TKR=_.N(oX,"yt-guide-manager",void 0,{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var J$=function(){var X=_.O.apply(this,arguments)||this;X.JSC$19792_keyboardInUse=!1;X.boundHandleCapturedKeydownEvent=function(t){X.handleCapturedKeydownEvent(t)};
return X};
_.S(J$,_.O);_.H=J$.prototype;_.H.attached=function(){this.listenToDocument(document)};
_.H.listenToDocument=function(X){X.addEventListener("keydown",_.Ik(this,this.onKeyDownEvent));X.addEventListener("keyup",_.Ik(this,this.onKeyUpEvent));X.addEventListener("mousedown",_.Ik(this,this.onMouseDownEvent));_.A("desktop_keyboard_capture_keydown_killswitch")||X.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);X.addEventListener("yt-page-data-updated",_.Ik(this,this.onPageUpdate))};
_.H.detached=function(){this.unlistenFromDocument(document)};
_.H.unlistenFromDocument=function(X){X.removeEventListener("keydown",_.Ik(this,this.onKeyDownEvent));X.removeEventListener("keyup",_.Ik(this,this.onKeyUpEvent));X.removeEventListener("mousedown",_.Ik(this,this.onMouseDownEvent));_.A("desktop_keyboard_capture_keydown_killswitch")||X.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);X.removeEventListener("yt-page-data-updated",_.Ik(this,this.onPageUpdate))};
_.H.ready=function(){_.gw().addProvider({provide:_.Z8,useValue:this})};
_.H.isKeyBoardInUse=function(){return this.JSC$19792_keyboardInUse};
_.H.handleCapturedKeydownEvent=function(X){if(X.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(X)};
_.H.onMouseDownEvent=function(){this.JSC$19792_keyboardInUse=!1};
_.H.onPageUpdate=function(){if(_.A("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.A("web_shorts_keyboard_shortcut_usage_log")){_.Di.clear();for(var X=_.J(_.YL),t=X.next();!t.done;t=X.next()){var G=_.J(t.value);t=G.next().value;G=G.next().value;G=_.ai(G);_.Di.set(t,G);_.w9(_.lw(),_.a4(),G)}_.SW.clear();X=_.J(_.sO);for(t=X.next();!t.done;t=X.next())G=_.J(t.value),t=G.next().value,G=G.next().value,G=_.ai(G),_.SW.set(t,G),_.w9(_.lw(),_.a4(),G);_.zG(_.lw(),_.a4(),[].concat(_.RY(_.SW.values()),
_.RY(_.Di.values())));_.o$(_.lw(),[].concat(_.RY(_.SW.values()),_.RY(_.Di.values())))}};
_.H.onMiniplayerActiveChange=function(){var X;(X=_.gw().resolve(_.G2).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(X.document):this.unlistenFromDocument(X.document))};
_.H.ignoreKeyEvent=function(X){if(X.ctrlKey||X.altKey)if(_.A("kevlar_macro_markers_keyboard_shortcut")){if(X.keyCode!==37&&X.keyCode!==39)return!0}else return!0;var t=_.be(X)||[];return _.GjH(t)?!0:X.defaultPrevented?(pn(X.keyCode,X.shiftKey,this.isShortsPage),!0):X.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(X):!1};
_.H.isSpacebarClick=function(X){var t=X||window.event;var G;t.composedPath&&typeof t.composedPath==="function"?G=t.composedPath():G=t.path;G&&G.length?t=G[0]:(t=t||window.event,t=t.target||t.srcElement,t.nodeType==3&&(t=t.parentNode));return t&&X.keyCode===32&&(X=t.tagName==="BUTTON"||t.tagName==="A"||t.tagName==="INPUT",t=(t=t.getAttribute("role"))&&(t==="option"||t==="button"||t.indexOf("menuitem")===0),X||t)?!0:!1};
_.H.onKeyDownEvent=function(X){if(!this.ignoreKeyEvent(X)&&(X.keyCode===191&&(X.shiftKey||X.metaKey?X.repeat!=null&&X.repeat||(this.openHotkeyDialog(),pn(X.keyCode,X.shiftKey,this.isShortsPage)):(this.focusSearchBox(),X.preventDefault())),!X.metaKey)){var t=_.gw().resolve(_.G2);switch(X.keyCode){case 9:this.JSC$19792_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(X);break;case 84:t.pipController.getWindow()&&window.focus();this.toggleTheaterMode(X.keyCode,X.shiftKey);break;case 73:t.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(X.keyCode,X.shiftKey);break;case 70:if(this.isShortsPage&&_.A("web_fullscreen_shorts")){_.yaB();break}this.isMiniplayerActive()?t.pipController.getWindow()&&(t.close(!0),window.focus()):this.passEventToPlayer(X);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(X.keyCode,X.shiftKey):this.closeMiniplayer(X.keyCode,X.shiftKey)||this.passEventToPlayer(X);break;case 13:X.shiftKey&&_.gw().resolve(_.WT).activate(X);break;default:this.passEventToPlayer(X)}}};
_.H.onKeyUpEvent=function(X){if(!this.ignoreKeyEvent(X))if(_.A("web_speedmaster_spacebar_control")&&X.keyCode===32)this.handlePlayerSpaceKey(X,!0);else{var t=this.getPlayerManager();t&&(t=t.getPlayer())&&t.handleGlobalKeyUp(X.keyCode,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,X.key,X.code)}};
_.H.getPlayerManager=function(){var X=_.sW(),t=_.gw().resolve(_.jH(_.AS));return X&&t&&t.isOnWatch()?X:null};
_.H.passEventToPlayer=function(X,t){var G=this,y,w,z,B;return _.n(function(V){if(V.nextAddress==1){if(!_.A("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&G.isMiniplayerActive())y=_.gw().resolve(_.G2).getPlayerElement();else if(G.inlinePreviewIsActive){if(w=_.D0(G.hostElement,"yt-get-inline-preview-player-action"),(z=w)==null?0:z[0])y=w[0]}else y=_.sW();return y?V.yield(y.getPlayerPromise(),3):V.jumpTo(0)}B=V.yieldResult;t?B.handleGlobalKeyUp(X.keyCode,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,
X.key,X.code):B.handleGlobalKeyDown(X.keyCode,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,X.key,X.code,X.repeat);X.keyCode!==38&&X.keyCode!==40&&pn(X.keyCode,X.shiftKey,G.isShortsPage);_.W$(V)})};
_.H.focusSearchBox=function(){_.Yt(this.hostElement,"yt-focus-searchbox")};
_.H.openHotkeyDialog=function(){_.Yt(this.hostElement,"yt-open-hotkey-dialog")};
_.H.isMiniplayerActive=function(){return _.gw().resolve(_.G2).isMiniplayerActive()};
_.H.closeMiniplayer=function(X,t){return this.isMiniplayerActive()?(_.gw().resolve(_.G2).close(),pn(X,t,this.isShortsPage),!0):!1};
_.H.toggleTheaterMode=function(X,t){var G=_.tS(_.dV().getState()),y=this.getPlayerManager(),w=_.A("disable_theater_mode_keyboard")||_.X3("START_IN_FULL_WINDOW_MODE");y&&!w&&(G=!G,_.gk()&&_.A("external_fullscreen")&&(G=!0),_.sl(this.hostElement,"yt-toggle-theater-mode",[G]),pn(X,t,this.isShortsPage))};
_.H.toggleMiniplayer=function(X,t){var G=this.getPlayerManager();if(this.isMiniplayerActive()){var y;((y=_.gw().resolve(_.jH(_.AS)))==null?0:y.isOnWatch())?_.gw().resolve(_.G2).close(!0):_.i3(_.gw().resolve(_.G2));pn(X,t,this.isShortsPage)}else G&&(_.sl(this.hostElement,"yt-activate-miniplayer-from-watch-action"),pn(X,t,this.isShortsPage))};
_.H.handlePlayerSpaceKey=function(X,t){var G=!!_.sW()||this.isMiniplayerActive();G=_.A("disable_space_scroll_fix")||G;_.A("global_spacebar_pause")&&!this.isKeyBoardInUse()&&G&&(X.preventDefault(),this.passEventToPlayer(X,t))};
_.H.isPresentingTheaterMode=function(){return _.A("web_watch_enable_tm_esc_key")?_.tS(_.dV().getState())&&!_.gk():!1};
J$.prototype.onMiniplayerActiveChange=J$.prototype.onMiniplayerActiveChange;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],J$.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],J$.prototype,"ytdReduxBehavior",void 0);_.E([_.K({selector:_.SEh}),_.U("design:type",Boolean)],J$.prototype,"inlinePreviewIsActive",void 0);_.E([_.K({selector:_.okJ}),_.U("design:type",Boolean)],J$.prototype,"isShortsPage",void 0);
_.E([_.K({selector:_.fg}),_.U("design:type",Boolean)],J$.prototype,"miniplayerIsActive",void 0);_.E([_.cW("miniplayerIsActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],J$.prototype,"onMiniplayerActiveChange",null);_.E([_.p({disableElementRegistration:!0,is:"yt-hotkey-manager"})],J$);_.N(J$,"yt-hotkey-manager",void 0,{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var BG=function(){var X=_.O.apply(this,arguments)||this;X.loopStateEntityKey_=null;X.playlistLoopStateEntity_=null;X.isShuffleNextPlaylist=!1;X.PLAYER_EVENTS_=new Map;X.playerListenersSetup_=!1;X.videoSkipJob_=0;X.canAutoAdvance_=!1;X.playerManager_=null;X.TEST_ONLY={};return X};
_.S(BG,_.O);_.H=BG.prototype;_.H.ready=function(){_.gw().addProvider({provide:_.Gm,useValue:this.hostElement})};
_.H.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_)};
_.H.attached=function(){document.addEventListener("yt-navigate-start",_.Ik(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Ik(this,this.onYtNavigateFinish_))};
_.H.detached=function(){document.removeEventListener("yt-navigate-start",_.Ik(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Ik(this,this.onYtNavigateFinish_))};
_.H.updatePlaylistEventListeners=function(X,t){t&&!this.playerListenersSetup_?(this.playerManager_=X,this.registerPlaylistEventListeners_(X)):!t&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(X))};
_.H.setPlayer=function(X){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=X};
_.H.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.H.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.H.registerPlaylistEventListeners_=function(X){var t=this;X.getPlayerPromise().then(function(G){t.playerListenersSetup_||(t.ytPlayerListenerBehavior.listenToPlayerEvents(G,t.PLAYER_EVENTS_),t.playerListenersSetup_=!0)})};
_.H.removePlaylistEventListeners_=function(X){var t=this;X.getPlayerPromise().then(function(G){t.playerListenersSetup_&&(t.ytPlayerListenerBehavior.unlistenFromPlayerEvents(G,t.PLAYER_EVENTS_),t.playerListenersSetup_=!1)})};
_.H.setPlaylistComponent=function(X){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Ik(this,this.onPlaylistYtNavigate_)),X&&(X.data&&this.playlistComponent.data&&X.data.playlistId==this.playlistComponent.data.playlistId?(X.loopOn=this.playlistComponent.loopOn,X.shuffleOn=this.playlistComponent.shuffleOn):(X.loopOn=!1,X.shuffleOn=!1),this.isShuffleNextPlaylist&&(X.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=X;this.playlistComponent.addEventListener("yt-navigate",
_.Ik(this,this.onPlaylistYtNavigate_))};
_.H.setAutoplayRenderer=function(X){this.autoplayData=X};
_.H.setPlaylistData=function(X){this.currentPlaylistData_=X;_.Yt(this.hostElement,"yt-playlist-data-updated");_.RH.isEmpty(X)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(X)};
_.H.setPlayerPlaybackControlData=function(X){this.playerManager_&&this.playerManager_.updatePlayerComponents(X.playlistPanelRenderer)};
_.H.getPlaylistData=function(){return this.currentPlaylistData_};
_.H.getTempData_=function(X,t){if(this.playlistComponent==null)return null;X={};this.playlistComponent.shuffleOn&&(X.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(X.loop_on=this.playlistComponent.loopOn);t&&(X.autonav="1",_.gw().resolve(_.xI),t=_.T5(),t>0&&(X.lact=t),this.playerManager_&&(t=this.playerManager_.getPlayer())&&t.shouldSendVisibilityState()&&(t=t.getVisibilityState(),t!=0&&(X.vis=t)));_.A("enable_unknown_lact_fix_on_html5")&&(_.gw().resolve(_.xI),X.lact=
_.T5());return X};
_.H.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.H.setLoopStateEntityKey_=function(X){var t;this.loopStateEntityKey_=((t=this.getPlaylistLoopData_(X))==null?void 0:t.playlistLoopStateEntityKey)||null};
_.H.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.H.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.H.skipVideo=function(){var X=this,t=_.A("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||t)t=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Rs(_.vz,function(){X.onPlaylistNext();X.videoSkipJob_=0},t)};
_.H.cancelVideoSkip=function(){this.videoSkipJob_&&(_.vz.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.H.isInBackground_=function(){var X=window.document.visibilityState;return!(!X||X=="visible")};
_.H.onPlaylistIndex_=function(X){this.playlistComponent&&(X=this.playlistComponent.data.contents[X].playlistPanelVideoRenderer.navigationEndpoint,_.Yt(this.hostElement,"yt-navigate",{endpoint:X,tempData:this.getTempData_(X)}))};
_.H.onPlayerStateChange_=function(X){if(X=X==0&&this.playlistComponent&&this.canAutoAdvance_)X=_.gz.getInstance(),X=!(X.autonavState_===3?X.autonavPauseReason_&&X.autonavPauseReason_.inputBoxFocus===!0:X.autonavState_===1&&X.disabledAutonavPauseReason_&&X.disabledAutonavPauseReason_.inputBoxFocus===!0);X&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.H.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.H.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.H.navigateToAutoplayWatchEndpoint_=function(X,t,G){var y=this.playlistComponent.data.currentIndex,w=this.getNumPlayableVideos_();X=="NORMAL"&&t=="autoplayVideo"&&y+1>=w&&G||!(X=this.getVideoEndpoint_(X,t))||(G=this.getTempData_(X,G),_.Yt(this.hostElement,"yt-navigate",{endpoint:X,tempData:G}))};
_.H.getNumPlayableVideos_=function(){for(var X=0,t=_.J(this.playlistComponent.data.contents||[]),G=t.next();!G.done;G=t.next())G.value.playlistPanelVideoRenderer&&(X+=1);return X};
_.H.getVideoEndpoint_=function(X,t){if(this.autoplayData&&this.autoplayData.sets)for(var G=0,y=this.autoplayData.sets.length;G<y;G++){var w=this.autoplayData.sets[G];if(w.mode==X){if(w[t])return w[t];break}}else X=new _.NJ("AutoplayData is undefined in playlist manager","Mode: "+X+" endpoint: "+t),_.Mj(X)};
_.H.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.H.onPlaylistYtNavigate_=function(X){if(X.detail.endpoint){X.stopPropagation();var t=X.detail;t.tempData=this.getTempData_(X.detail.endpoint);_.Yt(this.hostElement,"yt-navigate",t)}};
_.H.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.H.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.H.playlistLoopStateEntityChanged_=function(X){var t=this,G,y,w;return _.n(function(z){if(z.nextAddress==1){if(!X)return z.return();G=X.state==="PLAYLIST_LOOP_STATE_ONE";return t.playerManager_?z.yield(t.playerManager_.getPlayerPromise(),3):z.jumpTo(2)}z.nextAddress!=2&&(y=z.yieldResult,y.setLoopVideo(G));w=X.state==="PLAYLIST_LOOP_STATE_ALL";t.playlistComponent&&(t.playlistComponent.loopOn=w);_.W$(z)})};
_.H.getPlaylistLoopData_=function(X){var t,G;if(X=X==null?void 0:(t=X.playlistButtons)==null?void 0:(G=t.menuRenderer)==null?void 0:G.topLevelButtons)for(t=_.J(X),G=t.next();!G.done;G=t.next())if(G=G.value,G.playlistLoopButtonRenderer)return G.playlistLoopButtonRenderer};
_.H.getLoopStateCommand_=function(X){var t=this.getPlaylistData(),G;t=((G=this.getPlaylistLoopData_(t))==null?void 0:G.states)||[];var y;X=(y=_.Y(t[X?1:2],_.h4R))==null?void 0:y.button;var w;return(w=_.Y(X,_.G4))==null?void 0:w.command};
_.H.onPlayerLoopChange_=function(X){this.playlistLoopStateEntity_&&(X?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(X=this.getLoopStateCommand_(X))&&this.ytComponentBehavior.resolveCommand(X)};
_.H.onSleepTimerSettingsChanged_=function(X){this.canAutoAdvance_=X!=="End of video"};
BG.prototype.onPlaylistLoopStateEntityChanged=BG.prototype.onPlaylistLoopStateEntityChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],BG.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],BG.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],BG.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],BG.prototype,"loopStateEntityKey_",void 0);
_.E([_.K({selectorArgs:["loopStateEntityKey_"],selector:_.qk6}),_.U("design:type",Object)],BG.prototype,"playlistLoopStateEntity_",void 0);_.E([_.cW("playlistLoopStateEntity_"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],BG.prototype,"onPlaylistLoopStateEntityChanged",null);_.E([_.p({disableElementRegistration:!0,is:"yt-playlist-manager"})],BG);_.N(BG,"yt-playlist-manager",void 0,{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var ADN,YKB=function(){if(ADN!==void 0)return ADN;var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return ADN=X};var nj=function(){var X=_.O.apply(this,arguments)||this;X.lastCallback=null;X.getAccountLinkPromises={};X.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);X.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return X};
_.S(nj,_.O);_.H=nj.prototype;_.H.getLocation=function(){return window.location.href};
_.H.getCompletionUrl=function(){return _.kt(this.getLocation())};
_.H.containsRedirectState=function(X){return(X=_.LV(_.H3V(X)))?(new URLSearchParams(X)).get("redirect_state")!==null:!1};
_.H.createGalConfig=function(X,t){var G=new WZv;X=G=t?this.getPopupOrRedirectSetting(G,_.Md("LINK_API_KEY"),_.Md("LINK_API_KEY_REDIRECT"),X):cw4(G,_.Md("LINK_API_KEY"));X.authUser=_.Md("SESSION_INDEX")||0;X.supportedFlows=new Set([4]);return X.build()};
_.H.getPopupOrRedirectSetting=function(X,t,G,y){this.isGalInteractionPopupMode(y)?(X.interactionMode=0,X=cw4(X,t)):(X.interactionMode=1,t=this.getCompletionUrl(),X.completionUrl=t,X=cw4(X,G));return X};
_.H.isGalInteractionPopupMode=function(X){if(this.redirectModeProviderAllowlist.has(X))switch(X){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.H.getStatusEntityKeyForProviderId=function(X){return _.Cg(X+":all","accountLinkStatusEntity")};
_.H.findNestedPropValue=function(X,t){var G=!1,y=null;JSON.stringify(X,function(w,z){G||w!==t||(G=!0,y=z);return G?null:z});
return y};
_.H.findAccountLinkButtonViewModel=function(X,t){var G=null,y=!1;JSON.stringify(X,function(w,z){y||z.accountLinkStatusEntityKey!==t||z.accountLinkStatusSecondaryEntityKey||(y=!0,G=z);return y?null:z});
return G};
_.H.executeLinkingSuccessOrFailureCommands=function(X,t,G){var y=null,w;(t==null?0:(w=t.url)==null?0:w.includes("account_sharing"))?y=t==null?void 0:t.response:y=t==null?void 0:t.response;(t=this.findAccountLinkButtonViewModel(y,X))?(X=G?this.findNestedPropValue(t,"onSuccessCommand"):this.findNestedPropValue(t,"onFailureCommand"))?_.Kq([X],this.hostElement):_.yQ(Error("fl")):_.yQ(Error("gl`"+X))};
_.H.handleInitializeRequest=function(X,t){var G=this,y=ygR(this.createGalConfig(X,!0));this.containsRedirectState(this.getLocation())?MQR(X,y.config,y.galService).then(function(w){var z=G.getStatusEntityKeyForProviderId(X);if(w.statusCode===1)t&&G.executeLinkingSuccessOrFailureCommands(z,t,!0),w=G.getLocation().indexOf("#"),w!==-1&&window.history.pushState(null,"",G.getLocation().substring(0,w));else return t&&G.executeLinkingSuccessOrFailureCommands(z,t,!1),Promise.reject(Error(w.statusMessage))}).catch(function(w){_.Mj(w);
_.a7("gamingAccountLinkStatusChanged",{serviceId:X,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(w)}):this.getAccountLinkPromises[X]=y.startLinkingSession({serviceId:X})};
_.H.handleAccountLinkCommand=function(X){_.Y(X,Y2a)&&this.handleLinkRequest(_.Y(X,Y2a))};
_.H.handleLinkRequest=function(X){var t=this,G=X.thirdPartyId;if(G)if(this.isGalInteractionPopupMode(G)){var y=function(){t.closeAndFire("ytd-gaming-account-link-setting-renderer",X.onFailureCommand)},w=function(){t.closeAndFire("ytd-gaming-account-link-setting-renderer",X.onSuccessCommand)};
this.lastCallback=w;this.getAccountLinkPromises[G].then(function(z){dFB(z).then(function(B){B.statusCode===1?w():y()})}).catch(function(){y()})}else this.getAccountLinkPromises[G].then(function(z){dFB(z).then(function(B){if(B.statusCode!==1)return Promise.reject(Error(B.statusMessage))})}).catch(function(z){_.Mj(z);
_.a7("gamingAccountLinkStatusChanged",{serviceId:G,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(z)})};
_.H.closeAndFire=function(X,t){_.sl(this.hostElement,"yt-close-popup-action",[X]);t&&_.Kq([t],this.hostElement)};
_.H.handleAccountUnlinkCommand=function(X){_.Y(X,sIv)&&this.handleUnlinkRequest(_.Y(X,sIv))};
_.H.handleUnlinkRequest=function(X){var t=this,G=X.thirdPartyId;if(G){var y=function(){t.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",X.onFailureCommand)},w=function(){t.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",X.onSuccessCommand)};
this.lastCallback=w;var z=ygR(this.createGalConfig(G,!1));this.unlinkUserGal(z,G).then(function(B){B.statusCode===1?w():y()}).catch(function(){y()})}};
_.H.unlinkUserGal=function(X,t){return X.deleteLink(t)};
_.H.handleLogAccountLinkingEventCommand=function(X){_.A("enable_gel_log_commands")&&_.Y(X,DWr)&&(X=_.Y(X,DWr).event)&&_.a7("gamingAccountLinkStatusChanged",X)};
_.ke.Object.defineProperties(nj,{template:{configurable:!0,enumerable:!0,get:function(){return YKB()}}});
_.E([_.q(_.cr.YtOpenPopupBehavior),_.U("design:type",Object)],nj.prototype,"ytOpenPopupBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],nj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-third-party-manager"})],nj);_.N(nj,"ytd-third-party-manager",function(){return YKB()},{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var slV,Dh2=function(){if(slV!==void 0)return slV;var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return slV=X};var SKN=_.Vc(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),VH=function(){var X=_.O.apply(this,arguments)||this;X.currentPage=void 0;X.renderLoadingStateJobId=0;X.updatePageDataJobId=0;X.pageDisposeJobsets=new WeakMap;X.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"};X.shouldApplyLockupToWatchTransition=_.A("web_thumbnail_to_watch_transition");X.shouldApplySlideTransition=_.Yx("web_page_transition_type")==="slide"||_.A("enable_plj_landing_page");X.shouldApplyLearningJourneyTransition=_.A("enable_plj_landing_page");X.TEST_ONLY=void 0;return X};
_.S(VH,_.O);_.H=VH.prototype;_.H.ready=function(){var X=_.gw();X.addProvider({provide:_.AS,useValue:this});X.addProvider({provide:_.oa4,useValue:this})};
_.H.created=function(){this.pagePool=new lzr;this.contextSwitcher=new BbH};
_.H.attached=function(){_.Yt(this.hostElement,"attached");var X=_.gw().resolve(_.jH(_.fp));X&&(this.contextSwitcher.JSC$19618_networkService_=X);this.viewTransitionManager=_.gw().resolve(_.Rp);this.setupPageTransitionAnimation()};
_.H.getPageOffset=function(X){return X.getScrollTop()};
_.H.setPageOffset=function(X,t){try{X.setScrollTop(t)}catch(G){}};
_.H.setPageOffsetForNavigation=function(X,t){_.Yt(this.hostElement,"yt-navigate-set-page-offset",{page:X,offset:t===void 0?0:t})};
_.H.pauseActiveContext=function(){var X=this.contextSwitcher;X.activeContext_&&X.activeContext_.pause()};
_.H.getModuleNameForType=function(X){return X==="watch"?_.A("kevlar_watch_fixie")?"watchFixie":_.A("kevlar_watch_grid")?"watchGrid":"watchFlexy":X==="shorts"||X==="search"?X:"browse"};
_.H.attachPage=function(X){var t,G=!_.A("pc_is_attached_ks")&&(X==null?void 0:(t=X.polymerController)==null?void 0:t.isAttached);if(!X.isAttached&&!G)try{_.Sm(this.hostElement).appendChild(X)}catch(w){var y;_.Mj(new _.NJ("Error attaching page element for component",{origin:(y=this.currentPage)==null?void 0:y.is,component:X.is}))}};
_.H.setActivePage=function(X){var t=this,G=!1,y=function(){var w=t.isOnWatch(),z=t.currentPage;if(X)if(X!==t.currentPage){z&&(z.hidden=!0,z.active=!1,z.removeAttribute("role"));t.currentPage=X;var B,V=_.cy((B=t.data)==null?void 0:B.endpoint);z&&_.Yt(t.hostElement,"yt-page-type-changed",{oldPageType:z.is,newPageType:X.is,newPageSubtype:V});_.kF().dispatch(_.Dl({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:X.is}));_.kF().dispatch(_.Dl({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:V||""}));X.hidden=
!1;t.attachPage(X);X.active=!0;X.setAttribute("role","main");z&&t.setPageOffsetForNavigation(X,0);_.A("kevlar_remove_page_dom_on_switch")&&!w&&z&&_.Sm(t.hostElement).removeChild(z)}else G=!0;else w=new _.NJ("Unable to set active page",z?z.is:"unknown origin",(V=t.data)==null?void 0:V.endpoint),_.xA(w)};
this.shouldRunLockupToWatchTransition(this.currentPage,X)?Oy4(this.viewTransitionManager,y):this.shouldRunBrowseTransition(this.currentPage,X)?KMR(this.viewTransitionManager,y):this.shouldRunLearningJourneyTransition(this.currentPage,X)?QDa(this.viewTransitionManager,y):y();return G};
_.H.shouldRunLockupToWatchTransition=function(X,t){return this.shouldApplyLockupToWatchTransition&&(X==null?void 0:X.is)==="ytd-browse"&&this.isWatchPage(t)};
_.H.shouldRunBrowseTransition=function(X,t){return this.shouldApplySlideTransition&&(X==null?void 0:X.is)==="ytd-browse"&&(t==null?void 0:t.is)==="ytd-browse"&&X!==t};
_.H.shouldRunLearningJourneyTransition=function(X,t){return this.shouldApplyLearningJourneyTransition&&(X==null?void 0:X.is)==="ytd-browse"&&((t==null?void 0:t.is)==="ytd-watch-learning-journey"||(t==null?void 0:t.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.H.shouldRunWatchNextLoadedTransition=function(X,t){return this.viewTransitionManager&&X.is==="ytd-watch-flexy"&&t};
_.H.updatePageData=function(X){var t=this,G=this.data;this.updatePageDataJobId&&_.vz.cancelJob(this.updatePageDataJobId);this.data=X;return new _.Kh(function(y){var w=function(){X.filler?t.performDataUpdate(X,G):PXR(function(){t.performDataUpdate(X,G)});
var b=_.wv();_.zm(b,"cr")||b.processSignal("cr");y()},z=function(){X&&X.page==="watch"?t.updatePageDataJobId=_.Rs(_.vz,w):w()};
if(_.A("kevlar_enable_mss_page_modules_client")&&X){var B=_.gw().resolve(_.w1),V=t.getModuleNameForType(X.page);(B=qeR(B,[V]))?B.then(z):z()}else z()})};
_.H.isDownloadsPage=function(X){var t,G;return(X==null?void 0:(t=X.endpoint)==null?void 0:(G=t.browseEndpoint)==null?void 0:G.browseId)==="FEdownloads"};
_.H.setPlayerSyncInterval=function(X){var t;return _.n(function(G){if(G.nextAddress==1)return G.yield(_.gw().resolve(_.q7),2);t=G.yieldResult;t.setUpPositionSyncInterval(X);_.W$(G)})};
_.H.performDataUpdate=function(X,t){_.A("kevlar_early_popup_close")||_.sl(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var G=!X.filler;G&&(_.ls("lps"),_.A("config_age_report_killswitch")||eX4());var y=hu(X),w,z=!1;if(_.A("kevlar_remove_page_dom_on_switch")){var B=t&&hu(t);y===B&&(w=this.getCurrentPage())}w||(w=$z(this.pagePool,y));G&&m7N(this.pagePool.elementPoolPopulator,y);G&&!this.renderLoadingStateJobId&&(z=this.setActivePage(w));if(w){B=y==="watch";var V=
y==="shorts",b=y==="learning_journey_watch";_.A("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(w);if(B||V||b)w.playerData=X.playerResponse;if(V)if(_.A("web_enable_delay_shorts_sequence_call")){X.reelWatchSequenceResponse&&(w.reelWatchSequenceResponse=X.reelWatchSequenceResponse);w.currentEndpoint=X.endpoint;var e;w.isPreviousPageShorts=!!(t==null?0:(e=t.endpoint)==null?0:e.reelWatchEndpoint);var g,F;X.cachedSequenceParams=((g=X.endpoint)==null?void 0:(F=g.reelWatchEndpoint)==
null?void 0:F.sequenceParams)||X.cachedSequenceParams||(t==null?void 0:t.cachedSequenceParams);var T,D;X.cachedSequenceProvider=((T=X.endpoint)==null?void 0:(D=T.reelWatchEndpoint)==null?void 0:D.sequenceProvider)||X.cachedSequenceProvider||(t==null?void 0:t.cachedSequenceProvider);w.cachedSequenceParams=X.cachedSequenceParams;w.cachedSequenceProvider=X.cachedSequenceProvider}else{X.reelWatchSequenceResponse?w.reelWatchSequenceResponse=X.reelWatchSequenceResponse:X.cachedReelWatchSequenceResponse?
w.reelWatchSequenceResponse=X.cachedReelWatchSequenceResponse:_.A("web_enable_cached_reel_sequence_fix")&&w.cachedReelWatchSequenceResponse&&!w.reelWatchSequenceResponse&&(w.reelWatchSequenceResponse=w.cachedReelWatchSequenceResponse);w.currentEndpoint=X.endpoint;var h;w.isPreviousPageShorts=!!(t==null?0:(h=t.endpoint)==null?0:h.reelWatchEndpoint);X.cachedReelWatchSequenceResponse=X.reelWatchSequenceResponse||X.cachedReelWatchSequenceResponse||(t==null?void 0:t.cachedReelWatchSequenceResponse);w.cachedReelWatchSequenceResponse=
X.cachedReelWatchSequenceResponse}e=this.isDownloadsPage(X);g=this.isDownloadsPage(t);e&&!g?this.setPlayerSyncInterval(6E5):!e&&g&&this.setPlayerSyncInterval();_.A("block_all_player_prefetch_requests")||this.preparePrefetchRequest(X,w,G,B,V,b);I7V(_.gw().resolve(_.G2),t,X);_.gb(_.gw().resolve(_.xI));_.A("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(w);G?(G=typeof w.loadPage,G==="function"?(w.pageContext=njH(this.contextSwitcher,w,w.data!==X.response),G=function(){w.loadPage(X.response)},
this.shouldApplySlideTransition&&w.is==="ytd-browse"&&z&&(y==="learning"||this.isDifferentBrowseId(X==null?void 0:X.endpoint,t==null?void 0:t.endpoint))?KMR(this.viewTransitionManager,G):this.shouldRunWatchNextLoadedTransition(w,z)?u7T(this.viewTransitionManager,G):G()):_.fh(new _.NJ("b/38014653 ",[y,
w.is,w.nodeName,G,w.isAttached,t&&hu(t),this.hostElement.children.length])),_.ls("pdl")):(w.hidden=!0,X.response.filler=!0,w.data=X.response,this.attachPage(w));_.Yt(this.hostElement,"yt-page-data-updated",{pageType:y})}_.PO(_.vz,function(){_.A("logging_avoid_blocking_during_navigation")&&_.rHA().transition("none");var u=hkV(),W=w;if(X){var c=ldr(X),P=xrT(X),l;a:{if(X.playerResponse){var R=X.playerResponse,L;if((l=R.auxiliaryUi)==null?0:(L=l.messageRenderers)==null?0:L.upsellDialogRenderer){l=R.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(X.response&&(l=X.response,(R=l.overlay)==null?0:R.upsellDialogRenderer)){l=l.overlay.upsellDialogRenderer;break a}l=void 0}var x;var w6;L=(x=X.playerResponse)==null?void 0:(w6=x.auxiliaryUi)==null?void 0:w6.messageRenderers;x=(L==null?void 0:L.enforcementMessageViewModel)||(L==null?void 0:L.bkaEnforcementMessageViewModel);x=(x==null?void 0:x.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?x:void 0;var BY;a:{if(X.response&&(w6=X.response,(BY=w6.overlay)==null?0:
BY.commandWrapperPromoRenderer)){BY=w6.overlay.commandWrapperPromoRenderer;break a}BY=void 0}SI4(u,c,P,l,x,BY,W)}})};
_.H.preparePrefetchRequest=function(X,t,G,y,w,z){var B,V,b,e,g,F,T,D,h,u,W,c,P,l,R;return _.n(function(L){if(L.nextAddress==1)return!G||!(y||w||z)||_.A("kevlar_disable_background_prefetch")&&_.tt(_.OmJ)()===0?L.return():(B=_.YW(t))?L.yield(B.getPlayerPromise(),2):L.return();V=L.yieldResult;b=_.gw().resolve(_.jH(_.fp));if(!b)return L.return();if(w)return e=_.TC(_.E2),x7T(e,(g=X.endpoint)==null?void 0:g.reelWatchEndpoint,t.reelWatchSequenceResponse,V,b),L.return();D=(F=X.response)==null?void 0:(T=F.responseContext)==
null?void 0:T.webResponseContextExtensionData;if(!D)return L.return();P=(h=X.response)==null?void 0:(u=h.contents)==null?void 0:(W=u.twoColumnWatchNextResults)==null?void 0:(c=W.autoplay)==null?void 0:c.autoplay;l=_.gw().resolve(_.Gm);R=_.TC(_.E2);fRV(R,D,V,b,l,P);_.W$(L)})};
_.H.movePlayerToWatch=function(X){var t=this,G,y;return _.n(function(w){G=$z(t.pagePool,"watch");y=G.getPlayerContainer();X.appendTo(y);_.W$(w)})};
_.H.movePlayerToShorts=function(X){var t=this,G,y,w;return _.n(function(z){G=$z(t.pagePool,"shorts");y=G.getPlayerContainer();(w=X)==null||w.appendTo(y,void 0,!0);_.W$(z)})};
_.H.getPlayerFromWatch=function(){var X=$z(this.pagePool,"watch");return _.YW(X)};
_.H.getPlayerFromShorts=function(){var X=$z(this.pagePool,"shorts");return _.YW(X)};
_.H.startLoadingWatch=function(){var X=$z(this.pagePool,"watch");this.renderLoadingStateJobId?(_.vz.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(X)};
_.H.startLoadingShorts=function(){var X=$z(this.pagePool,"shorts");this.setActivePage(X)};
_.H.startLoadingLearningJourney=function(){var X=$z(this.pagePool,"learning_journey_watch");this.setActivePage(X)};
_.H.getCurrentPage=function(){return this.currentPage};
_.H.getDestinationPageType=function(){return this.destinationPageType};
_.H.getCurrentData=function(){return this.data};
_.H.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.H.isOnShorts=function(){var X;return((X=this.currentPage)==null?void 0:X.is)==="ytd-shorts"};
_.H.isWatchPage=function(X){return!!X&&(X.is==="ytd-watch-flexy"||X.is==="ytd-watch-fixie"||X.is==="ytd-watch-grid")};
_.H.preparePage=function(X,t){var G=this,y=function(){var B=G.pagePool.preparePage(X,G.currentPage,t);B&&G.attachPage(B)},w=function(B){_.XE(B,t);
_.Mj(B)};
if(_.A("kevlar_enable_mss_page_modules_client")){var z=this.getModuleNameForType(X);if(z=qeR(_.gw().resolve(_.w1),[z])){z.then(y.bind(this)).catch(w.bind(this));return}}try{y()}catch(B){w(B)}};
_.H.lazyPrepareCriticalPages=function(X,t){X=_.cy(t)||X;_.A("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(X).then(this.maybePrepareWatchPage.bind(this,X)):this.maybePrepareWatchPage(X)};
_.H.maybePrepareWatchPage=function(X){X!=="watch"&&_.PO(_.vz,this.preparePage.bind(this,"watch"))};
_.H.downloadPageModules=function(X){X=this.getModuleNameForType(X);var t=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);t.delete(X);var G=_.gw().resolve(_.w1);G.JSC$18374_loadModules(X);return G.JSC$18374_loadModules.apply(G,_.RY(t))};
_.H.renderPageLoadingState=function(X,t){this.preparePage(X,t);var G=$z(this.pagePool,X);G.loadingData&&(G.loadingData.endpoint=t);G.loading=!0;this.setActivePage(G);X!=="watch"&&X!=="learning_journey_watch"||_.Yt(this.hostElement,"yt-guide-close")};
_.H.prepareForNavigation=function(X,t){var G=this;if(this.currentPage&&this.data){var y=_.cy(t)||X;this.destinationPageType=y;hu(this.data)==y&&_.Yt(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((X==="watch"||X==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.vz.cancelJob(this.renderLoadingStateJobId);_.gw().resolve(_.G2).deactivate(t);var w=this.data;this.renderLoadingStateJobId=_.f5(_.vz,function(){if(G.data!=
w){var z=$z(G.pagePool,X);G.setActivePage(z)}else G.renderPageLoadingState(X,t);G.renderLoadingStateJobId=0},150)}};
_.H.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var X=new _.Tw(1);this.currentPage.pageDisposeJobs.forEach(function(t){_.AC(X,t)});
this.pageDisposeJobsets.set(this.currentPage,X)}};
_.H.flushPageDisposeJobset=function(X){var t=this.pageDisposeJobsets.get(X);t&&(t.flushJobs(),this.pageDisposeJobsets.delete(X))};
_.H.onYtStopOldPlayer=function(X,t){t=t===void 0?!1:t;var G,y=_.sc("kevlar_new_stop_old_player_logic_pages");if(_.A("kevlar_check_current_page_on_stop_old_player")&&(y.length===0||this.currentPage&&y.includes(this.currentPage.is)))if(this.data&&(G=hu(this.data)),hu(X)===G&&this.currentPage&&hu(this.currentPage.data)!==G)var w=_.YW(this.currentPage);else G=hu(this.data),w=$z(this.pagePool,G),w=_.YW(w);else this.data&&(G=hu(this.data),w=$z(this.pagePool,G),w=_.YW(w));if(w)if(X=hu(X),y=$z(this.pagePool,
X),y=_.YW(y),w==y)t&&!_.A("kevlar_disable_preemptive_player_reset")&&w.resetForNewPlayback();else if(t=G==="watch"&&X!=="watch",!t||X==="shorts"||_.gK4()&&!BSH(this.data)&&X!=="yts-products"&&X!="mini_app"&&X!="playables")G=_.gw().resolve(_.G2),t&&G.isMiniplayerActive()&&G.pipController.getWindow()||w.stop()};
_.H.setupPageTransitionAnimation=function(){if(this.shouldApplySlideTransition&&this.shouldApplyLockupToWatchTransition){var X=_.At("web_page_transition_exit_ms"),t=_.At("web_page_transition_wait_ms"),G=_.At("web_page_transition_enter_ms");if(!isNaN(X)||!isNaN(t)||!isNaN(G))if(X=jOQ(SKN,X,t,G))t=document.createElement("style"),t.textContent=_.fYv(X),document.head.appendChild(t)}};
_.H.isDifferentBrowseId=function(X,t){X=_.Y(X,_.pp);t=_.Y(t,_.pp);return(X==null?void 0:X.browseId)!==(t==null?void 0:t.browseId)};
_.ke.Object.defineProperties(VH,{template:{configurable:!0,enumerable:!0,get:function(){return Dh2()}}});
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],VH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-page-manager"})],VH);_.N(VH,"ytd-page-manager",function(){return Dh2()},{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var br=function(X,t,G){G=G===void 0?!1:G;_.po.call(this);this.draggableElement=X;this.callbacks=t;this.allowClicks=G;this.dragOccurred=!1;this.internalDragger=new _.t8(this.draggableElement);this.dragDelay=new _.jb(this.delayedDrag.bind(this));hDH(this);this.allowClicks&&(_.VDe(this.internalDragger,5),X.addEventListener("click",_.Ik(this,this.validateClick),{capture:!0}))};
_.S(br,_.po);var hDH=function(X){_.vj(X.internalDragger,"earlycancel",function(){X.allowClicks&&(X.dragOccurred=!1)});
_.vj(X.internalDragger,"start",function(t){var G,y;(y=(G=X.callbacks).onStartDrag)==null||y.call(G,t);!t.defaultPrevented&&X.allowClicks&&(X.dragOccurred=!0)});
_.vj(X.internalDragger,"beforedrag",function(t){t.preventDefault();X.lastOffset=new _.LD(t.clientX-X.internalDragger.startX,t.clientY-X.internalDragger.startY);X.dragDelay.start()});
_.vj(X.internalDragger,"end",function(){X.dragDelay.stop();var t,G;(G=(t=X.callbacks).onEndDrag)==null||G.call(t);X.lastOffset=void 0})};
br.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
br.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Ik(this,this.validateClick),{capture:!0})};
br.prototype.validateClick=function(X){this.dragOccurred&&(this.dragOccurred=!1,X.stopPropagation(),X.preventDefault())};var kz=function(X,t){_.po.call(this);this.JSC$19815_resizeContainer=X;this.callbacks=t;this.aspectRatio=16/9;this.JSC$19815_resizers=[];X=_.J(this.JSC$19815_resizeContainer.children);for(t=X.next();!t.done;t=X.next())ZZi(this,t.value)};
_.S(kz,_.po);kz.prototype.disposeInternal=function(){for(var X=_.J(this.JSC$19815_resizers),t=X.next();!t.done;t=X.next())t.value.dispose();X=_.J(this.JSC$19815_resizeContainer.children);for(t=X.next();!t.done;t=X.next())t.value.setAttribute("disabled","");this.JSC$19815_resizers.length=0};
kz.prototype.setSize=function(X){this.currentMiniplayerSize=X};
kz.prototype.setAspectRatio=function(X){this.aspectRatio=X};
kz.prototype.update=function(X,t){for(var G=_.J(this.JSC$19815_resizeContainer.children),y=G.next();!y.done;y=G.next()){y=y.value;var w=y.getAttribute("alignment");_.qS(y,"disabled",w===X||w===t)}};
var ZZi=function(X,t){var G=t.getAttribute("alignment"),y=new br(t,{onStartDrag:function(w){if(t.hasAttribute("disabled"))w.preventDefault();else{X.dragStartSize=X.currentMiniplayerSize;var z,B;(B=(z=X.callbacks).onStartResize)==null||B.call(z)}},
onDrag:function(w){if(X.dragStartSize){G!=="north"&&G!=="west"||w.scale(-1);var z=G==="north"||G==="south";w=z?w.y:w.x;z&&X.aspectRatio>=1?w*=X.aspectRatio:!z&&X.aspectRatio<1&&(w/=X.aspectRatio);X.callbacks.onResize(X.dragStartSize+w)}}});
X.JSC$19815_resizers.push(y)};var qKR;var CDi=_.Fp(function(X){var t=_.nl("yt-draggable"),G=X.onDrag,y=X.onDragStart,w=X.onDragEnd,z=_.jx(X,{allowClicks:!1,dragThreshold:5}),B=z.dragThreshold,V=z.allowClicks;X=z.children;z=z.className;var b=void 0,e=void 0,g=new _.LD(0,0),F=!1;_.LY(function(){b=new _.t8(t.value);e=new _.jb(D);T(b,e);if(V()){_.VDe(b,B());var u;(u=t.value)==null||u.addEventListener("click",h,{capture:!0})}_.Um(function(){var W;(W=b)==null||W.dispose();if(V()){var c;(c=t.value)==null||c.removeEventListener("click",h,{capture:!0})}})});
var T=function(u,W){_.vj(u,"earlycancel",function(){V()&&(F=!1)});
_.vj(u,"start",function(c){y==null||y(c);c.defaultPrevented||V()&&(F=!0)});
_.vj(u,"beforedrag",function(c){b&&e&&(c.preventDefault(),g=new _.LD(c.clientX-b.startX,c.clientY-b.startY),e.start())});
_.vj(u,"end",function(){W.stop();w==null||w();g=new _.LD(0,0)})},D=function(){g&&G(g)},h=function(u){F&&(F=!1,u.stopPropagation(),u.preventDefault())};
return _.k("yt-draggable",{el:t,class:_.cl("ytDraggableComponentHost",z)},X)},"Bg");var KlQ=_.Fp(function(X){var t=_.J(_.sm(0,void 0,"CvAwBd")),G=t.next().value,y=t.next().value;t=function(w){var z={},B={};return _.k(CDi,{className:_.cl("ytdMiniplayerComponentResizer",(z.ytdMiniplayerComponentResizerDisabled=function(){return w===X.horizontalAlignment()||w===X.verticalAlignment()},z.ytdMiniplayerComponentResizerNorth=w==="north",z.ytdMiniplayerComponentResizerEast=w==="east",z.ytdMiniplayerComponentResizerSouth=w==="south",z.ytdMiniplayerComponentResizerWest=w==="west",z)),
onDragStart:function(){y(X.currentMiniplayerSize());if(X.onResizeStart)X.onResizeStart()},
onDrag:function(V){w!=="north"&&w!=="west"||V.scale(-1);var b;V=(b=w==="north"||w==="south")?V.y:V.x;var e=X.currentAspectRatio();b&&e>=1?V*=e:!b&&e<1&&(V/=e);b=V;X.onResize(G()+b)}},_.k("div",{class:_.cl("ytdMiniplayerComponentResizerCorner",(B.ytdMiniplayerComponentResizerNorthCorner=w==="north",B.ytdMiniplayerComponentResizerEastCorner=w==="east",B.ytdMiniplayerComponentResizerSouthCorner=w==="south",B.ytdMiniplayerComponentResizerWestCorner=w==="west",B))}))};
return _.k("div",{class:"ytdMiniplayerComponentResizers"},t("north"),t("east"),t("south"),t("west"))},"Cg");var OZB=16/9,u9q=_.Fp(function(){var X=_.nl("ytd-miniplayer"),t=_.J(_.sm(new _.IH(NaN,NaN),void 0,"GNXZTe")),G=t.next().value,y=t.next().value;t=_.J(_.sm(!1,void 0,"XqI9xc"));var w=t.next().value,z=t.next().value;t=_.J(_.sm(!1,void 0,"k3iLGe"));var B=t.next().value,V=t.next().value;t=_.J(_.sm(!1,void 0,"ApjQ9b"));var b=t.next().value,e=t.next().value;t=_.J(_.sm(!1,void 0,"PzlhGe"));var g=t.next().value,F=t.next().value;t=_.J(_.sm(!1,void 0,"pm6fl"));var T=t.next().value,D=t.next().value;t=_.J(_.sm(!1,
void 0,"xQrL1e"));var h=t.next().value,u=t.next().value;t=_.J(_.sm(OZB,void 0,"NcrWZb"));var W=t.next().value,c=t.next().value,P=_.J(_.sm(!1,void 0,"e5rxBc"));t=P.next().value;var l=P.next().value;P=_.J(_.sm(!1,void 0,"uZtCde"));var R=P.next().value,L=P.next().value;P=_.J(_.sm(void 0,void 0,"wKFvEe"));var x=P.next().value,w6=P.next().value;P=_.J(_.sm(_.Md("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var BY=P.next().value,kJ=P.next().value;P=_.J(_.sm("south",void 0,"QXcssb"));var Ss=P.next().value,
C_=P.next().value;P=_.J(_.sm(400,void 0,"Fr8gSb"));var Fv=P.next().value,Uh=P.next().value,cY=_.gw().resolve(_.G2).miniplayerPropSignalMap[0],f_=cY.data,sq=cY.externalPlaylistData;P=cY.toastData;var oq=cY.playabilityStatus,ll=cY.isReadyToResume,go=cY.isDisabled,kh=cY.watchWhile,Aq=cY.playerVe,OR=cY.expandVe,Mz=cY.closeVe,HY=cY.readyToResumeVe,yR=cY.readyToResumeCloseVe,hq=cY.repositionVe,gi=cY.resizeVe;cY=_.J(_.Ed(ll));var TB=cY.next().value,Uq=cY.next().value,Gc=!1,XH=!1,n4;_.LY(function(){y(_.Py());
X.value.addEventListener("animationend",function(vS){vS.target===X.value&&(D(!1),u(!1))});
g3q(X.value)});
_.Bq("yt-window-resized",function(vS){vS&&y(vS)});
var lJ=function(){n4&&c(n4.getVideoAspectRatio())},kV=function(){if(n4){var vS=n4.getPlayerState()===1;
TB()&&vS&&Uq(!1)}},ZP=function(){var vS=OR();
if(vS){var c4=_.lw(3);c4&&_.BK(c4,vS)}},K4=function(){var vS=Mz(),c4=yR();
vS&&_.BK(_.lw(3),vS);ll()&&c4&&_.BK(_.lw(3),c4)};
_.Bq("yt-activate-miniplayer",function(vS){var c4;return _.n(function(GY){if(GY.nextAddress==1)return w()?GY.return():GY.yield((c4=_.gw().resolve(_.G2).getPlayerElement())==null?void 0:c4.getPlayerPromise(),2);n4=GY.yieldResult;if(!n4)return GY.return();!R()&&_.A("kevlar_watch_while_v2")&&(C_(vS&&!_.A("kevlar_watch_while_bottom_align")?"north":"south"),kJ(_.Md("HTML_DIR")==="rtl"?"west":"east"));var yW=n4;yW.addEventListener("onVideoDataChange",lJ);yW.addEventListener("onStateChange",kV);yW.addEventListener("onExpandMiniplayer",
ZP);yW.addEventListener("onCloseMiniplayer",K4);c(n4.getVideoAspectRatio());z(!0);e22()||D(!0);_.W$(GY)})});
_.Bq("yt-deactivate-miniplayer",function(vS){return _.n(function(c4){if(!w())return c4.return();z(!1);Uq(!1);u(vS);F(!1);V(!1);if(n4){var GY=n4;GY.removeEventListener("onVideoDataChange",lJ);GY.removeEventListener("onStateChange",kV);GY.removeEventListener("onExpandMiniplayer",ZP);GY.removeEventListener("onCloseMiniplayer",K4)}e22()||D(!0);_.W$(c4)})});
var Tr=function(){return!(kh()&&_.A("kevlar_watch_while_modern"))},nL=function(){var vS;
return!((vS=sq())==null||!vS.contents)},nT=function(){var vS=Fv();
var c4=G();c4=Math.min(Math.min(c4.width,c4.height)-32,720);var GY=W(),yW=Tr(),nY=nL()&&B(),zl=Math.min(vS,c4);vS=new _.IH(192,yW?116:192);GY=lWT(new _.IH(nY?OZB:GY,1),new _.IH(zl,yW?zl-76:zl));vS.width<=GY.width&&vS.height<=GY.height||(aWi(GY,vS),GY.width=Math.min(GY.width,c4),GY.height=Math.min(GY.height,c4));return new _.IH(GY.width,_.MM(192,GY.height+skR(yW,nY),720))},ZA=function(){var vS=nT(),c4=Tr(),GY=nL()&&B();
return new _.IH(vS.width,vS.height-skR(c4,GY))},MY=function(){var vS=function(c4){c4.target===X.value&&g()&&(F(!1),X.value.removeEventListener("transitionend",vS))};
e22()||(X.value.addEventListener("transitionend",vS),F(!0));V(!B())};
_.Em(function(){var vS=Aq(),c4=_.lw(3),GY=_.a4(3);if(c4&&GY&&vS){_.w9(c4,GY,vS);GY=hq();var yW=gi(),nY=OR(),zl=Mz(),Wx=yR();nY&&zl&&Wx&&(_.zG(c4,vS,[nY,zl,Wx]),_.o$(c4,[nY,zl]));GY&&yW&&_.zG(c4,vS,[GY,yW])}},"Snz6Ld");
_.Em(function(){var vS=HY();if(vS){var c4=_.lw(0),GY=_.a4(0);c4&&GY&&(_.w9(c4,GY,vS),_.o$(c4,[vS]))}},"X1FpHd");
cY={};return _.k("ytd-miniplayer",{el:X,class:_.cl("ytdMiniplayerComponentHost",(cY.ytdMiniplayerComponentVisible=function(){return w()||T()},cY.ytdMiniplayerComponentAnimatingSnap=b,cY.ytdMiniplayerComponentAnimatingPlaylistExpand=g,cY.ytdMiniplayerComponentAnimatingFade=T,cY),function(){if(T()){var vS=Ss();
var c4=w(),GY=h();vS=c4?vS==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":GY?vS==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":vS==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else vS="";return vS}),
style:_.Ud({top:function(){return Ss()==="north"?"16px":""},
right:function(){return BY()==="east"?"16px":""},
bottom:function(){return Ss()==="south"?"16px":""},
left:function(){return BY()==="west"?"16px":""},
width:function(){return nT().width+"px"},
height:function(){return nT().height+"px"},
transform:function(){var vS=x();return vS?"translate("+vS.x+"px, "+vS.y+"px)":""}})},_.k("div",{class:"ytdMiniplayerComponentContent"},_.k(CDi,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(vS){var c4=Y0q(BY(),Ss(),G(),nT(),x()),GY=ZA();Math.abs(vS.clientY-(c4.y+GY.height))>15?(l(!0),vS=_.lw(3),c4=hq(),Gc||(Gc=!0,vS&&c4&&_.o$(vS,[c4])),vS&&c4&&_.BK(vS,c4)):vS.preventDefault()},
onDrag:function(vS){w6(vS)},
onDragEnd:function(){var vS=F_q(Y0q(BY(),Ss(),G(),nT(),x()),G(),nT()),c4=Aba(BY(),Ss(),G(),nT()),GY=Aba(vS.horizontalAlignment,vS.verticalAlignment,G(),nT());GY=new _.LD(GY.x-c4.x,GY.y-c4.y);var yW;c4=c4.y+(((yW=x())==null?void 0:yW.y)||0)+nT().height/2;var nY=function(){BY()===vS.horizontalAlignment&&Ss()===vS.verticalAlignment||L(!0);kJ(vS.horizontalAlignment);C_(vS.verticalAlignment);w6(void 0)},zl=function(Wx){Wx.target===X.value&&b()&&(e(!1),nY(),X.value.removeEventListener("transitionend",zl))};
l(!1);Ss()==="south"&&c4>G().height?(nY(),_.gw().resolve(_.G2).close()):(X.value.addEventListener("transitionend",zl),e(!0),w6(GY))}},_.k(_.d,{cond:w,
then:function(){return _.k(_.DBR,{isDisabled:go,playabilityStatus:oq,size:ZA})}}),_.k(_.d,{cond:Tr,
then:function(){return _.k(_.Y6V,{isReadyToResume:TB,data:f_,expanded:B,onExpandClick:MY,playlistData:sq})}}),_.k(_.d,{cond:t,
then:function(){return _.k("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.k(_.d,{cond:function(){return nL()&&B()||g()},
then:function(){return _.k(_.OSq,{className:"ytdMiniplayerComponentPlaylistPanel",data:sq,hideHeaderText:!0,withinMiniplayer:!0})}}),_.k("div",{class:"ytdMiniplayerComponentToast"},_.k(_.S6q,{toastData:P}))),_.k(KlQ,{onResize:function(vS){Uh(_.MM(192,vS,720))},
onResizeStart:function(){var vS=_.lw(3),c4=gi();XH||(XH=!0,vS&&c4&&_.o$(vS,[c4]));vS&&c4&&_.BK(vS,c4)},
currentAspectRatio:W,currentMiniplayerSize:Fv,horizontalAlignment:BY,verticalAlignment:Ss}))},"Dg");_.A("ytd_miniplayer_to_wiz")&&_.DW(u9q,"ytd-miniplayer",{});_.DW(_.S6q,"ytd-miniplayer-toast",{props:{toastData:_.bR}});var QlR=16/9,InN=new _.IH(400,400/QlR),dJ=function(){var X=_.O.apply(this,arguments)||this;X.active=!1;X.hasNoData=!1;X.enabled=!1;X.expanded=!1;X.readyToResume=!1;X.isDisabled=!1;X.externalPlaylistData={};X.premiumBadges=[];X.watchWhile=!1;X.playerState=null;X.verticalAttachment="south";X.horizontalAttachment=_.Md("HTML_DIR")==="rtl"?"west":"east";X.isAnimatingFade=!1;X.isAnimatingSnap=!1;X.isAnimatingExpand=!1;X.isDragging=!1;X.playerHidden=!1;X.hasPlaylistData=!1;X.closed=!1;X.expandedClosed=!1;
X.isForReadyToResume=!1;X.watchResponse=null;X.player=null;X.playerVe=null;X.expandVe=null;X.closeVe=null;X.readyToResumeCloseVe=null;X.disabledInitialStateIsPlaying=!1;X.PLAYER_EVENTS=new Map;X.aspectRatio=QlR;X.currentMiniplayerSize=400;X.userSetSize=!1;X.userSetPosition=!1;X.userHasDragged=!1;X.maxMiniplayerSize=720;X.transform=new _.LD(0,0);X.windowDimensions=new _.IH(NaN,NaN);X.dimensions=InN;X.screenLayer=3;X.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return X};
_.S(dJ,_.O);_.H=dJ.prototype;_.H.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerWithViewTransitionManager()};
_.H.ready=function(){this.setUpDragging();this.setUpResizing()};
_.H.attached=function(){this.onWindowResized(_.Py());this.hostElement.addEventListener("animationend",_.Ik(this,this.resetFadingAnimation))};
_.H.detached=function(){this.hostElement.removeEventListener("animationend",_.Ik(this,this.resetFadingAnimation))};
_.H.resetFadingAnimation=function(X){X.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.H.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.H.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.H.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var X=_.lw(this.screenLayer);this.readyToResumeCloseVe&&X&&_.o$(X,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.H.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var X=_.lw(0),t=_.a4(0);X&&t&&(_.w9(X,t,this.readyToResumeVe),_.o$(X,[this.readyToResumeVe]))}};
_.H.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var X=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=X===-1||X===1||X===3)&&this.player.pauseVideo()}};
_.H.activate=function(X,t){t=t===void 0?!1:t;var G=this,y;return _.n(function(w){if(w.nextAddress==1)return G.setInitialActivatePositioning(t),G.enabled=!0,G.active=!0,G.expanded=!1,G.closed=!1,G.expandedClosed=!1,G.watchWhileHidden||(G.isAnimatingFade=!0),_.gw().resolve(_.Gm).setPlaylistComponent(G.JSC$19826_playlistPanel),X.appendTo(G.playerContainer),w.yield(X.getPlayerPromise(),2);y=w.yieldResult;y.setSizeStyle(!1,!0);G.ytPlayerListenerBehavior.listenToPlayerEvents(y,G.PLAYER_EVENTS);G.player=
y;G.watchWhile&&_.A("kevlar_watch_while_minimum_size")&&G.setMiniplayerSize(192);G.setAspectRatio(G.player.getVideoAspectRatio());G.onIsDisabledChanged();_.W$(w)})};
_.H.setInitialActivatePositioning=function(X){if(!this.userSetPosition&&_.A("kevlar_watch_while_v2")){this.verticalAttachment=X&&!_.A("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Md("HTML_DIR")==="rtl"?"west":"east";var t;(t=this.JSC$19826_resizers)==null||t.update(this.horizontalAttachment,this.verticalAttachment)}};
_.H.deactivate=function(X,t){var G=this;return _.n(function(y){if(!G.active)return y.return();X||(G.expanded?G.expandedClosed=!0:G.closed=!0);G.active=!1;G.isForReadyToResume=!1;t&&_.A("kevlar_watch_while_counterfactual")||(G.isAnimatingFade=!0);G.player&&G.ytPlayerListenerBehavior.unlistenFromPlayerEvents(G.player,G.PLAYER_EVENTS);G.player=null;_.W$(y)})};
_.H.onMetadataTap=function(X){this.expandVe&&(X===void 0||X)&&(X=_.lw(this.screenLayer))&&_.BK(X,this.expandVe);_.i3(_.gw().resolve(_.G2))};
_.H.onDisabledTap=function(X){X.target===_.Sm(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.H.onPlaylistExpandTap=function(X){if(this.hasPlaylistData){X=_.be(X)||[];X=_.J(X);for(var t=X.next();!t.done;t=X.next()){t=t.value;if(t===this.hostElement)break;if(t.classList&&t.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.H.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Ik(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.H.animatedResizePlaylist=function(X){X.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Ik(this,this.animatedResizePlaylist)))};
_.H.getExpandIcon=function(X){return X?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.H.onPlayerVideoDataChange=function(){var X,t=(X=this.player)==null?void 0:X.getVideoAspectRatio();t&&t!==this.aspectRatio&&this.setAspectRatio(t)};
_.H.setAspectRatio=function(X){if(this.active){this.aspectRatio=X;this.updateDimensionsAndResize();var t;(t=this.JSC$19826_resizers)==null||t.setAspectRatio(X)}};
_.H.updateDimensionsAndResize=function(){var X=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),t=this.expanded?QlR:this.aspectRatio,G=new _.IH(192,this.showInfoBar?116:192);X=lWT(new _.IH(t,1),new _.IH(X,this.showInfoBar?X-76:X));G.width<=X.width&&G.height<=X.height||(aWi(X,G),X.width=Math.min(X.width,this.maxMiniplayerSize),X.height=Math.min(X.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&t<=1?Math.max(X.width,X.height)+76:Math.max(X.width,X.height)));this.dimensions=
new _.IH(X.width,this.clamp(X.height+this.getNonPlayerHeight()));this.resize()};
_.H.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var X=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=X.height+"px";var t;(t=this.player)==null||t.setInternalSize(X.width,X.height)};
_.H.getPlayerSize=function(X){var t=Math.max(0,X.height-this.getNonPlayerHeight());return new _.IH(X.width,t)};
_.H.getNonPlayerHeight=function(){var X=0;this.showInfoBar&&(X+=76);this.expanded&&(X+=285);return X};
_.H.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.gw().resolve(_.G2).close()};
_.H.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.H.logClosingClick=function(){this.closeVe&&_.BK(_.lw(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.BK(_.lw(this.screenLayer),this.readyToResumeCloseVe)};
_.H.onPlayerExpandMiniplayer=function(){if(this.expandVe){var X=_.lw(this.screenLayer);X&&_.BK(X,this.expandVe)}};
_.H.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var X=this.playerState===1;this.continueWatching&&X&&(this.continueWatching=!1);this.premiumBadges.length&&X&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.H.getScreenLayer=function(){return this.screenLayer};
_.H.logMiniplayer=function(){var X=_.lw(this.screenLayer),t=_.a4(this.screenLayer);X&&t&&this.playerVe&&(_.w9(X,t,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.zG(X,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.o$(X,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.zG(X,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.H.computePlaylistData=function(X,t){return t};
_.H.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.H.computeExpandButtonHidden=function(X,t,G){return!X||!t||G};
_.H.computePlaylistIndexHidden=function(X,t){return!X||t};
_.H.computePlaylistPanelHidden=function(X,t){return!t&&!X};
_.H.computeExpandButtonLabel=function(X){return X?_.Qf("MINIPLAYER_COLLAPSE_LABEL"):_.Qf("MINIPLAYER_EXPAND_LABEL")};
_.H.computeDisabledStateCloseButtonLabel=function(){return _.Qf("MINIPLAYER_CLOSE",void 0,"Close")};
_.H.onWindowResized=function(X){X&&(X=this.windowDimensions=X,this.maxMiniplayerSize=Math.min(Math.min(X.width,X.height)-32,720),this.updateDimensionsAndResize())};
_.H.setUpResizing=function(){var X=this;this.JSC$19826_resizers||(this.JSC$19826_resizers=new kz(this.JSC$19826_resizeContainer,{onStartResize:function(){X.handleResizeStart()},
onResize:function(t){X.handleResize(t)}}),this.JSC$19826_resizers.setSize(this.currentMiniplayerSize),this.JSC$19826_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.H.handleResizeStart=function(){var X=_.lw(this.screenLayer);this.userSetSize||(this.userSetSize=!0,X&&this.resizeVe&&_.o$(X,[this.resizeVe]));X&&this.resizeVe&&_.BK(X,this.resizeVe)};
_.H.handleResize=function(X){this.setMiniplayerSize(X);this.updateDimensionsAndResize()};
_.H.setUpDragging=function(){var X=this;this.JSC$19826_dragger||(this.JSC$19826_dragger=new br(this.draggableContainer,{onStartDrag:function(t){!X.isSafeToDrag(t)||X.isAnimatingSnap?t.preventDefault():X.handleDragStart()},
onDrag:function(t){X.transform=t;X.setTransform(X.transform)},
onEndDrag:function(){X.handleDragEnd()}},!0))};
_.H.handleDragStart=function(){this.isDragging=!0;var X=_.lw(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,X&&this.repositionVe&&_.o$(X,[this.repositionVe]));X&&this.repositionVe&&_.BK(X,this.repositionVe)};
_.H.handleDragEnd=function(){this.isDragging=!1;var X=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&X>this.windowDimensions.height&&_.gw().resolve(_.G2).close();this.animateSnapToCorner()};
_.H.animateSnapToCorner=function(){var X=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),t=this.getNearestAttachments();t=this.getGlobalPositionFromAttachments(t.horizontalAttachment,t.verticalAttachment);X=new _.LD(t.x-X.x,t.y-X.y);this.isAnimatingSnap=!0;this.setTransform(X);this.hostElement.addEventListener("transitionend",_.Ik(this,this.endSnapAnimation))};
_.H.endSnapAnimation=function(X){X.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Ik(this,this.endSnapAnimation)),this.endDrag())};
_.H.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.H.setTransform=function(X){this.hostElement.style.transform=X?"translate("+X.x+"px, "+X.y+"px)":""};
_.H.getGlobalPositionFromAttachments=function(X,t){return new _.LD(X==="west"?16:this.windowDimensions.width-this.dimensions.width-16,t==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.H.updateAttachments=function(){var X=this.getNearestAttachments();if(this.horizontalAttachment!==X.horizontalAttachment||this.verticalAttachment!==X.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=X.horizontalAttachment;this.verticalAttachment=X.verticalAttachment;var t;(t=this.JSC$19826_resizers)==null||t.update(this.horizontalAttachment,this.verticalAttachment)};
_.H.getNearestAttachments=function(){var X=this.getCurrentGlobalPosition();return{horizontalAttachment:X.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:X.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.H.getCurrentGlobalPosition=function(){var X=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return TtQ(X,this.transform)};
_.H.isSafeToDrag=function(X){var t=this.playerContainer.getBoundingClientRect();return Math.abs(X.clientY-(t.y+t.height))>15};
_.H.setMiniplayerSize=function(X){this.currentMiniplayerSize=this.clamp(X);var t;(t=this.JSC$19826_resizers)==null||t.setSize(this.currentMiniplayerSize)};
_.H.clamp=function(X){return _.MM(192,X,720)};
_.H.registerWithViewTransitionManager=function(){var X=_.gw().resolve(_.jH(_.Rp));X&&jkH(X,this.hostElement)};
_.ke.Object.defineProperties(dJ.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.A("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.Qf("CONTINUE_WATCHING",void 0,"Continue watching")};var X;if((X=this.externalPlaylistData)==null?0:X.contents)return this.externalPlaylistData.titleText;var t;return(t=this.data)==null?void 0:t.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.externalPlaylistData)==null?0:X.contents){var t;return(t=_.PRV(this.externalPlaylistData))==null?void 0:t.title}var G;return(G=this.data)==null?void 0:G.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var X,t,G,y;return((X=this.externalPlaylistData)==null?void 0:X.currentIndex)!==void 0&&((t=this.externalPlaylistData)==null?0:t.totalVideos)&&!((G=this.data)==null?0:(y=G.playlistData)==null?0:y.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.UC_(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.A("kevlar_watch_while_counterfactual")}}});
dJ.prototype.onIsDisabledChanged=dJ.prototype.onIsDisabledChanged;dJ.prototype.readyToResumeVeChanged=dJ.prototype.readyToResumeVeChanged;dJ.prototype.premiumBrandingChanged=dJ.prototype.premiumBrandingChanged;dJ.prototype.onPlayerVeChange=dJ.prototype.onPlayerVeChange;dJ.prototype.hasPlaylistDataChanged=dJ.prototype.hasPlaylistDataChanged;_.E([_.q(_.n8.YtPlayerListenerBehavior),_.U("design:type",_.V_)],dJ.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],dJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],dJ.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],dJ.prototype,"ytdReduxBehavior",void 0);_.E([_.rt("#draggable"),_.U("design:type",HTMLDivElement)],dJ.prototype,"draggableContainer",void 0);
_.E([_.rt("#resize-container"),_.U("design:type",HTMLDivElement)],dJ.prototype,"JSC$19826_resizeContainer",void 0);_.E([_.rt("#video-container"),_.U("design:type",HTMLDivElement)],dJ.prototype,"videoContainer",void 0);_.E([_.rt("#player-container"),_.U("design:type",HTMLDivElement)],dJ.prototype,"playerContainer",void 0);_.E([_.rt("#playlist"),_.U("design:type",HTMLDivElement)],dJ.prototype,"JSC$19826_playlistPanel",void 0);_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"hasNoData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"enabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"expanded",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"readyToResume",void 0);
_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"isDisabled",void 0);_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"externalPlaylistData",void 0);_.E([_.K(),_.U("design:type",Array)],dJ.prototype,"premiumBadges",void 0);_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"toastData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"watchWhile",void 0);_.E([_.K(),_.U("design:type",Boolean)],dJ.prototype,"premiumBranding",void 0);
_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"playerState",void 0);_.E([_.K(),_.U("design:type",Boolean)],dJ.prototype,"continueWatching",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],dJ.prototype,"verticalAttachment",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],dJ.prototype,"horizontalAttachment",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"isAnimatingFade",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"isAnimatingSnap",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"isAnimatingExpand",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"isDragging",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"playerHidden",void 0);
_.E([_.K({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.U("design:type",Object)],dJ.prototype,"playlistData",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.U("design:type",Object)],dJ.prototype,"hasPlaylistData",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"closed",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dJ.prototype,"expandedClosed",void 0);
_.E([_.K({selector:_.s9V}),_.U("design:type",Boolean)],dJ.prototype,"isSingleOptionSurveyActive",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.MQ}),_.U("design:type",Boolean)],dJ.prototype,"isWatchPage",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("watchWhile"),_.U("design:type",Object),_.U("design:paramtypes",[])],dJ.prototype,"showInfoBar",null);_.E([_.C("premiumBadges","showInfoBar"),_.U("design:type",Object),_.U("design:paramtypes",[])],dJ.prototype,"showOverlayPremiumBadges",null);
_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"watchResponse",void 0);_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"miniplayerRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"playabilityStatus",void 0);_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"playerVe",void 0);_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"expandVe",void 0);_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"closeVe",void 0);
_.E([_.K(),_.U("design:type",Object)],dJ.prototype,"readyToResumeCloseVe",void 0);_.E([_.K(),_.U("design:type",_.vs)],dJ.prototype,"readyToResumeVe",void 0);_.E([_.K(),_.U("design:type",_.vs)],dJ.prototype,"resizeVe",void 0);_.E([_.K(),_.U("design:type",_.vs)],dJ.prototype,"repositionVe",void 0);_.E([_.cW("hasPlaylistData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dJ.prototype,"hasPlaylistDataChanged",null);
_.E([_.cW("playerVe"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dJ.prototype,"onPlayerVeChange",null);_.E([_.cW("premiumBranding"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dJ.prototype,"premiumBrandingChanged",null);_.E([_.cW("readyToResumeVe"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dJ.prototype,"readyToResumeVeChanged",null);
_.E([_.cW("isDisabled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dJ.prototype,"onIsDisabledChanged",null);_.E([_.C("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.U("design:type",Object),_.U("design:paramtypes",[])],dJ.prototype,"miniplayerSubtitle",null);_.E([_.C("data.miniplayerTitle","externalPlaylistData"),_.U("design:type",Object),_.U("design:paramtypes",[])],dJ.prototype,"miniplayerTitle",null);
_.E([_.C("externalPlaylistData","continueWatching"),_.U("design:type",Object),_.U("design:paramtypes",[])],dJ.prototype,"playlistIndexMessage",null);_.E([_.K({reflectToAttribute:!0}),_.C("playabilityStatus"),_.U("design:type",Object),_.U("design:paramtypes",[])],dJ.prototype,"showErrorScreen",null);_.E([_.K({reflectToAttribute:!0}),_.C("watchWhile"),_.U("design:type",Object),_.U("design:paramtypes",[])],dJ.prototype,"watchWhileHidden",null);
_.A("ytd_miniplayer_to_wiz")||_.N(dJ,"ytd-miniplayer",function(){if(qKR===void 0){var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);qKR=X}X=qKR;return X},{mode:2});var WlT;var en=function(){var X=_.O.apply(this,arguments)||this;X.useListItemStyles=_.A("web_list_item_style_for_menu_items");X.systemIcons=_.A("kevlar_system_icons");return X};
_.S(en,_.O);_.H=en.prototype;_.H.ready=function(){this.hostElement.addEventListener("tap",_.Ik(this,this.onEndpointTapExtra))};
_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.H.onFocus=function(){var X;(X=_.Sm(this.hostElement).querySelector("tp-yt-paper-item"))==null||X.focus()};
_.H.onEndpointTapExtra=function(X){_.Yt(this.hostElement,"iron-activate");var t=this.data.navigationEndpoint;t&&_.Y(t,_.chA)&&(X.stopPropagation(),_.Z0(this.hostElement,[t],this.hostElement))};
_.H.computeIcon=function(X){return X&&X.iconType?_.Q2(X.iconType):""};
_.H.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.H.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.H.forceUpdateStylesOnLegacyBrowsers=function(){_.A("kevlar_legacy_browsers")&&_.Kd(this.hostElement)};
en.prototype.forceUpdateStylesOnLegacyBrowsers=en.prototype.forceUpdateStylesOnLegacyBrowsers;en.prototype.onFocus=en.prototype.onFocus;_.E([_.q(_.dQ),_.U("design:type",Object)],en.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.Iht.YtConditionalRendererBehavior),_.U("design:type",Object)],en.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.q(_.pv.YtEndpointBehavior),_.U("design:type",Object)],en.prototype,"ytEndpointBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],en.prototype,"data",void 0);_.E([_.K({computed:"computeIcon(data.icon)",value:""}),_.U("design:type",String)],en.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],en.prototype,"useIcons",void 0);_.E([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.U("design:type",Boolean)],en.prototype,"hasSeparator",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],en.prototype,"useListItemStyles",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],en.prototype,"systemIcons",void 0);_.E([_.WW("focus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],en.prototype,"onFocus",null);_.E([_.cW("useIcons","hasSeparator"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],en.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.N(en,"ytd-menu-navigation-item-renderer",function(){if(WlT===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);WlT=X}X=WlT;return X},{mode:1});var cDR;var p7V=_.Vl(_.Qf("DOWNLOAD",{},"Download")),rD4=_.Vl(_.Qf("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),NK2=_.Vl(_.Qf("RETRY",{},"Retry")),PDR=_.Vl(_.Qf("PAUSE_DOWNLOADING",{},"Pause downloading")),EKN=_.Vl(_.Qf("RESUME_DOWNLOAD",{},"Resume download")),jn=function(){var X=_.O.apply(this,arguments)||this;X.primaryText=p7V;X.primaryIconType="OFFLINE_DOWNLOAD";X.hasSecondaryContent=!1;X.hasSeparator=!1;X.transferState="TRANSFER_STATE_UNKNOWN";X.isVideoDeletedByUser=!1;X.isHidden=!1;X.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return X};
_.S(jn,_.O);_.H=jn.prototype;_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.H.onFocus=function(){this.primaryEntry.focus()};
_.H.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.H.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.H.getRemoveAction=function(){return"ACTION_REMOVE"};
_.H.sendOfflineAction=function(X){var t=this.data.serviceEndpoint;if(t){var G=_.Y(t,_.ck);G&&X&&(G.action=X);this.ytComponentBehavior.resolveCommand(t)}};
_.H.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=p7V,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=p7V;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=NK2;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=rD4;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=EKN;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=rD4;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
PDR;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=rD4;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=rD4;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=p7V,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.H.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.H.isSecondaryEntryHidden=function(X,t){return X?!0:!t};
_.H.computeHasSeparator=function(){var X;return!((X=this.data)==null||!X.hasSeparator)};
jn.prototype.showHideButton=jn.prototype.showHideButton;jn.prototype.onTransferStateChange=jn.prototype.onTransferStateChange;jn.prototype.onFocus=jn.prototype.onFocus;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],jn.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],jn.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],jn.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],jn.prototype,"primaryText",void 0);_.E([_.K(),_.U("design:type",String)],jn.prototype,"primaryIconType",void 0);_.E([_.K(),_.U("design:type",String)],jn.prototype,"primaryAction",void 0);_.E([_.K(),_.U("design:type",Object)],jn.prototype,"secondaryText",void 0);_.E([_.K(),_.U("design:type",String)],jn.prototype,"secondaryIconType",void 0);
_.E([_.K(),_.U("design:type",String)],jn.prototype,"secondaryAction",void 0);_.E([_.K(),_.U("design:type",Object)],jn.prototype,"hasSecondaryContent",void 0);_.E([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.U("design:type",Object)],jn.prototype,"hasSeparator",void 0);_.E([_.K({selector:_.$1,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.U("design:type",String)],jn.prototype,"transferState",void 0);
_.E([_.K({selector:_.mPJ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.U("design:type",Object)],jn.prototype,"isVideoDeletedByUser",void 0);_.E([_.K(),_.U("design:type",Object)],jn.prototype,"isHidden",void 0);_.E([_.K({selector:_.cPV,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.U("design:type",Object)],jn.prototype,"offlineabilityState",void 0);_.E([_.rt("#primary-entry"),_.U("design:type",Object)],jn.prototype,"primaryEntry",void 0);
_.E([_.WW("focus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],jn.prototype,"onFocus",null);_.E([_.U0("transferState","isVideoDeletedByUser"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],jn.prototype,"onTransferStateChange",null);_.E([_.U0("offlineabilityState"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],jn.prototype,"showHideButton",null);
_.N(jn,"ytd-menu-service-item-download-renderer",function(){if(cDR===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);cDR=X}X=cDR;return X},{mode:1});var UhB;var gJ=function(){var X=_.O.apply(this,arguments)||this;X.useIcons=!1;X.systemIcons=_.A("kevlar_system_icons");X.useListItemStyles=_.A("web_list_item_style_for_menu_items");return X};
_.S(gJ,_.O);_.H=gJ.prototype;_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.H.onFocus=function(){var X;(X=_.Sm(this.hostElement).querySelector("tp-yt-paper-item"))==null||X.focus()};
_.H.onTap=function(){_.D0(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var X=this.data.serviceEndpoint,t=this.data.command;if(X){var G,y=(G=this.data)==null?void 0:G.trackingParams;G=!!_.Y(X,_.uXB);y&&G&&_.dV().dispatch(_.Dl({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:y}}));this.ytComponentBehavior.resolveCommand(X)||_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}})}t&&(this.ytComponentBehavior.resolveCommand(t)||_.Z0(this.hostElement,
[t],this.hostElement))};
_.H.computeIcon=function(X){return X&&X.iconType?_.Q2(X.iconType):""};
_.H.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.H.computeHasSeparator=function(){var X;return!((X=this.data)==null||!X.hasSeparator)};
_.H.forceUpdateStylesOnLegacyBrowsers=function(){_.A("kevlar_legacy_browsers")&&_.Kd(this.hostElement)};
_.H.computeIsSelected=function(){var X;return!((X=this.data)==null||!X.isSelected)};
gJ.prototype.forceUpdateStylesOnLegacyBrowsers=gJ.prototype.forceUpdateStylesOnLegacyBrowsers;gJ.prototype.onTap=gJ.prototype.onTap;gJ.prototype.onFocus=gJ.prototype.onFocus;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],gJ.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],gJ.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.Iht.YtConditionalRendererBehavior),_.U("design:type",Object)],gJ.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gJ.prototype,"data",void 0);_.E([_.K({computed:"computeIcon(data.icon)",value:""}),_.U("design:type",String)],gJ.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gJ.prototype,"useIcons",void 0);
_.E([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.U("design:type",Boolean)],gJ.prototype,"hasSeparator",void 0);_.E([_.K({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.U("design:type",Boolean)],gJ.prototype,"isSelected",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gJ.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],gJ.prototype,"useListItemStyles",void 0);
_.E([_.WW("focus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gJ.prototype,"onFocus",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],gJ.prototype,"onTap",null);_.E([_.cW("useIcons","hasSeparator"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],gJ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.N(gJ,"ytd-menu-service-item-renderer",function(){if(UhB===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);UhB=X}X=UhB;return X},{mode:2});var mhR;var FG=function(){return _.O.apply(this,arguments)||this};
_.S(FG,_.O);_.H=FG.prototype;_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.onDataChanged=function(){var X=this;_.V8(this,function(){X.postbox.openDialog();X.focus();_.Yt(X.hostElement,"yt-refit")})};
_.H.focus=function(){this.postbox.focus()};
_.H.closePopup=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.H.onYtCommentboxDismiss=function(){this.closePopup()};
FG.prototype.onYtCommentboxDismiss=FG.prototype.onYtCommentboxDismiss;FG.prototype.onDataChanged=FG.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],FG.prototype,"data",void 0);_.E([_.K({value:function(){return _.Qf("SBOX_INAPPROPRIATE_CANCEL")}}),
_.U("design:type",String)],FG.prototype,"closeButtonAriaLabel",void 0);_.E([_.rt("#postbox"),_.U("design:type",Object)],FG.prototype,"postbox",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],FG.prototype,"onDataChanged",null);_.E([_.WW("yt-commentbox-dismiss"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],FG.prototype,"onYtCommentboxDismiss",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],FG);
_.N(FG,"ytd-backstage-post-dialog-popup-renderer",function(){if(mhR!==void 0)return mhR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return mhR=X},{mode:1});var RDB;var TJ=function(){return _.O.apply(this,arguments)||this};
_.S(TJ,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],TJ.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],TJ);
_.N(TJ,"ytd-sender-id-section-renderer",function(){if(RDB!==void 0)return RDB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return RDB=X},{mode:1});var iZ2;var LlV;var vKr;var A$=function(){return _.O.apply(this,arguments)||this};
_.S(A$,_.O);A$.prototype.closePopup=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],A$.prototype,"data",void 0);_.E([_.$F({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],A$);
_.N(A$,"yt-community-post-section-renderer",function(){if(vKr===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;LlV===void 0&&(LlV=document.createElement("template"));var y=LlV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);vKr=X}X=vKr;return X},{mode:2});var anR;var lnT;var xhr;var fnB;var M9r;var X5H;var Yz=function(){return _.O.apply(this,arguments)||this};
_.S(Yz,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Yz.prototype,"data",void 0);_.E([_.$F({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Yz);
_.N(Yz,"yt-share-start-time-with-context-renderer",function(){if(X5H===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;M9r===void 0&&(M9r=document.createElement("template"));var y=M9r;G.call(t,y.content.cloneNode(!0),X.content.firstChild);X5H=X}X=X5H;return X},{mode:2});var s3=function(){return _.O.apply(this,arguments)||this};
_.S(s3,_.O);s3.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],s3.prototype,"data",void 0);_.E([_.$F({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],s3);
_.N(s3,"yt-share-panel-title-v15-renderer",function(){if(fnB===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;xhr===void 0&&(xhr=document.createElement("template"));var y=xhr;G.call(t,y.content.cloneNode(!0),X.content.firstChild);fnB=X}X=fnB;return X},{mode:2});var D$=function(){return _.O.apply(this,arguments)||this};
_.S(D$,_.O);D$.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],D$.prototype,"data",void 0);_.E([_.$F({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],D$);
_.N(D$,"yt-share-panel-header-renderer",function(){if(lnT===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;anR===void 0&&(anR=document.createElement("template"));var y=anR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);lnT=X}X=lnT;return X},{mode:2});var $LN;var t1q;var Sn=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-open-popup-action":"onOpen"};return X};
_.S(Sn,_.O);_.H=Sn.prototype;_.H.attached=function(){this.onOpen()};
_.H.updateTimeSecs=function(X){this.currentTimeSecs=X};
_.H.computeTimeString=function(X){X=X.toString();var t=Math.floor(Number(X)/3600),G=Math.floor(Number(X)%3600%60);return(t>0?t+":":"")+_.s1(Math.floor(Number(X)%3600/60),t>0?2:1)+":"+_.s1(G,2)};
_.H.computeTimeStringA11y=function(X){X=_.ic6({seconds:X});var t=X.hours===void 0?0:X.hours,G=X.minutes===void 0?0:X.minutes,y=X.seconds===void 0?0:X.seconds;X=[];if(t>0){var w=x_N().format({hours:t});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.wV)||t>9999)w=w.replace(t.toString(),_.LYJ(t)),_.wV==="km"&&(w=w.replace(".",","));X.push(w)}G>0&&X.push(x_N().format({minutes:G}));y>0&&X.push(x_N().format({seconds:y}));t="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");G=_.wV==
"am"?"{0}\u1363 ":_.wV=="fa"?"{0}\u060c\u200f ":_.wV=="my"?"{0} - ":_.wV=="ne"?"{0},":_.wV=="th"?"{0} ":_.wV=="ur"?"{0}\u060c ":_.wV=="ar"||_.wV=="ar-XB"?"{0} \u0648":_.wV=="ja"||_.wV=="zh-CN"||_.wV=="zh-HK"||_.wV=="zh-TW"?"{0}\u3001":"{0}, ";y=_.wV=="am"?"\u1363 ":_.wV=="fa"?"\u060c\u200f ":_.wV=="my"?" - ":_.wV=="th"?" ":_.wV=="ur"?"\u060c ":_.wV=="ar"||_.wV=="ar-XB"?" \u0648":_.wV=="ja"||_.wV=="zh-CN"||_.wV=="zh-HK"||_.wV=="zh-TW"?"\u3001":", ";w=_.wV=="am"?" \u12a5\u1293 {0}":_.wV=="as"?" \u0986\u09f0\u09c1 {0}":
_.wV=="az"?" v\u0259 {0}":_.wV=="bn"?" \u098f\u09ac\u0982 {0}":_.wV=="cs"?" a\u00a0{0}":_.wV=="de"?" und {0}":_.wV=="el"?" \u03ba\u03b1\u03b9 {0}":_.wV=="eu"?" eta {0}":_.wV=="fa"?"\u060c \u0648 {0}":_.wV=="fil"?", at {0}":_.wV=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.wV=="hi"?", \u0914\u0930 {0}":_.wV=="hu"?" \u00e9s {0}":_.wV=="hy"?" \u0587 {0}":_.wV=="id"?", dan {0}":_.wV=="iw"?" \u05d5-{0}":_.wV=="ja"?"\u3001{0}":_.wV=="ka"?" \u10d3\u10d0 {0}":_.wV=="km"?" \u1793\u17b7\u1784 {0}":_.wV=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.wV=="ko"?" \ubc0f {0}":_.wV=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.wV=="lt"?" ir {0}":_.wV=="lv"?" un {0}":_.wV=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.wV=="mr"?" \u0906\u0923\u093f {0}":_.wV=="ms"?" dan {0}":_.wV=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.wV=="ne"?" \u0930 {0}":_.wV=="or"?", \u0b13 {0}":_.wV=="pa"?" \u0a05\u0a24\u0a47 {0}":_.wV=="ro"?" \u0219i {0}":_.wV=="si"?", \u0dc3\u0dc4 {0}":_.wV=="sk"?" a {0}":_.wV=="sl"?" in {0}":_.wV=="sq"?" dhe {0}":_.wV=="sv"?" och {0}":
_.wV=="sw"?" na {0}":_.wV=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.wV=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.wV=="th"?" \u0e41\u0e25\u0e30{0}":_.wV=="tr"?" ve {0}":_.wV=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.wV=="uz"?" va {0}":_.wV=="vi"?" v\u00e0 {0}":_.wV=="zh-HK"?"\u53ca{0}":_.wV=="zu"?", ne-{0}":_.wV=="af"||_.wV=="nl"?" en {0}":_.wV=="ar"||_.wV=="ar-XB"?" \u0648{0}":_.wV=="be"||_.wV=="uk"?" \u0456 {0}":_.wV=="en-GB"||_.wV=="en-IN"?" and {0}":_.wV=="en"||_.wV=="en-XA"?
", and {0}":_.wV=="et"||_.wV=="fi"?" ja {0}":_.wV=="fr"||_.wV=="fr-CA"?" et {0}":_.wV=="zh-CN"||_.wV=="zh-TW"?"\u548c{0}":_.wV=="da"||_.wV=="is"||_.wV=="no"?" og {0}":_.wV=="es"||_.wV=="es-419"||_.wV=="es-US"?" y {0}":_.wV=="kk"||_.wV=="lo"||_.wV=="mn"?", {0}":_.wV=="bg"||_.wV=="mk"||_.wV=="ru"||_.wV=="sr"?" \u0438 {0}":_.wV=="gl"||_.wV=="it"||_.wV=="pt-BR"||_.wV=="pt-PT"?" e {0}":" i {0}";var z=_.wV=="am"?"{0} \u12a5\u1293 {1}":_.wV=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.wV=="az"?"{0} v\u0259 {1}":
_.wV=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.wV=="de"?"{0} und {1}":_.wV=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.wV=="eu"?"{0} eta {1}":_.wV=="fa"?"{0} \u0648 {1}":_.wV=="fil"?"{0} at {1}":_.wV=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.wV=="hi"?"{0} \u0914\u0930 {1}":_.wV=="hu"?"{0} \u00e9s {1}":_.wV=="hy"?"{0} \u0587 {1}":_.wV=="iw"?"{0} \u05d5-{1}":_.wV=="ja"?"{0}\u3001{1}":_.wV=="ka"?"{0} \u10d3\u10d0 {1}":_.wV=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.wV=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.wV=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.wV=="ko"?"{0} \ubc0f {1}":_.wV=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.wV=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.wV=="lt"?"{0} ir {1}":_.wV=="lv"?"{0} un {1}":_.wV=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.wV=="mn"?"{0}, {1}":_.wV=="mr"?"{0} \u0906\u0923\u093f {1}":_.wV=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.wV=="ne"?"{0} \u0930 {1}":_.wV=="or"?"{0} \u0b13 {1}":_.wV=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.wV=="ro"?"{0} \u0219i {1}":_.wV==
"si"?"{0} \u0dc3\u0dc4 {1}":_.wV=="sl"?"{0} in {1}":_.wV=="sq"?"{0} dhe {1}":_.wV=="sv"?"{0} och {1}":_.wV=="sw"?"{0} na {1}":_.wV=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.wV=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.wV=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.wV=="tr"?"{0} ve {1}":_.wV=="ur"?"{0} \u0627\u0648\u0631 {1}":_.wV=="uz"?"{0} va {1}":_.wV=="vi"?"{0} v\u00e0 {1}":_.wV=="zh-HK"?"{0}\u53ca{1}":_.wV=="zu"?"{0} ne-{1}":_.wV=="af"||_.wV=="nl"?"{0} en {1}":_.wV=="ar"||_.wV==
"ar-XB"?"{0} \u0648{1}":_.wV=="be"||_.wV=="uk"?"{0} \u0456 {1}":_.wV=="cs"||_.wV=="sk"?"{0} a\u00a0{1}":_.wV=="et"||_.wV=="fi"?"{0} ja {1}":_.wV=="fr"||_.wV=="fr-CA"?"{0} et {1}":_.wV=="id"||_.wV=="ms"?"{0} dan {1}":_.wV=="zh-CN"||_.wV=="zh-TW"?"{0}\u548c{1}":_.wV=="da"||_.wV=="is"||_.wV=="no"?"{0} og {1}":_.wV=="es"||_.wV=="es-419"||_.wV=="es-US"?"{0} y {1}":_.wV=="bg"||_.wV=="mk"||_.wV=="ru"||_.wV=="sr"?"{0} \u0438 {1}":_.wV=="en"||_.wV=="en-GB"||_.wV=="en-IN"||_.wV=="en-XA"?"{0} and {1}":_.wV==
"gl"||_.wV=="it"||_.wV=="pt-BR"||_.wV=="pt-PT"?"{0} e {1}":"{0} i {1}";_.wV==="sq"?(w=w.replace("dhe","e"),z=z.replace("dhe","e")):_.wV==="th"?(y=y.replace("{0}"," {0}"),z=z.replace("{0}","{0} "),z=z.replace("{1}"," {1}")):_.wV==="ne"?y=",":_.wV==="zh-CN"?y="":t.includes(_.wV)&&(y=" ");return X.length<2?X.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(_.wV)?X.length===2?
z.replace("{0}",X[0]).replace("{1}",X[1]):G.replace("{0}",X[0])+X.slice(1,-1).join(y)+w.replace("{0}",X[X.length-1]):X.join(y)};
_.H.getTimeParam=function(){return DSR(this.timeString)};
_.H.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var X={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},t;_.ug(_.Pj(),(t=this.data)==null?void 0:t.trackingParams,X,7)};
_.H.onChangeStartAtTimestamp=function(){for(var X=this.startAtTimestamp.value.split(":"),t=0,G=1,y=X.length-1;y>=0;y--)t+=Number(X[y])*G,G*=60;this.updateTimeSecs(t);this.setTimestamp()};
_.H.onOpen=function(){var X=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var t=_.sW();t?t.getPlayerPromise().then(function(G){G=G.getCurrentTime();X.updateTimeSecs(G)}):aOH()&&this.updateTimeSecs(aOH())};
_.H.setTimestamp=function(){var X=Math.floor(this.currentTimeSecs);_.sl(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!X,timestamp:X||""}])};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Sn.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Sn.prototype,"data",void 0);_.E([_.K({value:!1,notify:!0}),_.U("design:type",Boolean)],Sn.prototype,"isStartAtChecked",void 0);_.E([_.K(),_.U("design:type",Number)],Sn.prototype,"currentTimeSecs",void 0);
_.E([_.K({computed:"computeTimeString(currentTimeSecs)"}),_.U("design:type",String)],Sn.prototype,"timeString",void 0);_.E([_.K({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.U("design:type",String)],Sn.prototype,"timeStringA11y",void 0);_.E([_.rt("#start-at-timestamp"),_.U("design:type",Object)],Sn.prototype,"startAtTimestamp",void 0);_.E([_.$F({is:"yt-start-at-renderer",disableElementRegistration:!0})],Sn);
_.N(Sn,"yt-start-at-renderer",function(){if(t1q===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;$LN===void 0&&($LN=document.createElement("template"));var y=$LN;G.call(t,y.content.cloneNode(!0),X.content.firstChild);t1q=X}X=t1q;return X},{mode:2});var GHT;var yeQ;var w5a=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"]]),ziN=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"]]),H$H=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var oMH={};oMH.YtBindingExpressionsBehavior={identity:_.Nw,msg:function(X,t){t=t===void 0?{}:t;return _.Qf(X,t,X)},
msgPlural:function(X,t){return _.Ia(X,t)},
getMusicIconFromType:function(X){if(_.A("music_web_enable_icon_wil"))X=_.Q2(X);else if(ziN.has(X))X="yt-sys-icons:"+ziN.get(X);else{var t=w5a.get(X)||_.Q2(X).split(":")[1];t=_.Fvl(t);var G;X=((G=H$H.get(X))!=null?G:"yt-sys-icons:")+t}return X}};var JeH;var Bgi;var nMR;var V1q=document.head,b$N=V1q.appendChild,kHi;if(nMR===void 0){var dLQ=document.createElement("template");_.Z(dLQ,'\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>');nMR=dLQ}kHi=nMR;b$N.call(V1q,kHi.content);var h$=function(){var X=_.O.apply(this,arguments)||this;X.screenLayer=7;return X};
_.S(h$,_.O);h$.prototype.getScreenLayer=function(){return this.screenLayer};
h$.prototype.onTap=function(X){X&&X.detail&&(X.detail.x||X.detail.y)&&_.Sm(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.hE(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(X=this.getScreenLayer(),_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:X}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.ke.Object.defineProperties(h$.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()}}});
h$.prototype.onTap=h$.prototype.onTap;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],h$.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],h$.prototype,"data",void 0);_.E([_.C("data.title"),_.U("design:type",Object),_.U("design:paramtypes",[])],h$.prototype,"title",null);
_.E([_.C("data.serviceName"),_.U("design:type",String),_.U("design:paramtypes",[])],h$.prototype,"icon",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],h$.prototype,"onTap",null);_.E([_.$F({is:"yt-share-target-renderer",disableElementRegistration:!0})],h$);
_.N(h$,"yt-share-target-renderer",function(){if(Bgi===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;JeH===void 0&&(JeH=document.createElement("template"));var y=JeH;G.call(t,y.content.cloneNode(!0),X.content.firstChild);Bgi=X}X=Bgi;return X},{mode:2});var eiT;var jyr;var Z$=function(){var X=_.O.apply(this,arguments)||this;X.SHARE_TARGET_WIDTH=70;X.SHARE_TARGET_MARGIN_RIGHT=8;X.PAGE_SCROLL_SPEED=9;X.actionMap={"yt-share-panel-reset-action":"onReset_"};return X};
_.S(Z$,_.O);_.H=Z$.prototype;_.H.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.H.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Sm(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Sm(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.H.onReset_=function(){if(_.Sm(this.hostElement).querySelector("#list")){var X=_.Sm(this.hostElement).querySelector("#list");var t=_.Sm(this.hostElement).querySelector("#list");var G=t.offsetLeft,y=t.offsetParent;y||_.ev4(t)!="fixed"||(y=_.aH(t).documentElement);if(y){if(_.qe&&!_.K9(58)){var w=_.DRS(y);G+=w.left}else Number(_.UOA)>=8&&!(Number(_.UOA)>=9)&&(w=_.DRS(y),G-=w.left);t=_.YRq(y)?y.clientWidth-(G+t.offsetWidth):G}else t=G;GCV(X,t);this.updateScrollButtons_()}};
_.H.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.H.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.H.onScrollWheel_=function(X){X.stopPropagation();X.preventDefault();var t=twv(_.Sm(this.hostElement).querySelector("#list"));X=Math.abs(X.deltaX)>Math.abs(X.deltaY)?X.deltaX:X.deltaY;GCV(_.Sm(this.hostElement).querySelector("#list"),t+X);this.updateScrollButtons_()};
_.H.smoothScrollByOnePage_=function(X){var t=_.Sm(this.hostElement).querySelector("#list"),G=(Math.floor(t.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,y=twv(t),w=G*(X?1:-1),z=this.PAGE_SCROLL_SPEED,B=this.updateScrollButtons_.bind(this),V=0,b;(function g(){V+=z;b=V/G*2;GCV(t,y+w*(b<1?b*b:-b*b+4*b-2));V<G?window.requestAnimationFrame(g):B()})()};
_.H.updateScrollButtons_=function(){var X=twv(_.Sm(this.hostElement).querySelector("#list")),t=_.Sm(this.hostElement).querySelector("#list").scrollWidth-_.Sm(this.hostElement).querySelector("#list").clientWidth;_.Sm(this.hostElement).querySelector("#scroll-button-back").hidden=X<=0;_.Sm(this.hostElement).querySelector("#scroll-button-forward").hidden=X>=t};
Z$.prototype.onScrollWheel_=Z$.prototype.onScrollWheel_;Z$.prototype.onDataChanged_=Z$.prototype.onDataChanged_;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Z$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(oMH.YtBindingExpressionsBehavior),_.U("design:type",Object)],Z$.prototype,"ytBindingExpressionsBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Z$.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Z$.prototype,"onDataChanged_",null);_.E([_.WW("wheel"),_.U("design:type",Function),_.U("design:paramtypes",[WheelEvent]),_.U("design:returntype")],Z$.prototype,"onScrollWheel_",null);
_.E([_.$F({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Z$);
_.N(Z$,"yt-third-party-share-target-section-renderer",function(){if(jyr===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;eiT===void 0&&(eiT=document.createElement("template"));var y=eiT;G.call(t,y.content.cloneNode(!0),X.content.firstChild);jyr=X}X=jyr;return X},{mode:2});var qH=function(){return _.O.apply(this,arguments)||this};
_.S(qH,_.O);qH.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"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qH.prototype,"data",void 0);_.E([_.$F({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],qH);
_.N(qH,"yt-third-party-network-section-renderer",function(){if(yeQ===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;GHT===void 0&&(GHT=document.createElement("template"));var y=GHT;G.call(t,y.content.cloneNode(!0),X.content.firstChild);yeQ=X}X=yeQ;return X},{mode:2});_.DW(_.Fp(function(X){return _.k("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.k("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.k(_.M7,{data:function(){return X.data().firstPartyItems}},{listItemViewModel:_.Mk})))},"Eg"),"first-party-network-section-view-model",{props:{data:_.bR}});var gM2=_.Vc(["data:image/svg+xml;charset=UTF-8;base64,",""]),Cj=function(){var X=_.O.apply(this,arguments)||this;X.screenLayer=7;X.qrCodeEnabled=_.A("web_enable_sharing_qr_code");X.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return X};
_.S(Cj,_.O);_.H=Cj.prototype;_.H.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"}}}};
_.H.attached=function(){this.JSC$19878_scroller&&(this.JSC$19878_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19878_scroller.attached&&typeof this.JSC$19878_scroller.attached==="function"&&this.JSC$19878_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.H.onDataChanged=function(){var X=this,t;(t=this.data)!=null&&t.contents&&(this.hostElement.setAttribute("links-only","true"),_.qS(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.V8(this,function(){_.Yt(X.hostElement,"yt-refit");X.focusSharePanelHeader()}))};
_.H.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.H.handleSetTimestamp=function(X){var t=this.shortUrl();X.isSet&&(t=_.o8(t,"t",X.timestamp));this.maybeRenderQrCode(t)};
_.H.shortUrl=function(){var X,t=(X=this.data)==null?void 0:X.contents;if(t)for(X=0;X<t.length;X++){var G=void 0,y=void 0;if((G=t[X])==null?0:(y=G.thirdPartyNetworkSection)==null?0:y.copyLinkContainer){var w=y=G=void 0;return(w=_.Y((G=t[X])==null?void 0:(y=G.thirdPartyNetworkSection)==null?void 0:y.copyLinkContainer,y_i))==null?void 0:w.shortUrl}}};
_.H.maybeRenderQrCode=function(X){var t=this,G,y,w,z,B,V,b,e,g;return _.n(function(F){if(F.nextAddress==1){G=_.Sm(t.hostElement).querySelector("#qr-code");if(!t.qrCodeEnabled||!X)return G&&(G.style.display="none"),F.return();y=_.Ccv(_.gw().resolve(_.IL),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});w=document.createElement("div");return typeof y==="function"?(y(w),F.jumpTo(2)):F.yield(y,3)}F.nextAddress!=2&&(z=F.yieldResult,z(w));b=(B=w)==null?void 0:(V=B.firstChild)==null?void 0:V.firstChild;
e=document.createElement("img");g=_.NNh(gM2,btoa(b.outerHTML));e.onload=function(){var T={canvas:G,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:e},D=new YGV;qGq(D,X);CAr(D,!1,KCH(D));var h=D.modules,u=Object.assign({},aMq,T);h=structuredClone(h);T=h.length;var W,c=(W=u.canvas)!=null?W:document.createElement("canvas");W=u.cellSize;D=u.logo;var P,l=(P=u.logoSize)!=null?P:Math.floor(T/4);T%2!==l%2&&l++;var R=u.logoPadding,L=u.backgroundColor;P=T*W;var x=
u.width,w6=0;x&&(w6=u.padding,w6=Math.ceil(w6*P/(x-w6*2)),c.style.width=x+"px",c.style.height=x+"px");c.width!==P+w6*2&&(c.width=P+w6*2);c.height!==P+w6*2&&(c.height=P+w6*2);P=c.getContext("2d");u.autoClear&&P.clearRect(0,0,c.width,c.height);P.fillStyle=L;P.beginPath();P.roundRect(0,0,c.width,c.height,u.borderRadius);P.fill();P.save();P.translate(w6,w6);if(D)for(c=Math.floor(T-l)/2-R,R=Math.floor(T+l)/2+R,L=c;L<R;L++)for(x=c;x<R;x++)h[L][x]=!1;for(c=0;c<T;c++)for(R=0;R<T;R++)(c<7&&R<7||c<7&&R>=T-
7||c>=T-7&&R<7)&&(h[c][R]=!1);var BY;c=(BY=u.markerColor)!=null?BY:u.color;uVi(P,0,0,W,c);uVi(P,W*(T-7),0,W,c);uVi(P,0,W*(T-7),W,c);switch(u.cellStyle){case 0:BY=h;h=BY.length;c=u.cellSize;P.beginPath();for(R=0;R<h;R++)for(L=0;L<h;L++)BY[R][L]&&P.rect(R*c,L*c,c,c);P.fillStyle=u.color;P.fill();break;case 1:BY=h;h=BY.length;c=u.cellSize;R=c*u.relativeCircleSize;P.fillStyle=u.color;P.beginPath();for(u=0;u<h;u++)for(L=0;L<h;L++)BY[u][L]&&(P.beginPath(),P.ellipse((u+.5)*c,(L+.5)*c,R/2,R/2,0,0,2*Math.PI),
P.fill());P.fill();break;case 2:BY=h;h=BY.length;c=u.cellSize;P.fillStyle=u.color;u=[[1,1],[-1,1],[-1,-1],[1,-1]];P.beginPath();for(R=0;R<h;R++)for(L=0;L<h;L++)if(BY[R][L])P.roundRect(R*c,L*c,c,c,c/2),R+1<h&&BY[R+1][L]&&P.rect(R*c+c/2,L*c,c,c),L+1<h&&BY[R][L+1]&&P.rect(R*c,L*c+c/2,c,c);else{x=R*c+c/2;w6=L*c+c/2;for(var kJ=0;kJ<4;kJ++){var Ss=_.J(u[kJ]),C_=Ss.next().value;Ss=Ss.next().value;R+C_>=0&&R+C_<h&&L+Ss>=0&&L+Ss<h&&BY[R+C_][L]&&BY[R][L+Ss]&&BY[R+C_][L+Ss]&&(C_=kJ*Math.PI/2,Ss=c/2,P.moveTo(x+
Ss*Math.cos(C_),w6+Ss*Math.sin(C_)),P.arc(x,w6,c/2,C_,C_+Math.PI/2,!1),P.lineTo(x+Ss*(Math.cos(C_)-Math.sin(C_)),w6+Ss*(Math.cos(C_)+Math.sin(C_))),P.lineTo(x+Ss*Math.cos(C_),w6+Ss*Math.sin(C_)))}}P.fill()}D&&P.drawImage(D,(T-l)*W/2,(T-l)*W/2,l*W,l*W);P.restore();G.style.removeProperty("display")};
e.src=_.Rj(g);_.W$(F)})};
_.H.hasCommunityPostRenderer=function(){var X,t,G,y;return!!((X=this.data)==null?0:(t=X.header)==null?0:(G=t.sharePanelHeaderRenderer)==null?0:(y=G.communityPost)==null?0:y.communityPostSectionRenderer)};
_.H.onTapClose=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.H.getScreenLayer=function(){return this.screenLayer};
_.H.logSharePanelPage=function(){if(!_.A("enable_share_panel_navigation_logging_fix_on_web")){var X;if((X=this.data)!=null&&X.trackingParams){X=this.data.trackingParams;var t=this.parentClickTrackingParams;t=t?_.i$(t):void 0;var G=_.Pj();_.qP(G,21760,t,{layer:7,parentLayer:0});G.graftServerVe(X,void 0,7);_.dV().dispatch(_.Dl({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Cj.prototype.onDataChanged=Cj.prototype.onDataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Cj.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Cj.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],Cj.prototype,"data",void 0);_.E([_.K({value:_.Qf("SBOX_INAPPROPRIATE_CANCEL")}),_.U("design:type",String)],Cj.prototype,"closeButtonAriaLabel",void 0);_.E([_.rt("yt-share-panel-header-renderer"),_.U("design:type",HTMLElement)],Cj.prototype,"header",void 0);_.E([_.K({selector:function(X){return X.share.parentClickTrackingParams}}),
_.U("design:type",String)],Cj.prototype,"parentClickTrackingParams",void 0);_.E([_.K(),_.U("design:type",Object)],Cj.prototype,"qrCodeEnabled",void 0);_.E([_.rt("#scroller"),_.U("design:type",Object)],Cj.prototype,"JSC$19878_scroller",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Cj.prototype,"onDataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Cj);
_.N(Cj,"ytd-unified-share-panel-renderer",function(){if(iZ2!==void 0)return iZ2;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return iZ2=X},{mode:1});var FiB;var Kj=function(){var X=_.O.apply(this,arguments)||this;X.modernModal=!0;return X};
_.S(Kj,_.O);Kj.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Kj.prototype.computeShouldHideOldButtons=function(){var X;return!((X=this.data)==null?0:X.button)};
_.ke.Object.defineProperties(Kj.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var X,t;return(X=this.data)==null?void 0:(t=X.button)==null?void 0:t.buttonRenderer}}});
_.E([_.K(),_.U("design:type",Object)],Kj.prototype,"data",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Kj.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Kj.prototype,"modernModal",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Kj.prototype,"buttonRendererData",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Kj);
_.N(Kj,"ytd-modal-with-title-and-button-renderer",function(){if(FiB!==void 0)return FiB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return FiB=X},{mode:1});var TgQ;var O3=function(){return _.O.apply(this,arguments)||this};
_.S(O3,_.O);O3.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("page-changed",this.page))};
O3.prototype.pageChangedForBinding=O3.prototype.pageChangedForBinding;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],O3.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],O3.prototype,"page",void 0);_.E([_.cW("page"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],O3.prototype,"pageChangedForBinding",null);
_.E([_.p({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],O3);
_.N(O3,"ytd-account-item-section-header-renderer",function(){if(TgQ!==void 0)return TgQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return TgQ=X},{mode:1});var AeT;var ur=function(){return _.O.apply(this,arguments)||this};
_.S(ur,_.O);ur.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"}}}};
ur.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],ur.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ur.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!1}),_.U("design:type",Function)],ur.prototype,"onAccountItemTap",void 0);
_.E([_.p({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],ur);
_.N(ur,"ytd-account-item-section-renderer",function(){if(AeT!==void 0)return AeT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return AeT=X},{mode:1});var YYi;var syi;var QH=function(){return _.O.apply(this,arguments)||this};
_.S(QH,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],QH.prototype,"data",void 0);_.E([_.p({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],QH);
_.N(QH,"ytd-accounts-dialog-header-renderer",function(){if(syi!==void 0)return syi;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return syi=X},{mode:1});var DLr;var IX=function(){return _.O.apply(this,arguments)||this};
_.S(IX,_.O);IX.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],IX.prototype,"data",void 0);_.E([_.p({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],IX);
_.N(IX,"ytd-google-account-header-renderer",function(){if(DLr!==void 0)return DLr;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return DLr=X},{mode:1});var WG=function(){return _.O.apply(this,arguments)||this};
_.S(WG,_.O);WG.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"}}}};
WG.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("page-changed",this.page))};
WG.prototype.pageChangedForBinding=WG.prototype.pageChangedForBinding;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],WG.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],WG.prototype,"page",void 0);
_.E([_.cW("page"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],WG.prototype,"pageChangedForBinding",null);_.E([_.p({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],WG);
_.qi()(WG,"ytd-account-section-list-renderer",function(){if(YYi===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);YYi=X}X=YYi;return X},{allowedProps:["data"],
mode:1});var SYR;var cG=function(){var X=_.O.apply(this,arguments)||this;X.enableHandlesAccountMenuSwitcher=_.A("enable_handles_account_menu_switcher");return X};
_.S(cG,_.O);cG.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
cG.prototype.dataChanged=cG.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],cG.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],cG.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.E([_.rt("#avatar"),_.U("design:type",Object)],cG.prototype,"avatar",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],cG.prototype,"dataChanged",null);_.E([_.p({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],cG);
_.qi()(cG,"ytd-active-account-header-renderer",function(){if(SYR===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);SYR=X}X=SYR;return X},{allowedProps:["data"],
mode:1});var hii;var Z$Q;var pj=function(){return _.O.apply(this,arguments)||this};
_.S(pj,_.O);pj.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
pj.prototype.onBackTap=function(){_.Yt(this.hostElement,"yt-menu-back-tapped")};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],pj.prototype,"data",void 0);_.E([_.p({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],pj);
_.qi()(pj,"ytd-simple-menu-header-renderer",function(){if(Z$Q===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);Z$Q=X}X=Z$Q;return X},{allowedProps:["data"],
mode:2});var qYa;var rJ=function(){return _.O.apply(this,arguments)||this};
_.S(rJ,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rJ.prototype,"data",void 0);_.E([_.p({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],rJ);
_.N(rJ,"ytd-comment-video-thumbnail-header-renderer",function(){if(qYa!==void 0)return qYa;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qYa=X},{mode:1});var CZH;var NH=function(){return _.O.apply(this,arguments)||this};
_.S(NH,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],NH.prototype,"data",void 0);_.E([_.p({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],NH);
_.N(NH,"ytd-abuse-type-selector-renderer",function(){if(CZH!==void 0)return CZH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return CZH=X},{mode:1});var KiB;var PG=function(){return _.O.apply(this,arguments)||this};
_.S(PG,_.O);PG.prototype.attached=function(){var X=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){X.additionalContextInput.focusTextInput()})};
PG.prototype.handleAdditionalContextChanged=function(){var X=this;_.Jm(this,"ytd-report-channel-additional-context-update",function(){X.ytdReduxBehavior.dispatch(_.Dl({type:"ADDITIONAL_CONTEXT_UPDATED",payload:X.additionalContext}))},300)};
PG.prototype.updateAdditionalContextFromBinding=function(X){this.additionalContext=X.detail.value};
PG.prototype.handleAdditionalContextChanged=PG.prototype.handleAdditionalContextChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],PG.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",String)],PG.prototype,"additionalContext",void 0);_.E([_.K({selector:function(X){return X.reportChannelAbuse.additionalContext}}),
_.U("design:type",String)],PG.prototype,"additionalContextRedux",void 0);_.E([_.K(),_.U("design:type",Object)],PG.prototype,"data",void 0);_.E([_.rt("yt-text-input-form-field-renderer"),_.U("design:type",Object)],PG.prototype,"additionalContextInput",void 0);_.E([_.cW("additionalContext"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],PG.prototype,"handleAdditionalContextChanged",null);
_.E([_.p({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],PG);
_.N(PG,"ytd-report-channel-modal-additional-context-renderer",function(){if(KiB!==void 0)return KiB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return KiB=X},{mode:1});var O$R;var E3=function(){var X=_.O.apply(this,arguments)||this;X.nextButtonDisabled=null;X.submitEndpoint=null;X.navigationEndpoint=null;X.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return X};
_.S(E3,_.O);_.H=E3.prototype;_.H.computeNextButtonData=function(X,t,G){var y={};t&&(y.navigationEndpoint=t);G&&(y.serviceEndpoint=G);X&&X.buttonRenderer&&_.RH.extend(y,X.buttonRenderer);return y};
_.H.handleReportChannelModalDisableNextButtonAction=function(X){this.setNextButtonIsDisabled(X)};
_.H.handleReportFormEndpointUpdateAction=function(X){this.setNextButtonIsDisabled(!!X.disableSubmitButton);this.resetEndpointData();X.submitEndpoint?this.submitEndpoint=X.submitEndpoint:X.submitNavigationEndpoint&&(this.navigationEndpoint=X.submitNavigationEndpoint)};
_.H.handleSignalActionSubmitForm=function(){var X,t=Object.keys(((X=this.reportChannelAbuseForm)==null?void 0:X.selectedVideoIds)||{}),G;X=((G=this.reportChannelAbuseForm)==null?void 0:G.additionalContext)||"";var y;G=((y=this.reportChannelAbuseForm)==null?void 0:y.impersonatedChannelUrl)||"";var w;if((w=this.data)==null?0:w.submitEndpoint){t={impersonated_channel_url:G,text:X,video_ids:t};var z;_.gw().resolve(_.F3).resolveCommand((z=this.data)==null?void 0:z.submitEndpoint,{form:Object.assign({},
t,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.H.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.H.onYtServiceRequestError=function(X){this.setNextButtonIsDisabled(!1);_.F7(this.hostElement,X.detail.error.message)};
_.H.setNextButtonIsDisabled=function(X){this.set("data.nextButton.buttonRenderer.isDisabled",X)};
_.H.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
E3.prototype.onYtServiceRequestError=E3.prototype.onYtServiceRequestError;E3.prototype.onYtServiceRequestCompleted=E3.prototype.onYtServiceRequestCompleted;_.E([_.K(),_.U("design:type",Object)],E3.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],E3.prototype,"nextButtonDisabled",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],E3.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],E3.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],E3.prototype,"submitEndpoint",void 0);_.E([_.K(),_.U("design:type",Object)],E3.prototype,"navigationEndpoint",void 0);_.E([_.K({selector:function(X){return X.reportChannelAbuse}}),
_.U("design:type",Object)],E3.prototype,"reportChannelAbuseForm",void 0);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],E3.prototype,"onYtServiceRequestCompleted",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],E3.prototype,"onYtServiceRequestError",null);
_.E([_.p({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],E3);
_.N(E3,"ytd-report-channel-modal-footer-renderer",function(){if(O$R!==void 0)return O$R;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return O$R=X},{mode:1});var uFV;var U3=function(){var X=_.O.apply(this,arguments)||this;X.boundOnTapDismissButton=function(){X.closePopup()};
return X};
_.S(U3,_.O);U3.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
U3.prototype.handleDataChanged=function(){_.VG(this.hostElement)};
U3.prototype.closePopup=function(){_.sl(this.hostElement,"yt-close-popup-action")};
U3.prototype.handleDataChanged=U3.prototype.handleDataChanged;_.E([_.K(),_.U("design:type",Object)],U3.prototype,"boundOnTapDismissButton",void 0);_.E([_.K(),_.U("design:type",Object)],U3.prototype,"data",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],U3.prototype,"handleDataChanged",null);_.E([_.p({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],U3);
_.N(U3,"ytd-report-channel-modal-header-renderer",function(){if(uFV!==void 0)return uFV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return uFV=X},{mode:1});var Qyq;var mL=function(){var X=_.O.apply(this,arguments)||this;X.autoValidate=!1;X.invalid=!1;X.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return X};
_.S(mL,_.O);_.H=mL.prototype;_.H.attached=function(){var X=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){X.channelUrlInput.focusTextInput()})};
_.H.disableNextButton=function(X){_.sl(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[X])};
_.H.handleImpersonatedChannelUrlChanged=function(){var X=this;this.disableNextButton(!0);this.invalid=!1;_.Jm(this,"ytd-report-channel-impersonated-channel-update",function(){var t=X.impersonatedChannelUrl.trim();X.ytdReduxBehavior.dispatch(_.Dl({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:t}));var G;((G=X.data)==null?0:G.submitEndpoint)&&t&&_.gw().resolve(_.F3).resolveCommand(X.data.submitEndpoint,{form:{impersonated_channel_url:t,element:X.hostElement}})},500)};
_.H.handleModifyReportFormCommand=function(X){this.invalid=this.get("modifyReportFormCommand.action",X)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.H.updateInvalidFromBinding=function(X){this.invalid=X.detail.value};
_.H.updateImpersonatedChannelUrlFromBinding=function(X){this.impersonatedChannelUrl=X.detail.value};
mL.prototype.handleImpersonatedChannelUrlChanged=mL.prototype.handleImpersonatedChannelUrlChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],mL.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],mL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mL.prototype,"autoValidate",void 0);_.E([_.K(),_.U("design:type",Object)],mL.prototype,"invalid",void 0);
_.E([_.K(),_.U("design:type",String)],mL.prototype,"impersonatedChannelUrl",void 0);_.E([_.K({selector:function(X){return X.reportChannelAbuse.impersonatedChannelUrl}}),
_.U("design:type",String)],mL.prototype,"impersonatedChannelUrlRedux",void 0);_.E([_.K(),_.U("design:type",Object)],mL.prototype,"data",void 0);_.E([_.rt("#text-input"),_.U("design:type",Object)],mL.prototype,"channelUrlInput",void 0);_.E([_.cW("impersonatedChannelUrl"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],mL.prototype,"handleImpersonatedChannelUrlChanged",null);
_.E([_.p({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],mL);
_.N(mL,"ytd-report-channel-modal-impersonation-renderer",function(){if(Qyq!==void 0)return Qyq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Qyq=X},{mode:1});var ITT;var Wi4;var RX=function(){return _.O.apply(this,arguments)||this};
_.S(RX,_.O);RX.prototype.onCheckboxToggled=function(X){var t,G,y=(G=_.Y((t=this.data)==null?void 0:t.video,_.wz))==null?void 0:G.videoId;y&&this.ytdReduxBehavior.dispatch(X.target.checked?_.Dl({type:"VIDEO_SELECTED",payload:y}):_.Dl({type:"VIDEO_UNSELECTED",payload:y}))};
RX.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.ke.Object.defineProperties(RX.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var X,t=(X=this.data)==null?void 0:X.video;if(!t)return{};var G;X=(G=_.Y(t,_.wz))==null?void 0:G.navigationEndpoint;if(!X)return t;_.Y(X==null?void 0:X.commandMetadata,_.jQ)&&(_.Y(X.commandMetadata,_.jQ).ignoreNavigation=!0);return t}}});
_.E([_.K({reflectToAttribute:!0,selector:function(X,t){return t in X.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.U("design:type",Boolean)],RX.prototype,"checked",void 0);_.E([_.K(),_.U("design:type",Object)],RX.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],RX.prototype,"video",null);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],RX.prototype,"ytdReduxBehavior",void 0);_.E([_.p({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],RX);
_.N(RX,"ytd-selectable-video-renderer",function(){if(Wi4!==void 0)return Wi4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Wi4=X},{mode:1});var ir=function(){var X=_.O.apply(this,arguments)||this;X.monitorScroll=!0;return X};
_.S(ir,_.O);ir.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ir.prototype,"data",void 0);_.E([_.p({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],ir);
_.N(ir,"ytd-selectable-video-list-renderer",function(){if(ITT!==void 0)return ITT;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return ITT=X},{mode:1});var cer;_.Xa("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Lj=function(){return _.O.apply(this,arguments)||this};
_.S(Lj,_.O);Lj.prototype.onChange=function(X){if(X=_.k3(X).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.A("kevlar_command_handler_migration_killswitch"))_.Z0(this.hostElement,X,this.hostElement);else{X=_.J(X);for(var t=X.next();!t.done;t=X.next())this.ytComponentBehavior.resolveCommand(t.value)}};
Lj.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Lj.prototype.updateDataToggledFromBinding=function(X){this.set("data.toggled",X.detail.value)};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Lj.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Lj.prototype,"data",void 0);_.E([_.K({computed:"isEnabled(data)"}),_.U("design:type",Boolean)],Lj.prototype,"enabled",void 0);_.E([_.p({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Lj);
_.N(Lj,"ytd-toggle-item-renderer",function(){if(cer!==void 0)return cer;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return cer=X},{mode:1});var p5R;var rea;var NgR;var vG=function(){var X=_.O.apply(this,arguments)||this;X.setVisible=!1;X.boundOnSubmitButtonClick=function(){X.onSubmitButtonClick()};
X.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return X};
_.S(vG,_.O);vG.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}}}}}};
vG.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
vG.prototype.onSubmitButtonClick=function(){var X;((X=this.data)==null?0:X.submitEndpoint)&&!_.A("enable_ytc_refunds_submit_form_signal_action")&&_.hE(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
vG.prototype.handleSignalActionSubmitForm=function(){var X;((X=this.data)==null?0:X.submitEndpoint)&&_.hE(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.ke.Object.defineProperties(vG.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.hiddenByDefault)&&!this.setVisible}}});
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],vG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vG.prototype,"setVisible",void 0);_.E([_.K(),_.U("design:type",Object)],vG.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],vG.prototype,"surveyFeedbackData",void 0);_.E([_.K(),_.U("design:type",Object)],vG.prototype,"boundOnSubmitButtonClick",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data","setVisible"),_.U("design:type",Object),_.U("design:paramtypes",[])],vG.prototype,"visibilityHidden",null);_.E([_.$F({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],vG);
_.N(vG,"yt-flow-footer-renderer",function(){if(NgR===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;rea===void 0&&(rea=document.createElement("template"));var y=rea;G.call(t,y.content.cloneNode(!0),X.content.firstChild);NgR=X}X=NgR;return X},{mode:2});var aX=function(){return _.O.apply(this,arguments)||this};
_.S(aX,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],aX.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],aX.prototype,"data",void 0);_.E([_.K({selector:function(X){return X.ypc.surveyFeedbackData}}),
_.U("design:type",Object)],aX.prototype,"surveyFeedbackData",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],aX);
_.N(aX,"ytd-flow-footer-renderer",function(){if(p5R!==void 0)return p5R;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return p5R=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var PZH;var EMv;var lr=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return X};
_.S(lr,_.O);_.H=lr.prototype;_.H.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.$W("multiPageMenuSectionItems")}}};
_.H.handleHideEnclosingAction_=function(X){if(this.data&&this.data.items)for(var t=0;t<this.data.items.length;t++){var G=this.data.items[t].notificationRenderer;if(G&&G.notificationId==X.hideEnclosingAction.notificationId){this.splice("data.items",t,1);_.sl(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.H.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.qS(this.hostElement,"hidden",!0)};
_.H.updateMenu_=function(X){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&X&&!X.doNotRefreshInbox){X=this.data.continuations;for(var t=0;t<X.length;t++)if(X[t].invalidationContinuationData){var G=void 0;var y=(G=X[t].invalidationContinuationData)==null?void 0:G.continuation;break}X=_.RH.clone(this.data.continuationUpdateEndpoint||null);X.continuation=y;X.click_tracking_params=this.data.trackingParams;_.hE(this.hostElement,[X])}};
_.H.onServiceRequestCompleted_=function(X,t){if(this.data&&(X=t.actions)){t=0;for(var G=X.length;t<G;t++){var y=_.Y(X[t],_.p6e);if(!y)break;if((y.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||y.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&y.continuationItems&&this.data.items){var w=this.data.items.length-1;this.data.items[w].continuationItemRenderer&&(y=["data.items",w,1].concat(y.continuationItems),this.splice.apply(this,y))}}}};
lr.prototype.onServiceRequestCompleted_=lr.prototype.onServiceRequestCompleted_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],lr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lr.prototype,"data",void 0);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],lr.prototype,"onServiceRequestCompleted_",null);_.E([_.$F({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],lr);
_.qi()(lr,"yt-multi-page-menu-section-renderer",function(){if(EMv===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;PZH===void 0&&(PZH=document.createElement("template"));var y=PZH;G.call(t,y.content.cloneNode(!0),X.content.firstChild);EMv=X}X=EMv;return X},{allowedProps:["data"],
mode:2});var ULV;var mLV;var xz=function(){return _.O.apply(this,arguments)||this};
_.S(xz,_.O);xz.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.ke.Object.defineProperties(xz.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.progress)==null?0:this.data.progress*100}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xz.prototype,"data",void 0);_.E([_.C("data.progress"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],xz.prototype,"showProgressBar",null);
_.E([_.C("data.progress"),_.U("design:type",Number),_.U("design:paramtypes",[])],xz.prototype,"progress",null);_.E([_.$F({is:"yt-flow-header-renderer",disableElementRegistration:!0})],xz);
_.N(xz,"yt-flow-header-renderer",function(){if(mLV===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;ULV===void 0&&(ULV=document.createElement("template"));var y=ULV;G.call(t,y.content.cloneNode(!0),X.content.firstChild);mLV=X}X=mLV;return X},{mode:2});var Riq;var i$a;var fj=function(){return _.O.apply(this,arguments)||this};
_.S(fj,_.O);fj.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],fj.prototype,"data",void 0);_.E([_.$F({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],fj);
_.N(fj,"yt-post-confirmation-flow-step-renderer",function(){if(i$a===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Riq===void 0&&(Riq=document.createElement("template"));var y=Riq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);i$a=X}X=i$a;return X},{mode:2});var Liq;var vMa;var MH=function(){return _.O.apply(this,arguments)||this};
_.S(MH,_.O);
MH.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"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],MH.prototype,"data",void 0);_.E([_.$F({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],MH);
_.N(MH,"yt-refund-confirmation-flow-step-renderer",function(){if(vMa===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;Liq===void 0&&(Liq=document.createElement("template"));var y=Liq;G.call(t,y.content.cloneNode(!0),X.content.firstChild);vMa=X}X=vMa;return X},{mode:2});_.FE(S0R);_.FE(h2a);var Zdi=_.L5({avatarViewModel:_.al});_.FE(q0r);var A9=_.L5({commentInteractionViewModel:h2a,sharedSubscriptionViewModel:q0r,buttonViewModel:_.QK,horizontalShelfViewModel:_.$2});_.FE(Ceq);_.FE(K_V);_.FE(OdH);_.FE(uD2);_.FE(Qkr);var IkV=_.L5({profileIdentityInfoViewModel:_.IyR,profileInfoViewModel:Qkr});_.FE(W_N);_.up(W_N,"yt-profile-card-view-model",{propNames:["data"]});var Xn=function(){var X=_.O.apply(this,arguments)||this;X.enableFocusFix=_.A("music_web_enable_focus_on_setting_menu_fix")&&_.X3("IS_MOBILE_WEB",!1);X.covered=!1;X.hideMenu=!1;X.isCommentNotificationOnProfileCard=!1;X.scrolledByTouch=!1;X.disableBackdropFilter=_.A("web_disable_backdrop_filter");X.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return X};
_.S(Xn,_.O);_.H=Xn.prototype;
_.H.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"}}}};
_.H.ready=function(){var X=this;this.JSC$19988_containerElement.addEventListener("scroll",function(){X.ytRendererBehavior.markDirty()})};
_.H.attributeChanged=function(X,t){X==="menu-style"&&_.sl(this.hostElement,"yt-multi-page-menu-closed-action",[t])};
_.H.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ik(this,this.focusOnStampFinished))};
_.H.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Ik(this,this.focusOnStampFinished))};
_.H.reset=function(){this.closeJobId&&(_.vz.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.H.focusOnStampFinished=function(X){X.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ik(this,this.focusOnStampFinished)),this.doFocus())};
_.H.doFocus=function(){var X=_.Eyh(this.sectionsElement);X.length&&X[0].focus()};
_.H.computeMenuStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.H.computeIsCommentNotificationOnProfileCard=function(X){return _.A("enable_profile_cards_on_comments")&&X.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.H.computeHideMenu=function(X,t){return X||!(!t||!t.showLoadingSpinner)};
_.H.onPopupClosed=function(){this.isPopUpOpen=!1;_.sl(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.H.onPopupOpened=function(X,t){this.isPopUpOpen=!0;t.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Yt(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Dl({type:"CHANNEL_REPORT_RESET"})))};
_.H.onYtNavigate=function(X,t){this.shouldCloseOnNavigateEvent(t.endpoint)&&_.sl(this.hostElement,"yt-close-all-popups-action")};
_.H.handleEndpoint=function(X){X=_.Y(X,_.M0);!this.isCommentNotificationOnProfileCard&&X&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$19988_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.H.handleActions=function(X){for(var t=0,G=X.length;t<G;t++){var y=_.Y(X[t],Hur);y&&this.handleGetMultiPageMenuAction(y);(y=_.Y(X[t],_.p6e))&&this.handleAppendContinuationItemsAction(y)}};
_.H.onServiceRequestSentOrCompleted=function(X,t){X.detail&&X.detail.endpoint&&this.handleEndpoint(X.detail.endpoint);t.actions&&this.handleActions(t.actions)};
_.H.handleGetMultiPageMenuAction=function(X){var t=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Sm(this.submenuElement).appendChild(t);(X=X.menu.multiPageMenuRenderer)&&this.logSubmenu(X);t.data=X;t.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.H.handleAppendContinuationItemsAction=function(X){if(this.data&&X.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&X.continuationItems&&this.data.sections){var t=this.data.sections.length-1;this.data.sections[t].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),t--);if(this.data.sections[t].multiPageMenuNotificationSectionRenderer&&X.continuationItems){X=_.J(X==null?void 0:X.continuationItems);for(var G=X.next();!G.done;G=X.next())if(G=G.value,_.Y(G,QIa)){var y=
void 0,w=void 0,z=void 0,B=void 0,V=void 0;((y=this)==null?0:(w=y.data)==null?0:(z=w.sections)==null?0:(B=z[t])==null?0:(V=B.multiPageMenuNotificationSectionRenderer)==null?0:V.items)&&this.push("data.sections."+t+".multiPageMenuNotificationSectionRenderer.items",G)}else if(_.Y(G,_.SpR)||_.Y(G,_.Fc))this.push("data.sections",G),t++}}};
_.H.logSubmenu=function(X){if(!_.A("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var t=this.ytRendererBehavior.getScreenLayer(),G=_.lw(t),y=_.a4(t);if((X=X.trackingParams)&&G&&y){var w=_.i$(X);_.A("combine_ve_grafts")?_.Pj().graftServerVe(X,y,t):_.w9(G,y,w)}}};
_.H.emptySubmenuContainer=function(){for(var X=_.Sm(this.submenuElement);X.firstChild;)X.removeChild(X.firstChild)};
_.H.onMenuBackTap=function(X){_.Yt(this.hostElement,"yt-submenu-closed");X.stopPropagation()};
_.H.onSubmenuClosed=function(X){_.k3(X)!==this.hostElement&&(this.covered=!1,_.Yt(this.hostElement,"yt-refit"),X.stopPropagation())};
_.H.onRetrieveLocation=function(X,t){t.hasComments&&(t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),X.stopPropagation())};
_.H.shouldCloseOnNavigateEvent=function(X){if(!X)return!0;if(_.Y(X,_.SCY)||_.Y(X,_.hFR)||_.Y(X,_.DNP)||_.Y(X,_.zj))return!1;var t;return((t=_.Y(X==null?void 0:X.commandMetadata,_.jQ))==null?0:t.ignoreNavigation)?!1:!0};
_.H.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.H.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.H.refitAfterRender=function(){var X=this;_.V8(this,function(){_.Yt(X.hostElement,"yt-refit")})};
Xn.prototype.refitAfterRender=Xn.prototype.refitAfterRender;Xn.prototype.onRetrieveLocation=Xn.prototype.onRetrieveLocation;Xn.prototype.onSubmenuClosed=Xn.prototype.onSubmenuClosed;Xn.prototype.onMenuBackTap=Xn.prototype.onMenuBackTap;Xn.prototype.onServiceRequestSentOrCompleted=Xn.prototype.onServiceRequestSentOrCompleted;Xn.prototype.onYtNavigate=Xn.prototype.onYtNavigate;Xn.prototype.onPopupOpened=Xn.prototype.onPopupOpened;Xn.prototype.onPopupClosed=Xn.prototype.onPopupClosed;
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Xn.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Xn.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Xn.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],Xn.prototype,"enableFocusFix",void 0);_.E([_.K(),_.U("design:type",Object)],Xn.prototype,"covered",void 0);_.E([_.K({computed:"computeHideMenu(covered, data)"}),_.U("design:type",Object)],Xn.prototype,"hideMenu",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.U("design:type",String)],Xn.prototype,"menuStyle",void 0);
_.E([_.K({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.U("design:type",Object)],Xn.prototype,"isCommentNotificationOnProfileCard",void 0);_.E([_.K(),_.U("design:type",Boolean)],Xn.prototype,"isPopUpOpen",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Xn.prototype,"scrolledByTouch",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Xn.prototype,"disableBackdropFilter",void 0);
_.E([_.rt("#sections"),_.U("design:type",HTMLElement)],Xn.prototype,"sectionsElement",void 0);_.E([_.rt("#spinner"),_.U("design:type",HTMLElement)],Xn.prototype,"spinnerElement",void 0);_.E([_.rt("#header"),_.U("design:type",HTMLElement)],Xn.prototype,"headerElement",void 0);_.E([_.rt("#container"),_.U("design:type",HTMLElement)],Xn.prototype,"JSC$19988_containerElement",void 0);_.E([_.rt("#submenu"),_.U("design:type",HTMLElement)],Xn.prototype,"submenuElement",void 0);
_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Xn.prototype,"onPopupClosed",null);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Xn.prototype,"onPopupOpened",null);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Xn.prototype,"onYtNavigate",null);
_.E([_.WW("yt-service-request-completed"),_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],Xn.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.WW("yt-menu-back-tapped"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Xn.prototype,"onMenuBackTap",null);
_.E([_.WW("yt-submenu-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Xn.prototype,"onSubmenuClosed",null);_.E([_.WW("yt-retrieve-location"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Xn.prototype,"onRetrieveLocation",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Xn.prototype,"refitAfterRender",null);
_.E([_.p({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Xn);
_.N(Xn,"ytd-multi-page-menu-renderer",function(){if(hii!==void 0)return hii;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return hii=X},{mode:1});var aTV;var yO=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return X};
_.S(yO,_.O);_.H=yO.prototype;_.H.created=function(){this.showTooltips=!0};
_.H.computeAccessibility_=function(X){return this.get("accessibility.accessibilityData",X)||null};
_.H.onTap=function(){var X=_.D0(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(X&&X.length===1&&X[0])_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var t;if((t=this.data)==null?0:t.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var G;((G=this.data)==null?0:G.menuRequest)&&_.hE(this.hostElement,[this.data.menuRequest])}}};
_.H.handleTopbarMenuClosedAction=function(X){var t,G;(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(X)===((t=this.data)==null?void 0:(G=t.icon)==null?void 0:G.iconType)&&this.toggleIconState(!1)};
_.H.toggleIconState=function(X){_.A("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=X)};
_.H.handleUpdateTopbarAvatarAction=function(X){var t;X=(t=_.Y(X,XNQ))==null?void 0:t.avatarUrl;var G,y;t=(G=this.data)==null?void 0:(y=G.avatar)==null?void 0:y.thumbnails;X&&t&&(G={thumbnails:[Object.assign({},t[0],{url:X})]},this.set("data.avatar",G))};
_.ke.Object.defineProperties(yO.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Sm(this.hostElement).querySelector("#button")}}});
yO.prototype.onTap=yO.prototype.onTap;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],yO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],yO.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.oNz.YtButtonBehavior),_.U("design:type",Object)],yO.prototype,"ytButtonBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],yO.prototype,"data",void 0);
_.E([_.rt("yt-icon-button#button"),_.U("design:type",Object)],yO.prototype,"iconButton",void 0);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yO.prototype,"onTap",null);_.E([_.p({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],yO);
_.N(yO,"ytd-topbar-menu-button-renderer",function(){if(aTV!==void 0)return aTV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return aTV=X},{mode:1});var lTB;var wC=function(){return _.O.apply(this,arguments)||this};
_.S(wC,_.O);wC.prototype.getSelected=function(){return this.reasons.selected};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],wC.prototype,"data",void 0);_.E([_.rt("#reasons"),_.U("design:type",Object)],wC.prototype,"reasons",void 0);_.E([_.p({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],wC);
_.N(wC,"ytd-ad-feedback-content",function(){if(lTB!==void 0)return lTB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return lTB=X},{mode:1});var xLT;var zn=function(){return _.O.apply(this,arguments)||this};
_.S(zn,_.O);_.H=zn.prototype;_.H.onPopupOpened=function(){_.sl(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.H.computeConfirmButton=function(X){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:X.confirmLabel}};
_.H.computeCancelButton=function(X){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:X.cancelLabel}};
_.H.onConfirmTap=function(){var X=this.content.getSelected();X!==void 0&&(X=this.data.reasons[X].endpoint)&&(_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}}),_.sl(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.H.sendFeedbackSubmitToastAction=function(){var X;(X=this.data)!=null&&X.completionMessage&&_.sl(this.hostElement,"yt-open-popup-action",[_.jl(this.data.completionMessage),this])};
_.H.onCancelTap=function(){_.sl(this.hostElement,"yt-close-popup-action")};
zn.prototype.onPopupOpened=zn.prototype.onPopupOpened;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],zn.prototype,"data",void 0);_.E([_.rt("#content"),_.U("design:type",Object)],zn.prototype,"content",void 0);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],zn.prototype,"onPopupOpened",null);
_.E([_.p({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],zn);
_.N(zn,"ytd-ad-feedback-renderer",function(){if(xLT!==void 0)return xLT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return xLT=X},{mode:1});var fTT;var Hu=function(){return _.O.apply(this,arguments)||this};
_.S(Hu,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Hu.prototype,"data",void 0);_.E([_.p({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Hu);
_.N(Hu,"ytd-ad-info-dialog-content",function(){if(fTT!==void 0)return fTT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return fTT=X},{mode:1});var M1r;var og=function(){return _.O.apply(this,arguments)||this};
_.S(og,_.O);og.prototype.computeConfirmButton=function(X){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:X.confirmLabel}};
og.prototype.onConfirmTap=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
og.prototype.computeShouldShowTitle=function(){var X;return!((X=this.data)==null||!X.title)};
og.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.gw().resolve(_.F3).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
og.prototype.onPopupClosed=og.prototype.onPopupClosed;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],og.prototype,"data",void 0);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],og.prototype,"onPopupClosed",null);_.E([_.p({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],og);
_.N(og,"ytd-ad-info-dialog-renderer",function(){if(M1r!==void 0)return M1r;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return M1r=X},{mode:1});var X8V;var Jn=function(){var X=_.O.apply(this,arguments)||this;X.actionButtonClass="action-button";X.dismissButtonId="dismiss-button";X.dialogDismiss=!0;return X};
_.S(Jn,_.O);_.H=Jn.prototype;_.H.computeInPlayer=function(X){return(X==null?void 0:X.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.H.computedLogo=function(){var X,t;return this.isDarkTheme()?(X=this.data)==null?void 0:X.logoDark:(t=this.data)==null?void 0:t.logo};
_.H.computedHeaderImage=function(){var X,t;return this.isDarkTheme()?(X=this.data)==null?void 0:X.headerImageDark:(t=this.data)==null?void 0:t.headerImage};
_.H.computeLogoIconId=function(){var X,t,G,y=(X=this.computedLogo())==null?void 0:(t=X.sources)==null?void 0:(G=t[0])==null?void 0:G.height;return y&&y%31===0?"logo-icon-with-padding":"logo-icon"};
_.H.computeLogoIconHeight=function(){var X,t,G,y=(X=this.computedLogo())==null?void 0:(t=X.sources)==null?void 0:(G=t[0])==null?void 0:G.height;return y&&y%31===0?"31":"24"};
_.H.onPopupClosed=function(){_.gw().resolve(_.Cf).dispose()};
_.H.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.H.onShow=function(){this.inPlayer&&_.Ic(6)};
_.H.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var X=0;X<this.data.impressionEndpoints.length;X++){var t=_.Y(this.data.impressionEndpoints[X],_.yL);t&&this.ytComponentBehavior.resolveCommand(t)}};
_.H.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.sl(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.ke.Object.defineProperties(Jn.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var X,t;return!((X=this.data)==null||!X.headerImageDark)&&!((t=this.data)==null||!t.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.secondaryButton)}}});
Jn.prototype.onPopupClosed=Jn.prototype.onPopupClosed;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Jn.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.JC.YtVisibilityBehavior),_.U("design:type",Object)],Jn.prototype,"ytVisibilityBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Jn.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],Jn.prototype,"actionButtonClass",void 0);_.E([_.K(),_.U("design:type",Object)],Jn.prototype,"dismissButtonId",void 0);_.E([_.K(),_.U("design:type",Object)],Jn.prototype,"dialogDismiss",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Jn.prototype,"hasHeaderImage",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Jn.prototype,"hasPremiumButton",null);
_.E([_.K({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.U("design:type",Boolean)],Jn.prototype,"inPlayer",void 0);_.E([_.rt("#dismiss-button"),_.U("design:type",HTMLElement)],Jn.prototype,"dismissButton",void 0);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Jn.prototype,"onPopupClosed",null);_.E([_.p({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Jn);
_.N(Jn,"ytd-enforcement-message-view-model",function(){if(X8V!==void 0)return X8V;var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return X8V=X},{mode:1});var $KV;var tNB;var Bu=function(){var X=_.O.apply(this,arguments)||this;X.TEST_ONLY={immediateValidation:function(){X.immediateValidation()},
onValidationResponse:function(t){X.onValidationResponse(t)},
onGenerateHandleFromNameResponse:function(t){X.onGenerateHandleFromNameResponse(t)}};
return X};
_.S(Bu,_.O);_.H=Bu.prototype;_.H.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.H.validate=function(){this.immediateValidation()};
_.H.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.H.setHandleInputValue=function(X){this.handleDir=this.getHandleDir(X);this.handleInput.value=X;this.validationState={status:"PENDING"};this.immediateValidation()};
_.H.getHandleDir=function(X){var t=X===""&&!1;return(t=_.KuR.test.call(_.KuR,X))?"rtl":"ltr"};
_.H.onDataChanged=function(){var X,t;this.handleDir=this.getHandleDir((t=(X=this.data)==null?void 0:X.handle)!=null?t:"");var G;this.validationState=((G=this.data)==null?0:G.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var y;((y=this.data)==null?0:y.validateOnInit)&&this.immediateValidation()};
_.H.stopPropagation=function(X){X.stopPropagation()};
_.H.onInput=function(){var X;this.handleDir=this.getHandleDir((X=this.handleInput.value)!=null?X:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.H.onFocusout=function(X){this.handleInput.contains(X.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.H.delayedValidation=function(){var X,t;this.debouncedValidation((t=(X=this.data)==null?void 0:X.validationDelayMs)!=null?t:1E3)};
_.H.immediateValidation=function(){this.debouncedValidation(0)};
_.H.debouncedValidation=function(X){var t=this;_.Jm(this,"debouncedValidation",function(){var G,y=t.staticValidation((G=t.handleInput.value)!=null?G:"");if(y!==void 0)t.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:y};else{var w;if((w=t.data)!=null&&w.validateChannelHandleCommand){t.validationState={status:"LOADING"};var z;t.ytComponentBehavior.resolveCommand(t.data.validateChannelHandleCommand,{form:{handle:(z=t.handleInput.value)!=null?z:""},commandController:{onSuccess:function(B,
V){t.onValidationResponse(V)},
onServerError:function(B,V){t.onValidationServerError(V)}}})}else t.handleUnexpectedValidationError(new _.NJ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",t.data))}},X)};
_.H.staticValidation=function(X){var t;if(((t=this.data)==null?void 0:t.channelHandleStaticValidationParams)!==void 0){t=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(X)&&t.validValueRegexpErrorMessage!==void 0)return t.validValueRegexpErrorMessage;if(t.minLength!==void 0&&X.length<t.minLength&&t.minLengthErrorMessage!==void 0)return t.minLengthErrorMessage;if(t.maxLength!==void 0&&X.length>t.maxLength&&t.maxLengthErrorMessage!==void 0)return t.maxLengthErrorMessage}};
_.H.onValidationResponse=function(X){var t=_.Y(X.result,$WH);t===void 0?this.handleUnexpectedValidationError(new _.NJ("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",X)):this.handleValidationResultRenderer(t)};
_.H.onValidationServerError=function(X){this.handleUnexpectedValidationError(new _.NJ("ValidateChannelHandle request failed.",X))};
_.H.handleValidationResultRenderer=function(X){if(X.handle===void 0)this.handleUnexpectedValidationError(new _.NJ("ChannelHandleValidationResultRenderer does not contain handle.",X));else if(X.handle===this.handleInput.value)switch(X.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:X.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:X.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.NJ("Unrecognized ChannelHandleValidationResult",X));break;default:_.zr(X.result)}};
_.H.handleUnexpectedValidationError=function(X){var t;this.validationState={status:"UNKNOWN",handle:(t=this.handleInput.value)!=null?t:""};_.Mj(X)};
_.H.stopEventPropagation=function(X){X.stopPropagation()};
_.H.updateHandleOnChannelNameInputChange=function(X){if(!this.wasEdited){var t,G;this.debouncedGenerateHandleFromName(X,(G=(t=this.data)==null?void 0:t.validationDelayMs)!=null?G:1E3)}};
_.H.debouncedGenerateHandleFromName=function(X,t){var G=this;_.Jm(this,"debouncedGenerateHandleFromName",function(){var y;(y=G.data)!=null&&y.validateChannelHandleCommand?G.ytComponentBehavior.resolveCommand(G.data.validateChannelHandleCommand,{form:{name:X},commandController:{onSuccess:function(w,z){G.onGenerateHandleFromNameResponse(z)},
onServerError:function(w,z){_.Mj(new _.NJ("Error calling GenerateHandleFromName",z))}}}):_.Mj(new _.NJ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",G.data))},t)};
_.H.onGenerateHandleFromNameResponse=function(X){this.wasEdited||((X=_.Y(X.result,tTR))?this.setHandleInputValue(X.handle):_.Mj(new _.NJ("Invalid results when generate handle from name")))};
_.ke.Object.defineProperties(Bu.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var X;if(X=this.validationState)X=this.validationState,X=X.status==="OK"||X.status==="UNKNOWN";if(X)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var X;if(((X=this.validationState)==null?void 0:X.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 X,t=(X=this.channelHandleEntity)==null?void 0:X.handleEdit;this.handleDir=this.getHandleDir(t!=null?t:"");return t}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var X,t;if(((X=this.data)==null?void 0:(t=X.channelHandleStaticValidationParams)==null?void 0:t.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Bu.prototype.stopEventPropagation=Bu.prototype.stopEventPropagation;Bu.prototype.onDataChanged=Bu.prototype.onDataChanged;Bu.prototype.applyHandleEdit=Bu.prototype.applyHandleEdit;Bu.prototype.onValueChanged=Bu.prototype.onValueChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Bu.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Bu.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Bu.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Boolean)],Bu.prototype,"wasEdited",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],Bu.prototype,"handleDir",void 0);_.E([_.rt("#handle-input"),_.U("design:type",Object)],Bu.prototype,"handleInput",void 0);_.E([_.K(),_.C("validationState"),_.U("design:type",Object),_.U("design:paramtypes",[])],Bu.prototype,"value",null);
_.E([_.cW("value"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Bu.prototype,"onValueChanged",null);_.E([_.C("validationState"),_.U("design:type",Object),_.U("design:paramtypes",[])],Bu.prototype,"errorIndicator",null);_.E([_.K({reflectToAttribute:!0}),_.C("errorIndicator"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Bu.prototype,"borderErrorIndicator",null);
_.E([_.K({selectorArgs:["data.channelHandleEntityKey"],selector:function(X,t){return _.Kg(X.entities,"channelHandle",t)}}),
_.U("design:type",Object)],Bu.prototype,"channelHandleEntity",void 0);_.E([_.C("channelHandleEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],Bu.prototype,"handleEdit",null);_.E([_.cW("handleEdit"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Bu.prototype,"applyHandleEdit",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Bu.prototype,"onDataChanged",null);
_.E([_.C("data.channelHandleStaticValidationParams.validValueRegexp"),_.U("design:type",Object),_.U("design:paramtypes",[])],Bu.prototype,"validValueRegexp",null);_.E([_.WW("yt-service-request-sent"),_.WW("yt-service-request-completed"),_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],Bu.prototype,"stopEventPropagation",null);_.E([_.p({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Bu);
_.N(Bu,"ytd-channel-handle-input-renderer",function(){if(tNB!==void 0)return tNB;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return tNB=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var nO=function(){var X=_.O.apply(this,arguments)||this;X.data=null;X.errorMessage=null;X.isLoading=!0;X.hideContainer=!1;X.enableNewChannelCreationOnIdForAll=_.A("enable_new_channel_creation_for_id4all");X.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"};X.testOnly={setErrorMessage:function(t){X.resetErrorState();
X.setErrorState(t)}};
return X};
_.S(nO,_.O);_.H=nO.prototype;_.H.created=function(){this.logScreenVe()};
_.H.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")};
_.H.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var X;((X=this.zeroStepErrorMessageEntity)==null?0:X.value)&&this.set("errorMessage",_.Vl(this.zeroStepErrorMessageEntity.value))};
_.H.onCreateTap=function(){var X=this;if(this.data&&this.data.channelCreationEndpoint){var t,G;if(!((t=this.data.createChannelButton)==null?0:(G=t.buttonRenderer)==null?0:G.isDisabled)){var y;if((y=this.nameInput)!=null&&y.value){this.setLoadingState();var w,z;t=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(w=this.handleInput)==null?void 0:w.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((z=this.handleInput)==null?void 0:z.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:t,commandController:{onSuccess:function(B,V){X.onChannelCreationEndpointSuccess(V);X.obakeImageSource&&_.a7("channelCreatedWithObakeImage",{imageSourceType:X.obakeImageSource})},
onServerError:function(){X.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.H.endpointRequiresServiceRequestAction=function(X){return!!_.Y(X,_.xl)||!!_.Y(X,XNQ)};
_.H.isNavigateAction=function(X){var t;return!!_.Y(X,_.kR)||!!_.Y((t=_.Y(X,wNV))==null?void 0:t.command,_.kR)};
_.H.isPlaylistAction=function(X){return!!_.Y(X,_.Xs)||!!_.Y(X,_.z4)};
_.H.onChannelCreationEndpointSuccess=function(X){if(X.createChannelError){var t;this.setErrorState((t=X.createChannelError)==null?void 0:t.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.A("enable_secondary_channel_creation_form")&&X.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(X.navigationEndpoint);if(X.actions){t=_.J(X.actions);for(var G=t.next();!G.done;G=t.next())if(G=G.value,this.endpointRequiresServiceRequestAction(G)&&this.ytComponentBehavior.resolveCommand(G),
this.isNavigateAction(G)){var y=void 0;G=_.Y((y=_.Y(G,wNV))==null?void 0:y.command,_.kR);y=void 0;this.isPlaylistAction((y=G)==null?void 0:y.endpoint)&&(_.sl(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),y=void 0,this.ytComponentBehavior.resolveCommand((y=G)==null?void 0:y.endpoint))}}X.actions&&X.actions.some(function(w){var z;return _.Y(w,_.kR)||_.Y((z=_.Y(w,wNV))==null?void 0:z.command,_.kR)})||_.sl(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.H.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.H.onCancelTap=function(){var X,t,G;if(!((X=this.data)==null?0:(t=X.cancelButton)==null?0:(G=t.buttonRenderer)==null?0:G.isDisabled)){var y,w,z;X=(y=this.data)==null?void 0:(w=y.cancelButton)==null?void 0:(z=w.buttonRenderer)==null?void 0:z.command;if(!X||!_.Y(X,_.eqf)){var B;this.nameInput&&((B=this.data)==null?0:B.name)&&(this.nameInput.value=this.data.name);var V;this.handleInput&&((V=this.data)==null?0:V.channelHandleInput)&&(this.handleInput.data=_.Y(this.data.channelHandleInput,GmB));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.H.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.H.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.H.onClearProfilePhotoTap=function(){var X,t,G;((X=this.data)==null?0:(t=X.clearProfilePhotoButton)==null?0:(G=t.buttonRenderer)==null?0:G.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.H.onEditAvatarTap=function(){var X,t,G;((X=this.data)==null?0:(t=X.editAvatarButton)==null?0:(G=t.buttonRenderer)==null?0:G.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.H.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)};
_.H.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var X;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((X=this.data)==null?0:X.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.H.setErrorState=function(X){this.resetErrorState();if(X)this.set("errorMessage",X);else{var t;if((t=this.zeroStepErrorMessageEntity)==null?0:t.value)this.set("errorMessage",_.Vl(this.zeroStepErrorMessageEntity.value));else{var G;((G=this.data)==null?0:G.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.H.fetchImageBlobWithAlr=function(X,t){t=t===void 0?5:t;var G=this,y,w,z,B,V;return _.n(function(b){switch(b.nextAddress){case 1:return b.yield(fetch(X,{method:"GET",mode:"cors"}),2);case 2:y=b.yieldResult;if(y.ok){b.jumpTo(3);break}if(t===0)throw Error();w=G.addJitter(Math.pow(2,5-t));return b.yield(new Promise(function(e){setTimeout(e,w*1E3)}),4);
case 4:return b.return(G.fetchImageBlobWithAlr(X,t-1));case 3:if(!y.headers.get("content-type").split(";").some(function(e){return e.trim()==="text/plain"})){b.jumpTo(5);
break}z=G;B=z.fetchImageBlobWithAlr;return b.yield(y.text(),6);case 6:return b.return(B.call(z,b.yieldResult,t-1));case 5:return b.yield(y.blob(),7);case 7:return V=b.yieldResult,b.return(V)}})};
_.H.addJitter=function(X){var t=X*.3*Math.random();Math.random()>.5&&(t*=-1);return X+t};
_.H.openProfilePicturePicker=function(){var X=this,t,G,y,w,z;return _.n(function(B){if(B.nextAddress==1){t=X.data.scottyUploadUrl;if(!t)return B.return();G=document.documentElement.hasAttribute("dark");y=document.body.style.colorScheme;G&&(document.body.style.colorScheme="dark");w=oPB(JJH(HGT(XeB(G?"dark":"light")),function(V){var b,e,g,F,T;return _.n(function(D){if(D.nextAddress==1)return b=_.o8(SpB(new aW(V.photoUrl,!1)).build(),"alr","yes"),X.obakeImageSource=X.pictureChangeSourceToObakeImageSourceType(V.photoSource),
_.CL(D,2),X.setLoadingState(),D.yield(X.fetchImageBlobWithAlr(b),4);if(D.nextAddress!=2)return e=D.yieldResult,g=new FileReader,g.addEventListener("load",function(){var h,u,W,c,P,l;return _.n(function(R){if(R.nextAddress==1){if(e.size>15728640)return X.setErrorState((h=X.data)==null?void 0:h.imageSizeErrorMessage),_.Mj(Error("kl")),R.return();if(!g.result)return X.setErrorState((u=X.data)==null?void 0:u.genericImageLoadErrorMessage),_.Mj(Error("ll")),R.return();W=g.result;_.CL(R,2);return R.yield(cb4(e,
t),4)}if(R.nextAddress!=2)return c=R.yieldResult,X.handleImageUpdatedAction(W,c),X.resetErrorState(),_.zx(R,0);P=_.IY(R);X.setErrorState((l=X.data)==null?void 0:l.uploadErrorMessage);if(P instanceof Error)_.xA(P);else{var L=new _.NJ(JSON.stringify(P));_.xA(L)}_.W$(R)})}),g.readAsDataURL(e),_.zx(D,0);
F=_.IY(D);X.setErrorState((T=X.data)==null?void 0:T.genericImageLoadErrorMessage);F instanceof Error?_.xA(F):_.fh(new _.NJ(JSON.stringify(F)));_.W$(D)})}),function(){X.hideContainer=!1;
document.body.style.colorScheme=y});
_.CL(B,2);return B.yield(w.openPicker(),4)}if(B.nextAddress!=2)return _.zx(B,0);_.IY(B);X.setErrorState((z=X.data)==null?void 0:z.selectImageErrorMessage);_.W$(B)})};
_.H.pictureChangeSourceToObakeImageSourceType=function(X){switch(X){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.H.logScreenVe=function(){_.qP(_.Pj(),124448)};
_.H.graftServerVe=function(){var X=_.a4(),t,G,y=(t=this.data)==null?void 0:(G=t.loggingDirectives)==null?void 0:G.trackingParams;y&&X&&(this.channelCreationFormVe=_.Pj().graftServerVe(y,X),X={visualElement:this.channelCreationFormVe},_.rX().reportShown(X))};
_.H.isNameChanged=function(X){var t;return((t=this.data)==null?void 0:t.name)!==X};
_.H.isHandleChanged=function(X){var t,G=_.Y((t=this.data)==null?void 0:t.channelHandleInput,GmB);return G&&X?G.handle!==X:!1};
_.H.handleImageUpdatedAction=function(X,t){this.hideContainer=!1;this.previewDataUrl=X;this.encryptedBlobId=t};
_.H.handleImageSelectionErrorAction=function(X){this.hideContainer=!1;this.setErrorState(X)};
_.H.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.H.showContainer=function(){this.hideContainer=!1};
_.H.maybeWipeZeroStepErrorMessage=function(){var X,t=(X=this.data)==null?void 0:X.zeroStepErrorMessageEntityKey,G;t&&((G=this.zeroStepErrorMessageEntity)==null?0:G.value)&&this.ytdReduxBehavior.dispatch(_.EW("stringEntity",t,{key:t,value:""}))};
_.ke.Object.defineProperties(nO.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 X;return((X=this.photoThumbnail)==null?0:X.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 X;return!((X=this.data)==null||!X.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.descriptionInfo}}});
nO.prototype.dataChanged=nO.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],nO.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],nO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],nO.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],nO.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],nO.prototype,"errorMessage",void 0);
_.E([_.K(),_.U("design:type",Object)],nO.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",String)],nO.prototype,"previewDataUrl",void 0);_.E([_.K(),_.U("design:type",Number)],nO.prototype,"obakeImageSource",void 0);_.E([_.K(),_.U("design:type",Object)],nO.prototype,"hideContainer",void 0);_.E([_.rt("#title-input"),_.U("design:type",Object)],nO.prototype,"nameInput",void 0);_.E([_.rt("#handle-input"),_.U("design:type",Object)],nO.prototype,"handleInput",void 0);
_.E([_.K(),_.U("design:type",Boolean)],nO.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.E([_.K({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.X26}),_.U("design:type",Object)],nO.prototype,"zeroStepErrorMessageEntity",void 0);_.E([_.C("data","data.isDefaultProfilePhoto","previewDataUrl"),_.U("design:type",Object),_.U("design:paramtypes",[])],nO.prototype,"photoThumbnail",null);
_.E([_.C("data","data.isDefaultProfilePhoto","photoThumbnail"),_.U("design:type",Object),_.U("design:paramtypes",[])],nO.prototype,"userSetPhotoThumbnailUrl",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],nO.prototype,"hideProfilePhotoButtonLayer",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],nO.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.E([_.U0("data","zeroStepErrorMessageEntity"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],nO.prototype,"dataChanged",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.descriptionInfo","zeroStepErrorMessageEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],nO.prototype,"description",null);_.E([_.p({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],nO);
_.N(nO,"ytd-channel-creation-dialog-renderer",function(){if($KV!==void 0)return $KV;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return $KV=X},{mode:1});var GMT;var VO=function(){var X=_.O.apply(this,arguments)||this;X.isLoading=!1;X.isDisabled=!1;return X};
_.S(VO,_.O);VO.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
VO.prototype.updateDisabled=function(){var X;this.isDisabled=this.isLoading||((X=this.handleInput)==null?void 0:X.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
VO.prototype.onSaveClick=function(){var X=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var t;((t=this.data)==null?void 0:t.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 G;if((G=X.data)==null?0:G.nextEndpoint){var y;X.ytComponentBehavior.resolveCommand((y=X.data)==null?void 0:y.nextEndpoint)}else X.isLoading=
!1,X.closeDialog()},
onServerError:function(){X.isLoading=!1;X.handleInput.validate();var G;X.errorMessage=(G=X.data)==null?void 0:G.errorMessage}}}))}};
VO.prototype.closeDialog=function(){_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
VO.prototype.updateDisabled=VO.prototype.updateDisabled;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],VO.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],VO.prototype,"data",void 0);_.E([_.rt("#handle-input"),_.U("design:type",Object)],VO.prototype,"handleInput",void 0);_.E([_.cW("isLoading"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VO.prototype,"updateDisabled",null);
_.E([_.p({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],VO);
_.N(VO,"ytd-channel-handle-edit-dialog-renderer",function(){if(GMT!==void 0)return GMT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return GMT=X},{mode:1});var yXv;var bP=function(){return _.O.apply(this,arguments)||this};
_.S(bP,_.O);bP.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bP.prototype,"data",void 0);_.E([_.p({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],bP);
_.N(bP,"ytd-channel-switcher-footer-renderer",function(){if(yXv!==void 0)return yXv;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return yXv=X},{mode:1});var w8N;var zzQ;var ki=function(){return _.O.apply(this,arguments)||this};
_.S(ki,_.O);ki.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
ki.prototype.onIronChange=ki.prototype.onIronChange;_.E([_.K(),_.U("design:type",Object)],ki.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!1}),_.U("design:type",Function)],ki.prototype,"onDontAskAgainChanged",void 0);_.E([_.rt("#checkbox"),_.U("design:type",Object)],ki.prototype,"checkbox",void 0);_.E([_.WW("iron-change"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ki.prototype,"onIronChange",null);
_.E([_.p({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],ki);
_.N(ki,"ytd-identity-prompt-footer-renderer",function(){if(zzQ!==void 0)return zzQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return zzQ=X},{mode:1});var dC=function(){var X=_.O.apply(this,arguments)||this;X.dontAskAgain=!1;X.showPopup=!1;X.boundDontAskAgainChanged=function(t){X.dontAskAgainChanged(t)};
X.boundOnAccountItemTap=function(t){X.onAccountItemTap(t)};
return X};
_.S(dC,_.O);_.H=dC.prototype;
_.H.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]]"}}}}}};
_.H.ready=function(){var X=this;_.Sm(this.hostElement).querySelector("#container").addEventListener("scroll",function(){X.ytRendererBehavior.markDirty()})};
_.H.dontAskAgainChanged=function(X){this.dontAskAgain=X};
_.H.onAccountItemTap=function(X){if(X){var t={};this.dontAskAgain&&(t={dont_ask_again:this.dontAskAgain});_.ok(X,t)}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.H.redirectOnlyAccount=function(X){X.sections&&X.sections.length>0&&(X=_.Y(X.sections[0],_.hsq),(X==null?0:X.contents)&&(X==null?void 0:X.contents.length)<=1?(X=_.Jt(window.location.href),(X==null?0:X.next)&&_.Hqv(X.next)?_.ok(X.next):_.ok("/")):this.showPopup=!0)};
dC.prototype.dataChanged=dC.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],dC.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!1}),_.U("design:type",Object)],dC.prototype,"dontAskAgain",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],dC.prototype,"showPopup",void 0);_.E([_.K({reflectToAttribute:!1}),_.U("design:type",Object)],dC.prototype,"boundDontAskAgainChanged",void 0);_.E([_.K({reflectToAttribute:!1}),_.U("design:type",Object)],dC.prototype,"boundOnAccountItemTap",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dC.prototype,"dataChanged",null);
_.E([_.p({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],dC);
_.N(dC,"ytd-channel-switcher-renderer",function(){if(w8N!==void 0)return w8N;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return w8N=X},{mode:1});var HkN;var e6=function(){return _.O.apply(this,arguments)||this};
_.S(e6,_.O);_.ke.Object.defineProperties(e6.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.E([_.K(),_.U("design:type",Object)],e6.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Array),_.U("design:paramtypes",[])],e6.prototype,"steps",null);_.E([_.p({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],e6);
_.N(e6,"ytd-channel-transfer-stepper-renderer",function(){if(HkN!==void 0)return HkN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return HkN=X},{mode:1});var oUB;var j6=function(){var X=_.O.apply(this,arguments)||this;X.data=null;X.isError=!1;X.isLoading=!1;return X};
_.S(j6,_.O);_.H=j6.prototype;_.H.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"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.H.computeProfileName=function(X){return X?X.givenNameValue+" "+X.familyNameValue:""};
_.H.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)};
_.H.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)};
j6.prototype.onYtServiceRequestError=j6.prototype.onYtServiceRequestError;j6.prototype.onYtServiceRequestSent=j6.prototype.onYtServiceRequestSent;j6.prototype.dataChanged=j6.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],j6.prototype,"data",void 0);
_.E([_.K({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.U("design:type",String)],j6.prototype,"profileName",void 0);_.E([_.K(),_.U("design:type",Object)],j6.prototype,"isError",void 0);_.E([_.K(),_.U("design:type",Object)],j6.prototype,"isLoading",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],j6.prototype,"dataChanged",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],j6.prototype,"onYtServiceRequestSent",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],j6.prototype,"onYtServiceRequestError",null);_.E([_.p({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],j6);
_.N(j6,"ytd-channel-warm-welcome-cont-renderer",function(){if(oUB!==void 0)return oUB;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return oUB=X},{mode:1});var JXa;var gC=function(){var X=_.O.apply(this,arguments)||this;X.data=null;return X};
_.S(gC,_.O);gC.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
gC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],gC.prototype,"data",void 0);_.E([_.p({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],gC);
_.N(gC,"ytd-channel-warm-welcome-renderer",function(){if(JXa!==void 0)return JXa;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return JXa=X},{mode:1});var BfV;var Fn=function(){return _.O.apply(this,arguments)||this};
_.S(Fn,_.O);_.ke.Object.defineProperties(Fn.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.authorThumbnail)||{}}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Fn.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Fn.prototype,"thumbnailDetails",null);_.E([_.p({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Fn);
_.N(Fn,"ytd-comment-preview-renderer",function(){if(BfV!==void 0)return BfV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return BfV=X},{mode:1});var nUR;var Tn=function(){return _.O.apply(this,arguments)||this};
_.S(Tn,_.O);Tn.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ke.Object.defineProperties(Tn.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.submitButton}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Tn.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Tn.prototype,"submitButton",null);_.E([_.p({is:"ytd-notice-renderer",disableElementRegistration:!0})],Tn);
_.N(Tn,"ytd-notice-renderer",function(){if(nUR!==void 0)return nUR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return nUR=X},{mode:1});var VN4;var An=function(){return _.O.apply(this,arguments)||this};
_.S(An,_.O);An.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],An.prototype,"data",void 0);_.E([_.p({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],An);
_.N(An,"ytd-preview-comment-dialog-content",function(){if(VN4!==void 0)return VN4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return VN4=X},{mode:1});var bkQ;var Yi=function(){return _.O.apply(this,arguments)||this};
_.S(Yi,_.O);Yi.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Yi.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Yi.prototype,"data",void 0);_.E([_.p({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Yi);
_.N(Yi,"ytd-preview-comment-dialog-renderer",function(){if(bkQ!==void 0)return bkQ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return bkQ=X},{mode:1});var kMv;var dKr=_.A("web_button_rework")&&_.X3("BUTTON_REWORK")||_.A("web_button_rework_with_live"),s4=function(){var X=_.O.apply(this,arguments)||this;X.closeLabel=_.Qf("CLOSE");X.selectedAmountIndex=1;X.privacyCheckboxValue=!1;X.useAmsterdamStyle=dKr;X.amountPlaceholderIndex=-1;return X};
_.S(s4,_.O);_.H=s4.prototype;_.H.onAmountClick=function(X){this.selectedAmountIndex=_.Sm(this.hostElement).querySelector("#amounts").indexForElement(X.currentTarget)};
_.H.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.sl(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.H.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.sl(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.sl(this.hostElement,"yt-close-popup-action",[this.is]);var X;(X=_.sW())==null||X.getPlayerPromise().then(function(t){t.pauseVideo()})}};
_.H.donationCallback=function(X){X.success?(this.hostElement.hasAttribute("live-chat")&&X.response&&X.response.data&&X.response.data.actions&&_.sl(this.hostElement,"yt-live-chat-open-popup",[X.response.data.actions[0]]),_.sl(this.hostElement,"yt-close-popup-action",[this.is]),_.sl(this.hostElement,"yt-live-chat-close-buy-flow")):X.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(X.errorMessageRenderer)};
_.H.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Sm(this.hostElement).querySelector("#custom-amount-input").focus()};
_.H.updateConfirmationDialogTextWithAmount=function(X){var t=this.getConfirmDialogRuns();t&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(t),"text"],this.getFormattedAmount(X))};
_.H.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.H.getAmountPlaceholderIndex=function(X){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=X.findIndex(function(t){return t.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.H.getFormattedAmount=function(X){var t;return(new _.z8(4,((t=this.data)==null?void 0:t.currencyCode)||"")).format(X)};
_.H.isAmountValid=function(X){if(X==="")return!1;X=Number(X)*1E6;var t=this.get("minAmountMicros",this.data),G=this.get("maxAmountMicros",this.data);return t&&X<t||G&&X>G?!1:!0};
_.H.setInputError=function(){this.shouldShowValidationError?_.Sm(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Sm(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.H.setInitialCheckboxValue=function(){var X;this.privacyCheckboxValue=!((X=this.data)==null||!X.privacyCheckboxInitialState)};
_.H.updateCustomAmountInputFromBinding=function(X){this.customAmountInput=X.detail.value};
_.H.updatePrivacyCheckboxValueFromBinding=function(X){this.privacyCheckboxValue=X.detail.value};
_.ke.Object.defineProperties(s4.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var X=this,t,G;return((t=this.data)==null?void 0:(G=t.suggestedAmounts)==null?void 0:G.map(function(y,w){return{buttonRenderer:{style:X.selectedAmountIndex===w?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:y.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 X;return!((X=this.data)==null||!X.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 X=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(X&&this.amountMicros!==null)return Object.assign({},X,{ypcGetCartEndpoint:Object.assign({},X.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 X=this.get("confirmLargeAmount",this.data);if(X&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),X}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X=this.get("donateButton.buttonRenderer",this.data);if(X)return Object.assign({},X,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
s4.prototype.setInitialCheckboxValue=s4.prototype.setInitialCheckboxValue;s4.prototype.setInputError=s4.prototype.setInputError;s4.prototype.setFocusOnCustomAmountInput=s4.prototype.setFocusOnCustomAmountInput;_.E([_.q(Z8H),_.U("design:type",Object)],s4.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],s4.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],s4.prototype,"closeLabel",void 0);_.E([_.K(),_.U("design:type",Object)],s4.prototype,"selectedAmountIndex",void 0);_.E([_.K(),_.U("design:type",String)],s4.prototype,"customAmountInput",void 0);_.E([_.K(),_.U("design:type",Object)],s4.prototype,"privacyCheckboxValue",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],s4.prototype,"useAmsterdamStyle",void 0);_.E([_.cW("customAmount"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s4.prototype,"setFocusOnCustomAmountInput",null);_.E([_.C("data","selectedAmountIndex"),_.U("design:type",Array),_.U("design:paramtypes",[])],s4.prototype,"suggestedAmountButtons",null);
_.E([_.C("data","selectedAmountIndex"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],s4.prototype,"isCustomAmountSelected",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],s4.prototype,"showPrivacyCheckbox",null);_.E([_.C("data","selectedAmountIndex","customAmount"),_.U("design:type",Object),_.U("design:paramtypes",[])],s4.prototype,"amountMicros",null);
_.E([_.C("isCustomAmountSelected","customAmountInput"),_.U("design:type",Object),_.U("design:paramtypes",[])],s4.prototype,"customAmount",null);_.E([_.C("customAmount"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],s4.prototype,"shouldShowValidationError",null);_.E([_.C("customAmount"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],s4.prototype,"isDonateButtonEnabled",null);
_.E([_.C("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.U("design:type",Object),_.U("design:paramtypes",[])],s4.prototype,"donateCommand",null);_.E([_.C("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.U("design:type",Object),_.U("design:paramtypes",[])],s4.prototype,"donateCommandWithConfirmation",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],s4.prototype,"largeDonationThreshold",null);
_.E([_.C("customAmount","donateCommand","amountMicros"),_.U("design:type",Object),_.U("design:paramtypes",[])],s4.prototype,"confirmLargeAmountCommand",null);_.E([_.C("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.U("design:type",Object),_.U("design:paramtypes",[])],s4.prototype,"donateButtonRenderer",null);_.E([_.cW("shouldShowValidationError"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s4.prototype,"setInputError",null);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],s4.prototype,"setInitialCheckboxValue",null);_.E([_.p({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],s4);
_.N(s4,"ytd-donation-amount-picker-renderer",function(){if(kMv!==void 0)return kMv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return kMv=X},{mode:1});var ezR;var D5=function(){return _.O.apply(this,arguments)||this};
_.S(D5,_.O);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],D5.prototype,"ytComponentBehavior",void 0);_.E([_.K({}),_.U("design:type",Object)],D5.prototype,"data",void 0);_.E([_.p({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],D5);
_.N(D5,"ytd-donation-post-transaction-content",function(){if(ezR!==void 0)return ezR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ezR=X},{mode:1});var jTa;var S6=function(){return _.O.apply(this,arguments)||this};
_.S(S6,_.O);S6.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.E([_.K({}),_.U("design:type",Object)],S6.prototype,"data",void 0);_.E([_.p({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],S6);
_.N(S6,"ytd-donation-post-transaction-renderer",function(){if(jTa!==void 0)return jTa;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return jTa=X},{mode:1});var gUi;var FKN;var hn=function(){return _.O.apply(this,arguments)||this};
_.S(hn,_.O);hn.prototype.computeIsStreamingProvider=function(X){return!!X.isStreamingShelf};
hn.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],hn.prototype,"data",void 0);_.E([_.K({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],hn.prototype,"isStreamingProvider",void 0);
_.E([_.p({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],hn);
_.N(hn,"ytd-media-provider-renderer",function(){if(FKN!==void 0)return FKN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return FKN=X},{mode:1});var TfN;var Z5=function(){return _.O.apply(this,arguments)||this};
_.S(Z5,_.O);Z5.prototype.observeLightsourcePalette=function(){var X,t=(X=this.data)==null?void 0:X.vibrantsourceColorPaletteData;t&&_.fX(this.hostElement,t)};
Z5.prototype.observeLightsourcePalette=Z5.prototype.observeLightsourcePalette;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Z5.prototype,"data",void 0);
_.E([_.cW("data.vibrantsourceColorPaletteData"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Z5.prototype,"observeLightsourcePalette",null);_.E([_.p({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Z5);
_.N(Z5,"ytd-streaming-pop-up-dialog",function(){if(TfN!==void 0)return TfN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return TfN=X},{mode:1});var q2=function(){return _.O.apply(this,arguments)||this};
_.S(q2,_.O);q2.prototype.onPopupOpened_=function(){var X;((X=this.data)==null?0:X.serviceEndpoint)&&_.gw().resolve(_.F3).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
q2.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
q2.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"}}}}};
q2.prototype.onPopupOpened_=q2.prototype.onPopupOpened_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.oT),_.U("design:type",Object)],q2.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],q2.prototype,"data",void 0);
_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],q2.prototype,"onPopupOpened_",null);_.E([_.p({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],q2);
_.N(q2,"ytd-brandconnect-popup-renderer",function(){if(gUi!==void 0)return gUi;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return gUi=X},{mode:1});var AX2;var CO=function(){return _.O.apply(this,arguments)||this};
_.S(CO,_.O);_.H=CO.prototype;_.H.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.dataChanged=function(){for(var X=0;X<this.getOptionRenderers().length;X++)this.notifyPath("data.options."+X+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+X+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.H.updateSubmitButton=function(X){this.set("data.submitButton.buttonRenderer.isDisabled",!X)};
_.H.computeAlt=function(X){return _.bu(X)};
_.H.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.gw().resolve(_.F3).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.H.getOptionRenderers=function(X){return(X=X||this.data)&&X.options?X.options.reduce(function(t,G){G.checkboxSurveyOptionRenderer&&t.push(G.checkboxSurveyOptionRenderer);return t},[]):[]};
_.H.onOptionChange=function(X){var t=this,G=!1;if(X.detail.checked)for(var y=this.getOptionRenderers().find(function(V){return V.value===X.detail.value}),w=this.getOptionRenderers(),z=0;z<w.length;z++){var B=w[z];
this.notifyPath("data.options."+z+".checkboxSurveyOptionRenderer.checked");B.checked&&((y==null?0:y.isExclusiveOption)?!B.isExclusiveOption:B.isExclusiveOption)?this.set("data.options."+z+".checkboxSurveyOptionRenderer.checked",!1):B.checked&&(G=!0)}else G=this.getOptionRenderers().some(function(V,b){t.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked");return V.checked});
this.updateSubmitButton(G)};
_.H.onSubmitTap=function(){var X=this.getOptionRenderers().filter(function(z){return z.checked});
if(X.length!==0){var t=X.map(function(z){return z.responseEndpoint});
X=[];for(var G=1;G<t.length;G++){var y=void 0,w=(y=_.Y(t[G],_.fV))==null?void 0:y.feedbackToken;w&&X.push(w)}t=[t[0]];X.length&&t.push({extra_feedback_tokens:X});_.hE(this.hostElement,t);_.sl(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);X=this.data&&this.data.submitActions||[];if(_.A("kevlar_command_handler_migration_killswitch"))_.Z0(this.hostElement,X,this.hostElement);else for(X=_.J(X),t=X.next();!t.done;t=X.next())this.ytComponentBehavior.resolveCommand(t.value)}};
CO.prototype.onOptionChange=CO.prototype.onOptionChange;CO.prototype.dataChanged=CO.prototype.dataChanged;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],CO.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],CO.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.E([_.q(i8q),_.U("design:type",Object)],CO.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],CO.prototype,"data",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],CO.prototype,"dataChanged",null);
_.E([_.WW("ytd-checkbox-survey-option-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],CO.prototype,"onOptionChange",null);_.E([_.p({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],CO);
_.N(CO,"ytd-checkbox-survey-renderer",function(){if(AX2!==void 0)return AX2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return AX2=X},{mode:1});var YLB;var sTr;var KO=function(){return _.O.apply(this,arguments)||this};
_.S(KO,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.E([_.q(Rk4),_.U("design:type",Object)],KO.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],KO.prototype,"data",void 0);_.E([_.p({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],KO);
_.N(KO,"ytd-dismissal-reason-text-renderer",function(){if(sTr!==void 0)return sTr;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return sTr=X},{mode:1});var DKB;var O4=function(){return _.O.apply(this,arguments)||this};
_.S(O4,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.E([_.q(Rk4),_.U("design:type",Object)],O4.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],O4.prototype,"data",void 0);_.E([_.p({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],O4);
_.N(O4,"ytd-dismissal-reason-video-renderer",function(){if(DKB!==void 0)return DKB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return DKB=X},{mode:1});var uP=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(uP,_.O);_.H=uP.prototype;_.H.created=function(){this.selectedFeedbackTokens=new VJ};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.H.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.H.onDismissalReasonSelected=function(X,t){_.Yt(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(t);this.hasReasonsSelected=!0};
_.H.onDismissalReasonDeselected=function(X,t){_.Yt(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(t);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.H.onCancelTap=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.H.onSubmitTap=function(){var X=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(X={feedback_tokens:X},_.gw().resolve(_.F3).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},X,{element:this.hostElement})}));_.sl(this.hostElement,"yt-close-popup-action")};
uP.prototype.onDismissalReasonDeselected=uP.prototype.onDismissalReasonDeselected;uP.prototype.onDismissalReasonSelected=uP.prototype.onDismissalReasonSelected;uP.prototype.dataChanged=uP.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uP.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Boolean)],uP.prototype,"hasReasonsSelected",void 0);_.E([_.K(),_.U("design:type",VJ)],uP.prototype,"selectedFeedbackTokens",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uP.prototype,"darkerDarkTheme",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uP.prototype,"dataChanged",null);
_.E([_.WW("yt-dismissal-reason-selected"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,String]),_.U("design:returntype")],uP.prototype,"onDismissalReasonSelected",null);_.E([_.WW("yt-dismissal-reason-deselected"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,String]),_.U("design:returntype")],uP.prototype,"onDismissalReasonDeselected",null);_.E([_.p({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],uP);
_.N(uP,"ytd-dismissal-follow-up-renderer",function(){if(YLB!==void 0)return YLB;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return YLB=X},{mode:1});var SLB;var QO=function(){return _.O.apply(this,arguments)||this};
_.S(QO,_.O);_.H=QO.prototype;_.H.onCheckedChange=function(){this.multiselect||_.Yt(this.hostElement,"yt-feedback-single-select-changed");_.Sm(this.hostElement).querySelector("#freeform").focus();_.Yt(this.hostElement,"yt-refit")};
_.H.showTextBox=function(X,t){return X&&t};
_.H.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))};
_.H.updateDataCheckedFromBinding=function(X){this.set("data.checked",X.detail.value)};
_.H.updateDataResultTextFromBinding=function(X){this.set("data.resultText",X.detail.value)};
QO.prototype.dataChanged=QO.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],QO.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],QO.prototype,"multiselect",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],QO.prototype,"dataChanged",null);
_.E([_.p({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],QO);
_.N(QO,"ytd-feedback-option-renderer",function(){if(SLB!==void 0)return SLB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return SLB=X},{mode:1});var hzB;var Ig=function(){return _.O.apply(this,arguments)||this};
_.S(Ig,_.O);Ig.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Ig.prototype.onSingleSelectCheckedChanged=function(X){X=_.k3(X);for(var t=0;t<this.data.options.length;t++)if(X.data!==_.Y(this.data.options[t],UWH)){var G="data.options."+t+".feedbackOptionRenderer.checked";this.notifyPath(G);this.set(G,!1)}};
Ig.prototype.onSingleSelectCheckedChanged=Ig.prototype.onSingleSelectCheckedChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ig.prototype,"data",void 0);
_.E([_.WW("yt-feedback-single-select-changed"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],Ig.prototype,"onSingleSelectCheckedChanged",null);_.E([_.p({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Ig);
_.N(Ig,"ytd-feedback-question-renderer",function(){if(hzB!==void 0)return hzB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return hzB=X},{mode:1});var Zkr;var Wu=function(){return _.O.apply(this,arguments)||this};
_.S(Wu,_.O);Wu.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Wu.prototype.getSelectedFeedbackResults=function(){for(var X={},t=0;t<this.data.questions.length;t++)for(var G=_.Y(this.data.questions[t],E6Q),y=0;y<G.options.length;y++){var w=_.Y(G.options[y],UWH);w&&w.checked&&(X[w.optionKey]=w.resultText)}return X};
Wu.prototype.onKeyUp=function(){var X=this;_.CX(_.vz,function(){_.Yt(X.hostElement,"yt-refit")});
_.vz.start()};
Wu.prototype.submitSurvey=function(){var X=this.getSelectedFeedbackResults();Object.keys(X).length>0&&this.data.submitFeedbackEndpoint&&(X={survey_results:X,is_feedback_token_unencrypted:!0},_.gw().resolve(_.F3).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},X,{element:this.hostElement})}))};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Wu.prototype,"data",void 0);_.E([_.p({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Wu);
_.N(Wu,"ytd-feedback-survey-renderer",function(){if(Zkr!==void 0)return Zkr;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Zkr=X},{mode:1});var qLR;var COB;var cu=function(){return _.O.apply(this,arguments)||this};
_.S(cu,_.O);cu.prototype.computeAlt=function(X){return _.bu(X)};
cu.prototype.submitResponse=function(){var X,t;(X=this.data)!=null&&X.feedbackToken&&((t=this.data)==null?void 0:t.nextStageIndex)!==void 0&&(_.D0(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.D0(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
cu.prototype.onClick=function(){this.submitResponse()};
cu.prototype.onClick=cu.prototype.onClick;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],cu.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],cu.prototype,"vertical",void 0);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],cu.prototype,"onClick",null);
_.E([_.p({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],cu);
_.N(cu,"ytd-single-select-answer-option-renderer",function(){if(COB!==void 0)return COB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return COB=X},{mode:1});var KKT;var pO=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return X};
_.S(pO,_.O);pO.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
pO.prototype.dataChanged=function(){var X,t;this.vertical=((t=(X=this.data)==null?void 0:X.answerOrientation)!=null?t:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
pO.prototype.submitFeedback=function(X){var t;((t=this.data)==null?0:t.responseEndpoint)&&X&&_.hE(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[X]}])};
pO.prototype.dataChanged=pO.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],pO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],pO.prototype,"eventForwardingBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],pO.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],pO.prototype,"vertical",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],pO.prototype,"darkerDarkTheme",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],pO.prototype,"dataChanged",null);_.E([_.p({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],pO);
_.N(pO,"ytd-single-select-question-renderer",function(){if(KKT!==void 0)return KKT;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return KKT=X},{mode:1});var rC=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return X};
_.S(rC,_.O);_.H=rC.prototype;_.H.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"}}}};
_.H.dataChanged=function(){this.jumpToStage(0)};
_.H.jumpToStage=function(X){var t,G;if((t=this.data)==null?0:(G=t.stages)==null?0:G[X])this.currentStage=this.data.stages[X],this.refitAfterRender()};
_.H.computeAlt=function(X){return _.bu(X)};
_.H.computeSimpleMessage=function(X){var t;return(t=_.Y(X,iur))==null?void 0:t.messageText};
_.H.computeHideDismiss=function(X){var t;return(t=_.Y(X,g6q))==null?void 0:t.hideParentDismissButton};
_.H.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action");_.Y(this.currentStage,iur)||this.data.dismissalEndpoint&&_.gw().resolve(_.F3).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.H.refitAfterRender=function(){var X=this;_.V8(this,function(){_.Yt(X.hostElement,"yt-refit")})};
rC.prototype.dataChanged=rC.prototype.dataChanged;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],rC.prototype,"eventForwardingBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],rC.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.q(i8q),_.U("design:type",Object)],rC.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rC.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],rC.prototype,"currentStage",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],rC.prototype,"dataChanged",null);_.E([_.p({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],rC);
_.N(rC,"ytd-multi-stage-survey-renderer",function(){if(qLR!==void 0)return qLR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return qLR=X},{mode:1});var Okq;var N2=function(){return _.O.apply(this,arguments)||this};
_.S(N2,_.O);N2.prototype.computeAlt=function(X){return _.bu(X)};
N2.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.gw().resolve(_.F3).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.sl(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.mjT(!1)))};
N2.prototype.onTap=function(){this.vertical&&this.submitResponse()};
N2.prototype.onTap=N2.prototype.onTap;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],N2.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],N2.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],N2.prototype,"vertical",void 0);
_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],N2.prototype,"onTap",null);_.E([_.p({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],N2);
_.N(N2,"ytd-single-option-survey-option-renderer",function(){if(Okq!==void 0)return Okq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Okq=X},{mode:1});var u$i;var Pu=function(){return _.O.apply(this,arguments)||this};
_.S(Pu,_.O);_.H=Pu.prototype;_.H.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.dataChanged=function(){var X,t;this.vertical=(((X=this.data)==null?void 0:(t=X.surveyOrientation)==null?void 0:t.type)||"HORIZONTAL")==="VERTICAL"};
_.H.computeAlt=function(X){return _.bu(X)};
_.H.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.gw().resolve(_.F3).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.mjT(!1))};
Pu.prototype.dataChanged=Pu.prototype.dataChanged;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Pu.prototype,"eventForwardingBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Pu.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Pu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(i8q),_.U("design:type",Object)],Pu.prototype,"ytdHatsSurveyBehavior",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],Pu.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Pu.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Pu.prototype,"vertical",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Pu.prototype,"dataChanged",null);_.E([_.p({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Pu);
_.N(Pu,"ytd-single-option-survey-renderer",function(){if(u$i!==void 0)return u$i;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return u$i=X},{mode:1});var QTH;var E4=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(E4,_.O);E4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
E4.prototype.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action")};
E4.prototype.onNavigate=function(){_.sl(this.hostElement,"yt-close-popup-action")};
E4.prototype.onNavigate=E4.prototype.onNavigate;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],E4.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],E4.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],E4.prototype,"darkerDarkTheme",void 0);
_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],E4.prototype,"onNavigate",null);_.E([_.p({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],E4);
_.N(E4,"ytd-survey-follow-up-renderer",function(){if(QTH!==void 0)return QTH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return QTH=X},{mode:1});var ImR;var WKR;var cXN;var U4=function(){var X=_.O.apply(this,arguments)||this;X.polymer2="Element"in Polymer;return X};
_.S(U4,_.O);_.H=U4.prototype;_.H.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.H.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.H.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.H.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("minutes-changed",this.minutes))};
_.H.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("seconds-changed",this.seconds))};
_.H.updateMinutesFromBinding=function(X){this.minutes=X.detail.value};
_.H.updateSecondsFromBinding=function(X){this.seconds=X.detail.value};
U4.prototype.secondsChangedForBinding=U4.prototype.secondsChangedForBinding;U4.prototype.minutesChangedForBinding=U4.prototype.minutesChangedForBinding;U4.prototype.secondsChanged=U4.prototype.secondsChanged;_.E([_.K(),_.U("design:type",String)],U4.prototype,"minutes",void 0);_.E([_.K(),_.U("design:type",String)],U4.prototype,"seconds",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],U4.prototype,"polymer2",void 0);
_.E([_.rt("#seconds"),_.U("design:type",Object)],U4.prototype,"secondsEl",void 0);_.E([_.cW("seconds"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],U4.prototype,"secondsChanged",null);_.E([_.cW("minutes"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],U4.prototype,"minutesChangedForBinding",null);
_.E([_.cW("seconds"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],U4.prototype,"secondsChangedForBinding",null);_.E([_.$F({is:"yt-timestamp-input",disableElementRegistration:!0})],U4);
_.N(U4,"yt-timestamp-input",function(){if(cXN===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;WKR===void 0&&(WKR=document.createElement("template"));var y=WKR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);cXN=X}X=cXN;return X},{mode:2});var mJ=function(){return _.O.apply(this,arguments)||this};
_.S(mJ,_.O);_.H=mJ.prototype;_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20160_scroller.dialogElement=this.hostElement.parentNode};
_.H.dataChanged=function(){var X=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.DR().getPlayerPromise().then(function(t){t=t.getCurrentTime();X.minutes=Math.floor(t/60).toString();X.seconds=(Math.floor(t)%60).toString()})};
_.H.onTapSubmit=function(X){X.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(X={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(X.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(X.minutes=this.minutes,X.seconds=this.seconds),_.gw().resolve(_.F3).resolveCommand(this.serviceEndpoint,{form:Object.assign({},X,{element:this.hostElement})}))};
_.H.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.H.onYtServiceRequestCompleted=function(X,t){t=t.actions;if(Array.isArray(t))for(var G=0,y=t.length;G<y;G++)_.Y(t[G],_.iY)&&(X.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(t[G]))};
_.H.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.H.toggleSubmitButton=function(X){this.set("submitButton.isDisabled",!X)};
_.H.handleInput=function(){var X=this.issueType,t=this.affiliation,G=this.minutes,y=this.seconds;G=!this.showTimestamp||!!G&&!!y;this.toggleSubmitButton(!!this.descriptionText&&!!X&&!!t&&G)};
_.H.computeServiceEndpoint=function(X){return this.get("submitButton.buttonRenderer.serviceEndpoint",X)};
_.H.computeSubmitButton=function(X){(X=this.get("submitButton.buttonRenderer",X))&&(X=Object.assign({},X,{serviceEndpoint:void 0}));return X};
_.H.computeShowTimestamp=function(X){return!!X};
_.H.onValueChangedForIssueType=function(X){this.issueType=X.detail.value};
_.H.onValueChangedForAffiliation=function(X){this.affiliation=X.detail.value};
_.H.updateDescriptionTextFromBinding=function(X){this.descriptionText=X.detail.value};
_.H.updateFullNameTextFromBinding=function(X){this.fullNameText=X.detail.value};
_.H.updateMinutesFromBinding=function(X){this.minutes=X.detail.value};
_.H.updateSecondsFromBinding=function(X){this.seconds=X.detail.value};
mJ.prototype.handleInput=mJ.prototype.handleInput;mJ.prototype.onYtServiceRequestError=mJ.prototype.onYtServiceRequestError;mJ.prototype.onYtServiceRequestCompleted=mJ.prototype.onYtServiceRequestCompleted;mJ.prototype.onYtServiceRequestSent=mJ.prototype.onYtServiceRequestSent;mJ.prototype.dataChanged=mJ.prototype.dataChanged;_.E([_.q(_.cr.YtOpenPopupBehavior),_.U("design:type",Object)],mJ.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.E([_.rt("#scroller"),_.U("design:type",Object)],mJ.prototype,"JSC$20160_scroller",void 0);_.E([_.rt("#description"),_.U("design:type",HTMLInputElement)],mJ.prototype,"description",void 0);_.E([_.rt("#full-name"),_.U("design:type",Object)],mJ.prototype,"fullName",void 0);_.E([_.K(),_.U("design:type",Object)],mJ.prototype,"data",void 0);
_.E([_.K({computed:"computeShowTimestamp(data.timestampLabel)"}),_.U("design:type",Boolean)],mJ.prototype,"showTimestamp",void 0);_.E([_.K({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.U("design:type",Object)],mJ.prototype,"serviceEndpoint",void 0);_.E([_.K({computed:"computeSubmitButton(data)"}),_.U("design:type",Object)],mJ.prototype,"submitButton",void 0);_.E([_.K(),_.U("design:type",String)],mJ.prototype,"descriptionText",void 0);
_.E([_.K(),_.U("design:type",Number)],mJ.prototype,"issueType",void 0);_.E([_.K(),_.U("design:type",Number)],mJ.prototype,"affiliation",void 0);_.E([_.K(),_.U("design:type",String)],mJ.prototype,"fullNameText",void 0);_.E([_.K(),_.U("design:type",String)],mJ.prototype,"minutes",void 0);_.E([_.K(),_.U("design:type",String)],mJ.prototype,"seconds",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],mJ.prototype,"dataChanged",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],mJ.prototype,"onYtServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],mJ.prototype,"onYtServiceRequestCompleted",null);
_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],mJ.prototype,"onYtServiceRequestError",null);_.E([_.cW("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],mJ.prototype,"handleInput",null);_.E([_.p({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],mJ);
_.N(mJ,"ytd-legal-report-details-form-renderer",function(){if(ImR!==void 0)return ImR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return ImR=X},{mode:1});var p8R;var Rg=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return X};
_.S(Rg,_.O);Rg.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Rg.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var X=this.formRenderer.getForm();X&&this.data.submitEndpoint&&(_.gw().resolve(_.F3).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},X,{element:this.hostElement})}),_.sl(this.hostElement,"yt-close-popup-action"))}};
Rg.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.sl(this.hostElement,"yt-close-popup-action"))};
Rg.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Rg.prototype.onPopupClosed=Rg.prototype.onPopupClosed;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Rg.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Rg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);
_.E([_.rt("yt-form-renderer"),_.U("design:type",Object)],Rg.prototype,"formRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],Rg.prototype,"data",void 0);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rg.prototype,"onPopupClosed",null);_.E([_.p({is:"ytd-form-popup-content",disableElementRegistration:!0})],Rg);
_.N(Rg,"ytd-form-popup-content",function(){if(p8R!==void 0)return p8R;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return p8R=X},{mode:1});var rXN;var iP=function(){return _.O.apply(this,arguments)||this};
_.S(iP,_.O);iP.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iP.prototype.onPopupOpened=function(){_.Yt(this.hostElement,"yt-invalidate-popup-tabbables")};
iP.prototype.onYtServiceRequestCompleted=function(X,t){t.data&&t.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Yt(this.hostElement,"yt-invalidate-popup-tabbables"))};
iP.prototype.onYtServiceRequestCompleted=iP.prototype.onYtServiceRequestCompleted;iP.prototype.onPopupOpened=iP.prototype.onPopupOpened;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],iP.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],iP.prototype,"data",void 0);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],iP.prototype,"onPopupOpened",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],iP.prototype,"onYtServiceRequestCompleted",null);_.E([_.p({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],iP);
_.N(iP,"ytd-form-popup-renderer",function(){if(rXN!==void 0)return rXN;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return rXN=X},{mode:1});var NfQ;var LO=function(){var X=_.O.apply(this,arguments)||this;X.isLoading=!1;return X};
_.S(LO,_.O);_.H=LO.prototype;_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");m_Q(this.hostElement)};
_.H.onYtServiceRequestSent=function(){this.isLoading=!0};
_.H.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.H.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Z0(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.H.closePopupHandler=function(){this.fireOnCloseActions()};
_.H.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var X=this.get("data.headerImage.thumbnails");X&&(X=_.S_(X,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+X+")")}};
_.H.onYtNavigate=function(X){(X=_.k3(X))&&X.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
LO.prototype.onYtNavigate=LO.prototype.onYtNavigate;LO.prototype.onHeaderImageChanged=LO.prototype.onHeaderImageChanged;LO.prototype.closePopupHandler=LO.prototype.closePopupHandler;LO.prototype.onYtServiceRequestCompleted=LO.prototype.onYtServiceRequestCompleted;LO.prototype.onYtServiceRequestSent=LO.prototype.onYtServiceRequestSent;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],LO.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],LO.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],LO.prototype,"isLoading",void 0);_.E([_.rt("#header"),_.U("design:type",HTMLDivElement)],LO.prototype,"header",void 0);_.E([_.rt("#confirm-button"),_.U("design:type",_.Ub)],LO.prototype,"confirmButton",void 0);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],LO.prototype,"onYtServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],LO.prototype,"onYtServiceRequestCompleted",null);
_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],LO.prototype,"closePopupHandler",null);_.E([_.cW("data.headerImage"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],LO.prototype,"onHeaderImageChanged",null);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],LO.prototype,"onYtNavigate",null);
_.E([_.p({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],LO);
_.N(LO,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(NfQ!==void 0)return NfQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return NfQ=X},{mode:1});var POT;var vu=function(){var X=_.O.apply(this,arguments)||this;X.isLoading=!1;return X};
_.S(vu,_.O);_.H=vu.prototype;_.H.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"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);m_Q(this.hostElement)};
_.H.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.H.onYtServiceRequestError=function(X){_.F7(this.hostElement,X.detail.error.message)};
_.H.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.H.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.sl(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.H.onDataChanged=function(){this.isLoading=!1;var X=this.get("data.headerImage.thumbnails");X&&(X=_.S_(X,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+X+")");X=_.lw();var t=_.a4(),G=this.get("data.trackingParams");G&&t&&X&&_.w9(X,t,_.i$(G))};
_.ke.Object.defineProperties(vu.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
vu.prototype.onDataChanged=vu.prototype.onDataChanged;vu.prototype.onDomChange=vu.prototype.onDomChange;vu.prototype.onYtServiceRequestError=vu.prototype.onYtServiceRequestError;vu.prototype.onYtServiceRequestCompleted=vu.prototype.onYtServiceRequestCompleted;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],vu.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vu.prototype,"isLoading",void 0);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],vu.prototype,"hasDescription",null);_.E([_.rt("tp-yt-paper-dialog-scrollable"),_.U("design:type",Object)],vu.prototype,"scrollable",void 0);_.E([_.rt("#header"),_.U("design:type",HTMLElement)],vu.prototype,"header",void 0);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],vu.prototype,"onYtServiceRequestCompleted",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],vu.prototype,"onYtServiceRequestError",null);
_.E([_.WW("dom-change"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],vu.prototype,"onDomChange",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vu.prototype,"onDataChanged",null);_.E([_.p({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],vu);
_.N(vu,"ytd-gaming-account-link-setting-renderer",function(){if(POT!==void 0)return POT;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return POT=X},{mode:1});var EUa;var UK2;var ag=function(){var X=_.O.apply(this,arguments)||this;X.isHeader=!1;X.getEndpointForm=function(){return USH(X.data)};
return X};
_.S(ag,_.O);_.H=ag.prototype;_.H.triggerHintActions=function(){var X=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var t=_.D0(X.hostElement,"yt-get-opened-popups-action");!(t&&t.length===1?t[0]:[]).some(function(G){G=G.openPopupAction.popupType;return G==="SURVEY"||G==="MEALBAR"||G==="HINT"})&&X.data.hintActions&&X.guideOpened&&(_.Z0(X.hostElement,X.data.hintActions,X.hostElement),X.data.hintActions=void 0)})};
_.H.getBadgeIconType=function(X){return X&&X.liveBroadcasting?"live":null};
_.H.onDown=function(){this.interaction.triggerDown()};
_.H.onUp=function(){this.interaction.triggerUp()};
_.H.onTap=function(X){if(this.data.serviceEndpoint){var t;_.A("shorts_controller_retrieve_seedless_sequence_v2")&&((t=_.Y(this.data.serviceEndpoint,_.E8))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):E3T(this.data.serviceEndpoint,this);X.preventDefault()}else this.data.navigationEndpoint&&!_.Fa(_.be(X),this.hostElement,["A".toString()])&&_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.H.computeActive=function(X,t){if(!X)return!1;var G=X.navigationEndpoint;X=X.serviceEndpoint;if(!G&&!X||!t)return!1;if(G){X=(X=_.cy(t))&&["subscriptions","filteredsubscriptions"].includes(X);if(_.Y(G,_.pp)&&_.Y(t,_.pp)&&!X){var y=_.Y(G,_.pp).browseId;t=_.Y(t,_.pp).browseId;return y!==void 0&&t!==void 0&&(y===t||y==="VLWL"&&t==="FEwatch_later"||y==="FEwatch_later"&&t==="VLWL")}var w;G=(w=_.Y(G.commandMetadata,_.jQ))==null?void 0:w.url;t=(y=_.Y(t.commandMetadata,_.jQ))==null?void 0:y.url;return!(!G||
!t||G!==t&&G!==_.qJ(t))}return this.isActiveShortsTab(X,t)};
_.H.isActiveShortsTab=function(X,t){t=!!_.Y(t,_.E8)||!!_.Y(t,_.$n);return(!!_.Y(X,_.E8)||!!_.Y(X,_.$n))&&t};
_.H.computeIsPrimary=function(X){return!!X};
_.ke.Object.defineProperties(ag.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 X=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&X)return X}}});
ag.prototype.onTap=ag.prototype.onTap;ag.prototype.onUp=ag.prototype.onUp;ag.prototype.onDown=ag.prototype.onDown;ag.prototype.triggerHintActions=ag.prototype.triggerHintActions;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ag.prototype,"componentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ag.prototype,"rendererBehavior",void 0);_.E([_.q(_.gG.YtTaskEmitterBehavior),_.U("design:type",Object)],ag.prototype,"taskEmitterBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],ag.prototype,"activeEndpoint",void 0);_.E([_.K(),_.U("design:type",Object)],ag.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],ag.prototype,"guideOpened",void 0);_.E([_.K(),_.U("design:type",String)],ag.prototype,"type",void 0);_.E([_.rt("yt-interaction"),_.U("design:type",Object)],ag.prototype,"interaction",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ag.prototype,"isHeader",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data","activeEndpoint"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ag.prototype,"active",null);_.E([_.K({reflectToAttribute:!0}),_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ag.prototype,"isPrimary",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.count","data.presentationStyle","data.badges.*"),_.U("design:type",String),_.U("design:paramtypes",[])],ag.prototype,"lineEndStyle",null);
_.E([_.C("lineEndStyle"),_.U("design:type",Object),_.U("design:paramtypes",[])],ag.prototype,"ariaLabel",null);_.E([_.cW("data.hintActions","guideOpened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ag.prototype,"triggerHintActions",null);_.E([_.WW("down"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ag.prototype,"onDown",null);
_.E([_.WW("up"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ag.prototype,"onUp",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],ag.prototype,"onTap",null);_.E([_.p({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],ag);
_.N(ag,"ytd-guide-entry-renderer",function(){if(UK2!==void 0)return UK2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return UK2=X},{mode:1});var lP=function(){var X=_.O.apply(this,arguments)||this;X.userToggled=!1;return X};
_.S(lP,_.O);_.H=lP.prototype;_.H.getItemsPath=function(){return"data.expandableItems"};
_.H.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.H.onExpanderItemTapped=function(X){var t=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.A("kevlar_guide_expandable_items_killswitch")&&_.V8(this,function(){_.bx(t.expandableItems)});
X.preventDefault()};
_.H.onCollapserItemTapped=function(X){var t=this;this._setExpanded(!1);this.userToggled=!0;X.preventDefault();this.expandableItems&&!_.A("kevlar_guide_collapsible_items_killswitch")&&_.V8(this,function(){_.VG(t.hostElement)})};
_.H.observeActiveEndpoint=function(){for(var X=this.activeEndpoint,t=this.data,G=this.expandableItems.children,y=0,w=G.length;y<w;y++)G[y].activeEndpoint=X;t&&t.autoExpandCommand&&X&&!this.userToggled&&(G=this.data.autoExpandCommand,t=!(!_.Y(G,_.pp)||!_.Y(X,_.pp)||_.Y(G,_.pp).browseId!==_.Y(X,_.pp).browseId),X=this.get("commandMetadata.webCommandMetadata.url",X),G=this.get("commandMetadata.webCommandMetadata.url",G),t=t||!!(X&&G&&X.includes(G)),this._setExpanded(t),t&&this.ytLazyListBehavior.fillRemainingListItems())};
lP.prototype.observeActiveEndpoint=lP.prototype.observeActiveEndpoint;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.AV.YtLazyListBehavior),_.U("design:type",Object)],lP.prototype,"ytLazyListBehavior",void 0);_.E([_.rt("#expandable-items"),_.U("design:type",HTMLElement)],lP.prototype,"expandableItems",void 0);
_.E([_.K(),_.U("design:type",Object)],lP.prototype,"data",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0}),_.U("design:type",Boolean)],lP.prototype,"expanded",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],lP.prototype,"initialCount",void 0);_.E([_.K(),_.U("design:type",Object)],lP.prototype,"activeEndpoint",void 0);_.E([_.cW("data","activeEndpoint","canShowMore"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],lP.prototype,"observeActiveEndpoint",null);
_.E([_.p({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],lP);
_.N(lP,"ytd-guide-collapsible-entry-renderer",function(){if(EUa!==void 0)return EUa;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return EUa=X},{mode:_.Cz("kevlar_poly_si_batch_j079")?1:2});var mKv;var RzR;var xi=function(){var X=_.O.apply(this,arguments)||this;X.allVideosCount=0;X.renderGuideEntry=!1;return X};
_.S(xi,_.O);xi.prototype.observeRenderEntry=function(){var X;this.renderGuideEntry=!((X=this.data)==null||!X.alwaysShow)||!!this.allVideosCount};
xi.prototype.observeRenderEntry=xi.prototype.observeRenderEntry;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],xi.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xi.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],xi.prototype,"activeEndpoint",void 0);_.E([_.K({selector:_.OcV}),_.U("design:type",Object)],xi.prototype,"allVideosCount",void 0);
_.E([_.K(),_.U("design:type",Object)],xi.prototype,"renderGuideEntry",void 0);_.E([_.U0("allVideosCount","data.alwaysShow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xi.prototype,"observeRenderEntry",null);_.E([_.p({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],xi);
_.N(xi,"ytd-guide-downloads-entry-renderer",function(){if(RzR===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);RzR=X}X=RzR;return X},{mode:1});var fO=function(){var X=_.O.apply(this,arguments)||this;X.youtab=_.A("web_enable_youtab");X.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return X};
_.S(fO,_.O);_.H=fO.prototype;_.H.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]]"}}}}}};
_.H.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var X=this.sectionItems.children,t=0,G=X.length;t<G;t++)X[t].activeEndpoint=this.activeEndpoint}};
_.H.handleAddToGuideSectionAction=function(X){var t=_.Y(X,o6R);if(t&&this.data&&(X=t.items,t=t.handlerData,X&&t&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(t)>-1)){t=0;for(var G=X.length;t<G;t++)X[t].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,X[t])}};
_.H.handleRemoveFromGuideSectionAction=function(X){var t=_.Y(X,J_V);t&&this.data&&(X=t.guideEntryId,t=t.handlerData,X&&t&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(t)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(X,this.data.sectionItems),this.removeFromCollapsedSection(X,this.data.sectionItems)))};
_.H.removeFromExpandedSection=function(X,t){X=this.getEntryIndexMatchingId(X,t);X!==-1&&this.splice("data.sectionItems",X,1)};
_.H.removeFromCollapsedSection=function(X,t){var G=t.findIndex(function(y){return!!_.Y(y,S2r)});
G&&G!==-1&&t[G]&&_.Y(t[G],S2r)&&(t=_.Y(t[G],S2r).expandableItems)&&(X=this.getEntryIndexMatchingId(X,t),X!==-1&&this.splice("data.sectionItems."+G+".guideCollapsibleEntryRenderer.expandableItems",X,1))};
_.H.getEntryIndexMatchingId=function(X,t){var G=this;return t.findIndex(function(y){return G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y)===X})};
fO.prototype.activeEndpointChanged=fO.prototype.activeEndpointChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],fO.prototype,"actionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.rt("#section-items"),_.U("design:type",HTMLDivElement)],fO.prototype,"sectionItems",void 0);
_.E([_.rt("#header-entry"),_.U("design:type",Object)],fO.prototype,"headerEntry",void 0);_.E([_.K(),_.U("design:type",Object)],fO.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],fO.prototype,"activeEndpoint",void 0);_.E([_.K(),_.U("design:type",Object)],fO.prototype,"youtab",void 0);_.E([_.cW("activeEndpoint"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fO.prototype,"activeEndpointChanged",null);
_.E([_.p({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],fO);
_.N(fO,"ytd-guide-collapsible-section-entry-renderer",function(){if(mKv===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);mKv=X}X=mKv;return X},{mode:1});var ik4;var LKq;var M2=function(){var X=_.O.apply(this,arguments)||this;X.modernTypography=_.A("web_modern_typography");X.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 X};
_.S(M2,_.O);_.H=M2.prototype;
_.H.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}}}}};
_.H.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var X=_.D0(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);X&&X.length===1&&X[0]&&_.D0(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.H.handleResetChannelUnreadCountCommand=function(X){var t;(X=(t=_.Y(X,n6H))==null?void 0:t.channelId)&&this.data&&this.data.items&&(t=this.getPathToEntryMatchingId(X))&&(this.set(t+".guideEntryRenderer.count",0),this.set(t+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.H.handleResetSubscriptionsUnreadDotCommand=function(X){var t,G=(t=_.Y(X,VTN))==null?void 0:t.targetId,y;G&&(y=this.data)!=null&&y.items&&(X=this.data.items.findIndex(function(w){var z;return((z=w.guideEntryRenderer)==null?void 0:z.targetId)===G}),X<0||this.set("data.items."+X+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.H.getPathToEntryMatchingId=function(X){if(this.data&&this.data.items){var t=this.getEntryIndexMatchingId(X,this.data.items);if(t>-1)return"data.items."+t;for(var G=0;G<this.data.items.length;G++)if(t=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[G]))if(t=this.getEntryIndexMatchingId(X,t),t>-1)return"data.items."+G+".guideCollapsibleEntryRenderer.expandableItems."+t}};
_.H.handleAddToGuideSectionAction=function(X){var t=this;if(_.Y(X,o6R)){var G=_.Y(X,o6R).items;X=_.Y(X,o6R).handlerData;var y,w;if(G&&X&&((y=this.data)==null?void 0:(w=y.handlerDatas)==null?void 0:w.indexOf(X))>-1){G=G.filter(function(B){return(B=t.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",B))&&!t.isGuideItemPresent(B)});
var z;if(X==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((z=this.data)==null?0:z.items)&&(y=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),y>-1)){this.splice.apply(this,["data.items",y+1,0].concat(_.RY(G)));return}this.unshift.apply(this,["data.items"].concat(_.RY(G)))}}};
_.H.isGuideItemPresent=function(X){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(X,this.data.items)!==-1)return!0;var t=this.data.items.find(function(G){return!!G.guideCollapsibleEntryRenderer});
if((t==null?0:t.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(X,t.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.H.getEntryIndexMatchingId=function(X,t){var G=this;return t.findIndex(function(y){return G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y)===X})};
_.H.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(X,t){var G=this;return t.findIndex(function(y){return G.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",y)===X})};
_.H.handleRemoveFromGuideSectionAction=function(X){if(_.Y(X,J_V)){var t=_.Y(X,J_V).guideEntryId;X=_.Y(X,J_V).handlerData;var G,y;t&&X&&((G=this.data)==null?void 0:(y=G.handlerDatas)==null?void 0:y.indexOf(X))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(t,this.data.items),this.removeFromCollapsedSection(t,this.data.items))}};
_.H.removeFromExpandedSection=function(X,t){X=this.getEntryIndexMatchingId(X,t);X!==-1&&this.splice("data.items",X,1)};
_.H.removeFromCollapsedSection=function(X,t){var G=t.findIndex(function(y){return!!y.guideCollapsibleEntryRenderer});
G!==-1&&(t=t[G].guideCollapsibleEntryRenderer.expandableItems)&&(X=this.getEntryIndexMatchingId(X,t),X!==-1&&this.splice("data.items."+G+".guideCollapsibleEntryRenderer.expandableItems",X,1))};
_.H.activeEndpointChanged=function(){for(var X=_.Sm(this.hostElement).querySelector("#items").children,t=0,G=X.length;t<G;t++)X[t].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.H.guideOpenedChanged=function(){for(var X=_.Sm(this.hostElement).querySelector("#items").children,t=0,G=X.length;t<G;t++)X[t].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
M2.prototype.guideOpenedChanged=M2.prototype.guideOpenedChanged;M2.prototype.activeEndpointChanged=M2.prototype.activeEndpointChanged;M2.prototype.persistentGuideChanged=M2.prototype.persistentGuideChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],M2.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.AV.YtLazyListBehavior),_.U("design:type",Object)],M2.prototype,"ytLazyListBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],M2.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],M2.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],M2.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],M2.prototype,"modernTypography",void 0);_.E([_.K(),_.U("design:type",String)],M2.prototype,"type",void 0);_.E([_.K({value:20}),_.U("design:type",Number)],M2.prototype,"initialCount",void 0);_.E([_.K({value:10}),_.U("design:type",Number)],M2.prototype,"targetFramerate",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],M2.prototype,"autoFill",void 0);_.E([_.K({value:50}),_.U("design:type",Number)],M2.prototype,"renderDelay",void 0);
_.E([_.cW("guidePersistentAndVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],M2.prototype,"persistentGuideChanged",null);_.E([_.U0("activeEndpoint"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],M2.prototype,"activeEndpointChanged",null);_.E([_.U0("guideOpened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],M2.prototype,"guideOpenedChanged",null);
_.E([_.p({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],M2);
_.N(M2,"ytd-guide-section-renderer",function(){if(LKq!==void 0)return LKq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return LKq=X},{mode:_.Cz("kevlar_poly_si_batch_j073")?1:2});var vUH;var Xg=function(){return _.O.apply(this,arguments)||this};
_.S(Xg,_.O);_.ke.Object.defineProperties(Xg.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Xg.prototype,"rendererBehaviors",void 0);_.E([_.K(),_.U("design:type",Object)],Xg.prototype,"data",void 0);_.E([_.K(),_.C("data.signInButton.buttonRenderer.style"),_.U("design:type",Object),_.U("design:paramtypes",[])],Xg.prototype,"alignByText",null);_.E([_.p({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Xg);
_.N(Xg,"ytd-guide-signin-promo-renderer",function(){if(vUH===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);vUH=X}X=vUH;return X},{mode:1});var $m=function(){var X=_.O.apply(this,arguments)||this;X.showFooter=!1;return X};
_.S($m,_.O);$m.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}}}}};
$m.prototype.attached=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1){t=_.gw().resolve(_.jH(_.wb));if(!t)return G.jumpTo(0);t.setGuideData(X.hostElement);return G.yield(0,3)}X.ytLazyListBehavior.initialCount=2;return G.return()})};
$m.prototype.onMouseExit=function(){_.A("web_guide_hover_expansion")&&_.D0(this.hostElement,"yt-guide-mouseleaved",[])};
$m.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
$m.prototype.dataChanged=$m.prototype.dataChanged;$m.prototype.onMouseExit=$m.prototype.onMouseExit;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],$m.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.AV.YtLazyListBehavior),_.U("design:type",Object)],$m.prototype,"ytLazyListBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$m.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],$m.prototype,"showFooter",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],$m.prototype,"autoFill",void 0);_.E([_.WW("mouseleave"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],$m.prototype,"onMouseExit",null);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],$m.prototype,"dataChanged",null);_.E([_.p({is:"ytd-guide-renderer",disableElementRegistration:!0})],$m);
_.N($m,"ytd-guide-renderer",function(){if(ik4!==void 0)return ik4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ik4=X},{mode:_.Cz("kevlar_poly_si_batch_j073")?1:2});var ami;var t2=function(){var X=_.O.apply(this,arguments)||this;X.systemIcons=_.A("kevlar_system_icons");X.frostedGlass=_.A("web_frosted_glass");X.getEndpointForm=function(){return USH(X.data)};
return X};
_.S(t2,_.O);_.H=t2.prototype;_.H.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.H.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.bu(this.data.formattedTitle))};
_.H.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.H.onDown=function(){this.interaction.triggerDown()};
_.H.onUp=function(){this.interaction.triggerUp()};
_.H.onTap=function(X){if(this.data.serviceEndpoint){var t;_.A("shorts_controller_retrieve_seedless_sequence_v2")&&((t=_.Y(this.data.serviceEndpoint,_.E8))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):E3T(this.data.serviceEndpoint,this);X.preventDefault()}else{var G;((G=this.data)==null?0:G.navigationEndpoint)&&!_.Fa(_.be(X),this.hostElement,["A".toString()])&&_.Yt(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.H.computeActive=function(X,t){if(!X)return!1;var G=X.navigationEndpoint;X=X.serviceEndpoint;if(!G&&!X||!t)return!1;if(G){X=_.Y(G,_.pp);var y=_.Y(t,_.pp);if(X&&y)return X.browseId===y.browseId&&X.params===y.params;var w;G=(w=_.Y(G.commandMetadata,_.jQ))==null?void 0:w.url;var z;t=(z=_.Y(t.commandMetadata,_.jQ))==null?void 0:z.url;return!(!G||!t||G!==t&&G!==_.qJ(t))}return this.isActiveShortsTab(X,t)};
_.H.isActiveShortsTab=function(X,t){t=!!_.Y(t,_.E8)||!!_.Y(t,_.$n);return(!!_.Y(X,_.E8)||!!_.Y(X,_.$n))&&t};
_.H.computeTitle=function(X,t){return t?"":_.bu(X)};
_.ke.Object.defineProperties(t2.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
t2.prototype.onTap=t2.prototype.onTap;t2.prototype.onUp=t2.prototype.onUp;t2.prototype.onDown=t2.prototype.onDown;t2.prototype.onActiveStateChange=t2.prototype.onActiveStateChange;t2.prototype.dataChanged=t2.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],t2.prototype,"ytComponentBehavior",void 0);
_.E([_.q(_.xr),_.U("design:type",Object)],t2.prototype,"ironButtonState",void 0);_.E([_.K(),_.U("design:type",Object)],t2.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],t2.prototype,"activeEndpoint",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],t2.prototype,"noLabels",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.U("design:type",Boolean)],t2.prototype,"isActive",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],t2.prototype,"systemIcons",void 0);_.E([_.rt("yt-interaction"),_.U("design:type",Object)],t2.prototype,"interaction",void 0);_.E([_.C("isActive"),_.U("design:type",Object),_.U("design:paramtypes",[])],t2.prototype,"ariaSelected",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],t2.prototype,"frostedGlass",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],t2.prototype,"dataChanged",null);_.E([_.cW("isActive"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],t2.prototype,"onActiveStateChange",null);_.E([_.WW("down"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],t2.prototype,"onDown",null);
_.E([_.WW("up"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],t2.prototype,"onUp",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],t2.prototype,"onTap",null);_.E([_.p({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],t2);
_.N(t2,"ytd-mini-guide-entry-renderer",function(){if(ami!==void 0)return ami;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ami=X},{mode:_.Cz("kevlar_poly_si_batch_j063")?1:2});var lmq;var GW=function(){var X=_.O.apply(this,arguments)||this;X.allVideosCount=0;X.noLabels=_.A("kevlar_mini_guide_no_labels");X.frostedGlass=_.A("web_frosted_glass");return X};
_.S(GW,_.O);_.H=GW.prototype;_.H.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.H.onMouseEnter=function(){_.A("web_guide_hover_expansion")&&_.D0(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.H.visibleChanged=function(){if(this.visible&&!this.data){var X=_.gw().resolve(_.jH(_.wb));X&&X.setGuideData(this.hostElement)}};
_.H.dataChanged=function(){var X=[],t;if((t=this.data)!=null&&t.items){t=_.J(this.data.items);for(var G=t.next();!G.done;G=t.next()){G=G.value;var y=void 0;if((y=G.guideSectionRenderer)==null?0:y.items)for(y=void 0,G=_.J((y=G.guideSectionRenderer)==null?void 0:y.items),y=G.next();!y.done;y=G.next())if(y=y.value,y.guideEntryRenderer)y=y.guideEntryRenderer,y.isPrimary&&X.push({guideEntryRenderer:y});else if(y.guideCollapsibleSectionEntryRenderer){var w=void 0;((w=_.Y(y.guideCollapsibleSectionEntryRenderer.headerEntry,
kk))==null?0:w.isPrimary)&&X.push({guideEntryRenderer:_.Y(y.guideCollapsibleSectionEntryRenderer.headerEntry,kk)});if(y=y.guideCollapsibleSectionEntryRenderer.sectionItems)for(y=_.J(y),w=y.next();!w.done;w=y.next()){var z=w.value;w=_.Y(z,hTa);var B=void 0;((B=_.Y(z,kk))==null?0:B.isPrimary)?X.push({guideEntryRenderer:_.Y(z,kk)}):w&&(z=void 0,_.Y((z=w)==null?void 0:z.entryRenderer,kk)&&(w.alwaysShow||this.allVideosCount)&&X.push({guideEntryRenderer:_.Y(w.entryRenderer,kk)}))}}}}this.miniGuideItems=
X};
_.H.activeEndpointChanged=function(){for(var X=this.items.children,t=0;t<X.length;t++)X[t].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
GW.prototype.activeEndpointChanged=GW.prototype.activeEndpointChanged;GW.prototype.dataChanged=GW.prototype.dataChanged;GW.prototype.visibleChanged=GW.prototype.visibleChanged;GW.prototype.onMouseEnter=GW.prototype.onMouseEnter;_.E([_.q(_.MZ),_.U("design:type",Object)],GW.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],GW.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],GW.prototype,"ytComponentBehavior",void 0);_.E([_.rt("#items"),_.U("design:type",Object)],GW.prototype,"items",void 0);_.E([_.K(),_.U("design:type",Object)],GW.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Boolean)],GW.prototype,"visible",void 0);_.E([_.K(),_.U("design:type",Object)],GW.prototype,"miniGuideItems",void 0);_.E([_.K({selector:_.OcV}),_.U("design:type",Object)],GW.prototype,"allVideosCount",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],GW.prototype,"noLabels",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],GW.prototype,"frostedGlass",void 0);
_.E([_.WW("mouseenter"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GW.prototype,"onMouseEnter",null);_.E([_.U0("visible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GW.prototype,"visibleChanged",null);_.E([_.U0("data","allVideosCount"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GW.prototype,"dataChanged",null);
_.E([_.U0("activeEndpoint"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],GW.prototype,"activeEndpointChanged",null);_.E([_.p({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],GW);
_.N(GW,"ytd-mini-guide-renderer",function(){if(lmq===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);lmq=X}X=lmq;return X},{mode:1});var xKH;var fm2=/^[\x00-\x7F]+$/,yg=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(yg,_.O);_.ke.Object.defineProperties(yg.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var X,t=_.bu((X=this.data)==null?void 0:X.handle);if(t)return _.Vl("@"+t)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var X=_.bu(this.displayHandle),t,G=_.bu((t=this.data)==null?void 0:t.handleUrl);if(X&&G)return _.Vl(G+X)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var X=_.bu(this.displayHandle);if(X&&!fm2.test(X)){var t;return(t=this.data)==null?void 0:t.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var X=_.bu(this.displayHandleUrl),t,G=_.bu((t=this.data)==null?void 0:t.urlInfoText);if(X&&G)return _.Vl(G+" "+X)}}});
_.E([_.K(),_.U("design:type",Object)],yg.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],yg.prototype,"displayHandle",null);_.E([_.C("displayHandle"),_.U("design:type",Object),_.U("design:paramtypes",[])],yg.prototype,"displayHandleUrl",null);_.E([_.C("displayHandle"),_.U("design:type",Object),_.U("design:paramtypes",[])],yg.prototype,"warningText",null);
_.E([_.C("displayHandleUrl"),_.U("design:type",Object),_.U("design:paramtypes",[])],yg.prototype,"urlInfoTextWithUrl",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],yg.prototype,"darkerDarkTheme",void 0);_.E([_.p({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],yg);
_.N(yg,"ytd-handles-claiming-confirm-dialog-content",function(){if(xKH!==void 0)return xKH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return xKH=X},{mode:1});var MNR;var w0=function(){var X=_.O.apply(this,arguments)||this;X.okButtonOverride={style:"mono",type:"outline",size:"M"};return X};
_.S(w0,_.O);w0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
w0.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],w0.prototype,"okButtonOverride",void 0);_.E([_.K(),_.U("design:type",Object)],w0.prototype,"data",void 0);_.E([_.p({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],w0);
_.N(w0,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(MNR!==void 0)return MNR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return MNR=X},{mode:1});var X_a;var $6H=/^[\x00-\x7F]+$/,zW=function(){var X=_.O.apply(this,arguments)||this;X.isLoading=!1;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(zW,_.O);zW.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var X;this.selectedHandle=(X=this.handleInput)==null?void 0:X.value;this.onSelectedHandleChanged(this.selectedHandle);_.D0(this.hostElement,"yt-refit-popups-action")}};
_.ke.Object.defineProperties(zW.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Vl("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Vl(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!$6H.test(this.selectedHandle)){var X;return(X=this.data)==null?void 0:X.warningText}}}});
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],zW.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],zW.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],zW.prototype,"selectedHandle",void 0);_.E([_.K(),_.U("design:type",Object)],zW.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",Function)],zW.prototype,"onSelectedHandleChanged",void 0);_.E([_.rt("#channel-handle-input"),_.U("design:type",Object)],zW.prototype,"handleInput",void 0);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],zW.prototype,"handleUrlPrefix",null);_.E([_.C("selectedHandle"),_.U("design:type",Object),_.U("design:paramtypes",[])],zW.prototype,"displayHandle",null);_.E([_.C("selectedHandle"),_.U("design:type",Object),_.U("design:paramtypes",[])],zW.prototype,"displayHandleUrl",null);_.E([_.C("selectedHandle"),_.U("design:type",Object),_.U("design:paramtypes",[])],zW.prototype,"warningText",null);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],zW.prototype,"darkerDarkTheme",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.E([_.p({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],zW);
_.N(zW,"ytd-handles-claiming-edit-dialog-content",function(){if(X_a!==void 0)return X_a;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return X_a=X},{mode:1});var tF2;var Hw=function(){var X=_.O.apply(this,arguments)||this;X.actionButtonOverride={style:"mono",type:"filled",size:"M"};X.cancelButtonOverride={style:"mono",type:"text",size:"M"};X.selectButtonDisabled=!1;X.isLoading=!1;X.hasSelectedHandleEventListener=!1;X.selectedHandleChanged=function(t){X.selectedHandle=t};
return X};
_.S(Hw,_.O);_.H=Hw.prototype;_.H.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.H.onDataChanged=function(){var X,t;this.selectedHandle=(t=_.Y((X=this.data)==null?void 0:X.inputField,GmB))==null?void 0:t.handle};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.onCancel=function(){this.selectedHandle="";_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
_.H.onSelectHandle=function(){var X=this;if(this.selectedHandle!==void 0){var t;((t=this.data)==null?void 0:t.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(G,y){if(y.newHandleUpdateStatus!==void 0&&y.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&y.newHandleUpdateStatus.errorMessage)_.F7(X.hostElement,_.bu(y.newHandleUpdateStatus.errorMessage)),
X.isLoading=!1;else{var w;if((w=X.data)==null?0:w.onChannelUpdateSuccess){G=X.data.onChannelUpdateSuccess;var z,B;if(y=(z=_.Y(G,_.iY))==null?void 0:(B=z.popup)==null?void 0:B.handlesClaimingConfirmDialogRenderer)y.handle=_.Vl(X.selectedHandle);X.ytComponentBehavior.resolveCommand(G);_.sl(X.hostElement,"yt-close-popup-action",[X.is])}else X.isLoading=!1}},
onServerError:function(){var G;X.content&&((G=X.content)==null?0:G.handleInput)&&X.content.handleInput.validate();X.isLoading=!1;_.F7(X.hostElement,_.Qf("TRY_AGAIN_LATER"))}}}))}};
_.H.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Hw.prototype.onDataChanged=Hw.prototype.onDataChanged;Hw.prototype.onSelectedHandleChanged=Hw.prototype.onSelectedHandleChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Hw.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Hw.prototype,"actionButtonOverride",void 0);_.E([_.K(),_.U("design:type",Object)],Hw.prototype,"cancelButtonOverride",void 0);_.E([_.K(),_.U("design:type",Object)],Hw.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",String)],Hw.prototype,"selectedHandle",void 0);_.E([_.K(),_.U("design:type",Object)],Hw.prototype,"selectButtonDisabled",void 0);_.E([_.K(),_.U("design:type",Object)],Hw.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",Object)],Hw.prototype,"hasSelectedHandleEventListener",void 0);_.E([_.K(),_.U("design:type",Object)],Hw.prototype,"handleInput",void 0);
_.E([_.cW("selectedHandle"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Hw.prototype,"onSelectedHandleChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Hw.prototype,"onDataChanged",null);_.E([_.rt("ytd-handles-claiming-edit-dialog-content"),_.U("design:type",Object)],Hw.prototype,"content",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.p({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Hw);
_.N(Hw,"ytd-handles-claiming-edit-dialog-renderer",function(){if(tF2!==void 0)return tF2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return tF2=X},{mode:1});var GbQ;var od=function(){return _.O.apply(this,arguments)||this};
_.S(od,_.O);_.ke.Object.defineProperties(od.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null?0:X.handle){var t;return _.Vl("@"+_.bu((t=this.data)==null?void 0:t.handle))}}}});
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],od.prototype,"formattedHandle",null);_.E([_.K(),_.U("design:type",Object)],od.prototype,"data",void 0);_.E([_.p({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],od);
_.N(od,"ytd-handles-claiming-radio-option-renderer",function(){if(GbQ!==void 0)return GbQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return GbQ=X},{mode:1});var yYH;var w_v=/^[\x00-\x7F]+$/,J2=function(){var X=_.O.apply(this,arguments)||this;X.initialRadioIndex="-1";X.isLoading=!1;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.maybeSubmitFeedback=function(){X.feedbackSurveyRenderer.submitSurvey()};
return X};
_.S(J2,_.O);J2.prototype.updateSelectedHandleIndexFromBinding=function(X){this.selectedRadioIndex=+X.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(X)};
J2.prototype.selectedHandleChanged=function(X){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var t;this.selectedHandle=(t=this.handleInput)==null?void 0:t.value;this.onSelectedHandleChanged(X)}};
_.ke.Object.defineProperties(J2.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var X;return this.ytRendererBehavior.getSimpleString((X=this.data)==null?void 0:X.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Vl("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Vl(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!w_v.test(this.selectedHandle)){var X;return(X=this.data)==null?void 0:X.warningText}}}});
_.E([_.K(),_.U("design:type",Object)],J2.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],J2.prototype,"initialRadioIndex",void 0);_.E([_.K(),_.U("design:type",Number)],J2.prototype,"selectedRadioIndex",void 0);_.E([_.K(),_.U("design:type",String)],J2.prototype,"selectedHandle",void 0);_.E([_.K(),_.U("design:type",Object)],J2.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",Function)],J2.prototype,"onSelectedHandleChanged",void 0);
_.E([_.K(),_.U("design:type",Function)],J2.prototype,"onSelectedRadioIndexChanged",void 0);_.E([_.rt("#channel-handle-input"),_.U("design:type",Object)],J2.prototype,"handleInput",void 0);_.E([_.rt("ytd-feedback-survey-renderer"),_.U("design:type",Object)],J2.prototype,"feedbackSurveyRenderer",void 0);_.E([_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],J2.prototype,"radioButtonLength",null);
_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],J2.prototype,"handleUrlPrefix",null);_.E([_.C("selectedHandle"),_.U("design:type",Object),_.U("design:paramtypes",[])],J2.prototype,"displayHandle",null);_.E([_.C("selectedHandle"),_.U("design:type",Object),_.U("design:paramtypes",[])],J2.prototype,"displayHandleUrl",null);_.E([_.C("selectedHandle"),_.U("design:type",Object),_.U("design:paramtypes",[])],J2.prototype,"warningText",null);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],J2.prototype,"darkerDarkTheme",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.E([_.p({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],J2);
_.N(J2,"ytd-handles-claiming-select-dialog-content",function(){if(yYH!==void 0)return yYH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return yYH=X},{mode:1});var zYQ;var Bw=function(){var X=_.O.apply(this,arguments)||this;X.actionButtonOverride={style:"mono",type:"filled",size:"M"};X.cancelButtonOverride={style:"mono",type:"text",size:"M"};X.initialRadioIndex="-1";X.selectButtonDisabled=!1;X.isLoading=!1;X.selectedRadioIndexChanged=function(t){X.selectedRadioIndex=Number(t.detail.value)};
X.selectedHandleChanged=function(t){X.selectedHandle=t.detail.value};
X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(Bw,_.O);_.H=Bw.prototype;_.H.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.H.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.H.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.D0(this.hostElement,"yt-refit-popups-action")};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
_.H.onSelectHandle=function(){var X=this;if(this.selectedHandle!==void 0){var t;((t=this.data)==null?void 0:t.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(G,y){if(y.newHandleUpdateStatus!==void 0&&y.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&y.newHandleUpdateStatus.errorMessage)_.F7(X.hostElement,_.bu(y.newHandleUpdateStatus.errorMessage)),
X.isLoading=!1;else{var w;if((w=X.data)==null?0:w.onChannelUpdateSuccess){G=X.data.onChannelUpdateSuccess;y=_.Y(G,_.iY);var z;if(y==null?0:(z=y.popup)==null?0:z.handlesClaimingConfirmDialogRenderer)y.popup.handlesClaimingConfirmDialogRenderer.handle=_.Vl(X.selectedHandle);X.ytComponentBehavior.resolveCommand(G);_.sl(X.hostElement,"yt-close-popup-action",[X.is])}else X.isLoading=!1}},
onServerError:function(){if(X.selectedRadioIndex===X.radioButtonLength){var G;X.content&&((G=X.content)==null?0:G.handleInput)&&X.content.handleInput.validate()}X.isLoading=!1;_.F7(X.hostElement,_.Qf("TRY_AGAIN_LATER"))}}}))}};
_.H.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var X,t;this.selectedHandle=(X=this.content)==null?void 0:(t=X.handleInput)==null?void 0:t.value}else this.selectedRadioIndex>=0&&((X=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(X==null?void 0:X.handle):this.selectedHandle=void 0)};
_.H.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.H.getRadioItem=function(X){if(this.radioButtonLength>X&&X>=0)return _.Y(this.data.radioButton[X],F4r)};
_.ke.Object.defineProperties(Bw.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.radioButton)||[]).length}}});
Bw.prototype.onSelectedHandleChanged=Bw.prototype.onSelectedHandleChanged;Bw.prototype.onSelectedHandleIndexChanged=Bw.prototype.onSelectedHandleIndexChanged;Bw.prototype.onDataChanged=Bw.prototype.onDataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Bw.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Bw.prototype,"actionButtonOverride",void 0);_.E([_.K(),_.U("design:type",Object)],Bw.prototype,"cancelButtonOverride",void 0);
_.E([_.K(),_.U("design:type",Object)],Bw.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Bw.prototype,"initialRadioIndex",void 0);_.E([_.K(),_.U("design:type",Number)],Bw.prototype,"selectedRadioIndex",void 0);_.E([_.K(),_.U("design:type",String)],Bw.prototype,"selectedHandle",void 0);_.E([_.K(),_.U("design:type",Object)],Bw.prototype,"selectButtonDisabled",void 0);_.E([_.K(),_.U("design:type",Object)],Bw.prototype,"isLoading",void 0);
_.E([_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],Bw.prototype,"radioButtonLength",null);_.E([_.rt("ytd-handles-claiming-select-dialog-content"),_.U("design:type",Object)],Bw.prototype,"content",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Bw.prototype,"onDataChanged",null);
_.E([_.cW("selectedRadioIndex"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Bw.prototype,"onSelectedHandleIndexChanged",null);_.E([_.cW("selectedHandle"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Bw.prototype,"onSelectedHandleChanged",null);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Bw.prototype,"darkerDarkTheme",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.p({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Bw);
_.N(Bw,"ytd-handles-claiming-select-dialog-renderer",function(){if(zYQ!==void 0)return zYQ;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return zYQ=X},{mode:1});var HiR;var oqH;var na=function(){return _.O.apply(this,arguments)||this};
_.S(na,_.O);na.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],na.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],na.prototype,"data",void 0);_.E([_.p({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],na);
_.N(na,"ytd-hotkey-dialog-section-option-renderer",function(){if(oqH!==void 0)return oqH;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return oqH=X},{mode:1});var JYr;var Vg=function(){return _.O.apply(this,arguments)||this};
_.S(Vg,_.O);Vg.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Vg.prototype,"data",void 0);_.E([_.p({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Vg);
_.N(Vg,"ytd-hotkey-dialog-section-renderer",function(){if(JYr!==void 0)return JYr;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return JYr=X},{mode:1});var bo=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(bo,_.O);bo.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],bo.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],bo.prototype,"darkerDarkTheme",void 0);_.E([_.p({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],bo);
_.N(bo,"ytd-hotkey-dialog-content",function(){if(HiR!==void 0)return HiR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return HiR=X},{mode:1});var BRR;var km=function(){return _.O.apply(this,arguments)||this};
_.S(km,_.O);km.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var X=document.querySelector("ytd-hotkey-dialog-content #scrollable");X&&(X.dialogElement=this.hostElement.parentElement)};
km.prototype.onCloseTap=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],km.prototype,"data",void 0);_.E([_.p({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],km);
_.N(km,"ytd-hotkey-dialog-renderer",function(){if(BRR!==void 0)return BRR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return BRR=X},{mode:1});var nqv;var d0=function(){return _.O.apply(this,arguments)||this};
_.S(d0,_.O);d0.prototype.onYtServiceRequestError=function(){if(this.blocked){var X;var t=(X=this.data)==null?void 0:X.defaultServiceEndpoint}else{var G;t=(G=this.data)==null?void 0:G.toggledServiceEndpoint}var y;(t=(y=_.Y(t,_.ZPR))==null?void 0:y.onFailureAction)&&this.ytComponentBehavior.resolveCommand(t);this.updateBlockState(!this.blocked)};
d0.prototype.onYtToggleButton=function(X){this.updateBlockState(X.detail.toggled)};
d0.prototype.updateBlockState=function(X){if(X!==this.blocked){var t=this.blockedEntityKey;t&&this.ytdReduxBehavior.dispatch(_.EW("blockStateEntity",t,{key:t,blocked:X}));this.set("data.isToggled",X)}};
_.ke.Object.defineProperties(d0.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)}}});
d0.prototype.onYtToggleButton=d0.prototype.onYtToggleButton;d0.prototype.onYtServiceRequestError=d0.prototype.onYtServiceRequestError;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],d0.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],d0.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],d0.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],d0.prototype,"blockedEntityKey",void 0);
_.E([_.K({selectorArgs:["blockedEntityKey"],selector:function(X,t){return _.Kg(X.entities,"blockStateEntity",t)}}),
_.U("design:type",Object)],d0.prototype,"blockStateEntity",void 0);_.E([_.C("data","blockStateEntity"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],d0.prototype,"blocked",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],d0.prototype,"onYtServiceRequestError",null);
_.E([_.WW("yt-toggle-button"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],d0.prototype,"onYtToggleButton",null);_.E([_.p({is:"ytd-block-button",disableElementRegistration:!0})],d0);
_.N(d0,"ytd-block-button",function(){if(nqv!==void 0)return nqv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return nqv=X},
{mode:1});var VFa;var biq;var ej=function(){return _.O.apply(this,arguments)||this};
_.S(ej,_.O);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ej.prototype,"data",void 0);_.E([_.p({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],ej);
_.N(ej,"ytd-kids-blocklist-picker-item-renderer",function(){if(biq!==void 0)return biq;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return biq=X},{mode:1});var jj=function(){return _.O.apply(this,arguments)||this};
_.S(jj,_.O);jj.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],jj.prototype,"data",void 0);_.E([_.p({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],jj);
_.N(jj,"ytd-kids-blocklist-picker-content",function(){if(VFa!==void 0)return VFa;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return VFa=
X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var kbT;var g0=function(){var X=_.O.apply(this,arguments)||this;X.hasAnyRequestSucceeded=!1;X.hasAnyRequestFailed=!1;X.numPendingRequests=0;return X};
_.S(g0,_.O);_.H=g0.prototype;_.H.attached=function(){this.hostElement.setAttribute("dialog","")};
_.H.onDoneButtonTap=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.H.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.H.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.H.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.H.onPopupClosed=function(X){var t,G;if(((t=X.detail)==null?void 0:(G=t.popup)==null?void 0:G.is)==="tp-yt-paper-dialog"){var y;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((y=this.data)==null?0:y.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.jl(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
g0.prototype.onPopupClosed=g0.prototype.onPopupClosed;g0.prototype.onYtServiceRequestError=g0.prototype.onYtServiceRequestError;g0.prototype.onYtServiceRequestCompleted=g0.prototype.onYtServiceRequestCompleted;g0.prototype.onYtServiceRequestSent=g0.prototype.onYtServiceRequestSent;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],g0.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],g0.prototype,"data",void 0);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g0.prototype,"onYtServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g0.prototype,"onYtServiceRequestCompleted",null);
_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],g0.prototype,"onYtServiceRequestError",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],g0.prototype,"onPopupClosed",null);_.E([_.p({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],g0);
_.N(g0,"ytd-kids-blocklist-picker-renderer",function(){if(kbT!==void 0)return kbT;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return kbT=X},{mode:1});var d6i;var eYR;var Fg=function(){return _.O.apply(this,arguments)||this};
_.S(Fg,_.O);Fg.prototype.setTip=function(X){var t=this;this.data&&(this.tip=JVR(H8i.getInstance(),X,this.data),_.V8(this,function(){_.Yt(t.hostElement,"yt-refit")}))};
Fg.prototype.clearTip=function(){this.tip=void 0};
Fg.prototype.computeHidden=function(X){return!X};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Fg.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.U("design:type",Boolean)],Fg.prototype,"hidden",void 0);_.E([_.K(),_.U("design:type",Object)],Fg.prototype,"tip",void 0);_.E([_.p({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Fg);
_.N(Fg,"ytd-menu-popup-tip-renderer",function(){if(eYR!==void 0)return eYR;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);
return eYR=X},{mode:1});var jR4;var TW=function(){var X=_.O.apply(this,arguments)||this;X.useIcons=!1;X.systemIcons=_.A("kevlar_system_icons");X.useListItemStyles=_.A("web_list_item_style_for_menu_items");return X};
_.S(TW,_.O);_.H=TW.prototype;_.H.onFocus=function(){var X;(X=_.Sm(this.hostElement).querySelector("tp-yt-paper-item"))==null||X.focus()};
_.H.onTap=function(){var X=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(X&&_.Y(X,_.Cq))this.componentBehavior.resolveCommand(X),this.updateToggledStateInEntity();else if(X){this.componentBehavior.resolveCommand(X)||_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}});var t;((t=_.Y(X,_.Ol))==null?void 0:t.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.H.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.H.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.H.updateToggledStateInEntity=function(){var X=this.data.toggleMenuServiceItemEntityKey,t=!this.data.isToggled;X&&this.ytdReduxBehavior.dispatch(_.EW("toggleMenuServiceItemEntity",X,{key:X,isToggled:t}))};
_.H.computeIcon=function(X,t,G){return(X=X?G:t)&&X.iconType?_.Q2(X.iconType):""};
_.H.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.H.isIconActive=function(X){return!_.A("toggle_menu_active_icon_killswitch")&&X};
_.ke.Object.defineProperties(TW.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.data)==null?0:X.isToggled)?(t=this.data)==null?void 0:t.toggledText:(G=this.data)==null?void 0:G.defaultText}}});
TW.prototype.toggledStateEntityChanged=TW.prototype.toggledStateEntityChanged;TW.prototype.onYtServiceRequestCompleted=TW.prototype.onYtServiceRequestCompleted;TW.prototype.onTap=TW.prototype.onTap;TW.prototype.onFocus=TW.prototype.onFocus;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],TW.prototype,"componentBehavior",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],TW.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],TW.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TW.prototype,"useIcons",void 0);_.E([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.U("design:type",String)],TW.prototype,"icon",void 0);
_.E([_.K({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(X,t){return _.Kg(X.entities,"toggleMenuServiceItemEntity",t)}}),
_.U("design:type",Object)],TW.prototype,"toggleMenuServiceItemEntity",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TW.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],TW.prototype,"useListItemStyles",void 0);_.E([_.WW("focus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TW.prototype,"onFocus",null);
_.E([_.C("data.isToggled"),_.U("design:type",Object),_.U("design:paramtypes",[])],TW.prototype,"toggleButtonText",null);_.E([_.WW("tap"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TW.prototype,"onTap",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TW.prototype,"onYtServiceRequestCompleted",null);
_.E([_.cW("toggleMenuServiceItemEntity.isToggled","data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TW.prototype,"toggledStateEntityChanged",null);_.E([_.p({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],TW);
_.N(TW,"ytd-toggle-menu-service-item-renderer",function(){if(jR4!==void 0)return jR4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return jR4=X},{mode:1});var gq4;var A2=function(){return _.O.apply(this,arguments)||this};
_.S(A2,_.O);A2.prototype.onFocus=function(){var X;(X=_.Sm(this.hostElement).querySelector("tp-yt-paper-item"))==null||X.focus()};
_.ke.Object.defineProperties(A2.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.l_(this.data.iconUrl)}}});
A2.prototype.onFocus=A2.prototype.onFocus;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],A2.prototype,"rendererBehavior",void 0);_.E([_.q(_.pv.YtEndpointBehavior),_.U("design:type",Object)],A2.prototype,"ytEndpointBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],A2.prototype,"data",void 0);_.E([_.WW("focus"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],A2.prototype,"onFocus",null);
_.E([_.C("data.iconUrl"),_.U("design:type",Object),_.U("design:paramtypes",[])],A2.prototype,"imageSource",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],A2);
_.N(A2,"ytd-menu-custom-icon-item-renderer",function(){if(gq4!==void 0)return gq4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return gq4=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});_.DW(_.Mk,"yt-list-item-view-model",{props:{data:_.bR,isMenuItem:_.bR,isCompact:_.bR,onTap:_.sd,trailingAccessory:_.sd,hideSelectionTextChevron:_.bR,disabled:_.bR,inPopup:_.bR,disableHorizontalPadding:_.bR,isOverlay:_.bR,isToggled:_.bR,ariaLabel:_.bR,ariaPressed:_.bR}});var Ym=function(){var X=_.O.apply(this,arguments)||this;X.disableBackdropFilter=_.A("web_disable_backdrop_filter");return X};
_.S(Ym,_.O);_.H=Ym.prototype;
_.H.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"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.H.computeAriaLabel=function(X){return X};
_.H.onPopupOpened=function(){this.items.selected=0;for(var X=_.J(_.Sm(this.items).children),t=X.next();!t.done;t=X.next())t.value.popupPositionTarget=this.positionTarget;if(X=this.popupTip||void 0)X.setTip(this.source||""),this.source=void 0;this.veData&&(X=_.lw())&&_.o$(X,[this.veData])};
_.H.onPopupClosed=function(){var X=this.popupTip||void 0;X&&X.clearTip()};
_.H.onIronActivate=function(X){this.shouldPersist(X)||_.sl(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(X=_.lw())&&_.BK(X,this.veData)};
_.H.shouldPersist=function(X){var t,G;if(((t=X.detail)==null?void 0:t.selected)===void 0||(G=this.data)==null||!G.items)return!1;var y,w;return!((w=(y=this.data.items[X.detail.selected])==null?void 0:y.toggleMenuServiceItemRenderer)==null||!w.persistentOnMenuPopup)};
_.H.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(X){return X.menuNavigationItemRenderer?!!X.menuNavigationItemRenderer.icon:X.menuServiceItemRenderer?!!X.menuServiceItemRenderer.icon:X.menuConditionalServiceItemRenderer?!!X.menuConditionalServiceItemRenderer.icon:X.menuConditionalNavigationItemRenderer?!!X.menuConditionalNavigationItemRenderer.icon:X.toggleMenuServiceItemRenderer?!!X.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Ym.prototype.onPopupClosed=Ym.prototype.onPopupClosed;Ym.prototype.onPopupOpened=Ym.prototype.onPopupOpened;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Ym.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],Ym.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Ym.prototype,"veData",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.U("design:type",String)],Ym.prototype,"ariaLabel",void 0);_.E([_.K({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],Ym.prototype,"useIcons",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Ym.prototype,"disableBackdropFilter",void 0);_.E([_.rt("#items"),_.U("design:type",Object)],Ym.prototype,"items",void 0);_.E([_.rt("ytd-menu-popup-tip-renderer"),_.U("design:type",Object)],Ym.prototype,"popupTip",void 0);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ym.prototype,"onPopupOpened",null);
_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ym.prototype,"onPopupClosed",null);_.E([_.p({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Ym);
_.N(Ym,"ytd-menu-popup-renderer",function(){if(d6i!==void 0)return d6i;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return d6i=X},{mode:1});var F0v;var TRT=_.Fp(function(X){X=_.jx(X,{icon:void 0});var t=X.data;X=X.icon;var G=function(){return t().iconBadgeText},y={},w=_.cl("yt-spec-icon-badge-shape",function(){a:switch(t().iconBadgeType){case "notification":var z="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":z="yt-spec-icon-badge-shape--type-cart";break a;default:z=""}return z},function(){a:switch(t().iconBadgeStyle){case "overlay":var z="yt-spec-icon-badge-shape--style-overlay";
break a;default:z=""}return z},(y["yt-spec-icon-badge-shape--text-size-small"]=function(){var z=G();
return!!((z==null?0:z.length)&&z.length>2)},y));
return _.k("yt-icon-badge-shape",null,_.k(_.d,{cond:X,then:function(z){return _.k("div",{class:w},_.k("div",{class:"yt-spec-icon-badge-shape__icon"},_.k(_.mw,{icon:z})),_.k(_.d,{cond:G,then:function(B){return _.k("div",{class:"yt-spec-icon-badge-shape__badge"},B)}}))}}))},"Fg");
TRT.idomCompat=!0;_.DW(TRT,"yt-icon-badge-shape",{props:{data:_.bR,icon:_.bR}});var sQ=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};X.unseenCount=0;X.isOverlay=!1;return X};
_.S(sQ,_.O);_.H=sQ.prototype;_.H.attached=function(){var X=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(t){X.onServiceWorkerMessage(t)})};
_.H.onDataChanged=function(){this.isAttached&&!this.JSC$20291_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20291_lastData=this.data};
_.H.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.H.computeIcon=function(){var X,t;return(X=this.data)==null?void 0:(t=X.icon)==null?void 0:t.iconType};
_.H.onServiceWorkerMessage=function(X){X.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.H.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.Y(this.data.updateUnseenCountEndpoint,_.Ol)&&_.Y(this.data.updateUnseenCountEndpoint,_.Ol).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.H.handleUpdateNotificationsUnseenCountAction=function(X){var t=this;X=_.Y(X,BvT);X!=null&&X.unseenCount&&X.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(X.unseenCount),_.vz.addLowPriorityJob(function(){t.data.updateUnseenCountEndpoint&&t.ytComponentBehavior.resolveCommand(t.data.updateUnseenCountEndpoint)},X.timeoutMs))};
_.H.onClick=function(){_.Yt(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var X=_.D0(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),t=this.data.menuRequest;X&&X.length===1&&X[0]?_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):t&&this.ytComponentBehavior.resolveCommand(t)};
_.H.handleTopbarMenuClosedAction=function(X){X==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.H.toggleIconState=function(X){this.iconButton&&(this.iconButton.pressed=X)};
_.H.sendUnseenCountRequest=function(X){var t=this;_.PO(_.vz,function(){t.ytComponentBehavior.resolveCommand(X)})};
_.H.updateCountUI=function(X){this.set("unseenCount",X<9?X:"9+")};
_.ke.Object.defineProperties(sQ.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
sQ.prototype.handleUpdateNotificationsUnseenCountAction=sQ.prototype.handleUpdateNotificationsUnseenCountAction;sQ.prototype.onDataChanged=sQ.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],sQ.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.dQ),_.U("design:type",Object)],sQ.prototype,"ytdOpenPopupBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],sQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],sQ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],sQ.prototype,"unseenCount",void 0);_.E([_.K(),_.U("design:type",Object)],sQ.prototype,"isOverlay",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],sQ.prototype,"showTooltips",void 0);_.E([_.rt("yt-icon-button"),_.U("design:type",Object)],sQ.prototype,"iconButton",void 0);
_.E([_.C("unseenCount"),_.U("design:type",Object),_.U("design:paramtypes",[])],sQ.prototype,"showNotificationCount",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],sQ.prototype,"onDataChanged",null);_.E([_.WW("yt-update-notifications-unseen-count-action"),_.U("design:type",Function),_.U("design:paramtypes",[Object]),_.U("design:returntype")],sQ.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.E([_.p({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],sQ);
_.N(sQ,"ytd-notification-topbar-button-renderer",function(){if(F0v!==void 0)return F0v;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return F0v=X},{mode:_.Cz("kevlar_poly_si_batch_j025")?1:2});var AY2;var DJ=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return X};
_.S(DJ,_.O);DJ.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}}}}}};
DJ.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
DJ.prototype.onDarkModeToggled=function(X){this.dark=X};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],DJ.prototype,"data",void 0);_.E([_.K({value:!0,reflectToAttribute:!0}),_.U("design:type",Boolean)],DJ.prototype,"dark",void 0);
_.E([_.p({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],DJ);
_.N(DJ,"yt-pdg-buy-flow-header-renderer",function(){if(AY2!==void 0)return AY2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return AY2=X},{mode:1});var YD4;var sRq;var Sj=function(){var X=_.O.apply(this,arguments)||this;X.immediateValue=0;X.isDarkTheme=!1;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(Sj,_.O);_.H=Sj.prototype;_.H.created=function(){_.wB.requestAvailability()};
_.H.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.H.dataChanged=function(){var X=_.Sm(this.hostElement).querySelector("#color-slider");X.immediateValue&&this.updateSliderKnobAndGradientStyles(X.immediateValue);this.data.notches[0].knobColorArgb&&_.Kd(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.yY(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Md("HTML_DIR")==="rtl"&&_.Sm(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.H.onSliderImmediateChange=function(){var X=_.Sm(this.hostElement).querySelector("#color-slider");X.dragging&&(X.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(X.immediateValue),this.updateSliderKnobAndGradientStyles(X.immediateValue)),this.updateSliderAria())};
_.H.onSliderChange=function(){var X=_.Sm(this.hostElement).querySelector("#color-slider");X.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(X.immediateValue),this.updateSliderKnobAndGradientStyles(X.immediateValue));this.updateSliderAria()};
_.H.updateSliderAria=function(){var X=_.Sm(this.hostElement).querySelector("#color-slider"),t=_.Sm(this.hostElement).querySelector("#color-slider");t=_.bu(this.data.notches[t.immediateValue].tierValue);_.Oh()&&_.Yt(this.hostElement,"iron-announce",{text:t});X.setAttribute("aria-valuetext",t)};
_.H.updateSuperThanksSelectedTierEntity=function(X){if(X!==this.immediateValue){var t,G,y=this==null?void 0:(t=this.data)==null?void 0:(G=t.superThanksSelectedTierEntity)==null?void 0:G.key;y&&y.length>0&&this.ytdReduxBehavior.dispatch(_.EW("superThanksSelectedTierEntity",y,{key:y,index:X}))}};
_.H.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.H.updateSliderKnobAndGradientStyles=function(X){this.immediateValue=X;X=this.data.notches[X];if(X==null?0:X.knobColorArgb)var t={"--ytd-pdg-color-slider-knob-color":_.yY(X.knobColorArgb)};(X==null?0:X.linearGradientCssStyle)&&t!==null&&(t=Object.assign({},t,{"--ytd-pdg-color-slider-active-color":X==null?void 0:X.linearGradientCssStyle}));t!==null&&_.Kd(this.hostElement,t)};
Sj.prototype.onSliderChange=Sj.prototype.onSliderChange;Sj.prototype.onSliderImmediateChange=Sj.prototype.onSliderImmediateChange;Sj.prototype.dataChanged=Sj.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],Sj.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Sj.prototype,"immediateValue",void 0);_.E([_.K(),_.U("design:type",Number)],Sj.prototype,"maxMarkers",void 0);
_.E([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:fOV}),_.U("design:type",Object)],Sj.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Sj.prototype,"isDarkTheme",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Sj.prototype,"ytdReduxBehavior",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Sj.prototype,"dataChanged",null);
_.E([_.WW("immediate-value-change"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Sj.prototype,"onSliderImmediateChange",null);_.E([_.WW("change"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Sj.prototype,"onSliderChange",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Sj);
_.N(Sj,"ytd-pdg-color-slider-renderer",function(){if(sRq!==void 0)return sRq;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return sRq=X},{mode:1});var D62;var SDa;var h2=null;
_.le({is:"ytd-comment-input",_template:function(){if(SDa!==void 0)return SDa;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return SDa=X},
behaviors:[_.mLJ.YtHostElementBehavior,_.NN,_.zw.YtComponentBehavior,_.YZ.YtRendererstamperBehavior,_.rxh.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 _.wQ}},
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",_.Ik(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;_.O_();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ik(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(X){X=X.detail;X=X.isCustomEmoji?X.shortcuts[0]:X.emojiId;var t=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(t,X);this.maybeUpdateTextDirection_();_.Yt(this.hostElement,"input")},
getInputRange_:function(){var X=_.cv();if(X){X=X.getBrowserRangeObject();for(var t=X.commonAncestorContainer;t;){if(t===this.getEditableTextArea_())return X;t=t.parentNode}}X=this.getEditableTextArea_();X=_.$r(X,X.childNodes.length);X.select();return X.getBrowserRangeObject()},
insertTextWithEmojis_:function(X,t,G){(t=this.emojiManager.createDocumentFragment(t,!0,!1,G===void 0?!0:G))&&t.childNodes.length!==0&&(X.collapsed||X.deleteContents(),G=t.lastChild,X.insertNode(t),_.Urq(G).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var X=_.cv();if(X){var t=X.JSC$11223_getStartNode(),G=X.JSC$11223_getEndNode();if(mSR(t)&&mSR(G)){var y=X.JSC$11223_getStartOffset(),w;if(_.Ox&&t.nodeType===Node.ELEMENT_NODE&&(w=_.mzB(t)))_.$r(w,0).select();else{w=Ys(t)?t:_.xT(t,Ys);var z=Ys(G)?G:_.xT(G,Ys);if(w||z)if(X.isCollapsed()){if(t.nodeType===Node.TEXT_NODE){X=!0;y===t.length&&(X=!1);if(h2==="end"||h2==="right")X=!1;t=t.parentNode;X=[].concat(_.RY(t.parentNode.childNodes)).indexOf(t)+(X?0:1);_.$r(t.parentNode,
X).select()}}else w?w.previousSibling&&w.previousSibling.length>0?_.t0(G,X.JSC$11223_getEndOffset(),w.previousSibling,w.previousSibling.length-1).select():(t=document.createTextNode("\u200b"),w.parentNode.insertBefore(t,w),_.t0(G,X.JSC$11223_getEndOffset(),t,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.t0(t,X.JSC$11223_getStartOffset(),z.nextSibling,1).select():(G=document.createTextNode("\u200b"),z.parentNode.insertBefore(G,z.nextSibling),_.t0(t,X.JSC$11223_getStartOffset(),G,G.length).select()));
h2=null}}else h2=null}else h2=null},
leftKeyPressed_:function(){h2="left"},
rightKeyPressed_:function(){h2="right"},
endKeyPressed_:function(){h2="end"},
maybeDeleteChip_:function(){var X=lkV(!0);if(X){var t=_.cv(),G=t.JSC$11223_getStartNode();t=t.JSC$11223_getStartOffset();_.ly(G,t,X,X.childNodes.length).select()}},
maybeBackspaceChip_:function(){var X=lkV(!1);if(X){var t=_.cv(),G=t.JSC$11223_getStartNode();t=t.JSC$11223_getStartOffset();_.ly(G,t,X,0).select()}},
maybeBackspaceChipWordMode_:function(X){var t=_.cv();if(t.isCollapsed()){var G=t.JSC$11223_getStartNode();t=t.JSC$11223_getStartOffset();var y=xSq(G,t,!0);y&&(_.ly(G,t,y,0).select(),document.execCommand("delete"),X.preventDefault(),X.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(X){var t=_.cv();if(t.isCollapsed()){var G=t.JSC$11223_getStartNode();t=t.JSC$11223_getStartOffset();var y=xSq(G,t,!1);y&&(_.ly(G,t,y,y.childNodes.length).select(),document.execCommand("delete"),X.preventDefault(),X.stopImmediatePropagation())}},
onContentClick:function(X){X.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(X){X.defaultPrevented||X.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Ys(X.target)&&X.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Sm(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Sm(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(X,t){X=idT(X,this.emojiManager,t).cloneNode(!0);for(t=X.firstChild;t;)if(t.nodeType!==1)t=t.nextSibling;else switch(t.tagName){case "BR":var G=_.vI();_.fPe(G,t);t=G.nextSibling;break;case "DIV":(G=t.lastChild)&&t.nextSibling&&_.fN(_.vI(),G);t.previousSibling&&(t.previousSibling.nodeType===1||t.previousSibling.nodeType===3&&!t.previousSibling.textContent.endsWith("\n"))&&_.xo(_.vI(),t);G&&G.nodeName==="BR"&&_.uf(G);G=t;t.hasChildNodes()?(t=t.firstChild,
_.MYe(G)):(t=t.nextSibling,_.uf(G));break;default:t=t.nextSibling}return fkR(X)},
setTextAreaValue:function(X){X||(X="");var t=this.getEditableFormattedString_();t.text="";this.getEditableTextArea_().innerText="";typeof X==="string"&&(X={runs:[{text:X}]});t.text=X},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();h2=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var X=this.getEditableTextArea_();X&&(_.$r(X,X.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Md("HTML_DIR")==="rtl"){var X=this.getEditableTextArea_(),t=this.getTextAreaValue()!==""?"auto":"rtl";X.setAttribute("dir",t)}},
handleInputEvent_:function(){var X=null;if(this.isEmojiButtonDisplayed){var t=this.getInputRange_();t&&(X=this.emojiInput.retrieveTextBeforeRange(t))}this.insertText_(X,!0);this.updateCharCount_();X=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=X.scrollHeight>X.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var X=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:X})},
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(X){this.isEmojiButtonDisplayed&&(X.preventDefault(),X.stopImmediatePropagation(),X=X.clipboardData.getData("text/plain"),this.insertText_(X,!1,!1),_.Yt(this.hostElement,"input"))},
insertText_:function(X,t,G){t=t===void 0?!1:t;G=G===void 0?!0:G;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&X){var y=this.getInputRange_().cloneRange();this.emojiManager&&y&&(t&&this.emojiInput.offsetStartOfRangeBy(y,X.length),this.insertTextWithEmojis_(y,X,G),R2R(this.getEditableTextArea_().lastChild)||(y=this.getInputRange_().cloneRange()),y&&(this.emojiInput.updateSuggestions(y,X),this.updateSuggestionOffset_(y)))}},
getSimpleString:_.bu,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(X){return X?"focused":"not-focused"},
computePlaceholderText_:function(X){return this.getSimpleString(X)},
computeEditableText_:function(X){return this.getSimpleString(X)},
onPrefilledContentDismissed_:function(X){X.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(X,t){X?this.fire("yt-autonav-pause-focus"):t!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(X){var t=this.getEditableTextArea_();[].concat(_.RY(X.dataTransfer.items)).forEach(function(G){G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(y){t.appendChild(document.createTextNode(y))})});
X.preventDefault()},
preventDefault_:function(X){X.preventDefault()},
onSuggestionInsert_:function(X){this.insertTextWithEmojis_(X.detail.range,X.detail.text)},
onEmojiSuggestionClick_:function(X){this.emojiInput.insertSuggestion(X.detail)},
updateSuggestionOffset_:function(X){if(this.emojiInput&&_.Sm(this.emojiInput).querySelector("#dropdown")){var t=this.getEditableTextArea_().getBoundingClientRect().bottom,G=X.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(t-G)+5;t=this.getEditableTextArea_().getBoundingClientRect().left;X=X.getBoundingClientRect().left-t;_.Sm(this.emojiInput).querySelector("#dropdown").style.marginLeft=X+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.M1("yt-post"));return this.localStorage}});var ZJ=function(){var X=_.O.apply(this,arguments)||this;X.currentCommentOptionIndex=0;X.isEmojiPickerDisplayed=!1;X.emojiManager=_.wQ;X.isUgcEmpty=!1;X.userGeneratedCommentChangedHandler=function(){_.Yt(X.hostElement,"ytd-pdg-user-generated-comment-changed");X.isEmojiYtdCommentInputEnabled&&(X.isUgcEmpty=!X.ytdCommentInputEl.getTextAreaValue())};
X.pasteHandler=function(t){t.preventDefault();t.stopImmediatePropagation();var G;if(t=(G=t.clipboardData)==null?void 0:G.getData("text/plain"))G=document.getSelection().getRangeAt(0),G.collapsed||G.deleteContents(),t=document.createTextNode(t),G.insertNode(t),G.selectNodeContents(t),G.collapse(!1),t=window.getSelection(),t.removeAllRanges(),t.addRange(G)};
X.onDocumentClick=function(t){if(X.isEmojiPickerDisplayed){var G,y,w;!(t.target instanceof Node)||(G=t.composedPath())!=null&&G.includes(X.editableTextEl)||(y=t.composedPath())!=null&&y.includes(X.emojiButtonEl)||(w=t.composedPath())!=null&&w.includes(X.emojiPickerEl)||(X.isEmojiPickerDisplayed=!1)}};
return X};
_.S(ZJ,_.O);_.H=ZJ.prototype;_.H.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.H.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.H.detached=function(){var X;(X=this.contentEl)==null||X.removeEventListener("input",this.userGeneratedCommentChangedHandler);var t;(t=this.contentEl)==null||t.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.H.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.H.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var X;this.contentEl.textContent=this.rendererBehavior.getSimpleString((X=this.data)==null?void 0:X.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.H.reloadEmojis=function(){this.emojiPickerEl&&_.Y(this.emojiPicker,_.r84)&&this.emojiPickerEl.updateEmojiCategories()};
_.H.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Kd(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.H.handleBackgroundColorStyling=function(){var X;if((X=this.currentCommentOption)==null?0:X.commentBackgroundColorArgb){var t;_.Kd(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.yY((t=this.currentCommentOption)==null?void 0:t.commentBackgroundColorArgb)})}else _.Kd(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.H.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var X;(X=this.contentEl)==null||X.focus()}};
_.H.onEditButtonClick=function(X){var t=document.getSelection();t&&this.contentEl&&(X.stopPropagation(),X.preventDefault(),t.selectAllChildren(this.contentEl),t.collapseToEnd())};
_.H.onContentDrop=function(X){var t=this;if(X.dataTransfer){X=_.J(X.dataTransfer.items);for(var G=X.next();!G.done;G=X.next())G=G.value,G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(y){var w;(w=t.contentEl)==null||w.appendChild(document.createTextNode(y))})}};
_.H.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.H.getUserGeneratedCommentText=function(){var X,t=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(X=this.contentEl)==null?void 0:X.textContent;return t?t.trim():""};
_.H.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.H.onEmojiSelect=function(X){this.ytdCommentInputEl.onEmojiSelect(X)};
_.ke.Object.defineProperties(ZJ.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.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 X;return!((X=this.currentCommentOption)==null||!X.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var X;if(_.Y((X=this.currentCommentOption)==null?void 0:X.chipRenderer,_.$0B)){var t;return _.Y((t=this.currentCommentOption)==null?void 0:t.chipRenderer,_.$0B)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var X,t;return((X=this.data)==null?0:X.commentOptionRenderers)?_.Y((t=this.data)==null?void 0:t.commentOptionRenderers[this.superThanksSelectedTierEntity.index],c_4):void 0}var G,y;return((G=this.data)==null?0:G.commentOptionRenderers)?_.Y((y=this.data)==null?void 0:y.commentOptionRenderers[this.currentCommentOptionIndex],c_4):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var X;return this.rendererBehavior.getSimpleString((X=this.data)==null?void 0:X.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var X;return this.rendererBehavior.getSimpleString((X=this.data)==null?void 0:X.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=_.Y((X=this.data)==null?void 0:X.commentDialog,_.K9o))==null?void 0:t.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=_.Y((X=this.data)==null?void 0:X.commentDialog,_.K9o))==null?void 0:t.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=_.Y((X=this.data)==null?void 0:X.commentDialog,_.K9o))==null?void 0:t.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(t=_.Y((X=this.data)==null?void 0:X.commentDialog,_.K9o))==null?void 0:t.emojiPicker;if(!_.Y(G,_.r84)||!_.Y(G,_.r84).categories)return!1;X=function(z){return z.emojiPickerCategoryRenderer?z.emojiPickerCategoryRenderer.emojiIds&&z.emojiPickerCategoryRenderer.emojiIds.length>0:z.emojiPickerUpsellCategoryRenderer?z.emojiPickerUpsellCategoryRenderer.emojis&&z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var y,w;return((y=_.Y(G,_.r84))==null?0:(w=y.categories)==null?0:w.find(X))?!0:!1}}});
ZJ.prototype.onEmojiSelect=ZJ.prototype.onEmojiSelect;ZJ.prototype.dataChanged=ZJ.prototype.dataChanged;ZJ.prototype.currentCommentOptionChanged=ZJ.prototype.currentCommentOptionChanged;_.E([_.q(_.MZ),_.U("design:type",Object)],ZJ.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ZJ.prototype,"rendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.rt("#content-dom-if"),_.U("design:type",_.fd)],ZJ.prototype,"contentDomIfEl",void 0);_.E([_.rt("#content-no-emojis"),_.U("design:type",HTMLElement)],ZJ.prototype,"contentEl",void 0);_.E([_.rt("#container"),_.U("design:type",HTMLElement)],ZJ.prototype,"containerEl",void 0);_.E([_.rt("#comment-chip-container"),_.U("design:type",HTMLElement)],ZJ.prototype,"paidCommentChipContainerEl",void 0);_.E([_.rt("#text-input"),_.U("design:type",HTMLElement)],ZJ.prototype,"editableTextEl",void 0);
_.E([_.rt("#emoji-button"),_.U("design:type",HTMLElement)],ZJ.prototype,"emojiButtonEl",void 0);_.E([_.rt("#emoji-picker > yt-emoji-picker-renderer"),_.U("design:type",Object)],ZJ.prototype,"emojiPickerEl",void 0);_.E([_.rt("#text-input > ytd-comment-input"),_.U("design:type",Object)],ZJ.prototype,"ytdCommentInputEl",void 0);_.E([_.K(),_.U("design:type",Object)],ZJ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],ZJ.prototype,"currentCommentOptionIndex",void 0);
_.E([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:fOV}),_.U("design:type",Object)],ZJ.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.K(),_.U("design:type",Object)],ZJ.prototype,"isEmojiPickerDisplayed",void 0);_.E([_.K(),_.U("design:type",Object)],ZJ.prototype,"emojiManager",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ZJ.prototype,"isUgcEmpty",void 0);
_.E([_.cW("currentCommentOption"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ZJ.prototype,"currentCommentOptionChanged",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ZJ.prototype,"dataChanged",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ZJ.prototype,"isEmojiYtdCommentInputEnabled",null);
_.E([_.C("data.title"),_.U("design:type",Object),_.U("design:paramtypes",[])],ZJ.prototype,"title",null);_.E([_.C("data.authorText"),_.U("design:type",Object),_.U("design:paramtypes",[])],ZJ.prototype,"channelName",null);_.E([_.C("data.commentOptionRenderers","currentCommentOption"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ZJ.prototype,"shouldShowPaidCommentChipRenderer",null);
_.E([_.C("data.commentOptionRenderers","currentCommentOption"),_.U("design:type",Object),_.U("design:paramtypes",[])],ZJ.prototype,"paidCommentChipRenderer",null);_.E([_.C("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],ZJ.prototype,"currentCommentOption",null);
_.E([_.C("data.defaultCommentText","superThanksSelectedTierEntity"),_.U("design:type",Object),_.U("design:paramtypes",[])],ZJ.prototype,"commentText",null);_.E([_.C("data.placeholderText"),_.U("design:type",Object),_.U("design:paramtypes",[])],ZJ.prototype,"placeholderText",null);_.E([_.C("data.commentDialog.commentDialogRenderer.editableText"),_.U("design:type",Object),_.U("design:paramtypes",[])],ZJ.prototype,"editableText",null);
_.E([_.C("data.commentDialog.commentDialogRenderer.emojiButton"),_.U("design:type",Object),_.U("design:paramtypes",[])],ZJ.prototype,"emojiButton",null);_.E([_.C("data.commentDialog.commentDialogRenderer.emojiPicker"),_.U("design:type",Object),_.U("design:paramtypes",[])],ZJ.prototype,"emojiPicker",null);
_.E([_.C("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],ZJ.prototype,"isEmojiButtonDisplayed",null);_.E([_.WW("yt-emoji-select"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],ZJ.prototype,"onEmojiSelect",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],ZJ);
_.N(ZJ,"ytd-pdg-comment-preview-renderer",function(){if(D62!==void 0)return D62;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return D62=X},{mode:2});var hY4;var qG=function(){var X=_.O.apply(this,arguments)||this;X.selected=!1;return X};
_.S(qG,_.O);_.H=qG.prototype;_.H.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.H.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.H.dataChanged=function(){this.data&&(_.hb(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Kd(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.yY(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.yY(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.H.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.H.onClick=function(){this.logClick()};
_.H.onKeyboardSelect=function(){_.Yt(this.hostElement,"tap");this.onClick()};
_.H.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
qG.prototype.onClick=qG.prototype.onClick;qG.prototype.selectedChanged=qG.prototype.selectedChanged;qG.prototype.dataChanged=qG.prototype.dataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],qG.prototype,"componentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.NN),_.U("design:type",Object)],qG.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.q(_.nz),_.U("design:type",Object)],qG.prototype,"ironSelectableBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qG.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],qG.prototype,"shownThumbnail",void 0);_.E([_.K(),_.U("design:type",Object)],qG.prototype,"basePriceText",void 0);_.E([_.K(),_.U("design:type",Object)],qG.prototype,"purchaseCommand",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],qG.prototype,"selected",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],qG.prototype,"dataChanged",null);_.E([_.cW("selected"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],qG.prototype,"selectedChanged",null);_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],qG.prototype,"onClick",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],qG);
_.N(qG,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(hY4!==void 0)return hY4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return hY4=X},{mode:1});var Ca=function(){var X=_.O.apply(this,arguments)||this;X.selectedItemIndex=0;X.buyButtonDisabled=!1;return X};
_.S(Ca,_.O);_.H=Ca.prototype;
_.H.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]]"}}}}}};
_.H.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var X;var t=(X=_.Y(this.data.colorSlider,W4q))==null?void 0:X.notches[this.selectedItemIndex].purchaseCommand}else{var G;t=(G=_.Y(this.data.selectableItemButtons[this.selectedItemIndex],r_B))==null?void 0:G.purchaseCommand}if(t){X=_.Y(t,_.WVo);X.productData||(X.productData={});var y;X.productData={pdgData:{commentMessageText:(y=this.commentPreviewRenderer)==null?void 0:y.getUserGeneratedCommentText()}};
_.Yt(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(t)}}};
_.H.dataChanged=function(){if(this.data){_.wQ.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.kUq(_.wQ,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.wQ.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var X;this.buyButtonDisabled=!((X=_.Y(this.data.commentPreview,pNT))==null||!X.placeholderText);this.updatePriceSelectorStatus();var t;if((t=this.data)==null?0:t.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;X=[];this.data.preloadImages&&(X=this.data.preloadImages);
X=X.map(function(G){return _.S_(G.thumbnails,1920)});
X=_.J(X);for(t=X.next();!t.done;t=X.next())(t=t.value)&&_.ZQ_(t).thenCatch(function(){_.Mj(Error("ml"))})}};
_.H.superThanksSelectedTierEntityChanged=function(){var X;(this==null?void 0:(X=this.superThanksSelectedTierEntity)==null?void 0:X.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.H.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.H.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Sm(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Sm(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Sm(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Sm(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.H.closeBuyFlow=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.H.onUserGeneratedContentChanged=function(){var X;this.buyButtonDisabled=!((X=this.commentPreviewRenderer)==null?0:X.getUserGeneratedCommentText())};
_.H.updateSelectedItemIndexFromBinding=function(X){this.selectedItemIndex=X.detail.value};
_.ke.Object.defineProperties(Ca.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.disclaimerText)}}});
Ca.prototype.onUserGeneratedContentChanged=Ca.prototype.onUserGeneratedContentChanged;Ca.prototype.closeBuyFlow=Ca.prototype.closeBuyFlow;Ca.prototype.selectedItemIndexChanged=Ca.prototype.selectedItemIndexChanged;Ca.prototype.superThanksSelectedTierEntityChanged=Ca.prototype.superThanksSelectedTierEntityChanged;Ca.prototype.dataChanged=Ca.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Ca.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ca.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Ca.prototype,"selectedItemIndex",void 0);_.E([_.K(),_.U("design:type",Boolean)],Ca.prototype,"isColorSlider",void 0);
_.E([_.K(),_.U("design:type",Object)],Ca.prototype,"buyButtonDisabled",void 0);_.E([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:fOV}),_.U("design:type",Object)],Ca.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.rt("ytd-pdg-comment-preview-renderer"),_.U("design:type",Object)],Ca.prototype,"commentPreviewRenderer",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Ca.prototype,"ytdReduxBehavior",void 0);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ca.prototype,"dataChanged",null);_.E([_.cW("superThanksSelectedTierEntity"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ca.prototype,"superThanksSelectedTierEntityChanged",null);_.E([_.cW("selectedItemIndex"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ca.prototype,"selectedItemIndexChanged",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ca.prototype,"closeBuyFlow",null);_.E([_.WW("ytd-pdg-user-generated-comment-changed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ca.prototype,"onUserGeneratedContentChanged",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Ca.prototype,"isDisclaimerTextShown",null);
_.E([_.p({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Ca);
_.N(Ca,"yt-super-vod-buy-flow-content-renderer",function(){if(YD4!==void 0)return YD4;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return YD4=X},{mode:1});var Zi2;var Ka=function(){var X=_.O.apply(this,arguments)||this;X.lottieAnimationRef={};return X};
_.S(Ka,_.O);_.H=Ka.prototype;_.H.created=function(){_.wB.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Ik(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.H.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Yt(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.H.detached=function(){this.autoCloseJobId&&_.vz.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Ik(this,this.onPopupIronOverlayOpened))};
_.H.dataChanged=function(){var X=this;this.data&&this.data.autoCloseDelay&&(_.sl(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.CX(_.vz,function(){X.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Kd(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.H.onDOMLoadedLottie=function(){var X=this,t,G,y=Number((t=this.data)==null?void 0:(G=t.autoCloseDelay)==null?void 0:G.seconds)||0;this.fadeOutJobId=_.CX(_.vz,function(){X.lottiePlayerEl.classList.add("fadeout")},(y-.25)*1E3);
this.autoCloseJobId=_.CX(_.vz,function(){X.closePopup()},y*1E3)};
_.H.openPopup=function(){this.ironOverlayBehavior.open()};
_.H.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.sl(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Z0(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.gw().resolve(_.F3).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.vz.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.vz.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.H.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var X,t;(X=this.lottieAnimationRef)==null||(t=X.lottieEl)==null||t.destroy();X=this.data.lottie;var G,y;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:X.url+"_"+Math.random(),path:X.url,autoplay:!0,loop:(y=(G=X.settings)==null?void 0:G.loop)!=null?y:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.ke.Object.defineProperties(Ka.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var X,t;return!!((X=this.data)==null?0:(t=X.lottie)==null?0:t.url)}}});
Ka.prototype.maybeInitializeLottie=Ka.prototype.maybeInitializeLottie;Ka.prototype.dataChanged=Ka.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ka.prototype,"rendererBehavior",void 0);_.E([_.q(_.BM),_.U("design:type",Object)],Ka.prototype,"ironOverlayBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ka.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Ka.prototype,"lottiePlayerProps",void 0);
_.E([_.K(),_.U("design:type",Object)],Ka.prototype,"lottieAnimationRef",void 0);_.E([_.rt("ytd-lottie-player"),_.U("design:type",HTMLElement)],Ka.prototype,"lottiePlayerEl",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ka.prototype,"dataChanged",null);_.E([_.C("data"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Ka.prototype,"hasLottieAnimation",null);
_.E([_.cW("data.lottie.url"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ka.prototype,"maybeInitializeLottie",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Ka);
_.N(Ka,"ytd-desktop-image-overlay-renderer",function(){if(Zi2!==void 0)return Zi2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Zi2=X},{mode:1});var qDa;var OQ=function(){return _.O.apply(this,arguments)||this};
_.S(OQ,_.O);_.H=OQ.prototype;_.H.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"}}}}};
_.H.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",_.Ik(this,this.closePopup))};
_.H.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ik(this,this.closePopup))};
_.H.dataChanged=function(){_.D0(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.Y(this.data.header,IGR)&&(this.hasBackgroundBanner=!!_.Y(this.data.header,IGR).backgroundBanner)};
_.H.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ik(this,this.closePopup))};
_.H.closePopup=function(){this.data&&this.data.onCloseCommand&&_.hE(this.hostElement,[this.data.onCloseCommand])};
OQ.prototype.handleBuyflowSelectionSubmitted=OQ.prototype.handleBuyflowSelectionSubmitted;OQ.prototype.dataChanged=OQ.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],OQ.prototype,"data",void 0);
_.E([_.K({value:!0,reflectToAttribute:!0}),_.U("design:type",Boolean)],OQ.prototype,"hasBackgroundBanner",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OQ.prototype,"dataChanged",null);_.E([_.WW("yt-pdg-buy-flow-selection-submitted"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OQ.prototype,"handleBuyflowSelectionSubmitted",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],OQ);
_.N(OQ,"ytd-pdg-buy-flow-renderer",function(){if(qDa!==void 0)return qDa;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qDa=X},{mode:1});var CN2;var uo=function(){var X=_.O.apply(this,arguments)||this;X.isOpen=!1;X.isPlaylistCreated=!1;return X};
_.S(uo,_.O);_.H=uo.prototype;_.H.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.H.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Yt(this.hostElement,"yt-refit")};
_.H.onCreateTap=function(){var X=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.hE(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(t,G){if(!_.A("killswitch_ep_in_create_playlist_response")&&(G==null?0:G.actions))for(t=_.J(G.actions),G=t.next();!G.done;G=t.next())G=G.value,_.Y(G,_.xl)&&X.ytComponentBehavior.resolveCommand(G)}}]),this.isPlaylistCreated=!0)};
_.H.onKeydown=function(X){if(X.keyCode===13)this.onCreateTap()};
_.H.onServiceRequestCompleted=function(X){X.stopPropagation();_.sl(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.H.computePrivacyBadge=function(X){return X?[{metadataBadgeRenderer:X}]:[]};
uo.prototype.onServiceRequestCompleted=uo.prototype.onServiceRequestCompleted;uo.prototype.onKeydown=uo.prototype.onKeydown;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],uo.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uo.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],uo.prototype,"isOpen",void 0);
_.E([_.K(),_.U("design:type",Object)],uo.prototype,"isPlaylistCreated",void 0);_.E([_.K({value:{REQUIRED_LABEL:_.Qf("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Qf("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.U("design:type",Object)],uo.prototype,"addToStrings",void 0);_.E([_.K({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.U("design:type",Array)],uo.prototype,"privacyBadge",void 0);
_.E([_.rt("#privacy-input"),_.U("design:type",Object)],uo.prototype,"privacyInput",void 0);_.E([_.rt("#name-input"),_.U("design:type",Object)],uo.prototype,"nameInput",void 0);_.E([_.WW("keydown"),_.U("design:type",Function),_.U("design:paramtypes",[KeyboardEvent]),_.U("design:returntype")],uo.prototype,"onKeydown",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],uo.prototype,"onServiceRequestCompleted",null);
_.E([_.p({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],uo);
_.N(uo,"ytd-add-to-playlist-create-renderer",function(){if(CN2!==void 0)return CN2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return CN2=X},{mode:1});var K0i;var Oi2;var Qg=function(){var X=_.O.apply(this,arguments)||this;X.transferState="TRANSFER_STATE_UNKNOWN";return X};
_.S(Qg,_.O);Qg.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Qg.prototype.onCheckboxChange=function(X){var t=this;this.data&&_.Jm(this,"yt-playlist-checkbox-changed",function(){var G=_.k3(X).checked?t.data.addToPlaylistServiceEndpoint:t.data.removeFromPlaylistServiceEndpoint;G&&_.gw().resolve(_.F3).resolveCommand(G,{form:{element:t.hostElement}});_.A("dl_playlist_killswitch")||t.transferState!=="TRANSFER_STATE_UNKNOWN"&&t.transferState!=="TRANSFER_STATE_FAILED"&&t.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:t.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Qg.prototype.computeIconType=function(X){return X?"yt-icons:"+X.toLowerCase():null};
Qg.prototype.dataChanged=Qg.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Qg.prototype,"data",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],Qg.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Qg.prototype,"ytComponentBehavior",void 0);_.E([_.rt("#checkbox"),_.U("design:type",HTMLInputElement)],Qg.prototype,"checkbox",void 0);
_.E([_.K({selector:_.tp,selectorArgs:["data.playlistId"]}),_.U("design:type",String)],Qg.prototype,"transferState",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Qg.prototype,"dataChanged",null);_.E([_.p({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Qg);
_.N(Qg,"ytd-playlist-add-to-option-renderer",function(){if(Oi2!==void 0)return Oi2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return Oi2=X},{mode:1});_.FE(MmN);_.up(MmN,"ytd-menu-title-renderer",{propNames:["data"]});var Id=function(){var X=_.O.apply(this,arguments)||this;X.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Qf("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};X.closeButtonAriaLabel=_.Qf("SBOX_INAPPROPRIATE_CANCEL");X.dialog=_.A("desktop_add_to_playlist_renderer_dialog_popup");return X};
_.S(Id,_.O);_.H=Id.prototype;_.H.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"}}}};
_.H.onPopupOpened=function(){_.Zk(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.H.onPopupClosed=function(){_.Zk(this.playlists,"scrollable",!1)};
_.H.computeAriaLabel=function(){var X;if(this==null?0:(X=this.data)==null?0:X.actions){X=_.J(this.data.actions);for(var t=X.next();!t.done;t=X.next())if(t=t.value,t.menuTitleRenderer)return _.bu(t.menuTitleRenderer.title)}};
_.H.onTapClose=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.ke.Object.defineProperties(Id.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var X;if(this==null?0:(X=this.data)==null?0:X.actions){X=_.J(this.data.actions);for(var t=X.next();!t.done;t=X.next())if(t=t.value,t.menuTitleRenderer)return t.menuTitleRenderer}return!1}}});
Id.prototype.onPopupClosed=Id.prototype.onPopupClosed;Id.prototype.onPopupOpened=Id.prototype.onPopupOpened;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Id.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Id.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],Id.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],Id.prototype,"addToStrings",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.U("design:type",String)],Id.prototype,"ariaLabel",void 0);_.E([_.K(),_.U("design:type",String)],Id.prototype,"closeButtonAriaLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Id.prototype,"dialog",void 0);
_.E([_.rt("#playlists"),_.U("design:type",HTMLElement)],Id.prototype,"playlists",void 0);_.E([_.rt("ytd-add-to-playlist-create-renderer"),_.U("design:type",Object)],Id.prototype,"createRenderer",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Id.prototype,"menuTitleRenderer",null);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Id.prototype,"onPopupOpened",null);
_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Id.prototype,"onPopupClosed",null);_.E([_.p({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Id);
_.N(Id,"ytd-add-to-playlist-renderer",function(){if(K0i!==void 0)return K0i;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return K0i=X},{mode:1});var uUR;var Ww=function(){var X=_.O.apply(this,arguments)||this;X.isPlaylistEditComplete=!1;X.isCollabEngagementDisabled=!1;X.closeButtonAriaLabel=_.Qf("SBOX_INAPPROPRIATE_CANCEL");X.saveButton={title:_.Qf("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"};X.onValueChanged=function(){X.updateSaveButtonState();X.computeCollabEngagementDisabled()};
return X};
_.S(Ww,_.O);_.H=Ww.prototype;_.H.attached=function(){this.JSC$20347_scroller&&(this.JSC$20347_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20347_scroller.attached&&typeof this.JSC$20347_scroller.attached==="function"&&this.JSC$20347_scroller.attached())};
_.H.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.H.onPopupClosed=function(){this.reset()};
_.H.close=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.H.onClickSave=function(){var X=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var t=[];this.nameInput.value!==null&&t.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&t.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var G=Number(this.privacyInput.value);isNaN(G)||t.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:G})}this.votingInput.value!==null&&(G=this.votingInput.value)&&t.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:G});if(t.length>0){var y;_.Y((y=this.data)==null?void 0:y.updateSettingsEndpoint,_.Xs).actions=t;var w;if((w=this.data)==null?0:w.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){X.close()}}}),this.isPlaylistEditComplete=!0}}};
_.H.computePrivacyBadge=function(X){return X?[{metadataBadgeRenderer:X}]:[]};
_.H.computeEditorData=function(X){var t,G;return X==null?void 0:(t=X.sections)==null?void 0:(G=t[0])==null?void 0:G.playlistSettingsEditorCasualSectionRenderer};
_.H.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.H.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}}}}}};
_.H.computeAriaLabel=function(){var X,t,G,y=(X=this.data)==null?void 0:(t=X.sections)==null?void 0:(G=t[0])==null?void 0:G.playlistSettingsEditorCasualSectionRenderer;return _.bu(y==null?void 0:y.title)};
_.H.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"}))};
_.H.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.H.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.H.isNameChanged=function(){var X,t,G;return(((X=this.editorData)==null?void 0:(t=X.name)==null?void 0:(G=t.textInputFormFieldRenderer)==null?void 0:G.value)||"")!==(this.nameInput.value||"")};
_.H.isDescriptionChanged=function(){var X,t,G;return(((X=this.editorData)==null?void 0:(t=X.description)==null?void 0:(G=t.textInputFormFieldRenderer)==null?void 0:G.value)||"")!==(this.descriptionInput.value||"")};
_.H.isPrivacyChanged=function(){var X,t,G,y,w,z,B,V;return((B=(X=this.editorData)==null?void 0:(t=X.privacy)==null?void 0:(G=t.dropdownFormFieldRenderer)==null?void 0:(y=G.dropdown)==null?void 0:(w=y.dropdownRenderer)==null?void 0:(z=w.entries)==null?void 0:z.find(function(b){var e;return b==null?void 0:(e=b.privacyDropdownItemRenderer)==null?void 0:e.isSelected}))==null?void 0:(V=B.privacyDropdownItemRenderer)==null?void 0:V.int32Value)!==this.privacyInput.value};
_.H.isVotingChanged=function(){var X,t,G,y,w,z,B,V;return((B=(X=this.editorData)==null?void 0:(t=X.voting)==null?void 0:(G=t.dropdownFormFieldRenderer)==null?void 0:(y=G.dropdown)==null?void 0:(w=y.dropdownRenderer)==null?void 0:(z=w.entries)==null?void 0:z.find(function(b){var e;return b==null?void 0:(e=b.privacyDropdownItemRenderer)==null?void 0:e.isSelected}))==null?void 0:(V=B.privacyDropdownItemRenderer)==null?void 0:V.int32Value)!==this.votingInput.value};
Ww.prototype.onPopupClosed=Ww.prototype.onPopupClosed;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Ww.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Ww.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ww.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],Ww.prototype,"data",void 0);_.E([_.K({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.U("design:type",Array)],Ww.prototype,"privacyBadge",void 0);_.E([_.K({computed:"computeEditorData(data)"}),_.U("design:type",Object)],Ww.prototype,"editorData",void 0);_.E([_.K(),_.U("design:type",Object)],Ww.prototype,"isPlaylistEditComplete",void 0);_.E([_.K(),_.U("design:type",Object)],Ww.prototype,"isCollabEngagementDisabled",void 0);
_.E([_.K({value:{REQUIRED_LABEL:_.Qf("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Qf("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.U("design:type",Object)],Ww.prototype,"addToStrings",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.U("design:type",String)],Ww.prototype,"ariaLabel",void 0);_.E([_.K(),_.U("design:type",String)],Ww.prototype,"closeButtonAriaLabel",void 0);
_.E([_.K(),_.U("design:type",Object)],Ww.prototype,"saveButton",void 0);_.E([_.rt("#name-input"),_.U("design:type",Object)],Ww.prototype,"nameInput",void 0);_.E([_.rt("#description-input"),_.U("design:type",Object)],Ww.prototype,"descriptionInput",void 0);_.E([_.rt("#privacy-input"),_.U("design:type",Object)],Ww.prototype,"privacyInput",void 0);_.E([_.rt("#voting-input"),_.U("design:type",Object)],Ww.prototype,"votingInput",void 0);
_.E([_.rt("#scroller"),_.U("design:type",Object)],Ww.prototype,"JSC$20347_scroller",void 0);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ww.prototype,"onPopupClosed",null);_.E([_.K(),_.U("design:type",Object)],Ww.prototype,"onValueChanged",void 0);_.E([_.p({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Ww);
_.N(Ww,"ytd-playlist-settings-editor-renderer",function(){if(uUR===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);uUR=X}X=uUR;return X},{mode:1});var QRv;_.Xa("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var cw=function(){return _.O.apply(this,arguments)||this};
_.S(cw,_.O);_.H=cw.prototype;_.H.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}}}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.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 X=this.get("data.nextButton.buttonRenderer.navigationEndpoint");X&&(this.nextNavigationEndpoint=X,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.H.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 X={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",X)}}};
_.H.onPopupOpened=function(X){X.detail!==this&&X.detail!==this.hostElement||!_.A("enable_premium_voluntary_pause")||_.sl(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.H.onNextButtonTap=function(){var X=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);X&&this.ytdOpenPopupBehavior.openPopup(X)};
_.H.updateSelectedResponseIndexFromBinding=function(X){this.selectedResponseIndex=X.detail.value};
cw.prototype.onPopupOpened=cw.prototype.onPopupOpened;cw.prototype.onSelectedResponseIndexChange=cw.prototype.onSelectedResponseIndexChange;cw.prototype.dataChanged=cw.prototype.dataChanged;_.E([_.q(_.dQ),_.U("design:type",Object)],cw.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],cw.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],cw.prototype,"selectedResponseIndex",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],cw.prototype,"dataChanged",null);_.E([_.cW("selectedResponseIndex"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],cw.prototype,"onSelectedResponseIndexChange",null);
_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],cw.prototype,"onPopupOpened",null);_.E([_.p({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],cw);
_.N(cw,"ytd-red-cancel-survey-renderer",function(){if(QRv!==void 0)return QRv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return QRv=X},{mode:1});var IjQ;var pa=function(){var X=_.O.apply(this,arguments)||this;X.closeButtonAriaLabel=_.Qf("SBOX_INAPPROPRIATE_CANCEL");return X};
_.S(pa,_.O);pa.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
pa.prototype.onClickClose=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],pa.prototype,"rendererStamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],pa.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],pa.prototype,"closeButtonAriaLabel",void 0);_.E([_.p({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],pa);
_.N(pa,"ytd-search-filter-options-dialog-renderer",function(){if(IjQ!==void 0)return IjQ;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return IjQ=X},{mode:1});var W0H;var txB=function(){return function(X){X=X.availabilityType;return X===void 0||X==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||X==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var r0=function(){var X=_.O.apply(this,arguments)||this;X.qualityOptions=[];X.upsellOptions=[];X.showUpsellSection=!1;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.rememberSettingsChecked=!1;return X};
_.S(r0,_.O);_.H=r0.prototype;_.H.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}}}}};
_.H.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.H.updateQualityOptions=function(){if(this.formats===void 0)_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var X=[],t=[];this.showUpsellSection=!1;for(var G=_.J(this.formats),y=G.next();!y.done;y=G.next())(y=y.value)&&(y.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?t.push(y):X.push(y));X.length&&(this.qualityOptions=$i2(X));t.length&&(this.showUpsellSection=!0,this.upsellOptions=$i2(t))}};
_.H.updateRememberString=function(){if(this.downloadQualityPickerEntity)var X=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var t;X=(t=this.data)==null?void 0:t.premiumRememberSettingString}else{var G;X=(G=this.data)==null?void 0:G.rememberSettingString}X=X===void 0?_.Qf("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):X;this.rememberSettingsCheckboxRenderer={title:_.Ag(X),disabled:!1}};
_.H.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.ke.Object.defineProperties(r0.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var X;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(X=this.data)==null?void 0:X.qualityFormats}}});
r0.prototype.updateRememberString=r0.prototype.updateRememberString;r0.prototype.updateQualityOptions=r0.prototype.updateQualityOptions;r0.prototype.dataChanged=r0.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],r0.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],r0.prototype,"data",void 0);
_.E([_.q(_.MZ),_.U("design:type",Object)],r0.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Boolean)],r0.prototype,"selectedUpsellQuality",void 0);_.E([_.K({computed:"computeIcon_(data.premiumIcon)",value:""}),_.U("design:type",String)],r0.prototype,"premiumIcon",void 0);_.E([_.K({selector:v5R,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.U("design:type",Object)],r0.prototype,"downloadQualityPickerEntity",void 0);
_.E([_.K(),_.U("design:type",Array)],r0.prototype,"qualityOptions",void 0);_.E([_.K(),_.U("design:type",Array)],r0.prototype,"upsellOptions",void 0);_.E([_.K(),_.U("design:type",Object)],r0.prototype,"showUpsellSection",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],r0.prototype,"darkerDarkTheme",void 0);_.E([_.K(),_.U("design:type",Object)],r0.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.E([_.rt("#remember-settings"),_.U("design:type",HTMLInputElement)],r0.prototype,"rememberSettingsCheckbox",void 0);_.E([_.K(),_.U("design:type",Object)],r0.prototype,"rememberSettingsChecked",void 0);_.E([_.K(),_.U("design:type",Function)],r0.prototype,"onRememberSettingsCheckedChanged",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],r0.prototype,"dataChanged",null);
_.E([_.cW("downloadQualityPickerEntity"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],r0.prototype,"updateQualityOptions",null);_.E([_.cW("selectedUpsellQuality"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],r0.prototype,"updateRememberString",null);_.E([_.p({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],r0);
_.N(r0,"ytd-download-quality-selector-content",function(){if(W0H!==void 0)return W0H;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return W0H=X},{mode:1});var cYR;var NG=function(){var X=_.O.apply(this,arguments)||this;X.selectedUpsellQuality=!1;X.qualityOptions=[];X.darkerDarkTheme=_.A("web_darker_dark_theme");X.useUpsellDismissAlternate=_.A("use_not_now_dl_upsell_dismiss_cta");X.shouldShowAlternateUpsellDimiss=!1;X.rememberSettings=!1;X.rememberSettingsChecked=!1;X.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};X.rememberSettingsCheckedChanged=function(t){X.rememberSettingsChecked=t};
return X};
_.S(NG,_.O);_.H=NG.prototype;
_.H.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ag(_.Qf("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ag(_.Qf("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ag(_.Qf("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ag(_.Qf("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.H.updateQualityOptions=function(){this.formats===void 0?_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=$i2(this.formats)};
_.H.onQualityOptionsSelect=function(X){if(this.qualityOptions&&X){X!==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 t=_.J(this.qualityOptions.entries()),G=t.next();!G.done;G=
t.next()){G=_.J(G.value);var y=G.next().value;G=G.next().value;var w=void 0,z=void 0;if(((w=G)==null?void 0:(z=w.settingsRadioOptionRenderer)==null?void 0:z.id)===X){this.selectedQualityIndex=y;X=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((X=this.formats[y])==null?void 0:X.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.H.onClickSubmit=function(){var X;if((X=this.downloadButtonRenderer)==null||!X.isDisabled){var t,G;X=(G=(t=this.data)==null?void 0:t.onSubmitEndpoint)!=null?G:{};var y,w;if(this.formats&&(((y=_.Y(X,_.ck))==null?0:y.videoId)||((w=_.Y(X,_.p5))==null?0:w.playlistId))){var z,B,V,b,e,g;t={formatType:(b=(z=this.formats)==null?void 0:(B=z[(V=this.selectedQualityIndex)!=null?V:0])==null?void 0:B.format)!=null?b:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(e=this.getOfflineEndpoint(X))==null?void 0:(g=e.actionParams)==null?void 0:g.settingsAction)};this.getOfflineEndpoint(X).actionParams=t;this.ytComponentBehavior.resolveCommand(X)}_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.H.onClickUpsell=function(){var X;if((X=this.upsellButtonRenderer)==null||!X.isDisabled){var t,G;X=(G=(t=this.data)==null?void 0:t.upsellEndpoint)!=null?G:{};this.ytComponentBehavior.resolveCommand(X);_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);t="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var y,w,z,B;t=(B=(y=this.formats)==null?void 0:(w=y[(z=this.selectedQualityIndex)!=null?z:0])==null?void 0:w.format)!=null?B:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:t}})}};
_.H.onClickClose=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.H.getOfflineSettingsAction=function(X,t){return X?t===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":t:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.H.getOfflineEndpoint=function(X){return _.Y(X,_.ck)?_.Y(X,_.ck):_.Y(X,_.p5)};
_.ke.Object.defineProperties(NG.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Ag(_.Qf("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var X;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(X=this.data)==null?void 0:X.qualityFormats}}});
NG.prototype.updateQualityOptions=NG.prototype.updateQualityOptions;NG.prototype.dataChanged=NG.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],NG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],NG.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],NG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],NG.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Number)],NG.prototype,"selectedQualityIndex",void 0);_.E([_.K(),_.U("design:type",Object)],NG.prototype,"selectedUpsellQuality",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],NG.prototype,"ytdReduxBehavior",void 0);
_.E([_.K({selector:v5R,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.U("design:type",Object)],NG.prototype,"downloadQualityPickerEntity",void 0);_.E([_.K(),_.U("design:type",Array)],NG.prototype,"qualityOptions",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],NG.prototype,"darkerDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],NG.prototype,"useUpsellDismissAlternate",void 0);
_.E([_.K(),_.U("design:type",Object)],NG.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.E([_.K(),_.U("design:type",Object)],NG.prototype,"downloadButtonRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],NG.prototype,"upsellButtonRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],NG.prototype,"cancelButtonRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],NG.prototype,"upsellCancelButtonRenderer",void 0);_.E([_.K(),_.U("design:type",Object)],NG.prototype,"rememberSettings",void 0);
_.E([_.K(),_.U("design:type",Object)],NG.prototype,"rememberSettingsChecked",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],NG.prototype,"dataChanged",null);_.E([_.cW("downloadQualityPickerEntity"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],NG.prototype,"updateQualityOptions",null);_.E([_.p({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],NG);
_.N(NG,"ytd-download-quality-selector-renderer",function(){if(cYR!==void 0)return cYR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return cYR=X},{mode:1});var p_i;var Pw=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(Pw,_.O);Pw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Pw.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"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Pw.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Pw.prototype,"darkerDarkTheme",void 0);_.E([_.K({computed:"computeIcon_(data.infoIcon)"}),_.U("design:type",Object)],Pw.prototype,"infoIcon",void 0);
_.E([_.K({computed:"computeIcon_(data.warningIcon)"}),_.U("design:type",Object)],Pw.prototype,"warningIcon",void 0);_.E([_.p({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Pw);
_.N(Pw,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(p_i!==void 0)return p_i;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return p_i=X},{mode:1});var rYi;var EQ=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(EQ,_.O);EQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
EQ.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"}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],EQ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],EQ.prototype,"darkerDarkTheme",void 0);_.E([_.p({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],EQ);
_.N(EQ,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(rYi!==void 0)return rYi;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return rYi=X},{mode:1});var NRH;var UQ=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(UQ,_.O);UQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
UQ.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"}}}}};
UQ.prototype.onServiceRequestSentOrCompleted=function(X,t){t&&t.actions&&t.actions.length>0&&_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
UQ.prototype.onServiceRequestSentOrCompleted=UQ.prototype.onServiceRequestSentOrCompleted;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],UQ.prototype,"darkerDarkTheme",void 0);_.E([_.K(),_.U("design:type",Object)],UQ.prototype,"data",void 0);
_.E([_.WW("yt-service-request-completed"),_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],UQ.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.p({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],UQ);
_.N(UQ,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(NRH!==void 0)return NRH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return NRH=X},{mode:1});var PNq;var mz=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.submitButtonDisabled=!0;return X};
_.S(mz,_.O);_.H=mz.prototype;_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.H.onDataChanged=function(){var X,t,G;if(((X=this.data)==null?void 0:(t=X.confirmButton)==null?void 0:(G=t.buttonRenderer)==null?void 0:G.isDisabled)!==void 0){var y,w,z;this.submitButtonDisabled=(y=this.data)==null?void 0:(w=y.confirmButton)==null?void 0:(z=w.buttonRenderer)==null?void 0:z.isDisabled}};
_.H.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.H.updateSubmitButtonDisabledFromBinding=function(X){this.submitButtonDisabled=X.detail.value};
_.H.updateSubmitButtonDisabledFromConfirmCheckbox=function(X){this.submitButtonDisabled=!X.detail.value};
mz.prototype.onDataChanged=mz.prototype.onDataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mz.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mz.prototype,"darkerDarkTheme",void 0);
_.E([_.K(),_.U("design:type",Object)],mz.prototype,"submitButtonDisabled",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],mz.prototype,"onDataChanged",null);_.E([_.p({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],mz);
_.N(mz,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(PNq!==void 0)return PNq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return PNq=X},{mode:1});var EqH;var Rd=function(){return _.O.apply(this,arguments)||this};
_.S(Rd,_.O);_.ke.Object.defineProperties(Rd.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var X,t,G;return((X=this.data)==null?void 0:X.title)+" "+((t=this.data)==null?void 0:t.metadataPrimary)+" "+((G=this.data)==null?void 0:G.metadataSecondary)}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Rd.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Rd.prototype,"data",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],Rd.prototype,"ariaLabel",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Rd);
_.N(Rd,"ytd-compact-product-list-item-renderer",function(){if(EqH!==void 0)return EqH;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return EqH=X},{mode:1});var U6N;var io=function(){return _.O.apply(this,arguments)||this};
_.S(io,_.O);io.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]]"}}}}}};
_.ke.Object.defineProperties(io.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],io.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],io.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],io.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],io);
_.N(io,"ytd-compact-product-list-renderer",function(){if(U6N!==void 0)return U6N;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return U6N=X},{mode:1});var m6R;var La=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(La,_.O);_.H=La.prototype;_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.H.getBackgroundUrl=function(){var X=this.get("data.headerImage.thumbnails");return X?"url("+_.S_(X,this.hostElement.clientWidth)+")":""};
_.H.onDataChanged=function(){var X=this.getBackgroundUrl();X&&(this.header.style.backgroundImage=X);X=_.lw();var t=_.a4(),G=this.get("data.trackingParams");G&&t&&X&&_.w9(X,t,_.i$(G));X=_.J(this.hostElement.querySelectorAll("yt-img-shadow"));for(t=X.next();!t.done;t=X.next())t.value.onShow()};
_.H.onPopupClosed=function(X){_.k3(X).localName==="ytd-membership-post-cancel-renderer"&&_.sl(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
La.prototype.onPopupClosed=La.prototype.onPopupClosed;La.prototype.onDataChanged=La.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],La.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],La.prototype,"darkerDarkTheme",void 0);
_.E([_.rt("#header"),_.U("design:type",HTMLDivElement)],La.prototype,"header",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],La.prototype,"onDataChanged",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],La.prototype,"onPopupClosed",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],La);
_.N(La,"ytd-membership-post-cancel-renderer",function(){if(m6R!==void 0)return m6R;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return m6R=X},{mode:1});var RYR;var vw=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(vw,_.O);vw.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
vw.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],vw.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],vw.prototype,"darkerDarkTheme",void 0);_.E([_.rt("ytd-feedback-survey-renderer"),_.U("design:type",Object)],vw.prototype,"feedbackSurveyRenderer",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],vw);
_.N(vw,"ytd-sponsorship-confirm-cancel-content",function(){if(RYR!==void 0)return RYR;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return RYR=X},{mode:1});var ii2;var ad=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.maybeSubmitFeedback=function(){X.content&&X.content.maybeSubmitFeedback()};
return X};
_.S(ad,_.O);_.H=ad.prototype;_.H.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.H.onYtPopupOpened=function(X,t){t===this&&this.data&&this.data.onOpenCommands&&_.Z0(this.hostElement,this.data.onOpenCommands,this.hostElement);_.sl(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.H.onYtPopupClosed=function(X,t){(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Z0(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.H.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.H.onYtServiceRequestError=function(X){_.F7(this.hostElement,X.detail.error.message)};
_.H.onDataChanged=function(){if(this.isAttached){var X=this.backgroundUrl;X&&(_.Sm(this.hostElement).querySelector("#header").style.backgroundImage=X)}};
_.ke.Object.defineProperties(ad.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var X=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return X?"url("+_.S_(X,this.hostElement.clientWidth)+")":""}}});
ad.prototype.onDataChanged=ad.prototype.onDataChanged;ad.prototype.onYtServiceRequestError=ad.prototype.onYtServiceRequestError;ad.prototype.onYtServiceRequestCompleted=ad.prototype.onYtServiceRequestCompleted;ad.prototype.onYtPopupClosed=ad.prototype.onYtPopupClosed;ad.prototype.onYtPopupOpened=ad.prototype.onYtPopupOpened;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],ad.prototype,"data",void 0);_.E([_.K({value:function(){return _.Qf("SBOX_INAPPROPRIATE_CANCEL")}}),
_.U("design:type",String)],ad.prototype,"closeButtonAriaLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],ad.prototype,"darkerDarkTheme",void 0);_.E([_.rt("#scrollable"),_.U("design:type",Object)],ad.prototype,"scrollable",void 0);_.E([_.rt("ytd-sponsorship-confirm-cancel-content"),_.U("design:type",Object)],ad.prototype,"content",void 0);
_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],ad.prototype,"onYtPopupOpened",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],ad.prototype,"onYtPopupClosed",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],ad.prototype,"onYtServiceRequestCompleted",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],ad.prototype,"onYtServiceRequestError",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ad.prototype,"onDataChanged",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],ad);
_.N(ad,"ytd-sponsorship-confirm-cancel-renderer",function(){if(ii2!==void 0)return ii2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ii2=X},{mode:_.Cz("kevlar_poly_si_batch_j081")?1:2});var L0Q;var lo=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(lo,_.O);lo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],lo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lo.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],lo.prototype,"darkerDarkTheme",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],lo);
_.N(lo,"ytd-sponsorships-celebration-content",function(){if(L0Q!==void 0)return L0Q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return L0Q=
X},{mode:1});var vqT;var ajv=_.Vc(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),xm=function(){var X=_.O.apply(this,arguments)||this;X.scriptsAppended=!1;X.buttonOverrides={type:"tonal",style:"overlay-dark"};return X};
_.S(xm,_.O);_.H=xm.prototype;
_.H.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:_.A("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.onDataChanged=function(){var X;(X=this.header)==null||X.style.setProperty("background-color",this.backgroundColor);if(X=this.headerImageUrl){var t;(t=this.header)==null||t.style.setProperty("background-image",X)}t=_.lw(4);X=_.a4(4);var G=this.get("data.trackingParams");if(G&&X&&t){var y=_.i$(G);_.w9(t,X,y);_.A("combine_ve_grafts")?_.Pj().graftServerVe(G,X,4):_.w9(t,X,y)}t=_.J(this.hostElement.querySelectorAll("yt-img-shadow"));for(X=t.next();!X.done;X=t.next())X.value.onShow();if(t=this.get("data.gtmId"))_.vN(t,
_.Md("GL","")),this.setupConversionTracking()};
_.H.setupConversionTracking=function(){if(!this.scriptsAppended){var X=document.createElement("script");var t=_.JI(ajv.join(""));_.B$(X,t);document.head.appendChild(X);X=document.createElement("noscript");X.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(X);this.scriptsAppended=!0}};
_.H.onPopupClosed=function(X){if(_.k3(X).localName==="ytd-sponsorships-celebration-renderer"){_.sl(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var t;this.data&&((t=this.data)==null?0:t.dismissCommand)&&_.Wj.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.ke.Object.defineProperties(xm.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var X=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.yY(X)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var X=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return X?"url("+_.S_(X,this.hostElement.getBoundingClientRect().width)+")":""}}});
xm.prototype.onPopupClosed=xm.prototype.onPopupClosed;xm.prototype.onDataChanged=xm.prototype.onDataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],xm.prototype,"data",void 0);_.E([_.rt("#header"),_.U("design:type",HTMLElement)],xm.prototype,"header",void 0);
_.E([_.K(),_.U("design:type",Object)],xm.prototype,"scriptsAppended",void 0);_.E([_.K(),_.U("design:type",Object)],xm.prototype,"buttonOverrides",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],xm.prototype,"onDataChanged",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],xm.prototype,"onPopupClosed",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],xm);
_.N(xm,"ytd-sponsorships-celebration-renderer",function(){if(vqT!==void 0)return vqT;var X=document.createElement("template");_.Z(X,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return vqT=X},{mode:1});var ljH;var fa=function(){var X=_.O.apply(this,arguments)||this;X.isToggleChecked=!1;return X};
_.S(fa,_.O);fa.prototype.onDataChanged=function(){var X;this.isToggleChecked=((X=this.data)==null?void 0:X.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
fa.prototype.close=function(){var X;((X=this.data)==null?0:X.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
fa.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var X,t=_.Y((X=this.data)==null?void 0:X.switchButton,NvH);t&&(this.isToggleChecked&&t.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(t.switchOnInnertubeCommand),!this.isToggleChecked&&t.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(t.switchOffInnertubeCommand))};
fa.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fa.prototype.onDataChanged=fa.prototype.onDataChanged;_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],fa.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],fa.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],fa.prototype,"isToggleChecked",void 0);_.E([_.K({value:_.Qf("CLOSE")}),_.U("design:type",String)],fa.prototype,"closeButtonAriaLabel",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],fa.prototype,"onDataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],fa);
_.N(fa,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(ljH!==void 0)return ljH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return ljH=X},{mode:1});var x6R;var MG=function(){return _.O.apply(this,arguments)||this};
_.S(MG,_.O);_.H=MG.prototype;_.H.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"}}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.detached=function(){this.playerElement.stop()};
_.H.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.H.onYtServiceRequestError=function(X){_.F7(this.hostElement,X.detail.error.message)};
_.H.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.H.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.H.getTier=function(X,t){return!X||!X.tiers||t<0?null:_.Y(X.tiers[t],mWB)};
_.H.moreThanOne=function(X){return!!(X&&X.length>1)};
_.H.tierOverviewTap=function(X){var t=this;this.selectedTier=X.model.index;_.V8(this,function(){_.Yt(t.hostElement,"yt-refit")})};
_.H.computeSelectedClass=function(X,t){return this.isSelected(X,t)?"selected":""};
_.H.computeButtonAriaPressed=function(X,t){return this.isSelected(X,t)?"true":"false"};
_.H.isSelected=function(X,t){return X===t};
_.H.onDataChanged=function(){_.Sm(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Sm(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 X=_.J(this.hostElement.querySelectorAll("yt-img-shadow")),
t=X.next();!t.done;t=X.next())t.value.onShow();var G;this.set("selectedTier",(G=this.get("data.targetTierIndex"))!=null?G:0);var y;(X=(y=this.data)==null?void 0:y.onVisible)&&this.ytComponentBehavior.resolveCommand(X)};
_.H.initializeVe=function(X){var t=_.lw(),G=_.a4(),y=this.get("data.trackingParams");G&&t&&(this.screenLayer=4,t=_.tt(_.tI_)(void 0,69877,{clientScreenNonce:t,visualElement:G},void 0,void 0,void 0),_.fE(t,69877,4),G=_.a4(4),y&&G&&(y=_.i$(y),_.w9(t,G,y),X&&(this.offerVideoVe=_.ai(74659),_.w9(t,y,this.offerVideoVe))))};
_.H.setHeaderBackground=function(){var X=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Sm(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.yY(X);if(X=this.getHeaderImage())X=_.S_(X,screen.width),_.Sm(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+X+")"};
_.H.getHeaderImage=function(){var X=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&X?X:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.H.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.H.setupVideoPlayer=function(X){var t=this,G,y,w,z;return _.n(function(B){if(B.nextAddress==1)return G=t.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),y=t.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.A("kevlar_player_update_killswitch")?t.playerElement.update({args:{autoplay:G,video_id:X,player_params:y}}):t.playerElement.loadVideoWithPlayerVars({autoplay:G,video_id:X,player_params:y}),
B.yield(t.playerElement.getPlayerPromise(),2);w=B.yieldResult;w.addEventListener("onStateChange",function(V){t.onPlayerStateChange(V)});
w.setScreenLayer(t.screenLayer);(z=_.lw(4))&&t.offerVideoVe&&_.HK(z,t.offerVideoVe);G&&(t.pauseOtherPlayers(),t.playerElement.focusOnPlayer(),t.playerElement.getPlayer().hideControls(),_.PO(_.vz,function(){t.fadeOutHeaderOverlay()},4E3));
_.W$(B)})};
_.H.onPlayerStateChange=function(X){X===1?this.backgroundPlayerElement&&(X=this.backgroundPlayerElement.player_.getPlayerState(),X!==1&&X!==3||this.backgroundPlayerElement.pause()):X===0&&(_.Sm(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Sm(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.H.fadeOutHeaderOverlay=function(){_.Sm(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.H.onHeaderTap=function(){if(this.offerVideo){_.Sm(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var X;((X=this.playerElement.player_)==null?void 0:X.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(X=_.lw(4))&&this.offerVideoVe&&_.BK(X,this.offerVideoVe)}};
_.H.getBackgroundImageLayerClass=function(X){return X?"background-image-layer-with-video":""};
_.H.getHeaderClass=function(X){return X?"header-with-video":""};
_.H.getHeaderOverlayClass=function(X){return X?"header-overlay-with-video":""};
_.H.getTitleContainerClass=function(X,t){return X?"title-container-with-video":t?"title-container-without-video-flexible":"title-container-without-video"};
_.H.tierTitleDisplayStatus=function(X){return this.moreThanOne(X)?"hide":"show"};
_.H.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.gw().resolve(_.G2).getPlayerElement():this.backgroundPlayerElement=_.sW();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var X=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=X===1||X===3;this.backgroundPlayerElement.pause()}};
_.H.isMiniplayerActive=function(){return _.gw().resolve(_.G2).isMiniplayerActive()};
_.H.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("selected-tier-changed",this.selectedTier))};
MG.prototype.selectedTierChangedForBinding=MG.prototype.selectedTierChangedForBinding;MG.prototype.onDataChanged=MG.prototype.onDataChanged;MG.prototype.onYtPopupClosed=MG.prototype.onYtPopupClosed;MG.prototype.onYtPopupOpened=MG.prototype.onYtPopupOpened;MG.prototype.onYtServiceRequestError=MG.prototype.onYtServiceRequestError;MG.prototype.onYtServiceRequestCompleted=MG.prototype.onYtServiceRequestCompleted;
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],MG.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],MG.prototype,"data",void 0);_.E([_.K({value:0}),_.U("design:type",Number)],MG.prototype,"selectedTier",void 0);
_.E([_.K({value:""}),_.U("design:type",String)],MG.prototype,"offerVideo",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],MG.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.E([_.K({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.GB(this)}}),
_.U("design:type",String)],MG.prototype,"playerId",void 0);_.E([_.rt("tp-yt-paper-dialog-scrollable"),_.U("design:type",Object)],MG.prototype,"scrollable",void 0);_.E([_.rt("ytd-sponsorships-tier-renderer"),_.U("design:type",Object)],MG.prototype,"tierRenderer",void 0);_.E([_.rt("#player"),_.U("design:type",Object)],MG.prototype,"playerElement",void 0);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],MG.prototype,"onYtServiceRequestCompleted",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],MG.prototype,"onYtServiceRequestError",null);
_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],MG.prototype,"onYtPopupOpened",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],MG.prototype,"onYtPopupClosed",null);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],MG.prototype,"onDataChanged",null);
_.E([_.cW("selectedTier"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],MG.prototype,"selectedTierChangedForBinding",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],MG);
_.N(MG,"ytd-sponsorships-offer-renderer",function(){if(x6R!==void 0)return x6R;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return x6R=X},{mode:_.Cz("kevlar_poly_si_batch_j077")?1:2});var fjH;var XY=function(){var X=_.O.apply(this,arguments)||this;X.buttonOverrides={type:"filled",style:"mono"};return X};
_.S(XY,_.O);XY.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}}}}}};
XY.prototype.backgroundColorChanged=function(){var X,t,G,y=(t=_.Y((X=this.data)==null?void 0:X.content,RTH))==null?void 0:(G=t.backgroundColor)==null?void 0:G.backgroundColor;y&&(X=_.Gq(y),_.Sm(this.hostElement).querySelector("#banner").style.backgroundColor=X,_.Sm(this.hostElement).querySelector("#abstract-art").style.backgroundColor=X)};
XY.prototype.attached=function(){this.JSC$20433_scroller&&(this.JSC$20433_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20433_scroller.attached&&typeof this.JSC$20433_scroller.attached==="function"&&this.JSC$20433_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
XY.prototype.backgroundColorChanged=XY.prototype.backgroundColorChanged;_.E([_.K(),_.U("design:type",Object)],XY.prototype,"data",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.rt("#scroller"),_.U("design:type",Object)],XY.prototype,"JSC$20433_scroller",void 0);_.E([_.K(),_.U("design:type",Object)],XY.prototype,"buttonOverrides",void 0);
_.E([_.cW("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],XY.prototype,"backgroundColorChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],XY);
_.N(XY,"ytd-sponsorships-promotion-celebration-renderer",function(){if(fjH!==void 0)return fjH;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return fjH=X},{mode:_.Cz("kevlar_poly_si_batch_j077")?1:2});var MF2;var XQ2;var $d=function(){return _.O.apply(this,arguments)||this};
_.S($d,_.O);$d.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
$d.prototype.computeIsInitiallyChecked=function(X){return X===1};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],$d.prototype,"data",void 0);_.E([_.rt("#checkbox"),_.U("design:type",Object)],$d.prototype,"checkbox",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],$d);
_.N($d,"ytd-subscription-toggle-option-renderer",function(){if(XQ2!==void 0)return XQ2;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return XQ2=X},{mode:1});var tT=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return X};
_.S(tT,_.O);tT.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"}}}};
tT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
tT.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var X=_.Sm(this.hostElement).querySelector("#options").selected;X=this.data.options[X].subscriptionRadioOptionRenderer.serviceEndpoint;var t=_.Sm(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");t&&X&&X.modifyChannelNotificationPreferenceEndpoint&&(t=t.getValue())&&(X.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[t]);_.gw().resolve(_.F3).resolveCommand(X,{form:{element:this.hostElement}});
_.sl(this.hostElement,"yt-close-popup-action")};
_.ke.Object.defineProperties(tT.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var X=this.data.options,t=0;t<X.length;t++){var G=X[t].subscriptionRadioOptionRenderer;if(G&&G.selected)return t}return null}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],tT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],tT.prototype,"eventForwardingBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],tT.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],tT.prototype,"darkerDarkTheme",void 0);_.E([_.C("data.options"),_.U("design:type",Object),_.U("design:paramtypes",[])],tT.prototype,"initialIndex",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],tT);
_.N(tT,"ytd-subscription-notification-options-renderer",function(){if(MF2!==void 0)return MF2;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return MF2=X},{mode:1});var $qq;var GX=function(){return _.O.apply(this,arguments)||this};
_.S(GX,_.O);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],GX.prototype,"data",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],GX);
_.N(GX,"ytd-tvfilm-offer-groups-renderer",function(){if($qq!==void 0)return $qq;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return $qq=X},{mode:1});var tSV;var yZ=function(){var X=_.O.apply(this,arguments)||this;X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(yZ,_.O);_.H=yZ.prototype;_.H.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"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.H.computeThumbnailClass=function(X){return X.thumbnailOverlays?X.isShow?"thumbnail-show":"thumbnail-movie":X.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.H.computeCommerceSectionClass=function(X){return X.offers&&X.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.H.computeTitleClass=function(X){return X.offers&&X.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.H.onDataChanged=function(){[].concat(_.RY(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(X){X.onShow()})};
yZ.prototype.onDataChanged=yZ.prototype.onDataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],yZ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],yZ.prototype,"darkerDarkTheme",void 0);
_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],yZ.prototype,"onDataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],yZ);
_.N(yZ,"ytd-ypc-offers-overlay-renderer",function(){if(tSV!==void 0)return tSV;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return tSV=X},{mode:_.Cz("kevlar_poly_si_batch_j028")?1:2});var GLT;var y3i=function(){this.usedMethods=new Set};
y3i.prototype.add=function(X){this.usedMethods.add(X)};
y3i.prototype.reset=function(){this.usedMethods.clear()};var HWT=function(X,t){this.query=X;this.previousSearchQuery=t;this.id=wQi++;if(!zbi){t=_.Md("SBOX_SETTINGS");X="https://"+((t==null?void 0:t.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var G=t==null?void 0:t.REQUEST_LANGUAGE;G&&(X+="&hl="+G);(G=t==null?void 0:t.REQUEST_DOMAIN)&&(X+="&gl="+G);X+="&client=youtube&gs_ri=youtube";(G=t==null?void 0:t.SUGG_EXP_ID)&&(X+="&sugexp="+encodeURIComponent(G));(G=t==null?void 0:t.PSUGGEST_TOKEN)&&(X+="&tok="+G);(t=
t==null?void 0:t.SESSION_INDEX)&&(X+="&authuser="+t);_.A("desktop_enable_visual_suggest")&&(X+="&h=180&w=320&ytvs=1");zbi=X}},o4a=function(X){var t="q="+encodeURIComponent(X.query);
X.previousSearchQuery&&(t+="&pq="+encodeURIComponent(X.previousSearchQuery));return t},J3Q=function(){var X=_.Md("SBOX_SETTINGS"),t={};
if(X==null?0:X.SEND_VISITOR_DATA)t["X-Goog-Visitor-Id"]=X==null?void 0:X.VISITOR_DATA;return t},BIB=function(X){var t=zbi;
t+="&gs_id="+X.id.toString(36);t+="&q="+encodeURIComponent(X.query);t+="&cp="+X.query.length;X.previousSearchQuery&&(t+="&pq="+encodeURIComponent(X.previousSearchQuery));(X=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(t+="&video_id="+X);return t},wQi=0,zbi="";var n4T=_.dm.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,VSH=_.dm.SEARCH_ENTITY_SUGGESTION_MOVIE,bW4=_.dm.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,kLN=_.dm.SEARCH_ENTITY_SUGGESTION_TV_SHOW,dqT=function(X,t){this.text=X;this.bold=t},ebi=function(X,t,G){this.input=t;
this.index=G;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=X[0];this.type=X[1];this.subtypes=X[2];var y;this.displayText=Dr((y=X[3])==null?void 0:y.b);var w;this.ignoredPrefix=Dr((w=X[3])==null?void 0:w.a);var z,B;this.hasNewVideo=((z=X[3])==null?void 0:(B=z.zam)==null?void 0:B.toString())==="true"?!0:!1;var V;this.visualSuggestUrl=(V=X[3])==null?void 0:V.zai;var b;this.entityType=Dr((b=X[3])==null?void 0:b.zap);var e;this.entityName=Dr((e=X[3])==null?void 0:e.zao);var g;t=Dr((g=
X[3])==null?void 0:g.zaf);var F;this.entityMid=(F=X[3])==null?void 0:F.zae;g=ymR(this.subtypes,this.entityMid);if(t&&g){if(t){F="";switch(g){case "YOUTUBE_ENTITY_TYPE_SONG":F=bW4;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":F=n4T;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":F=kLN;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":F=VSH}g=g==="YOUTUBE_ENTITY_TYPE_SONG"||g==="YOUTUBE_ENTITY_TYPE_ALBUM"?F+" \u2022  \u2022 "+t:t}else g="";this.entitySubtitle=g}var T;this.externalChannelId=(T=X[3])==null?void 0:T.zav;var D;
this.entityThumbnailAttributionUrl=(D=X[3])==null?void 0:D.zaq},g4B=function(X,t){var G=[],y,w=(y=X.displayText)!=null?y:X.text;
(t==null?0:t.useEntityName)&&jUq(X)&&X.entityName&&(w=X.entityName);if(X.type===33)return G.push(new dqT(w,!1)),G;if(w.length>=X.input.length&&w.substring(0,X.input.length)===X.input)G.push(new dqT(X.input,!1)),G.push(new dqT(w.substring(X.input.length),!0));else{var z=new Set(X.input.split(/\s/)),B=w.split(/\s/);G=B.map(function(V,b){return new dqT(V.trim()+(b===B.length-1?"":" "),!z.has(V))})}return G},jUq=function(X){var t=!!ymR(X.subtypes);
X=!!X.entityMid;return t||X};var FOT=function(X){this.rawResponse=["",[],{}];this.suggestions=[];try{var t=JSON.parse(wjv(X));if(typeof t==="object"&&t!==null)this.rawResponse=t;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(y){console.log("Suggest: Failed to parse SuggestResponse!");return}var G=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(y,w){return new ebi(y,G,w)})};var TIH=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new y3i;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20470_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},A3B,YZH=function(){A3B||(A3B=new TIH);
return A3B};
TIH.prototype.updateSuggestions=function(X){var t=this;this.availableSuggestions.forEach(function(G){t.previousSuggestions[G]=!0});
this.availableSuggestions=X.map(function(G){var y=G.type.toString();G.subtypes.length>0&&(y+="i"+G.subtypes.join("i"),y+="k"+G.suggestionSources.COMPLETE_SERVER.toString());return y})};
var sUa=function(X,t){var G=Date.now();X.firstEditTime<0&&(X.firstEditTime=G);t&&(X.lastQueryBuildTime=G);X.lastEditTime=G};
TIH.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20470_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var DqN=function(X){var t="";X.availableSuggestions.forEach(function(w){delete X.previousSuggestions[w]});
for(var G=_.J(Object.keys(X.previousSuggestions)),y=G.next();!y.done;y=G.next())y=y.value,X.previousSuggestions[y]&&(t+=(t?"j":"")+y);return t},SZR=function(X,t){var G=[];
t&&(G[1]=t.toString());G[0]="youtube";G[7]=Date.now()-X.startTime;G[6]=X.sessionNumber;X.zeroPrefixSuggestionCount>=0&&(G[33]=X.zeroPrefixSuggestionCount);G[13]=X.outOfSyncResponseCount;if(X.availableSuggestions.length>0){for(var y=t="",w=0,z=_.J(X.availableSuggestions),B=z.next();!B.done;B=z.next())B=B.value,B!==y&&(w>1&&(t+="l"+w),t+=(y?"j":"")+B,w=0,y=B),w+=1;w>1&&(t+="l"+w);G[3]=t}G[35]=DqN(X);X.selectedSuggestionIndex>=0&&(G[2]=X.selectedSuggestionIndex);var V;if(t=(V=_.Md("SBOX_SETTINGS"))==
null?void 0:V.SUGG_EXP_ID)G[19]=X.normalize(t),V=0,X.experimentTriggeredBeforeFinal&&(V|=1),X.experimentTriggeredFinal&&(V|=2),G[20]=V;G[26]=Array.from(X.inputMethodsTracker.usedMethods).join("j");if(X.JSC$20470_totalRoundTripTime>0){G[15]=X.JSC$20470_totalRoundTripTime;G[14]=X.maxRoundTripTime;V=[];for(w=t=0;w<10;w++)y=X.roundTripTimeHistogram[w],y===0?t++:(t>1?V.push(w+"-"+y):t===1?V.push("0j"+y):V.push(y.toString()),t=0);V=V.join("j");G[16]=V}X.zeroPrefixRoundTripTime>0&&(G[36]=X.zeroPrefixRoundTripTime);
X.lastQueryBuildTime>0&&(G[18]=X.lastQueryBuildTime-X.startTime);X.firstEditTime>0&&(G[4]=X.firstEditTime-X.startTime);X.lastEditTime>0&&(G[5]=X.lastEditTime-X.startTime);return G.join(".")};
TIH.prototype.normalize=function(X){return X.replaceAll(".","-")};
var hbB=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var wc=function(){var X=_.O.apply(this,arguments)||this;X.microphoneSpinnerActive=!1;X.noAnimations=!1;X.boundExitClick=function(){X.onExitButtonClick()};
X.speechOverlayClassName="";X.isLevelAnimating=!1;X.playCloseDialogAudioFeedback=!0;X.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return X};
_.S(wc,_.O);_.H=wc.prototype;_.H.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.H.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=dh4()};
_.H.dataChanged=function(){this.logDialog()};
_.H.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var X;(X=this.manager.audioPlayer)!=null&&(X.JSC$19760_audioEnabled=!1)}this.manager.stop();(X=this.manager.audioPlayer)!=null&&(X.JSC$19760_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.H.handleSpeechQueryCompleteAction=function(X){var t=X.navigationAction;t&&(X.trackingParams&&_.Pj().graftServerVe(X.trackingParams,this.dialogVe,5),_.Yt(this.hostElement,"yt-navigate",{endpoint:t,tempData:this.getNavigationParams(t),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.H.onExitButtonClick=function(){this.closeDialog()};
_.H.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var X;if((X=this.manager)!=null){var t;(t=X.audioPlayer)==null||zJ(t,"failure");X.setState("microphone-off");X.stop()}}else(X=this.manager)==null||X.start()};
_.H.transcriptionChanged=function(){var X,t;(((X=this.transcription)==null?0:X.low)||((t=this.transcription)==null?0:t.high))&&this.setState("transcribing",this.transcription)};
_.H.stateChanged=function(){this.setState(this.state,this.transcription)};
_.H.logDialog=function(){var X;(X=this.data)!=null&&X.trackingParams&&(X=_.Pj(),_.qP(X,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=X.graftServerVe(this.data.trackingParams,void 0,5))};
_.H.getNavigationParams=function(X){var t={};if(_.A("web_yt_searchbox")){var G=YZH();G.inputMethodsTracker.add(6);G=SZR(G,15);t.gs_l=G;var y;t.oq=((y=_.Y(X,_.rV))==null?void 0:y.query)||""}else if(X=window.ytvoicesearchloggingparams){if(X=X())t.oq=X.oq,t.gs_l=X.gs_l}else _.yQ(Error("nl"));return t};
_.H.closeDialog=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.H.setState=function(X,t){if(this.data){var G=this.data,y={};switch(X){case "listening":y={headerText:G.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:G.microphoneButtonAriaLabel};break;case "timeout":y={headerText:G.promptHeader,microphoneState:"try-again",microphoneLabel:G.promptMicrophoneLabel,microphoneAriaLabel:G.promptMicrophoneLabel};break;case "microphone-off":y={headerText:G.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:G.promptMicrophoneLabel,
microphoneAriaLabel:G.promptMicrophoneLabel};break;case "transcribing":(t==null?0:t.low)||(t==null?0:t.high)?y={transcriptionLow:t==null?void 0:t.low,transcriptionHigh:t==null?void 0:t.high,microphoneState:"speaking",microphoneAriaLabel:G.microphoneButtonAriaLabel}:y={headerText:G.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:G.microphoneButtonAriaLabel};break;case "processing":y={headerText:G.loadingHeader,microphoneState:"processing",microphoneAriaLabel:G.microphoneButtonAriaLabel};
break;case "offline":y={headerText:G.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:G.connectionErrorMicrophoneLabel,microphoneAriaLabel:G.connectionErrorMicrophoneLabel};break;case "permission":y={headerText:G.permissionsHeader,bodyLine1:G.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:G.permissionsSubtext};break;case "permission-denied":y={headerText:G.disabledHeader,bodyLine1:G.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:G.disabledSubtext}}y.className=
X;this.speechOverlayState=y;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.H.setMicrophoneState=function(X){var t=this.isLevelAnimating;this.isLevelAnimating=X==="speaking";!t&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=X==="processing"&&!this.noAnimations};
_.H.setClass=function(X){this.speechOverlayClassName&&_.Zk(this.hostElement,this.speechOverlayClassName,!1);X&&(this.speechOverlayClassName=X,_.Zk(this.hostElement,X,!0))};
_.H.runLevelAnimation=function(){var X=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var t=1+Math.random()*.75,G=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+G/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+t+")");_.vz.addJob(function(){X.runLevelAnimation()},3,G)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
wc.prototype.stateChanged=wc.prototype.stateChanged;wc.prototype.transcriptionChanged=wc.prototype.transcriptionChanged;wc.prototype.onPopupClosed=wc.prototype.onPopupClosed;wc.prototype.dataChanged=wc.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],wc.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],wc.prototype,"rendererStamperBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],wc.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],wc.prototype,"eventForwardingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],wc.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],wc.prototype,"speechOverlayState",void 0);
_.E([_.K(),_.U("design:type",Object)],wc.prototype,"microphoneSpinnerActive",void 0);_.E([_.K({type:_.A("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.U("design:type",Object)],wc.prototype,"noAnimations",void 0);_.E([_.K({selector:function(X){var t;return(t=X.voiceSearch)==null?void 0:t.transcription}}),
_.U("design:type",Object)],wc.prototype,"transcription",void 0);_.E([_.K({selector:function(X){var t;return(t=X.voiceSearch)==null?void 0:t.overlay}}),
_.U("design:type",String)],wc.prototype,"state",void 0);_.E([_.K(),_.U("design:type",Object)],wc.prototype,"boundExitClick",void 0);_.E([_.rt("#microphone-levels"),_.U("design:type",HTMLElement)],wc.prototype,"level",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wc.prototype,"dataChanged",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wc.prototype,"onPopupClosed",null);
_.E([_.U0("transcription"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wc.prototype,"transcriptionChanged",null);_.E([_.U0("state"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],wc.prototype,"stateChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],wc);
_.N(wc,"ytd-voice-search-dialog-renderer",function(){if(GLT!==void 0)return GLT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return GLT=X},{mode:1});var ZWa;var zX=function(){var X=_.O.apply(this,arguments)||this;X.isOverlay=!1;X.hidden=!1;return X};
_.S(zX,_.O);_.H=zX.prototype;_.H.onPopupClosed=function(){this.toggleIconState(!1)};
_.H.computeIcon=function(){var X,t,G;return(t=_.Y((X=this.data)==null?void 0:X.icon,lGR))==null?void 0:(G=t.icon)==null?void 0:G.iconType};
_.H.computeIconBadgeShape=function(){var X;return{iconBadgeType:"cart",iconBadgeText:(X=this.iconBadgeEntity)==null?void 0:X.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.H.onClick=function(){var X;(X=this.data)!=null&&X.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.H.computeHidden=function(X){return!X};
_.H.toggleIconState=function(X){this.iconButton&&(this.iconButton.pressed=X)};
zX.prototype.onPopupClosed=zX.prototype.onPopupClosed;_.E([_.q(_.MZ),_.U("design:type",Object)],zX.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],zX.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],zX.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],zX.prototype,"isOverlay",void 0);
_.E([_.K({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.U("design:type",Object)],zX.prototype,"hidden",void 0);_.E([_.K({selectorArgs:["data.iconBadgeEntityKey"],selector:function(X,t){return _.Kg(X.entities,"iconBadgeEntity",t)}}),
_.U("design:type",Object)],zX.prototype,"iconBadgeEntity",void 0);_.E([_.rt("yt-icon-button"),_.U("design:type",HTMLButtonElement)],zX.prototype,"iconButton",void 0);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],zX.prototype,"onPopupClosed",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],zX);
_.N(zX,"ytd-icon-badge-topbar-button-renderer",function(){if(ZWa!==void 0)return ZWa;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return ZWa=X},{mode:1});var qZT;var HL=function(){var X=_.O.apply(this,arguments)||this;X.premiumOptions=[];X.darkerDarkTheme=_.A("web_darker_dark_theme");return X};
_.S(HL,_.O);HL.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.ke.Object.defineProperties(HL.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],HL.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Array)],HL.prototype,"premiumOptions",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],HL.prototype,"darkerDarkTheme",void 0);_.E([_.C("premiumOptions"),_.U("design:type",Object),_.U("design:paramtypes",[])],HL.prototype,"hasPremiumOptions",null);
_.E([_.p({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],HL);
_.N(HL,"ytd-offline-promo-content",function(){if(qZT!==void 0)return qZT;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return qZT=X},{mode:1});var CdB;var or=function(){var X=_.O.apply(this,arguments)||this;X.premiumOptions=[];return X};
_.S(or,_.O);or.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var X;this.premiumOptions=GOr((X=this.data)==null?void 0:X.formats)};
or.prototype.onClickSubmit=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var X;(X=_.sW())==null||X.pause()};
or.prototype.attached=function(){this.JSC$20490_scroller&&(this.JSC$20490_scroller.dialogElement=this.hostElement.parentNode)};
_.ke.Object.defineProperties(or.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
or.prototype.dataChanged=or.prototype.dataChanged;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],or.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],or.prototype,"data",void 0);
_.E([_.K({computed:"computeIcon_(data.headersIcon)",value:""}),_.U("design:type",String)],or.prototype,"headersIcon",void 0);_.E([_.K(),_.U("design:type",Array)],or.prototype,"premiumOptions",void 0);_.E([_.rt("#scroller"),_.U("design:type",Object)],or.prototype,"JSC$20490_scroller",void 0);_.E([_.C("headersIcon"),_.U("design:type",Object),_.U("design:paramtypes",[])],or.prototype,"showIcon",null);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],or.prototype,"dataChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],or);
_.N(or,"ytd-offline-promo-renderer",function(){if(CdB!==void 0)return CdB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return CdB=X},{mode:1});var KO4;var JT=function(){var X=_.O.apply(this,arguments)||this;X.playbackPauseInterval=NaN;X.isLoading=!1;X.hasError=!1;X.dialogClass="";X.youtubeLabel=_.Qf("LOGO_ALT_LABEL",{},"YouTube Home");X.logoName="yt-logos-ext:yt-logo-updated";X.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return X};
_.S(JT,_.O);_.H=JT.prototype;_.H.onDataChange=function(){var X;if(this.showEOMV1Text=!((X=this.data)==null||!X.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.H.attached=function(){this.pausePlayer()};
_.H.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.H.handleLangSelect=function(X){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[X.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.H.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.H.handleSaveConsent=function(X){var t=this;this.showLoadingSpinner();this.showLoadingSpinner();caT(_.Y(X,xPV)).catch(function(G){_.Mj(new _.NJ("Something went wrong when save consent "+(G.message?G.message:G)+"."));t.hideLoadingSpinner();t.showErrorMessage()})};
_.H.handleDisablePersonalization=function(X){var t=this;this.showLoadingSpinner();pqT(_.Y(X,lBi)).then(function(){t.dialog.close();t.resumePlayer()}).catch(function(G){_.Mj(new _.NJ("Something went wrong when disable personalization "+(G.message?G.message:G)+"."));
t.hideLoadingSpinner();t.showErrorMessage()})};
_.H.showLoadingSpinner=function(){var X=this;this.showSpinnerJobId=_.vz.addLowPriorityJob(function(){X.isLoading=!0},500)};
_.H.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.vz.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.H.showErrorMessage=function(){var X=this;this.hasError=!0;_.vz.addLowPriorityJob(function(){X.hasError=!1},2E3)};
_.H.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.ht(function(){try{var X=_.sW();X&&X.pause()}catch(t){}},100))};
_.H.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var X=_.sW();X&&X.play()}catch(t){}};
_.ke.Object.defineProperties(JT.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.eomV1Text)return[];X=[];for(var t=["SHIELD","WARNING","BAR_CHART"],G=this.data.eomV1Text.essentialCookieMsg.items,y=0;y<t.length&&y<G.length;y++)X.push({icon:t[y],text:G[y]});return X}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.eomV1Text)return[];X=[];for(var t=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],G=this.data.eomV1Text.nonEssentialCookieMsg.items,y=0;y<t.length&&y<G.length;y++)X.push({icon:t[y],text:G[y]});return X}}});
JT.prototype.onDataChange=JT.prototype.onDataChange;_.E([_.K(),_.U("design:type",Object)],JT.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],JT.prototype,"showEOMV1Text",void 0);_.E([_.K(),_.U("design:type",Object)],JT.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",Object)],JT.prototype,"hasError",void 0);_.E([_.K(),_.U("design:type",Number)],JT.prototype,"showSpinnerJobId",void 0);_.E([_.K(),_.U("design:type",Object)],JT.prototype,"dialogClass",void 0);
_.E([_.rt("#dialog"),_.U("design:type",Object)],JT.prototype,"dialog",void 0);_.E([_.rt("#cb-header"),_.U("design:type",HTMLElement)],JT.prototype,"header",void 0);_.E([_.rt("#lang-select"),_.U("design:type",HTMLElement)],JT.prototype,"langSelect",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],JT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],JT.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.U("design:type",String)],JT.prototype,"youtubeLabel",void 0);_.E([_.K(),_.U("design:type",Object)],JT.prototype,"logoName",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],JT.prototype,"onDataChange",null);_.E([_.C("data"),_.U("design:type",Array),_.U("design:paramtypes",[])],JT.prototype,"eomEssentialCookieMsgItems",null);
_.E([_.C("data"),_.U("design:type",Array),_.U("design:paramtypes",[])],JT.prototype,"eomNonEssentialCookieMsgItems",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],JT);
_.N(JT,"ytd-consent-bump-v2-lightbox",function(){if(KO4!==void 0)return KO4;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return KO4=X},{mode:1});var OWT;var BL=function(){return _.O.apply(this,arguments)||this};
_.S(BL,_.O);BL.prototype.ready=function(){if(!_.cx()||BPa)var X=!0;else BPa=!0,X=!1;X||(X=document.querySelector("ytd-app"),X||(X=document.body),this.internalLightBox=_.Sm(X).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.E([_.K(),_.U("design:type",Object)],BL.prototype,"data",void 0);_.E([_.rt("#lightbox"),_.U("design:type",Object)],BL.prototype,"lightBox",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],BL);
_.N(BL,"ytd-consent-bump-v2-renderer",function(){if(OWT!==void 0)return OWT;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return OWT=X},{mode:1});var uhH;var QU4;var IpN;var nJ=function(){return _.O.apply(this,arguments)||this};
_.S(nJ,_.O);_.H=nJ.prototype;_.H.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&jDV(this.toastManager,this.toastType)};
_.H.open=function(X){this.toast&&(this.ephemeralAction&&_.gw().resolve(_.WT).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=X!=null?X:0,this.toastManager.enqueue(this.toast,X)):this.toast.open())};
_.H.close=function(X){var t;(t=this.toast)==null||t.close();this.toastManager&&X===1&&jDV(this.toastManager,X)};
_.H.refit=function(){var X;(X=this.toast)==null||X.refit()};
_.H.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var X;(X=this.toast)==null||X.close()}};
_.H.setVerticalOffset=function(X){this.toast&&(this.toast.verticalOffset=X,this.toast.fit())};
_.H.computeButtonClass_=function(X){return X?"toast-button":""};
_.H.computeText_=function(X){return _.bu(X)};
_.H.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JB("toast-opened-changed",this.toastOpened))};
_.H.updateToastOpenedFromBinding=function(X){this.toastOpened=X.detail.value};
_.ke.Object.defineProperties(nJ.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var X,t,G=(X=this.data)==null?void 0:(t=X.actionButton)==null?void 0:t.buttonRenderer;return(G==null?void 0:G.command)||(G==null?void 0:G.serviceEndpoint)||(G==null?void 0:G.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 X=[],t;((t=this.data)==null?0:t.responseText)&&X.push(_.bu(this.data.responseText));var G;((G=this.data)==null?0:G.subText)&&X.push(_.bu(this.data.subText));var y,w;if((y=this.data)==null?0:(w=y.actionButton)==null?0:w.buttonRenderer){var z,B;X.push(((z=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(B=z.accessibilityData)==null?void 0:B.label)||_.bu(this.data.actionButton.buttonRenderer.text))}return X.filter(function(V){return V}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var X,t;return(t=(X=this.toast)==null?void 0:X.opened)!=null?t:!1}}});
nJ.prototype.toastOpenedChangedForBinding=nJ.prototype.toastOpenedChangedForBinding;nJ.prototype.toastOpenedChanged=nJ.prototype.toastOpenedChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],nJ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],nJ.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],nJ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],nJ.prototype,"duration",void 0);
_.E([_.K(),_.U("design:type",Number)],nJ.prototype,"toastType",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],nJ.prototype,"useCloseButton",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],nJ.prototype,"closeToastOnActionButtonClick",void 0);_.E([_.K({value:function(){return _.Qf("SBOX_INAPPROPRIATE_CANCEL")}}),
_.U("design:type",String)],nJ.prototype,"closeButtonAriaLabel",void 0);_.E([_.K(),_.U("design:type",Boolean)],nJ.prototype,"toastOpened",void 0);_.E([_.K(),_.U("design:type",Boolean)],nJ.prototype,"hasOpened",void 0);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],nJ.prototype,"command",null);_.E([_.C("labelText","command","duration"),_.U("design:type",Object),_.U("design:paramtypes",[])],nJ.prototype,"ephemeralAction",null);
_.E([_.C("ephemeralAction"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],nJ.prototype,"hasEphemeralAction",null);_.E([_.rt("#toast"),_.U("design:type",Object)],nJ.prototype,"toast",void 0);_.E([_.K({value:function(){return{style:"call-to-action-inverse"}}}),
_.U("design:type",Object)],nJ.prototype,"buttonOverrides",void 0);_.E([_.K({value:{style:"mono-inverse"}}),_.U("design:type",Object)],nJ.prototype,"closeButtonOverrides",void 0);_.E([_.K({value:function(){return _.gw().resolve(_.jH(_.K3))}}),
_.U("design:type",Object)],nJ.prototype,"toastManager",void 0);_.E([_.C("data.responseText","data.subText","data.actionButton"),_.U("design:type",Object),_.U("design:paramtypes",[])],nJ.prototype,"labelText",null);_.E([_.cW("toastOpened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],nJ.prototype,"toastOpenedChanged",null);
_.E([_.cW("toastOpened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],nJ.prototype,"toastOpenedChangedForBinding",null);_.E([_.$F({is:"yt-notification-action-renderer",disableElementRegistration:!0})],nJ);
_.N(nJ,"yt-notification-action-renderer",function(){if(IpN===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;QU4===void 0&&(QU4=document.createElement("template"));var y=QU4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);IpN=X}X=IpN;return X},{mode:2});var VZ=function(){var X=_.O.apply(this,arguments)||this;X.duration=4E3;X.downloadingCount=0;X.downloadedCount=0;X.downloadingOnlySmartDownloads=!1;X.sessionTotalDownloads=0;X.sessionDownloaded=0;X.previousSessionsDownloaded=0;X.totalDownloadPercentage=0;X.currentDownloadProgress=0;X.currentDownloadPercentage=0;X.isLeaderTab=!0;X.isFullScreen=!1;X.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};X.boundBeforeUnload=function(t){X.isLeaderTab&&X.downloadingCount>0&&(t.preventDefault(),
t.returnValue=!0)};
return X};
_.S(VZ,_.O);_.H=VZ.prototype;
_.H.open=function(){this.updateDownloadState();if(this.data){var X=this.sessionDownloaded+1,t=this.sessionTotalDownloads>1?_.Qf("VIDEOS_DOWNLOADING_RATIO",{downloaded:X.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+X+"/"+this.sessionTotalDownloads):_.Qf("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(t=this.sessionTotalDownloads>1?_.Qf("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:X.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
X+"/"+this.sessionTotalDownloads):_.Qf("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));X=this.isLeaderTab?_.Qf("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.bu(this.data.responseText)!==t||_.bu(this.data.subText)!==X)this.set("data.responseText",_.Vl(t)),this.set("data.subText",_.Vl(X)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.H.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.H.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.H.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.H.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var X=this.downloadedCount-this.previousSessionsDownloaded;X<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-X);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.H.handleFullscreenChange=function(X){(this.isFullScreen=X)||this.updatePopup()};
VZ.prototype.updateCurrentDownloadProgress=VZ.prototype.updateCurrentDownloadProgress;VZ.prototype.updatePopup=VZ.prototype.updatePopup;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],VZ.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],VZ.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],VZ.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],VZ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],VZ.prototype,"duration",void 0);_.E([_.K({selector:function(X){return _.Oew(X.entities).length}}),
_.U("design:type",Object)],VZ.prototype,"downloadingCount",void 0);_.E([_.K({selector:LXi}),_.U("design:type",Object)],VZ.prototype,"downloadedCount",void 0);_.E([_.K({selector:function(X){var t=_.Oew(X.entities);return ilQ(X.entities,t)}}),
_.U("design:type",Object)],VZ.prototype,"downloadingOnlySmartDownloads",void 0);_.E([_.K(),_.U("design:type",Object)],VZ.prototype,"sessionTotalDownloads",void 0);_.E([_.K(),_.U("design:type",Object)],VZ.prototype,"sessionDownloaded",void 0);_.E([_.K(),_.U("design:type",Object)],VZ.prototype,"previousSessionsDownloaded",void 0);_.E([_.K(),_.U("design:type",Object)],VZ.prototype,"totalDownloadPercentage",void 0);
_.E([_.K({selector:function(X){var t;X=(t=_.Oew(X.entities))!=null?t:[];return X.length>0?_.TBl(X.slice(-1)):0}}),
_.U("design:type",Object)],VZ.prototype,"currentDownloadProgress",void 0);_.E([_.K(),_.U("design:type",Object)],VZ.prototype,"currentDownloadPercentage",void 0);_.E([_.K({selector:_.WYv}),_.U("design:type",Object)],VZ.prototype,"isLeaderTab",void 0);_.E([_.rt("yt-notification-action-renderer"),_.U("design:type",Object)],VZ.prototype,"notificationActionRenderer",void 0);
_.E([_.U0("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VZ.prototype,"updatePopup",null);_.E([_.U0("currentDownloadProgress"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],VZ.prototype,"updateCurrentDownloadProgress",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],VZ);
_.N(VZ,"ytd-video-download-toast-renderer",function(){if(uhH!==void 0)return uhH;var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return uhH=X},{mode:1});var WOv;var c3H;var bU=function(){return _.O.apply(this,arguments)||this};
_.S(bU,_.O);bU.prototype.computeIsRedLogo=function(X,t){!X&&t&&(X=t);return X==="YOUTUBE_RED_LOGO"||X==="YOUTUBE_PREMIUM_LOGO"};
bU.prototype.computeLogoName=function(X){X=this.componentBehavior.computeIcon_(X);return X===""?"yt-logos-ext:yt-logo-updated":X};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],bU.prototype,"componentBehavior",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.U("design:type",Boolean)],bU.prototype,"isRedLogo",void 0);_.E([_.K({computed:"computeLogoName(data)"}),_.U("design:type",String)],bU.prototype,"logoName",void 0);_.E([_.K({value:{}}),_.U("design:type",Object)],bU.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],bU.prototype,"logoType",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-logo"})],bU);
_.N(bU,"ytd-logo",function(){if(c3H!==void 0)return c3H;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return c3H=X},{mode:_.Cz("kevlar_poly_si_batch_j074")?1:2});var kd=function(){var X=_.O.apply(this,arguments)||this;X.animationRef={};return X};
_.S(kd,_.O);_.H=kd.prototype;_.H.attached=function(){document.addEventListener("yt-navigate-finish",_.Ik(this,this.logYoodle))};
_.H.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ik(this,this.logYoodle))};
_.H.logYoodle=function(){var X,t;if((X=this.data)==null?0:(t=X.loggingDirectives)==null?0:t.trackingParams)this.ytRendererBehavior.markDirty(),_.Pj().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.H.computeHideImg=function(X,t){return!!X||!!t};
_.H.computeHideYtdLogo=function(X,t){return!X||!!t};
_.H.computeHideLottie=function(X){return!X};
_.H.computeIsRedLogo=function(X){return X==="YOUTUBE_RED_LOGO"||X==="YOUTUBE_PREMIUM_LOGO"};
_.H.renderLogoEntity=function(){var X=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),t=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),G=this.getLogoTitleText(this.data),y=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==X&&(this.url=X);this.animatedUrl!==t&&(this.animatedUrl=t);this.logoTitleText!==G&&(this.logoTitleText=G);this.lottieUrl!==y&&(this.lottieUrl=y,this.lottiePlayerProps=this.computeLottiePlayerProps(y))};
_.H.getSanitizedThumbnail=function(X){return X&&X.thumbnails?_.P4G(X.thumbnails,122)||"":""};
_.H.getThumbnailUrl=function(X,t){if(!t)return"";var G,y;X=X?(G=t.darkThemeLogo)==null?void 0:G.thumbnail:(y=t.lightThemeLogo)==null?void 0:y.thumbnail;return this.getSanitizedThumbnail(X)};
_.H.getAnimatedThumbnailUrl=function(X,t){return t?this.getSanitizedThumbnail(X?t.darkThemeAnimatedLogo:t.lightThemeAnimatedLogo):""};
_.H.getLogoTitleText=function(X){if(X)return _.bu(X.tooltipText)};
_.H.computeLogoIcon=function(X,t){if(t){var G,y;return X?(G=t.darkThemeLogo)==null?void 0:G.icon:(y=t.lightThemeLogo)==null?void 0:y.icon}};
_.H.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.H.getLottieUrl=function(X,t){var G,y,w,z;return X?t==null?void 0:(G=t.darkThemeLogo)==null?void 0:(y=G.lottieAnimation)==null?void 0:y.url:t==null?void 0:(w=t.lightThemeLogo)==null?void 0:(z=w.lottieAnimation)==null?void 0:z.url};
_.H.computeLottiePlayerProps=function(X){if(X){var t;if((t=this.animationRef)==null?0:t.lottieEl){var G;(G=this.animationRef)==null||G.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:X,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.H.onLottieError=function(){this.data&&this.lottieUrl&&_.Yt(this.hostElement,"yoodle-error")};
_.H.onImgError=function(){this.data&&!this.lottieUrl&&_.Yt(this.hostElement,"yoodle-error")};
kd.prototype.playAnimation=kd.prototype.playAnimation;kd.prototype.renderLogoEntity=kd.prototype.renderLogoEntity;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],kd.prototype,"data",void 0);_.E([_.K({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.U("design:type",Boolean)],kd.prototype,"hideImg",void 0);
_.E([_.K({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.U("design:type",Boolean)],kd.prototype,"hideYtdLogo",void 0);_.E([_.K({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.U("design:type",Boolean)],kd.prototype,"hideLottie",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.U("design:type",Boolean)],kd.prototype,"isRedLogo",void 0);
_.E([_.K(),_.U("design:type",Boolean)],kd.prototype,"useDarkThemeYoodle",void 0);_.E([_.K(),_.U("design:type",String)],kd.prototype,"url",void 0);_.E([_.K(),_.U("design:type",String)],kd.prototype,"animatedUrl",void 0);_.E([_.K(),_.U("design:type",String)],kd.prototype,"logoTitleText",void 0);_.E([_.K({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.U("design:type",Object)],kd.prototype,"logoIcon",void 0);_.E([_.K(),_.U("design:type",Object)],kd.prototype,"logoType",void 0);
_.E([_.K(),_.U("design:type",String)],kd.prototype,"lottieUrl",void 0);_.E([_.K(),_.U("design:type",Object)],kd.prototype,"lottiePlayerProps",void 0);_.E([_.K(),_.U("design:type",Object)],kd.prototype,"animationRef",void 0);_.E([_.cW("data"),_.cW("useDarkThemeYoodle"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],kd.prototype,"renderLogoEntity",null);
_.E([_.WW("click"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],kd.prototype,"playAnimation",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],kd);
_.N(kd,"ytd-yoodle-renderer",function(){if(WOv!==void 0)return WOv;var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return WOv=X},{mode:_.Cz("kevlar_poly_si_batch_j074")?1:2});var pQB;var r34;var dc=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return X};
_.S(dc,_.O);_.H=dc.prototype;_.H.onYoodleError=function(){_.A("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.H.computeLogoName=function(X){X=this.componentBehavior.computeIcon_(X);return X===""?"yt-logos-ext:yt-logo-updated":X};
_.H.computeTitle=function(X,t,G){return G&&(t==null?0:t.tooltipText)?_.bu(t.tooltipText):_.bu(X)};
_.H.computeAriaLabel=function(X,t,G){return G&&(t==null?0:t.tooltipText)?_.bu(X):""};
_.H.computeShowYoodle=function(X,t,G){return!X||!t&&!!G&&!_.RH.isEmpty(G)};
_.H.onNavigateHomeAction=function(){if(_.A("kevlar_miniplayer_navigate_home_from_app_killswitch")){var X;(X=_.Sm(this.hostElement).querySelector(".yt-simple-endpoint"))==null||X.click()}};
_.H.computeLogoHref=function(X,t,G){var y;(G==null?0:G.onTapCommand)?y=this.componentBehavior.computeHref_(G.onTapCommand):X&&(y=this.componentBehavior.computeHref_(X));return y?y:t};
_.H.computeCommand=function(X,t){return(t==null?void 0:t.onTapCommand)||X};
_.H.getEndpointForm=function(){if(_.A("kevlar_topbar_disable_cache_only_home")){var X=_.gw().resolve(_.Gw),t=XPQ(X.getState())||"";X=_.jKf(X.getState())||"";return{disableCache:t==="ytd-browse"&&X==="home"}}return{disableCache:!0}};
dc.prototype.onYoodleError=dc.prototype.onYoodleError;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],dc.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],dc.prototype,"componentBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],dc.prototype,"ytdReduxBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],dc.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],dc.prototype,"countryCode",void 0);_.E([_.K({selectorArgs:["data.overrideEntityKey"],selector:function(X,t){return _.Kg(X.entities,"logoEntity",t)}}),
_.U("design:type",Object)],dc.prototype,"logoEntity",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.U("design:type",Boolean)],dc.prototype,"showYoodle",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],dc.prototype,"yoodleError",void 0);_.E([_.K({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.U("design:type",String)],dc.prototype,"titleText",void 0);
_.E([_.K({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.U("design:type",String)],dc.prototype,"ariaLabelText",void 0);_.E([_.K({value:"/"}),_.U("design:type",String)],dc.prototype,"defaultEndpointUrl",void 0);_.E([_.K({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.U("design:type",String)],dc.prototype,"endpointUrl",void 0);
_.E([_.K({computed:"computeCommand(data.endpoint, logoEntity)"}),_.U("design:type",String)],dc.prototype,"command",void 0);_.E([_.K(),_.U("design:type",Object)],dc.prototype,"logoType",void 0);_.E([_.K({}),_.U("design:type",Boolean)],dc.prototype,"useDarkThemeYoodle",void 0);_.E([_.WW("yoodle-error"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],dc.prototype,"onYoodleError",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],dc);
_.N(dc,"ytd-topbar-logo-renderer",function(){if(r34!==void 0)return r34;var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return r34=X},{mode:_.Cz("kevlar_poly_si_batch_j027")?1:2});var NIB=0;var Pd4=_.dm.SEARCH_APPEND_LABEL,E4r=_.dm.SUGGESTION_NEW_VIDEOS_TEXT,UqQ=_.dm.SUGGESTION_THUMBNAIL_LABEL,mqV=_.dm.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Rb2=_.Fp(function(X){function t(K4){var Tr,nL;return _.n(function(nT){if(nT.nextAddress==1)return Tr=new Request(K4),_.CL(nT,2),nT.yield(fetch(Tr,{credentials:"include"}),4);if(nT.nextAddress!=2)return OR(!0),_.zx(nT,0);nL=_.IY(nT);_.Mj(nL);_.W$(nT)})}
var G=X.isHighlighted;var y=X.suggestion;var w=X.onClickCallback;var z=X.onHoverUpdateCallback;var B=X.labels;var V=X.queryBuilderFunction;var b=X.onRemoveCallback;var e=X.suggestionIndex;var g=X.generateUniqueId;var F=X.highlightedId;var T=X.useScrollMargin;var D=X.isKeyboardMode;var h=null,u=null,W=_.nl("div"),c=_.nl("span");X=_.J(_.sm(!1,void 0,"CgAMgc"));var P=X.next().value,l=X.next().value,R=_.VN("a",function(K4){K4&&_.aD(237477,K4,u,function(Tr){u=Tr})}),L=_.VN("button",function(K4){K4&&_.aD(237477,
K4,u,function(Tr){u=Tr})}),x=_.NI(function(K4){if((K4==null?void 0:K4.button)===2)return K4.preventDefault(),!1;
var Tr=_.lw();Tr&&h&&_.V1(Tr,h,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var nL;w(K4,y().text,y().index,y().entityMid,K4==null?void 0:(nL=K4.detail)==null?void 0:nL.wasSelectedByKeyboard);return!1}),w6=function(){return y().type===35},BY=function(){return _.A("desktop_enable_single_suggestion_highlight")},kJ=function(){return _.At("desktop_suggestions_panel_row_height")||0},Ss=function(){var K4;
return _.A("desktop_enable_new_video_metadata")&&((K4=y())==null?void 0:K4.hasNewVideo)===!0},C_=function(){return _.A("desktop_enable_visual_suggest")},Fv=function(){return _.A("desktop_enable_entity_suggest")&&jUq(y())},Uh=function(){return y().entitySubtitle},cY=function(){return BY()?(G==null?void 0:G())||yR()&&!(D==null?0:D()):(G==null?void 0:G())||yR()},f_=function(){var K4=_.Md("SBOX_SETTINGS");
return w6()&&!(K4==null?0:K4.HIDE_REMOVE_LINK)},sq=function(){return g4B(y(),{useEntityName:Fv()})},oq,ll=!((oq=_.gw().resolve(_.jH(_.kI)))==null||!oq()),go=function(){return w6()?_.A("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},kh=function(){return B==null?void 0:B().SUGGESTION_DISMISS_LABEL},Aq=function(){return B==null?void 0:B().SUGGESTION_DISMISSED_LABEL};
X=_.J(_.sm(!1,void 0,"RcUcKd"));oq=X.next().value;var OR=X.next().value;X=_.J(_.sm(!1,void 0,"yGR7je"));var Mz=X.next().value,HY=X.next().value,yR=Mz,hq=_.NI(function(){V(c.value.innerText);return!1}),gi=_.NI(function(K4){K4.preventDefault();
return!1}),TB=_.NI(function(K4){var Tr=y().text,nL=_.Md("SBOX_SETTINGS"),nT="https://"+(nL.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
nT+="&delq="+encodeURIComponent(Tr);(Tr=nL==null?void 0:nL.PSUGGEST_TOKEN)&&(nT+="&tok="+Tr);(nL=nL==null?void 0:nL.SESSION_INDEX)&&(nT+="&authuser="+nL);t(nT);K4.preventDefault();(K4=_.lw())&&u&&_.V1(K4,u,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");b(e==null?void 0:e());return!1}),Uq=_.NI(function(){if(BY()&&(D==null?0:D()))return!1;
HY(!0);z(!0);return!1}),Gc=_.NI(function(){HY(!1);
z(!1);return!1}),XH=_.NI(function(){l(!0);
return!1}),n4=_.NI(function(){l(!1);
return!1}),lJ=_.NI(function(K4){K4.preventDefault();
var Tr;(K4=(Tr=y().entityThumbnailAttributionUrl)!=null?Tr:"")&&_.yD_(K4);return!1});
X=_.J(_.sm("",void 0,"k9uVge"));var kV=X.next().value,ZP=X.next().value;_.R2(function(){f_()&&ZP(g==null?void 0:g(e==null?void 0:e()));W.value&&_.aD(12453,W.value,h,function(K4){h=K4})});
return _.k(_.d,{cond:oq,then:function(){var K4={};return _.k("div",{class:_.cl("ytSuggestionComponentRemovedText",(K4.ytSuggestionComponentLargerRemovedText=function(){return C_()},K4)),
style:function(){return kJ()>0?"height: "+kJ()+"px;":""},
role:"button"},Aq)},
else:function(){var K4={},Tr={};return _.k("div",{class:_.cl("ytSuggestionComponentSuggestion",(K4.ytSuggestionComponentSuggestionHover=function(){return!BY()},K4.ytSuggestionComponentHighlighted=cY,K4.ytSuggestionComponentPersonalizedSuggestion=w6,K4.ytSuggestionComponentMweb=!1,K4.ytSuggestionComponentLargerSuggestion=function(){return Ss()||C_()},K4.ytSuggestionComponentThumbnailSuggestion=function(){return C_()},K4.ytSuggestionComponentRoundedSuggestion=function(){return _.A("desktop_enable_scrollable_suggestions_panel")&&
_.A("desktop_enable_suggestions_panel_padding")},K4.ytSuggestionComponentThumbnailPadding=function(){return C_()&&!w6()},K4)),
style:function(){return kJ()>0?"height: "+kJ()+"px;":""},
role:"presentation","on:mousedown":x,"on:mouseover":Uq,"on:mouseout":Gc,el:W},_.k("div",{class:_.cl("ytSuggestionComponentText",(Tr.ytSuggestionComponentScrollMargin=T,Tr)),"aria-label":function(){return Ss()?y().text+" "+E4r:y().text},
id:function(){return g==null?void 0:g(e==null?void 0:e())},
"on:mousedown":x,role:"option"},_.k(_.d,{cond:function(){return y().type!==33},
then:function(){return _.k(_.mw,{icon:go,className:"ytSuggestionComponentIcon"})}}),_.k("div",{class:"ytSuggestionComponentLeftContainer"},_.k("span",{el:c,
role:"button",tabindex:0},_.k(_.pY,{each:sq},function(nL){return nL.bold?_.k("span",{class:"ytSuggestionComponentBold"},nL.text):_.k("span",null,nL.text)})),_.k(_.d,{cond:function(){return Fv()&&!!y().entitySubtitle||Ss()},
then:function(){return _.k("div",{class:"ytSuggestionComponentMetadataContainer"},_.k(_.d,{cond:function(){return Fv()&&!!y().entitySubtitle},
then:function(){return _.k("div",{class:"ytSuggestionComponentEntitySubtitle"},Uh)}}),_.k(_.d,{cond:function(){return Ss()},
then:function(){return _.k("div",{class:"ytSuggestionComponentNewVideoContainer"},_.k("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.k("div",{class:"ytSuggestionComponentNewVideoText"},E4r))}}))}}))),_.k("div",{class:"ytSuggestionComponentRightContainer"},_.k(_.d,{cond:function(){return C_()&&y().visualSuggestUrl!==void 0},
then:function(){var nL={};return _.k("div",{class:"ytSuggestionComponentThumbnailContainer"},_.k("img",{"aria-label":UqQ,class:_.cl("ytSuggestionComponentVisualSuggestThumbnail",(nL.ytSuggestionComponentCircularFrame=function(){return Fv()&&y().subtypes.includes(790)},nL.ytSuggestionComponentEntitySuggestThumbnail=function(){return Fv()},nL)),
src:function(){return y().visualSuggestUrl}}),_.k(_.d,{cond:function(){return Fv()&&!!y().entityThumbnailAttributionUrl},
then:function(){var nT={};return _.k("span",{title:mqV,role:"tooltip"},_.k("div",{"on:mouseover":XH,"on:mouseout":n4,"on:mousedown":lJ,class:_.cl("ytSuggestionComponentThumbnailOverlay",(nT.ytSuggestionComponentThumbnailOverlayHidden=function(){return!P()},nT))},_.k(_.mw,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.k(_.P0,null,_.k(_.rn,{when:function(){return C_()&&f_()}},function(){var nL={};
return _.k("button",{class:_.cl("ytSuggestionComponentRemoveLinkClearButton",(nL.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return kV()&&kV()===(F==null?void 0:F())},nL.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!cY()},nL)),
el:L,"on:mousedown":TB,"aria-label":kh,id:function(){return kV()}},_.k(_.mw,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.k(_.rn,{when:function(){return!(C_()&&y().visualSuggestUrl!==void 0)&&f_()}},function(){var nL={};
return _.k("a",{class:_.cl("ytSuggestionComponentRemoveLink",(nL.ytSuggestionComponentRemoveLinkDark=ll,nL.ytSuggestionComponentRemoveLinkSelected=function(){return kV()&&kV()===(F==null?void 0:F())},nL)),
el:R,"on:mousedown":TB,"aria-label":kh,tabindex:0,role:"button",id:function(){return kV()}},kh)}),_.k(_.rn,{when:function(){return!1}},function(){return _.k("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":hq,"on:mousedown":gi,role:"button","aria-label":Pd4},_.k(_.mw,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Gg");var iWa=_.Vc(["//www.google.com/textinputassistant/","/","_tia.js"]),LOq=_.Fp(function(){return _.k("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.k("button",{class:"ytdTextInputAssistantButton","on:click":_.NI(function(){YZH().inputMethodsTracker.add(3);var X,t=(X=_.Md("SBOX_SETTINGS"))==null?void 0:X.REQUEST_LANGUAGE;if(t)return _.Gi(_.sw(iWa,14,t)),!1})},_.k("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Hg");var v42=function(){this.cache=new Map},ap2=function(X){for(var t=_.J(X.cache.entries()),G=t.next();!G.done;G=t.next()){var y=_.J(G.value);
G=y.next().value;y=y.next().value;y.suggestions.some(function(w){return w.type===35})&&X.cache.delete(G)}};var lpV=_.dm.SEARCH,xqQ=_.dm.SEARCH_CLEAR_LABEL,fpQ=new _.FB("FAKE_SUGGEST_RESPONSE");_.DW(_.Fp(function(X){function t(){XH||(XH=setTimeout(function(){lJ()},1E3))}
function G(DP,F4,CT){if(DP.trim()){Gc=DP;_.fY("REFINEMENTS_TUPLE",void 0);TB=!0;var Fk;F4=SZR(Mz,F4);var VR=(Fk=X.searchEndpoint)==null?void 0:Fk.call(X);Fk=go.value.value;VR||(VR=b5T);var s6;(s6=_.Y(VR.commandMetadata,_.jQ))!=null&&s6.url||(s6=Error("ol`"+JSON.stringify(VR)),_.xA(s6),VR=b5T);s6=_.RH.unsafeClone(VR);VR=_.ta(_.Y(s6.commandMetadata,_.jQ).url,"search_query",DP);_.XO(location.href,"sv")==="1"&&(_.Y(s6,_.rV).params="EgOAAgE%3D",VR=_.ta(VR,"sv","1"));_.Y(s6,_.rV)&&(_.Y(s6,_.rV).query=DP);
VR=VR.replace(/%20/g,"+");_.Y(s6.commandMetadata,_.jQ).url=VR;CT=_.A("desktop_enable_entity_suggest")?{entityMid:CT}:{};_.gw().resolve(_.F3).resolveCommand(s6,{form:{tempData:Object.assign({},{gs_l:F4,oq:Fk!=null?Fk:DP},CT)}});lJ();go.value.value=DP;go.value.blur();Mz.reset()}}
function y(DP){return _.n(function(F4){return F4.return(new Promise(function(CT){var Fk=new XMLHttpRequest;Fk.open("GET",BIB(DP),!0);Fk.withCredentials=!0;var VR=_.Md("SBOX_SETTINGS");(VR==null?0:VR.SEND_VISITOR_DATA)&&Fk.setRequestHeader("X-Goog-Visitor-Id",VR==null?void 0:VR.VISITOR_DATA);Fk.onload=function(){CT(Fk.responseText)};
Fk.onerror=function(){_.Mj(Error("pl"));CT(null)};
setTimeout(function(){Fk.abort()},1E4);
Fk.send(null)}))})}
function w(DP){var F4,CT,Fk,VR;return _.n(function(s6){switch(s6.nextAddress){case 1:return F4={credentials:"include",headers:J3Q()},window.AbortController&&(CT=new AbortController,setTimeout(function(){CT.abort("ytsbox-suggest-timeout")},1E4),F4.signal=CT.signal),_.CL(s6,2),s6.yield(fetch(BIB(DP),F4),4);
case 4:Fk=s6.yieldResult.text();_.zx(s6,3);break;case 2:return VR=_.IY(s6),VR!=="ytsbox-abort-last"&&VR!=="ytsbox-suggest-timeout"&&_.Mj(VR),s6.return(null);case 3:return s6.return(Fk)}})}
function z(DP){var F4,CT,Fk;return _.n(function(VR){switch(VR.nextAddress){case 1:if(F4=_.gw().resolve(_.jH(fpQ)))return VR.return(F4);CT=Date.now();t();return _.A("yt_searchbox_xhr")?VR.yield(y(DP),5):VR.yield(w(DP),4);case 4:Fk=VR.yieldResult;VR.jumpTo(3);break;case 5:Fk=VR.yieldResult;case 3:if(Fk){XH&&(clearTimeout(XH),XH=null);var s6=Mz,oS=CT,p1=DP.query.length===0;oS=Date.now()-oS;p1?s6.zeroPrefixRoundTripTime=oS:(s6.JSC$20470_totalRoundTripTime+=oS,s6.maxRoundTripTime=Math.max(s6.maxRoundTripTime,
oS),p1=Math.floor(oS/100),p1>=hbB.length?++s6.roundTripTimeHistogram[9]:++s6.roundTripTimeHistogram[hbB[p1]])}return VR.return(Fk)}})}
function B(DP){var F4,CT,Fk;return _.n(function(VR){if(VR.nextAddress==1)return(F4=OR.cache.get(o4a(DP)))?VR.return(F4):VR.yield(z(DP),2);CT=VR.yieldResult;if(CT===null)return VR.return(null);Fk=new FOT(CT);DP.query.length===0&&Fk.suggestions.length===0||OR.cache.set(o4a(DP),Fk);return VR.return(Fk)})}
function V(DP){var F4,CT;return _.n(function(Fk){if(Fk.nextAddress==1){Uq=!1;var VR=Gc;VR=_.rrY()==="search"?(_.XO(location.href,"search_query")||_.XO(location.href,"q"))===VR:!1;F4=new HWT(DP,VR?Gc:null);return Fk.yield(B(F4),2)}CT=Fk.yieldResult;if(CT===null)return Fk.return();F4.query.length===0&&(Mz.zeroPrefixSuggestionCount=CT.suggestions.length);if(F4.id<=n4)return Mz.outOfSyncResponseCount++,Fk.return();if(document.activeElement!==go.value)return Fk.return();n4=F4.id;var s6=Mz,oS=CT.rawResponse[2]||
{};s6.experimentTriggeredBeforeFinal||(s6.experimentTriggeredBeforeFinal=s6.experimentTriggeredFinal);s6.experimentTriggeredFinal=!!oS.e;Mz.updateSuggestions(CT.suggestions);W(-1);f_([]);CT.suggestions!==D()&&W0(CT.suggestions.length);h(CT.suggestions);BY(CT.suggestions.length>0&&CT.suggestions[0].type===33);Aq&&(Aq.hidden=CT.suggestions.length===0,w6()?(Aq.style.minWidth="",s6=Aq.style,oS=(VR=D()[0])==null?void 0:VR.ignoredPrefix,s6.marginLeft=(oS?Math.min(oS.length*6,kh.value.offsetWidth):0).toString()+
"px"):(Aq.style.minWidth=kh.value.offsetWidth+"px",Aq.style.marginLeft="0"),Vr());_.W$(Fk)})}
function b(){if(!TB)return!1;var DP=_.Md("REFINEMENTS_TUPLE");return DP?(DP=DP[1].map(function(F4,CT){return new ebi([F4,0,[71]],go.value.value,CT)}),D()!==DP&&W0(DP.length),f_([]),h(DP),Mz.updateSuggestions(DP),TB=!1,Aq.hidden=DP.length===0,Uq=DP.length>0,!0):!1}
function e(){var DP=go.value.value;(typeof DP==="string"||DP instanceof String)&&DP!==""?R(!0):R(!1)}
function g(){if(_.rrY()==="search"){var DP=window.location.href;try{var F4=_.XO(DP,"search_query")||_.XO(DP,"q")||""}catch(CT){F4=""}F4&&(go.value.value=F4,R(!0))}}
var F=_.J(_.sm([],void 0,"kGFAjf")),T=F.next().value;F=F.next().value;var D=T,h=F;T=_.J(_.sm(-1,void 0,"mLGL9e"));var u=T.next().value,W=T.next().value;T=_.J(_.sm(-1,void 0,"u2rYdc"));var c=T.next().value,P=T.next().value;T=_.J(_.sm(!1,void 0,"W9DFC"));var l=T.next().value,R=T.next().value;T=_.J(_.sm(!1,void 0,"Ip4dNc"));var L=T.next().value,x=T.next().value;F=_.J(_.sm(!1,void 0,"ZNKSQb"));T=F.next().value;F=F.next().value;var w6=T,BY=F;F=_.J(_.sm(!1,void 0,"JBrGLd"));T=F.next().value;var kJ=F.next().value;
F=_.J(_.sm(!1,void 0,"P2pD6e"));var Ss=F.next().value,C_=F.next().value;F=_.J(_.sm(1,void 0,"SjP20c"));var Fv=F.next().value,Uh=F.next().value;F=_.J(_.sm([],void 0,"h4dRaf"));var cY=F.next().value,f_=F.next().value;F=_.J(_.sm(!1,void 0,"TUTzaf"));var sq=F.next().value,oq=F.next().value;F=_.A("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var ll=_.nl("yt-searchbox"),go=_.nl("input"),kh=_.nl("div"),Aq,OR=
new v42,Mz=YZH(),HY=_.gw().resolve(_.jH(_.kI)),yR=function(){var DP;return((DP=X.forceDarkMode)==null?void 0:DP.call(X))||!(HY==null||!HY())},hq=function(){return _.A("desktop_enable_scrollable_suggestions_panel")},gi="i"+NIB++,TB=!1,Uq=!1,Gc="",XH=null,n4=-1,lJ=function(){f_([]);
h([]);BY(!1);Aq&&(Aq.hidden=!0);XH&&(clearTimeout(XH),XH=null);W(-1)},kV=function(DP,F4){DP.preventDefault();
oq(!0);Aq&&(Aq.hidden=!1);var CT=u();DP=D();var Fk=cY();F4=zjH(F4);CT+=F4;for(CT>=DP.length?CT=-1:CT<-1&&(CT=DP.length-1);CT!==-1&&(Fk.includes(CT)||CT>=DP.length||CT<0);)CT+=F4,CT>=DP.length&&(CT=-1);W(CT);u()>=0&&(go.value.value=D()[u()].text,P(0),e(),DP=u(),Fk=c(),(Fk=document.getElementById(zl[DP][Fk]))&&hq()&&(DP===D().length-1?Aq.scrollTop=Aq.scrollHeight:Fk.scrollIntoView({block:"nearest",inline:"start"})))},ZP=_.NI(function(DP){if(!(DP.relatedTarget instanceof Element&&DP.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!0);
var F4;(F4=X.focusCallback)==null||F4.call(X,!0);b()||(Uq?Aq.hidden=!1:(_.Yt(ll.value,"yt-autonav-pause-focus",{}),V(DP.target.value)))}}),K4=_.NI(function(DP){if(!(DP.relatedTarget instanceof Element&&DP.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!1);
var F4;(F4=X.focusCallback)==null||F4.call(X,!1);Aq.scrollTop=0;Aq.hidden=!0;_.Yt(ll.value,"yt-autonav-pause-blur",{})}}),Tr=function(DP){DP=zjH(DP);
var F4;((F4=zl[u()])==null?0:F4[c()+DP])&&P(c()+DP)},nL=_.NI(function(DP){var F4=DP.target;
switch(DP.keyCode){case 13:DP.preventDefault();var CT;if((CT=zl[u()])==null?0:CT[c()]){var Fk;(Fk=document.getElementById(zl[u()][c()]))==null||Fk.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}DP=DP.shiftKey?4:3;CT=Mz;Fk=u();CT.selectedSuggestionIndex=Fk;G(F4.value,DP);break;case 27:Aq&&(Aq.hidden=!0);break;case 40:kV(DP,40);break;case 38:kV(DP,38);break;case 39:Tr(39);break;case 37:Tr(37);break;case 229:Mz.inputMethodsTracker.add(4);break;default:Mz.inputMethodsTracker.add(1),
sUa(Mz)}return!1}),nT=_.NI(function(DP){V(DP.target.value);
e();hq()&&Aq&&(Aq.scrollTop=0);return!1}),ZA=_.NI(function(){Mz.inputMethodsTracker.add(2);
sUa(Mz);return!1});
_.R2(function(){if(Aq){Mz.reset();if(window.ResizeObserver){var DP=new ResizeObserver(function(){w6()||(Aq.style.minWidth=kh.value.offsetWidth+"px")});
DP.observe(kh.value);(new ResizeObserver(function(){Vr()})).observe(Aq);
_.Um(function(){DP.disconnect()})}g();
window.addEventListener("yt-navigate-finish",g);window.addEventListener("yt-focus-searchbox",function(){go.value.focus()});
var F4;kJ((F4=_.Md("SBOX_SETTINGS"))==null?void 0:F4.HAS_ON_SCREEN_KEYBOARD)}else _.xA(new _.NJ("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var MY=_.NI(function(DP){DP.preventDefault();G(go.value.value,12);return!1}),vS=_.NI(function(DP){DP.preventDefault();
var F4,CT;(F4=go)==null||(CT=F4.value)==null||CT.focus();var Fk,VR;((Fk=go)==null?void 0:(VR=Fk.value)==null?void 0:VR.value)!==""&&(go.value.value="",go.value.dispatchEvent(new Event("input")));return!1}),c4=_.NI(function(){var DP=$YB(go.value.value,D().filter(function(F4){return F4.type!==35}).map(function(F4){return{label:F4.text}}));
_.sl(ll.value,"yt-open-popup-action",[{openPopupAction:DP},document.body]);return!1}),GY=_.NI(function(){go.value.focus();
return!1}),yW=function(DP,F4,CT,Fk,VR){Mz.selectedSuggestionIndex=CT;
G(F4,VR?3:1,Fk)},nY=function(DP){go.value.value=DP;
go.value.dispatchEvent(new Event("input"));Mz.inputMethodsTracker.add(5);sUa(Mz,!0)},zl=[[]],Wx=function(DP){var F4="searchbox-suggestion"+_.fG(_.ao);
zl[DP].push(F4);return F4},W0=function(DP){if(D()){zl=[[]];
for(var F4=0;F4<DP;F4++)zl.push([])}},Vr=function(){if(hq()){var DP=Aq,F4=DP.scrollTop;
DP=DP.scrollHeight-DP.clientHeight;C_(F4>=DP);F4=Math.abs(DP-F4);F4<=40?Uh(1-(40-F4)/40):Uh(1)}},em=function(){return"opacity: "+Fv()*100+"%"},Df=_.NI(function(){Vr();
return!1}),p_=_.NI(function(){oq(!1);
return!1}),mE,Yh={},B4={},u_={},AQ={};
return _.k("yt-searchbox",{class:_.cl("ytSearchboxComponentHost",(Yh.ytSearchboxComponentMweb=!1,Yh.ytSearchboxComponentDesktop=!0,Yh["yt-searchbox-filled-query"]=function(){return l()},Yh["ytd-masthead"]=function(){return!L()},Yh.ytSearchboxComponentHostDark=yR,Yh)),
role:"search",el:ll,"client-ve-type":10349},_.k("div",{el:kh,"on:click":GY,class:_.cl("ytSearchboxComponentInputBox",(B4.ytSearchboxComponentInputBoxDark=yR,B4.ytSearchboxComponentInputBoxHasFocus=L,B4))},_.k("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":MY},_.k(_.d,{cond:L,then:function(){return _.k("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.k(_.mw,{icon:"SEARCH"}))}}),_.k("input",{el:go,
class:_.cl("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":gi,"aria-expanded":!((mE=Aq)==null?0:mE.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":K4,"on:focus":ZP,"on:input":nT,"on:keydown":nL,"on:paste":ZA,placeholder:X.placeholderText,"aria-activedescendant":function(){var DP;return(DP=zl[u()])==null?void 0:DP[c()]},
"aria-autocomplete":"list",role:"combobox"})),_.k(_.d,{cond:T,then:function(){return _.k("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.k(LOq,null))}}),_.k(_.d,{cond:l,
then:function(){return _.k("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.k("button",{class:"ytSearchboxComponentClearButton","on:click":vS,"aria-label":X.clearButtonAriaLabel||xqQ},_.k(_.mw,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.k(_.LX,{model:{}})))}})),_.k("button",{class:_.cl("ytSearchboxComponentSearchButton",(u_.ytSearchboxComponentSearchButtonDark=yR,u_)),
"on:click":MY,"aria-label":lpV,title:X.placeholderText},_.k(_.mw,{icon:"SEARCH"})),_.k(_.d,{cond:function(){if(dST()&&_.A("mweb_voice_search")&&X.voiceSearchButton)return X.voiceSearchButton()},
then:function(DP){var F4={};return _.k("div",{class:_.cl("ytSearchboxComponentVoiceSearchWrapper",(F4.ytSearchboxComponentHideVoiceSearchButton=function(){return l()},F4))},_.k(_.M7,{data:DP},{buttonRenderer:function(CT){return _.k(_.bZ,{data:CT.data,
onButtonClickCallback:function(){}})}}))}}),_.k("div",{el:_.T7(function(DP){return void(Aq=DP)}),
id:gi,class:_.cl("ytSearchboxComponentSuggestionsContainer",(AQ.ytSearchboxComponentSuggestionsContainerDark=yR,AQ["yt-searchbox-suggestions-container"]=!1,AQ.ytSearchboxComponentSuggestionsContainerScrollable=hq(),AQ.ytSearchboxComponentSuggestionsContainerAnimated=F,AQ)),"on:scroll":Df,"on:mousemove":p_,role:"listbox",hidden:!0},_.k(_.pY,{each:D},function(DP,F4){return _.k(Rb2,{suggestion:DP,isHighlighted:function(){return F4()===u()},
onClickCallback:yW,onHoverUpdateCallback:function(CT){if(_.A("desktop_enable_single_suggestion_highlight")){var Fk=F4();CT&&(P(0),W(Fk))}},
onRemoveCallback:function(CT){ap2(OR);CT===void 0||CT<0||cY().includes(CT)||f_([].concat(_.RY(cY()),[CT]))},
labels:X.labels,queryBuilderFunction:nY,suggestionIndex:F4,generateUniqueId:Wx,highlightedId:function(){var CT;return(CT=zl[u()])==null?void 0:CT[c()]},
useScrollMargin:hq(),isKeyboardMode:sq})}),_.k(_.d,{cond:function(){return!w6()&&D().find(function(DP){return DP.type!==35})&&_.A("searchbox_reporting")},
then:function(){return _.k("button",{class:"ytSearchboxComponentReportButton","on:mousedown":c4},_.Qf("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.k(_.d,{cond:function(){return!Ss()&&hq()},
then:function(){return _.k("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.k("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:em}))}})))},"Ig"),"yt-searchbox",{props:{searchEndpoint:_.bR,
placeholderText:_.bR,labels:_.bR,voiceSearchButton:_.bR,focusCallback:_.sd,clearButtonAriaLabel:_.bR,forceDarkMode:_.bR}});var eL=function(){var X=_.O.apply(this,arguments)||this;X.menuButtonTargetId="topbar-guide-menu";X.narrow=!1;X.menuStrings={BACK_ALT_LABEL:_.Qf("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Qf("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Qf("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Qf("SBOX_PLACEHOLDER",void 0,"Search")};X.pageDarkTheme=document.documentElement.hasAttribute("dark");X.watchPageScrollTop=0;X.theater=!1;X.fullscreen=!1;X.disableFrostedGlassDuringViewTransition=
!1;X.desktopUnifiedSearchPanelMode=_.A("desktop_enable_unified_search_panel");X.cinematicTheaterMode=_.A("web_cinematic_theater_mode");X.ytSearchboxFocused=!1;X.searchboxLabels=_.Md("SBOX_LABELS");X.topbarIsAboveChipbar=!1;X.isDarkThemeForced=!1;X.areGhostCardsHidden=!1;X.guideKeyboardToggle=!1;X.voiceSearchManager=dh4();X.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};X.setYtSearchboxFocused=function(t){X.ytSearchboxFocused=
t};
X.toggleFrostedGlassDuringViewTransition=function(t){X.disableFrostedGlassDuringViewTransition=t};
return X};
_.S(eL,_.O);_.H=eL.prototype;_.H.computeSimpleText=function(X){return _.bu(X)};
_.H.onDarkChanged=function(){for(var X=_.J(this.buttons||[]),t=X.next();!t.done;t=X.next())t.value.isOverlay=!!this.dark;X=_.J(this.buttonRenderers||[]);for(t=X.next();!t.done;t=X.next())t.value.overrides=this.computeButtonOverride()};
_.H.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.H.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var X=_.zm(_.wv(),"aa");_.Zk(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||X||(this.isDarkThemeForced=this.dark=!0);this.logoType?(X=this.hostElement.querySelector("#masthead-logo"))&&(_.A("polymer_on_demand_shady_dom")?X.setAttribute("slot","masthead-logo-old"):_.uf(X)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Ik(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Ik(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.H.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Ik(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Ik(this,this.onSetTheaterModeEnabled))};
_.H.dataChanged=function(){var X=this.data;X&&(this.voiceEnabled=X.voiceSearchButton?dh4().isSupported():!1,_.jRS(_.m4(),this.menuButtonTargetId,this.guideButton),X.onReceivedActions&&X.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Z0(this.hostElement,X.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&X&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Zk(this.hostElement,"dark",!1),_.Zk(this.hostElement,"theater",!1),
(X=this.hostElement.querySelector("#masthead-logo"))&&(_.A("polymer_on_demand_shady_dom")?X.setAttribute("slot","masthead-logo-old"):_.uf(X))))};
_.H.computeCenterHidden=function(){var X;return this.data&&!((X=this.data.searchbox)==null?0:X.fusionSearchboxRenderer)};
_.H.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Zk(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.H.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.H.onWatchScroll=function(X){this.watchPageScrollTop=X.detail||0;this.updateMastheadBackgroundOpacity()};
_.H.onFullscreenChangeAction=function(X){X||(this.watchPageScrollTop=0);this.fullscreen=X;this.updateMastheadBackgroundOpacity()};
_.H.onSetTheaterModeEnabled=function(X){this.theater=X.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.H.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.H.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.H.setBackgroundOpacity=function(X){X=this.calculateBackgroundOpacity(X);this.background.style.opacity=""+X};
_.H.calculateBackgroundOpacity=function(X){var t=this.theater&&this.cinematicTheaterMode?.6:0,G=this.hostElement.clientHeight/2;return Math.min(Math.max(X,0),G)/G*(1-t)+t};
_.H.shouldShowCinematicMastHead=function(){var X=_.A("kevlar_watch_grid")&&!_.A("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(X||this.pageDarkTheme)};
_.H.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.H.focusGuide=function(){this.guideButton.focus()};
_.H.onGuideToggleTap=function(){_.Yt(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.H.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.H.onGuideToggleHover=function(){_.Yt(this.hostElement,"yt-guide-hover")};
_.H.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.H.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.H.closeOnOutsideClickCondition=function(X){for(X=_.be(X);X[0];){var t=X.shift();if(t instanceof Element&&t.id==="kbd")return!1}return!0};
_.H.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.H.pausePlayer=function(){var X;(X=_.sW())==null||X.pause();this.pauseMiniplayer()};
_.H.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var X;(X=_.gw().resolve(_.G2).getPlayerElement())==null||X.pause()}};
_.H.isMiniplayerActive=function(){return _.gw().resolve(_.G2).isMiniplayerActive()};
_.H.updateNarrowFromBinding=function(X){this.narrow=X.detail.value};
_.H.onYtSendFeedbackAction=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.H.registerWithViewTransitionManager=function(){C7v(_.gw().resolve(_.Rp),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.ke.Object.defineProperties(eL.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.A("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 X;return(X=this.data)==null?void 0:X.voiceSearchButton}}}});
eL.prototype.narrowChanged=eL.prototype.narrowChanged;eL.prototype.onWatchPageChange=eL.prototype.onWatchPageChange;eL.prototype.onRendererStamperFinished=eL.prototype.onRendererStamperFinished;eL.prototype.dataChanged=eL.prototype.dataChanged;eL.prototype.onDarkChanged=eL.prototype.onDarkChanged;_.E([_.q(_.ax),_.U("design:type",Object)],eL.prototype,"ironResizableBehavior",void 0);_.E([_.q(_.JWR),_.U("design:type",Object)],eL.prototype,"ytdExpandableInputBehavior",void 0);
_.E([_.q(_.zZ.YtdGuideStateAwareBehavior),_.U("design:type",Object)],eL.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],eL.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],eL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.MZ),_.U("design:type",Object)],eL.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],eL.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],eL.prototype,"narrow",void 0);_.E([_.K(),_.U("design:type",Object)],eL.prototype,"logoType",void 0);_.E([_.K(),_.U("design:type",Boolean)],eL.prototype,"voiceEnabled",void 0);
_.E([_.K(),_.U("design:type",Object)],eL.prototype,"menuStrings",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],eL.prototype,"dark",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eL.prototype,"pageDarkTheme",void 0);_.E([_.K(),_.U("design:type",Object)],eL.prototype,"watchPageScrollTop",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.MQ}),_.U("design:type",Boolean)],eL.prototype,"isWatchPage",void 0);
_.E([_.K({reflectToAttribute:!0,selector:_.DPf}),_.U("design:type",Boolean)],eL.prototype,"isShortsPage",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eL.prototype,"theater",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eL.prototype,"fullscreen",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.qEl}),_.U("design:type",String)],eL.prototype,"frostedGlassMode",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],eL.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.E([_.K(),_.U("design:type",Object)],eL.prototype,"ytSearchboxFocused",void 0);_.E([_.NS("#buttons > *"),_.U("design:type",Array)],eL.prototype,"buttons",void 0);_.E([_.NS("ytd-button-renderer"),_.U("design:type",Array)],eL.prototype,"buttonRenderers",void 0);_.E([_.rt("#background"),_.U("design:type",HTMLDivElement)],eL.prototype,"background",void 0);
_.E([_.rt("#guide-button"),_.U("design:type",Object)],eL.prototype,"guideButton",void 0);_.E([_.rt("#logo"),_.U("design:type",Object)],eL.prototype,"logo",void 0);_.E([_.K({computed:"computeButtonOverride(dark)"}),_.U("design:type",Object)],eL.prototype,"buttonOverrides",void 0);_.E([_.U0("dark"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eL.prototype,"onDarkChanged",null);_.E([_.K({value:function(){return this.onVoiceTap.bind(this)}}),
_.U("design:type",Function)],eL.prototype,"boundOnTapVoiceButton",void 0);_.E([_.K(),_.U("design:type",Object)],eL.prototype,"topbarIsAboveChipbar",void 0);_.E([_.K(),_.U("design:type",String),_.U("design:paramtypes",[])],eL.prototype,"guideIcon",null);_.E([_.C("voiceEnabled"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],eL.prototype,"shouldShowVoiceSearchButton",null);_.E([_.C("data"),_.U("design:type",Object),_.U("design:paramtypes",[])],eL.prototype,"voiceSearchButton",null);
_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eL.prototype,"dataChanged",null);_.E([_.WW("yt-rendererstamper-finished"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eL.prototype,"onRendererStamperFinished",null);_.E([_.U0("isWatchPage"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eL.prototype,"onWatchPageChange",null);
_.E([_.U0("narrow"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],eL.prototype,"narrowChanged",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-masthead"})],eL);
_.N(eL,"ytd-masthead",function(){if(pQB!==void 0)return pQB;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return pQB=X},{mode:_.Cz("kevlar_poly_si_batch_j036")?1:2});var MSv;var Xcv={},$kr={},tRr={},GSR={},yki=(GSR.OFFLINE=(Xcv["publicytnetworkstatus-online"]="BACK_ONLINE",Xcv),GSR.ONLINE=($kr["publicytnetworkstatus-offline"]="OFFLINE",$kr),GSR.BACK_ONLINE=(tRr["publicytnetworkstatus-offline"]="OFFLINE",tRr.TIMER_TRIGGER="ONLINE",tRr),GSR),jL=function(){var X=_.O.apply(this,arguments)||this;X.currentState="ONLINE";X.scheduledJobId=0;X.bannerString="";X.bannerVe=null;X.networkStatusManagerInstance=new _.Jv;return X};
_.S(jL,_.O);_.H=jL.prototype;_.H.attached=function(){var X=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){X.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){X.stateChangeHandler("publicytnetworkstatus-offline")})};
_.H.detached=function(){var X=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){X.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){X.stateChangeHandler("publicytnetworkstatus-offline")})};
_.H.enterState=function(X){var t=this;this.scheduledJobId&&_.vz.cancelJob(this.scheduledJobId);X==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):X==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Qf("NO_INTERNET_CONNECTION",void 0,"No internet connection")):X==="BACK_ONLINE"&&(this.bannerString=_.Qf("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.PO(_.vz,function(){t.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=X};
_.H.stateChangeHandler=function(X){(X=yki[this.currentState][X])&&this.enterState(X)};
_.H.logVisibility=function(X){var t=_.lw();this.createBannerVe(X);t&&this.bannerVe&&(X?_.o$(t,[this.bannerVe]):_.Jg(t,[this.bannerVe]))};
_.H.createBannerVe=function(X){!this.bannerVe&&X&&(this.bannerVe=_.ai(37929),_.Kc(_.Pj(),this.bannerVe))};
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",String)],jL.prototype,"currentState",void 0);_.E([_.K(),_.U("design:type",Object)],jL.prototype,"scheduledJobId",void 0);_.E([_.K(),_.U("design:type",Object)],jL.prototype,"bannerString",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-network-status-banner"})],jL);
_.N(jL,"ytd-network-status-banner",function(){if(MSv!==void 0)return MSv;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return MSv=
X},{mode:1});var wcN;var FY=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};X.hidden=!0;X.frostedGlass=_.A("web_frosted_glass");return X};
_.S(FY,_.O);FY.prototype.computeHidden=function(X){return X&&X.status?!1:!0};
FY.prototype.handleUpdatePermissionRoleCommand=function(X){if(X=_.Y(X,_.GQB))if(X=_.Y(X.renderer,_.tfz))this.data=X};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],FY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],FY.prototype,"componentBehavior",void 0);_.E([_.K({value:!0,computed:"computeHidden(data)"}),_.U("design:type",Object)],FY.prototype,"hidden",void 0);_.E([_.K(),_.U("design:type",Object)],FY.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],FY.prototype,"frostedGlass",void 0);
_.E([_.p({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],FY);
_.N(FY,"ytd-permission-role-bottom-bar-renderer",function(){if(wcN!==void 0)return wcN;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return wcN=X},{mode:1});var zhQ;var H0Q;var HzQ={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var TX=function(){return _.O.apply(this,arguments)||this};
_.S(TX,_.O);_.H=TX.prototype;_.H.attached=function(){this.JSC$20573_scroller&&(this.JSC$20573_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20573_scroller.attached&&typeof this.JSC$20573_scroller.attached==="function"&&this.JSC$20573_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(G){G.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var X=_.Sm(this.hostElement);X.querySelector("tp-yt-paper-radio-group").selected="";var t=X.querySelector("#reason-text");t&&(t.value="");X.querySelector("#description-text").value=""}};
_.H.canSubmit=function(X,t){_.Yt(this.hostElement,"yt-invalidate-popup-tabbables");return!(X&&t)};
_.H.onCancel=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.H.onSubmit=function(){var X=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(z){return z.active}).map(function(z){return z.innerText.trim()}),t=this.hostElement.querySelector("tp-yt-paper-radio-group"),G=t.selectedItem,y=G.name;
G=G.innerText.trim();var w=t.querySelector("#reason-text");t=void 0;w&&(t=w.value);(w=this.descriptionText.value)&&(w=w.trim());oF4(this.data.searchQuery,X,y,G,w,t);_.sl(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.H.sendFormSubmitToast=function(){var X=_.F0(_.Qf("SBOX_INAPPROPRIATE_TOAST"));_.sl(this.hostElement,"yt-open-popup-action",[X,this])};
_.H.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(X){return X.active})};
_.H.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
TX.prototype.onIronSelect=TX.prototype.onIronSelect;TX.prototype.onIronChange=TX.prototype.onIronChange;TX.prototype.dataChanged=TX.prototype.dataChanged;_.E([_.K(),_.U("design:type",Object)],TX.prototype,"data",void 0);_.E([_.K({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.U("design:type",Boolean)],TX.prototype,"submitDisabled",void 0);_.E([_.K(),_.U("design:type",Boolean)],TX.prototype,"suggestionSelected",void 0);
_.E([_.K(),_.U("design:type",Boolean)],TX.prototype,"catagorySelected",void 0);_.E([_.rt("#scroller"),_.U("design:type",Object)],TX.prototype,"JSC$20573_scroller",void 0);_.E([_.rt("#description-text"),_.U("design:type",Object)],TX.prototype,"descriptionText",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TX.prototype,"dataChanged",null);
_.E([_.WW("iron-change"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TX.prototype,"onIronChange",null);_.E([_.WW("iron-select"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],TX.prototype,"onIronSelect",null);_.E([_.p({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],TX);
_.N(TX,"ytd-search-suggestion-report-dialog",function(){if(H0Q!==void 0)return H0Q;var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);return H0Q=X},{mode:1});var AT=function(X){var t=X.openPopupAction;var G=X.target;var y=X.container;var w=X.popupContainerConfig;var z=X.getElement;X=X.removeWhenClosed===void 0?!1:X.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=t;this.target=G;this.container=y;this.popupContainerConfig=w;this.getElement=z;this.JSC$20579_popupConfig=this.popupContainerConfig.JSC$19695_popupConfig[this.openPopupAction.popupType];this.rendererName=(t=this.getName())?_.gW_(t,LD4(this.popupContainerConfig,
t)):"";_.A("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=X);this.createPopup()};
AT.prototype.updatePopup=function(X){this.openPopupAction=X;this.JSC$20579_popupConfig=this.popupContainerConfig.JSC$19695_popupConfig[this.openPopupAction.popupType];oBi(this);_.A("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
AT.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var nBN=function(X,t,G){(t=t&&X.JSC$20579_popupConfig.narrowProperties?X.JSC$20579_popupConfig.narrowProperties:X.JSC$20579_popupConfig.properties)&&G!==void 0&&(t.isAriaModal=G);JkN(X,t);X.isRtl()&&JkN(X,X.JSC$20579_popupConfig.rtlProperties);BZH(X)};
AT.prototype.createPopup=function(){var X=this.JSC$20579_popupConfig.component;if(this.popupContent=VRB(this,this.rendererName)){if(X){this.popup=VRB(this,X);var t=this.popupContent;_.A("web_enable_wrapper_for_cow_component_in_popup")&&(t=document.createElement("div"),t.appendChild(this.popupContent));_.A("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20579_popupConfig.slotName&&t.setAttribute("slot",this.JSC$20579_popupConfig.slotName);X=this.popup;var G=this.container.tagName.toLowerCase(),
y=_.dt(t);_.iZl(_.FD(X),_.Y3(t,G,y));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.A("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Sm(this.container).appendChild(this.popup)}};
var oBi=function(X){var t,G,y=(t=X.openPopupAction.accessibilityData)==null?void 0:(G=t.accessibilityData)==null?void 0:G.label;y&&(X.popup.ariaLabel=y);var w;((w=X.popupContent.polymerController)!=null?w:X.popupContent).data=(0,_.RH.unsafeClone)(X.openPopupAction.popup[X.getName()]);X.popupContent.duration=b02(X);X.popupContent.positionType=X.openPopupAction.position;var z=X.openPopupAction.properties;z&&Object.keys(z).forEach(function(B){X.popupContent[B]=z[B]})},JkN=function(X,t){if(t)for(var G=
_.J(Object.keys(t)),y=G.next();!y.done;y=G.next())y=y.value,X.popup[y]=t[y]},BZH=function(X){if(X.openPopupAction.position){var t=X.JSC$20579_popupConfig.positionalProperties&&X.JSC$20579_popupConfig.positionalProperties[X.openPopupAction.position],G=X.JSC$20579_popupConfig.rtlPositionalProperties&&X.JSC$20579_popupConfig.rtlPositionalProperties[X.openPopupAction.position];
t=X.isRtl()&&G?G:t;t.shiftedHorizontalOffset&&(G=X.popup.style.display,X.popup.style.display="block",X.popupContent&&X.popup.positionTarget&&X.popupContent.clientWidth>X.popup.positionTarget.clientWidth&&(t.horizontalOffset=X.popup.positionTarget.clientWidth/2-t.shiftedHorizontalOffset),X.popup.style.display=G);JkN(X,t)}},kSB=function(X,t){if(t)for(var G=_.J(Object.keys(t)),y=G.next();!y.done;y=G.next())y=y.value,X.popup.style[y]=t[y]};
AT.prototype.getName=function(){return _.lv(this.openPopupAction.popup,"renderer")||_.lv(this.openPopupAction.popup,"dialog")||_.lv(this.openPopupAction.popup,"model")||void 0};
var b02=function(X){X=X.openPopupAction.durationHintMs;return X===0?X:Math.max(4E3,X||4E3)};
AT.prototype.isRtl=function(){return _.Md("HTML_DIR")==="rtl"};
var VRB=function(X,t){X=X.getElement(t,X.target);X==null&&_.Mj(new _.NJ("popup getElement returned null",t));return X};var dkT={};
dkT.YtPopupContainerBehavior=[_.zw.YtComponentBehavior,_.sb.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_);_.Ti(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.AE(this.hostElement)},
closePopup:function(X){var t=this.createCacheKey(void 0,X);this.popups_[t]&&this.handleClosePopupAction_(void 0,X)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.vz.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.vz.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(X){X.opened&&X.keepBelowPlayer&&this.ensurePopupBelowPlayer(X)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var X in this.popups_){var t=this.popups_[X];if(t.popup.scrollAction==="refit"){var G=t.popup.positionTarget.getBoundingClientRect(),y=t.popup;G=G.top;var w=t;if(!w.naturalHeight){w.popup.hidden=!1;w.popup.style.position="fixed";w.popup.style.top="0px";w.popup.style.left="0px";var z=w.popup.getBoundingClientRect();w.naturalHeight=z.bottom-z.top;w.popup.refit()}y.hidden=!(G>=w.naturalHeight+60);t.popupContent.clientHeight===0&&t.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(X){this.popupContainerConfig=X},
handleOpenPopupAction:function(X,t){var G=X.openPopupAction,y=_.gw().resolve(_.jH(_.K3))&&G.popupType==="TOAST";y&&!G.uniqueId&&(G.uniqueId=_.X_());if(!_.A("popup_container_parent_target_killswitch")){var w;t=(w=this.getParentTarget(t))!=null?w:t}var z=this.ensurePopup_(G,t);return new _.Kh(function(B){z.then(function(V){if(!V)return B();this.maybeCreateNarrowMediaQuery_();var b=this.createCacheKey(V.rendererName,V.openPopupAction.uniqueId);if(G.showOncePerUniqueId){if(this.shownPopupKeys_.has(b))return B();
this.shownPopupKeys_.add(b)}b=this.popups_[b];var e=!(!b||!b.openPopupAction.beReused);e=!!G.reusePopup||e;if(V.popup.opened&&!e){y&&!V.openPopupAction.replacePopup||this.handleClosePopupAction_(V.rendererName,V.openPopupAction.uniqueId);e=G.popupType==="DIALOG"&&!_.A("popup_container_dialog_reopen_killswitch");if(!y&&!e&&b&&b.target==t&&!V.openPopupAction.replacePopup)return B();_.V8(V.popup,function(){this.completeOpenPopupAction_(G,t,V);B()}.bind(this))}else V.popup.opened?V.updatePopup(G):this.completeOpenPopupAction_(G,
t,V),B()}.bind(this))}.bind(this))},
getParentTarget:function(X){if(X&&X instanceof HTMLElement)for(var t=_.J(Object.entries(this.popups_)),G=t.next();!G.done;G=t.next())if(G=_.J(G.value),G.next(),G=G.next().value,G.popup.tagName==="TP-YT-IRON-DROPDOWN"&&X.closest(G.rendererName))return G.target},
completeOpenPopupAction_:function(X,t,G){G.updatePopup(X);X=this.narrowMediaQuery_.queryMatches;var y=this.isAriaModal;G.target=t;var w;t=((w=G.target.polymerController)!=null?w:G.target).popupPositionTarget||G.target;G.JSC$20579_popupConfig.targetContainer&&(t=G.container);G.popup.positionTarget=t;G.popupContent.positionTarget=t;BZH(G);G.JSC$20579_popupConfig.forceFocus&&(G.popupContent.style.outline="none");G.popupContent.tabIndex=-1;G.JSC$20579_popupConfig.narrowProperties&&(G.popup.style.position=
"static");G.JSC$20579_popupConfig.preventAutonav&&G.popup.setAttribute("prevent-autonav",!0);G.JSC$20579_popupConfig.forceCloseOnOutsideClick&&G.popup.setAttribute("force-close-on-outside-click",!0);nBN(G,X,y);kSB(G,G.JSC$20579_popupConfig.styles);G.isRtl()&&kSB(G,G.JSC$20579_popupConfig.rtlStyles);if(!G.openPopupAction.shouldStopParentSignal){var z;w=(z=G.target.polymerController)!=null?z:G.target;(G.popupContent.startForwardingEvents||G.popupContainerConfig.forwardingEnabledPopups.has(G.rendererName))&&
w.parentComponent!==G.popupContent&&G.popupContent!==G.target&&G.target!==document.body&&(G.popupContent.startForwardingEvents?G.popupContent.startForwardingEvents(G.popupContainerConfig.forwardedEvents,G.target):(G.JSC$20579_eventForwarder||(G.JSC$20579_eventForwarder=new _.hi(G.popupContent)),G.JSC$20579_eventForwarder.start(G.popupContainerConfig.forwardedEvents,G.target)))}G=G.popup;G.addEventListener("iron-overlay-opened",_.Ik(this,this.onPopupIronOverlayOpened_));G.addEventListener("iron-overlay-closed",
_.Ik(this,this.onPopupIronOverlayClosed_));G.addEventListener("iron-overlay-canceled",_.Ik(this,this.onPopupIronOverlayCanceled_));G.addEventListener("yt-refit",_.Ik(this,this.refitPopup_));G.addEventListener("yt-invalidate-popup-tabbables",_.Ik(this,this.handleInvalidatePopupTabbables_));G.open()},
getPopupDurationMs_:function(X){return X.durationHintMs===0?X.durationHintMs:Math.max(4E3,X.durationHintMs||4E3)},
handleClosePopupAction_:function(X,t){var G=_.A("web_popup_cache_key_killswitch")||!!t;if(X||G){var y=this.createCacheKey(X,t);X=(X=this.popups_[y])&&X.popup}else X=_.RpY(_.oM);if(X&&X.close){if(t=_.gw().resolve(_.jH(_.Z8)))X.restoreFocusOnClose=t.isKeyBoardInUse();X.close();this.removePopup_(X,y)}},
handleClosePopupCommand_:function(X){X.closePopupCommand&&X.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,X.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(X){var t={},G;for(G in this.popups_)if(t={key$jscomp$1179:t.key$jscomp$1179},t.key$jscomp$1179=G,!X||!X.some(function(z){return function(B){return B==z.key$jscomp$1179}}(t))){var y=this.popups_[t.key$jscomp$1179],w=y.popup;
_.gw().resolve(_.jH(_.K3))&&y.openPopupAction.popupType==="TOAST"||(w&&w.close&&w.close(),this.removePopup_(w,t.key$jscomp$1179))}},
handleClosePopupsAction_:function(X){X.forEach(function(t){var G=this.popups_[t];G&&((G=G.popup)&&G.close&&G.close(),this.removePopup_(G,t))}.bind(this))},
handleGetPopupOpenedAction_:function(X,t){return(t=this.createCacheKey(X,t))&&this.popups_[t]?this.popups_[X].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var X=[],t;for(t in this.popups_){var G=this.popups_[t];G.popup.opened&&X.push(G)}return X},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(X,t){_.A("ytpopup_disable_default_html_caching")&&X&&X.removeWhenClosed&&(_.Sm(this.hostElement).removeChild(X),t&&this.popups_[t]&&delete this.popups_[t])},
shouldReusePopup_:function(X){return!(!X||!X.reusePopup)||!(!X||!X.beReused)},
ensurePopup_:function(X,t){this.maybeCreateNarrowMediaQuery_();var G=_.lv(X.popup,"renderer")||_.lv(X.popup,"dialog")||_.lv(X.popup,"model");if(!G)return _.qY();G=_.gW_(G,LD4(this.popupContainerConfig,G));return _.qY(this.getAndMaybeCreatePopup_(X,G,t))},
getAndMaybeCreatePopup_:function(X,t,G){var y=this.createCacheKey(t,X.uniqueId);if(this.popups_[y])return this.popups_[y];X=new AT({openPopupAction:X,target:G,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(t)});return this.popups_[y]=X},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(X){return _.A("ytpopup_disable_default_html_caching")?X&&X.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",_.Ik(this,this.openPopupQueryMatchesChanged_)),_.Sm(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(X){X=X.detail.value;for(var t in this.popups_)nBN(this.popups_[t],X)},
onPopupIronOverlayClosed_:function(X){var t=X.currentTarget,G=_.V1s(t);G=G.length>0?G[0]:t;if(G.is!=="ytd-reel-watch-while-dialog-renderer"||X.target.is!=="tp-yt-iron-dropdown"){X.detail.popup=t;X.detail.popupRenderer=G;var y,w={context:{openingElement:((y=this.popups_[(G==null?void 0:G.is)||""])==null?void 0:y.target)||void 0}};Object.assign(w,X.detail);var z;_.Yt((z=G.hostElement)!=null?z:G,"yt-popup-closed",w);t.removeEventListener("yt-refit",_.Ik(this,this.refitPopup_));t.removeEventListener("yt-invalidate-popup-tabbables",
_.Ik(this,this.handleInvalidatePopupTabbables_));t.removeEventListener("iron-overlay-canceled",_.Ik(this,this.onPopupIronOverlayCanceled_));t.removeEventListener("iron-overlay-closed",_.Ik(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(t)}},
onPopupIronOverlayCanceled_:function(X,t){var G=X.currentTarget,y=_.V1s(G);y=y.length>0?y[0]:G;if(y.is!=="ytd-reel-watch-while-dialog-renderer"||X.target.is!=="tp-yt-iron-dropdown"){var w;_.Yt((w=y.hostElement)!=null?w:y,"yt-popup-canceled",X.detail);w=t?_.be(t):null;(!t||["click","tap"].includes(t.type))&&!G.hasAttribute("force-close-on-outside-click")&&G.positionTarget&&w&&w.includes(G.positionTarget)&&X.preventDefault();G.restoreFocusOnClose=_.NN.keyboardEventMatchesKeys(t,"esc")}},
onPopupIronOverlayOpened_:function(X){X=X.currentTarget;var t=_.V1s(X);t=t.length>0?t[0]:X;var G,y;_.Yt((G=t.hostElement)!=null?G:t,"yt-popup-opened",(y=t.hostElement)!=null?y:t);X.keepBelowPlayer&&(this.ensurePopupBelowPlayer(X,!0),this.dynamicallyPositionedElements_.add(X));G=_.gw().resolve(_.jH(_.Z8));y=!!t.querySelector("#toast");G&&G.isKeyBoardInUse()&&!y&&(typeof t.focusFirstItem==="function"?t.focusFirstItem():(t=_.Eyh(X),t.length&&t[0].focus()));X.removeEventListener("iron-overlay-opened",
_.Ik(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(X){X=X.currentTarget;X.refit&&X.refit()},
refitPopups_:function(){for(var X in this.popups_)this.popups_[X].refit()},
handleInvalidatePopupTabbables_:function(X){X=X.currentTarget;X.invalidateTabbables&&X.invalidateTabbables()},
createCacheKey:function(X,t){return _.A("web_popup_cache_key_killswitch")?t?X+"#"+t:X:t?"#"+t:X},
openSheet:function(X,t){var G=X==null?void 0:X.openPopupActionCommand;!G&&(X==null?0:X.viewModel)&&(G={openPopupAction:{popup:{sheetViewModel:X.viewModel},popupType:"CONTEXTUAL_SHEET"}});G&&this.handleOpenPopupAction(G,t)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var X=this;return _.n(function(t){return t.return(X.handleGetOpenedPopupsAction_().filter(function(G){var y;return((y=G.openPopupAction)==null?void 0:y.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(X,t,G){if(_.A("web_dialog_utils_killswitch")){var y=X==null?void 0:X.openPopupActionCommand,w=(G==null?0:G.ariaLabel)?{accessibilityData:{accessibilityData:{label:G.ariaLabel}}}:void 0;!y&&(X==null?0:X.viewModel)&&(y={openPopupAction:Object.assign({},{popup:{dialogViewModel:X.viewModel},popupType:(G==null?0:G.isModal)?"MODAL":"DIALOG"},w&&w)});y&&this.handleOpenPopupAction(y,t)}else{if(w=X==null?void 0:X.viewModel){var z=G=G===void 0?{}:G;G=z.ariaLabel;w={popup:{dialogViewModel:w},
popupType:z.isModal?"MODAL":"DIALOG"};z={accessibilityData:{label:G}};G&&(w.accessibilityData=z);w={openPopupAction:w}}else w=void 0;if(w=(y=w)!=null?y:X==null?void 0:X.openPopupActionCommand)this.isAriaModal=_.A("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(w,t)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var X=this;return _.n(function(t){return t.return(X.handleGetOpenedPopupsAction_().filter(function(G){var y;return((y=G.openPopupAction)==null?void 0:y.popupType)==="DIALOG"}).length>0)})}}];var ehR;var joQ;var gBi=_.Vc(["about:blank"]),Yd=function(){var X=_.O.apply(this,arguments)||this;X.isMuted=!1;X.pageLoadTimeoutId=void 0;return X};
_.S(Yd,_.O);_.H=Yd.prototype;_.H.dataChanged=function(){var X=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var t=this.data.url,G=_.aS(t);_.A("enable_yt_ata_iframe_authuser")?(G=_.aS(t),_.wq(this.iframe,Jm2(G))):_.wq(this.iframe,G);this.pageLoadTimeoutId=_.PO(_.va(),function(){return void X.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.T1({destination:window,iframe:this.iframe,origin:_.p4q(G.toString()),channelName:"ataiframe",onMessage:_.Uuv(fBq,function(y){MOR(y.data)?(y=_.wN(y.data,1,_.eq,_.eM()),y.length!==1?_.Mj(Error("ql")):(y=y[0],y===3?(X.isMuted=!0,X.logStateChanged({adMuteRequested:!0})):y===1&&X.close())):_.Mj(Error("rl"))}),
onEstablished:function(){X.cancelPageLoadTimeout();X.logStateChanged({pageLoadSucceeded:!0})}})}};
_.H.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.va().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.H.logStateChanged=function(X){var t;if((t=this.data)==null?0:t.trackingParams)X={adsClientData:{aboutThisAdData:X}},_.Pj().stateChanged(this.data.trackingParams,X)};
_.H.close=function(){_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
_.H.handlesPopupClosed=function(X,t){var G=this,y,w;return _.n(function(z){if(z.nextAddress==1)return _.Md("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.sl(G.hostElement,"on-about-this-ad-popup-closed",[G.isMuted,t]),z.jumpTo(0)):X&&BXT(X)?z.yield(nFa(X),4):(G.isMuted&&_.sl(G.hostElement,"yt-mute-ad-action",[G.is,G]),z.jumpTo(0));if(y=z.yieldResult){var B=w=new _.Ry(y),V=G.isMuted;B.getOptions().includes("onAboutThisAdPopupClosed")?_.iMJ(B,"onAboutThisAdPopupClosed",{isMuted:V,layoutId:t}):_.g2("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.W$(z)})};
_.H.onPopupClosed=function(X){var t=this,G,y;return _.n(function(w){G=_.sw(gBi);_.wq(t.iframe,G);t.cancelPageLoadTimeout();if(!t.data)return w.jumpTo(0);t.ytRendererBehavior.markDirty();y=X.detail.context.openingElement;return w.yield(t.handlesPopupClosed(y,t.data.layoutId),0)})};
_.H.detached=function(){this.cancelPageLoadTimeout()};
_.H.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Yd.prototype.onPopupClosed=Yd.prototype.onPopupClosed;Yd.prototype.dataChanged=Yd.prototype.dataChanged;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.E([_.rt("#iframe"),_.U("design:type",HTMLIFrameElement)],Yd.prototype,"iframe",void 0);_.E([_.K(),_.U("design:type",Object)],Yd.prototype,"data",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Yd.prototype,"dataChanged",null);
_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype",Promise)],Yd.prototype,"onPopupClosed",null);_.E([_.$F({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Yd);
_.N(Yd,"yt-about-this-ad-renderer",function(){if(joQ===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;ehR===void 0&&(ehR=document.createElement("template"));var y=ehR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);joQ=X}X=joQ;return X},{mode:2});var Fv2;var TZB;var sB=function(X){var t=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=t.message;"stack"in t&&(this.stack=t.stack);this.maxFileSizeMB=X;Object.setPrototypeOf(this,sB.prototype)};
_.S(sB,Error);var Akv=function(X,t){var G=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=G.message;"stack"in G&&(this.stack=G.stack);this.minWidth=X;this.minHeight=t;Object.setPrototypeOf(this,Akv.prototype)};
_.S(Akv,Error);var YSr=function(X){this.requirements=X;this.JSC$20607_maxFileSize=X.maxFileSizeMB*1024*1024},sor=function(X,t){if(t.size>X.JSC$20607_maxFileSize)throw new sB(X.requirements.maxFileSizeMB);
};var Dk4=function(X,t){this.canvas=X;this.imageEditorBuilder=t};
Dk4.prototype.addEventListeners=function(X){var t=function(w){SSH(X,w)};
this.JSC$20613_mouseDownEvent=t;var G=function(w){hhr(X,w)};
this.JSC$20613_mouseMoveEvent=G;var y=function(){Z0R(X)};
this.JSC$20613_mouseUpEvent=y;this.canvas.addEventListener("mousedown",t);this.canvas.addEventListener("mousemove",G);document.addEventListener("mouseup",y)};
Dk4.prototype.removeEventListeners=function(){this.JSC$20613_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20613_mouseDownEvent);this.JSC$20613_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20613_mouseMoveEvent);this.JSC$20613_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20613_mouseUpEvent)};
var qSR=function(X,t){X.removeEventListeners();return new Promise(function(G){var y=new Image;y.crossOrigin="anonymous";y.onload=function(){var w=X.imageEditorBuilder(X.canvas,y);X.addEventListeners(w);G(w)};
y.src=t})},DK=function(X,t,G,y,w,z,B,V){this.canvas=X;
this.image=t;this.requiredRatio=G;this.minImageCropDimension=y;this.minOutputImageResolution=w;this.component=z;this.styleFocusedCorner=V===void 0?!0:V;this.action=2;this.focusedCorner=this.resizeCorner=0;X=this.canvas.getContext("2d");if(!X)throw Error("sl");this.ctx=X;this.canvasMargin=B!=null?B:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;B=this.image;X=this.canvasInnerWidth/B.width;B.height*X>912&&(X=B.width/B.height*912/B.width);B=X;this.scaledImageWidth=this.canvas.width%2?
bzT(this.image.width*B):Vxr(this.image.width*B);this.scaledImageHeight=Math.round(this.image.height*B);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20616_overlayMarginBottom=this.JSC$20616_overlayMarginTop=this.canvasMargin;this.JSC$20616_overlayMarginRight=this.JSC$20616_overlayMarginLeft=this.horizontalMargin;this.JSC$20616_overlayWidth=this.scaledImageWidth;this.JSC$20616_overlayHeight=this.scaledImageHeight;
X=this.image.width/this.image.height;X>this.requiredRatio?(this.JSC$20616_overlayWidth=this.canvas.width%2?bzT(this.scaledImageHeight*this.requiredRatio):Vxr(this.scaledImageHeight*this.requiredRatio),this.JSC$20616_overlayMarginRight=this.JSC$20616_overlayMarginLeft=(this.canvas.width-this.JSC$20616_overlayWidth)/2):X<this.requiredRatio&&(this.JSC$20616_overlayHeight=this.canvas.height%2?bzT(this.scaledImageWidth/this.requiredRatio):Vxr(this.scaledImageWidth/this.requiredRatio),this.JSC$20616_overlayMarginBottom=
this.JSC$20616_overlayMarginTop=(this.canvas.height-this.JSC$20616_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*B,this.scaledImageWidth);CQN(this)};
DK.prototype.getContext=function(){return this.ctx};
var SSH=function(X,t){t={x:Math.round(t.pageX-X.canvas.getBoundingClientRect().left),y:Math.round(t.pageY-X.canvas.getBoundingClientRect().top)};X.dragStart=t;Kv2(X,t)!==0?(X.action=1,O0Q(X,t),X.resizeCorner=Kv2(X,t)):t.x>X.JSC$20616_overlayMarginLeft&&t.x<X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth&&t.y>X.JSC$20616_overlayMarginTop&&t.y<X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight&&(X.action=0)},uTQ=function(X,t){switch(t){case 1:return{x:X.JSC$20616_overlayMarginLeft,
y:X.JSC$20616_overlayMarginTop};case 2:return{x:X.JSC$20616_overlayMarginLeft,y:X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight};case 3:return{x:X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth,y:X.JSC$20616_overlayMarginTop};case 4:return{x:X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth,y:X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight};default:throw Error("tl");}},IIr=function(X,t){if(X.focusedCorner!==0){X.dragStart=uTQ(X,X.focusedCorner);
X.action=1;X.resizeCorner=X.focusedCorner;var G=X.dragStart.x,y=X.dragStart.y;switch(t){case 0:X.focusedCorner===1||X.focusedCorner===4?(G-=10,y-=10):(G-=10,y+=10);break;case 1:X.focusedCorner===1||X.focusedCorner===4?(G+=10,y+=10):(G+=10,y-=10);break;case 2:G=X.focusedCorner===1||X.focusedCorner===4?G-10:G+10;y-=10;break;case 3:G=X.focusedCorner===1||X.focusedCorner===4?G+10:G-10;y+=10;break;default:throw Error("ul");}Qov(X,{x:G,y:y});CQN(X);X.action=2;X.dragStart=void 0}},hhr=function(X,t){t={x:Math.round(t.pageX-
X.canvas.getBoundingClientRect().left),
y:Math.round(t.pageY-X.canvas.getBoundingClientRect().top)};O0Q(X,t);switch(X.action){case 1:Qov(X,t);break;case 0:X.dragStart&&(X.JSC$20616_overlayMarginLeft=Math.max(X.horizontalMargin,Math.min(X.JSC$20616_overlayMarginLeft-(X.dragStart.x-t.x),X.horizontalMargin+X.scaledImageWidth-X.JSC$20616_overlayWidth)),X.JSC$20616_overlayMarginRight=X.canvas.width-X.JSC$20616_overlayMarginLeft-X.JSC$20616_overlayWidth,X.JSC$20616_overlayMarginTop=Math.max(X.canvasMargin,Math.min(X.JSC$20616_overlayMarginTop-
(X.dragStart.y-t.y),X.scaledImageHeight-X.JSC$20616_overlayHeight+X.canvasMargin)),X.JSC$20616_overlayMarginBottom=X.canvas.height-(X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight));break;default:return}CQN(X);X.dragStart=t},Z0R=function(X){X.action=2;
X.dragStart=void 0;document.body.style.cursor="auto"},O0Q=function(X,t){switch(Kv2(X,t)){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:X.action!==1&&(document.body.style.cursor="auto")}},Kv2=function(X,t){var G=X.JSC$20616_overlayMarginLeft-5,y=X.JSC$20616_overlayMarginTop-5,w=X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth-5;
X=X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight-5;return Wvi(t,{x:G,y:y})?1:Wvi(t,{x:w,y:y})?3:Wvi(t,{x:G,y:X})?2:Wvi(t,{x:w,y:X})?4:0},Wvi=function(X,t){return X.x>=t.x&&X.x<=t.x+10&&X.y>=t.y&&X.y<=t.y+10},Qov=function(X,t){if(X.dragStart)switch(X.resizeCorner){case 2:Math.abs((X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth-t.x)/(t.y-X.JSC$20616_overlayMarginTop))>=X.requiredRatio?ckB(X,t.x):pci(X,t.y);
break;case 1:Math.abs((X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth-t.x)/(X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight-t.y))>=X.requiredRatio?rkB(X,t.x):pci(X,t.y);break;case 4:Math.abs((t.x-X.JSC$20616_overlayMarginLeft)/(t.y-X.JSC$20616_overlayMarginTop))>=X.requiredRatio?ckB(X,t.x):NZQ(X,t.y);break;case 3:Math.abs((t.x-X.JSC$20616_overlayMarginLeft)/(X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight-t.y))>=X.requiredRatio?rkB(X,t.x):NZQ(X,t.y);break;default:throw Error("vl");
}},ckB=function(X,t){var G=X.JSC$20616_overlayMarginTop;
X.JSC$20616_overlayMarginBottom=PQi(X,t);X.JSC$20616_overlayHeight=X.canvas.height-X.JSC$20616_overlayMarginBottom-G;X.JSC$20616_overlayWidth=Math.round(X.JSC$20616_overlayHeight*X.requiredRatio);EBN(X)},rkB=function(X,t){var G=X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight;
X.JSC$20616_overlayMarginTop=PQi(X,t);X.JSC$20616_overlayHeight=G-X.JSC$20616_overlayMarginTop;X.JSC$20616_overlayWidth=Math.round(X.JSC$20616_overlayHeight*X.requiredRatio);EBN(X)},EBN=function(X){switch(X.resizeCorner){case 2:case 1:X.JSC$20616_overlayMarginLeft=X.canvas.width-X.JSC$20616_overlayMarginRight-X.JSC$20616_overlayWidth;
break;case 4:case 3:X.JSC$20616_overlayMarginRight=X.canvas.width-X.JSC$20616_overlayMarginLeft-X.JSC$20616_overlayWidth;break;default:throw Error("vl");}},pci=function(X,t){var G=X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth;
X.JSC$20616_overlayMarginLeft=Uki(X,t);X.JSC$20616_overlayWidth=G-X.JSC$20616_overlayMarginLeft;X.JSC$20616_overlayHeight=Math.round(X.JSC$20616_overlayWidth/X.requiredRatio);mkH(X)},NZQ=function(X,t){var G=X.JSC$20616_overlayMarginLeft;
X.JSC$20616_overlayMarginRight=Uki(X,t);X.JSC$20616_overlayWidth=X.canvas.width-X.JSC$20616_overlayMarginRight-G;X.JSC$20616_overlayHeight=Math.round(X.JSC$20616_overlayWidth/X.requiredRatio);mkH(X)},mkH=function(X){switch(X.resizeCorner){case 2:case 4:X.JSC$20616_overlayMarginBottom=X.canvas.height-X.JSC$20616_overlayMarginTop-X.JSC$20616_overlayHeight;
break;case 1:case 3:X.JSC$20616_overlayMarginTop=X.canvas.height-X.JSC$20616_overlayMarginBottom-X.JSC$20616_overlayHeight;break;default:throw Error("vl");}},PQi=function(X,t){switch(X.resizeCorner){case 2:t=X.canvas.height-(X.JSC$20616_overlayMarginTop+Rhv(X,t));
break;case 4:t=X.canvas.height-(X.JSC$20616_overlayMarginTop+i0r(X,t));break;case 1:t=X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight-Rhv(X,t);break;case 3:t=X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight-i0r(X,t);break;default:throw Error("vl");}return Math.max(t,X.canvasMargin)},Rhv=function(X,t){t=X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth-Math.max(t,X.horizontalMargin);
t=t<0?X.JSC$20616_overlayWidth:Math.max(t,X.minOverlayWidth);return Math.round(t/X.requiredRatio)},i0r=function(X,t){t=X.canvas.width-Math.max(X.canvas.width-t,X.horizontalMargin)-X.JSC$20616_overlayMarginLeft;
t=t<0?X.JSC$20616_overlayWidth:Math.max(t,X.minOverlayWidth);return Math.round(t/X.requiredRatio)},Uki=function(X,t){switch(X.resizeCorner){case 2:t=X.canvas.width-X.JSC$20616_overlayMarginRight-Lvv(X,t);
break;case 4:t=X.canvas.width-X.JSC$20616_overlayMarginLeft-Lvv(X,t);break;case 1:t=X.canvas.width-X.JSC$20616_overlayMarginRight-vBV(X,t);break;case 3:t=X.canvas.width-X.JSC$20616_overlayMarginLeft-vBV(X,t);break;default:throw Error("vl");}return Math.max(t,X.horizontalMargin)},Lvv=function(X,t){t=X.canvas.height-Math.max(X.canvas.height-t,X.canvasMargin)-X.JSC$20616_overlayMarginTop;
return t<0?X.JSC$20616_overlayWidth:Math.max(Math.round(t*X.requiredRatio),X.minOverlayWidth)},vBV=function(X,t){t=X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight-Math.max(t,X.canvasMargin);
return t<0?X.JSC$20616_overlayWidth:Math.max(Math.round(t*X.requiredRatio),X.minOverlayWidth)},CQN=function(X){X.ctx.clearRect(0,0,X.canvas.width,X.canvas.height);
X.ctx.drawImage(X.image,0,0,X.image.width,X.image.height,X.horizontalMargin,X.canvasMargin,X.canvas.width-2*X.horizontalMargin,X.scaledImageHeight);X.ctx.fillStyle="rgba(0, 0, 0, 0.7)";X.ctx.fillRect(X.horizontalMargin,X.JSC$20616_overlayMarginTop,X.JSC$20616_overlayMarginLeft-X.horizontalMargin,X.JSC$20616_overlayHeight);X.ctx.fillRect(X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth,X.JSC$20616_overlayMarginTop,X.JSC$20616_overlayMarginRight-X.horizontalMargin,X.JSC$20616_overlayHeight);X.ctx.fillRect(X.horizontalMargin,
X.canvasMargin,X.scaledImageWidth,X.JSC$20616_overlayMarginTop-X.canvasMargin);X.ctx.fillRect(X.horizontalMargin,X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight,X.scaledImageWidth,X.JSC$20616_overlayMarginBottom-X.canvasMargin);X.drawOverlay();X.component&&_.Yt(X.component,"image-updated")};
DK.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20616_overlayMarginLeft,this.JSC$20616_overlayMarginTop,this.JSC$20616_overlayWidth,this.JSC$20616_overlayHeight);aI4(this)};
var aI4=function(X){var t=X.JSC$20616_overlayMarginLeft-5,G=X.JSC$20616_overlayMarginTop-5,y=X.JSC$20616_overlayMarginLeft+X.JSC$20616_overlayWidth-5,w=X.JSC$20616_overlayMarginTop+X.JSC$20616_overlayHeight-5;X.ctx.fillStyle="#FFF";X.ctx.fillRect(t,G,10,10);X.ctx.strokeRect(t,G,10,10);X.ctx.fillRect(y,G,10,10);X.ctx.strokeRect(y,G,10,10);X.ctx.fillRect(t,w,10,10);X.ctx.strokeRect(t,w,10,10);X.ctx.fillRect(y,w,10,10);X.ctx.strokeRect(y,w,10,10);if(X.focusedCorner!==0&&X.styleFocusedCorner){X.ctx.lineWidth=
4;X.ctx.strokeStyle="#3EA6FF";switch(X.focusedCorner){case 1:--t;--G;break;case 2:--t;G=w-1;break;case 3:t=y-1;--G;break;case 4:t=y-1;G=w-1;break;default:return}X.ctx.strokeRect(t,G,12,12)}};
DK.prototype.crop=function(X,t){t=t===void 0?!0:t;var G=this.image.width/this.scaledImageWidth,y=document.createElement("canvas"),w=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],z=this.JSC$20616_overlayWidth*G,B=this.JSC$20616_overlayHeight*G;y.width=Math.max(z,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);y.height=Math.max(B,w);X&&(y.width=Math.min(y.width,y.height),y.height=Math.min(y.width,y.height));
X=y.getContext("2d");if(!X)throw Error("jl");w=(this.JSC$20616_overlayMarginLeft-this.horizontalMargin)*G;G*=this.JSC$20616_overlayMarginTop-this.canvasMargin;t||(X.fillStyle="white",X.fillRect(0,0,y.width,y.height));X.drawImage(this.image,w,G,z,B,0,0,y.width,y.height);return y};var lIr=function(X,t,G,y,w){DK.call(this,X,t,G,y,void 0,w,8,!1)};
_.S(lIr,DK);lIr.prototype.drawOverlay=function(){var X=this.getContext(),t=this.JSC$20616_overlayWidth,G=this.JSC$20616_overlayHeight,y=this.JSC$20616_overlayMarginTop,w=this.JSC$20616_overlayMarginLeft;X.lineWidth=2;X.strokeStyle="#3EA6FF";X.beginPath();X.arc(w+t/2,y+G/2,t/2,0,2*Math.PI);X.stroke();X.strokeRect(w,y,t,G);aI4(this)};
var xkT={maxFileSizeMB:15,minWidth:98,minHeight:98},fIT=["image/png","image/jpeg","image/gif"],SL=function(){var X=_.O.apply(this,arguments)||this;X.fileSelectorFocusListener=null;X.errorMessage=null;X.isLoading=!0;X.hideContainer=!0;X.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return X};
_.S(SL,_.O);_.H=SL.prototype;_.H.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.H.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.H.computePlaylistThumbnail=function(X){return X==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.H.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.sl(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.H.setErrorState=function(X){this.resetErrorState();X&&(this.errorMessage=X)};
_.H.showPopup=function(){var X=this;this.hideContainer=!1;_.PO(_.vz,function(){_.Yt(X.hostElement,"yt-refit")});
this.isLoading=!1};
_.H.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.H.closePopup=function(){this.resetFileSelector();_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
_.H.onCancelTap=function(){this.isPlaylistThumbnail||_.sl(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.H.openFileSelector=function(){var X=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.PO(_.vz,function(){setTimeout(function(){if(!X.fileSelector.files||X.fileSelector.files.length===0)X.onCancelTap();X.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(t){t instanceof Error?_.xA(t):_.fh(new _.NJ(JSON.stringify(t)))}};
_.H.handleFileSelection=function(){var X=this,t,G,y,w,z,B;return _.n(function(V){switch(V.nextAddress){case 1:_.CL(V,2);if(!X.fileSelector.files||!X.imageEditorCanvas)return X.onCancelTap(),V.return();t=X.fileSelector.files[0];sor(X.imageChecker,t);_.CL(V,4);return V.yield(rbR(t),6);case 6:X.mimeType=V.yieldResult;_.zx(V,5,2);break;case 4:_.IY(V,2),_.sl(X.hostElement,"yt-image-selection-error-action",[(G=X.data)==null?void 0:G.genericImageLoadErrorMessage]),X.onCancelTap();case 5:y=new FileReader;
y.addEventListener("load",function(){var b,e;return _.n(function(g){if(g.nextAddress==1){if(!y.result)return _.Mj(Error("ll")),g.return();b=y.result;e=new Image;e.src=b;e.onload=function(){try{var F=X.imageChecker;if(e.width<F.requirements.minWidth||e.height<F.requirements.minHeight)throw new Akv(F.requirements.minWidth,F.requirements.minHeight);}catch(D){if(D instanceof Akv){var T;_.sl(X.hostElement,"yt-image-selection-error-action",[(T=X.data)==null?void 0:T.imageDimensionErrorMessage]);X.logImageDimensionErrorVe()}else D instanceof
Error?_.xA(D):(F=new _.NJ(JSON.stringify(D)),_.xA(F));X.onCancelTap()}X.showPopup()};
e.onerror=function(){var F;_.sl(X.hostElement,"yt-image-selection-error-action",[(F=X.data)==null?void 0:F.genericImageLoadErrorMessage]);X.onCancelTap()};
return g.yield(qSR(X.imageEditorCanvas,b),2)}X.imageEditor=g.yieldResult;X.updatePositionOfAllCorners();X.addEventListeners(X.imageEditor);_.W$(g)})},!1);
y.readAsDataURL(t);_.zx(V,0);break;case 2:w=_.IY(V),w instanceof sB?_.sl(X.hostElement,"yt-image-selection-error-action",[(z=X.data)==null?void 0:z.imageSizeErrorMessage]):(w instanceof Error?_.xA(w):_.fh(new _.NJ(JSON.stringify(w))),_.sl(X.hostElement,"yt-image-selection-error-action",[(B=X.data)==null?void 0:B.genericImageLoadErrorMessage])),X.onCancelTap(),_.W$(V)}})};
_.H.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var X=_.Ni(_.Pj(),{veType:232707,visualElement:_.ai(232707)});X&&(X={visualElement:X},_.rX().reportShown(X))}};
_.H.handleImageSelectionErrorAction=function(X){this.isPlaylistThumbnail&&_.OM0(this.hostElement,X)};
_.H.convertToImageFormatBundle=function(X){var t=this,G,y,w;return _.n(function(z){switch(z.nextAddress){case 1:return G=X.toDataURL(t.outputMimeType,1),z.yield(Ntv(G),2);case 2:y=z.yieldResult;_.CL(z,3);sor(t.imageChecker,y);_.zx(z,4);break;case 3:w=_.IY(z);if(!(w instanceof sB))throw w;_.Mj(new _.NJ("Output size is bigger than input size for image",t.mimeType,t.outputMimeType,y.size));G=X.toDataURL("image/jpeg",.95);return z.yield(Ntv(G),6);case 6:y=z.yieldResult;case 4:return z.return({dataUrl:G,
imageFile:y})}})};
_.H.handleUploadImageToScottyCommand=function(X){var t=this,G,y,w,z,B,V,b,e,g,F;return _.n(function(T){switch(T.nextAddress){case 1:if(!t.imageEditor||!_.Y(X,kmB))return T.return();G=_.Y(X,kmB).scottyUploadUrl;if(!G){var D=new _.NJ("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.xA(D);return T.return()}_.CL(T,2);t.setLoadingState();y=t.imageEditor.crop(!1,!1);return T.yield(t.convertToImageFormatBundle(y),4);case 4:return w=T.yieldResult,T.yield(cb4(w.imageFile,G),5);
case 5:z=T.yieldResult;((B=t.data)==null?0:B.onUploadEndpoint)?(V=t.buildUploadServiceEndpoint(z),t.ytComponentBehavior.resolveCommand(V),b=_.Y(V,_.Xs),((e=b)==null?0:e.params)?t.closePopup():t.resetFileSelector()):(_.sl(t.hostElement,"yt-image-updated-action",[w.dataUrl,z]),t.closePopup());_.zx(T,0);break;case 2:g=_.IY(T),t.setErrorState((F=t.data)==null?void 0:F.uploadErrorMessage),g instanceof Error?_.xA(g):(D=new _.NJ(JSON.stringify(g)),_.xA(D)),_.W$(T)}})};
_.H.buildUploadServiceEndpoint=function(X){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",X),this.data.onUploadEndpoint):null};
_.H.dataChanged=function(){var X=this,t;return _.n(function(G){if(G.nextAddress==1){if(!X.data||!X.canvasElement)return G.return();X.data.imageRatio&&X.data.minImageCropWidth||_.fh(new _.NJ("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));t=function(y,w){return X.data.imageType==="IMAGE_TYPE_AVATAR"?new lIr(y,w,X.data.imageRatio,[X.data.minImageCropWidth,X.data.minImageCropWidth/X.data.imageRatio],X.hostElement):new DK(y,w,X.data.imageRatio,[X.data.minImageCropWidth,
X.data.minImageCropWidth/X.data.imageRatio],void 0,X.hostElement,8,!1)};
X.imageEditorCanvas=new Dk4(X.canvasElement,t);return X.data.url?G.yield(qSR(X.imageEditorCanvas,X.data.url),3):(X.hideContainer=!0,X.openFileSelector(),G.jumpTo(0))}X.imageEditor=G.yieldResult;X.showPopup();X.addEventListeners(X.imageEditor);_.W$(G)})};
_.H.addEventListeners=function(X){this.removeEventListeners();var t=function(w){SSH(X,w)};
this.JSC$20624_mouseDownEvent=t;var G=function(w){hhr(X,w)};
this.JSC$20624_mouseMoveEvent=G;var y=function(){Z0R(X)};
this.JSC$20624_mouseUpEvent=y;this.topLeftCorner.addEventListener("mousedown",t);this.topLeftCorner.addEventListener("mousemove",G);this.topLeftCorner.addEventListener("mouseup",y);this.topRightCorner.addEventListener("mousedown",t);this.topRightCorner.addEventListener("mousemove",G);this.topRightCorner.addEventListener("mouseup",y);this.bottomLeftCorner.addEventListener("mousedown",t);this.bottomLeftCorner.addEventListener("mousemove",G);this.bottomLeftCorner.addEventListener("mouseup",y);this.bottomRightCorner.addEventListener("mousedown",
t);this.bottomRightCorner.addEventListener("mousemove",G);this.bottomRightCorner.addEventListener("mouseup",y)};
_.H.removeEventListeners=function(){this.JSC$20624_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20624_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20624_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20624_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20624_mouseDownEvent));this.JSC$20624_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20624_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20624_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20624_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20624_mouseMoveEvent));this.JSC$20624_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20624_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20624_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20624_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20624_mouseUpEvent))};
_.H.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var X=document.activeElement;X&&X.shadowRoot&&X.shadowRoot.activeElement;)X=X.shadowRoot.activeElement;switch(X){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};
_.H.updatePositionOfCorner=function(X,t){var G=X.y-t.offsetHeight/2+4;t.style.left=X.x-t.offsetWidth/2+16+"px";t.style.top=G+"px"};
_.H.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var X=_.J([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),t=X.next();!t.done;t=X.next()){t=t.value;var G=uTQ(this.imageEditor,t.corner);this.updatePositionOfCorner(G,t.div)}};
_.H.onLeft=function(X){this.imageEditor&&this.setFocusInImageEditor()&&(IIr(this.imageEditor,0),this.updatePositionOfAllCorners(),X.preventDefault())};
_.H.onRight=function(X){this.imageEditor&&this.setFocusInImageEditor()&&(IIr(this.imageEditor,1),this.updatePositionOfAllCorners(),X.preventDefault())};
_.H.onUp=function(X){this.imageEditor&&this.setFocusInImageEditor()&&(IIr(this.imageEditor,2),this.updatePositionOfAllCorners(),X.preventDefault())};
_.H.onDown=function(X){this.imageEditor&&this.setFocusInImageEditor()&&(IIr(this.imageEditor,3),this.updatePositionOfAllCorners(),X.preventDefault())};
_.H.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.ke.Object.defineProperties(SL.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&fIT.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var X,t,G;((t=this.data)==null?0:t.imageRatio)&&((G=this.data)==null?0:G.minImageCropWidth)?X={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:X=xkT;return new YSr(X)}}});
SL.prototype.updatePositionOfAllCorners=SL.prototype.updatePositionOfAllCorners;SL.prototype.dataChanged=SL.prototype.dataChanged;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],SL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],SL.prototype,"ytComponentBehavior",void 0);_.E([_.q(_.NN),_.U("design:type",Object)],SL.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.rt("#canvas"),_.U("design:type",HTMLCanvasElement)],SL.prototype,"canvasElement",void 0);_.E([_.rt("#file-selector"),_.U("design:type",HTMLInputElement)],SL.prototype,"fileSelector",void 0);_.E([_.rt("#top-left-corner"),_.U("design:type",HTMLDivElement)],SL.prototype,"topLeftCorner",void 0);_.E([_.rt("#top-right-corner"),_.U("design:type",HTMLDivElement)],SL.prototype,"topRightCorner",void 0);
_.E([_.rt("#bottom-left-corner"),_.U("design:type",HTMLDivElement)],SL.prototype,"bottomLeftCorner",void 0);_.E([_.rt("#bottom-right-corner"),_.U("design:type",HTMLDivElement)],SL.prototype,"bottomRightCorner",void 0);_.E([_.K(),_.U("design:type",Object)],SL.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],SL.prototype,"errorMessage",void 0);_.E([_.K(),_.U("design:type",Object)],SL.prototype,"isLoading",void 0);_.E([_.K(),_.U("design:type",Object)],SL.prototype,"hideContainer",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.U("design:type",Boolean)],SL.prototype,"isPlaylistThumbnail",void 0);_.E([_.U0("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype",Promise)],SL.prototype,"dataChanged",null);_.E([_.WW("image-updated"),_.WW("yt-refit"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],SL.prototype,"updatePositionOfAllCorners",null);
_.E([_.$F({is:"yt-image-editor-renderer",disableElementRegistration:!0})],SL);
_.N(SL,"yt-image-editor-renderer",function(){if(TZB===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Fv2===void 0&&(Fv2=document.createElement("template"));var y=Fv2;G.call(t,y.content.cloneNode(!0),X.content.firstChild);TZB=X}X=TZB;return X},{mode:2});var MRT;var XXH;var hT=function(){return _.O.apply(this,arguments)||this};
_.S(hT,_.O);hT.prototype.updateMinutesFromBinding=function(X){this.handleMinutesChanged&&this.handleMinutesChanged(X)};
hT.prototype.updateSecondsFromBinding=function(X){this.handleSecondsChanged&&this.handleSecondsChanged(X)};
hT.prototype.updateDescriptionFromBinding=function(X){this.handleDescriptionChanged&&this.handleDescriptionChanged(X)};
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],hT.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],hT.prototype,"data",void 0);_.E([_.K(),_.U("design:type",String)],hT.prototype,"minutes",void 0);_.E([_.K(),_.U("design:type",String)],hT.prototype,"seconds",void 0);_.E([_.K(),_.U("design:type",String)],hT.prototype,"description",void 0);_.E([_.K(),_.U("design:type",Function)],hT.prototype,"handleMinutesChanged",void 0);
_.E([_.K(),_.U("design:type",Function)],hT.prototype,"handleSecondsChanged",void 0);_.E([_.K(),_.U("design:type",Function)],hT.prototype,"handleDescriptionChanged",void 0);_.E([_.K(),_.U("design:type",Number)],hT.prototype,"characterLimit",void 0);_.E([_.K(),_.U("design:type",Number)],hT.prototype,"textNumRows",void 0);_.E([_.$F({is:"yt-report-details-form-content",disableElementRegistration:!0})],hT);
_.N(hT,"yt-report-details-form-content",function(){if(XXH===void 0){var X=document.createElement("template");_.Z(X,'\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>');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;MRT===void 0&&(MRT=document.createElement("template"));var y=MRT;G.call(t,y.content.cloneNode(!0),X.content.firstChild);XXH=X}X=XXH;return X},{mode:2});var $fQ;var t3N;var ZK=function(){var X=_.O.apply(this,arguments)||this;X.updateMinutesFromBinding=function(t){X.minutes=t.detail.value};
X.updateSecondsFromBinding=function(t){X.seconds=t.detail.value};
X.updateDescriptionFromBinding=function(t){X.description=t.detail.value};
return X};
_.S(ZK,_.O);_.H=ZK.prototype;_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.H.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"}}}};
_.H.ready=function(){_.Sm(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.H.onSubmitYtAction=function(X){var t=X.detail;t.actionName==="yt-service-request"&&(t=t.args[1],t.flagEndpoint&&(X.stopPropagation(),this.refireAction(t)))};
_.H.refireAction=function(X){var t={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(t.vss_id=this.vssId);_.hE(this.hostElement,[X,t]);this.submitDisabled=!0};
_.H.dataChanged=function(){var X=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var t=_.sW();t&&t.getPlayerPromise().then(function(G){var y=G.getOption("cc","track")||G.getOption("captions","track");y&&(X.vssId=y.vss_id);G=G.getCurrentTime();X.minutes=Math.floor(G/60).toString();X.seconds=(Math.floor(G)%60).toString()})};
_.H.updateSubmitButtonState=function(){var X;((X=this.data)==null?0:X.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==="")};
_.H.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.H.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.ke.Object.defineProperties(ZK.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.textNumRows)||4}}});
ZK.prototype.onYtServiceRequestError=ZK.prototype.onYtServiceRequestError;ZK.prototype.onYtServiceRequestCompleted=ZK.prototype.onYtServiceRequestCompleted;ZK.prototype.updateSubmitButtonState=ZK.prototype.updateSubmitButtonState;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);
_.E([_.K({observer:"dataChanged"}),_.U("design:type",Object)],ZK.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Boolean)],ZK.prototype,"submitDisabled",void 0);_.E([_.K(),_.U("design:type",String)],ZK.prototype,"minutes",void 0);_.E([_.K(),_.U("design:type",String)],ZK.prototype,"seconds",void 0);_.E([_.K(),_.U("design:type",String)],ZK.prototype,"description",void 0);_.E([_.K(),_.U("design:type",String)],ZK.prototype,"vssId",void 0);
_.E([_.K({value:_.Md("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.U("design:type",Boolean)],ZK.prototype,"isMusic",void 0);_.E([_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],ZK.prototype,"characterLimit",null);_.E([_.C("data"),_.U("design:type",Number),_.U("design:paramtypes",[])],ZK.prototype,"textNumRows",null);
_.E([_.U0("minutes","seconds","description","submitDisabled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ZK.prototype,"updateSubmitButtonState",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ZK.prototype,"onYtServiceRequestCompleted",null);
_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],ZK.prototype,"onYtServiceRequestError",null);_.E([_.$F({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],ZK);
_.N(ZK,"yt-report-details-form-renderer",function(){if(t3N===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;$fQ===void 0&&($fQ=document.createElement("template"));var y=$fQ;G.call(t,y.content.cloneNode(!0),X.content.firstChild);t3N=X}X=t3N;return X});var Gov;var yF4;var wXv;var zWH;var qp=function(){return _.O.apply(this,arguments)||this};
_.S(qp,_.O);
qp.prototype.onCheckedChanged_=function(){if(this.data){var X=_.Sm(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.sl(this.hostElement,"yt-additional-detail-checkbox-update",[X]):this.data.identifier==="yt-hide-user-checkbox"?_.sl(this.hostElement,"yt-hide-user-checkbox-update",[X]):X&&this.data.enableCommand?_.sl(this.hostElement,"yt-modify-report-form-command",[_.Y(this.data.enableCommand,A_i)]):!X&&this.data.disableCommand&&_.sl(this.hostElement,
"yt-modify-report-form-command",[_.Y(this.data.enableCommand,A_i)])}};
qp.prototype.onLabelTap_=function(X){X.target.tagName!="A"&&(_.Sm(this.hostElement).querySelector("#checkbox").checked=!_.Sm(this.hostElement).querySelector("#checkbox").checked)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],qp.prototype,"data",void 0);_.E([_.$F({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],qp);
_.N(qp,"yt-boolean-form-field-v2-renderer",function(){if(zWH===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;wXv===void 0&&(wXv=document.createElement("template"));var y=wXv;G.call(t,y.content.cloneNode(!0),X.content.firstChild);zWH=X}X=zWH;return X});var CJ=function(){var X=_.O.apply(this,arguments)||this;X.canShowAdditionalDetailCheckbox=!1;X.canShowCheckbox=!1;X.keepDropdownFocusedAfterSelection=!0;return X};
_.S(CJ,_.O);CJ.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}}}}};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],CJ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],CJ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.K(),_.U("design:type",Object)],CJ.prototype,"canShowCheckbox",void 0);_.E([_.K(),_.U("design:type",Object)],CJ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.$F({is:"yt-report-form-modal-content",disableElementRegistration:!0})],CJ);
_.N(CJ,"yt-report-form-modal-content",function(){if(yF4===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Gov===void 0&&(Gov=document.createElement("template"));var y=Gov;G.call(t,y.content.cloneNode(!0),X.content.firstChild);yF4=X}X=yF4;return X},{mode:2});var HAT;var o2B;var KJ=function(){var X=_.O.apply(this,arguments)||this;X.submitting=!1;X.submitButtonDisabled=!0;X.command=null;X.canShowCheckbox=!1;X.canShowAdditionalDetailCheckbox=!1;X.canShowNextButton=!1;X.additionalDetailCheckboxChecked=!1;X.refitJob=0;X.keepDropdownFocusedAfterSelection=!0;X.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 X};
_.S(KJ,_.O);_.H=KJ.prototype;_.H.created=function(){this.refitJob=0};
_.H.attached=function(){this.JSC$20647_scroller&&(this.JSC$20647_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20647_scroller.attached&&typeof this.JSC$20647_scroller.attached==="function"&&this.JSC$20647_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.dataChanged=function(X){X&&(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,X.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),X.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.H.onYtPopupOpened=function(){var X=_.sW();X&&X.getPlayerPromise().then(function(t){t.pauseVideo()})};
_.H.onYtNavigate=function(X){_.Y(X.detail.endpoint,_.w64)&&(X.stopPropagation(),this.hideReportForm=!0)};
_.H.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.H.onYtServiceRequestCompleted=function(X,t){var G=t.actions;if(G){if(G.length===1&&_.Y(G[0],_.Cq)){var y;G=((y=_.Y(G[0],_.Cq))==null?void 0:y.commands)||[]}y=0;for(var w=G.length;y<w;y++)_.Y(G[y],_.iY)&&(X.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(G[y]))}if(t.data&&(X=this.get("feedbackResponses",t.data)))for(t=0;t<X.length;t++)if(X[t].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.H.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.H._onDescendantIronResize=function(X){X.stopPropagation();return!1};
_.H.handleReportFormEndpointUpdateAction=function(X){if(X.submitEndpoint){var t=this.command=X.submitEndpoint;t=_.Y(t,_.$TB);if(t==null?0:t.additionalDetailCheckboxChecked)t.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else X.submitNavigationEndpoint?(this.command=X.submitNavigationEndpoint,this.toggleSubmitButton(!1)):X.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:X.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;X.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",X));this.refit()};
_.H.handleConfirmDialogCloseAction=function(X){X.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.H.submitButtonDisabledChanged=function(){var X=this.hostElement.parentElement;X&&X.invalidateTabbables&&X.invalidateTabbables()};
_.H.handleModifyReportFormCommand=function(X){X=this.get("action",X);X==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:X==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:X==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:X==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:X==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:X==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.H.updateDialogStyling=function(){var X,t,G,y,w,z=((w=(X=this.data)==null?void 0:(t=X.optionsSupportedRenderers)==null?void 0:(G=t.optionsRenderer)==null?void 0:(y=G.items)==null?void 0:y.length)!=null?w:0)<=2?0:240;_.Kd(this.hostElement,{"--yt-report-form-modal-renderer-min-width":z+"px"})};
_.H.toggleSubmitButton=function(X){this.submitButtonDisabled=!X;this.submitButtonDisabled=X};
_.H.computeSubmitButtonData=function(X,t){var G={};_.Y(t,_.w64)?G.navigationEndpoint=t:G.command=t||void 0;X&&X.buttonRenderer&&_.RH.extend(G,X.buttonRenderer);return G};
_.H.computeNextButtonData=function(X,t){var G={};if(!X||!X.buttonRenderer)return G;_.RH.extend(G,X.buttonRenderer);if(!t)return G;if(_.Y(t,_.w64))G.navigationEndpoint=c4q(t);else if(G.command=c4q(t),X=_.Y(G.command,_.$TB))X.legalCheckboxChecked=!0;return G};
_.H.computeShowNextButton=function(X,t,G){return!!X&&t&&G};
_.H.refit=function(){var X=this;this.refitJob||(this.refitJob=_.vz.addLowPriorityJob(function(){_.Yt(X.hostElement,"yt-refit");X.refitJob=0}))};
_.H.handleAdditionalDetailCheckboxUpdateAction=function(X){this.additionalDetailCheckboxChecked=X;_.Y(this.command,_.$TB).additionalDetailCheckboxChecked=X};
_.ke.Object.defineProperties(KJ,{template:{configurable:!0,enumerable:!0,get:function(){if(o2B===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;HAT===void 0&&(HAT=document.createElement("template"));var y=HAT;G.call(t,y.content.cloneNode(!0),X.content.firstChild);o2B=X}X=o2B;return X}}});
KJ.prototype.onYtServiceRequestError=KJ.prototype.onYtServiceRequestError;KJ.prototype.onYtServiceRequestCompleted=KJ.prototype.onYtServiceRequestCompleted;KJ.prototype.onYtServiceRequestSent=KJ.prototype.onYtServiceRequestSent;KJ.prototype.onYtNavigate=KJ.prototype.onYtNavigate;KJ.prototype.onYtPopupOpened=KJ.prototype.onYtPopupOpened;_.E([_.q(_.cr.YtOpenPopupBehavior),_.U("design:type",Object)],KJ.prototype,"openPopupBehavior",void 0);
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],KJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],KJ.prototype,"eventForwardingBehavior",void 0);_.E([_.q(_.ax),_.U("design:type",Object)],KJ.prototype,"ironResizableBehavior",void 0);_.E([_.K({observer:"dataChanged"}),_.U("design:type",Object)],KJ.prototype,"data",void 0);
_.E([_.K(),_.U("design:type",Object)],KJ.prototype,"submitting",void 0);_.E([_.K({observer:"submitButtonDisabledChanged"}),_.U("design:type",Object)],KJ.prototype,"submitButtonDisabled",void 0);_.E([_.K(),_.U("design:type",Object)],KJ.prototype,"command",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],KJ.prototype,"hideReportForm",void 0);_.E([_.K(),_.U("design:type",Object)],KJ.prototype,"canShowCheckbox",void 0);
_.E([_.K(),_.U("design:type",Object)],KJ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.K(),_.U("design:type",Object)],KJ.prototype,"canShowNextButton",void 0);_.E([_.K(),_.U("design:type",Object)],KJ.prototype,"additionalDetailCheckboxChecked",void 0);_.E([_.K(),_.U("design:type",Object)],KJ.prototype,"refitJob",void 0);_.E([_.K(),_.U("design:type",Object)],KJ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.rt("#scroller"),_.U("design:type",Object)],KJ.prototype,"JSC$20647_scroller",void 0);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],KJ.prototype,"onYtPopupOpened",null);_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],KJ.prototype,"onYtNavigate",null);
_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],KJ.prototype,"onYtServiceRequestSent",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],KJ.prototype,"onYtServiceRequestCompleted",null);
_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],KJ.prototype,"onYtServiceRequestError",null);_.E([_.$F({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],KJ);var JF4;var B32;var OB=function(){return _.O.apply(this,arguments)||this};
_.S(OB,_.O);_.H=OB.prototype;_.H.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.H.onVisible=function(){var X,t;(t=_.gw().resolve(_.jH(_.WT)))==null||t.enqueue({label:_.bu((X=this.data)==null?void 0:X.messageTitle),elementToFocus:this.hostElement})};
_.H.onThumbnailLoaded=function(){_.Yt(this.hostElement,"yt-refit")};
_.H.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.H.computeAlternateIcon=function(X){return X?X==="BACKSTAGE_ARTWORK"?"backstage:artwork":X:null};
_.H.computeFontFamily=function(X){return X==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.H.computeBackgroundStyle=function(X,t){if(X=this.computeBackgroundImage(X,t))if(X=_.hH(X.thumbnails))return'background-image: url("'+X+'");'};
_.H.computeHasFullHeightImage=function(X){return!(!(X&&X.thumbnails&&X.thumbnails.length>0)||this.modern)};
_.H.isModernStyle=function(X){return X.style==="STYLE_MODERN"};
_.H.computeIcon=function(X,t){if(X&&X.icon)return t?X.iconDark:X.icon};
_.H.computeBackgroundImage=function(X,t){if(X&&X.backgroundImage)return t?X.backgroundImageDark:X.backgroundImage};
_.H.computeLogo=function(X,t){if(X&&X.logo)return t?X.logoDark:X.logo};
_.H.computeShouldShowModernIcon=function(X,t){return X&&!!t};
_.H.getLogoContainerClassName=function(X){return this.logoWithPadding(X)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.H.getLogoImageId=function(X){return this.logoWithPadding(X)?"mealbar-logo-with-padding":"mealbar-logo"};
_.H.logoWithPadding=function(X){var t,G,y;return(X=(t=this.computeLogo(X,this.isDarkTheme))==null?void 0:(G=t.thumbnails)==null?void 0:(y=G[0])==null?void 0:y.height)&&X%31===0?!0:!1};
OB.prototype.onThumbnailLoaded=OB.prototype.onThumbnailLoaded;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.E([_.K({}),_.U("design:type",Object)],OB.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.U("design:type",Boolean)],OB.prototype,"modern",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],OB.prototype,"isDarkTheme",void 0);
_.E([_.K({computed:"computeIcon(data, isDarkTheme)"}),_.U("design:type",Object)],OB.prototype,"icon",void 0);_.E([_.K({computed:"computeLogo(data, isDarkTheme)"}),_.U("design:type",Object)],OB.prototype,"logo",void 0);_.E([_.K({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.U("design:type",Object)],OB.prototype,"backgroundStyle",void 0);_.E([_.K({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.U("design:type",Object)],OB.prototype,"alternateIcon",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.U("design:type",Boolean)],OB.prototype,"hasFullHeightImage",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.U("design:type",Boolean)],OB.prototype,"useYoutubeSans",void 0);_.E([_.K({computed:"computeShouldShowModernIcon(modern, icon)"}),_.U("design:type",Boolean)],OB.prototype,"shouldShowModernIcon",void 0);
_.E([_.WW("yt-img-shadow-loaded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],OB.prototype,"onThumbnailLoaded",null);_.E([_.$F({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],OB);
_.N(OB,"yt-mealbar-promo-renderer",function(){if(B32===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;JF4===void 0&&(JF4=document.createElement("template"));var y=JF4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);B32=X}X=B32;return X},{mode:2});var n2R;var V3B;var uU=function(){return _.O.apply(this,arguments)||this};
_.S(uU,_.O);_.H=uU.prototype;_.H.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]]"}}}}}};
_.H.computeHasButtons_=function(X){return!(!X.dismissButton&&!X.acceptButton)};
_.H.computeStyle_=function(X){return X||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.H.observeImpressionEndpoints_=function(){var X=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;_.hE(X.hostElement,[t])})};
_.H.onTap_=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
uU.prototype.observeImpressionEndpoints_=uU.prototype.observeImpressionEndpoints_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],uU.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],uU.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],uU.prototype,"positionType",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.U("design:type",Boolean)],uU.prototype,"hasButtons_",void 0);_.E([_.K({value:function(){return this.onTap_.bind(this)}}),
_.U("design:type",Function)],uU.prototype,"boundOnTap_",void 0);_.E([_.K({value:{style:"mono-inverse"}}),_.U("design:type",Object)],uU.prototype,"buttonOverride",void 0);_.E([_.cW("data.promoConfig.impressionEndpoints"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],uU.prototype,"observeImpressionEndpoints_",null);_.E([_.$F({is:"yt-tooltip-renderer",disableElementRegistration:!0})],uU);
_.N(uU,"yt-tooltip-renderer",function(){if(V3B===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;n2R===void 0&&(n2R=document.createElement("template"));var y=n2R;G.call(t,y.content.cloneNode(!0),X.content.firstChild);V3B=X}X=V3B;return X},{mode:2});var bAN;var koi;var dfV={},eWR=(dfV.WEB_REMIX="music.youtube.com",dfV),QZ=function(){var X=_.O.apply(this,arguments)||this;X.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return X};
_.S(QZ,_.O);_.H=QZ.prototype;_.H.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.created=function(){this.embedHost_=eWR[_.Md("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.H.ready=function(){_.Sm(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.H.computeEmbedCode_=function(X,t,G,y,w){if(!X)return"";var z=X.videoId,B=X.fullListId,V=[];X.attributionId&&V.push("si="+X.attributionId);y||V.push("controls=0");G&&Number(t)>0&&V.push("start="+t);B&&(z="videoseries",V.push("list="+B));G="https://"+(w?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+z;X.clipId&&(V.push("clip="+X.clipId),V.push("clipt="+X.clipTiming));t=V.length>0?G+"?"+V.join("&amp;"):G;X.encryptedEmbedConfig&&V.push("embed_config="+JSON.stringify({enc:X.encryptedEmbedConfig}));
V=V.length>0?G+"?"+V.join("&amp;"):G;_.A("web_sharing_embed_preview_killswitch")?_.Sm(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(V,X.previewWidth||854,X.previewHeight||480):(_.lM(this.videoPreviewContainer),_.Sm(this.videoPreviewContainer).appendChild(this.buildIframeElement(V)));return this.getEmbedCode_(t,X.width||560,X.height||315)};
_.H.buildIframeElement=function(X){var t=document.createElement("iframe"),G,y;t.width=""+((y=(G=this.data)==null?void 0:G.previewWidth)!=null?y:854);var w,z;t.height=""+((z=(w=this.data)==null?void 0:w.previewHeight)!=null?z:480);_.i1A(t,2,X);t.title="YouTube video player";t.frameBorder="0";t.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";t.referrerPolicy="strict-origin-when-cross-origin";t.allowFullscreen=!0;return t};
_.H.computeIsSquareAspectRatio_=function(X){return X.previewHeight&&X.previewWidth?X.previewHeight==X.previewWidth:!1};
_.H.computeShowEmbedOptions_=function(X){return!!X.enablePrivacyModeOptionLabel||!!X.showPlayerControlsOptionLabel};
_.H.getEmbedCode_=function(X,t,G){return'<iframe width="'+t+'" height="'+G+'" src="'+X+'" 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>'};
_.H.handleSignalActionCopyShareEmbedUrl_=function(){_.Sm(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.H.handleSetTimestamp_=function(X){this.startAtTimeStamp_=(this.startAtChecked_=X.isSet)?X.timestamp:0};
_.H.closePanel_=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.H.onEmbedCode_=function(){_.Sm(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.H.onYtPopupClosed_=function(){_.lM(_.Sm(this.hostElement).querySelector("#video-preview"))};
_.H.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.Y(this.data.actionButtons[0],_.G4)&&this.ytRendererBehavior.logExplicitClick(_.Y(this.data.actionButtons[0],_.G4))};
QZ.prototype.onYtPopupClosed_=QZ.prototype.onYtPopupClosed_;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],QZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],QZ.prototype,"data",void 0);
_.E([_.K({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.U("design:type",String)],QZ.prototype,"embedCode_",void 0);_.E([_.K({value:!0}),_.U("design:type",Boolean)],QZ.prototype,"isPlayerControlsOptionChecked_",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],QZ.prototype,"isPrivacyModeOptionChecked_",void 0);_.E([_.K({value:!1,notify:!0}),_.U("design:type",Boolean)],QZ.prototype,"startAtChecked_",void 0);
_.E([_.K({value:0}),_.U("design:type",Number)],QZ.prototype,"startAtTimeStamp_",void 0);_.E([_.K({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],QZ.prototype,"isSquareAspectRatio_",void 0);_.E([_.rt("#video-preview"),_.U("design:type",HTMLElement)],QZ.prototype,"videoPreviewContainer",void 0);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],QZ.prototype,"onYtPopupClosed_",null);
_.E([_.$F({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],QZ);
_.N(QZ,"yt-sharing-embed-renderer",function(){if(koi===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;bAN===void 0&&(bAN=document.createElement("template"));var y=bAN;G.call(t,y.content.cloneNode(!0),X.content.firstChild);koi=X}X=koi;return X},{mode:2});var jbV={};
jbV.YtUnlimitedFamilyInterstitialBehavior=[_.cr.YtOpenPopupBehavior,_.sb.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(X){X=_.bTq(_.k3(X),"yt-button-renderer");return X?X.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(X){this.dialogHistory_.push(X)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var X=this.popFromHistory();if(X){var t={openPopupAction:{popupType:"DIALOG",popup:{}}};t.openPopupAction.popup[X.renderer]=X.data;this.showingPreviousDialog_=!0;this.openPopup(t)}},
handleOpenPopupAction_:function(X){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var t=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(y){return!!X.openPopupAction.popup[y]}),G=this.getElementName_();
t&&this.data&&(this.pushToHistory({renderer:G,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(X){if(X=_.Y(X,aGH))this.loading=!0,_.sl(this.hostElement,"yt-open-create-family-dialog",[X,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var X=this.hostElement.nodeName.split("-").slice(1).map(function(t){return""+t[0].toUpperCase()+t.slice(1).toLowerCase()}).join("");
return X[0].toLowerCase()+X.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var g2B;var F8q;var Ir=function(){return _.O.apply(this,arguments)||this};
_.S(Ir,_.O);_.H=Ir.prototype;_.H.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}}}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.sl(this.hostElement,"yt-register-create-family-dialog");_.Sm(this.hostElement).querySelector("#thumbnail").onShow()};
_.H.fireOnCloseCommand_=function(){var X;((X=this.data)==null?0:X.onCloseCommand)&&_.Z0(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.H.onYtServiceRequestSent_=function(X,t){t&&t.endpoint&&_.Y(t.endpoint,_.Ol)||(this.loading=!0)};
_.H.onYtServiceRequestCompleted_=function(){var X=this.hostElement.parentElement;X.close&&X.close();this.loading=!1};
_.H.openPopupHandler_=function(X){if(X.detail==this){var t;((t=this.data)==null?0:t.onOpenCommands)&&_.Z0(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.H.closePopupHandler_=function(X,t){this.fireOnCloseCommand_();if(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1){var G;((G=this.data)==null?0:G.onDismissCommands)&&_.Z0(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.H.dataChanged_=function(){this.loading=!1};
Ir.prototype.dataChanged_=Ir.prototype.dataChanged_;Ir.prototype.closePopupHandler_=Ir.prototype.closePopupHandler_;Ir.prototype.openPopupHandler_=Ir.prototype.openPopupHandler_;Ir.prototype.onYtServiceRequestCompleted_=Ir.prototype.onYtServiceRequestCompleted_;Ir.prototype.onYtServiceRequestSent_=Ir.prototype.onYtServiceRequestSent_;_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Ir.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(jbV.YtUnlimitedFamilyInterstitialBehavior),_.U("design:type",Object)],Ir.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Ir.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Ir.prototype,"loading",void 0);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],Ir.prototype,"onYtServiceRequestSent_",null);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],Ir.prototype,"onYtServiceRequestCompleted_",null);
_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Ir.prototype,"openPopupHandler_",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Ir.prototype,"closePopupHandler_",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Ir.prototype,"dataChanged_",null);
_.E([_.$F({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Ir);
_.N(Ir,"yt-unlimited-family-message-interstitial-renderer",function(){if(F8q===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;g2B===void 0&&(g2B=document.createElement("template"));var y=g2B;G.call(t,y.content.cloneNode(!0),X.content.firstChild);F8q=X}X=F8q;return X},{mode:2});var T3H;var AF4;var WL=function(){return _.O.apply(this,arguments)||this};
_.S(WL,_.O);WL.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"}}}};
WL.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Sm(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(X){X.onShow()});
_.Sm(this.hostElement).querySelector("#main-thumbnail").onShow()};
WL.prototype.onButtonTap_=function(X){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(X)};
WL.prototype.computeMainThumbnailWidth_=function(X){return X&&X.length!==0?72:96};
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.E([_.q(jbV.YtUnlimitedFamilyInterstitialBehavior),_.U("design:type",Object)],WL.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],WL.prototype,"data",void 0);
_.E([_.K({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.U("design:type",Number)],WL.prototype,"mainThumbnailWidth_",void 0);_.E([_.K({value:function(){return this.onButtonTap_.bind(this)}}),
_.U("design:type",Function)],WL.prototype,"boundButtonTap_",void 0);_.E([_.$F({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],WL);
_.N(WL,"yt-unlimited-family-profile-interstitial-renderer",function(){if(AF4===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;T3H===void 0&&(T3H=document.createElement("template"));var y=T3H;G.call(t,y.content.cloneNode(!0),X.content.firstChild);AF4=X}X=AF4;return X},{mode:2});var YgB;var sbi;var cL=function(){var X=_.O.apply(this,arguments)||this;X.sliderAriaValueText_=null;X.selectedIndex_=0;X.messages={PAUSE_SLIDER:_.Qf("PAUSE_SLIDER",void 0,"Pause Duration")};return X};
_.S(cL,_.O);_.H=cL.prototype;_.H.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_]]"}}}}}};
_.H.onPopupOpened_=function(X){X.detail==this&&_.A("enable_premium_voluntary_pause")&&(_.sl(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.setDialogData=function(X){this.data=X;this.resetSlider_()};
_.H.dataChanged_=function(){this.data&&this.resetSlider_()};
_.H.onSubmitTap_=function(){if(this.data.confirmCommand){var X=this.data.confirmCommand;_.Y(X,_.TG4)&&_.hE(this.hostElement,[X,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.H.onExitButtonTap_=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.H.closePopupHandler_=function(X,t){(t&&t.canceled===!0||t.canceled===!1&&t.confirmed===!1)&&this.handleOnDismissCommands_()};
_.H.onSliderChange_=function(){this.selectedIndex_=_.Sm(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.H.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.H.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.H.resetSlider_=function(){if(this.data){var X=this.data.defaultEndOptionIndex||0,t=_.Sm(this.hostElement).querySelector("#id-pause-slider");if(t.immediateValue<X)for(;t.immediateValue!=X;)t.increment();else if(X<t.immediateValue)for(;t.immediateValue!=X;)t.decrement();this.selectedIndex_=X;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.H.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Z0(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.H.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Z0(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.H.onYtServiceRequestSent=function(){this.loading=!0};
_.H.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
cL.prototype.onYtServiceRequestCompleted=cL.prototype.onYtServiceRequestCompleted;cL.prototype.onYtServiceRequestSent=cL.prototype.onYtServiceRequestSent;cL.prototype.closePopupHandler_=cL.prototype.closePopupHandler_;cL.prototype.dataChanged_=cL.prototype.dataChanged_;cL.prototype.onPopupOpened_=cL.prototype.onPopupOpened_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],cL.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],cL.prototype,"loading",void 0);_.E([_.K(),_.U("design:type",Number)],cL.prototype,"selectIndexMax_",void 0);_.E([_.K(),_.U("design:type",Object)],cL.prototype,"selectedData_",void 0);
_.E([_.K(),_.U("design:type",Object)],cL.prototype,"sliderAriaValueText_",void 0);_.E([_.K({value:function(){return this.onSubmitTap_.bind(this)}}),
_.U("design:type",Function)],cL.prototype,"onButtonTap_",void 0);_.E([_.K({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.U("design:type",Function)],cL.prototype,"onSecondaryTap_",void 0);_.E([_.K(),_.U("design:type",Object)],cL.prototype,"messages",void 0);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],cL.prototype,"onPopupOpened_",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],cL.prototype,"dataChanged_",null);
_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],cL.prototype,"closePopupHandler_",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],cL.prototype,"onYtServiceRequestSent",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],cL.prototype,"onYtServiceRequestCompleted",null);_.E([_.$F({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],cL);
_.N(cL,"yt-unplugged-pause-membership-dialog-renderer",function(){if(sbi===void 0){var X=document.createElement("template");_.Z(X,'\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>');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;YgB===void 0&&(YgB=document.createElement("template"));var y=YgB;G.call(t,y.content.cloneNode(!0),X.content.firstChild);sbi=X}X=sbi;return X},{mode:2});var Dfa;var SgV;var pJ=function(){return _.O.apply(this,arguments)||this};
_.S(pJ,_.O);pJ.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.$W("vcBalanceRenderer")}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],pJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],pJ.prototype,"data",void 0);_.E([_.$F({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],pJ);
_.N(pJ,"yt-vc-offer-layout-header-renderer",function(){if(SgV===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Dfa===void 0&&(Dfa=document.createElement("template"));var y=Dfa;G.call(t,y.content.cloneNode(!0),X.content.firstChild);SgV=X}X=SgV;return X},{mode:2});var hWr;var ZAH;var qgR;var CI4;var rc=function(){return _.O.apply(this,arguments)||this};
_.S(rc,_.O);rc.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ke.Object.defineProperties(rc.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)}}});
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.Icq.YtTappableItemBehavior),_.U("design:type",Object)],rc.prototype,"ytTappableItemBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],rc.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.C("data.accessibilityText"),_.U("design:type",String),_.U("design:paramtypes",[])],rc.prototype,"ariaLabel",null);_.E([_.K({reflectToAttribute:!0}),_.C("data.style"),_.U("design:type",String),_.U("design:paramtypes",[])],rc.prototype,"vcOfferStyle",null);_.E([_.C("data.style","data.titleText"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],rc.prototype,"showTitleText",null);_.E([_.$F({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],rc);
_.N(rc,"yt-vc-offer-renderer",function(){if(CI4===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;qgR===void 0&&(qgR=document.createElement("template"));var y=qgR;G.call(t,y.content.cloneNode(!0),X.content.firstChild);CI4=X}X=CI4;return X},{mode:2});var Np=function(){return _.O.apply(this,arguments)||this};
_.S(Np,_.O);Np.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}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Np.prototype,"data",void 0);_.E([_.$F({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Np);
_.N(Np,"yt-vc-offer-layout-renderer",function(){if(ZAH===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;hWr===void 0&&(hWr=document.createElement("template"));var y=hWr;G.call(t,y.content.cloneNode(!0),X.content.firstChild);ZAH=X}X=ZAH;return X},{mode:2});var K8R;var OAB;var uz2;var QbR;var PL=function(){return _.O.apply(this,arguments)||this};
_.S(PL,_.O);PL.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}}}}}};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],PL.prototype,"data",void 0);_.E([_.$F({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],PL);
_.N(PL,"yt-ypc-offers-modal-top-bar-renderer",function(){if(QbR===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;uz2===void 0&&(uz2=document.createElement("template"));var y=uz2;G.call(t,y.content.cloneNode(!0),X.content.firstChild);QbR=X}X=QbR;return X},{mode:2});var EB=function(){return _.O.apply(this,arguments)||this};
_.S(EB,_.O);EB.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"}}}}};
EB.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
EB.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var X=this.scrollable;X.attached&&typeof X.attached==="function"&&X.attached()};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.rt("#scrollable"),_.U("design:type",Object)],EB.prototype,"scrollable",void 0);_.E([_.K(),_.U("design:type",Object)],EB.prototype,"data",void 0);_.E([_.$F({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],EB);
_.N(EB,"yt-ypc-offers-modal-renderer",function(){if(OAB===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;K8R===void 0&&(K8R=document.createElement("template"));var y=K8R;G.call(t,y.content.cloneNode(!0),X.content.firstChild);OAB=X}X=OAB;return X},{mode:2});var IXH;var W8i;var UB=function(){return _.O.apply(this,arguments)||this};
_.S(UB,_.O);_.H=UB.prototype;_.H.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}}}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Sm(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.H.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.sl(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.H.onYtPopupOpened_=function(X,t){(t==null?void 0:t.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Z0(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.H.onYtPopupClosed_=function(X,t){this.continueButtonTapped||t&&(t.canceled===!0||t.canceled===!1&&t.confirmed===!1)&&this.data.onDismissCommands&&_.Z0(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.H.onYtServiceRequestError_=function(X){this.set("showSpinner",!1);_.F7(this.hostElement,X.detail.error.message)};
_.H.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.A("enable_ypc_spinners")?_.sl(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
UB.prototype.onYtServiceRequestError_=UB.prototype.onYtServiceRequestError_;UB.prototype.onYtPopupClosed_=UB.prototype.onYtPopupClosed_;UB.prototype.onYtPopupOpened_=UB.prototype.onYtPopupOpened_;UB.prototype.onYtServiceRequestCompleted_=UB.prototype.onYtServiceRequestCompleted_;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.U("design:type",Object)],UB.prototype,"data",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],UB.prototype,"showSpinner",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],UB.prototype,"continueButtonTapped",void 0);_.E([_.K({value:function(){return this.onContinueTapped_.bind(this)}}),
_.U("design:type",Function)],UB.prototype,"bindOnContinueTapped_",void 0);_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],UB.prototype,"onYtServiceRequestCompleted_",null);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],UB.prototype,"onYtPopupOpened_",null);
_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],UB.prototype,"onYtPopupClosed_",null);_.E([_.WW("yt-service-request-error"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],UB.prototype,"onYtServiceRequestError_",null);_.E([_.$F({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],UB);
_.N(UB,"yt-ypc-upgrade-dialog-renderer",function(){if(W8i===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;IXH===void 0&&(IXH=document.createElement("template"));var y=IXH;G.call(t,y.content.cloneNode(!0),X.content.firstChild);W8i=X}X=W8i;return X},{mode:2});var cF4;var pXi;var mc=function(){return _.O.apply(this,arguments)||this};
_.S(mc,_.O);mc.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
mc.prototype.computeHasButtons_=function(X){return!(!X.dismissButton&&!X.confirmButton)};
mc.prototype.computeStyle_=function(X){return X||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],mc.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],mc.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],mc.prototype,"positionType",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.U("design:type",Boolean)],mc.prototype,"hasButtons_",void 0);_.E([_.K({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.U("design:type",Boolean)],mc.prototype,"style_",void 0);_.E([_.$F({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],mc);
_.N(mc,"yt-bubble-hint-renderer",function(){if(pXi===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;cF4===void 0&&(cF4=document.createElement("template"));var y=cF4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);pXi=X}X=pXi;return X},{mode:2});var rFT;var N3N;var Rr=function(){var X=_.du.apply(this,arguments)||this;X.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return X};
_.S(Rr,_.du);_.H=Rr.prototype;_.H.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.H.attached=function(){var X=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){X.$.thumbnail.onShow();X.$["header-image"].onShow()})};
_.H.handleCheckBoxUpdateAction_=function(X){this.canShowCheckboxEnabledConfirmButton=X};
_.H.computeUseOverlayForSpinner_=function(X,t){return!!X&&t};
_.H.computeShowSpinner_=function(X,t){return X||!!t};
_.H.fireOnCloseActions_=function(){var X,t=_.J(((X=this.data)==null?void 0:X.onClosedActions)||[]);for(X=t.next();!X.done;X=t.next())this.ytRendererBehavior.resolveCommand(X.value)};
_.H.fireOnOpenCommands_=function(X){var t,G=(t=this.data)==null?void 0:t.onOpenCommands;if(G)for(X.stopImmediatePropagation(),X=_.J(G),t=X.next();!t.done;t=X.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.H.fireOnDismissCommands_=function(X){var t,G=(t=this.data)==null?void 0:t.onDismissCommands;if(G)for(X.stopImmediatePropagation(),X=_.J(G),t=X.next();!t.done;t=X.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.H.openPopupHandler_=function(X){X.detail==this&&this.fireOnOpenCommands_(X)};
_.H.closePopupHandler_=function(X,t){_.D0(this,"yt-confirm-dialog-close-action",[t]);this.fireOnCloseActions_();(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1)&&this.fireOnDismissCommands_(X)};
_.H.onHeaderImageChanged_=function(){var X;((X=this.data)==null?0:X.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.H.computeHasHeaderImageWidth_=function(X){return X!=void 0};
_.H.computeHasLoadingMessage=function(X){return!!X};
_.H.onHeaderImageWidthChanged_=function(){var X,t=(X=this.data)==null?void 0:X.headerImageWidth;if(t){if(X=1.25*t*2+t,this.$.main.style.width=X+"px",t=this.$.scroller.firstElementChild)t.style.minWidth=X+"px"}else this.$.main.style.width="100%"};
_.H.onThumbnailChanged_=function(){var X;((X=this.data)==null?0:X.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")};
_.H.onYtNavigate_=function(X){X=_.k3(X);X instanceof Node&&_.hb(this.$["confirm-button"]).contains(X)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.H.computePrimaryIsCancel_=function(X){return X};
_.H.computeIsCancelButtonHidden_=function(X){return X.skipCancelButton||!X.cancelButton};
_.H.computeIsCheckboxHidden_=function(X){return!X.checkbox};
_.H.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.H.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.H.onYtServiceRequestCompleted_=function(){var X;((X=this.data)==null?0:X.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.ke.Object.defineProperties(Rr,{template:{configurable:!0,enumerable:!0,get:function(){if(N3N===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;rFT===void 0&&(rFT=document.createElement("template"));var y=rFT;G.call(t,y.content.cloneNode(!0),X.content.firstChild);N3N=X}X=N3N;return X}}});
Rr.prototype.onYtServiceRequestCompleted_=Rr.prototype.onYtServiceRequestCompleted_;Rr.prototype.onYtServiceRequestSent_=Rr.prototype.onYtServiceRequestSent_;Rr.prototype.onThumbnailLoaded_=Rr.prototype.onThumbnailLoaded_;Rr.prototype.onYtNavigate_=Rr.prototype.onYtNavigate_;Rr.prototype.onThumbnailChanged_=Rr.prototype.onThumbnailChanged_;Rr.prototype.onHeaderImageWidthChanged_=Rr.prototype.onHeaderImageWidthChanged_;Rr.prototype.onHeaderImageChanged_=Rr.prototype.onHeaderImageChanged_;
Rr.prototype.closePopupHandler_=Rr.prototype.closePopupHandler_;Rr.prototype.openPopupHandler_=Rr.prototype.openPopupHandler_;_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Rr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);
_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Rr.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],Rr.prototype,"data",void 0);_.E([_.K({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.U("design:type",Boolean)],Rr.prototype,"primaryIsCancel",void 0);_.E([_.K({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.U("design:type",Boolean)],Rr.prototype,"isCancelButtonHidden",void 0);
_.E([_.K({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.U("design:type",Boolean)],Rr.prototype,"isCheckboxHidden",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Rr.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.E([_.K({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.U("design:type",Boolean)],Rr.prototype,"useOverlayForSpinner_",void 0);
_.E([_.K({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.U("design:type",Boolean)],Rr.prototype,"showSpinner_",void 0);_.E([_.K({value:!1}),_.U("design:type",Boolean)],Rr.prototype,"isActionInProgress_",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.U("design:type",Boolean)],Rr.prototype,"hasHeaderImageWidth_",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.U("design:type",Boolean)],Rr.prototype,"hasLoadingMessage",void 0);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Rr.prototype,"openPopupHandler_",null);_.E([_.WW("yt-popup-closed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Rr.prototype,"closePopupHandler_",null);
_.E([_.cW("data.headerImage"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rr.prototype,"onHeaderImageChanged_",null);_.E([_.cW("data.headerImageWidth"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rr.prototype,"onHeaderImageWidthChanged_",null);_.E([_.cW("data.thumbnail"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rr.prototype,"onThumbnailChanged_",null);
_.E([_.WW("yt-navigate"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Rr.prototype,"onYtNavigate_",null);_.E([_.WW("yt-img-shadow-loaded"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Rr.prototype,"onThumbnailLoaded_",null);_.E([_.WW("yt-service-request-sent"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.Bk]),_.U("design:returntype")],Rr.prototype,"onYtServiceRequestSent_",null);
_.E([_.WW("yt-service-request-completed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,_.g5]),_.U("design:returntype")],Rr.prototype,"onYtServiceRequestCompleted_",null);_.E([_.$F({is:"yt-confirm-dialog-renderer",noInjection:!0})],Rr);var PIN;var E2q;var iU=function(){return _.O.apply(this,arguments)||this};
_.S(iU,_.O);iU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Sm(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
iU.prototype.computeConfirmButton_=function(X){var t={text:X.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};X.confirmNavigationEndpoint?t.navigationEndpoint=X.confirmNavigationEndpoint:X.confirmServiceEndpoint&&(t.serviceEndpoint=X.confirmServiceEndpoint);return t};
iU.prototype.computeShowTitle_=function(X){return!(X==null||!X.title)};
_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],iU.prototype,"data",void 0);_.E([_.K({computed:"computeShowTitle_(data)"}),_.U("design:type",Boolean)],iU.prototype,"showTitle",void 0);_.E([_.$F({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],iU);
_.N(iU,"yt-fancy-dismissible-dialog-renderer",function(){if(E2q===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;PIN===void 0&&(PIN=document.createElement("template"));var y=PIN;G.call(t,y.content.cloneNode(!0),X.content.firstChild);E2q=X}X=E2q;return X});var Uf4;var mfa;var LJ=function(){var X=_.O.apply(this,arguments)||this;X.spinnerActive=!1;return X};
_.S(LJ,_.O);LJ.prototype.created=function(){ySH(2201)};
LJ.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
LJ.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
LJ.prototype.onIronOverlayClosed=LJ.prototype.onIronOverlayClosed;LJ.prototype.onIronOverlayOpened=LJ.prototype.onIronOverlayOpened;_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.BM),_.U("design:type",Object)],LJ.prototype,"tpYtIronOverlayBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],LJ.prototype,"data",void 0);_.E([_.K(),_.U("design:type",Object)],LJ.prototype,"spinnerActive",void 0);
_.E([_.WW("iron-overlay-opened"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],LJ.prototype,"onIronOverlayOpened",null);_.E([_.WW("iron-overlay-closed"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],LJ.prototype,"onIronOverlayClosed",null);_.E([_.$F({is:"yt-loading-renderer",disableElementRegistration:!0})],LJ);
_.N(LJ,"yt-loading-renderer",function(){if(mfa===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;Uf4===void 0&&(Uf4=document.createElement("template"));var y=Uf4;G.call(t,y.content.cloneNode(!0),X.content.firstChild);mfa=X}X=mfa;return X},{mode:2});var RWi;var iAR;var vL=function(){var X=_.O.apply(this,arguments)||this;X.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);X.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);X.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(vL,_.O);_.H=vL.prototype;_.H.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.H.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.H.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.H.openPopupHandler_=function(X){X.detail===this.hostElement&&this.hostElement.hidden&&_.sl(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.H.onDismissButtonTap_=function(){var X;this.closeOnDismissButton_.has(((X=this.data)==null?void 0:X.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.sl(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.H.onAcceptButtonTap_=function(){var X;this.closeOnAcceptButton_.has(((X=this.data)==null?void 0:X.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.sl(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.H.computeHasHeader_=function(X){return!!X.headerBackgroundImage};
_.H.computeLayoutStyle_=function(X){return X};
_.H.computePopupSize_=function(X){return X};
_.H.computeIconType_=function(X){return X.dialogIcon&&X.dialogIcon.iconType?X.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":X.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":X.dialogIcon.iconType:""};
_.H.computeIsLogo_=function(X){return!!X.dialogIcon&&!!X.dialogIcon.iconType&&(X.dialogIcon.iconType==="YOUTUBE_LOGO"||X.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||X.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.H.computeHasCustomLogo=function(X){return!(X==null||!X.headerForegroundImage)};
_.H.computeCustomLogo=function(X,t){if(X!=null&&X.headerForegroundImage)return X.headerForegroundImageDark?t?X.headerForegroundImageDark:X.headerForegroundImage:X.headerForegroundImage};
_.H.computeHeaderBackgroundImage=function(X,t){if(X!=null&&X.headerBackgroundImage)return t&&(X==null?0:X.headerBackgroundImageDark)?X.headerBackgroundImageDark:X.headerBackgroundImage};
_.H.shouldShowIconContainer=function(X,t){return X&&!t};
_.H.shouldShowNonYouTubeIcon=function(X,t){return!X&&!t};
_.H.getLogoImageId=function(X){var t,G,y;return(X=(t=this.computeCustomLogo(X,this.isDarkTheme))==null?void 0:(G=t.thumbnails)==null?void 0:(y=G[0])==null?void 0:y.height)&&X%31===0?"custom-logo-with-padding":"custom-logo"};
vL.prototype.openPopupHandler_=vL.prototype.openPopupHandler_;vL.prototype.dataChanged_=vL.prototype.dataChanged_;_.E([_.q(_.YZ.YtRendererstamperBehavior),_.U("design:type",Object)],vL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.U("design:type",Boolean)],vL.prototype,"isDarkTheme",void 0);
_.E([_.K({computed:"computeCustomLogo(data, isDarkTheme)"}),_.U("design:type",Object)],vL.prototype,"customLogo",void 0);_.E([_.K({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.U("design:type",Object)],vL.prototype,"headerBackgroundImage",void 0);_.E([_.K(),_.U("design:type",Object)],vL.prototype,"data",void 0);_.E([_.K({computed:"computeHasHeader_(data)"}),_.U("design:type",Boolean)],vL.prototype,"hasHeader",void 0);
_.E([_.K({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.U("design:type",Object)],vL.prototype,"layoutStyle",void 0);_.E([_.K({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.U("design:type",Object)],vL.prototype,"popupSize",void 0);_.E([_.K({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],vL.prototype,"hasLogo",void 0);
_.E([_.K({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.U("design:type",Boolean)],vL.prototype,"hasCustomLogo",void 0);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],vL.prototype,"dataChanged_",null);_.E([_.WW("yt-popup-opened"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],vL.prototype,"openPopupHandler_",null);
_.E([_.$F({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],vL);
_.N(vL,"yt-upsell-dialog-renderer",function(){if(iAR===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;RWi===void 0&&(RWi=document.createElement("template"));var y=RWi;G.call(t,y.content.cloneNode(!0),X.content.firstChild);iAR=X}X=iAR;return X},{mode:2});var L8V=_.Fp(function(X){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.k(_.d,{cond:X.title,then:function(t){return _.k("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},t)}}))},"Jg"),v2N=_.Fp(function(X){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.k(_.M7,{data:X.closeButton},{buttonViewModel:function(t){return _.k("div",null,_.k(_.QK,{data:t.data}))}}))},"Kg"),aXN=_.Fp(function(X){var t=
X.data;
return _.k(_.gn,null,_.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.k(_.d,{cond:function(){return!!t().image&&!!t().title},
then:function(){return _.k(_.gr,{data:function(){return t().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.k(_.d,{cond:function(){return t().title},
then:function(G){return _.k("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},G)}}),_.k(_.d,{cond:function(){return t().primaryGenre},
then:function(G){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},G)}}))),_.k(_.d,{cond:function(){var G=t().description;
return G&&G.length<=150},
then:function(){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return t().description}))}}))},"Lg"),lXi=_.Fp(function(X){X=X.infoRows;
var t=_.gw().resolve(_.w$),G=_.A("enable_displaying_ppn");return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.k(_.pY,{each:X},function(y){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.k(_.d,{cond:function(){return y.label},
then:function(w){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},w)}}),_.k(_.d,{cond:function(){return y.attributedLabel},
then:function(w){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.k(_.eh,{text:w,noPreWrap:!0}))}}),_.k(_.d,{cond:function(){return y.value},
then:function(w){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},w)}}),_.k(_.d,{cond:function(){return y.attributedValue},
then:function(w){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.k(_.eh,{text:w,noPreWrap:!0}))}}))}),_.k(_.d,{cond:function(){return G&&t.clientData.has("post_play_nonce")},
then:function(){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},t.getData("post_play_nonce")))}}))},"Mg"),xfa=_.Fp(function(X){var t=X.data;
return _.k("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.k(L8V,{title:function(){return t().dialogTitle}}),_.k(aXN,{data:t}),_.k(_.d,{cond:function(){return t().infoRow},
then:function(G){return _.k(lXi,{infoRows:G})}}),_.k(v2N,{closeButton:function(){return t().closeButton}}))},"Ng");
xfa.idomCompat=!0;_.DW(xfa,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;return _.k("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.k(_.gr,{data:function(){return t().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.k("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.k("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.k(_.d,{cond:function(){var G=t().ytLogo;return G?G.iconType:null},
then:function(G){return _.k(_.mw,{icon:G,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.k("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.k("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.k(_.eh,{text:function(){return t().title}})),_.k("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.k(_.eh,{text:function(){return t().body}})),_.k("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.k(_.eh,{text:function(){return t().verifyStateText}}))),
_.k("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.k("div",null,_.k(_.M7,{data:function(){return t().dismissButton}},{buttonViewModel:_.QK})),_.k("div",null,_.k(_.M7,{data:function(){return t().linkParentButton}},{buttonViewModel:_.QK})))))},"Og"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.bR}});var fXV=_.Fp(function(X){var t=X.data;X=_.ex(function(){return t().agreements},[]);
return _.k("installment-agreements-view-model",{class:_.cl("ytInstallmentAgreementsViewModelHost")},_.k(_.pY,{each:X},function(G){return _.k("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.k("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.k(_.eh,{text:G.label})),_.k("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.k(_.M7,{data:function(){return G.openButton}},{buttonViewModel:_.QK})))}))},"Pg");
fXV.idomCompat=!0;var M32=_.Fp(function(X){return _.k("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.k(_.eh,{text:function(){return X.data().inviteMessage}})),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.k(_.eh,{text:function(){return X.data().attributedAccountSectionHeaderText}})),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.k(_.M7,{data:function(){return X.data().accountAvatar}},{avatarViewModel:_.al}),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.k(_.eh,{text:function(){return X.data().accountName}}),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.k(_.eh,{text:function(){return X.data().handle}}))),_.k(_.M7,{data:function(){return X.data().trailingButton}},{buttonViewModel:_.QK})),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.k(_.eh,{text:function(){return X.data().termsOfService}})))},"Qg");var XbH=_.Fp(function(X){var t=_.J(_.Ed(function(){var x,w6;return((x=X.data().createPlaylistDialogFormSchema)==null?0:(w6=x.initialValues)==null?0:w6.title)?X.data().createPlaylistDialogFormSchema.initialValues.title:""})),G=t.next().value,y=t.next().value;
t=_.J(_.Ed(function(){X.data();return!1}));
var w=t.next().value,z=t.next().value;t=_.J(_.Ed(function(){X.data();return!1}));
var B=t.next().value,V=t.next().value;t=_.J(_.Ed(function(){var x,w6;return(x=X.data().createPlaylistDialogFormSchema)==null?void 0:(w6=x.initialValues)==null?void 0:w6.visibility}));
var b=t.next().value,e=t.next().value;t=_.J(_.Ed(function(){X.data();return!1}));
var g=t.next().value,F=t.next().value;t=_.J(_.Ed(function(){var x,w6;return(x=X.data().createPlaylistDialogFormSchema)==null?void 0:(w6=x.initialValues)==null?void 0:w6.isCollaborative}));
var T=t.next().value,D=t.next().value,h=_.nl("div");_.Em(function(){var x=h.value.querySelector("textarea");x&&(x.value=G())},"OCauEe");
_.LY(function(){var x;_.BnV((x=X.data().createPlaylistDialogFormSchema)==null?void 0:x.id,{onSubmit:function(){var w6=G();var BY=b(),kJ=T(),Ss=X.data();w6={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:w6,privacyStatus:BY,videoIds:Ss.videoIds,sourcePlaylistId:Ss.sourcePlaylistId,params:kJ?Ss.createPlaylistParamsCollaborationEnabled:Ss.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.gw().resolve(_.F3).resolveCommand(w6)},
isValid:function(){return w()&&!B()&&!g()}})});
var u=function(x){if(x!==void 0&&(y(x),!w()&&x.length>0&&z(!0),w())){var w6=kOR(X.data());if(w6){var BY=w6.minLength;w6=w6.maxLength;BY&&x.length<BY?V(!0):w6&&x.length>w6?V(!0):V(!1)}}},W=function(){var x=!(!T()||b()!=="PRIVATE");
F(x)},c=function(x){x!==void 0&&(e(x),W())},P=function(){if(g())return ejR(X.data())},l=function(){D(!T());
W()},R=function(){return{validate:function(x){if(w()){var w6=kOR(X.data());
if(w6){var BY=w6.minLength;w6=w6.translations;if(BY&&x.length<BY)return w6==null?void 0:w6.minLengthErrorMessage}}}}},L=function(){var x=kOR(X.data()),w6=x==null?void 0:x.maxLength,BY;
x=x==null?void 0:(BY=x.translations)==null?void 0:BY.maxLengthErrorMessage;if(w6&&x)return{maxChars:w6,errorMessage:x}};
return _.k("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.k("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:h},_.k(_.M7,{data:function(){return X.data().playlistTitle}},{textFormFieldViewModel:function(x){return _.k(_.MDB,{data:x.data,
text:G,onInput:u,validation:R,characterLimit:L})},
textFieldViewModel:function(x){return _.k(_.fNV,{data:x.data,text:G,onInput:u,validation:R,characterLimit:L})}})),_.k("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.k(_.M7,{data:function(){return X.data().playlistVisibility}},{dropdownViewModel:function(x){return _.k(_.nA2,{data:x.data,
onSelected:c,error:P})}})),_.k(_.d,{cond:function(){return!!X.data().playlistCollaborate},
then:function(){return _.k("div",null,_.k(_.M7,{data:function(){return X.data().playlistCollaborate}},{switchListItemViewModel:function(x){return _.k(_.pnJ,{data:x.data,
onTap:l})}}))}}))},"Rg");var $Uv=_.Fp(function(X){var t=X.data;return _.k("upsell-offer-table-cell-content-view-model",null,_.k("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.k(_.P0,null,_.k(_.rn,{when:function(){return t().iconType}},function(){return _.k("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.k(_.mw,{icon:function(){return t().iconType.toString()}}))}),_.k(_.rn,{when:function(){return t().title}},function(){return _.k(_.eh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return t().title}})}),_.k(_.rn,{when:function(){return t().subtitle}},function(){return _.k(_.eh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return t().subtitle}})}),_.k(_.rn,{when:function(){return t().infoText}},function(){return _.k(_.eh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return t().infoText}})}),_.k(_.rn,{when:function(){return t().featureDescription}},function(){return _.k(_.eh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return t().featureDescription}})}),_.k(_.rn,{when:function(){return t().note}},function(){return _.k(_.eh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return t().note}})}))))},"Sg");
$Uv.idomCompat=!0;var t8H=_.Fp(function(X){var t=X.data;return _.k("upsell-offer-table-cell-view-model",null,_.k("div",{class:_.cl("ytUpsellOfferTableCellViewModelCellWrapper",function(){return t().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.k(_.M7,{data:function(){return t().contents}},{upsellOfferTableCellContentViewModel:$Uv})))},"Tg");
t8H.idomCompat=!0;var Gaq=_.Fp(function(X){var t=X.data;var G=X.upsellTableIsFirstRow;var y=function(){return(G==null?0:G())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},w=function(){return(G==null?0:G())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.k("ytm-upsell-offer-table-row-view-model",null,_.k("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.k(_.M7,{data:function(){return t().rowHeaderCell}},{upsellOfferTableCellViewModel:function(z){return _.k("div",{class:y},_.k(t8H,{data:z.data}))}}),_.k(_.M7,{data:function(){return t().contentCells}},{upsellOfferTableCellViewModel:function(z){return _.k("div",{class:w},_.k(t8H,{data:z.data}))}})))},"Ug");
Gaq.idomCompat=!0;var ycV=_.Fp(function(X){var t=X.data;return _.k("ytm-upsell-offer-table-view-model",null,_.k("div",{class:"ytUpsellOfferTableViewModelHost"},_.k("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.k(_.M7,{data:function(){return t().rows}},{upsellOfferTableRowViewModel:function(G,y){return _.k(Gaq,{data:G.data,
upsellTableIsFirstRow:function(){return y()===0}})}}))))},"Vg");
ycV.idomCompat=!0;var wba=_.Fp(function(X){var t=_.ex(X.noPadding,!1),G=function(){var z,B;return(B=(z=X.data().logo.accessibilityData)==null?void 0:z.label)!=null?B:""},y=function(){return X.data().offerTable},w={};
return _.k("upsell-view-model",{class:_.cl("ytUpsellViewModelHost",(w.ytUpsellViewModelHostNoPadding=function(){return t()},w.ytUpsellViewModelHostWide=function(){return y()!==void 0},w))},_.k("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.k(_.d,{cond:function(){return _.b7(X.data().logo)},
then:function(z){return _.k(_.gr,{data:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:G})}})),_.k("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.k(_.eh,{text:function(){return X.data().title}})),_.k("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.k(_.pY,{each:function(){var z;
return(z=X.data().subtitles)!=null?z:[]},
keyBy:"INDEX"},function(z){var B={};return _.k("div",{class:_.cl("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(B.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return y()!==void 0},B))},_.k(_.eh,{text:z}))})),_.k("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.k(_.pY,{each:function(){var z;
return(z=X.data().benefitInfos)!=null?z:[]},
keyBy:"INDEX"},function(z){return _.k(_.d,{cond:function(){return z().info},
then:function(B){return _.k("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.k(_.mw,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.k(_.eh,{text:B}))}})})),_.k(_.d,{cond:function(){return y()!==void 0},
then:function(){return _.k("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.k(ycV,{data:y}))}}),_.k("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.k(_.pY,{each:function(){var z;
return(z=X.data().legalInfos)!=null?z:[]},
keyBy:"INDEX"},function(z){var B={};return _.k("div",{class:_.cl("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(B.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return y()!==void 0},B))},_.k(_.eh,{text:z}))})))},"Wg");var zgV=_.Fp(function(X){var t=X.data;X={};X=(X.ytMiniAppScoreChallengeViewModelScoreRadial=!0,X.ytMiniAppScoreChallengeViewModelDarkScoreRadial=jLB(),X);return _.k("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.k("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return t().title}),_.k("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return t().subtitle}),_.k("div",{class:_.pX(X)},_.k("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return t().score})),_.k("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return t().prompt}))},"Xg");var Hf2=function(){this.store=_.kF();this.formId=""};
Hf2.prototype.onInit=function(X){X.formId&&(this.formId=X.formId,this.store.dispatch(_.Dl({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var oNR=_.Fp(function(X){function t(V){if(V&&(V=_.Y(V,_.mA)))return Object.assign({},V,{isSelected:z()})}
var G=_.J(_.Ed(function(){var V,b;return(b=(V=_.Y(X.data().option,_.mA))==null?void 0:V.isSelected)!=null?b:!1})),y=G.next().value,w=G.next().value,z=y;
_.LY(function(){var V;_.BnV((V=X.data().formSchema)==null?void 0:V.id,{onSubmit:function(){var b=_.gw().resolve(_.F3),e=!!X.data().selectedCommand,g=!!X.data().unselectedCommand;if(z()){if(e)var F=X.data().selectedCommand}else g&&(F=X.data().unselectedCommand);F=_.wr(F);t(X.data().option)&&!F?(b="",!e&&g?b="selected ":e&&!g&&(b="unselected "),e=new _.NJ("No "+b+"command found for SelectionListItemFormViewModel"),_.xA(e)):F&&b.resolveCommand(F)},
isValid:function(){return!0}})});
var B=function(){w(!z())};
_.Um(function(){var V,b,e=(V=X.data())==null?void 0:(b=V.formSchema)==null?void 0:b.id;e&&_.oSH()().delete(e)});
return _.k("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.k("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.k(_.eh,{text:function(){return X.data().paragraph}})),_.k(_.d,{cond:function(){return t(X.data().option)},
then:function(V){return _.k(_.Mk,{data:V,isCompact:!0,hideSelectionTextChevron:!0,onTap:B,disableHorizontalPadding:!0})}}))},"Yg");var Jcr=_.Fp(function(X){var t=X.data;var G=X.disablePadding;var y=X.className;var w=_.nl("yt-dialog-header-view-model"),z=function(){var V=t().imageBanner;a:switch(t().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var b="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:b="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:V,style:b,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},B=function(){return t().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.LY(function(){var V=function(){_.sl(w.value,"yt-refit-popups-action")},b;
(b=w.value)==null||b.addEventListener("image-loaded",V);_.Um(function(){var e;(e=w.value)==null||e.removeEventListener("image-loaded",V)})});
X={};return _.k("yt-dialog-header-view-model",{el:w,class:_.cl(y,(X.ytDialogHeaderViewModelHost=!0,X.ytDialogHeaderViewModelHostDisablePadding=G,X))},_.k(_.d,{cond:function(){return t().imageBanner},
then:function(){var V={};return _.k("div",{class:_.cl(y,(V.ytDialogHeaderViewModelBanner=!0,V.ytDialogHeaderViewModelBannerFullBleed=B,V)),style:_.Ud({"max-height":function(){return t().assetContainerMaxHeight!==void 0?t().assetContainerMaxHeight+"px":void 0}})},_.k(_.sY,{data:z,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.k(_.d,{cond:function(){return t().headerBlock},
then:function(){return _.k("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.k(_.M7,{data:function(){return t().headerBlock}},{contentPreviewImageViewModel:function(V){return _.k(_.sY,{data:V.data,
notifyOnLoaded:!0})}}))}}),_.k(_.d,{cond:function(){return t().customBanner},
then:function(V){return _.k("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.k(_.M7,{data:V},{avatarStackViewModel:_.xK}))}}),_.k(_.d,{cond:function(){return t().headline},
then:function(V){return _.k("h2",null,_.k(_.eh,{text:V,className:"ytDialogHeaderViewModelText"}))}}))},"Zg");
Jcr.idomCompat=!0;var B$2=_.Fp(function(X){var t=_.nSi(function(){return X.data().formId}),G=t.onSubmit,y=t.isValid;
return _.k("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.k(_.M7,{data:function(){return X.data().panelFooter}},{panelFooterViewModel:function(w){return _.k(_.nn,{data:w.data,
disablePadding:!0,disablePrimaryButton:function(){return!y()},
onClickPrimaryButton:function(){G()}})}}))},"$g");var nNV=_.Fp(function(X){var t=function(){var G,y;return(y=(G=_.Y(X.data().rendererContext,_.N0))==null?void 0:G.label)!=null?y:""};
return _.k("yt-dialog-image-content-view-model",{class:_.cl("ytDialogImageContentViewModelHost",X.className)},_.k(_.d,{cond:function(){return _.b7(X.data().image)},
then:function(G){return _.k(_.gr,{data:G,alt:t,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.k(_.eh,{text:function(){return X.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"ah");var kaQ=_.Fp(function(X){var t=_.jx(X,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),G=t.elRefCallback;X=t.iconWiz;var y=t.assetWiz,w=t.assetType,z=t.titleWiz,B=t.leadingActionHeaderWiz,V=t.trailingActionHeaderWiz,b=t.headerPosition,e=t.contentWiz,g=t.buttonLayout,F=t.buttonStyle,T=t.primaryButtonWiz,D=t.secondaryButtonWiz,h=t.contentAlignment,u=t.isFullscreen,W=t.width,c=t.maxHeight,P=t.isHeaderWizDefined,
l=t.headerWiz,R=t.isFooterWizDefined,L=t.footerWiz;t=_.nl("dialog-layout",function(cY){G==null||G(cY)});
var x=y?function(){return y({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,w6=T?function(){var cY={};
return T({buttonOverrides:function(){return{style:(F==null?void 0:F())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.cl((cY["yt-spec-dialog-layout__dialog-layout-button"]=!0,cY["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(g==null?void 0:g())===0||(g==null?void 0:g())===2},cY))})}:void 0,BY=D?function(){var cY={};
return D({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.cl((cY["yt-spec-dialog-layout__dialog-layout-button"]=!0,cY["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(g==null?void 0:g())===0||(g==null?void 0:g())===2},cY))})}:void 0,kJ=function(){return(!!z||!!B||!!V)&&b()===0},Ss={},C_={},Fv={},Uh={};
return _.k("dialog-layout",{el:t,class:_.cl((Ss["yt-spec-dialog-layout"]=!0,Ss["yt-spec-dialog-layout--dialog-layout-fullscreen"]=u,Ss["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!u()},Ss["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return c()===1},Ss["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(w==null?void 0:w())===1},Ss)),
style:function(){return(W==null?void 0:W())!==void 0?"width: "+W+"px;":""}},X?_.k("div",{class:_.cl((C_["yt-spec-dialog-layout__dialog-layout-icon"]=!0,C_["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!y&&b()===1},C_["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return h()===1},C_))},_.k(X,null)):null,_.k(_.d,{cond:P,
then:function(){return l?_.k("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.k(l,null)):null},
else:function(){return _.k(_.gn,null,_.k(_.d,{cond:kJ,then:function(){return _.k(V8a,{contentAlignment:h,LeadingActionHeader:B,TrailingActionHeader:V,Title:z,isAboveAsset:!!x})}}),x?_.k("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.k(x,null)):null)}}),_.k("div",{class:_.cl((Fv["yt-spec-dialog-layout__dialog-layout-container"]=!0,Fv["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(h==null?void 0:h())===1},Fv["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!z&&!l||!!x&&(b==null?void 0:b())===0},Fv))},_.k(_.d,{cond:function(){return z&&!l&&(b==null?void 0:b())===1},
then:function(){return _.k(V8a,{contentAlignment:h,LeadingActionHeader:B,TrailingActionHeader:V,Title:z,isAboveAsset:!1})}}),e?_.k("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.k("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.k(e,null))):null,_.k(_.d,{cond:R,
then:function(){return L?_.k("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.k(L,null)):null}}),w6||BY?_.k(bf2,{footerClasses:_.cl((Uh["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Uh["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Uh["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(g==null?void 0:g())===2},Uh["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(g==null?void 0:g())===1},Uh)),
PrimaryButton:w6,SecondaryButton:BY}):null))},"bh"),V8a=_.Fp(function(X){var t=_.jx(X,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),G=t.contentAlignment,y=t.LeadingActionHeader;X=t.Title;var w=t.TrailingActionHeader,z=t.isAboveAsset,B=t.enableLeadingActionHeader;t={};return _.k("div",{class:_.cl((t["yt-spec-dialog-layout__dialog-header-container"]=!0,t["yt-spec-dialog-layout__dialog-header"]=!0,t["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=z,t["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(G==null?void 0:G())===1&&B()},t))},_.k(_.d,{cond:function(){return B()},
then:function(){return y?_.k("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.k(y,null)):null}}),X?_.k("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.k(X,null)):null,w?_.k("div",null,_.k(w,null)):null)},"ch"),bf2=_.Fp(function(X){var t=X.footerClasses;
var G=X.PrimaryButton;X=X.SecondaryButton;return _.k("div",{class:t},X?_.k(X,null):null,G?_.k(G,null):null)},"dh");var dUi=_.Fp(function(X){var t=X.data;return _.k("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.k("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.k(_.M7,{data:function(){return t().avatar}},{avatarViewModel:_.al})),_.k("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.k(_.eh,{text:function(){return t().title}})),_.k(_.eh,{text:function(){return t().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"eh");var egH=_.Fp(function(X){var t=X.data;return _.k("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.k("div",{class:"ytAccessConfirmationViewModelContent"},_.k(_.M7,{data:function(){var G;return(G=t().avatar)!=null?G:t().dualAvatar}},{dualAvatarViewModel:function(G){return _.k(_.FBY,{data:G.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(G){return _.k(_.lD,{data:G.data})}}),_.k("h2",{class:"ytAccessConfirmationViewModelTitle"},_.k(_.eh,{text:function(){return t().title}})),_.k(_.eh,{text:function(){return t().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"fh");var jwB=_.Fp(function(X){var t=X.data;var G=void 0;X=_.J(_.Ed(function(){var e;return((e=_.Y(t().content,_.hZi))==null?void 0:e.defaultSelectedKey)||""}));
var y=X.next().value,w=X.next().value,z,B=function(){w("");var e;(e=G)!=null&&e.store.dispatch(_.Dl({type:"RESET_COMMAND_MAP"}))};
_.LY(function(){G=new Hf2;window.addEventListener("yt-popup-closed",B)});
_.Em(function(){if(G&&z!==t().formId&&(G.onInit(t()),(z=t().formId)&&y())){var e=G,g={key:y()};g.command&&e.store.dispatch(nlH(z,g.command))}},"k6b6Qe");
_.Um(function(){window.removeEventListener("yt-popup-closed",B)});
var V=function(e,g,F){g.key&&F&&g.key!==y()&&(w(g.key),G&&g.command&&G.store.dispatch(nlH(F,g.command)))},b=function(){if(_.Y(t().content,_.hZi))return!(y==null?0:y())};
return _.k("yt-dialog-view-model",{class:_.cl("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.k(kaQ,{headerWiz:function(){return _.k("span",{skip:!0},_.k(_.M7,{data:function(){return t().header}},{dialogHeaderViewModel:function(e){return _.k(Jcr,{data:e.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!t().header},
contentWiz:function(){return _.k("span",{skip:!0},_.k(_.M7,{data:function(){return t().customContent?t().customContent:t().content}},{basicContentViewModel:_.Vqv,
createPlaylistDialogFormViewModel:XbH,collaborativePlaylistInviteMessageViewModel:M32,miniAppScoreChallengeViewModel:zgV,radioButtonGroupViewModel:function(e){var g=e.data;return _.k(_.oAT,{data:g,selectedKey:y,onSelected:V,groupName:function(){return g().formId}})},
selectionListItemFormViewModel:oNR,upsellViewModel:function(e){return _.k(wba,{data:e.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:dUi,installmentAgreementsViewModel:fXV,accessConfirmationViewModel:egH,listViewModel:function(e){return _.k(_.iCo,{data:e.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:nNV}))},
footerWiz:function(){return _.k("span",{skip:!0},_.k(_.M7,{data:function(){return t().footer}},{panelFooterViewModel:function(e){return _.k(_.nn,{data:e.data,
disablePadding:!0,disablePrimaryButton:b})},
formPanelFooterViewModel:B$2,formFooterViewModel:function(e){return _.k(_.aN4,{data:e.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!t().footer}}))},"gh");
jwB.idomCompat=!0;_.DW(jwB,"yt-dialog-view-model",{props:{data:_.bR},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var gNi=_.Fp(function(X){var t=X.data;X={};return _.k("yt-panel-header-view-model",{class:_.cl("yt-panel-header-view-model-wiz",(X["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!t().shouldHideDivider},X["yt-panel-header-view-model-wiz--compact"]=function(){return!!t().subtitle},X))},_.k("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.k(_.d,{cond:function(){return t().title},
then:function(G){return _.k(_.eh,{text:G,className:"yt-panel-header-view-model-wiz__title"})}}),_.k(_.d,{cond:function(){return t().subtitle},
then:function(G){return _.k(_.eh,{text:G,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.k("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.k(_.M7,{data:function(){return t().trailingButtons}},{buttonViewModel:function(G){return _.k(_.QK,{data:G.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"hh");
gNi.idomCompat=!0;var FIH=_.Fp(function(X){var t=_.NI(function(z){var B;if((B=X.skipContentClick)==null?0:B.call(X))return!1;X.onContentWrapperClick(z);return!0}),G,y,w;
return _.k("div",{class:_.cl("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return X.isAnimating()?"transform: translateY("+X.currentY()+"px);transition: 0.2s":""}},(G=X.header)==null?void 0:G.call(X),_.k("div",{id:X.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Ud({"max-height":(0,_.xB)(X.maxHeightForContentWrapper)}),"on:scroll":AmT(X.onScroll),"on:touchmove":AmT(function(z){return void z.stopPropagation()})},_.k("div",{el:{onRender:X.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":t},(y=X.body)==null?void 0:y.call(X))),(w=X.footer)==null?void 0:w.call(X))},"ih");
FIH.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var T$r=_.Fp(function(X){var t=_.ex(X.leadingLabel),G=_.ex(X.trailingLabel),y=_.ex(X.footerButtonType),w=function(){return t()||G()||X.hasPrimaryButton()||X.hasSecondaryButton()},z={},B=_.cl("yt-spec-bottom-sheet-layout__primary-button",(z["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return y()===0&&X.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return y()===1&&X.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return y()===2&&X.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return y()===3&&X.hasPrimaryButton()},z));
z={};var V=_.cl("yt-spec-bottom-sheet-layout__secondary-button",(z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return y()===1&&X.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return y()===2&&X.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return y()===3&&X.hasPrimaryButton()},z));
return _.k(_.d,{cond:X.hasFooterOverride,then:function(){var b;return _.k(_.gn,null,(b=X.footerOverride)==null?void 0:b.call(X))},
else:function(){return _.k(_.d,{cond:w,then:function(){return _.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.k(_.d,{cond:function(){return t()||G()},
then:function(){var b={};return _.k("div",{class:_.cl("yt-spec-bottom-sheet-layout__footer-label-wrapper",(b["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!X.hasPrimaryButton()},b))},_.k(_.d,{cond:t,
then:function(){return _.k("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},t)}}),_.k(_.d,{cond:G,
then:function(){return _.k("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},G)}}))}}),_.k(_.d,{cond:function(){return X.hasPrimaryButton()||X.hasSecondaryButton()},
then:function(){var b={};return _.k("div",{class:_.cl("yt-spec-bottom-sheet-layout__footer-button-wrapper",(b["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Uko,b))},_.k(_.d,{cond:function(){return X.hasSecondaryButton()&&y()!==0},
then:function(){var e;return _.k("div",{class:V},(e=X.secondaryButton)==null?void 0:e.call(X))}}),_.k(_.d,{cond:X.hasPrimaryButton,
then:function(){var e;return _.k("div",{class:B},(e=X.primaryButton)==null?void 0:e.call(X))}}))}}))}})}})},"jh");
T$r.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var Ac4=_.Fp(function(X){var t=_.ex(X.title),G=_.ex(X.subtitle);return _.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:X.headerId,"on:touchstart":_.NI(function(y){var w;(w=X.touchstart)==null||w.call(X,y);return!1}),
"on:touchmove":_.NI(function(y){var w;(w=X.touchmove)==null||w.call(X,y);return!1}),
"on:touchend":_.NI(function(y){var w;(w=X.touchend)==null||w.call(X,y);return!1})},_.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.k(_.d,{cond:X.hasHeaderOverride,
then:function(){var y;return _.k(_.gn,null,(y=X.headerOverride)==null?void 0:y.call(X))},
else:function(){var y={};return _.k("div",{class:_.cl((y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=t,y))},_.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.k(_.d,{cond:t,then:function(){return _.k(_.gn,null,_.k("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},t),_.k(_.d,{cond:G,then:function(){return _.k("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
G)}}))}})),_.k(_.d,{cond:function(){return t()&&X.hasActionHeader()},
then:function(){var w;return _.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(w=X.actionHeader)==null?void 0:w.call(X))}}))}}))},"kh");
Ac4.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Fp(function(X){function t(x){if(!c&&typeof MutationObserver!=="undefined"){var w6={childList:!0};"MutationObserver"in window&&(c=new MutationObserver(G.bind(void 0,x)),c.observe(x,w6))}}
function G(x){typeof c!=="undefined"&&(P["content-wrapper"]===void 0&&(P["content-wrapper"]=x.children[0].clientHeight),D(P["content-wrapper"]),T()>h()||u(T()))}
function y(){F(window.innerHeight);T()>h()||u(T());l.isFullScreen[0]()&&T()>h()?R().dispatch("Snap To Full Screen",{maxHeight:W()}):R().dispatch("Snap To Neutral Position",{maxHeight:h()})}
function w(x){document.body.style.overscrollBehavior="none";x.preventDefault();R().dispatch("Touch Start",{event:x})}
function z(x){x.preventDefault();R().dispatch("Touch Move",{event:x,contentScrollable:T()>h(),fullContentWrapperHeight:W(),contentWrapperHeight:h(),contentHeightMap:P,contentWrapperId:"content-wrapper",header:sLr(X),footer:sLr(X)})}
function B(){document.body.style.overscrollBehavior="";l.isFullScreen[0]()?l.currentY[0]()>=60?R().dispatch("Snap To Neutral Position",{maxHeight:h()}):R().dispatch("Snap To Full Screen",{maxHeight:W()}):l.currentY[0]()>=60?V():l.currentY[0]()<=-60&&T()>h()?R().dispatch("Snap To Full Screen",{maxHeight:W()}):R().dispatch("Snap To Neutral Position",{maxHeight:h()})}
function V(){R().dispatch("Close Sheet",{clientHeight:g(),maxHeight:0});setTimeout(function(){YVa()},250)}
var b=_.J(_.sm(window.innerHeight,void 0,"NWeFS")),e=b.next().value;b=b.next().value;var g=e,F=b;b=_.J(_.sm(0,void 0,"oxfm4"));e=b.next().value;b=b.next().value;var T=e,D=b;b=_.J(_.Ed(function(){var x=sLr(X);return.6*g()-gFH(x)-FfN(x)}));
e=b.next().value;b=b.next().value;var h=e,u=b,W=function(){var x=sLr(X);return g()-gFH(x)-FfN(x)-24-24},c=null,P={},l={initialY:_.sm(0,void 0,"cYBE5c"),
currentY:_.sm(0,void 0,"RndqHc"),isAnimating:_.sm(!1,void 0,"vO9DVd"),isFullScreen:_.sm(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Ed(h)},R=function(){var x=null;return function(){if(!x){var w6={initialY:l.initialY[0](),currentY:l.currentY[0](),isAnimating:l.isAnimating[0](),isFullScreen:l.isFullScreen[0](),maxHeightForContentWrapper:l.maxHeightForContentWrapper[0]()};x=TXv(w6)}return x}}();
_.LY(function(){window.addEventListener("resize",y);R().subscribe(function(x){l.initialY[1](x.initialY);l.currentY[1](x.currentY);l.isAnimating[1](x.isAnimating);l.isFullScreen[1](x.isFullScreen);l.maxHeightForContentWrapper[1](x.maxHeightForContentWrapper)})});
_.Um(function(){window.removeEventListener("resize",y);c&&(c.disconnect(),c=null)});
var L=_.cl({"bottom-sheet-content-without-icon":function(){var x;return!((x=X.shouldShowIcons)==null?0:x.call(X))}});
return _.k("bottom-sheet-layout",null,_.k(FIH,{contentWrapperId:"content-wrapper",isAnimating:function(){return l.isAnimating[0]()},
currentY:function(){return l.currentY[0]()},
maxHeightForContentWrapper:function(){return l.maxHeightForContentWrapper[0]()},
shouldShowIcons:X.shouldShowIcons,skipContentClick:X.skipContentClick,onScroll:function(){var x=document.getElementById("header-wrapper"),w6=document.getElementById("content-wrapper");if(x&&w6){var BY={};BY=(BY["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,BY["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,BY);x.className=w6.scrollTop>1?_.pX(BY):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:YVa,contentWrapperEl:function(x){t(x);requestAnimationFrame(function(){G(x)})},
header:function(){return _.k(Ac4,{touchstart:w,touchmove:z,touchend:B,title:X.headerTitle,subtitle:X.headerSubtitle,headerId:"header-wrapper",headerOverride:X.headerFn,hasHeaderOverride:X.hasHeaderFn,actionHeader:X.headerActionHeader,hasActionHeader:X.hasHeaderActionHeader})},
footer:function(){return _.k(T$r,{footerButtonType:X.footerButtonType,leadingLabel:X.footerLeadingLabel,trailingLabel:X.footerTrailingLabel,primaryButton:X.footerPrimaryButton,hasPrimaryButton:X.hasFooterPrimaryButton,secondaryButton:X.footerSecondaryButton,hasSecondaryButton:X.hasFooterSecondaryButton,footerOverride:X.footerFn,hasFooterOverride:X.hasFooterFn})},
body:function(){return _.k(_.d,{cond:X.hasContentFn,then:function(){var x;return _.k("div",{class:L},(x=X.contentFn)==null?void 0:x.call(X))}})}}))},"lh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var YuH=_.Fp(function(X){var t=_.gw().resolve(_.RJ);return _.k("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.NI(function(){return void t.closeSheet()})},_.k(_.d,{cond:function(){return!!X.header},
then:function(){return _.k("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},X.header())}}),_.k(_.d,{cond:function(){return!!X.content},
then:function(){return _.k("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},X.content())}}),_.k(_.d,{cond:function(){return!!X.footer},
then:function(){return _.k("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},X.footer())}}))},"mh");
YuH.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var swR=_.Fp(function(X){X=X.data;var t=_.nl("yt-sheet-view-model",function(y){if(_.A("web_focus_first_element_sheet")||!_.A("sheet_focus_first_killswitch"))return y.addEventListener("focus",function(){dYv(y)}),function(){y.removeEventListener("focus",function(){dYv(y)})}}),G={};
return _.k("yt-sheet-view-model",{"on:mousedown":_.NI(function(y){_.A("sheet_focus_first_killswitch")||y.currentTarget!==y.target&&y.preventDefault()}),
"on:focus":_.NI(function(){_.A("sheet_focus_first_killswitch")||dYv(t.value)}),
class:_.cl("yt-sheet-view-model-wiz",(G["yt-sheet-view-model-wiz--contextual"]=!0,G["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.A("web_disable_backdrop_filter"),G)),el:t,tabindex:-1},_.k(_.d,{cond:X,then:function(y){return _.k(YuH,{header:function(){return _.k(_.M7,{data:function(){return y().header}},{panelHeaderViewModel:gNi})},
content:function(){return _.k(_.M7,{data:function(){return y().content}},{listViewModel:function(w){return _.k(_.iCo,{data:w.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:wba,miniAppScoreChallengeViewModel:zgV})},
footer:function(){return _.k(_.M7,{data:function(){return y().footer}},{panelFooterViewModel:_.nn})}})}}))},"nh");
swR.idomCompat=!0;_.DW(swR,"yt-sheet-view-model",{props:{data:_.bR}});var Su2=_.Fp(function(X){var t=function(){var G;return(G=X.data().enableDebuggingFeatures)!=null?G:!1};
return _.k("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.k(_.pY,{each:function(){var G;return(G=X.data().stickers)!=null?G:[]}},function(G){return _.k(DUQ,{data:function(){return G},
debugMode:t})}))},"oh"),DUQ=_.Fp(function(X){var t=_.jx(X,{debugMode:!1}).debugMode,G=_.ex(function(){var b;
return(b=X.data().region)==null?void 0:b.w},0),y=_.ex(function(){var b;
return(b=X.data().region)==null?void 0:b.h},0),w=_.ex(function(){var b;
return(b=X.data().region)==null?void 0:b.x},0),z=_.ex(function(){var b;
return(b=X.data().region)==null?void 0:b.y},0),B=_.NI(function(){var b=X.data().onTap;
b&&_.JH(b)}),V={};
return _.k("div",{class:_.cl("ytStoriesStickerLayerViewModelSticker",(V.ytStoriesStickerLayerViewModelDebugMode=t,V)),style:_.Ud({width:function(){return 100*G()+"%"},
height:function(){return 100*y()+"%"},
left:function(){return 100*w()+"%"},
top:function(){return 100*z()+"%"},
"flex-direction":function(){return Di2(X.data().flexDirection)},
"justify-content":function(){return SVH(X.data().justifyContent)},
"align-items":function(){return hjT(X.data().alignItems)}}),
"on:click":B},_.k(_.M7,{data:function(){return X.data().button||X.data().toggleButton}},{buttonViewModel:function(b){return _.k(_.QK,{data:b.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(b){return _.k(_.Lv,{data:b.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ph");var ZfR=_.Fp(function(X){var t=function(){return X.data()},G={},y=_.ex(function(){return t().backgroundColor},0),w=_.ex(function(){return t().actionButtons},[]),z=_.ex(function(){return t().stickerLayer},{}),B=function(){var b,e;
return{animationRef:G,animationConfig:{autoplay:!1,loop:!1,path:(e=(b=t().foregroundAnimation)==null?void 0:b.url)!=null?e:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){X.navigateToNextItemOnLottieComplete()}}}},V=function(){var b,e,g,F,T,D,h,u;
return{animationConfig:{autoplay:(D=(b=t().backgroundAnimation)==null?void 0:(e=b.settings)==null?void 0:e.autoplay)!=null?D:!1,loop:(h=(g=t().backgroundAnimation)==null?void 0:(F=g.settings)==null?void 0:F.loop)!=null?h:!1,path:(u=(T=t().backgroundAnimation)==null?void 0:T.url)!=null?u:"",name:"stories_item_background_animation"}}};
_.Em(function(){if(X.isVisible()){var b;(b=G.lottieEl)==null||b.play();X.animationRef()&&(X.animationRef().lottieEl=G.lottieEl)}else{var e;(e=G.lottieEl)==null||e.stop()}},"Cbnkwd");
return _.k("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Ud({"background-color":function(){return _.yY(y())+";"}})},_.k("div",{class:"ytStoriesItemViewModelAssetContent"},_.k(_.d,{cond:function(){return!!t().backgroundAnimation},
then:function(){return _.k(_.D8,{data:V,animationName:function(){return V().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.k(_.d,{cond:function(){return!!t().backgroundImage},
then:function(){return _.k(_.gr,{data:function(){return t().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.k(_.d,{cond:function(){return!!t().foregroundAnimation},
then:function(){return _.k(_.D8,{data:B,animationName:function(){return B().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.k(_.d,{cond:function(){return!!t().foregroundImage},
then:function(){return _.k(_.gr,{data:function(){return t().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.k("div",{class:"ytStoriesItemViewModelTopShadow"}),_.k(_.M7,{data:function(){return z()}},{storiesStickerLayerViewModel:Su2})),_.k("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Ud({"background-color":function(){return _.yY(y())}})},_.k("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.k(_.pY,{each:w},function(b){return _.k(hga,{data:function(){return b},
pauseAutoNavigation:X.pauseAutoNavigation})}))))},"qh"),quB={style:"overlay",
type:"outline"},hga=_.Fp(function(X){var t={};return _.k("div",{class:_.cl("ytStoriesItemViewModelActionButton",(t.ytStoriesItemViewModelStretchedActionButton=function(){return X.data().size==="STORIES_BUTTON_SIZE_STRETCH"},t)),
"on:click":_.NI(X.pauseAutoNavigation)},_.k(_.M7,{data:function(){return X.data().button}},{buttonViewModel:function(G){return _.k(_.QK,{data:G.data,
buttonOverrides:quB})}}))},"rh");_.DW(_.Fp(function(X){var t=function(){var w6;return(w6=X.data().startIndex)!=null?w6:0},G=_.J(_.Ed(t)),y=G.next().value,w=G.next().value;
G=_.J(_.sm(!1,void 0,"O8yPf"));var z=G.next().value,B=G.next().value,V=function(){var w6;return(w6=X.data().storyItems)!=null?w6:[]},b={},e=function(){return X.data().dismissButton},g=function(){var w6;
return _.Y((w6=_.Y(e(),_.vk))==null?void 0:w6.onTap,_.yL)},F=_.nl("div"),T,D,h=!1,u=function(){var w6;
(w6=T)==null||w6.cancel();T=W(y()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});T.onfinish=function(){W(y()).style.width="100%";var BY=_.Y(V()[y()],CjV),kJ,Ss;BY!=null&&BY.foregroundAnimation&&((BY==null?0:(kJ=BY.foregroundAnimation)==null?0:kJ.url)||(BY==null?0:(Ss=BY.foregroundAnimation)==null?0:Ss.payload))||(y()!==V().length-1?(w(y()+1),u()):g()&&_.z7(g()))}},W=function(w6){return F.value.children[w6].children[0]},c=function(){for(var w6=0;w6<y();w6++)W(w6).style.width=
"100%"};
G=_.NI(function(){h||(z()?B(!1):(y()===V().length-1&&g()&&_.z7(g()),W(y()).style.width="100%",y()!==V().length-1&&(w(y()+1),u())))});
var P=_.NI(function(){h||(z()?B(!1):(W(y()).style.width="0%",y()!==0?w(y()-1):w(y()),u()))}),l=function(){B(!0)},R=function(){W(y()).style.width="100%";
y()!==V().length-1?(w(y()+1),u()):g()&&_.z7(g())},L=_.NI(function(){h=!1;
D=setTimeout(function(){B(!0);h=!0},300)}),x=_.NI(function(){clearTimeout(D);
h&&z()&&B(!1)});
_.Em(function(){if(z()){var w6;(w6=T)==null||w6.pause();var BY;(BY=b.lottieEl)==null||BY.pause()}else{var kJ;(kJ=T)==null||kJ.play();var Ss;(Ss=b.lottieEl)==null||Ss.play()}},"DIHTEd");
_.Em(function(){c();y()===t()&&u()},"ze5F8b");
_.LY(function(){c();u()});
_.Um(function(){clearTimeout(D)});
return _.k("yt-stories-viewer-view-model",{class:_.cl("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.k("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.k("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":P,"on:mousedown":L,"on:mouseup":x,"on:mouseleave":x}),_.k("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":G,"on:mousedown":L,"on:mouseup":x,"on:mouseleave":x})),_.k("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.k(_.M7,{data:V},{storiesItemViewModel:function(w6,BY){var kJ=w6.data;return _.k(_.d,{cond:function(){return Math.abs(BY()-y())<=1},
then:function(){var Ss={};return _.k("div",{class:_.cl("ytStoriesViewerViewModelStoryItem",(Ss.ytStoriesViewerViewModelActiveStoryItem=function(){return BY()===y()},Ss))},_.k(ZfR,{data:kJ,
pauseAutoNavigation:l,navigateToNextItemOnLottieComplete:R,isVisible:function(){return BY()===y()},
animationRef:b}))}})}})),_.k("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:F},_.k(_.pY,{each:V},function(){return _.k("div",{class:"ytStoriesViewerViewModelProgressBar"},_.k("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.k("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.k(_.M7,{data:e},{buttonViewModel:_.QK})))},"sh"),"yt-stories-viewer-view-model",{props:{data:_.bR}});_.DW(_.Fp(function(X){var t=X.data;var G=_.nl("yt-gen-ai-feedback-form-view-model"),y=[];return _.k("yt-gen-ai-feedback-form-view-model",{el:G,class:"ytGenAiFeedbackFormViewModelHost"},_.k(_.eh,{text:function(){return t().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.k("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.k(_.M7,{data:function(){return t().feedbackChips}},{toggleButtonViewModel:function(w){var z=w.data;
return _.k(_.Lv,{data:z,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(B){var V=z();V=_.Y(V,_.as);V=_.Y(V==null?void 0:V.defaultButtonViewModel,_.vk).trackingParams;B?y.push(V):(B=y.indexOf(V),B>-1&&y.splice(B,1))}})}})),_.k(_.eh,{text:function(){return t().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.k("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.k(_.M7,{data:function(){return t().submitButton}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){ZzR(G.value,y,t().uniqueId)}})}}),_.k(_.M7,{data:function(){return t().moreFeedbackButton}},{buttonViewModel:function(w){return _.k(_.QK,{data:w.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"th"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.bR},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ar=function(){return _.O.apply(this,arguments)||this};
_.S(ar,_.O);ar.prototype.created=function(){ySH(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(azN);var X=_.gw().resolve(_.mzr);X&&(X.container=this.ytPopupContainerBehavior);if(X=_.gw().resolve(_.RJ))X.container=this.ytPopupContainerBehavior;if(X=_.gw().resolve(_.ia)){var t=this.ytPopupContainerBehavior;X.containerWasInjected?_.Mj(Error("dj")):X.container=t}};
ar.prototype.ensurePopupBelowPlayer=function(X,t){var G=_.gw().resolve(_.jH(_.AS));if(!G||!G.isOnWatch()||!_.sW())return!1;G=G.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Py().height>G+this.getPopupHeight(X,t)?(X.style.top="auto",X.style.bottom="0px"):(X.style.top=G+"px",X.style.bottom="auto");return!0};
ar.prototype.getPopupHeight=function(X,t){t&&(X.cachedPopupHeight=0);if(!X.cachedPopupHeight){t=0;var G=X.clientHeight,y=window.getComputedStyle(X);t+=parseInt(y.marginTop,10);t+=parseInt(y.marginBottom,10);X.cachedPopupHeight=G+t}return X.cachedPopupHeight};
ar.prototype.getElement=function(X){return document.createElement(X)};
_.E([_.q(dkT.YtPopupContainerBehavior),_.U("design:type",Object)],ar.prototype,"ytPopupContainerBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],ar.prototype,"ytComponentBehavior",void 0);_.E([_.p({disableElementRegistration:!0,is:"ytd-popup-container"})],ar);
_.N(ar,"ytd-popup-container",function(){if(zhQ!==void 0)return zhQ;var X=document.createElement("template");_.Z(X,"\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");X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);return zhQ=X},{mode:1});var C4R;var KIH={};KIH.YtLogYpcFlowCommandsBehavior=[_.sb.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(X){_.Y(X,v6a)&&(X=_.Y(X,v6a))&&(X.serializedTransactionFlowLoggingParams?_.V9A(X.serializedTransactionFlowLoggingParams):X.serializedYpcCancelFlowLoggingParams?(X=X.serializedYpcCancelFlowLoggingParams)&&_.Gg("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",X):X.serializedYpcResumeFlowLoggingParams?(X=X.serializedYpcResumeFlowLoggingParams)&&_.Gg("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",X):X.serializedYpcPauseFlowLoggingParams?(X=X.serializedYpcPauseFlowLoggingParams)&&
_.Gg("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",X):X.serializedYpcRefundFlowLoggingParams?(X=X.serializedYpcRefundFlowLoggingParams)&&m8T("YPC_EVENT_TYPE_START",X):X.serializedYpcDeactivateFlowLoggingParams?(X=X.serializedYpcDeactivateFlowLoggingParams)&&_.Gg("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",X):X.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(X=X.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Gg("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",X))},
handleLogYpcFlowDismiss_:function(X){_.Y(X,L44)&&(X=_.Y(X,L44),X.serializedTransactionFlowLoggingParams?_.bZh(X.serializedTransactionFlowLoggingParams):X.serializedYpcCancelFlowLoggingParams?(X=X.serializedYpcCancelFlowLoggingParams)&&_.Gg("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",X):X.serializedYpcResumeFlowLoggingParams?(X=X.serializedYpcResumeFlowLoggingParams)&&_.Gg("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",X):X.serializedYpcPauseFlowLoggingParams?(X=
X.serializedYpcPauseFlowLoggingParams)&&_.Gg("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",X):X.serializedYpcRefundFlowLoggingParams&&(X=X.serializedYpcRefundFlowLoggingParams)&&m8T("YPC_EVENT_TYPE_CANCEL",X))}}];var OfT={};OfT.YtCancelRecurrenceBehavior=[_.zw.YtComponentBehavior,_.Wst,{attached:function(){var X=this;EW4(this,function(t,G){return X.ypcCancelRecurrenceHandler(t,G)})},
ypcCancelRecurrenceHandler:function(X,t){var G=this;if(!t||!t.ypcCancelRecurrenceEndpoint)return!1;if(!t.ypcCancelRecurrenceEndpoint.params)return _.$x(Error("wl")),!0;_.Ha(this.hostElement);var y=_.VE.instance,w=_.gw().resolve(_.jH(_.fp));y&&_.bX(y,t)?_.kW(y,t).then(function(z){G.ypcCancelRecurrenceSuccess_(X,t,{data:z})},function(z){G.ypcCancelRecurrenceFailure_(X,t,z)}).thenCatch(function(){_.$x(Error("xl"))}):w?w.requestDataForServiceEndpoint(t).then(function(z){G.ypcCancelRecurrenceSuccess_(X,
t,z)},function(z){G.ypcCancelRecurrenceFailure_(X,t,z)}).thenCatch(function(){_.$x(Error("xl"))}):_.$x(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(X,t,G){_.oA(this.hostElement);G.data||(G={data:G});G.data&&G.data.actions&&_.Z0(this.hostElement,G.data.actions,this.hostElement);G.data.messageRenderer?iEN(t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(t=t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Gg("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",t);_.Yt(X,"yt-service-request-completed",G)},
ypcCancelRecurrenceFailure_:function(X,t,G){_.oA(this.hostElement);iEN(t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Yt(X,"yt-service-request-error",{error:G,params:[X,t]})}}];var u5T=function(X,t){_.Xv.call(this,t)};
_.S(u5T,DMi);var QwR={};QwR.YtCompleteTransactionBehavior=[_.zw.YtComponentBehavior,_.Wst,{attached:function(){var X=this;EW4(this,function(t,G){return X.ypcCompleteTransactionHandler(t,G)})},
completeTransaction:function(X,t){var G=this;t={payments_payload:window.btoa(t.integratorData),buybucket_params:X.data.buybucketParams,offer_params:X.data.offerParams};var y=_.gw().resolve(_.fp),w=X.data.completeTransactionEndpoint,z=this.get("ypcCompleteTransactionEndpoint.actions",w);z&&_.Z0(this.hostElement,z,this.hostElement);return(z=_.VE.instance)&&_.bX(z,w)?_.kW(z,w,t).then(function(B){return!B||(B==null?0:B.error)?(B=G.get("data.serializedTransactionFlowLoggingParams",X),_.l$(new SA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
B))):{data:B}}).then(function(B){return G.handleCompleteTransactionSuccess_(B,X)},function(){return G.handleCompleteTransactionFailure_(X)}):y.requestDataForServiceEndpoint(w,t).then(function(B){return G.handleCompleteTransactionSuccess_(B,X)},function(){return G.handleCompleteTransactionFailure_(X)})},
handleCompleteTransactionSuccess_:function(X,t){X.data||(X={data:X});if(X.data.messageRenderer)return _.l$(new u5T(X.data.messageRenderer));if(X.data.trackingParams){var G=_.lw(),y=_.a4();G&&y&&_.w9(G,y,_.i$(X.data.trackingParams))}t=this.get("data.serializedTransactionFlowLoggingParams",t);RXi(t);return _.qY(X)},
handleCompleteTransactionFailure_:function(X){X=this.get("data.serializedTransactionFlowLoggingParams",X);_.nd("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",X);return _.l$(new SA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",X))},
ypcCompleteTransactionHandler:function(X,t){var G=this;if(!t.ypcCompleteTransactionEndpoint)return!1;if(!t.ypcCompleteTransactionEndpoint.transactionParams)return _.$x(Error("zl")),!0;t.ypcCompleteTransactionEndpoint&&t.ypcCompleteTransactionEndpoint.gtmData&&_.aI(t.ypcCompleteTransactionEndpoint.gtmData);var y=_.gw().resolve(_.jH(_.fp));if(y){_.Ha(this.hostElement);var w=_.VE.instance;w&&_.bX(w,t)?_.kW(w,t).then(function(z){return!z||(z==null?0:z.error)?(z=G.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
t),_.l$(new SA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",z))):{data:z}}).then(function(z){_.Yt(X,"yt-service-request-completed");
G.ypcCompleteTransactionSuccess_(t,z)},function(){return G.ypcCompleteTransactionFailure_(t)}):y.requestDataForServiceEndpoint(t).then(function(z){_.Yt(X,"yt-service-request-completed");
G.ypcCompleteTransactionSuccess_(t,z)},function(){return G.ypcCompleteTransactionFailure_(t)})}return!0},
ypcCompleteTransactionSuccess_:function(X,t){_.oA(this.hostElement);t.data||(t={data:t});_.sl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);t.data.messageRenderer||t.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(X):(_.aI('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",X));t.data.actions&&(X=Gqv(t.data.actions),t=ybR(t.data.actions),X.length&&_.hE(this.hostElement,
X),t.length&&_.Z0(this.hostElement,t,this.hostElement))},
ypcCompleteTransactionFailure_:function(X){_.oA(this.hostElement);_.sl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",X,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(X,t,G){if(t=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",t))t={serializedTransactionFlowLoggingParams:t},G&&(t.errorType=G),_.a7(X,t),_.lx()}}];var I64={};I64.YtEndpointHandlerWithYpcBehavior=[_.Wst,_.sb.YtActionHandlerBehavior,[{openWalletDialog:function(X,t,G,y,w,z,B){var V=this,b=_.d5();t=t.replace(/-/g,"+").replace(/_/g,"/");var e=_.cP().get("hl");_.iJV(_.TC(_.VY),t,b.resolve,w,function(g){z&&z();b.reject(g)},e,function(g){return V.onServerBackendAnalyticEvent_(X,G,g)},this.onDialogClose_.bind(this),y,B);
return b.promise},
openFixFlowDialog:function(X,t,G,y){X=X.replace(/-/g,"+").replace(/_/g,"/");_.TC(_.VY).openFixFlowDialog(X,t,G,y)},
onDialogClose_:function(){_.sl(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(X,t,G){_.Yt(X,"yt-commerce-action-init-done");t&&_.hE(this.hostElement,[t,{backend_analytics:G}])}}],
_.cr.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(X,t){X=this.get("data.nativeFlowEndpoint",t);t=this.get("data.fallbackEndpoint",t);X?_.hE(this.hostElement,[X]):t&&_.Yt(this.hostElement,"yt-navigate",{endpoint:t})}}],
OfT.YtCancelRecurrenceBehavior,QwR.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 X=this;EW4(this,function(t,G,y){return X.handleYPCEndpoint(t,G,y)});
this.ypcRegisterActionMapJobId_=_.PO(_.vz,function(){X.registerActionMap(X.buyFlowActionMap_)})},
detached:function(){var X=this;_.vz.cancelJob(this.ypcRegisterActionMapJobId_);_.PO(_.vz,function(){X.unregisterActionMap(X.buyFlowActionMap_)})},
handleYPCEndpoint:function(X,t,G){var y=t.ypcGetCartEndpoint;if(y){_.aa("commerce_transaction");var w=y.gtmId;w&&_.vN(w);(y=y.gtmData)&&_.aI(y)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",t)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(X,t),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",t)!=null?(this.handleYPCFixInstrumentEndpoint_(X,t),!0):t.ypcPauseSubscriptionCommand?(cmr(this.hostElement,X,t,G),
!0):t.ypcResumeSubscriptionCommand?(NXH(this.hostElement,X,t),!0):t.getPaymentInstrumentsParamsCommand?(QLQ(this.hostElement,X,t),!0):t.ypcHandleTransactionEndpoint?(OzQ(this.hostElement,X,t,G),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(X,t){var G=this;_.ls("ttcr",void 0,"commerce_transaction");t=t.ypcGetCartEndpoint;var y=t.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,w=y.encryptedPurchaseParams,z=y.serializedTransactionFlowLoggingParams,B=y.serializedPaymentsClientParams,V=this.createGetCartResponseFromParams_(y,t.offerParams,z);this.changeButtonState(X,!0);_.R8(this.openWalletDialog(X,w,y.ypcLogWalletAnalyticDataEndpoint,z,function(){G.changeButtonState(X,!1)},function(){G.changeButtonState(X,
!1)},B).then(function(b){return G.handleBuyFlowCompleteCallback_(X,V,b)},function(){return G.handleOnLoadError(V)}).then(function(b){return void G.handlePostPurchaseSuccess_(X,V,b)},function(b){return void G.handlePostPurchaseError_(b)}),function(){G.changeButtonState(X,!1);
X instanceof Element&&_.Yt(X,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(X,t,G){var y=X.completeTransactionEndpoint,w=X.handleTransactionEndpoint;t={data:{offerParams:window.btoa(t),serializedTransactionFlowLoggingParams:G}};w?t.data.handleTransactionEndpoint=w:t.data.completeTransactionEndpoint=y;X.onCartDismissCommand&&(t.data.onCartDismissCommand=X.onCartDismissCommand);return t},
onGetCartServiceRequestCompleted_:function(X,t){var G=this,y=X.target;if(t&&t.data&&t.data.messageRenderer)_.oA(this.hostElement),this.handleMessageRenderer_(t.data.messageRenderer),this.changeButtonState(y,!1);else{var w=this.get("data.encryptedPurchaseParams",t),z=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",t),B=this.get("data.ypcLogWalletAnalyticDataEndpoint",t),V=this.get("data.serializedPaymentsClientParams",t),b=this.getLoggingParams_(t);if(b||w||z)X.stopPropagation(),_.ls("ttcr",
void 0,"commerce_transaction"),w||_.oA(this.hostElement),this.changeButtonState(y,!1),z?_.sl(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Md("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:z}}},this]):w&&(this.changeButtonState(y,!0),X=null,X=this.openWalletDialog(y,w,B,b,function(){_.oA(G.hostElement);G.changeButtonState(y,!1)},function(){_.oA(G.hostElement);
G.changeButtonState(y,!1)},V),_.R8(X.then(function(e){return G.handleBuyFlowCompleteCallback_(y,t,e)},function(){return G.handleOnLoadError(t)}).then(function(e){return G.handlePostPurchaseSuccess_(y,t,e)},function(e){return G.handlePostPurchaseError_(e)}),function(){G.changeButtonState(y,!1);
_.Yt(y,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(X,t){t&&t.endpoint&&t.endpoint.ypcGetCartEndpoint&&!t.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",t.endpoint.ypcGetCartEndpoint)&&_.Z0(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",t.endpoint.ypcGetCartEndpoint)],X.target),_.Ha(this.hostElement),this.changeButtonState(X.target,!0))},
onServiceRequestError_:function(X,t){if(t&&t.params&&t.params.length){t=_.J(t.params);for(var G=t.next();!G.done;G=t.next())if((G=G.value)&&G.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",G.ypcGetCartEndpoint)&&_.Z0(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",G.ypcGetCartEndpoint)],X.target);_.oA(this.hostElement);this.changeButtonState(X.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(X,t,G){var y=G.integratorData;return y==null||y===""||G.error!=null?(y=this.getLoggingParams_(t),String(G.error)==="-1"?(t.data.onCartDismissCommand&&_.Z0(this.hostElement,[t.data.onCartDismissCommand],X),_.l$(new SA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",y,!0))):_.l$(new SA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",y))):t.data.handleTransactionEndpoint?upV(this.hostElement,t.data.handleTransactionEndpoint,{payments_payload:y,funds_guarantee_callback_client_data:G.integratorClientCallbackData}):
this.completeTransaction(t,G)},
handlePostPurchaseSuccess_:function(X,t,G){t=G.data;var y=!1,w,z;if(t&&((w=t.command)==null?0:(z=w.commandExecutorCommand)==null?0:z.commands)){var B,V;w=(B=t.command)==null?void 0:(V=B.commandExecutorCommand)==null?void 0:V.commands;for(B=0;B<w.length;B++)if(_.Y(w[B],_.gZo)){y=!0;break}}y||(t&&t.gtmDatas&&t.gtmDatas.length?_.aI(t.gtmDatas[0]):_.aI('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));G.data&&G.data.actions&&(t=Gqv(G.data.actions),G=ybR(G.data.actions),t.length&&
_.hE(this.hostElement,t),G.length&&_.Z0(this.hostElement,G,X))},
handlePostPurchaseError_:function(X){X&&X.payload&&X.payload.isUserDismiss||_.xA(Error("Bl"))},
handleOnLoadError:function(X){X=this.getLoggingParams_(X);return _.l$(new SA("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",X))},
getLoggingParams_:function(X){return this.get("data.serializedTransactionFlowLoggingParams",X)},
handleMessageRenderer_:function(X){var t=_.lv(X,"renderer"),G=_.Md("openPopupConfig");t==="confirmDialogRenderer"&&G&&_.sl(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:G.popupTypeMap[t],popup:X}},this])},
handleYPCFixInstrumentEndpoint_:function(X,t){var G=this,y=t.ypcFixInstrumentEndpoint;t=y.encryptedFixInstrumentParameters;this.logFixFopEvent_(y,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(X,!0);this.openFixFlowDialog(t,function(w,z){G.onFixFlowCompleteCallback_(y,w,z)},function(){return G.changeButtonState(X,!1)},function(){G.changeButtonState(X,!1);
G.logFixFopEvent_(y,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(X,t,G){var y=_.GA("payments.business.integration.scenario.FixInstrument");if(t==y.IntegratorCallbackType.ON_COMPLETE){t="FIX_FOP_EVENT_TYPE_CANCEL";var w=null;G.error!=null?G.error!=y.OnCompleteCallbackError.USER_CANCELLED&&(_.Z0(this.hostElement,[X.errorAction],this.hostElement),t="FIX_FOP_EVENT_TYPE_FAILURE",w="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Z0(this.hostElement,[X.successAction],this.hostElement),t="FIX_FOP_EVENT_TYPE_SUCCESS");_.Z0(this.hostElement,[X.onFinishAction],
this.hostElement);this.logFixFopEvent_(X,t,w)}},
logFixFopEvent_:function(X,t,G){(X=X.serializedFixFopLoggingParams)?(t={eventType:t,serializedFixFopLoggingParams:X},G!=null&&(t.errorType=G),_.a7("fixFopFlow",t),_.lx()):_.xA(Error("Cl"))},
changeButtonState:function(X,t){_.A("enable_ypc_spinners")&&X&&(X.is==="yt-button-renderer"||X.is==="ytd-button-renderer")&&(X.disabled=t)}}];var WIv=function(X){this.JSC$32019_clientRoot=X;this.feedbackCollectorActionMap={"yt-help-dialog-requested":EFr,"yt-feedback-dialog-requested":P$N,"yt-signal-action-help":UiR,"yt-signal-action-send-feedback":miH,"yt-send-feedback-action":iza,"yt-user-feedback-endpoint":Lf2};_.oO(_.Hq.getInstance(),this.feedbackCollectorActionMap,this.JSC$32019_clientRoot)},cc4;var pbv=function(X){this.JSC$32024_clientRoot=X;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":vFv.bind(null,this.JSC$32024_clientRoot),"yt-signal-action-delete-all-downloads":lvR,"yt-signal-action-delete-download":xiv,"yt-signal-action-delete-playlist-download":Mxa,"yt-signal-action-install-pwa":wlv,"yt-signal-action-refresh-downloads":G7q,"yt-offline-video-endpoint":HXV,"yt-offline-playlist-endpoint":JHi,"yt-update-local-app-setting-command":nIq,"yt-offline-orchestration-action-command":bXT,
"yt-signal-action-undo-delete-download":$Iv,"yt-local-watch-history-command":eVq};_.oO(_.Hq.getInstance(),this.downloadManagerActionMap,this.JSC$32024_clientRoot);_.ac.instance=new _.ac},rcV;var lU=function(){var X=_.O.apply(this,arguments)||this;X.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_"};X.remoteApi_=null;return X};
_.S(lU,_.O);_.H=lU.prototype;
_.H.ready=function(){_.A("polymer_enable_mdx")&&(lea({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.A("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.A("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.A("enable_cast_short_lived_lounge_token")}),_.DU("yt-remote-connection-change",this.handleConnectionChange_,this),_.DU("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=GZ2())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.H.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.H.handleConnectionChange_=function(X){(this.mdxConnected=X)?(X=MCr(),!X&&E1B()&&UrR()&&(X={key:"cast-selector-receiver",name:UrR()}),X=X.name):X=null;this.receiverName=X;_.Vs(this.remoteApi_);(this.remoteApi_=GZ2())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.H.handleReceiverAvailabilityChange_=function(){var X=fer();E1B()&&_.O2("yt-remote-cast-available")&&X.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=X.length>0};
_.H.handleRemoteQueueChange_=function(){var X=this.currentVideoId_,t=this.currentListId_,G=CR(this.remoteApi_);this.currentVideoId_=G.videoId;this.currentListId_=G.listId;this.currentVideoId_&&_.sl(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.A("polymer_enable_mdx_queue")?this.currentListId_:null,X,t])};
_.H.handleAddToQueueAction_=function(X){X=_.Y(X,K4Q);this.remoteApi_&&(X.videoId?this.remoteApi_.addVideo(X.videoId):X.playlistId&&this.remoteApi_.addPlaylist(X.playlistId))};
_.H.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.H.handleInsertInQueueAction_=function(X){X=_.Y(X,Oui);this.remoteApi_&&X.videoId&&this.remoteApi_.JSC$19599_insertVideo(X.videoId)};
_.H.handleRemoveFromQueueAction_=function(X){X=_.Y(X,uNr);this.remoteApi_&&X.videoId&&this.remoteApi_.JSC$19599_removeVideo(X.videoId)};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],lU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.U("design:type",Object)],lU.prototype,"appId",void 0);_.E([_.K(),_.U("design:type",Boolean)],lU.prototype,"mdxConnected",void 0);_.E([_.K(),_.U("design:type",Boolean)],lU.prototype,"receiverAvailable",void 0);_.E([_.K(),_.U("design:type",Object)],lU.prototype,"receiverName",void 0);_.E([_.K(),_.U("design:type",Object)],lU.prototype,"currentVideoId_",void 0);
_.E([_.K(),_.U("design:type",Object)],lU.prototype,"currentListId_",void 0);_.E([_.$F({is:"yt-mdx-manager",disableElementRegistration:!0})],lU);_.N(lU,"yt-mdx-manager",void 0,{mode:2});var N$R;var P4v;var xd=function(){var X=_.O.apply(this,arguments)||this;X.APP_IDS={ytr:3,ytm:5};X.JSC$20839_timeoutId_=0;X.actionMap={"yt-open-create-family-dialog":"open"};return X};
_.S(xd,_.O);_.H=xd.prototype;_.H.created=function(){ySH(2200)};
_.H.detached=function(){this.observer_&&this.observer_.disconnect()};
_.H.open=function(X,t){var G=this,y=X.serializedYpcFamilyCreateLoggingParams;this.JSC$20839_timeoutId_=setTimeout(this.abort_.bind(this,X.postFlowErrorEndpoint,y),3E4);t&&(this.onReadyCallback_=t);var w=_.Sm(this.hostElement).querySelector("#unicorn-iframe");y&&y&&U84("ypcFamilyCreateFlowStarted",y);_.$Df("family_creation",function(){var z=_.GA("gapi.family_creation.render");_.GA("gapi.config.update")("iframes/family_creation/url",G.getFamilyCreationUrlWithUnicornParams_());var B=3;X.appId&&X.appId in
G.APP_IDS&&(B=G.APP_IDS[X.appId]);B={authUser:_.Md("SESSION_INDEX")||0,clientId:B,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Md("HL"),initialflow:[4,5,6,7],m:G.isMobile?1:0,onFlowComplete:G.onUnicornFlowComplete_.bind(G,X.postFlowSuccessEndpoint,y),onError:G.onUnicornFlowError_.bind(G,X.postFlowErrorEndpoint,y),onReady:G.onUnicornFlowReady_.bind(G,X.referencePcidParams)};z(w,B)})};
_.H.close=function(){_.Sm(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.H.onUnicornFlowComplete_=function(X,t){this.close();t&&t&&U84("ypcFamilyCreateFlowSucceeded",t);_.Yt(this.hostElement,"yt-navigate",{endpoint:X})};
_.H.onUnicornFlowError_=function(X,t){this.close();t&&U84("ypcFamilyCreateFlowCancelled",t);_.Yt(this.hostElement,"yt-navigate",{endpoint:X})};
_.H.onUnicornFlowReady_=function(X){var t=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();X&&_.GA("gapi.family_creation.setConfig")(0,X);this.observer_=new MutationObserver(function(){_.Sm(t.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Sm(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Sm(this.hostElement).querySelector("#dialog").open()};
_.H.getFamilyCreationUrlWithUnicornParams_=function(){return _.Md("YTR_FAMILY_CREATION_URL")};
_.H.getCurrentUrl_=function(){return document.location.href};
_.H.abort_=function(X,t){this.clearTimeout_();this.onUnicornFlowError_(X,t)};
_.H.clearTimeout_=function(){clearTimeout(this.JSC$20839_timeoutId_)};
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],xd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],xd.prototype,"isMobile",void 0);_.E([_.K(),_.U("design:type",Object)],xd.prototype,"onReadyCallback_",void 0);_.E([_.K(),_.U("design:type",Object)],xd.prototype,"observer_",void 0);_.E([_.$F({is:"yt-create-family-dialog",disableElementRegistration:!0})],xd);
_.N(xd,"yt-create-family-dialog",function(){if(P4v===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);var t=X.content,G=t.insertBefore;N$R===void 0&&(N$R=document.createElement("template"));var y=N$R;G.call(t,y.content.cloneNode(!0),X.content.firstChild);P4v=X}X=P4v;return X},{mode:2});var EN2;var UUr;var fJ=function(){var X=_.O.apply(this,arguments)||this;X.STEP=1;X.BLOCK_ON=80;X.MIN_PROGESS=0;X.MAX_PROGESS=100;return X};
_.S(fJ,_.O);_.H=fJ.prototype;_.H.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.H.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));_.gw().addProvider({provide:uKQ,useValue:this})};
_.H.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.H.finish=function(){var X=this;this.progress=this.MAX_PROGESS;jiq(function(){X.progress==X.MAX_PROGESS&&(X.hostElement.hidden=!0)})};
_.H.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.ke.Object.defineProperties(fJ.prototype,{progress:{configurable:!0,enumerable:!0,set:function(X){this.progress_=X;var t="scaleX("+X/this.MAX_PROGESS+")",G=_.Sm(this.hostElement).querySelector("#progress").style;G.transform=t;G.webkitTransform=t;this.hostElement.setAttribute("aria-valuenow",String(X))},
get:function(){return this.progress_}}});
_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],fJ.prototype,"ytComponentBehavior",void 0);_.E([_.$F({is:"yt-page-navigation-progress",disableElementRegistration:!0})],fJ);
_.N(fJ,"yt-page-navigation-progress",function(){if(UUr===void 0){var X=document.createElement("template");_.Z(X,'\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');X.content.insertBefore(_.m().content.cloneNode(!0),
X.content.firstChild);var t=X.content,G=t.insertBefore;EN2===void 0&&(EN2=document.createElement("template"));var y=EN2;G.call(t,y.content.cloneNode(!0),X.content.firstChild);UUr=X}X=UUr;return X},{mode:2});var mUR={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"},Rgq={"font-size":"12px","font-style":"italic"},ifN={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.AHa=function(){return _.n(function(X){_.W$(X)})};var LIN=_.Fp(function(X){var t=function(){return X.data().subtext},G={};
return _.k("snackbar-view-model",{class:_.cl("snackbarViewModelHost",X.className)},_.k("div",{class:_.cl("snackbarViewModelEngagementBarWrapper",X.className)},_.k(_.d,{cond:function(){return X.data().image},
then:function(y){return _.k(_.gr,{data:y,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.k(_.d,{cond:function(){return X.data().imageContent},
then:function(){return _.k("div",{class:"snackbarViewModelAvatarContainer"},_.k(_.M7,{data:function(){return X.data().imageContent}},{decoratedAvatarViewModel:_.lD}))}}),_.k("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.k("div",{class:_.cl((G.snackbarViewModelTitle=!0,G.snackbarViewModelTitleWithSubtext=t,G))},_.k(_.eh,{text:function(){return X.data().text}})),_.k(_.d,{cond:t,
then:function(){return _.k("div",{class:"snackbarViewModelSubtext"},_.k(_.eh,{text:function(){return t()}}))}})),_.k(_.d,{cond:function(){return X.data().buttons},
then:function(){return _.k("div",{class:"snackbarViewModelButtonClassWrapper"},_.k(_.M7,{data:function(){return X.data().buttons}},{buttonViewModel:function(y){return _.k(_.QK,{data:y.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:X.target})}}))}})))},"uh");_.DW(_.Fp(function(){function X(P,l,R){h(P);W(R);T("in");g(!0);t(P,l);B=setTimeout(function(){G()},l)}
function t(P,l){var R,L=(R=P.text)==null?void 0:R.content;P=_.yj(P.rendererContext);L&&(l={label:L,command:P,durationMs:l},_.gw().resolve(_.WT).enqueue(l))}
function G(P){T("out");P&&clearTimeout(B)}
function y(){G(!0)}
function w(P){if(P){var l=P.snackbarViewModel,R=P.durationMs,L=P.target;R||(R=3E3);l&&(P=_.gw().resolve(_.jH(_.K3)))&&P.enqueue({isOpened:e,open:function(){X(l,R,L)},
close:G},0)}}
var z=_.VN("snackbar-container"),B=void 0,V=_.J(_.sm(!1,void 0,"jJ4tBf")),b=V.next().value;V=V.next().value;var e=b,g=V;b=_.J(_.sm("out",void 0,"M6Rbpb"));var F=b.next().value,T=b.next().value;b=_.J(_.sm(void 0,void 0,"aFswib"));var D=b.next().value,h=b.next().value;b=_.J(_.sm(void 0,void 0,"mlWWhb"));var u=b.next().value,W=b.next().value,c=_.NI(function(){if(F()==="out"){g(!1);h(void 0);W(void 0);var P=_.gw().resolve(_.jH(_.K3));P&&jDV(P,0)}});
_.LY(function(){var P=_.gw().resolve(_.jH(_.dwT));P&&(P.showSnackbarFn=w,P.closeSnackbarFn=y)});
return _.k("snackbar-container",{class:"ytSnackbarContainerHost",el:z},_.k(_.d,{cond:function(){return e()&&!!D()},
then:function(){var P={};return _.k("div",{class:_.cl("ytSnackbarContainerSnackbarContainer",(P.ytSnackbarContainerMobile=!1,P.ytSnackbarContainerPivotBar=function(){var l;return!((l=_.gw().resolve(_.jH(_.eG2)))==null||!l())},P.ytSnackbarContainerOpened=function(){return e()&&F()==="in"},P.ytSnackbarContainerClosed=function(){return e()&&F()==="out"},P)),
"on:animationend":c},_.k(LIN,{data:function(){return D()},
target:function(){return u()}}))}}))},"vh"),"snackbar-container");_.DW(_.v2q,"yt-tooltip");_.DW(_.Fp(function(){var X=_.w5(_.dCV);return _.k("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var t;return(t=X())==null?void 0:t.announcement})},"wh"),"yt-ephemeral-actions");var NrH=new Map;var YAH=function(X,t){var G=this;this.handleError=X;this.logEventInternal=t;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){G.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
YAH.prototype.logError=function(X){this.handleError(X)};
YAH.prototype.logEvent=function(X,t){switch(X){case "IDB_DATA_CORRUPTED":_.A("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",t);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",t);break;case "IS_SUPPORTED_COMPLETED":_.A("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",t);break;case "QUOTA_EXCEEDED":vNT(this,t);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",t);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":X=Object.assign({},t,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",X)}};
var vNT=function(X,t){_.rF.getInstance().estimate().then(function(G){G=Object.assign({},t,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:EIR(G==null?void 0:G.usage),deviceStorageQuotaMbytes:EIR(G==null?void 0:G.quota)});X.logEventInternal("idbQuotaExceeded",G)})};var Mp=function(){var X=_.O.apply(this,arguments)||this;X.tabGesturesIsActive=!1;X.deprecateFullerscreenUi=_.A("web_watch_fullerscreen_deprecation_ui");X.hasDelegation=!1;X.darkerDarkTheme=_.A("web_darker_dark_theme");X.isFrostedGlassInitialized=!1;X.frostedGlassExp=_.A("web_frosted_glass");X.mastheadHiddenFocusWithinKillswitch=_.A("web_masthead_hidden_focus_within_killswitch");X.clientOnlyWizTooltipsEnabled=_.A("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");X.scrollAtTop=
!0;X.guideScrollTop=0;X.isTheaterModeSession=_.X3("START_IN_THEATER_MODE");X.iMaxTheaterMode=_.A("web_watch_imax_theater_mode");X.isFullWindowSession=_.X3("START_IN_FULL_WINDOW_MODE");X.hasCreateFamilyDialog=!1;X.mastheadHeight=56;X.networkStatusManager=new _.Jv;X.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"};X.dynamicActionMap={"yt-run-attestation-command":function(t){var G=_.jfq.instance,y=_.Y(t,_.Y1Y);return y?_.A("use_rta_manager_for_async")&&
HlN()?vWH(G,y,t.clickTrackingParams):LA4(G,y,t.clickTrackingParams):_.l$(Error("mi"))}};
X.isFrostedGlassDisabled=!1;X.isChannelOrPlaylistPage=!1;return X};
_.S(Mp,_.O);_.H=Mp.prototype;_.H.created=function(){var X=_.gw();_.A("kevlar_clear_duplicate_pref_cookie")&&_.PO(_.vz,function(){var t=_.QQ.get("PREF");t&&!/f\d=/.test(t)&&(t=_.Yx("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=t?"PREF=null;domain="+t+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.A("gzip_gel_with_worker")&&_.dS_();_.A("jspb_serialize_with_worker")&&uER();_.A("web_worker_availability_check")&&PpH();_.A("nwl_init_killswitch")||KX4().then(function(){_.vz.addLowPriorityJob(adH)});
this.pageManagerAttachedPromise=_.d5();this.ytdAppBehavior.loadDepsPromise=_.m9([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.d2(this.onThrottledScroll,200,this);_.A("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);sOv();Y54=!!_.GA("ytappsettings.initialized");IW=_.GA("ytappsettings.previousValue");zXH=_.GA("ytappsettings.previousSnapshotTime");Y54||(Y54=!0,HEB());$SN();tmv();_.fY("DEFERRED_DETACH",
_.A("kevlar_tuner_should_defer_detach"));_.fY("REUSE_COMPONENTS",!0);_.fY("STAMPER_STABLE_LIST",!0);_.fY("SCHEDULED_LAZY_LIST",!0);_.fY("openPopupConfig",vjR);_.fY("useClickHandler",!0);_.A("kevlar_shell_cleanup")&&_.vz.addLowPriorityJob(kpR.bind(this,_.tA.caches));_.X3("IS_SHELL_LOAD")&&_.vP({shellStartupDurationMs:Math.round((0,_.gl)()-_.Ul())});Sdi(this.networkStatusManager);_.A("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",gIV(mUR)),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!",
gIV(Rgq)),console.log("%cVisit http://go/join-youtube-web to apply today.",gIV(ifN)));_.eZT(X.resolve(_.Qv),1E3)};
_.H.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var X=U_2();X&&!_.A("external_fullscreen_killswitch")&&document.addEventListener(X,this.setFullscreen.bind(this));(X=window.matchMedia("(prefers-color-scheme: dark)"))&&X.addEventListener&&X.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.H.attached=function(){var X=this;_.wv().processSignal("ci");_.A("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.c5Y?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Q6(_.TAf(),"SUCCESS");this.updateIconSet();_.Ti(this.guideInnerContent,!1);_.m4().initVisibilityObserver();this.guideService.guideElement=this.guide;var t=document.createElement("ytd-miniplayer"),G=_.Sm(this.hostElement).querySelector("#content");
_.Sm(this.hostElement).insertBefore(t,G);_.wv().processSignal("ma");_.gw().resolve(_.G2).init(t);_.X3("IS_SHELL_LOAD")&&(G=document.createElement("ytd-network-status-banner"),_.Sm(this.hostElement).insertBefore(G,t));_.A("kevlar_right_click_on_lockups")&&_.oM._onCaptureClick&&document.addEventListener("contextmenu",_.oM._onCaptureClick.bind(_.oM),!0);var y=function(){var w=_.FP("yt-page-navigation-progress");_.Sm(X.hostElement).appendChild(w)};
setTimeout(function(){_.wv().parkOrScheduleJob(y,0,"eocs",16)},0);
_.A("service_worker_push_enabled")&&_.PO(_.vz,EeQ);_.oO(_.Hq.getInstance(),this.dynamicActionMap,this.hostElement);_.Yt(this.hostElement,"ytd-app-attached");_.wv().processSignal("aa");wsQ(this.hostElement);_.dl("gapi.load",_.$Df);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.PO(_.vz,
function(){var w=document.createElement("ytd-video-preview");_.Sm(_.Sm(X.hostElement).querySelector("#video-preview")).appendChild(w)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.PO(_.vz,function(){YdR();X.registerWithViewTransitionManager()});
if(_.vy()&&this.isAppDarkTheme()!==_.iu())this.onDarkModeToggledAction();else t=_.Lp()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==t&&(_.A("enable_dark_theme_only_on_shorts")?_.ok(_.A("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Bx(window.location.href,{theme:"dark"})):_.Mj(new _.NJ("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(fzN=new xER(this.hostElement)),rcV=new pbv(this.hostElement),cc4=new WIv(this.hostElement),jlT=new eDr(this.hostElement)};
_.H.getThemeSettingsToLog=function(){var X=_.Lp()==="USER_INTERFACE_THEME_DARK";X=_.vy()?_.iu()?"os-dark":"os-light":X?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:X,cookiesEnabled:_.cx()}};
_.H.detached=function(){_.AE(this.guideInnerContent);_.vz.cancelJob(OO);OO=0;_.vz.cancelJob(QP);QP=0;_.qVY(yLH);yLH.length=0;$82=_.irs=null;_.m4().dispose();_.A("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Ja(_.Hq.getInstance(),fzN.playlistHandlerActionMap,fzN.JSC$31718_clientRoot);_.Ja(_.Hq.getInstance(),rcV.downloadManagerActionMap,rcV.JSC$32024_clientRoot);_.Ja(_.Hq.getInstance(),cc4.feedbackCollectorActionMap,cc4.JSC$32019_clientRoot);
for(var X=_.J(jlT.eventListeners),t=X.next();!t.done;t=X.next()){var G=_.J(t.value);t=G.next().value;G=G.next().value;G=_.J(G);for(var y=G.next();!y.done;y=G.next()){var w=_.J(y.value);y=w.next().value;w=w.next().value;t.removeEventListener(y,w)}}_.Ja(_.Hq.getInstance(),jlT.autonavPauseActionMap,jlT.JSC$19782_clientRoot)};
_.H.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.cP().getFlag(186)};
_.H.computeIsInlinePreviewEnabled=function(X,t,G){return!G&&_.VH2({miniplayerIsActive:X,miniplayerPlaybackState:t})};
_.H.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_FROSTED_GLASS_MODE",payload:!_.A("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"}))};
_.H.computeIsFrostedGlassDisabled=function(X,t,G,y){return X||t||G||y&&_.A("web_frosted_glass_disable_watch")};
_.H.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.A("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.H.computeIsHomePage=function(X,t){if(!X||t==null||!t.endpoint)return!1;var G;return((G=_.Y(t.endpoint,_.pp))==null?void 0:G.browseId)==="FEwhat_to_watch"};
_.H.updateIsChannelOrPlaylistPage=function(){if(_.A("web_frosted_glass")){var X,t,G=(t=(X=_.gw().resolve(_.jH(_.AS)))==null?void 0:X.getCurrentPage())==null?void 0:t.pageSubtype;this.isChannelOrPlaylistPage=G?["channel","channels","playlist"].includes(G):!1}};
_.H.scheduleFrostedGlassInitialization=function(){var X=this;_.A("web_frosted_glass")&&_.wv().parkOrScheduleJob(function(){X.isFrostedGlassInitialized=!0},0,_.yU(["eocs",
"cr"]),300)};
_.H.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.V1Y(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Dl({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.H.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(bVR(!0))};
_.H.onYtSignalActionRequestPersistentStorage=function(){if(!_.A("request_persistent_storage_killswitch")){var X=_.gw().resolve(_.w4i);X.cachedPersistStatePromise||(X.cachedPersistStatePromise=Zya())}};
_.H.handleYtChannelCreationFormEndpoints=function(X){X&&this.ytComponentBehavior.resolveCommand(X)};
_.H.handleShowEngagementPanelEndpoint=function(X){X&&this.ytComponentBehavior.resolveCommand(X)};
_.H.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(bVR(!1))};
_.H.initIconDefs=function(X,t){var G=document.createElement("iron-iconset-svg");G.name=X;X=document.createElementNS("http://www.w3.org/2000/svg","svg");G.appendChild(X);X.appendChild(t);document.body.appendChild(G);return G};
_.H.onWindowResized=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var X=_.sTB.getInstance();X.documentWidth_=document.body.clientWidth;T5B(X)};
_.H.onWindowScrolled=function(){var X=_.gw().resolve(_.AS).getCurrentPage();if(X!=null&&X.getScrollTop){var t=this.ytdReduxBehavior,G=t.dispatch;X=X.getScrollTop()<=0;G.call(t,_.Dl({type:"SET_SCROLL_AT_TOP",payload:X}))}};
_.H.guideIsVisibleButNotPersistentSelectorChanged=function(){var X=_.gw().resolve(_.AS).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=X.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"),
X.setScrollTop(this.guideScrollTop));_.D0(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.H.getCurrentPageScrollableElementType=function(){var X=_.gw().resolve(_.AS).getCurrentPage();if(X&&X.getPageScrollingElement())return X.getPageScrollingElement().nodeName};
_.H.observeGuideVisibility=function(){var X=_.sTB.getInstance(),t=this.miniGuideVisible;X.guidePersistentAndVisible_=this.guidePersistentAndVisible;X.miniGuideVisible_=t;T5B(X)};
_.H.handleEduDismissAction=function(X){X&&X.eduDismissAction&&(_.sl(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.gUo.getInstance(),_.gv.set(X.eduDismissAction.key+"-dismissed",!0))};
_.H.handleEduImpressionAction=function(X){if(X&&X.eduImpressionAction){var t=_.gUo.getInstance();X=X.eduImpressionAction.key;t.JSC$12885_eduDisplayedThisLoad_[_.jTt[X].setKey||X]=!0;_.gv.set(X+"-impression",parseInt(_.gv.get(X+"-impression")||0,10)+1)}};
_.H.onYtSignalActionConfirmMentionsEdu=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.A_.getInstance();_.Tm.set("edu-dismissed",!0)};
_.H.onYtSignalActionRecordMentionsEduImpression=function(){_.A_.getInstance();var X=_.Tm.set,t=parseInt(_.Tm.get("edu-impressions"),10);X.call(_.Tm,"edu-impressions",(isFinite(t)?t:0)+1)};
_.H.onYtPageManagerAttached=function(X){var t;((t=_.k3(X))==null?void 0:t.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.H.onInvokeInstrumentManagerAction=function(X,t){iXa(t,X)};
_.H.updateIconSet=function(){var X=this.hostElement.querySelector("#masthead");if(X){var t=_.hb(X),G=t.querySelector("g#yt-logo-updated");G&&(X=document.createElementNS("http://www.w3.org/2000/svg","defs"),X.appendChild(G.cloneNode(!0)),(t=t.querySelector("g#yt-logo-red-updated"))&&X.appendChild(t.cloneNode(!0)),this.initIconDefs("yt-logos-ext",X))}};
_.H.updateMastheadData=function(){var X=this,t,G,y,w,z;return _.n(function(B){if(B.nextAddress==1){t=X.data;G=X.hostElement.querySelector("#masthead");if(!G)return B.return();_.V8(X,function(){G.data=X.topbarData});
if(!X.get("response.topbar",t)||X.get("response.topbar.responseContext.maxAgeSeconds",t)===0)return B.jumpTo(0);if(y=_.gw().resolve(_.b3))return B.yield(y(),6);w=_.gw().resolve(_.Zz);return B.yield(w.put("service:topbar:fallback",new _.qE({innertubeResponse:X.get("response.topbar",t)})),0)}return(z=B.yieldResult)?B.yield(z.put("service:topbar:fallback",new _.qE({innertubeResponse:X.get("response.topbar",t)})),0):B.jumpTo(0)})};
_.H.computeTopbarData=function(X){if(!X)return null;var t;return this.isShortsPage&&this.topbarData&&!_.Y((t=X.response)==null?void 0:t.topbar,jIB)?this.topbarData:X.response&&"topbar"in X.response?_.Y(X.response.topbar,jIB)||null:null};
_.H.onSetTheaterModeEnabled=function(X,t){this.isTheaterModeSession=t.enabled;this.setTheaterModeStyles(t.enabled)};
_.H.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.H.onDarkModeToggledAction=function(){var X=_.qJ(window.location.href);if(!_.GZl(X)){(X=!!_.Jt(window.location.href).themeRefresh)&&_.Mj(new _.NJ("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!X){HEB();X={themeRefresh:1};var t=_.gw().resolve(_.AS);if(t.isOnWatch()){var G,y;t=((G=t.getPlayerFromWatch())==null?void 0:(y=G.getPlayer())==null?void 0:y.getCurrentTime())||0;t>=1&&(X.time_continue=Math.floor(t))}_.cx()||_.Lp()!=="USER_INTERFACE_THEME_DARK"||(X.theme="dark");_.ok(_.Bx(window.location.href,
X))}_.A("web_appshell_refresh_trigger")&&_.tA.caches&&this.refreshAppShellResponse();G=_.wk(window.location.href);_.OI(_.gw().resolve(_.ua),_.eQ(G,"theme"))}};
_.H.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.H.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.H.onPlayerFullscreen=function(X){_.gk();this.playerFullscreen=X};
_.H.setRestrictedMode=function(X){var t=_.cP();_.pq(0,58,X);t.save();_.gw().resolve(_.U2).reload()};
_.H.onPageChanged=function(X){X.detail.newPageType==="ytd-watch-flexy"||X.detail.newPageType==="ytd-watch-fixie"||X.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.aA("WEB_PAGE_TYPE_WATCH")):X.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.aA("WEB_PAGE_TYPE_SHORTS")):X.detail.newPageType==="ytd-browse"&&X.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.aA("WEB_PAGE_TYPE_MINI_APP")):_.A("web_frosted_glass")&&X.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.aA("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.aA("WEB_PAGE_TYPE_UNKNOWN"));X.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.H.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.H.onGuideToggleTap=function(){_.Yt(this.hostElement,"yt-guide-toggle")};
_.H.onGuideToggleHover=function(){_.Yt(this.hostElement,"yt-guide-hover")};
_.H.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.H.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.H.setMastheadTheme=function(){var X=_.hb(this.hostElement).querySelector("#masthead");X&&(X.dark=X.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),X.isDarkThemeForced=!1)};
_.H.onRequestPanelModeChange=function(X,t){this.hideHeaderShadow=t.mode!=="seamed"};
_.H.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.H.onDrawerIronSelect=function(X){_.k3(X).id==="guide"&&this.processDrawerIronSelect()};
_.H.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var X="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(X="opened"));_.Yt(this.hostElement,"yt-autonav-pause-guide-"+X)};
_.H.onAddElementToApp=function(X){_.Sm(this.hostElement).appendChild(X.detail)};
_.H.onThrottledScroll=function(){var X=_.gw().resolve(_.AS).getCurrentPage();X&&(this.scrollAtTop=X.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.H.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.H.setFullscreen=function(){if(_.A("external_fullscreen")||!this.isWatchPage){var X=_.A("kevlar_fullerscreen_root_only_killswitch")?!!_.gk():!!_.gk()&&_.gk()===document.documentElement;X=(this.isWatchPage||_.A("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(X||this.isFullWindowSession);this.fullscreen!==X&&((this.fullscreen=X)&&_.D0(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.dV().dispatch(_.t1Y(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.sl(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.H.setFullscreenLoggingForShorts=function(X){var t,G,y;return _.n(function(w){if(w.nextAddress==1)return w.yield((t=_.sW())==null?void 0:t.getPlayerPromise(),2);G=w.yieldResult;(y=G)==null||y.setAppFullscreen(X);_.W$(w)})};
_.H.updateMastheadCssHeight=function(){var X=this.mastheadHeight;this.fullscreen&&(X=0);_.Kd(this.hostElement,{"--ytd-masthead-height":X+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.H.updateNetworkStatusBannerDisplayStatus=function(){var X="unset";this.fullscreen&&(X="none");_.Kd(this.hostElement,{"--ytd-network-status-banner-display":X})};
_.H.updateNetworkStatusBannerCssHeight=function(){var X="unset";this.fullscreen&&(X="0px");_.Kd(this.hostElement,{"--ytd-network-status-banner-max-height":X})};
_.H.updateScrollAndMasthead=function(X,t,G,y){this.iMaxTheaterMode||(y=!1);var w=_.gw().resolve(_.AS).getCurrentPage();X||t||y?(document.body.classList.add("no-scroll"),w.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Ik(this,this.onScroll)),w.setScrollTop(0),_.Kd(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.$R()+"px"})):G?_.Yt(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Yt(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
w.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Ik(this,this.onScroll)));this.mastheadHidden=X||t||G;this.updateMastheadCssHeight();_.A("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.H.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.H.onYtNavigateAction=function(X){X=this.get("navigateAction.endpoint",X);_.Yt(this.hostElement,"yt-navigate",{endpoint:X})};
_.H.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var X=document.createElement("yt-create-family-dialog");_.Sm(this.hostElement).appendChild(X);this.hasCreateFamilyDialog=!0}};
_.H.onSetPushNotificationsEnabledCommand=function(X){var t=this,G=_.Y(X,eTH);G&&typeof G.enabled==="boolean"&&(Notification.permission!=="granted"?cLR().then(function(){Notification.permission==="granted"?(ALN(!G.enabled).then(D8V),G.successAction&&_.hE(t.hostElement,[G.successAction])):G.failureAction&&_.hE(t.hostElement,[G.failureAction])}):(ALN(!G.enabled).then(D8V),G.successAction&&_.hE(this.hostElement,[G.successAction])))};
_.H.onYtSignalActionEnableChromeNotifications=function(){psi(!0)};
_.H.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.Y(this.topbarData.hotkeyDialog,Tv2)}}})};
_.H.onYtSignalActionShowKeyboardShortcutDialog=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.H.onYtEndpointChangeHandler=function(X,t){var G=_.TC(_.E2);G.pendingPrefetchJob_&&(t=!(!t||t.autonav!="1"),G.pendingPrefetchJob_.resolve(X&&_.LkV(X)?_.vQV(X,t):""),G.pendingPrefetchJob_=null);_.sl(this.hostElement,"yt-pause-active-page-context");_.sl(this.hostElement,"ytd-log-youthere-nav");_.sl(this.hostElement,"yt-prepare-page-dispose")};
_.H.handleCommandWithCommandHandler=function(X,t){_.Wj.instance.resolveCommand(X,{form:{element:t}})};
_.H.onYtTimedCommand=function(X){var t=this;X=_.Y(X,wNV);var G=X.command;G&&_.f5(_.vz,function(){var y=_.Y(G,_.NB4);y?(_.Wj.instance.resolveCommand(G),t.maybeLogGetAnswerRequestTick(y)):_.Z0(t.hostElement,[G],t.hostElement)},X.timeoutMs||0)};
_.H.maybeLogGetAnswerRequestTick=function(X){X&&X.isFirstRequest&&(_.aa("search_overview_answer"),_.ls("so_rq",void 0,"search_overview_answer"))};
_.H.onYtSignalActionSkipNavigation=function(){var X=_.gw().resolve(_.AS).getCurrentPage();_.bx(X)};
_.H.onYtSignalActionCopyDebugData=function(){x8B()};
_.H.handleEntityUpdateCommand=function(X){_.WK(_.Y(X,_.PE4).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.H.logFlowLoggingEventCommand=function(X){if(X=_.Y(X,_.pc6))if(X.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var t=X.flowEventNamespace,G=X.flowEventType,y=X.flowType;y&&t&&G&&_.NQA(_.O8(t,G,X.flowEventMetadata),y)}else{t=_.Ql();G=X.flowEventNamespace;y=X.flowEventType;var w=X.flowType;w&&G&&y&&_.uu(t,_.O8(G,y,X.flowEventMetadata),w,X.flowNonce)}};
_.H.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.H.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.H.onTouchStart=function(){var X=_.RI();_.lw()&&_.n5(X.JSC$13112_screenManager,{visualElement:X.ve})};
_.H.handleSelectLanguageCommand=function(X){if(X=_.Y(X,buB).hl){var t=_.cP();t.set("hl",X);t.save();_.gw().resolve(_.U2).reload()}};
_.H.handleConfirmDialogEndpoint=function(X){(X=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(X))&&this.ytOpenPopupBehavior.openPopup(X)};
_.H.handleOpenPopupNavigationEndpoints=function(X,t){_.A("web_button_rework")&&(X=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(X))&&this.ytOpenPopupBehavior.openPopup(X,t)};
_.H.handleSaveCommandToSessionStorage=function(X){if(X=_.Y(X,_.q1Y)){var t=X.key;t&&X.command&&window.sessionStorage.setItem(t,JSON.stringify(X.command))}};
_.H.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(X){X&&X.active&&X.active.postMessage({type:"refresh_shell"})}).catch(function(X){X.name!=="SecurityError"&&_.xA(X)})};
_.H.onDeviceThemeChanged=function(){var X=_.iu();_.pq(_.cP(),185,X);_.cP().save()};
_.H.handleYtRegisterPromoCommand=function(X){if(_.Y(X,dWv)){var t=_.gw().resolve(_.AS).getCurrentPage()||this.hostElement;hkV().registerPromoCommand(_.Y(X,dWv),t)}};
_.H.onYtNavigateHomeAction=function(){if(!_.A("kevlar_miniplayer_navigate_home_from_app_killswitch")){var X,t,G,y,w=(y=(X=this.topbarData)==null?void 0:(t=X.logo)==null?void 0:(G=t.topbarLogoRenderer)==null?void 0:G.endpoint)!=null?y:_.pc;this.ytComponentBehavior.resolveCommand(w)}};
_.H.onYtLocationCollectionCommand=function(X){TrR(_.Y(X,q2N))};
_.H.onYtGetLocationCommand=function(X){z2v(_.Y(X,ZuT),this)};
_.H.updateRenderGuideFromBinding=function(X){this.renderGuide=X.detail.value};
_.H.updateGuidePersistentAndVisibleFromBinding=function(X){this.guidePersistentAndVisible=X.detail.value};
_.H.updateMiniGuideVisibleFromBinding=function(X){this.miniGuideVisible=X.detail.value};
_.H.onThemeSelected=function(X,t){var G=_.cP(),y=X||t?X:_.iu(),w=(y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.GZl(_.qJ(window.location.href));_.pq(0,165,X);_.pq(0,174,t);G.save();w&&_.sl(this.hostElement,"yt-dark-mode-toggled-action",[y]);_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.H.getCurrentTheme=function(){return _.vy()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Lp()};
_.H.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.H.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.H.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.H.handleShowConsentPrimitive=function(X){var t=this,G,y;return _.n(function(w){if(w.nextAddress==1){try{G=(y=_.sW())==null?void 0:y.getPlayerPromise()}catch(z){}return w.yield(rHQ(X,G),2)}_.sl(t.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.W$(w)})};
_.H.handleSelectActiveIdentityEndpointInternal=function(X){_.zq();X=_.Y(X,_.$Po);if(X!=null&&X.supportedTokens){X=_.J(X.supportedTokens);for(var t=X.next();!t.done;t=X.next())t=t.value,t.accountSigninToken&&_.ok(t.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.H.handleUpdatePermissionRoleCommand=function(X){if(X=_.Y(X,_.GQB)){var t;this.hasDelegation=!((t=_.Y(X.renderer,_.tfz))==null||!t.status)}};
_.H.registerWithViewTransitionManager=function(){var X=_.gw().resolve(_.jH(_.Rp));if(X){var t,G=(t=this.guide)==null?void 0:t.querySelector("#scrim"),y;t=(y=this.guide)==null?void 0:y.querySelector("#contentContainer");G&&t&&X.isAnyTransitionEnabled&&(y={},X.viewTransitionCoordinator.registerElement(G,(y.slide="app-drawer-scrim-page-transition",y["lockup-to-watch"]="app-drawer-scrim-page-transition",y["learning-journey"]="app-drawer-scrim-page-transition",y)),G={},X.viewTransitionCoordinator.registerElement(t,
(G.slide="app-drawer-container-page-transition",G["lockup-to-watch"]="app-drawer-container-page-transition",G["learning-journey"]="app-drawer-container-page-transition",G)))}};
_.ke.Object.defineProperties(Mp.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.A("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.ke.Object.defineProperties(Mp,{template:{configurable:!0,enumerable:!0,get:function(){if(C4R===void 0){var X=document.createElement("template");_.Z(X,'\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');
X.content.insertBefore(_.m().content.cloneNode(!0),X.content.firstChild);C4R=X}X=C4R;return X}}});
Mp.prototype.onOpenHotkeyDialog=Mp.prototype.onOpenHotkeyDialog;Mp.prototype.setFullscreen=Mp.prototype.setFullscreen;Mp.prototype.onAddElementToApp=Mp.prototype.onAddElementToApp;Mp.prototype.onDrawerIronSelect=Mp.prototype.onDrawerIronSelect;Mp.prototype.onGuideOpenButtonHover=Mp.prototype.onGuideOpenButtonHover;Mp.prototype.onRequestPanelModeChange=Mp.prototype.onRequestPanelModeChange;Mp.prototype.onPageDataUpdated=Mp.prototype.onPageDataUpdated;Mp.prototype.onPageChanged=Mp.prototype.onPageChanged;
Mp.prototype.onSetTheaterModeEnabled=Mp.prototype.onSetTheaterModeEnabled;Mp.prototype.updateMastheadData=Mp.prototype.updateMastheadData;Mp.prototype.onYtPageManagerAttached=Mp.prototype.onYtPageManagerAttached;Mp.prototype.observeGuideVisibility=Mp.prototype.observeGuideVisibility;Mp.prototype.guideIsVisibleButNotPersistentSelectorChanged=Mp.prototype.guideIsVisibleButNotPersistentSelectorChanged;Mp.prototype.isInlinePreviewEnabledChanged=Mp.prototype.isInlinePreviewEnabledChanged;
Mp.prototype.isWatchPageChanged=Mp.prototype.isWatchPageChanged;Mp.prototype.dispatchFrostedGlassMode=Mp.prototype.dispatchFrostedGlassMode;_.E([_.q(_.MZ),_.U("design:type",Object)],Mp.prototype,"ytdReduxBehavior",void 0);_.E([_.q(_.Nh.YtEventForwardingBehavior),_.U("design:type",Object)],Mp.prototype,"ytEventForwardingBehavior",void 0);_.E([_.q(_.cr.YtOpenPopupBehavior),_.U("design:type",Object)],Mp.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.q(_.sb.YtActionHandlerBehavior),_.U("design:type",Object)],Mp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Hq.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.A("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var X;((X=this.actionRouterNode.hostElement)!=null?X:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var X;((X=this.actionRouterNode.hostElement)!=null?X:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(X){this.actionRouter_.handleAction(X.detail)}}),
_.U("design:type",Object)],Mp.prototype,"ytActionRouterBehavior",void 0);_.E([_.q(QJR.YtdAppBehavior),_.U("design:type",Object)],Mp.prototype,"ytdAppBehavior",void 0);_.E([_.q(_.pv.YtEndpointBehavior),_.U("design:type",Object)],Mp.prototype,"ytEndpointBehavior",void 0);_.E([_.q(I64.YtEndpointHandlerWithYpcBehavior),_.U("design:type",Object)],Mp.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.E([_.q(KIH.YtLogYpcFlowCommandsBehavior),_.U("design:type",Object)],Mp.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.E([_.q(_.v.YtRendererBehavior),_.U("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.E([_.q(_.zw.YtComponentBehavior),_.U("design:type",Object)],Mp.prototype,"ytComponentBehavior",void 0);_.E([_.K({selector:_.loB}),_.U("design:type",Object)],Mp.prototype,"tabGesturesIsActive",void 0);_.E([_.K(),_.U("design:type",Boolean)],Mp.prototype,"renderGuide",void 0);
_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Mp.prototype,"guidePersistentAndVisible",void 0);_.E([_.K({selector:_.aoq}),_.U("design:type",Boolean)],Mp.prototype,"guideIsVisibleButNotPersistent",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Mp.prototype,"standalone",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Mp.prototype,"miniGuideVisible",void 0);
_.E([_.K({selector:_.Zc6}),_.U("design:type",Number)],Mp.prototype,"miniplayerPlaybackState",void 0);_.E([_.K({selector:_.fg,reflectToAttribute:!0}),_.U("design:type",Boolean)],Mp.prototype,"miniplayerIsActive",void 0);_.E([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.U("design:type",Boolean)],Mp.prototype,"isInlinePreviewEnabled",void 0);_.E([_.K(),_.U("design:type",Boolean)],Mp.prototype,"isInlinePreviewDisabled",void 0);
_.E([_.K({reflectToAttribute:!0,value:function(){return _.X3("START_IN_FULL_WINDOW_MODE")}}),
_.U("design:type",Boolean)],Mp.prototype,"mastheadHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Mp.prototype,"playerFullscreen",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mp.prototype,"deprecateFullerscreenUi",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Mp.prototype,"fullscreen",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.U("design:type",Boolean)],Mp.prototype,"hideHeaderShadow",void 0);
_.E([_.K({value:{GUIDE_ALT_LABEL:_.Qf("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.U("design:type",Object)],Mp.prototype,"menuStrings",void 0);_.E([_.K({computed:"computeTopbarData(data)"}),_.U("design:type",Object)],Mp.prototype,"topbarData",void 0);_.E([_.K({selector:_.MQ}),_.U("design:type",Boolean)],Mp.prototype,"isWatchPage",void 0);_.E([_.K({selector:_.DPf,reflectToAttribute:!0}),_.U("design:type",Boolean)],Mp.prototype,"isShortsPage",void 0);
_.E([_.K({selector:function(X){return X.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.U("design:type",Boolean)],Mp.prototype,"isMiniAppPage",void 0);_.E([_.K({selector:function(X){return X.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.U("design:type",Boolean)],Mp.prototype,"isBrowsePage",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Boolean)],Mp.prototype,"scrolling",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mp.prototype,"hasDelegation",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.U("design:type",Boolean)],Mp.prototype,"guideScrolledByTouch",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mp.prototype,"darkerDarkTheme",void 0);
_.E([_.K(),_.U("design:type",Object)],Mp.prototype,"isFrostedGlassInitialized",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mp.prototype,"frostedGlassExp",void 0);_.E([_.K({selector:function(X){return X.ui.chipBarIsSticky}}),
_.U("design:type",Boolean)],Mp.prototype,"chipBarIsSticky",void 0);_.E([_.K({computed:"computeIsHomePage(isBrowsePage, data)"}),_.U("design:type",Boolean)],Mp.prototype,"isHomePage",void 0);_.E([_.K({reflectToAttribute:!0}),_.U("design:type",Object)],Mp.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.E([_.K(),_.U("design:type",Object)],Mp.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.E([_.T3("guide"),_.U("design:type",Object)],Mp.prototype,"guide",void 0);
_.E([_.T3("guide-service"),_.U("design:type",TKR)],Mp.prototype,"guideService",void 0);_.E([_.T3("guide-inner-content"),_.U("design:type",HTMLDivElement)],Mp.prototype,"guideInnerContent",void 0);_.E([_.K({selector:_.qEl}),_.U("design:type",String)],Mp.prototype,"frostedGlassMode",void 0);
_.E([_.cW("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mp.prototype,"dispatchFrostedGlassMode",null);_.E([_.K({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.U("design:type",Object)],Mp.prototype,"isFrostedGlassDisabled",void 0);
_.E([_.cW("isWatchPage"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mp.prototype,"isWatchPageChanged",null);_.E([_.C("isHomePage","chipBarIsSticky"),_.U("design:type",Boolean),_.U("design:paramtypes",[])],Mp.prototype,"applyFrostedGlassToChipBar",null);_.E([_.K(),_.U("design:type",Object)],Mp.prototype,"isChannelOrPlaylistPage",void 0);
_.E([_.U0("isInlinePreviewEnabled"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mp.prototype,"isInlinePreviewEnabledChanged",null);_.E([_.cW("guideIsVisibleButNotPersistent"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mp.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.E([_.cW("guidePersistentAndVisible","miniGuideVisible"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mp.prototype,"observeGuideVisibility",null);_.E([_.WW("attached"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],Mp.prototype,"onYtPageManagerAttached",null);_.E([_.cW("data"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype",Promise)],Mp.prototype,"updateMastheadData",null);
_.E([_.WW("yt-set-theater-mode-enabled"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent,Object]),_.U("design:returntype")],Mp.prototype,"onSetTheaterModeEnabled",null);_.E([_.WW("yt-page-type-changed"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Mp.prototype,"onPageChanged",null);_.E([_.WW("yt-page-data-updated"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mp.prototype,"onPageDataUpdated",null);
_.E([_.WW("yt-request-panel-mode-change"),_.U("design:type",Function),_.U("design:paramtypes",[Event,Object]),_.U("design:returntype")],Mp.prototype,"onRequestPanelModeChange",null);_.E([_.WW("yt-guide-hover"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mp.prototype,"onGuideOpenButtonHover",null);_.E([_.WW("app-drawer-transitioned"),_.U("design:type",Function),_.U("design:paramtypes",[Event]),_.U("design:returntype")],Mp.prototype,"onDrawerIronSelect",null);
_.E([_.WW("yt-add-element-to-app"),_.U("design:type",Function),_.U("design:paramtypes",[CustomEvent]),_.U("design:returntype")],Mp.prototype,"onAddElementToApp",null);_.E([_.WW("yt-set-fullerscreen-styles"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mp.prototype,"setFullscreen",null);_.E([_.WW("yt-open-hotkey-dialog"),_.U("design:type",Function),_.U("design:paramtypes",[]),_.U("design:returntype")],Mp.prototype,"onOpenHotkeyDialog",null);
_.E([_.p({is:"ytd-app"})],Mp);_.wv().processSignal("eor");
_.Lo();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
